1 2007-10-24 Samuel Tardieu <sam@rfc1149.net>
2 Olga Golovanevsky <olga@il.ibm.com>
4 * ipa-struct-reorg.c (replace_field_acc): Make it clear to
5 the compiler that wr.wrap and wr.domain are initialized in
8 2007-10-24 Samuel Tardieu <sam@rfc1149.net>
10 * ipa-struct-reorg.c (sum_counts): Use HOST_WIDEST_PRINT_DEC
11 to print gcov_type values.
13 2007-10-24 Eric B. Weddington <eweddington@cso.atmel.com>
15 * config/avr/avr.h: Do not include progmem_section definition when
16 building with IN_TARGET_LIBS.
18 2007-10-24 Richard Sandiford <rsandifo@nildram.co.uk>
21 * config/mips/mips.c (mips_lo_sum_offset): New structure.
22 (mips_hash_base, mips_lo_sum_offset_hash, mips_lo_sum_offset_eq)
23 (mips_lo_sum_offset_lookup, mips_record_lo_sum)
24 (mips_orphaned_high_part_p: New functions.
25 (mips_avoid_hazard): Don't check INSN_P here.
26 (mips_avoid_hazards): Rename to...
27 (mips_reorg_process_insns): ...this. Cope with
28 !TARGET_EXPLICIT_RELOCS. Delete orphaned high-part relocations,
29 or turn them into nops.
30 (mips_reorg): Remove TARGET_EXPLICIT_RELOCS check from calls to
31 dbr_schedule and mips_avoid_hazards/mips_reorg_process_insns.
32 (mips_set_mips16_mode): Don't set flag_delayed_branch here.
33 (mips_override_options): Set flag_delayed_branch to 0.
35 2007-10-24 Richard Sandiford <rsandifo@nildram.co.uk>
37 * config/mips/mips.h (MOVE_MAX): Use UNITS_PER_WORD and describe
38 MIPS-specific implementation details.
39 (MIPS_MAX_MOVE_BYTES_PER_LOOP_ITER): New macro.
40 (MIPS_MAX_MOVE_BYTES_STRAIGHT): Likewise.
41 (MOVE_RATIO): Define to MIPS_MAX_MOVE_BYTES_STRAIGHT / UNITS_PER_WORD
42 for targets with movmemsi.
43 (MOVE_BY_PIECES_P): Define.
44 * config/mips/mips.c (MAX_MOVE_REGS, MAX_MOVE_BYTES): Delete.
45 (mips_block_move_loop): Add a bytes_per_iter argument.
46 (mips_expand_block_move): Use MIPS_MAX_MOVE_BYTES_STRAIGHT.
47 Update call to mips_block_move_loop.
49 2007-10-24 Michael Matz <matz@suse.de>
52 * var-tracking.c (variable_union): Don't break after one loop iteration
53 but only when a difference is found.
54 (dump_variable): Also print DECL_UID.
56 2007-10-24 Olga Golovanevsky <olga@il.ibm.com>
58 * ipa-type-escape.h: Expose function
59 is_array_access_through_pointer_and_index.
61 (is_array_access_through_pointer_and_index):
62 Add three new parameters. Add support of
63 POINTER_PLUS_EXPR tree code.
65 2007-10-24 Olga Golovanevsky <olga@il.ibm.com>
67 * ipa-struct-reorg.c, ipa-struct-reorg.h: New files.
68 * tree-pass.h: Add pass_ipa_struct_reorg.
69 * common.opt: Add ipa-struct-reorg flag.
70 * Makefile.in: Add ipa-strcut-reorg.o compilation.
71 * passes.c: Add pass pass_ipa_struct_reorg.
72 * params.h: Add STRUCT_REORG_COLD_STRUCT_RATIO.
73 * params.def: Add PARAM_STRUCT_REORG_COLD_STRUCT_RATIO.
75 2007-10-24 Ira Rosen <irar@il.ibm.com>
77 PR tree-optimization/33804
78 * tree-vect-transform.c (vectorizable_operation): Remove the
79 checks that the vectorization is worthwhile from the transformation
82 2007-10-24 Ira Rosen <irar@il.ibm.com>
84 * tree-vect-analyze.c (vect_build_slp_tree): Return false if
85 vectype cannot be determined for the scalar type.
86 (vect_analyze_slp_instance): Likewise.
87 * tree-vect-transform.c (vect_model_reduction_cost): Change the
88 return type to bool. Return false if vectype cannot be determined
90 (vect_get_constant_vectors): Return false if vectype cannot be
91 determined for the scalar type.
92 (get_initial_def_for_induction, vect_get_vec_def_for_operand,
93 get_initial_def_for_reduction, vect_create_epilog_for_reduction,
94 vectorizable_reduction): Likewise.
96 2007-10-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
98 * config.gcc: For a FreeBSD target, parse the value of ${target}
99 to determine the value of FBSD_MAJOR, instead of adding an
100 explicit check for every possible FreeBSD major version.
102 2007-10-23 Uros Bizjak <ubizjak@gmail.com>
104 PR rtl-optimization/33846
105 * combine.c (simplify_shift_const_1) [NOT]: Skip vector modes.
107 2007-10-23 Dorit Nuzman <dorit@il.ibm.com>
109 PR tree-optimization/33860
110 * tree-vect-transform.c (vect_analyze_data_ref_access): Don't allow
111 interleaved accesses in case the dr is inside the inner-loop during
112 outer-loop vectorization.
114 2007-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
116 * doc/rtl.texi (Flags): Fix MEM_SCALAR_P entry.
117 Document MEM_POINTER. Replace mentions of "integrated"
118 field with "return_val". Delete outdated stuff.
120 2007-10-23 David Edelsohn <edelsohn@gnu.org>
122 * config/rs6000/rs6000.c (rs6000_override_options): Set
123 rs6000_altivec_abi on AIX.
124 (conditional_register_usage): Set VR20:31 fixed on AIX.
126 2007-10-23 Richard Guenther <rguenther@suse.de>
128 * alias.c (get_alias_set): For INDIRECT_REFs, deal with
131 2007-10-22 Seongbae Park <seongbae.park@gmail.com>
132 David S. Miller <davem@davemloft.net>
134 * df-scan.c (df_get_call_refs): Mark global registers as both a
135 DF_REF_REG_USE and a non-clobber DF_REF_REG_DEF.
137 2007-10-22 Dorit Nuzman <dorit@il.ibm.com>
139 PR tree-optimization/33834
140 PR tree-optimization/33835
141 * tree-vect-analyze.c (vect_analyze_operations): RELEVANT and LIVE
142 stmts need to be checked for success seperately.
143 * tree-vect-transform.c (vectorizable_call, vectorizable_conversion):
144 Remove the check that stmt is not LIVE.
145 (vectorizable_assignment, vectorizable_induction): Likewise.
146 (vectorizable_operation, vectorizable_type_demotion): Likewise.
147 (vectorizable_type_promotion, vectorizable_load, vectorizable_store):
149 (vectorizable_live_operation): Check that op is not NULL.
151 2007-10-22 Janis Johnson <janis187@us.ibm.com>
153 * doc/invoke.texi (Optimization Options): In the summary, show
154 that the value for options -falign-jumps, -falign-labels,
155 -falign-loops, -falign-functions, -fsched-stalled-insns, and
156 -fsched-stalled-insns-dep is optional. In the summary, show that
157 -fsched-stalled-insns takes an optional argument and that
158 -fparallelize-loops takes an argument. Add opindex for several
159 optimization options, and fix typos in the opindex commands for
160 several others. In the descriptions for -fsched-stalled-insns
161 and -fsched-stalled-insns-dep, show the options with and without
164 2007-10-22 Eric B. Weddington <eweddington@cso.atmel.com>
166 * config/avr/avr.c (avr_mcu_types): Remove ATmega603 which was never
168 * config/avr/avr.h (LINK_SPEC): Likewise.
169 (CRT_BINUTILS_SPECS): Likewsie.
170 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
172 2007-10-22 Eric Botcazou <ebotcazou@libertysurf.fr>
174 PR rtl-optimization/33644
175 * cfgcleanup.c: Do not include dce.h.
176 * cfgrtl.c (delete_insn_chain_and_edges): Resurrect.
177 * combine.c (distribute_notes): Delete REG_LIBCALL_ID case.
178 * dce.c (something_changed): Delete.
179 (libcall_dead_p): New predicate.
180 (delete_unmarked_insns): Use it to delete dead libcalls.
181 Deal with REG_LIBCALL and REG_RETVAL notes.
182 (prescan_libcall_for_dce): New function.
183 (prescan_insns_for_dce): Use it to deal with libcalls.
184 (mark_reg_dependencies): Do nothing special for libcalls.
185 (dce_process_block): Likewise.
186 (fast_dce): Delete unused local variable.
187 (run_fast_dce): Do not return a value.
188 * dce.h (struct df): Delete.
189 (run_fast_dce): Adjust prototype.
190 * optabs.c (libcall_id): Delete.
191 (maybe_encapsulate_block): Do not emit REG_LIBCALL_ID notes.
192 (emit_no_conflict_block): Do not look for REG_LIBCALL_ID notes.
193 * reload1.c (reload): Delete REG_LIBCALL_ID case.
194 * rtl.h (delete_insn_chain_and_edges): Resurrect prototype.
195 * see.c (see_update_relevancy): Look for REG_LIBCALL and REG_RETVAL
196 notes instead of REG_LIBCALL_ID notes.
197 * reg-notes.def (LIBCALL_ID): Delete.
198 * Makefile.in (see.o): Add dce.h dependency.
199 (cfgcleanup.o): Remove dce.h dependency.
201 2007-10-22 Michael Matz <matz@suse.de>
203 PR tree-optimization/33855
204 * tree-ssa-phiopt.c (cond_store_replacement): Handle COMPLEX_TYPE
207 2007-10-22 Ira Rosen <irar@il.ibm.com>
209 PR tree-optimization/33854
210 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
211 FLOAT_EXPR to the list of promotion operations.
213 2007-10-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
217 * config/i386/i386.c (output_pic_addr_const): Support Intel asm syntax.
218 (print_reg): Print register prefix only with AT&T asm syntax.
219 Support pc_rtx for RIP register.
220 (print_operand_address): Use print_reg()'s pc_rtx support for RIP
221 relative addressing. Always print segment register prefix with AT&T
222 asm syntax and never with Intel asm syntax.
223 (print_operand): Suppress 'XXX PTR' prefix for BLKmode operands.
224 Fix prefix for 16-byte XFmode operands.
225 (output_addr_const_extra): Support Intel asm syntax.
226 (x86_file_start): Don't use register prefix with Intel asm syntax.
227 * config/i386/i386.md ("*zero_extendqihi2_movzbl"): Fix typo.
228 ("return_internal_long"): Fix Intel asm syntax output.
229 ("set_got_rex64"): Support Intel asm syntax.
230 ("set_rip_rex64"): Likewise.
231 ("set_got_offset_rex64"): Likewise.
232 ("*sibcall_1_rex64_v"): Print register prefix only with AT&T asm
234 ("*tls_global_dynamic_64"): Likewise.
235 ("*tls_local_dynamic_base_64"): Likewise.
236 ("*load_tp_si")("*load_tp_di"): Likewise.
237 ("*add_tp_si")("*add_tp_di"): Likewise.
238 ("*tls_dynamic_lea_64"): Likewise.
239 ("*sibcall_value_1_rex64_v"): Likewise.
240 ("stack_tls_protect_set_si"): Likewise.
241 ("stack_tls_protect_set_di"): Likewise.
242 ("stack_tls_protect_test_si"): Likewise.
243 ("stack_tls_protect_test_di"): Likewise.
244 * config/i386/mmx.md ("*mov<mode>_internal_rex64"): Fix Intel asm
246 ("*movv2sf_internal_rex64"): Likewise.
247 * config/i386/cpuid.h (__cpuid): Support Intel asm syntax.
248 (__get_cpuid_max): Likewise.
250 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
252 * config/mips/mips-protos.h (mips_regno_mode_ok_for_base_p): Give
253 the STRICT_P argument type "bool" rather than "int".
254 (mips_legitimate_address_p): Likewise.
255 (fp_register_operand, lo_operand): Delete.
256 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
257 (mips_emit_scc): Rename to...
258 (mips_expand_scc): ...this.
259 (gen_conditional_branch): Rename to...
260 (mips_expand_conditional_branch): ...this.
261 (gen_conditional_move): Rename to...
262 (mips_expand_conditional_move): ...this.
263 (mips_gen_conditional_trap): Rename to...
264 (mips_expand_conditional_trap): ...this and take an rtx code instead
265 of an operands array.
266 (mips_expand_call): Give the SIBCALL_P argument type "bool"
268 (mips_emit_fcc_reload): Rename to...
269 (mips_expand_fcc_reload): ...this.
270 (init_cumulative_args): Rename to...
271 (mips_init_cumulative_args): ...this and remove the libname argument.
272 (function_arg_advance): Rename to...
273 (mips_function_arg_advance): ...this.
274 (function_arg): Rename to...
275 (mips_function_arg): ...this and use "rtx" instead of
277 (function_arg_boundary): Rename to...
278 (mips_function_arg_boundary): ...this.
279 (mips_expand_unaligned_load): Rename to...
280 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
281 and BITPOS arguments type "HOST_WIDE_INT".
282 (mips_expand_unaligned_store): Rename to...
283 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
284 and BITPOS arguments type "HOST_WIDE_INT".
285 (override_options): Rename to...
286 (mips_override_options): ...this.
287 (print_operand): Rename to...
288 (mips_print_operand): ...this.
289 (print_operand_address): Rename to...
290 (mips_print_operand_address): ...this.
291 (mips_output_ascii): Remove the PREFIX argument.
292 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
294 (mips_can_use_return_insn): Return a "bool" rather than an "int".
295 (mips_function_value): Remove the FUNC argument. Use "rtx" instead
296 of "struct rtx_def *".
297 (mips_secondary_reload_class): Give the IN_P argument type "bool"
299 (build_mips16_call_stub): Delete.
300 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
301 (mips_use_ins_ext_p): Give the second and third arguments type
302 "HOST_WIDE_INT" rather than "rtx".
303 * config/mips/mips.h: Update after the above changes. Tweak comments
305 (SECONDARY_INPUT_RELOAD_CLASS): Pass a boolean IN_P argument.
306 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
307 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
308 element type from "char" to "bool".
309 (mips_section_threshold, sym_lineno, set_noat, mips_branch_likely)
310 (mips_cpu_info_table): Delete.
311 * config/mips/mips.md: Update after the above changes. Tweak some
313 * config/mips/mips-ps-3d.md: Likewise.
314 * config/mips/mips.c: Tweak comments and formatting.
315 Use NULL-like macros rather than 0 in various places.
316 (mips_section_threshold): Rename to...
317 (mips_small_data_threshold): ...this and give it an unsigned type.
318 (num_source_filenames): Remove explicit initialization.
319 (sdb_label_count): Likewise.
320 (sym_lineno): Delete.
321 (set_noat): Make static.
322 (mips_branch_likely): Likewise, and give it type "bool".
323 (mips_isa_info): Rename to...
324 (mips_isa_option_info): ...this.
325 (mips_flag_delayed_branch): Rename to...
326 (mips_base_delayed_branch): ...this.
327 (mips_split_addresses): Delete.
328 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
329 element type from "char" to "bool".
330 (mips_regno_to_class): Add an explicit array size.
331 (mips16_flipper): Change from type "int" to type "bool".
332 (mips_comp_type_attributes): Remove redundant FUNCTION_TYPE check.
333 (mips_tls_operand_p): Rename to...
334 (mips_tls_symbol_p): ...this.
335 (mips_global_symbol_p): Remove redundant "const".
336 (mips_offset_within_alignment_p): Simplify.
337 (mips_regno_mode_ok_for_base_p): Change the name of the last argument
338 to STRICT_P and give it type bool.
339 (mips_valid_base_register_p): Likewise.
340 (mips_classify_address): Likewise.
341 (mips_legitimate_address_p): Likewise.
342 (mips16_unextended_reference_p): Take the offset as an
343 "unsigned HOST_WIDE_INT" rather than an "rtx". Simplify.
344 (mips_const_insns): Use IN_RANGE.
345 (mips_force_temporary): Remove an unnecessary copy_rtx.
346 (mips16_gp_pseudo_reg): Simplify.
347 (mips_split_symbol): Remove an unnecessary copy_rtx.
348 (mips_legitimize_tls_address): Only create registers if we need them.
349 (mips_legitimize_address): Use mips_split_plus.
350 (mips_move_integer): Swap DEST and TEMP arguments. Rename local
351 variable COST to NUM_OPS.
352 (mips_legitimize_move): Use gen_lowpart.
353 (mips_rewrite_small_data): Rename the OP parameter to PATTERN.
354 (m16_check_op): Use IN_RANGE.
355 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
356 (mips_split_doubleword_move): Pass booleans to mips_subword.
357 (mips_output_move): Store the mode in a local variable.
358 Explicitly assert that this function does not deal with
359 MFLO and MFHI. Use SMALL_OPERAND_UNSIGNED. Make order of
360 cases more consistent.
361 (mips_relational_operand_ok_p): Rename to...
362 (mips_int_order_operand_ok_p): ...this.
363 (mips_canonicalize_comparison): Rename to...
364 (mips_canonicalize_int_order_test): ...this.
365 (mips_emit_int_relational): Rename to...
366 (mips_emit_int_order_test): ...this. Store the mode in a local
368 (mips_reverse_fp_cond_p): Rename to...
369 (mips_reversed_fp_cond): ...this.
370 (mips_emit_compare): Make the order of the statements more consistent.
371 (mips_emit_scc): Rename to...
372 (mips_expand_scc): ...this.
373 (gen_conditional_branch): Rename to...
374 (mips_expand_conditional_branch): ...this.
375 (gen_conditional_move): Rename to...
376 (mips_expand_conditional_move): ...this. Build the condition
377 separately from the main pattern.
378 (mips_gen_conditional_trap): Rename to...
379 (mips_expand_conditional_trap): ...this and take an rtx code instead
380 of an operands array. Simplify.
381 (init_cumulative_args): Rename to...
382 (mips_init_cumulative_args): ...this. Use memset rather than a
383 copy from a zeroed static. Use prototype_p and stdarg_p.
384 (mips_arg_info): Rename to...
385 (mips_get_arg_info): ...this and put the INFO argument first.
386 (function_arg): Rename to...
387 (mips_function_arg): ...this and use "rtx" instead of
388 "struct rtx_def *". Only split structures into chunks if
389 TARGET_HARD_FLOAT, rather than checking !TARGET_SOFT_FLOAT on
390 a chunk-by-chunk basis. Use SCALAR_FLOAT_TYPE_P instead of a
391 comparison with REAL_TYPE. Rename local variable REG to REGNO
392 and make it unsigned.
393 (function_arg_advance): Rename to...
394 (mips_function_arg_advance): ...this.
395 (function_arg_boundary): Rename to...
396 (mips_function_arg_boundary): ...this.
397 (mips_pad_arg_upward): Use SCALAR_INT_MODE_P instead of a comparison
399 (mips_fpr_return_fields): Use SCALAR_FLOAT_TYPE_P instead of a
400 comparison with REAL_TYPE.
401 (mips_function_value): Remove the FUNC argument. Rename local
402 variable UNSIGNEDP to UNSIGNED_P.
403 (mips_return_in_memory): Use IN_RANGE.
404 (mips_setup_incoming_varargs): Pass a boolean rather than an int
405 to FUNCTION_ARG_ADVANCE.
406 (mips_gimplify_va_arg_expr): Rename local variable INDIRECT
407 to INDIRECT_P. Remove a redundant mips_abi check. Only calculate
408 SIZE and RSIZE if needed.
409 (mips16_stub): Rename FPRET to FP_RET_P and give it type "bool"
411 (build_mips16_function_stub): Rename to...
412 (mips16_build_function_stub): ...this.
413 (build_mips16_call_stub): Rename to...
414 (mips16_build_call_stub): ...this. Make static, and return a
415 "bool" rather than an "int". Rename the ARG_SIZE argument to
416 ARGS_SIZE. Rename the local variable FPRET to FP_RET_P and give
417 it type "bool". Use "jr" rather than "j". Use XNEW. Simplify.
418 (mips_load_call_address): Give the SIBCALL_P argument type "bool"
420 (mips_expand_call): Likewise. Assert that MIPS16 calls via stubs
421 are not sibling ones.
422 (mips_emit_fcc_reload): Rename to...
423 (mips_expand_fcc_reload): ...this.
424 (mips_get_unaligned_mem): Give the WIDTH and BITPOS arguments type
426 (mips_expand_unaligned_load): Rename to...
427 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
428 and BITPOS arguments type "HOST_WIDE_INT". Remove redundant
430 (mips_expand_unaligned_store): Rename to...
431 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
432 and BITPOS arguments type "HOST_WIDE_INT".
433 (mips_use_ins_ext_p): Rename second and third arguments to WIDTH
434 and BITPOS and give them type "HOST_WIDE_INT" rather than "rtx".
436 (mips_init_split_addresses): Replace with...
437 (mips_split_addresses_p): ...this new function.
438 (mips_init_relocs): Check mips_split_addresses_p () rather than
439 mips_split_addresses. Always initialize mips_split_p with booleans.
440 (print_operand_reloc): Rename to...
441 (mips_print_operand_reloc): ...this. Use a gcc_assert rather than
443 (print_operand): Rename to...
444 (mips_print_operand): ...this.
445 (print_operand_address): Rename to...
446 (mips_print_operand_address): ...this. Use GP_REG_FIRST.
447 (mips_in_small_data_p): Simplify.
448 (mips_output_ascii): Remove the PREFIX argument and "register"
449 keywords. Use the STRING parameter directly and cast to
451 (mips16e_collect_argument_save_p): Use IN_RANGE.
452 (mips_function_has_gp_insn): Simplify.
453 (mips_set_return_address): Use BITSET_P.
454 (mips_restore_gp): Use a separate statement to pick the base
456 (mips_output_function_prologue): Use a local FRAME variable.
457 (mips_save_reg): Pass booleans to mips_subword.
458 (mips_expand_prologue): Use a local FRAME variable. Use
459 cprestore_size to detect when .cprestore is needed.
460 (mips_restore_reg): Use GP_REG_FIRST.
461 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
462 rather than "int". Use local FRAME and REGNO variables.
463 (mips_can_use_return_insn): Return a "bool" rather than an "int".
464 (mips_secondary_reload_class): Give the IN_P argument type "bool"
466 (mips_linked_madd_p): Rename arguments to OUT_INSN and IN_INSN.
467 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
468 (vr4130_swap_insns_p): Rename local variables to DEP1_P and DEP2_P.
469 (mips_74k_agen_init): Assume INSN satisfies USEFUL_INSN_P.
470 (mips_variable_issue): Do nothing unless INSN satisfies USEFUL_INSN_P.
471 (builtin_description): Rename to...
472 (mips_builtin_description): ...this.
473 (mips_bdesc): Rename to...
474 (mips_ps_bdesc): ...this.
475 (sb1_bdesc): Rename to...
476 (mips_sb1_bdesc): ...this.
477 (dsp_bdesc): Rename to...
478 (mips_dsp_bdesc): ...this.
479 (dsp_32only_bdesc): Rename to...
480 (mips_dsp_32only_bdesc): ...this.
481 (bdesc_map): Rename to...
482 (mips_bdesc_map): ...this.
483 (bdesc_arrays): Rename to...
484 (mips_bdesc_arrays): ...this.
485 (mips_prepare_builtin_arg): Rename OP to OPNO and ARGNUM to ARGNO.
487 (mips_expand_builtin_direct): Rename HAS_TARGET to HAS_TARGET_P.
488 Rename local variables I and J to OPNO and ARGNO respectively.
489 Assert that the number of arguments is no more than the number of
491 (mips_expand_builtin_compare): Use an array of arguments rather
492 than an array of operands. Assert that the number of operands is
494 (add_constant): Rename to...
495 (mips16_add_constant): ...this. Use XNEW.
496 (dump_constants_1): Rename to...
497 (mips16_emit_constants_1): ...this. Use ALL_SCALAR_FIXED_POINT_MODE_P.
498 (dump_constants): Rename to...
499 (mips16_emit_constants): ...this.
500 (mips_sim_wait_reg, mips_sim_record_set): Use END_REGNO.
501 (mips_set_mips16_mode): Don't call mips_init_split_addresses.
502 Assign mips16_p to was_mips16_p.
503 (mips_parse_cpu): Tweak warning message.
504 (override_options): Rename to...
505 (mips_override_options): ...this. Move the mips_cost initialization
506 out of the "shared with GAS" block. Quote option names in error
508 (mips_conditional_register_usage): Make local variable REGNO unsigned.
509 (mips_order_regs_for_local_alloc): Remove register keyword.
511 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
513 * system.h (IN_RANGE): Cast each argument individually.
515 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
517 * config/mips/mips.c (mips_set_mips16_mode) Say sorry for hard-float
518 MIPS16 code unless using o32 or o64.
520 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
522 * config/mips/mips.c (mips_cannot_change_mode_class): Don't check
523 for modes smaller than 4 bytes.
524 * config/mips/mips.md (*movhi_internal, *movqi_internal): Remove
527 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
529 * config/mips/mips-protos.h (mips_output_aligned_bss): Delete.
530 * config/mips/linux.h (BSS_SECTION_ASM_OP): Delete.
531 (ASM_OUTPUT_ALIGNED_BSS): Delete.
532 * config/mips/mips.c (mips_output_aligned_bss): Delete.
534 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
536 * config/mips/mips.c (mips_function_ok_for_sibcall): Only forbid
537 sibling calls to "mips16" functions if the function satisfies
538 const_call_insn_operand.
540 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
542 * config/mips/mips.c (mips_va_start): Fix types in calls
545 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
547 * config/mips/mips.c (mips_rtx_costs): Only recognize reciprocals
550 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
552 * config/mips/mips.h (ISA_HAS_LDC1_SDC1): New macro.
553 * config/mips/mips.c (mips_split_64bit_move_p): Use ISA_HAS_LDC1_SDC1
554 instead of checking mips_isa.
556 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
558 * doc/invoke.texi (-mpaired-single): Don't say that the option
559 requires 64-bit code.
560 * config/mips/mips-protos.h (mips_modes_tieable_p): Declare.
561 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): New macro.
562 (ISA_HAS_NMADD_NMSUB): Add a mode argument. Return true for
563 V2SF if ISA_MIPS32R2.
564 (MODES_TIEABLE_P): Use mips_modes_tieable_p.
565 * config/mips/mips.c (mips_rtx_costs): Pass a mode argument
566 to ISA_HAS_NMADD_NMSUB.
567 (mips_split_doubleword_move): Handle V2SF.
568 (mips_modes_tieable_p): New function.
569 (override_options): Report a warning rather than an error when
570 -mpaired-single is used on ISAs that don't support it; use
571 ISA_HAS_PAIRED_SINGLE to check that case.
572 * config/mips/mips.md (MOVE64): New mode iterator. Replace DI
573 and DF move splitters with a single MOVE64 splitter, thereby adding
575 (SPLITF): Add TARGET_DOUBLE_FLOAT conditions to DI and DF.
576 Add a TARGET_FLOAT64 condition to TF. Add V2SF to the iterator.
577 (HALFMODE): Add V2SF.
578 (*nmadd<mode>, *nmadd<mode>_fastmath, *nmsub<mode>)
579 (*nmsub<mode>_fastmath): Add a mode argument to ISA_HAS_NMADD_NMSUB.
580 (movv2sf_hardfloat_64bit): Tweak ordering of conditions.
581 (movv2sf_hardfloat_32bit): New pattern.
582 (load_low<mode>, load_high<mode>, store_word<mode>): Remove
583 TARGET_DOUBLE_FLOAT conditions.
585 2007-10-20 Jakub Jelinek <jakub@redhat.com>
587 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Point
588 saved CR2 offset to low 32 bits of regs->ccr rather than the whole
589 64-bit register in 64-bit libgcc.
591 2007-10-20 Eric B. Weddington <eweddington@cso.atmel.com>
593 * config/avr/avr.c (avr_mcu_types): Add at90pwm2b, at90pwm3b.
594 * config/avr/avr.h (LINK_SPEC): Likewise.
595 (CRT_BINUTILS_SPECS): Likewsie.
596 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
598 2007-10-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
600 * doc/invoke.texi (Warning Options): Move -w, -Werror, -Werror=
601 and -Wfatal-errors together.
603 2007-10-20 Alan Modra <amodra@bigpond.net.au>
606 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Revert 2007-05-16
607 change for vrsave, ie restore after frame pop.
609 2007-10-19 David S. Miller <davem@davemloft.net>
611 * config/sparc/niagara2.md: Fix copyright notice.
613 2007-10-19 Sebastian Pop <sebastian.pop@amd.com>
615 PR tree-optimization/23820
616 PR tree-optimization/24309
617 PR tree-optimization/33766
618 * testsuite/gcc.dg/tree-ssa/pr23820.c: New.
619 * testsuite/gcc.dg/tree-ssa/pr24309.c: New.
620 * testsuite/gcc.dg/tree-ssa/pr33766.c: New.
621 * testsuite/gcc.dg/tree-ssa/ltrans-3.c: XFAILed.
622 * tree-loop-linear.c (perfect_loop_nest_depth): New.
623 (linear_transform_loops): Use perfect_loop_nest_depth.
624 * lambda-code.c (perfect_nest_p): Outer loops in perfect nests
625 should have a single condition: their exit.
627 2007-10-19 Richard Guenther <rguenther@suse.de>
631 * stor-layout.c (layout_type): Assert that aggregates do not
632 have their alias sets set.
633 * alias.c (get_alias_set): Return alias set zero for incomplete
634 types, return the alias set of the element for incomplete array
635 types, but do not remember these.
637 2007-10-19 Richard Guenther <rguenther@suse.de>
640 2007-10-19 Richard Guenther <rguenther@suse.de>
643 * tree.c (build_array_type): Do not re-layout unbound array
646 2007-10-19 Richard Guenther <rguenther@suse.de>
649 * tree.c (build_array_type): Do not re-layout unbound array
652 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
654 * config/mips/mips.c (mips_canonicalize_comparison): Check
655 mips_relational_operand_ok_p before trying to rewrite the test.
656 Only calculate PLUS_ONE if needed.
657 (mips_emit_int_relational): Don't call mips_relational_operand_ok_p
660 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
662 * config/mips/mips.c (mips16e_build_save_restore): Fix *OFFSET_PTR
665 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
667 * config/mips/mips.c (mips_call_tls_get_addr): Don't claim that
668 the call uses the incoming value of $2.
670 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
672 * config/mips/mips.c (mips_call_tls_get_addr): Use gen_const_mem
673 rather then gen_rtx_MEM.
674 (mips_setup_incoming_varargs): Use gen_frame_mem rather than
676 (mips_set_return_address): Likewise.
677 (mips_restore_gp): Likewise.
679 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
681 * config/mips/mips.c (gpr_mode): Delete.
682 (mips16e_build_save_restore): Use word_mode and UNITS_PER_WORD
684 (mips_for_each_saved_reg): Likewise.
685 (mips_expand_prologue, mips_expand_epilogue): Likewise.
686 (override_options): Don't initialize gpr_mode.
687 * config/mips/mips.md (eh_return): Use word_mode instead of gpr_mode.
689 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
691 * config/mips/mips.c (mips_hard_regno_nregs): Put the UNITS_PER_WORD
693 (mips_class_max_nregs): Calculate the smallest consituent register
694 size and use that to determine an upper bound on the number of
697 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
699 * config/mips/mips.c (mips16_copy_fpr_return_value): New function,
701 (mips_expand_epilogue): ...here.
702 (mips_mdebug_abi_name): New function, split out from...
703 (mips_file_start): ...here.
704 (mips_hard_regno_mode_ok_p): New function, split out from...
705 (override_options): ...here.
706 (mips_expand_builtin_1): New function, split out from...
707 (mips_expand_buitin): ...here. Abort if we don't recognize
710 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
712 * config/mips/mips.c (build_mips16_function_stub): Load the
713 target address into $1 before transfering the arguments.
714 Don't use ".set noreorder".
715 (build_mips16_call_stub): Likewise.
717 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
719 * config/mips/mips.c (mips_output_32bit_xfer): New function.
720 (mips_output_64bit_xfer): Likewise.
721 (mips16_fp_args): Rename to...
722 (mips_output_args_xfer): ...this and replace the FROM_FP_P argument
723 with a DIRECTION argument. Use mips_output_32bit_xfer and
724 mips_output_64bit_xfer.
725 (build_mips16_function_stub): Update accordingly.
726 (mips16_fpret_double): Delete.
727 (build_mips16_call_stub): Update after above changes.
728 Use mips_output_32bit_xfer. Use mips_output_64bit_xfer instead
729 of mips16_fpret_double. Use GP_REG_RETURN.
731 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
733 * config/mips/mips.c (mips16_fp_args): Remove the FILE argument and
734 use asm_out_file instead.
735 (build_mips16_function_stub): Likewise.
736 (build_mips16_call_stub, mips_output_function_prologue): Update
739 2007-10-18 David S. Miller <davem@davemloft.net>
741 Add Niagara-2 support.
742 * doc/invoke.texi: Document -m{cpu,tune}=niagara2.
743 * config.gcc: Add niagara2 to cpu and tune lists for sparc.
744 * config/sparc/sparc.md (sparc_cpu_attr): Add niagara2.
745 (include): Add inclusion of niagara2.md
746 * config/sparc/sparc.c (niagara2_costs): New.
747 (sparc_override_options): Add niagara2 entry to cpu_default[]
748 and cpu_table[]. Set align_functions to 32 on Niagara2. Use
749 niagara2_costs when PROCESSOR_NIAGARA2. Handle Niagara2 for
750 PARAM_SIMULTANEOUS_PREFETCHES and PARAM_L1_CACHE_LINE_SIZE.
751 (sparc_initialize_trampoline): Handle niagara2 like niagara.
752 (sparc64_initialize_trampoline): Likewise.
753 (sparc_use_sched_lookahead): Likewise.
754 (sparc_issue_rate): Likewise.
755 * config/sparc/sol2-bi.h: Handle TARGET_CPU_niagara2 and
757 * config/sparc/sparc.h (TARGET_CPU_niagara2): Define.
758 ({CPP,ASM}_CPU64_DEFAULT_SPEC): Set appropriately for
760 (PROCESSOR_NIAGARA2): New.
761 (REGISTER_MOVE_COST): Handle PROCESSOR_NIAGARA2.
762 (BRANCH_COST): Likewise.
763 * config/sparc/linux64.h: Handle TARGET_CPU_niagara2.
764 * config/sparc/sol2.h: Likewise.
765 * config/sparc/niagara2.md: New file.
767 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
769 * config/mips/mips.c (mips_frame_info): Remove gp_reg_size and
771 (mips_compute_frame_info): Remove associated code.
772 (mips16e_build_save_restore): Check num_fp instead of fp_reg_size.
774 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
776 * config/mips/mips-protos.h (compute_frame_size): Delete.
777 * config/mips/mips.h: Update comments.
778 * config/mips/mips.c (mips_frame_info): Remove initialized.
779 (compute_frame_size): Rename to...
780 (mips_compute_frame_info): ...this and make static. Remove the
781 SIZE argument and return no value. Remove the setting of initialized.
782 Update rest of file accordingly.
783 (mips_set_return_address): Don't call compute_frame_size.
784 (mips_can_use_return_insn): Don't check df_regs_ever_live_p (31).
785 Don't call compute_frame_size.
787 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
789 * config/mips/mips-protos.h (mips_frame_pointer_required): Declare.
790 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Use
791 mips_hard_frame_pointer_required.
792 (CAN_ELIMINATE): Rely on FRAME_POINTER_REQUIRED to check for
794 * config/mips/mips.c (mips_frame_pointer_required): New function.
796 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
798 * config/mips/mips.c (mips_frame_info): Add arg_pointer_offset
799 and hard_frame_pointer_offset.
800 (mips_debugger_offset): Use hard_frame_pointer_offset.
801 (mips16e_collect_argument_save_p): Likewise.
802 (compute_frame_size): Initialize arg_pointer_offset and
803 hard_frame_pointer_offset.
804 (mips_initial_elimination_offset): Use them.
805 (mips_output_function_prologue): Use hard_frame_pointer_offset.
806 (mips_expand_prologue, mips_expand_epilogue): Likewise.
808 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
810 * config/mips/mips.h (STARTING_FRAME_OFFSET): Remove rtl
812 * config/mips/mips.c (mips_frame_info): Give num_gp and num_fp type
813 "unsigned int" rather than "int" and put them with the other
814 register-related fields. Put expanded comments above fields
815 rather than to their right.
816 (mips16e_mask_registers): Replace the GP_REG_SIZE_PTR argument
817 with a NUM_REGS_PTR argument.
818 (mips16e_save_restore_pattern_p): Update accordingly.
819 (compute_frame_size): Clarify frame diagram. Rewrite.
821 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
823 * config/mips/mips-ftypes.def: New file.
824 * config/mips/mips.c (MIPS_FTYPE_NAME1, MIPS_FTYPE_NAME2)
825 (MIPS_FTYPE_NAME3, MIPS_FTYPE_NAME4): New macros.
826 (mips_function_type): Redefine using mips-ftypes.def.
827 (dsp_bdesc): Use POINTER rather than PTR in the MIPS_*_FTYPE_* names.
828 (mips_builtin_vector_type): New function.
829 (MIPS_ATYPE_VOID, MIPS_ATYPE_INT, MIPS_ATYPE_POINTER, MIPS_ATYPE_SI)
830 (MIPS_ATYPE_USI, MIPS_ATYPE_DI, MIPS_ATYPE_SF, MIPS_ATYPE_DF)
831 (MIPS_ATYPE_V2SF, MIPS_ATYPE_V2HI, MIPS_ATYPE_V4QI, MIPS_FTYPE_ATYPES1)
832 (MIPS_FTYPE_ATYPES2, MIPS_FTYPE_ATYPES3, MIPS_FTYPE_ATYPES4): New
834 (mips_build_function_type): New function.
835 (mips_init_builtins): Use it to create types lazily.
837 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
839 * config/mips/mips.h (set_volatile): Delete.
840 * config/mips/mips.c (set_volatile): Delete.
841 (mips_print_operand_punctuation): New function, split out from
842 print_operand. Remove '%{', '%}', '%~', '%&' and '%!'.
843 Use the same character ordering in the code and the comments.
844 Use a recursive call to handle '*'. Abort on unknown characters.
845 (mips_init_print_operand_punct): New function, split out from
847 (mips_print_int_branch_condition): New function, split out from
848 print_operand. Use GET_RTX_NAME. Use output_operand_lossage
849 to report unexpected codes.
850 (mips_print_float_branch_condition): New function, split out from
851 print_operand. Use output_operand_lossage to report unexpected codes.
852 (print_operand): Rework to use a case statement. Use the
853 same letter ordering in the code and the comments. Use
854 output_operand_lossage to report unexpected codes and
855 reverse_condition to handle inverted branch conditions.
856 (override_options): Use mips_init_print_operand_punct.
858 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
860 * config/mips/mips.h: Move variable declarations to end of file and
861 enclose them all in #ifndef USED_FOR_TARGET.
862 * config/mips/mips.c: Reorder functions into more logical groups,
863 and so that callees appear before callers. Put the targetm
864 initializer at the end of the file. Remove forward static
865 declarations where possible.
866 (mips_init_builtins): Add "static" to definition.
867 (mips_expand_builtin, mips_mode_rep_extended): Likewise.
869 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
871 * config/mips/mips.c (TARGET_MIN_ANCHOR_OFFSET): Delete.
872 (TARGET_MAX_ANCHOR_OFFSET): Delete.
873 (mips_cannot_force_const_mem): Don't check TARGET_HAVE_TLS.
874 (mips_set_mips16_mode): Initialize min_anchor_offset and
875 max_anchor_offset directly to constants.
877 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
879 * config/mips/mips.c: Delete trailing whitespace.
881 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
883 * config/mips/mips.c (mips_expand_call): Use FAKE_CALL_REGNO.
884 (mips_avoid_hazard): Allow multiple sets for HAZARD_DELAY,
886 * config/mips/mips.md (load_call<mode>): Don't make the unspec
887 depend on FAKE_CALL_REGNO. Set FAKE_CALL_REGNO.
889 2007-10-18 David Daney <ddaney@avtrex.com>
891 * config/mips/linux-unwind.h (mips_fallback_frame_state): Use new
892 reg_offset variable to calculate register locations.
894 2007-10-18 Richard Guenther <rguenther@suse.de>
896 * tree-ssa.c (uid_ssaname_map_eq): New function.
897 (uid_ssaname_map_has): Likewise.
898 (init_tree_ssa): Allocate default_defs as uid_ssaname map.
899 * tree-flow.h (struct gimple_df): Make default_defs a
901 * tree-dfa.c (gimple_default_def): Deal with it.
902 (set_default_def): Likewise.
904 2007-10-18 Richard Guenther <rguenther@suse.de>
906 * tree-flow.h (struct gimple_df): Make referenced_vars
908 (uid_decl_map_eq): Declare.
909 (uid_decl_map_hash): Likewise.
910 * tree-ssa.c (uid_decl_map_eq): New function.
911 (uid_decl_map_hash): Likewise.
912 (init_tree_ssa): Make referenced_vars a uid_decl_map.
913 * tree-flow-inline.h (first_referenced_var): Deal with
914 the referenced_vars representation change.
915 (next_referenced_var): Likewise.
916 * tree-dfa.c (referenced_var_lookup): Likewise.
917 (referenced_var_check_and_insert): Likewise.
918 (remove_referenced_var): Likewise.
920 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
922 * config/mips/mips.c (mips_dwarf_register_span): New.
923 (TARGET_DWARF_REGISTER_SPAN): Define.
925 2007-10-18 Chen Liqin <liqin@sunnorth.com.cn>
927 * config.gcc : update score-*-elf(extra_objs).
928 * config/score/mac.md : Remove.
929 * config/score/misc.md : Remove.
930 * config/score/score7.md : Remove.
931 * config/score/score-mdaux.h : Remove.
932 * config/score/score-mdaux.c : Remove.
933 * config/score/score-version.h : Remove.
934 * config/score/score-generic.md : New.
935 * config/score/score3.h : New.
936 * config/score/score3.c : New.
937 * config/score/score7.h : New.
938 * config/score/score7.c : New.
939 * config/score/mul-div.S : add flush_cache score3 support.
940 * config/score/elf.h : Fix some typos.
941 * config/score/score.md : merge score3 and score7 pattern.
942 * config/score/score.c : use to seperate which target it used.
943 * config/score/score.h : use to seperate the target macro.
944 * config/score/score.opt : remove -mmac option , add -mscore3,
945 -mscore3d and -march OPTION support.
947 2007-10-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
949 * cfgexpand.c (expand_stack_vars): Add checking to make sure
950 that the offset of a variable is not greater than the size
953 2007-10-17 Anatoly Sokolov <aesok@post.ru>
955 * config/avr/avr.c (avr_mcu_types): Add support for atmega48p,
956 atmega88p, atmega168p and atmega328p devices.
957 * config/avr/avr.h (LINK_SPEC): (Ditto.).
958 (CRT_BINUTILS_SPECS): (Ditto.).
959 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
961 2007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
963 * sched-ebb.c: Surround code with '#ifdef INSN_SCHEDULING'.
965 * sched-deps.c: Ditto. Remove nested #ifdef's INSN_SCHEDULING.
966 * sched-int.h: Surround declarations with '#ifdef INSN_SCHEDULING'.
967 (print_insn): Move declaration to ...
968 * rtl.h (print_insn): ... here.
970 2007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
972 * config/m68k/m68k.h (m68k_sched_cpu, m68k_sched_attr_opx_type,
973 m68k_sched_attr_opy_type, m68k_sched_attr_size, m68k_sched_attr_op_mem,
974 m68k_sched_branch_type): Move declarations to ...
975 * config/m68/m68k-protos.h: ... here.
977 2007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
979 * genattrtab.c (main): Rearrange output of insn-attrtab.c headers.
981 2007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
983 * config/avr/avr.c (avr_mcu_types): Add attiny48.
984 * config/avr/avr.h (LINK_SPEC): Likewise.
985 (CRT_BINUTILS_SPECS): Likewsie.
986 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
988 2007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
990 * config/avr/avr.c (avr_mcu_types): Add attiny43u.
991 * config/avr/avr.h (CRT_BINUTILS_SPECS): Likewsie.
992 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
994 2007-10-17 Uros Bizjak <ubizjak@gmail.com>
997 * reg-stack.c (move_for_stack_reg): Swap input argument of
998 UNSPEC_TAN insn to the top of the stack.
1000 2007-10-17 Uros Bizjak <ubizjak@gmail.com>
1003 * config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLLWI128,
1004 IX86_BUILTIN_PSLLDI128, BUILTIN_PSLLQI128, IX86_BUILTIN_PSRAWI128,
1005 IX86_BUILTIN_PSRADI128, IX86_BUILTIN_PSRLWI128,
1006 IX86_BUILTIN_PSRLDI128, IX86_BUILTIN_PSRLQI128]: Do not require
1007 immediate shift value.
1008 * config/i386/emmintrin.h (_mm_slli_epi16, _mm_slli_epi32,
1009 _mm_slli_epi64, _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16,
1010 _mm_srli_epi32, _mm_srli_epi64): Remove 'const' from count argument.
1011 Remove macros for !__OPTIMIZE__ case.
1013 2007-10-17 Daniel Berlin <dberlin@dberlin.org>
1015 * tree-ssa-structalias.c (rewrite_constraints): Don't test for
1017 (perform_var_substitution): Only DFS from real nodes. Don't test
1019 (unite_pointer_equivalences): Fix broken test.
1021 2007-10-17 Alan Modra <amodra@bigpond.net.au>
1023 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Correct
1024 altivec sp_offset. Rearrange sp_offset assignments to
1025 correspond to stack adjustments. Use frame_reg_rtx for
1026 SPE register restores. Correct SPE stack adjustment.
1028 2007-10-17 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1030 * builtins.c (gimplify_va_arg_expr): Use inform for help message.
1031 * toplev.c (check_global_declaration_1): Use appropriate warning
1032 option instead of unnamed warning.
1033 * stor-layout.c (layout_decl): Likewise.
1034 * c-typeck.c (build_conditional_expr): Likewise.
1035 (build_compound_expr): Fix wrong comment.
1036 (build_binary_op): Use appropriate warning option instead of
1038 * cfgexpand.c (tree_expand_cfg): Likewise.
1039 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1040 * tree-cfg.c (remove_useless_stmts_warn_notreached): Likewise.
1041 (execute_warn_function_return): Likewise.
1042 * stmt.c (warn_if_unused_value): Likewise.
1044 2007-10-16 Eric B. Weddington <eweddington@cso.atmel.com>
1046 * config/avr/avr.c (avr_mcu_types): Add at90pwm216, at90pwm316.
1047 * config/avr/avr.h (LINK_SPEC): Likewise and remove regex for
1049 (CRT_BINUTILS_SPECS): Likewsie.
1050 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1052 2007-10-16 Amruth Laxman <amruth.laxman@nsn.com>
1055 * config/sparc/sparc.h (LOCAL_ALIGNMENT): Define.
1057 2007-10-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1059 * dce.c (init_dce): Only initialize the obstacks for the fast pass.
1060 (fini_dce): Only release them for the fast pass.
1061 (end_ud_dce): Delete.
1062 (rest_of_handle_ud_dce): Do not modify df_in_progress.
1063 Call fini_dce instead of end_ud_dce.
1064 (rest_of_handle_fast_dce): Do not modify df_in_progress.
1065 (run_fast_df_dce): Reset df_in_progress to false on exit.
1067 2007-10-16 Paolo Bonzini <bonzini@gnu.org>
1068 Maxim Kuvyrkov <maxim@codesourcery.com>
1070 * target.h (unspec_may_trap_p): New target hook.
1071 * target-def.h (TARGET_UNSPEC_MAY_TRAP_P): New macro.
1072 * targhooks.c (default_unspec_may_trap_p): Default implementation of
1074 * targhooks.h (default_unspec_may_trap_p): Declare it.
1075 * doc/tm.texi (TARGET_UNSPEC_MAY_TRAP_P): Document new hook.
1076 * rtlanal.c (may_trap_p_1): Use new hook. Make global.
1077 * rtl.h (may_trap_p_1): Declare.
1079 * config/ia64/ia64.c (ia64_unspec_may_trap_p): New function to
1080 override default hook implementation.
1081 (TARGET_UNSPEC_MAY_TRAP_P): Override default implementation of the
1084 2007-10-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1086 * doc/invoke.texi (Wextra): Move it just after Wall, list the
1087 options enabled by Wextra and mention Wuninitialized.
1089 2007-10-15 Nigel Stephens <nigel@mips.com>
1091 * config/mips/mips.h (LOCAL_ALIGNMENT): Define.
1093 2007-10-15 Jakub Jelinek <jakub@redhat.com>
1095 PR tree-optimization/33136
1096 * opts.c (decode_options): Don't enable flag_ipa_type_escape.
1098 2007-10-15 Alexandre Oliva <aoliva@redhat.com>
1100 PR tree-optimization/33735
1101 PR tree-optimization/33572
1102 * tree-inline.c (update_ssa_across_abnormal_edges): Revert
1103 2007-10-09's change.
1104 * except.c (duplicate_eh_regions): Don't look for prev_try
1105 beyond ERT_ALLOWED_EXCEPTIONS with an empty list.
1107 2007-10-15 Alexandre Oliva <aoliva@redhat.com>
1110 * tree-inline.c (copy_bb): Use bsi_replace to replace a
1111 __builtin_va_arg_pack-containing call stmt.
1113 2007-10-15 Razya Ladelsky <razya@il.ibm.com>
1115 * matrix-reorg.c (gate_matrix_reorg): Don't comment out whole
1118 2007-10-15 Jakub Jelinek <jakub@redhat.com>
1120 PR tree-optimization/33619
1121 * tree-ssa-ter.c (is_replaceable_p): Return false for all
1124 2007-10-15 David Edelsohn <edelsohn@gnu.org>
1126 * config.gcc (powerpc-ibm-aix5*): Install altivec.h.
1128 2007-10-15 Richard Guenther <rguenther@suse.de>
1130 * fold-const.c (extract_array_ref): Remove.
1131 (fold_comparison): Handle POINTER_PLUS_EXPR with the
1132 generic address expression comparison folding. Remove
1133 the folding that used extract_array_ref.
1135 2007-10-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1138 * haifa-sched.c (process_insn_forw_deps_be_in_spec): Check if
1139 speculation type of insn can be changed before trying to do that.
1141 2007-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1143 * dse.c (struct insn_info): Add 'frame_read' field.
1144 (scan_insn): For the call to a const function, set frame_read if
1145 reload has been run.
1146 If the insn reads the frame, kill the frame related stores.
1147 (scan_reads_nospill): Likewise.
1149 2007-10-14 Jason Merrill <jason@redhat.com>
1151 * tree-eh.c (optimize_double_finally): Don't assume that the
1152 cleanup we're duplicating is only one statement.
1154 2007-10-14 Kazu Hirata <kazu@codesourcery.com>
1156 * config/fixed-bit.c, config/i386/cpuid.h, config/i386/i386.c,
1157 config/i386/i386.md, config/i386/sse.md, function.c, jump.c,
1158 modulo-sched.c, ra-conflict.c, toplev.c, tree-eh.c, tree-sra.c,
1159 tree-ssa-dse.c, tree-vect-analyze.c, tree-vect-patterns.c,
1160 tree-vect-transform.c: Fix comment typos.
1161 * doc/extend.texi: Fix a typo.
1163 * c-common.h: Remove the prototype for c_expand_body.
1164 * c-tree.h: Remove the prototype for c_disregard_inline_limits.
1165 * tree.h: Remove the prototype for fold_build_call_expr.
1167 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN):
1169 * c-tree.h: Remove the prototype for c_cannot_inline_tree_fn.
1171 2007-10-13 David Edelsohn <edelsohn@gnu.org>
1173 * config/rs6000/aix53.h: New file.
1174 * config/rs6000/aix{41,43,51,52}.h (TARGET_ALTIVEC): Define to 0.
1175 (TARGET_ALTIVEC_ABI): Same.
1176 * config/rs6000/aix.h (TARGET_ALTIVEC): Delete.
1177 (TARGET_ALTIVEC_ABI): Delete.
1178 * config.gcc (powerpc-ibm-aix5*): Rename to aix5.2. Add new
1179 stanza defaulting to aix5.3.
1181 2007-10-12 Nathan Froyd <froydnj@codesourcery.com>
1183 * config/i386/i386.md (SI_REG, DI_REG): New constants.
1184 (strmov): Use defined constants.
1185 (cmpstrnsi): Likewise.
1186 * config/i386/i386.c (decide_alg): Use defined constants.
1187 (ix86_expand_strlen): Likewise.
1189 2007-10-12 Richard Sandiford <rsandifo@nildram.co.uk>
1191 * dse.c (find_shift_sequence): Reinstate "<= UNITS_PER_WORD" condition.
1192 * var-tracking.c (micro_operation_def): Update comment on u.loc.
1193 (mode_for_reg_attrs, var_lowpart): New functions.
1194 (add_uses): Consider recording a lowpart of LOC for MO_USE.
1195 (add_stores): Likewise MO_SET and MO_COPY. If the source of a set
1196 or copy is known, set LOC to the SET that performs the set, instead
1198 (find_src_status, find_src_set_src): Remove LOC parameter.
1199 Replace INSN with the source value.
1200 (compute_bb_dataflow, emit_notes_in_bb): Check for a SET u.loc when
1201 handling MO_SET and MO_COPY. Update the calls to find_src_status
1202 and find_src_set_src.
1204 2007-10-12 Nathan Froyd <froydnj@codesourcery.com>
1207 * config/i386/i386.md (strmov): Check for esi and edi usage.
1208 * config/i386/i386.c (decide_alg): Check whether we can use a
1209 rep prefix and adjust algorithm choice accordingly.
1210 (ix86_expand_strlen): Check for eax, ecx, and edi usage.
1212 2007-10-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1214 * config/c4x/c4x.md (mulqi3, mulhi3): Use optab_libfunc.
1216 2007-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
1218 * global.c (build_insn_chain): Formatting fixes.
1220 2007-10-12 Richard Guenther <rguenther@suse.de>
1222 * tree-ssa-forwprop.c (forward_propagate_into_cond): For
1223 combining both operands require either both have single uses
1224 or combining to a constant.
1226 2007-10-12 Richard Guenther <rguenther@suse.de>
1229 * tree-ssa-forwprop.c (can_propagate_from): Do not propagate from
1230 a rhs with side-effects or which is a load.
1231 (forward_propagate_into_cond): Also try combining both operands.
1233 2007-10-12 Uros Bizjak <ubizjak@gmail.com>
1235 PR tree-optimization/33742
1236 * tree-vect-transform.c (vectorizable_operation): Return false
1237 if get_vectype_for_scalar_type for scalar_dest can't be determined.
1238 (vectorizable_call): Same for rhs_type and lhs_type.
1240 2007-10-12 Jakub Jelinek <jakub@redhat.com>
1242 PR tree-optimization/33645
1243 * tree-ssa-live.c (mark_all_vars_used): Add data argument,
1244 pass it to walk_tree.
1245 (mark_all_vars_used_1): Pass data through to mark_all_vars_used.
1246 When calling set_is_used on a VAR_DECL, if data is not NULL and
1247 its DECL_UID is in the bitmap, call mark_all_vars_used on its
1248 DECL_INITIAL after clearing the bit in bitmap.
1249 (remove_unused_locals): Adjust mark_all_vars_used callers.
1250 Instead of removing unused global vars from unexpanded_var_list
1251 immediately record them in bitmap, call mark_all_vars_used on
1252 all used global vars from unexpanded_var_list and only purge
1253 global vars that weren't found used even during that step.
1255 2007-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1257 * gthr-posix.h (__gthread_active_init): Create detached instead of
1258 joinable thread when testing whether threads are active on hppa-hpux.
1259 * gthr-posix95.h (__gthread_active_init): Likewise.
1261 2007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
1264 * global.c (build_insn_chain): Include insn that occur between
1267 2007-10-11 Tom Tromey <tromey@redhat.com>
1269 * gengtype-yacc.y: Delete.
1271 2007-10-11 Uros Bizjak <ubizjak@gmail.com>
1273 * config/i386/i386.md (AX_REG, DX_REG, CX_REG): New constants.
1274 * config/i386/i386.c (ix86_function_arg_regno_p, function_arg_32,
1275 function_value_32, function_value_64, function_value_ms_64,
1276 setup_incoming_varargs_64, ix86_expand_prologue, ix86_expand_call,
1277 legitimize_tls_address, x86_this_parameter, x86_output_mi_thunk):
1280 2007-10-11 Richard Guenther <rguenther@suse.de>
1282 * gcse.c (hash_scan_set): If the next nonnote insn is in
1283 a different basic block insert the set.
1285 2007-10-11 Richard Guenther <rguenther@suse.de>
1288 * tree-cfg.c (one_pointer_to_useless_type_conversion_p): New function.
1289 (verify_gimple_expr): Use it to verify pointer-to types for
1292 2007-10-11 Richard Guenther <rguenther@suse.de>
1295 * c-typeck.c (build_array_ref): Do not strip qualifiers from
1296 the array element type.
1298 2007-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1300 PR rtl-optimization/33638
1301 * dse.c (struct insn_info): Remove 'stack_read' field,
1302 add 'stack_pointer_based' field.
1303 (record_store): For a store with non-constant base, record
1304 whether it is stack pointer based.
1305 (scan_insn): For the call to a const function, remove stack
1306 pointer based stores from the list of local active stores.
1307 (scan_reads_nospill): Delete code dealing with const functions.
1309 2007-10-10 Peter Bergner <bergner@vnet.ibm.com>
1311 * ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables
1313 (conflict_p, set_conflict, set_conflicts): Likewise.
1314 * global.c (global_alloc): Likewise.
1315 * ra.h: Update prototypes.
1317 2007-10-10 Wolfgang Gellerich <gellerich@de.ibm.com>
1319 * opth-gen.awk: Fixed generation of comment stating the origin
1322 2007-10-10 Kazu Hirata <kazu@codesourcery.com>
1325 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1326 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
1327 and '%}', respectively.
1330 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1331 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
1332 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
1334 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
1338 2007-10-07 Kazu Hirata <kazu@codesourcery.com>
1339 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
1340 syntax for ASSEMBLER_DIALECT.
1341 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
1343 2007-10-10 Revital Eres <eres@il.ibm.com>
1345 * modulo-sched.c (check_nodes_order): Dump the final order of
1347 (get_sched_window): Add dump info.
1348 (calculate_order_params): Dump order params of the nodes.
1350 2007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1353 * ra-conflict.c (record_one_conflict_between_regnos,
1354 set_conflicts_for_earlyclobber, global_conflicts): Improved logging.
1355 (global_conflicts): Enhanced incorrect check.
1357 2007-10-09 Geoffrey Keating <geoffk@apple.com>
1359 * dwarf2out.c (output_call_frame_info): FDEs are always emitted
1360 if flag_exceptions is not set.
1361 * config/darwin.c (darwin_emit_unwind_label): Rewrite to use
1362 assemble_name rather than incorrectly emulating it.
1364 * doc/extend.texi (Deprecated Features): Mention that <? and >? and
1365 friends are removed from G++.
1367 2007-10-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1369 * c-opts.c (c_common_handle_option): -Wnontemplate-friend,
1370 -Wwrite-strings and -Wmultichar are enabled by default, so Wall
1371 enabling them is redundant. Don't check two times for
1374 2007-10-09 H.J. Lu <hongjiu.lu@intel.com>
1376 * ra-conflict.c (record_one_conflict_between_regnos): Revert
1378 (set_conflicts_for_earlyclobber): Likewise.
1379 (global_conflicts): Likewise.
1381 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1383 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
1384 and '%}', respectively.
1386 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1388 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
1389 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
1391 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
1394 2007-10-09 Richard Guenther <rguenther@suse.de>
1397 * gimplify.c (canonicalize_component_ref): Honor qualifiers
1398 of referenced structure and component.
1400 2007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1403 * ra-conflict.c (record_one_conflict_between_regnos,
1404 set_conflicts_for_earlyclobber, global_conflicts): Improved
1406 (global_conflicts): Removed incorrect check.
1408 2007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
1410 PR tree-optimization/33615
1411 * tree-ssa-pre.c (compute_avail): Don't call make_values_for_stmt
1412 if the statement might throw. Fix formatting.
1414 2007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
1416 PR tree-optimization/33615
1417 * tree-ssa-loop-im.c (movement_possibility): Return MOVE_IMPOSSIBLE
1418 if the rhs might throw.
1420 2007-10-09 Jan Hubicka <jh@suse.cz>
1422 * invoke.texi (align-threshold, align-loop-iterations): Document.
1423 * final.c: Include cfgloop.h, params.h
1424 (compute_alignments): Dump decisions and compare them with loop
1425 structure; honor given parameters.
1426 (pass_compute_alignments): New dump file.
1427 * params.def (PARAM_ALIGN_THRESHOLD, PARAM_ALIGN_LOOP_ITERATIONS): New.
1428 * Makefile.in (final.o): Add dependency on cfgloop.h and params.h
1430 2007-10-09 James E. Wilson <wilson@specifix.com>
1432 PR tree-optimization/33655
1434 * tree-sra.c (bitfield_overlaps_p): When fld->element is INTEGER_CST,
1435 convert it to bitsizetype before size_binop call.
1437 2007-10-09 Alexandre Oliva <aoliva@redhat.com>
1439 PR tree-optimization/33572
1440 * tree-inline.c (update_ssa_across_abnormal_edges): Tolerate
1441 the absence of a corresponding edge from the exit block.
1443 2007-10-09 Alexandre Oliva <aoliva@redhat.com>
1446 * tree-sra.c (instantiate_element): Use BYTES_BIG_ENDIAN for
1448 (sra_build_assignment): Likewise. Set up mask depending on
1449 precision, not type.
1450 (sra_build_bf_assignment): Use BYTES_BIG_ENDIAN. Don't overflow
1451 computing bit masks.
1452 (sra_build_elt_assignment): Don't view-convert from signed to
1454 (sra_explode_bitfield_assignment): Use bit-field type if
1455 possible. Use BYTES_BIG_ENDIAN.
1457 2007-10-08 Alexandre Oliva <aoliva@redhat.com>
1460 * tree-sra.c (scalarize_lsdt): Fix thinko in testing whether
1461 the original stmt can throw.
1462 (sra_build_bf_assignment): Fix type mismatch when applying negated
1465 2007-10-08 Geoffrey Keating <geoffk@apple.com>
1467 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register
1468 '#pragma mark' to be executed at preprocessing time.
1470 2007-10-08 Ollie Wild <aaw@google.com>
1472 * varasm.c (compare_constant): Removed call to
1473 lang_hooks.expand_constant.
1474 (copy_constants): Removed call to lang_hooks.expand_constant.
1475 (compute_reloc_for_constant): Removed call to
1476 lang_hooks.expand_constant.
1477 (output_addressed_constants): Removed call to
1478 lang_hooks.expand_constant.
1479 (constructor_static_from_elts_p): Removed call to
1480 lang_hooks.expand_constant.
1481 (output_constant): Removed calls to lang_hooks.expand_constant.
1482 * langhooks.h (struct lang_hooks): Removed field expand_constant.
1483 * langhooks-def.h (lhd_return_tree): Removed.
1484 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
1485 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
1486 * langhooks.c (lhd_return_tree): Removed.
1488 2007-10-08 Mark Shinwell <shinwell@codesourcery.com>
1490 * combine.c (setup_incoming_promotions): Ensure that
1491 arguments that have not undergone mode promotions do not
1492 incorrectly get marked as being sign- or zero-extended.
1494 2007-10-08 Richard Guenther <rguenther@suse.de>
1499 * fold-const.c (fold_binary): Use correct types in folding
1500 of a * (1 << b) to (a << b). Likewise for ~A & ~B to ~(A | B)
1501 and building of RROTATE_EXPR.
1503 2007-10-08 Richard Guenther <rguenther@suse.de>
1508 * fold-const.c (fold_binary): Use the correct types when
1509 folding (A | CST1) & CST2 to (A & CST2) | (CST1 & CST2).
1510 (fold_binary): Use the correct types when folding
1511 (-A) - B to (-B) - A.
1512 (fold_unary): Use the correct types when folding ~(X).
1514 2007-10-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1516 * doc/invoke.texi (Wall): fix formatting issues.
1518 2007-10-07 Richard Sandiford <rsandifo@nildram.co.uk>
1520 * simplify-rtx.c (simplify_binary_operation_1): Canonicalize
1521 truncated shift counts.
1523 2007-10-07 Kazu Hirata <kazu@codesourcery.com>
1525 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
1526 syntax for ASSEMBLER_DIALECT.
1527 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
1529 2007-10-06 Eric Botcazou <ebotcazou@adacore.com>
1530 Nathan Froyd <froydnj@codesourcery.com>
1532 * dwarf2out.c (dwarf2out_frame_init): Check for DWARF2_FRAME_INFO
1533 when determining whether to record INCOMING_RETURN_ADDR_RTX.
1535 2007-10-06 Eric Botcazou <ebotcazou@adacore.com>
1538 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
1540 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
1541 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
1542 the function, temporarily point the debug interface to the null one.
1544 2007-10-06 Alexandre Oliva <aoliva@redhat.com>
1546 PR tree-optimization/33655
1548 * tree-sra.c (bitfield_overlaps_p): Handle array and complex
1551 2007-10-06 Alexandre Oliva <aoliva@redhat.com>
1553 PR tree-optimization/33572
1554 * tree-cfg.c (verify_stmts): Check for missing PHI defs.
1555 * tree-inline.c (update_ssa_across_eh_edges): Renamed to...
1556 (update_ssa_across_abnormal_edges): ... this. Set slots in the
1558 (copy_edges_for_bb): Handle nonlocal label edges.
1559 (make_nonlocal_label_edges): Deleted.
1560 (optimize_inline_calls): Don't call it.
1562 2007-10-05 Hans-Peter Nilsson <hp@axis.com>
1564 * gthr-single.h: Revert last change.
1566 2007-10-05 Michael Matz <matz@suse.de>
1569 * lower-subreg.c (decompose_multiword_subregs): Use
1570 validate_unshare_change().
1572 2007-10-05 Peter Bergner <bergner@vnet.ibm.com>
1574 * ra-conflict.c: Include "sparseset.h".
1575 (conflicts): Change to HOST_WIDEST_FAST_INT.
1576 (allocnos_live): Redefine variable as a sparseset.
1577 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, GET_ALLOCNO_LIVE): Delete macros.
1578 (allocno_row_words): Removed global variable.
1579 (partial_bitnum, max_bitnum, adjacency_pool, adjacency): New variables.
1580 (CONFLICT_BITNUM, CONFLICT_BITNUM_FAST): New defines.
1581 (conflict_p, set_conflict_p, set_conflicts_p): New functions.
1582 (record_one_conflict_between_regnos): Cache allocno values and reuse.
1584 (record_one_conflict): Update uses of allocnos_live to use
1585 the sparseset routines. Use set_conflicts_p.
1586 (mark_reg_store): Likewise.
1587 (set_reg_in_live): Likewise.
1588 (global_conflicts): Update uses of allocnos_live.
1589 Use the new adjacency list to visit an allocno's neighbors
1590 rather than iterating over all possible allocnos.
1591 Call set_conflicts_p to setup conflicts rather than adding
1593 * global.c: Comments updated.
1594 (CONFLICTP): Delete define.
1595 (regno_compare): New function. Add prototype.
1596 (global_alloc): Sort the allocno to regno mapping according to
1597 which basic blocks the regnos are referenced in. Modify the
1598 conflict bit matrix to a compressed triangular bitmatrix.
1599 Only allocate the conflict bit matrix and adjacency lists if
1600 we are actually going to allocate something.
1601 (expand_preferences): Use conflict_p. Update uses of allocnos_live.
1602 (prune_preferences): Use the FOR_EACH_CONFLICT macro to visit an
1603 allocno's neighbors rather than iterating over all possible allocnos.
1604 (mirror_conflicts): Removed function.
1605 (dump_conflicts): Iterate over regnos rather than allocnos so
1606 that all dump output will be sorted by regno number.
1607 Use the FOR_EACH_CONFLICT macro.
1608 * ra.h: Comments updated.
1609 (conflicts): Update prototype to HOST_WIDEST_FAST_INT.
1610 (partial_bitnum, max_bitnum, adjacency, adjacency_pool): Add prototypes.
1611 (ADJACENCY_VEC_LENGTH, FOR_EACH_CONFLICT): New defines.
1612 (adjacency_list_d, adjacency_iterator_d): New types.
1613 (add_neighbor, adjacency_iter_init, adjacency_iter_done,
1614 adjacency_iter_next, regno_basic_block): New static inline functions.
1615 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Removed define.
1616 (conflict_p): Add function prototype.
1617 * sparseset.h, sparseset.c: New files.
1618 * Makefile.in (OBJS-common): Add sparseset.o.
1619 (sparseset.o): New rule.
1621 2007-10-05 Richard Guenther <rguenther@suse.de>
1624 * fold-const.c (fold_unary): Do not fold (long long)(int)ptr
1627 2007-10-05 Michael Matz <matz@suse.de>
1630 * function.c (match_asm_constraints_1): Check for input
1631 being used in the outputs.
1633 2007-10-05 Richard Guenther <rguenther@suse.de>
1635 * tree-cfg.c (verify_gimple_expr): Accept OBJ_TYPE_REF.
1637 2007-10-05 Richard Sandiford <rsandifo@nildram.co.uk>
1640 * config/mips/mips.c (mips_register_move_cost): Rewrite to use
1641 subset checks. Make the cost of FPR -> FPR moves depend on
1642 mips_mode_ok_for_mov_fmt_p.
1644 2007-10-04 Doug Kwan <dougkwan@google.com>
1646 * gthr-posix.h (__gthread_cond_broadcast, __gthread_cond_wait,
1647 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1648 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
1649 support of conditional variables.
1650 * gthr-posix95.h (__gthread_cond_broadcast, __gthread_cond_wait,
1651 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1652 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
1653 support of conditional variables.
1654 * gthr-single.h (__gthread_cond_broadcast, __gthread_cond_wait,
1655 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1656 conditional variables.
1657 * gthr.h: Update comments to document new interface.
1659 2007-10-04 Geoffrey Keating <geoffk@apple.com>
1661 * cgraphunit.c (cgraph_build_static_cdtor): Don't set
1664 2007-10-04 Anatoly Sokolov <aesok@post.ru>
1666 * config/avr/avr.c (expand_epilogue): Don't set RTX_FRAME_RELATED_P.
1668 2007-10-04 Richard Guenther <rguenther@suse.de>
1671 * tree-cfg.c (verify_gimple_expr): Operand one of POINTER_PLUS_EXPR
1672 does not need to be of INTEGER_TYPE.
1673 (verify_gimple_2): New function split out from ...
1674 (verify_gimple_1): ... here. ICE if there was an error during
1677 2007-10-04 Michael Matz <matz@suse.de>
1679 PR rtl-optimization/33653
1680 * dce.c (deletable_insn_p_1): Use volatile_refs_p().
1681 * dse.c (scan_insn): Same.
1683 2007-10-04 Kazu Hirata <kazu@codesourcery.com>
1685 * config.gcc: Remove USE_GAS for m68k targets.
1687 2007-10-04 Richard Guenther <rguenther@suse.de>
1689 PR tree-optimization/33627
1690 * tree-gimple.h (canonicalize_cond_expr_cond): Declare.
1691 * tree-gimple.c (canonicalize_cond_expr_cond): New function,
1693 * tree-ssa-forwprop.c (combine_cond_expr_cond): ... here.
1694 * tree-ssa-ifcombine.c (ifcombine_iforif): Use it.
1696 2007-10-04 Anatoly Sokolov <aesok@post.ru>
1698 * config/avr/avr.c (commands_in_file, commands_in_prologues,
1699 commands_in_epilogues): Remove variables.
1700 (avr_file_start): Remove unneded initializations of commands_in_file,
1701 commands_in_prologues and commands_in_epilogues variables.
1702 (avr_file_end): Remove dead code.
1704 2007-10-04 Kazu Hirata <kazu@codesourcery.com>
1706 * config/m68k/m68k.c (m68k_output_movem): Use the MOTOROLA if
1707 MOTOROLA is to true.
1709 2007-10-03 Richard Sandiford <rsandifo@nildram.co.uk>
1712 * config/mips/mips-protos.h (mips_split_64bit_move): Rename to...
1713 (mips_split_doubleword_move): ...this.
1714 * config/mips/mips.c (mips_subword): Extend to handle 64-bit words;
1715 use natural endianness for multi-format FPR values.
1716 (mips_split_64bit_move): Rename to...
1717 (mips_split_doubleword_move): ...this and extend to 64-bit words.
1718 Use move_doubleword_fpr* patterns for moves involving FPRs.
1719 (mips_save_reg): Update the call to mips_split_64bit_move.
1720 (mips_secondary_reload_class): Return NO_REGS for any reload of a
1721 nonzero constant into an FPR if the constant can be forced to memory.
1722 * config/mips/mips.md: Update the splitter calls to
1723 mips_split_64bit_move.
1724 (UNSPEC_LOAD_DF_LOW): Rename to...
1725 (UNSPEC_LOAD_LOW): ...this.
1726 (UNSPEC_LOAD_DF_HIGH): Rename to...
1727 (UNSPEC_LOAD_HIGH): ...this.
1728 (UNSPEC_STORE_DF_HIGH): Rename to...
1729 (UNSPEC_STORE_WORD): ...this.
1730 (SPLITF): New mode iterator.
1731 (HALFMODE): New mode attribute.
1732 (movtf): New expander.
1733 (*movtf_internal): New define_insn_and_split.
1734 (move_doubleword_fpr<mode>): New expander.
1735 (load_df_low, load_df_high, store_df_high, mthc1, mfhc1): Replace
1737 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1738 (mfhc1<mode>): ...these more general patterns.
1740 2007-10-03 Alexandre Oliva <aoliva@redhat.com>
1742 * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
1744 2007-10-03 Alexandre Oliva <aoliva@redhat.com>
1746 * gcse.c (hash_scan_set): Insert set in insn before note at
1747 the end of basic block.
1749 2007-10-03 Sebastian Pop <sebastian.pop@amd.com>
1751 PR tree-optimization/33576
1752 * testsuite/gcc.dg/tree-ssa/pr33576.c: New.
1753 * tree-loop-linear.c (linear_transform_loops): Call remove_iv.
1754 * lambda.h (lambda_loopnest_to_gcc_loopnest): New parameter.
1755 (remove_iv): Declared.
1756 * lambda-code.c (remove_iv): Not static.
1757 (lambda_loopnest_to_gcc_loopnest): New parameter remove_ivs.
1758 Don't remove ivs there, save ivs in the buffer.
1760 2007-10-03 Jason Merrill <jason@redhat.com>
1763 * tree-eh.c (same_handler_p): New fn.
1764 (optimize_double_finally): New fn.
1765 (refactor_eh_r): New fn.
1766 (refactor_eh): New fn.
1767 (pass_refactor_eh): New pass.
1768 * tree-pass.h: Declare it.
1769 * passes.c (init_optimization_passes): Add it.
1771 2007-10-03 Doug Kwan <dougkwan@google.com>
1772 Richard Guenther <rguenther@suse.de>
1775 * dwarf2out.c (reference_to_unused): Disable sanity checking,
1776 be conservative instead.
1778 2007-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1781 * doc/invoke.texi (-fwhole-program): Document that Fortran
1782 doesn't support this option.
1784 2007-10-02 Richard Sandiford <rsandifo@nildram.co.uk>
1787 * expr.c (expand_expr_addr_expr_1): Pass CONSTRUCTORs to
1790 2007-10-02 David Daney <ddaney@avtrex.com>
1792 * config/mips/mips.md (sync_compare_and_swap<mode>): Handle compare
1793 against constant zero.
1794 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Handle constant zero
1797 2007-09-02 Kenneth Zadeck <zadeck@naturalbridge.com>
1799 * ra-conflict.c: New file.
1801 * reload.c (push_reload, find_dummy_reload): Change DF_RA_LIVE
1802 usage to DF_LIVE usage.
1803 (reload): Remove reference to df_get_live_top.
1804 * rtlanal.c (subreg_nregs_with_regno): New function.
1805 * df-scan.c (df_def_record_1, df_uses_record): Add code to set
1806 DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, and DF_REF_SUBREG flags.
1807 (df_has_eh_preds): Removed.
1808 (df_bb_refs_collect, df_bb_refs_collect, df_bb_refs_collect,
1809 df_exit_block_uses_collect): Changed call from df_has_eh_preds to
1811 * global.c (allocno, max_allocno, conflicts, allocno_row_words,
1812 reg_allocno, EXECUTE_IF_SET_IN_ALLOCNO_SET): Moved to ra.h
1813 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Moved to ra-conflicts.c.
1814 (regs_set, record_one_conflict, record_conflicts, mark_reg_store,
1815 mark_reg_clobber, mark_reg_conflicts, mark_reg_death): Deleted.
1816 (global_alloc): Turn off rescanning insns after call to
1817 global_conflicts and added call to set_preferences.
1818 (global_conflicts): Moved to ra-alloc.c.
1819 (set_preferences_1, set_preferences): New function.
1820 (mirror_conflicts): Changed types for various variables.
1821 (mark_elimination): Change DF_RA_LIVE
1822 usage to DF_LIVE usage.
1823 (build_insn_chain): Rewritten from scratch and made local.
1824 (print_insn_chain, print_insn_chains): New functions.
1825 (dump_conflicts): Do not print conflicts for fixed_regs.
1826 (rest_of_handle_global_alloc): Turn off insn rescanning.
1827 * hard-reg-set.h: Fixed comment.
1828 * local-alloc.c (update_equiv_regs): Change DF_RA_LIVE
1829 usage to DF_LIVE usage and delete refs to TOP sets.
1830 (block_alloc): Mark regs as live if they are in the artificial
1831 defs at top of block.
1832 (find_stack_regs): New function.
1833 (rest_of_handle_local_alloc): Changed urec problem to live
1834 problem and do not turn off df rescanning.
1835 * df.h (DF_UREC, DF_UREC_BB_INFO, DF_LIVE_TOP, DF_RA_LIVE_IN,
1836 DF_RA_LIVE_TOP, DF_RA_LIVE_OUT, df_urec_bb_info, df_urec,
1837 df_urec_add_problem, df_urec_get_bb_info, df_has_eh_preds): Removed.
1838 (DF_CHAIN, DF_NOTE, DF_CHAIN): Renumbered.
1839 (DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, DF_REF_SUBREG): New
1840 fields in df_ref_flags. The rest have been renumbered.
1841 * init-regs.c (initialize_uninitialized_regs): Enhanced debugging
1843 * rtl.h (subreg_nregs_with_regno): New function.
1844 * df-problems.c: (df_get_live_out, df_get_live_in,
1845 df_get_live_top): Removed reference to DF_RA_LIVE.
1846 (df_lr_reset, df_lr_transfer_function, df_live_free_bb_info,
1847 df_live_alloc, df_live_reset, df_live_local_finalize,
1848 df_live_free): Make top set only if different from in set.
1849 (df_lr_top_dump, df_live_top_dump): Only print top set if
1850 different from in set.
1851 (df_lr_bb_local_compute): Removed unnecessary check.
1852 (df_urec_problem_data, df_urec_set_bb_info, df_urec_free_bb_info,
1853 df_urec_alloc, df_urec_mark_reg_change, earlyclobber_regclass,
1854 df_urec_check_earlyclobber, df_urec_mark_reg_use_for_earlyclobber,
1855 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
1856 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
1857 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
1858 df_urec_top_dump, df_urec_bottom_dump, problem_UREC,
1859 df_urec_add_problem): Removed.
1860 (df_simulate_fixup_sets): Changed call from df_has_eh_preds to
1862 * Makefile.in (ra-conflict.o, ra.h): New dependencies.
1863 * basic_block.h (bb_has_abnormal_pred): New function.
1864 * reload1.c (compute_use_by_pseudos): Change DF_RA_LIVE
1865 usage to DF_LIVE usage.
1867 2007-10-02 Revital Eres <eres@il.ibm.com>
1869 * config/rs6000/predicates.md (easy_vector_constant): Return false
1870 for 750CL paired vectors.
1871 * config/rs6000/paired.md (movv2sf_paired): Fix move of easy
1873 (vec_initv2sf): Add new description.
1874 (vconcatsf): Likewise.
1875 * config/rs6000/rs6000-protos.h: Declare paired_expand_vector_init.
1876 * config/rs6000/rs6000.c (paired_expand_vector_init): New function.
1878 2007-10-01 Alexandre Oliva <aoliva@redhat.com>
1880 * tree-ssa-sink.c (sink_code_in_bb): Don't stop sinking after
1881 sinking the last stmt in a BB.
1883 2007-10-01 Alexandre Oliva <aoliva@redhat.com>
1886 * tree-sra.c (struct sra_elt): Add in_bitfld_block.
1887 (sra_hash_tree): Handle BIT_FIELD_REFs.
1888 (sra_elt_hash): Don't hash bitfld blocks.
1889 (sra_elt_eq): Skip them in parent compares as well. Handle
1891 (build_element_name_1): Handle BIT_FIELD_REFs.
1892 (instantiate_element): Propagate nowarn from parents. Create
1893 BIT_FIELD_REF for variables that are widened by scalarization.
1894 Gimple-zero-initialize all bit-field variables that are not
1895 part of parameters that are going to be scalarized on entry.
1896 (instantiate_missing_elements_1): Return the sra_elt.
1897 (canon_type_for_field): New.
1898 (try_instantiate_multiple_fields): New. Infer widest possible
1899 access mode from decl or member type, but clip it at word
1900 size, and only widen it if a field crosses an alignment
1902 (instantiate_missing_elements): Use them.
1903 (generate_one_element_ref): Handle BIT_FIELD_REFs.
1904 (scalar_bitfield_p): New.
1905 (sra_build_assignment): Optimize assignments from scalarizable
1906 BIT_FIELD_REFs. Use BITS_BIG_ENDIAN to determine shift
1909 (sra_build_bf_assignment): New. Optimize assignments to
1910 scalarizable BIT_FIELD_REFs.
1911 (sra_build_elt_assignment): New. Optimize BIT_FIELD_REF
1912 assignments to full variables.
1913 (generate_copy_inout): Use the new macros and functions.
1914 (generate_element_copy): Likewise. Handle bitfld differences.
1915 (generate_element_zero): Don't recurse for blocks. Use
1916 sra_build_elt_assignment.
1917 (generate_one_element_init): Take elt instead of var. Use
1918 sra_build_elt_assignment.
1919 (generate_element_init_1): Adjust.
1920 (bitfield_overlap_info): New struct.
1921 (bitfield_overlaps_p): New.
1922 (sra_explode_bitfield_assignment): New. Adjust widened
1923 variables to account for endianness.
1924 (sra_sync_for_bitfield_assignment): New.
1925 (scalarize_use): Re-expand assignment to/from scalarized
1926 BIT_FIELD_REFs. Explode or sync needed members for
1927 BIT_FIELD_REFs accesses or assignments. Use REPLDUP.
1928 (scalarize_copy): Use REPLDUP.
1929 (scalarize_ldst): Move assert before dereference. Adjust EH
1931 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
1933 2007-10-01 Paolo Bonzini <bonzini@gnu.org>
1935 * simplify-rtx.c (comparison_result, simplify_relational_operation_1):
1936 Rename CR_* constants to CMP_*. Fix spacing.
1938 2007-10-01 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1941 * Makefile.in (build_html_dir/gccinstall): gccinstall.texi needs
1942 to be processed with the special script doc/install.texi2html.
1944 2007-09-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1946 * doc/invoke.texi (Wall): List the options enabled by Wall.
1947 (Wstrict-aliasing): Add missing @option.
1949 2007-09-30 Richard Sandiford <rsandifo@nildram.co.uk>
1951 * config/mips/mips.c (mips_split_64bit_move): Use gen_rtx_REG_offset
1952 rather than gen_lowpart to change a register from DImode to DFmode.
1953 (mips_cannot_change_mode_class): Only allow FPRs to change mode if
1954 both FROM and TO are integer modes that are no bigger than 4 bytes.
1955 (mips_mode_ok_for_mov_fmt_p): New function.
1956 (mips_preferred_reload_class): Use it instead of FLOAT_MODE_P.
1957 (mips_secondary_reload_class): Tweak formatting and comments.
1958 Use reg_class_subset_p instead of direct comparisons with
1959 classes. Only allow direct FPR<->FPR moves for modes that
1960 satisfy mips_mode_ok_for_mov_fmt_p. Only allow loads and stores
1961 for 4- and 8-byte types. Handle reloads in which X is an FPR.
1962 * config/mips/mips.md (*movdi_gp32_fp64): Remove f<-f alternative.
1963 (*movdi_64bit): Likewise.
1964 (*movsi_internal): Likewise.
1965 (*movhi_internal): Likewise.
1966 (*movqi_internal): Likewise.
1968 2007-09-30 Diego Novillo <dnovillo@google.com>
1971 * tree-ssa-ter.c (is_replaceable_p): Return false if STMT may
1974 2007-09-30 Uros Bizjak <ubizjak@gmail.com>
1976 PR tree-optimization/33597
1977 * tree-vect-analyze.c (vect_build_slp_tree): Check if optab handler
1978 for LSHIFT_EXPR and RSHIFT_EXPR is available for vec_mode.
1980 2007-09-28 Uros Bizjak <ubizjak@gmail.com>
1982 * config/i386/i386.c (ix86_expand_move): Use can_create_pseudo_p ()
1983 instead of variants of (!reload_in_progress && !reload_completed).
1984 (x86_expand_vector_move): Ditto.
1986 2007-09-28 Ollie Wild <aaw@google.com>
1989 2007-09-27 Ollie Wild <aaw@google.com>
1991 * varasm.c (compare_constant): Removed call to
1992 lang_hooks.expand_constant.
1993 (copy_constants): Removed call to lang_hooks.expand_constant.
1994 (compute_reloc_for_constant): Removed call to
1995 lang_hooks.expand_constant.
1996 (output_addressed_constants): Removed call to
1997 lang_hooks.expand_constant.
1998 (constructor_static_from_elts_p): Removed call to
1999 lang_hooks.expand_constant.
2000 (output_constant): Removed calls to lang_hooks.expand_constant.
2001 * langhooks.h (struct lang_hooks): Removed field expand_constant.
2002 * langhooks-def.h (lhd_return_tree): Removed.
2003 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
2004 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
2005 * langhooks.c (lhd_return_tree): Removed.
2007 2007-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2010 * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
2011 argument to gen_selb.
2013 2007-09-28 Chao-ying Fu <fu@mips.com>
2015 * libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.
2016 * doc/libgcc.texi (Fixed-point fractional library routines):
2017 Fix typos for neg and cmp functions.
2019 2007-09-28 Michael Matz <matz@suse.de>
2021 PR rtl-optimization/33552
2022 * function.c (match_asm_constraints_1): Check for overlap in
2023 inputs and replace all occurences.
2025 2007-09-28 Richard Sandiford <rsandifo@nildram.co.uk>
2027 * config/mips/mips.c (override_options): Fix comment typo.
2029 2007-09-28 Jie Zhang <jie.zhang@analog.com>
2031 * config.gcc (bfin*-linux-uclibc*): Set extra_parts
2032 to "crtbegin.o crtbeginS.o crtend.o crtendS.o".
2033 * config/bfin/t-bfin-linux (crti.o): Don't build.
2035 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
2036 * config/bfin/t-bfin-uclinux (crti.o): Don't build.
2038 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
2040 2007-09-27 Ollie Wild <aaw@google.com>
2042 * varasm.c (compare_constant): Removed call to
2043 lang_hooks.expand_constant.
2044 (copy_constants): Removed call to lang_hooks.expand_constant.
2045 (compute_reloc_for_constant): Removed call to
2046 lang_hooks.expand_constant.
2047 (output_addressed_constants): Removed call to
2048 lang_hooks.expand_constant.
2049 (constructor_static_from_elts_p): Removed call to
2050 lang_hooks.expand_constant.
2051 (output_constant): Removed calls to lang_hooks.expand_constant.
2052 * langhooks.h (struct lang_hooks): Removed field expand_constant.
2053 * langhooks-def.h (lhd_return_tree): Removed.
2054 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
2055 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
2056 * langhooks.c (lhd_return_tree): Removed.
2058 2007-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2061 * expr.c (emit_group_load_1): Split constant double when destination
2062 length is half source length.
2064 2007-09-27 Richard Sandiford <rsandifo@nildram.co.uk>
2066 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): New macro.
2067 (mips_cpu_info): Add tune_flags.
2068 (GENERATE_BRANCHLIKELY): Remove TARGET_SR71K check.
2069 * config/mips/mips.c (mips_cpu_info_table): Add tune_flags fields.
2071 (override_options): Remove deprecation code. Use branch-likely
2072 instructions for optimize_size or if the tuning flags do not
2073 suggest otherwise. Tweak warning.
2074 (mips_matching_cpu_name_p, mips_parse_cpu): Use ARRAY_SIZE.
2076 2007-09-27 Matthias Klose <doko@ubuntu.com>
2078 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
2079 multilib osdirname if it exists.
2080 * config/rs6000/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
2082 2007-09-27 Ian Lance Taylor <iant@google.com>
2084 PR tree-optimization/33565
2085 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING on
2086 assignments of comparisons.
2087 * tree-ssa-sccvn.c (simplify_binary_expression): Add stmt
2088 parameter. Change caller. Defer overflow warnings around call to
2090 * fold-const.c (fold_undefer_overflow_warnings): Don't warn if
2091 TREE_NO_WARNING is set on the statement.
2092 * tree-ssa-forwprop.c
2093 (tree_ssa_forward_propagate_single_use_vars): Don't test
2094 TREE_NO_WARNING when calling fold_undefer_overflow_warnings.
2095 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2097 2007-09-27 Joseph Myers <joseph@codesourcery.com>
2099 * config/rs6000/rs6000.c (rs6000_legitimize_address): Do not
2100 reduce offset by units of 0x10000 for SPE vector modes or modes
2101 used with E500 double instructions.
2103 2007-09-04 Paolo Bonzini <bonzini@gnu.org>
2105 * simplify-rtx.c (comparison_result): New.
2106 (simplify_const_relational_operation): Use it instead of the five
2107 "equal|op[01]ltu?" variables; consequently remove redundant "else"s.
2108 Improve bounds-checking optimizations; remove subsumed POPCOUNT
2109 optimizations. Extract nonzero_address_p optimizations into a
2110 separate "if" together with optimizations where op1 is const0_rtx.
2111 Optimize comparing an IOR with zero. Simplify op0 RELOP op0 for
2112 floating-point arguments too when appropriate. Hoist test for ABS
2113 outside the final switch statement.
2114 * cse.c (fold_rtx): Don't look for an IOR equivalent of
2115 folded_arg0 if we found a constant equivalent. Remove
2116 transformations done in simplify-rtx.c for "op0 RELOP op0".
2118 2007-09-27 Jakub Jelinek <jakub@redhat.com>
2120 * builtins.c (expand_builtin, expand_builtin_object_size,
2121 expand_builtin_memory_chk, maybe_emit_chk_warning,
2122 maybe_emit_sprintf_chk_warning): Use new %K format string specifier
2124 * expr.c (expand_expr_real_1): Likewise.
2125 * langhooks-def.h (struct diagnostic_info): Add forward decl.
2126 (lhd_print_error_function): Add third argument.
2127 * langhooks.h (struct diagnostic_info): Add forward decl.
2128 (struct lang_hooks): Add third argument to print_error_function.
2129 * diagnostic.h (diagnostic_info): Add abstract_origin field.
2130 (diagnostic_last_function_changed, diagnostic_set_last_function): Add
2132 (diagnostic_report_current_function): Likewise.
2133 * toplev.c (announce_function): Pass NULL as second argument to
2134 diagnostic_set_last_function.
2135 * diagnostic.c (diagnostic_report_current_function): Add second
2136 argument, pass it as third argument to lang_hooks.print_error_function.
2137 (default_diagnostic_starter): Pass DIAGNOSTIC as second argument
2138 to diagnostic_report_current_function.
2139 (diagnostic_report_diagnostic): Initialize diagnostic->abstract_origin
2140 and message.abstract_origin.
2141 (verbatim): Initialize abstract_origin.
2142 * pretty-print.h (text_info): Add abstract_origin field.
2143 * pretty-print.c (pp_base_format): Handle %K.
2144 * langhooks.c (lhd_print_error_function): Add third argument. If
2145 diagnostic->abstract_origin, print virtual backtrace.
2146 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2147 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Support %K.
2148 (init_dynamic_diag_info): Likewise.
2150 2007-09-26 David Daney <ddaney@avtrex.com>
2153 * config/mips/mips.md (sync_compare_and_swap<mode>, sync_old_add<mode>,
2154 sync_new_add<mode>, sync_old_<optab><mode>, sync_new_<optab><mode>,
2155 sync_old_nand<mode>, sync_new_nand<mode>,
2156 sync_lock_test_and_set<mode>): Fix '&' constraint modifiers.
2157 Update length attributes.
2158 (sync_add<mode>, sync_sub<mode>, sync_old_sub<mode>,
2159 sync_new_sub<mode>, sync_<optab><mode>, sync_nand<mode>): Update
2161 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP,
2162 MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND,
2163 MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Add
2166 2007-09-26 Richard Guenther <rguenther@suse.de>
2168 PR tree-optimization/33563
2169 * tree-ssa-dse.c (get_use_of_stmt_lhs): Rename to ...
2170 (get_kill_of_stmt_lhs): ... this. Re-structure. Handle
2172 (dse_optimize_stmt): Call get_kill_of_stmt_lhs instead of
2173 get_use_of_stmt_lhs.
2175 2007-09-26 Joseph Myers <joseph@codesourcery.com>
2178 * c-common.c (complete_array_type): Diagnose too-large arrays and
2179 set type to error_mark_node.
2181 2007-09-26 Richard Guenther <rguenther@suse.de>
2183 PR tree-optimization/30375
2184 PR tree-optimization/33560
2185 * tree-ssa-dse.c (get_use_of_stmt_lhs): Give up on uses
2189 2006-05-22 Aldy Hernandez <aldyh@redhat.com>
2191 * tree-ssa-dse.c (aggregate_vardecl_d): New.
2192 (dse_global_data): Add aggregate_vardecl field.
2193 (dse_possible_dead_store_p): New.
2194 Add prev_defvar variable.
2195 Allow immediate uses and previous immediate uses to differ
2196 if they are setting different parts of the whole.
2197 (get_aggregate_vardecl): New.
2198 (dse_record_partial_aggregate_store): New.
2199 (dse_whole_aggregate_clobbered_p): New.
2200 (dse_partial_kill_p): New.
2201 Call dse_maybe_record_aggregate_store().
2202 When checking whether a STMT and its USE_STMT refer to the
2203 same memory address, check also for partial kills that clobber
2205 Move some variable definitions to the block where they are used.
2206 (aggregate_vardecl_hash): New.
2207 (aggregate_vardecl_eq): New.
2208 (aggregate_vardecl_free): New.
2209 (aggregate_whole_store_p): New.
2210 (tree_ssa_dse): Initialize and free aggregate_vardecl.
2211 Mark which aggregate stores we care about.
2213 2007-09-25 DJ Delorie <dj@redhat.com>
2216 * config/m32c/m32c.c (m32c_immd_dbl_mov): Use INTVAL instead of
2219 2007-09-25 Michael Meissner <michael.meissner@amd.com>
2222 * config/i386/i386.c (ix86_expand_sse5_unpack): Change to call
2223 gen_sse5_pperm_sign_v4si_v2di and gen_sse5_pperm_zero_v4si_v2di
2224 for vector int32 -> int64 conversions. Don't write beyond the end
2225 of the allocated vector for int32 -> int64 conversions.
2227 2007-09-25 Revital Eres <eres@il.ibm.com>
2229 * config/rs6000/paired.h (paired_sel): New.
2230 * config/rs6000/rs6000.c (bdesc_3arg): Add selv2sf4.
2231 (rs6000_expand_ternop_builtin): Pass zero const_double operand
2232 when expanding selv2sf.
2233 * config/rs6000/rs6000.h (rs6000_builtins): Add
2234 PAIRED_BUILTIN_SELV2SF4.
2236 2007-09-25 Joseph Myers <joseph@codesourcery.com>
2239 * c-typeck.c (default_conversion): Call require_complete_type
2240 before perform_integral_promotions.
2241 (build_unary_op): Call require_complete_type except for ADDR_EXPR.
2242 (build_c_cast): Call require_complete_type except for casts to
2244 (convert_for_assignment): Call require_complete_type.
2246 2007-09-25 Revital Eres <eres@il.ibm.com>
2248 * config/spu/spu.md: Fix doloop pattern.
2250 2007-09-25 Bernd Schmidt <bernd.schmidt@analog.com>
2252 * config/bfin/bfin.c (expand_prologue_reg_save,
2253 expand_epilogue_reg_restore): Code to save and restore I/M/B/L regs and
2255 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
2256 ... from here. New argument ALL; callers changed.
2257 (n_regs_saved_by_prologue): Count ASTAT for plain saveall functions.
2258 (bfin_expand_prologue, bfin_expand_epilogue): Deal with functions that
2259 have the "saveall" attribute.
2261 2007-09-25 Hans-Peter Nilsson <hp@bitrange.com>
2263 * config/mmix/mmix.h (FUNCTION_INCOMING_ARG_REGNO_P): Don't define
2265 (INCOMING_REGNO, OUTGOING_REGNO): Define.
2266 * config/mmix/mmix.c (mmix_opposite_regno): New function.
2267 * config/mmix/mmix-protos.h (mmix_opposite_regno): Prototype.
2269 * config/mmix/mmix.md ("*cmpcc_folded"): In condition, gate
2270 with REG_P tests before REGNO access.
2272 2007-09-24 DJ Delorie <dj@redhat.com>
2275 * config/m32c/cond.md (stzx_reversed_<mode>): Add an output
2277 (movqicc_<code>_<mode>): Likewise.
2278 (movhicc_<code>_<mode>): Likewise.
2280 2007-09-24 Rask Ingemann Lambertsen <rask@sygehus.dk>
2283 * config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
2284 register for reload.
2286 2007-09-24 Danny Smith <dannysmith@user.sourceforge.net>
2289 * config/i386/i386.c (ix86_comp_type_attributes): Check
2292 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2294 * config/m68k/m68k.h (ASM_OUTPUT_ALIGN_WITH_NOP): New, use
2295 "move.l %a4,%a4" to produce nops.
2296 * config/m68k/m68k.c (override_options): Reset align options,
2297 if neccessary align macro isn't avaible.
2299 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2301 config/m68k/linux.h (PREFERRED_STACK_BOUNDARY): New.
2303 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2305 * config/m68k/m68k.c (strict_low_part_peephole_ok): Don't leave
2307 * config/m68k/m68k.md (movsi_m68k): Allow certain constant when
2308 reload is completed.
2309 (peephole pattern): Convert most of them to RTL peephole pattern.
2311 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2313 * config/m68k/m68k.c (notice_update_cc): Recognize fp compare
2314 (moved from fp compare patterns).
2315 * config/m68k/m68k.md (cmp<mode>, cmp<mode>_68881, cmp<mode>_cf):
2316 Cleanup predicates to relieve reload.
2317 (conditional_trap): Reject conditional trap with fp condition.
2318 * gcc/config/m68k/predicates.md (fp_src_operand): New, reject
2319 certain constants early.
2321 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2323 * gcc/final.c (final_scan_insn): Remove accidentally duplicated code.
2325 2007-09-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2327 * config.gcc (powerpc*-*-*): --with-cpu=cell is a 64bit CPU.
2328 Allow --with-tune=cell and --with-cpu=cell.
2330 2007-09-24 David Edelsohn <edelsohn@gnu.org>
2332 * config/rs6000/rs6000-protos.h (rs6000_emit_swrsqrtsf): Declare.
2333 * config/rs6000/rs6000.opt (swdiv): Change option to ...
2335 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): New
2337 (TARGET_BUILTIN_RECIPROCAL): Use it.
2338 (rs6000_builtin_expand): Expand recip, recipf, and rsqrtf.
2339 (rs6000_init_builtins): Initialize recip, recipf, and rsqrtf.
2340 (rs6000_emit_swrsqrtsf): New.
2341 * config/rs6000/rs6000.h (rs6000_builtins): Add recip, recipf, and
2343 * config/rs6000/rs6000.md (UNSPEC_RSQRT): Define.
2344 (divsf3): Remove swdiv support.
2347 (rsqrt_internal1): New.
2348 (divdf3): Remove swdiv support.
2351 2007-09-24 Jakub Jelinek <jakub@redhat.com>
2354 * langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
2356 * langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
2357 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
2358 * tree.c (type_hash_eq): For FUNCTION_TYPE use
2359 lang_hooks.type.type_hash_eq in addition to generic tests.
2361 2007-09-24 Pranav Bhandarkar <pranav.bhandarkar@celunite.com>
2362 Ramana Radhakrishnan <ramana@hercules.pun.celunite.com>
2364 * tree-inline.h (eni_weights): Add field target_builtin_cost to
2365 reflect the cost per call to a target specific builtin.
2366 * tree-inline.c (estimate_num_insns_1): If it is a CALL_EXPR for a
2367 call to a target specific builtin, then use target_builtin_call_cost.
2368 (init_inline_once): Initialize target_builtin_call_cost field.
2370 2007-09-24 Kai Tietz <kai.tietz@onevision.com>
2373 * config/i386/i386.c (return_in_memory_ms_64): Handle return types for
2376 2007-09-23 H.J. Lu <hongjiu.lu@intel.com>
2378 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
2379 * configure: Regenerated.
2381 2007-09-23 Ollie Wild <aaw@google.com>
2383 * fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer
2385 (get_pointer_modulus_and_residue): New function.
2387 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2389 * config/mips/mips.c (build_mips16_call_stub): On 64-bit targets,
2390 combine an SC return value into a single register.
2392 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2394 * opth-gen.awk (target_flags_explicit): Declare.
2395 * toplev.h (target_flags_explicit): Delete declaration.
2396 * toplev.c (target_flags): Likewise.
2397 * config/mips/mips.h (mips_llsc_setting, mips_llsc): Delete.
2398 (GENERATE_SYNC, GENERATE_LL_SC): Redefine using target_explicit_flags.
2399 Never return true for TARGET_MIPS16.
2400 * config/mips/mips.c (mips_llsc): Delete.
2401 (mips_handle_option): Remove -mllsc handling.
2402 (mips_strip_unspec_address): Tweak comment.
2403 * config/mips/mips.opt (mllsc): Use a target mask.
2405 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2407 * doc/tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to
2408 word_mode as well as Pmode.
2410 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2412 * function.c (assign_parm_setup_block): Explicitly convert BLKmode
2413 parameters from word_mode to the subword type if such a truncation
2416 2007-09-23 Jakub Jelinek <jakub@redhat.com>
2418 * configure.ac (MAKEINFO): Handle makeinfo version 4.10 and above.
2419 * configure: Regenerated.
2421 2007-09-23 Jan Hubicka <jh@suse.cz>
2423 * params.def (INLINE_CALL_COST): Set to 12.
2424 * invoke.texi (inline-call-cost): Update default value.
2426 2007-09-23 Eric Botcazou <ebotcazou@adacore.com>
2428 * config/alpha/alpha.md (movti): Use operand_subword for the split.
2430 2007-09-23 Ayal Zaks <zaks@il.ibm.com>
2431 Revital Eres <eres@il.ibm.com>
2433 * modulo-sched.c (doloop_register_get): Rewrite the loop which
2434 checks whether the count_reg is found outside the control part.
2436 2007-09-23 Jakub Jelinek <jakub@redhat.com>
2438 * expr.c (expand_expr_real_1) <case CALL_EXPR>: Use get_callee_fndecl
2439 instead of checking CALL_EXPR_FN directly to test for builtins.
2440 If error or warning attributes are present, print
2441 error resp. warning.
2442 * c-common.c (handle_error_attribute): New function.
2443 (c_common_attribute_table): Add error and warning
2445 * doc/extend.texi: Document error and warning attributes.
2447 * tree.h (block_nonartificial_location): New prototype.
2448 * tree.c (block_nonartificial_location): New function.
2449 * dwarf2out.c (gen_subprogram_die): Add DW_AT_artificial
2450 if artificial attribute is present on abstract inline decl.
2451 * c-common.c (handle_artificial_attribute): New function.
2452 (c_common_attribute_table): Add artificial attribute.
2453 * final.c (override_filename, override_linenum): New variables.
2454 (final_scan_insn): For DBX_DEBUG or SDB_DEBUG, set override_filename
2455 and override_linenum if inside of a block inlined from
2456 __attribute__((__artificial__)) function.
2457 (notice_source_line): Honor override_filename and override_linenum.
2458 * doc/extend.texi: Document __attribute__((__artificial__)).
2459 * config/i386/emmintrin.h: Add __artificial__ attribute to
2460 all __always_inline__ functions.
2461 * config/i386/mmintrin.h: Likewise.
2462 * config/i386/tmmintrin.h: Likewise.
2463 * config/i386/mm3dnow.h: Likewise.
2464 * config/i386/pmmintrin.h: Likewise.
2465 * config/i386/ammintrin.h: Likewise.
2466 * config/i386/xmmintrin.h: Likewise.
2467 * config/i386/smmintrin.h: Likewise.
2468 * config/i386/bmmintrin.h: Likewise.
2469 * config/i386/mmintrin-common.h: Likewise.
2472 * expr.c (expand_constructor): New function.
2473 (expand_expr_real_1) <case CONSTRUCTOR>: Call it.
2474 (expand_expr_real_1) <case ARRAY_REF>: Call it if VALUE is
2477 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2479 * config/mips/mips.c (dump_constants_1): Generalize to include
2480 fractional and accumulator modes.
2482 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2484 * config/mips/mips.h (ISA_HAS_DSP, ISA_HAS_DSPR2): New macros.
2485 * config/mips/mips.c (mips_set_mips16_mode): Don't clear the DSP
2487 (override_options): Check TARGET_HARD_FLOAT_ABI instead of
2488 TARGET_HARD_FLOAT when testing whether -mpaired-single is
2490 (mips_conditional_register_usage): Check ISA_HAS_DSP instead of
2492 * config/mips/constraints.md (ka): Check ISA_HAS_DSPR2 instead of
2494 * config/mips/mips.md (ANYF): Require TARGET_HARD_FLOAT for V2SF.
2495 (mulv2sf3, movv2sf, movv2sf_hardfloat_64bit): Require
2497 (<u>mulsidi3_32bit_internal, <u>msubsidi4, <u>maddsidi4): Check
2498 ISA_HAS_DSPR2 instead of TARGET_HAS_DSPR2.
2499 * config/mips/mips-dsp.md: Use ISA_HAS_DSP instead of TARGET_HAS_DSP
2501 * config/mips/mips-dspr2.md: Likewise ISA_HAS_DSPR2 and
2503 * config/mips/mips-fixed.md: Use ISA_HAS_DSP and ISA_HAS_DSPR2
2504 instead of TARGET_HAS_DSP and TARGET_HAS_DSPR2.
2505 * config/mips/mips-ps-3d.md: Add TARGET_HARD_FLOAT to V2SF patterns.
2507 2007-09-22 Jason Merrill <jason@redhat.com>
2510 * attribs.c (lookup_attribute_spec): Split out...
2511 (decl_attributes): From here.
2512 * tree.h: Declare it.
2514 2007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
2516 * doc/sourcebuild.texi: Document dg-add-options mips16_attribute.
2518 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2520 * tree-inline.c (remap_type_1): Correctly chain variants.
2522 2007-09-22 Richard Guenther <rguenther@suse.de>
2524 PR tree-optimization/33146
2525 * fold-const.c (fold_binary): Use the original tree
2527 * tree.h (STRIP_SIGN_NOPS): Converting from or to pointer
2528 also changes "sign".
2530 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2533 * except.c (finish_eh_generation): Call commit_edge_insertions if
2534 there are insns queued on the entry edge.
2535 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns on
2538 2007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
2540 * doc/sourcebuild.texi (dg-add-c99-runtime-options): Document.
2542 2007-09-19 Michael Meissner <michael.meissner@amd.com>
2544 * gcc/config/i386/i386.c: Delete trailing whitespace.
2545 * gcc/config/i386/i386.h: Ditto.
2546 * gcc/config/i386/bmmintrin.h: Ditto.
2547 * gcc/config/i386/sync.md: Ditto.
2548 * gcc/config/i386/ppro.md: Ditto.
2549 * gcc/config/i386/mmx.md: Ditto.
2550 * gcc/config/i386/constraints.md: Ditto.
2551 * gcc/config/i386/sse.md: Ditto.
2552 * gcc/config/i386/athlon.md: Ditto.
2553 * gcc/config/i386/i386.md: Ditto.
2555 2007-09-21 Richard Guenther <rguenther@suse.de>
2557 PR tree-optimization/33508
2558 * tree-ssa-alias.c (mark_aliases_call_clobbered): Avoid
2559 quadratic loop by keeping a bitmap of variables we have
2560 to clobber all subvariables for.
2561 (set_initial_properties): Likewise.
2563 2007-09-21 Richard Sandiford <rsandifo@nildram.co.uk>
2565 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Delete.
2567 2007-09-20 Nigel Stephens <nigel@mips.com>
2568 Chao-ying Fu <fu@mips.com>
2570 * c-decl.c (finish_declspecs): When _Sat is used without
2571 _Fract or _Accum, set the default type to cts_fract.
2572 This avoids a warning of "type defaults to int".
2574 2007-09-20 Joseph Myers <joseph@codesourcery.com>
2576 * c-decl.c (check_bitfield_type_and_width): Don't allow _Bool
2577 bit-fields wider than one bit.
2579 2007-09-20 Jakub Jelinek <jakub@redhat.com>
2582 * dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
2584 * dbxout.c (dbxout_type): Likewise.
2588 * gimplify.c (gimplify_vla_decl): New function.
2589 (gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
2591 (gimplify_target_expr): Handle variable length TARGET_EXPRs.
2593 2007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
2595 * doc/invoke.texi (-minterlink-mips16): Document.
2596 * config/mips/mips.opt (minterlink-mips16): New option.
2597 * config/mips/mips.c (mips_function_ok_for_sibcall): Handle
2600 2007-09-20 Joseph Myers <joseph@codesourcery.com>
2602 * doc/extend.texi (Attribute Syntax): Remove old speculative
2605 2007-09-20 Mark Shinwell <shinwell@codesourcery.com>
2607 * combine.c: Include cgraph.h.
2608 (setup_incoming_promotions): Rework to allow more aggressive
2609 elimination of sign extensions when all call sites of the
2610 current function are known to lie within the current unit.
2612 2007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
2614 * dse.c (find_shift_sequence): No-op rework of control flow.
2616 2007-09-19 Richard Sandiford <rsandifo@nildram.co.uk>
2618 * config/mips/mips.c (build_mips16_call_stub): Tidy. Fix second
2619 GPR for DCmode on 64-bit targets. Remove redundant fallback.
2621 2007-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
2623 * cfgexpand.c (dump_stack_var_partition): Use the correct
2624 index for the offset.
2626 2007-09-19 Joseph Myers <joseph@codesourcery.com>
2628 * config/mips/sde.h: Switch to GPLv3.
2630 2007-09-19 Eric Botcazou <ebotcazou@adacore.com>
2632 * tree-sra.c (decide_block_copy): Decide if there are groups.
2634 2007-09-19 Roman Zippel <zippel@linux-m68k.org>
2636 * config/m68k/m68k.c (output_move_himode): Remove jump table
2638 config/m68k/m68k.md (lea): Likewise.
2639 * config/m68k/m68k.c (print_operand_address): Use simple pc
2640 relative addressing.
2642 2007-09-19 Bernd Schmidt <bernd.schmidt@analog.com>
2644 * doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.
2645 * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument
2647 (asm_insn_count): Pass template as second argument to it.
2648 * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2649 * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2650 * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2651 * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2652 * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2653 (sh_insn_length_adjustment): Pass template as second argument to it.
2654 * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro.
2656 * config/bfin/bfin.md (define_asm_attributes): New.
2658 2007-09-19 Jie Zhang <jie.zhang@analog.com>
2660 * config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h
2662 * config/bfin/print-sysroot-suffix.sh: New.
2663 * config/bfin/t-bfin-elf (EXTRA_PARTS): Remove.
2664 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2665 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2666 * config/bfin/t-bfin-uclinux (EXTRA_PARTS): Remove.
2667 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2668 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2669 * config/bfin/t-bfin-linux (EXTRA_PARTS): Remove.
2670 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2671 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2672 (linux-sysroot-suffix.h): New target.
2673 * config/bfin/bfin.opt (mcsync-anomaly): Use Var instead of Mask.
2674 (mspecld-anomaly): Likewise.
2675 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Renamed from
2676 (enum bfin_cpu): ... this. Add BFIN_CPU_BF522, BFIN_CPU_BF525,
2677 BFIN_CPU_BF527, BFIN_CPU_BF538, BFIN_CPU_BF539, BFIN_CPU_BF542,
2678 BFIN_CPU_BF544, BFIN_CPU_BF548, and BFIN_CPU_BF549.
2679 (bfin_si_revision): Declare.
2680 (bfin_workarounds): Declare.
2681 (WA_SPECULATIVE_LOADS): Define.
2682 (ENABLE_WA_SPECULATIVE_LOADS): Define.
2683 (WA_SPECULATIVE_SYNCS): Define.
2684 (ENABLE_WA_SPECULATIVE_SYNCS): Define.
2685 * config/bfin/elf.h (STARTFILE_SPEC): Rename crt532.o to basiccrt.o.
2686 (LIB_SPEC): Add %s to the linker scripts.
2687 Use proper linker script for bf522, bf525, bf527,
2688 bf538, bf539, bf542, bf544, bf548, and bf549.
2689 * config/bfin/bfin.c (bfin_si_revision): Define.
2690 (bfin_workarounds): Define.
2691 (struct bfin_cpu): New.
2693 (bfin_handle_option): Handle silicon revision part of -mcpu option.
2694 (override_options): Set bfin_workarounds.
2695 (length_for_loop): Replace TARGET_CSYNC_ANOMALY with
2696 ENABLE_WA_SPECULATIVE_SYNCS, TARGET_SPECLD_ANOMALY with
2697 ENABLE_WA_SPECULATIVE_LOADS.
2698 (bfin_reorg): Likewise.
2699 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2700 macros for bf522, bf525, bf527, bf538, bf539,
2701 bf542, bf544, bf548, and bf549.
2702 Define __SILICON_REVISION__ and __WORKAROUND_* macros if needed.
2703 Don't define __ID_SHARED_LIB__ when -msep-data.
2704 (TARGET_DEFAULT): Define as 0.
2705 (DRIVER_SELF_SPECS): Add -mcpu=bf532 if no -mcpu option.
2706 * doc/invoke.texi (Blackfin Options): Document silicon
2707 revision part of -mcpu option and it now accepts bf522, bf525,
2708 bf527, bf538, bf539, bf542, bf544, bf548, and bf549.
2710 2007-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2712 * alias.c (memory_modified_1): Deconstify.
2713 (memory_modified_in_insn_p): Don't use const_note_stores.
2714 * rtl.h (const_note_stores): Delete.
2715 * rtlanal.c (const_note_stores): Likewise.
2717 2007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2719 * dse.c (find_shift_sequence): Temporarily revert to forbidding
2722 2007-09-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
2726 * config/fr30/fr30.md (addsi3): Check REG_P() before calling REGNO().
2727 (addsi_small_int): Likewise.
2728 (addsi_big_int): Use rtx_equal_p() instead of REGNO() comparison.
2729 (one_cmplsi2): Likewise.
2731 (enter_func): Expand insn using hard_frame_pointer_rtx and
2734 * config/fr30/fr30.c (fr30_expand_prologue): Check for
2735 hard_frame_pointer_rtx instead of using REGNO() check.
2736 Properly sign extend GEN_INT() argument.
2738 2007-09-18 Roman Zippel <zippel@linux-m68k.org>
2740 * config/m68k/m68k.c (override_options): Remove USE_GAS,
2742 (output_dbcc_and_branch, output_scc_di): Replace all jbcc
2743 alternatives with just jcc.
2744 * config/m68k/m68k.md (addsi_lshrsi_31, beq0_di, bne0_di,
2745 bge0_di, blt0_di, bgtu, bltu, bgeu, bleu, bgtu_rev,
2746 bltu_rev, bgeu_rev, bleu_rev, jump, dbne_hi, dbne_si,
2747 dbge_hi, dbge_si): Likewise.
2749 2007-09-18 Roman Zippel <zippel@linux-m68k.org>
2751 * config/m68k/m68k.md (beq, bne, bgt, blt, bge, ble, bordered,
2752 bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt, beq_rev,
2753 bne_rev, bgt_rev, blt_rev, bge_rev, ble_rev, bordered_rev,
2754 bunordered_rev, buneq_rev, bunge_rev, bungt_rev, bunle_rev,
2755 bunlt_rev, bltgt_rev): Replace all fbcc with fjcc.
2757 2007-09-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2759 * config/m68k/m68k-devices.def (51qe): New device.
2760 * config/m68k/m68k.c (FL_FOR_isa_c): Remove division unit. Add it
2761 to all uses of FL_FOR_isa_c for compatibility.
2762 (all_microarchs): Add cfv1 microarchitecture.
2763 (m68k_handle_option): Handle m51qe option.
2764 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Handle 51QE.
2765 (TUNE_CFV1): New macro.
2766 (enum uarch_type): Add ucfv1.
2767 * doc/invoke.texi: Document 51qe device and cfv1 microarchitecture.
2769 2007-09-18 Richard Guenther <rguenther@suse.de>
2771 PR tree-optimization/31863
2772 * tree-ssa-structalias.c (create_variable_info_for): Always
2773 free the fieldstack.
2775 2007-09-18 Dorit Nuzman <dorit@il.ibm.com>
2777 * opts.c (decode_options): Enable vectorization under -O3.
2779 2007-09-18 Richard Guenther <rguenther@suse.de>
2781 PR tree-optimization/33340
2782 * tree-ssa-sccvn.c (set_ssa_val_to): Do not set values to
2783 SSA_NAMEs that occur in abnormal PHI nodes.
2785 2007-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2787 * tree-cfg.c (is_ctrl_altering_stmt, tree_block_ends_with_call_p):
2788 Don't use const_get_call_expr_in.
2789 * tree-gimple.c (const_get_call_expr_in): Delete.
2790 * tree-gimple.h (const_get_call_expr_in): Likewise.
2792 2007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2794 * df-scan.c (df_notes_rescan): Do nothing if the instruction does
2795 not yet have a basic block.
2796 * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN.
2798 2007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2800 * config/mips/mips.c (mips_file_start): Add ".previous" directives
2801 to both ".section"s.
2803 2007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
2805 * config/mips/mips.c (mips_output_mi_thunk): Use
2806 mips_function_ok_for_sibcall and const_call_insn_operand
2807 to determine if a direct sibcall is allowed. Use
2808 mips_classify_symbol to determine a global pointer is needed.
2810 2007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
2812 * config/mips/mips.md (*clear_upper32): Use "W" as the memory operand.
2814 2007-09-17 Chao-ying Fu <fu@mips.com>
2815 Nigel Stephens <nigel@mips.com>
2817 * config/fixed-bit.h: New file.
2818 * config/fixed-bit.c: New file.
2819 * doc/libgcc.texi (Fixed-point fractional library routines): New node.
2821 2007-09-18 Jakub Jelinek <jakub@redhat.com>
2823 * c-format.h (format_kind_info): Add alloc_char field.
2824 * c-format.c (scanf_flag_specs): Add 'm'.
2825 (scanf_flag_pairs): Add 'a', 'm' pair.
2826 (scan_char_table): Allow 'm' modifier for c, s, [, C and S.
2827 (format_types_orig): Add alloc_char fields.
2828 (check_format_info_main): Rename aflag to alloc_flag.
2829 Handle fki->alloc_char. modifier after width and before length
2830 modifiers. Move FMT_FLAG_SCANF_A_KLUDGE handling before
2831 length modifiers as well.
2832 * config/sol2-c.c (solaris_format_types): Add alloc_char field.
2835 * builtins.c (expand_builtin_memory_chk): Handle COMPOUND_EXPRs
2836 returned by build_call_expr.
2838 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2840 * tree-sra.c (maybe_lookup_element_for_expr) <COMPONENT_REF>: Return
2841 NULL for variable-sized records too.
2842 (sra_walk_expr) <COMPONENT_REF>: Stop at variable-sized records too.
2844 2007-09-17 Tom Tromey <tromey@redhat.com>
2846 * c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
2847 (c_builtin_function): Likewise.
2848 (grokdeclarator): Likewise.
2850 2007-09-17 Zdenek Dvorak <ook@ucw.cz>
2852 PR rtl-optimization/26449
2853 * loop-invariant.c (move_invariant_reg): Do not use force_operand.
2854 (seq_insns_valid_p): Removed.
2856 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2858 * tree-nomudflap.c (gate_mudflap): New static function.
2859 (pass_mudflap_1): Use it as gate function.
2860 (pass_mudflap_2): Likewise.
2862 2007-09-17 Jan Hubicka <jh@suse.cz>
2866 * loop-invariant.c (move_invariant_reg): Unshare sequence.
2868 2007-09-17 Victor Kaplansky <victork@il.ibm.com>
2870 PR tree-optimization/33319
2871 * tree-vect-analyze.c (vect_same_range_drs): New.
2872 (vect_vfa_range_equal): New.
2873 (vect_is_duplicate_ddr): Removed.
2874 (vect_mark_for_runtime_alias_test): Do not perform marking when
2875 optimizing for size or max_param for alias checking is zero.
2876 Move the function before vect_analyze_data_ref_dependence.
2877 (vect_analyze_data_ref_dependence): Add call to
2878 vect_mark_for_runtime_alias_test in two cases when dependence
2880 (vect_analyze_data_ref_dependences): Do not call to
2881 vect_mark_for_runtime_alias_test.
2882 (vect_prune_runtime_alias_test_list): New.
2883 (vect_analyze_loop): Add call to vect_prune_runtime_alias_test_list.
2884 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2885 Update vec_outside_cost.
2886 (vect_vfa_segment_size): More compact code, use TYPE_SIZE_UNIT.
2887 (vect_create_cond_for_alias_checks): Build the base address of data
2888 reference from DR_GROUP_FIRST_DR.
2889 (vect_loop_versioning): New.
2890 (vect_transform_loop): Add a call to vect_loop_versioning.
2891 Remove factored out code.
2893 2007-09-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2896 * expr.c (store_expr): Call adjust_address to change mode of dest_mem
2899 2007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2901 * dse.c (find_shift_sequence): Allow word as well as subword shifts.
2902 Do the tentative shift expansion with the DF_NO_INSN_RESCAN flag set.
2903 Fix the call to insn_rtx_cost. Skip access sizes that require a
2904 real truncation of the store register. Use convert_move instead
2905 of gen_lowpart when narrowing the result.
2906 (replace_read): Use convert_move instead of gen_lowpart when
2907 narrowing the store rhs.
2909 2007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2911 * config/mips/mips.md (SHORT): Fix long line.
2912 (SUBDI): New mode iterator. Extend the shift-and-truncate insns
2913 to QImode and HImode.
2915 2007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2917 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Define.
2919 2007-09-15 Zdenek Dvorak <ook@ucw.cz>
2921 * tree-parloops.c: New file.
2922 * tree-ssa-operands.h (free_stmt_operands): Declare.
2923 * tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new basic
2925 * tree-pass.h (pass_parallelize_loops): Declare.
2926 * omp-low.c (expand_omp_parallel, expand_omp_for): Update SSA form for
2928 (build_omp_regions_1): Allow analysing just a single OMP region and
2930 ( build_omp_regions_root, omp_expand_local): New functions.
2931 (build_omp_regions): Add argument to build_omp_regions_1 call.
2932 * builtins.def (DEF_GOMP_BUILTIN): Initialize OMP builtins when
2933 autoparallelization is run.
2934 * timevar.def (TV_TREE_PARALLELIZE_LOOPS): New.
2935 * tree-ssa-loop.c (gate_tree_parallelize_loops, tree_parallelize_loops,
2936 pass_parallelize_loops): New.
2937 * common.opt (ftree-parallelize-loops): New.
2938 * tree-flow.h (omp_expand_local, tree_duplicate_sese_tail,
2939 parallelize_loops): Declare.
2940 (add_phi_args_after_copy, split_loop_exit_edge): Declaration changed.
2941 * Makefile.in (tree-parloops.o): Added.
2942 * tree-cfg.c (add_phi_args_after_copy_edge, tree_duplicate_sese_tail):
2944 (add_phi_args_after_copy_bb): Use add_phi_args_after_copy_edge.
2945 (add_phi_args_after_copy): Call add_phi_args_after_copy_edge for
2946 one extra edge as well.
2947 (tree_duplicate_sese_region): Add argument to add_phi_args_after_copy.
2948 Use VEC_free to free doms vector.
2949 (move_block_to_fn): Update loop info. Remove phi nodes for virtual
2950 operands. Recompute operand caches in the new function.
2951 (move_sese_region_to_fn): Update loop info.
2952 * passes.c (init_optimization_passes): Add pass_parallelize_loops.
2953 * tree-ssa-operands.c (free_stmt_operands): New function.
2955 * doc/passes.texi: Document autoparallelization.
2956 * doc/invoke.texi (-ftree-parallelize-loops): New option.
2958 2007-09-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2961 * pa.c (function_value): Use GET_MODE_BITSIZE instead of
2964 2007-09-15 Dorit Nuzman <dorit@il.ibm.com>
2966 * tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if
2967 the VEC is not NULL.
2968 (vectorizable_type_demotion, vectorizable_type_promotion): Check that
2969 get_vectype_for_scalar_type succeeded.
2970 (vectorizable_conversion): Likewise.
2972 2007-09-14 Jan Hubicka <jh@suse.cz>
2974 * config/i386/i386.md (*floatdi<mode>2_i387): Guard against
2977 2007-09-14 Uros Bizjak <ubizjak@gmail.com>
2980 * config/i386/i386.md (fmodxf3): Copy operands[2] to temporary
2981 register when operands[2] equals operands[1].
2982 (remainderxf3): Ditto.
2984 2007-09-14 Sandra Loosemore <sandra@codesourcery.com>
2985 Nigel Stephens <nigel@mips.com>
2987 * doc/tm.texi (LIBGCC2_UNWIND_ATTRIBUTE): Document.
2988 * unwind-generic.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
2989 (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE to
2991 (_Unwind_ForcedUnwind): Likewise.
2992 (_Unwind_Resume): Likewise.
2993 (_Unwind_Resume_or_Rethrow): Likewise.
2994 (_Unwind_Backtrace): Likewise.
2995 (_Unwind_SjLj_RaiseException): Likewise.
2996 (_Unwind_SjLj_ForcedUnwind): Likewise.
2997 (_Unwind_SjLj_Resume): Likewise.
2998 (_Unwind_SjLj_Resume_or_Rethrow): Likewise.
2999 * unwind.inc (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE
3001 (_Unwind_ForcedUnwind): Likewise.
3002 (_Unwind_Resume): Likewise.
3003 (_Unwind_Resume_or_Rethrow): Likewise.
3004 (_Unwind_Backtrace): Likewise.
3005 * unwind-compat.c (_Unwind_Backtrace): Likewise.
3006 (_Unwind_ForcedUnwind): Likewise.
3007 (_Unwind_RaiseException): Likewise.
3008 (_Unwind_Resume): Likewise.
3009 (_Unwind_Resume_or_Rethrow): Likewise.
3011 * config/mips/mips.h (LIBGCC2_UNWIND_ATTRIBUTE): Define to force
3012 nomips16 mode when IN_LIBGCC2 with hard float.
3014 2007-09-14 Richard Sandiford <rsandifo@nildram.co.uk>
3016 * config/mips/sdemtk.opt: Update to GPLv3.
3017 * config/mips/sdemtk.h: Likewise.
3019 2007-09-14 Nigel Stephens <nigel@mips.com>
3021 * config.gcc (mips*-*-linux*): Recognise mipsisa32r2 and set
3022 MIPS_ISA_DEFAULT appropriately. Don't make soft-float the default
3023 for mipsisa32-*-linux*.
3025 2007-09-14 Nigel Stephens <nigel@mips.com>
3026 David Ung <davidu@mips.com>
3027 Thiemo Seufer <ths@mips.com>
3028 Richard Sandiford <richard@codesourcery.com>
3030 * config.gcc (mips*-sde-elf*): Add support for the SDE C libraries.
3031 * configure.ac: Add a mipssde threading type.
3032 * configure: Regenerate.
3033 * config/mips/sdemtk.h: New file.
3034 * config/mips/t-sdemtk: Likewise.
3035 * config/mips/sdemtk.opt: Likewise.
3036 * gthr-mipssde.h: Likewise.
3037 * config/mips/sde.h (FUNCTION_PROFILER): Move to config/mips/sdemtk.h.
3038 * config/mips/mips.h (MIPS_SAVE_REG_FOR_PROFILING_P): New macro.
3039 (MIPS_ICACHE_SYNC): New macro, split from ...
3040 * config/mips/mips.md (clear_cache): ...here.
3041 * config/mips/mips.c (mips_save_reg_p): Check
3042 MIPS_SAVE_REG_FOR_PROFILING_P on profiled functions.
3043 (build_mips16_function_stub): Use targetm.strip_name_encoding.
3044 (build_mips16_call_stub): Likewise.
3046 2007-09-14 Richard Sandiford <richard@codesourcery.com>
3048 * Makefile.in (stmp-int-hdrs): Depend on fixinc_list.
3050 2007-09-14 Jakub Jelinek <jakub@redhat.com>
3053 * config/ia64/ia64.c (find_gr_spill): Don't decrement
3054 current_frame_info.n_local_regs. Don't return emitted local
3056 (ia64_compute_frame_size): Improve unwind hack to put
3057 RP, PFS, FP in that order by allowing some of the registers
3058 been already emitted, as long as they are emitted to the
3061 2007-09-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3063 * config/spu/vmx2spu.h (vec_extract, vec_insert, vec_lvlx,
3064 vec_lvlxl, vec_lvrx, vec_lvrxl, vec_promote, vec_splats,
3065 vec_stvlx, vec_stvlxl, vec_stvrx, vec_stvrxl): New intrinsics.
3067 2007-09-13 Eric Christopher <echristo@apple.com>
3068 Kenneth Zadeck <zadeck@naturalbridge.com>
3070 * dse.c (find_shift_sequence): New function.
3071 (replace_read): Add case to remove read if it requires shift.
3072 * config/i386/i386.c (ix86_expand_prologue): Fixed typo in comment.
3074 2007-09-13 Tom Tromey <tromey@redhat.com>
3076 * c-common.c (fname_as_string): Update.
3077 * c-parser.c (c_parser) <lex_untranslated_string>: New field.
3078 (c_lex_one_token): Update. Add 'parser' argument.
3079 (c_parser_simple_asm_expr): Update.
3080 (c_parser_attributes): Update.
3081 (c_parser_asm_statement): Update.
3082 (c_parser_asm_operands): Update.
3083 (c_parser_peek_token): Update.
3084 (c_parser_peek_2nd_token): Update.
3085 * c-lex.c (c_lex_string_translate): Remove.
3086 (c_lex_return_raw_strings): Likewise.
3087 (c_lex_with_flags): Added 'lex_flags' argument.
3088 (lex_string): Added 'translate' argument.
3089 * c-pragma.h (c_lex_with_flags): Update.
3090 (c_lex_string_translate, c_lex_return_raw_strings): Remove.
3091 (C_LEX_STRING_NO_TRANSLATE): New define.
3092 (C_LEX_RAW_STRINGS): Likewise.
3094 2007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
3097 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_ONES,
3098 BFIN_BUILTIN_CPLX_MUL_16_S40, BFIN_BUILTIN_CPLX_MAC_16_S40,
3099 BFIN_BUILTIN_CPLX_MSU_16_S40, and BFIN_BUILTIN_CPLX_SQU.
3100 (bfin_init_builtins): Initialize __builtin_bfin_ones,
3101 __builtin_bfin_min_fr1x16, __builtin_bfin_max_fr1x16,
3102 __builtin_bfin_min_fr1x32, __builtin_bfin_max_fr1x32,
3103 __builtin_bfin_cmplx_add, __builtin_bfin_cmplx_sub,
3104 __builtin_bfin_cmplx_mul_s40, __builtin_bfin_cmplx_mac_s40,
3105 __builtin_bfin_cmplx_msu_s40 and __builtin_bfin_csqu_fr16.
3106 (bdesc_1arg): Add __builtin_bfin_ones.
3107 (bfin_expand_builtin): Expand __builtin_bfin_cmplx_mul_s40,
3108 __builtin_bfin_cmplx_mac_s40, __builtin_bfin_cmplx_msu_s40,
3109 and __builtin_bfin_csqu_fr16.
3110 * config/bfin/bfin.md (UNSPEC_ONES): New constant.
3111 (ones): New define_insn.
3112 (ssaddhi3_parts): New define_insn.
3113 (sssubhi3_parts): New define_insn.
3114 (flag_mulhi_parts): New define_insn.
3116 2007-09-13 Seongbae Park <seongbae.park@gmail.com>
3118 * common.opt (femit-class-debug-always): Turn off by default.
3120 2007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
3122 * config/bfin/bfin.md (reload_outpdi, reload_inpdi): New patterns.
3123 * config/bfin/bfin.c (bfin_secondary_reload): Make sure we use them.
3125 2007-09-13 James E. Wilson <wilson@specifix.com>
3127 PR tree-optimization/33389
3128 * tree-ssa-operands.c (append_vuse): If ann->in_vdef_list true,
3129 then set build_loads before returning.
3131 2007-09-13 Sandra Loosemore <sandra@codesourcery.com>
3132 David Ung <davidu@mips.com>
3134 * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with
3135 {d}addiu and a negative immediate such that it works with MIPS16
3138 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3141 * configure.ac (ld_vers): Support Linux linker.
3142 * configure: Regenerated.
3144 2007-09-13 Richard Sandiford <richard@codesourcery.com>
3145 Sandra Loosemore <sandra@codesourcery.com>
3147 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Delete.
3148 (SYMBOL_REF_MIPS16_FUNC_P): Delete.
3149 * config/mips/mips.c (mips_attribute_table): Turn mips16 and
3150 nomips16 into decl attributes.
3151 (TARGET_INSERT_ATTRIBUTES): Override.
3152 (TARGET_MERGE_DECL_ATTRIBUTES): Likewise.
3153 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Always return true.
3154 (mips_mips16_type_p, mips_nomips16_type_p): Delete in favor of...
3155 (mips_mips16_decl_p, mips_nomips16_decl_p): ...these new functions.
3156 (mips_comp_type_attributes): Remove mips16 and nomips16 handling.
3157 (mips_use_mips16_mode_p): Reimplement as a function that takes
3158 a decl and considers only decl attributes. If the decl is nested
3159 function, use its parent attributes.
3160 (mips_function_ok_for_sibcall): Use mips_use_mips16_mode_p
3161 instead of SYMBOL_REF_MIPS16_FUNC_P.
3162 (mips_set_mips16_mode): Move call to sorry here from old
3163 mips_use_mips16_mode_p.
3164 (mflip_mips16_entry): New structure.
3165 (mflip_mips16_htab): New variable.
3166 (mflip_mips16_htab_hash, mflip_mips16_htab_eq): New functions.
3167 (mflip_mips16_use_mips16_p, mips_insert_attributes): Likewise.
3168 (mips_merge_decl_attributes): New function.
3169 (mips_set_current_function): Reinstate call to mips_set_mips16_mode.
3170 Use mips_use_mips16_mode_p.
3171 (mips_output_mi_thunk): Use mips_use_mips16_mode_p instead of
3172 SYMBOL_REF_MIPS16_FUNC_P.
3173 (mips_encode_section_info): Don't set SYMBOL_FLAG_MIPS16_FUNC.
3175 2007-09-13 Richard Sandiford <richard@codesourcery.com>
3177 * c-parser.c (c_parser_struct_declaration): Check for a null return.
3179 2007-09-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3182 * gcc.c (xputenv): Make argument const, and use CONST_CAST.
3184 2007-09-12 Michael Meissner <michael.meissner@amd.com>
3185 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3186 Tony Linthicum <tony.linthicum@amd.com>
3188 * tree.h (function_args_iterator): New type to iterate over
3190 (FOREACH_FUNCTION_ARGS_PTR): Iterator macros for iterating over
3191 function arguments providing a pointer to the argument.
3192 (FOREACH_FUNCTION_ARGS): Iterator macros for iterating over
3193 function arguments providing the argument.
3194 (function_args_iter_init): Inline function to initialize
3195 function_args_iterator.
3196 (function_args_iter_cond_ptr): Inline function to return the next
3197 pointer to hold the argument.
3198 (function_args_iter_cond): Inline function to return the next
3200 (function_args_iter_cond_next): Advance the function args
3202 (stdarg_p): New function, return true if variable argument
3204 (prototype_p): New function, return true if function is
3206 (function_args_count): New function, count the number of arguments
3209 * tree.c (stdarg_p): New function, return true if variable
3211 (prototype_p): New function, return true if function is
3214 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
3215 (TARGET_ROUND): New macro for the round/ptest instructions which
3216 are shared between SSE4.1 and SSE5.
3217 (OPTION_MASK_ISA_ROUND): Ditto.
3218 (OPTION_ISA_ROUND): Ditto.
3219 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
3220 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
3222 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
3223 (-mfused-madd): New switch to give users control over whether the
3224 compiler optimizes to use the multiply/add SSE5 instructions.
3226 * config/i386/i386.c (m_AMD_MULTIPLE): Rename from
3227 m_ATHLON_K8_AMDFAM10, and change all uses.
3228 (enum pta_flags): Add PTA_SSE5.
3229 (ix86_handle_option): Turn off 3dnow if -msse5.
3230 (override_options): Add SSE5 support.
3231 (print_operand): %Y prints comparison codes for SSE5 com/pcom
3233 (ix86_expand_sse_movcc): Add SSE5 support.
3234 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
3235 vector type to the next largest size.
3236 (ix86_expand_sse5_pack): New function to use pperm to pack a
3237 vector type to the next smallest size.
3238 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
3239 (IX86_BUILTIN_FMADDSD): Ditto.
3240 (IX86_BUILTIN_FMADDPS): Ditto.
3241 (IX86_BUILTIN_FMADDPD): Ditto.
3242 (IX86_BUILTIN_FMSUBSS): Ditto.
3243 (IX86_BUILTIN_FMSUBSD): Ditto.
3244 (IX86_BUILTIN_FMSUBPS): Ditto.
3245 (IX86_BUILTIN_FMSUBPD): Ditto.
3246 (IX86_BUILTIN_FNMADDSS): Ditto.
3247 (IX86_BUILTIN_FNMADDSD): Ditto.
3248 (IX86_BUILTIN_FNMADDPS): Ditto.
3249 (IX86_BUILTIN_FNMADDPD): Ditto.
3250 (IX86_BUILTIN_FNMSUBSS): Ditto.
3251 (IX86_BUILTIN_FNMSUBSD): Ditto.
3252 (IX86_BUILTIN_FNMSUBPS): Ditto.
3253 (IX86_BUILTIN_FNMSUBPD): Ditto.
3254 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
3255 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
3256 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
3257 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
3258 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
3259 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
3260 (IX86_BUILTIN_PPERM): Ditto.
3261 (IX86_BUILTIN_PERMPS): Ditto.
3262 (IX86_BUILTIN_PERMPD): Ditto.
3263 (IX86_BUILTIN_PMACSSWW): Ditto.
3264 (IX86_BUILTIN_PMACSWW): Ditto.
3265 (IX86_BUILTIN_PMACSSWD): Ditto.
3266 (IX86_BUILTIN_PMACSWD): Ditto.
3267 (IX86_BUILTIN_PMACSSDD): Ditto.
3268 (IX86_BUILTIN_PMACSDD): Ditto.
3269 (IX86_BUILTIN_PMACSSDQL): Ditto.
3270 (IX86_BUILTIN_PMACSSDQH): Ditto.
3271 (IX86_BUILTIN_PMACSDQL): Ditto.
3272 (IX86_BUILTIN_PMACSDQH): Ditto.
3273 (IX86_BUILTIN_PMADCSSWD): Ditto.
3274 (IX86_BUILTIN_PMADCSWD): Ditto.
3275 (IX86_BUILTIN_PHADDBW): Ditto.
3276 (IX86_BUILTIN_PHADDBD): Ditto.
3277 (IX86_BUILTIN_PHADDBQ): Ditto.
3278 (IX86_BUILTIN_PHADDWD): Ditto.
3279 (IX86_BUILTIN_PHADDWQ): Ditto.
3280 (IX86_BUILTIN_PHADDDQ): Ditto.
3281 (IX86_BUILTIN_PHADDUBW): Ditto.
3282 (IX86_BUILTIN_PHADDUBD): Ditto.
3283 (IX86_BUILTIN_PHADDUBQ): Ditto.
3284 (IX86_BUILTIN_PHADDUWD): Ditto.
3285 (IX86_BUILTIN_PHADDUWQ): Ditto.
3286 (IX86_BUILTIN_PHADDUDQ): Ditto.
3287 (IX86_BUILTIN_PHSUBBW): Ditto.
3288 (IX86_BUILTIN_PHSUBWD): Ditto.
3289 (IX86_BUILTIN_PHSUBDQ): Ditto.
3290 (IX86_BUILTIN_PROTB): Ditto.
3291 (IX86_BUILTIN_PROTW): Ditto.
3292 (IX86_BUILTIN_PROTD): Ditto.
3293 (IX86_BUILTIN_PROTQ): Ditto.
3294 (IX86_BUILTIN_PROTB_IMM): Ditto.
3295 (IX86_BUILTIN_PROTW_IMM): Ditto.
3296 (IX86_BUILTIN_PROTD_IMM): Ditto.
3297 (IX86_BUILTIN_PROTQ_IMM): Ditto.
3298 (IX86_BUILTIN_PSHLB): Ditto.
3299 (IX86_BUILTIN_PSHLW): Ditto.
3300 (IX86_BUILTIN_PSHLD): Ditto.
3301 (IX86_BUILTIN_PSHLQ): Ditto.
3302 (IX86_BUILTIN_PSHAB): Ditto.
3303 (IX86_BUILTIN_PSHAW): Ditto.
3304 (IX86_BUILTIN_PSHAD): Ditto.
3305 (IX86_BUILTIN_PSHAQ): Ditto.
3306 (IX86_BUILTIN_FRCZSS): Ditto.
3307 (IX86_BUILTIN_FRCZSD): Ditto.
3308 (IX86_BUILTIN_FRCZPS): Ditto.
3309 (IX86_BUILTIN_FRCZPD): Ditto.
3310 (IX86_BUILTIN_CVTPH2PS): Ditto.
3311 (IX86_BUILTIN_CVTPS2PH): Ditto.
3312 (IX86_BUILTIN_COMEQSS): Ditto.
3313 (IX86_BUILTIN_COMNESS): Ditto.
3314 (IX86_BUILTIN_COMLTSS): Ditto.
3315 (IX86_BUILTIN_COMLESS): Ditto.
3316 (IX86_BUILTIN_COMGTSS): Ditto.
3317 (IX86_BUILTIN_COMGESS): Ditto.
3318 (IX86_BUILTIN_COMUEQSS): Ditto.
3319 (IX86_BUILTIN_COMUNESS): Ditto.
3320 (IX86_BUILTIN_COMULTSS): Ditto.
3321 (IX86_BUILTIN_COMULESS): Ditto.
3322 (IX86_BUILTIN_COMUGTSS): Ditto.
3323 (IX86_BUILTIN_COMUGESS): Ditto.
3324 (IX86_BUILTIN_COMORDSS): Ditto.
3325 (IX86_BUILTIN_COMUNORDSS): Ditto.
3326 (IX86_BUILTIN_COMFALSESS): Ditto.
3327 (IX86_BUILTIN_COMTRUESS): Ditto.
3328 (IX86_BUILTIN_COMEQSD): Ditto.
3329 (IX86_BUILTIN_COMNESD): Ditto.
3330 (IX86_BUILTIN_COMLTSD): Ditto.
3331 (IX86_BUILTIN_COMLESD): Ditto.
3332 (IX86_BUILTIN_COMGTSD): Ditto.
3333 (IX86_BUILTIN_COMGESD): Ditto.
3334 (IX86_BUILTIN_COMUEQSD): Ditto.
3335 (IX86_BUILTIN_COMUNESD): Ditto.
3336 (IX86_BUILTIN_COMULTSD): Ditto.
3337 (IX86_BUILTIN_COMULESD): Ditto.
3338 (IX86_BUILTIN_COMUGTSD): Ditto.
3339 (IX86_BUILTIN_COMUGESD): Ditto.
3340 (IX86_BUILTIN_COMORDSD): Ditto.
3341 (IX86_BUILTIN_COMUNORDSD): Ditto.
3342 (IX86_BUILTIN_COMFALSESD): Ditto.
3343 (IX86_BUILTIN_COMTRUESD): Ditto.
3344 (IX86_BUILTIN_COMEQPS): Ditto.
3345 (IX86_BUILTIN_COMNEPS): Ditto.
3346 (IX86_BUILTIN_COMLTPS): Ditto.
3347 (IX86_BUILTIN_COMLEPS): Ditto.
3348 (IX86_BUILTIN_COMGTPS): Ditto.
3349 (IX86_BUILTIN_COMGEPS): Ditto.
3350 (IX86_BUILTIN_COMUEQPS): Ditto.
3351 (IX86_BUILTIN_COMUNEPS): Ditto.
3352 (IX86_BUILTIN_COMULTPS): Ditto.
3353 (IX86_BUILTIN_COMULEPS): Ditto.
3354 (IX86_BUILTIN_COMUGTPS): Ditto.
3355 (IX86_BUILTIN_COMUGEPS): Ditto.
3356 (IX86_BUILTIN_COMORDPS): Ditto.
3357 (IX86_BUILTIN_COMUNORDPS): Ditto.
3358 (IX86_BUILTIN_COMFALSEPS): Ditto.
3359 (IX86_BUILTIN_COMTRUEPS): Ditto.
3360 (IX86_BUILTIN_COMEQPD): Ditto.
3361 (IX86_BUILTIN_COMNEPD): Ditto.
3362 (IX86_BUILTIN_COMLTPD): Ditto.
3363 (IX86_BUILTIN_COMLEPD): Ditto.
3364 (IX86_BUILTIN_COMGTPD): Ditto.
3365 (IX86_BUILTIN_COMGEPD): Ditto.
3366 (IX86_BUILTIN_COMUEQPD): Ditto.
3367 (IX86_BUILTIN_COMUNEPD): Ditto.
3368 (IX86_BUILTIN_COMULTPD): Ditto.
3369 (IX86_BUILTIN_COMULEPD): Ditto.
3370 (IX86_BUILTIN_COMUGTPD): Ditto.
3371 (IX86_BUILTIN_COMUGEPD): Ditto.
3372 (IX86_BUILTIN_COMORDPD): Ditto.
3373 (IX86_BUILTIN_COMUNORDPD): Ditto.
3374 (IX86_BUILTIN_COMFALSEPD): Ditto.
3375 (IX86_BUILTIN_COMTRUEPD): Ditto.
3376 (IX86_BUILTIN_PCOMEQUB): Ditto.
3377 (IX86_BUILTIN_PCOMNEUB): Ditto.
3378 (IX86_BUILTIN_PCOMLTUB): Ditto.
3379 (IX86_BUILTIN_PCOMLEUB): Ditto.
3380 (IX86_BUILTIN_PCOMGTUB): Ditto.
3381 (IX86_BUILTIN_PCOMGEUB): Ditto.
3382 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
3383 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
3384 (IX86_BUILTIN_PCOMEQUW): Ditto.
3385 (IX86_BUILTIN_PCOMNEUW): Ditto.
3386 (IX86_BUILTIN_PCOMLTUW): Ditto.
3387 (IX86_BUILTIN_PCOMLEUW): Ditto.
3388 (IX86_BUILTIN_PCOMGTUW): Ditto.
3389 (IX86_BUILTIN_PCOMGEUW): Ditto.
3390 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
3391 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
3392 (IX86_BUILTIN_PCOMEQUD): Ditto.
3393 (IX86_BUILTIN_PCOMNEUD): Ditto.
3394 (IX86_BUILTIN_PCOMLTUD): Ditto.
3395 (IX86_BUILTIN_PCOMLEUD): Ditto.
3396 (IX86_BUILTIN_PCOMGTUD): Ditto.
3397 (IX86_BUILTIN_PCOMGEUD): Ditto.
3398 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
3399 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
3400 (IX86_BUILTIN_PCOMEQUQ): Ditto.
3401 (IX86_BUILTIN_PCOMNEUQ): Ditto.
3402 (IX86_BUILTIN_PCOMLTUQ): Ditto.
3403 (IX86_BUILTIN_PCOMLEUQ): Ditto.
3404 (IX86_BUILTIN_PCOMGTUQ): Ditto.
3405 (IX86_BUILTIN_PCOMGEUQ): Ditto.
3406 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
3407 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
3408 (IX86_BUILTIN_PCOMEQB): Ditto.
3409 (IX86_BUILTIN_PCOMNEB): Ditto.
3410 (IX86_BUILTIN_PCOMLTB): Ditto.
3411 (IX86_BUILTIN_PCOMLEB): Ditto.
3412 (IX86_BUILTIN_PCOMGTB): Ditto.
3413 (IX86_BUILTIN_PCOMGEB): Ditto.
3414 (IX86_BUILTIN_PCOMFALSEB): Ditto.
3415 (IX86_BUILTIN_PCOMTRUEB): Ditto.
3416 (IX86_BUILTIN_PCOMEQW): Ditto.
3417 (IX86_BUILTIN_PCOMNEW): Ditto.
3418 (IX86_BUILTIN_PCOMLTW): Ditto.
3419 (IX86_BUILTIN_PCOMLEW): Ditto.
3420 (IX86_BUILTIN_PCOMGTW): Ditto.
3421 (IX86_BUILTIN_PCOMGEW): Ditto.
3422 (IX86_BUILTIN_PCOMFALSEW): Ditto.
3423 (IX86_BUILTIN_PCOMTRUEW): Ditto.
3424 (IX86_BUILTIN_PCOMEQD): Ditto.
3425 (IX86_BUILTIN_PCOMNED): Ditto.
3426 (IX86_BUILTIN_PCOMLTD): Ditto.
3427 (IX86_BUILTIN_PCOMLED): Ditto.
3428 (IX86_BUILTIN_PCOMGTD): Ditto.
3429 (IX86_BUILTIN_PCOMGED): Ditto.
3430 (IX86_BUILTIN_PCOMFALSED): Ditto.
3431 (IX86_BUILTIN_PCOMTRUED): Ditto.
3432 (IX86_BUILTIN_PCOMEQQ): Ditto.
3433 (IX86_BUILTIN_PCOMNEQ): Ditto.
3434 (IX86_BUILTIN_PCOMLTQ): Ditto.
3435 (IX86_BUILTIN_PCOMLEQ): Ditto.
3436 (IX86_BUILTIN_PCOMGTQ): Ditto.
3437 (IX86_BUILTIN_PCOMGEQ): Ditto.
3438 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
3439 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
3440 (bdesc_ptest): Change OPTION_MASK_ISA_SSE4_1 to
3441 OPTION_MASK_ISA_ROUND for instructions that are shared between
3443 (bdesc_2arg): Ditto.
3444 (bdesc_sse_3arg): Ditto.
3445 (enum multi_arg_type): New enum for describing the various SSE5
3446 intrinsic argument types.
3447 (bdesc_multi_arg): New table for SSE5 intrinsics.
3448 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
3449 (ix86_expand_multi_arg_builtin): New function for creating SSE5
3451 (ix86_expand_builtin): Add SSE5 intrinsic support.
3452 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
3453 operand instructions.
3454 (ix86_expand_sse5_multiple_memory): New function to split the
3455 second memory reference from SSE5 instructions.
3456 (type_has_variadic_args_p): Delete in favor of stdarg_p.
3457 (ix86_return_pops_args): Use stdarg_p to determine if the function
3458 has variable arguments.
3459 (ix86_setup_incoming_varargs): Ditto.
3460 (x86_this_parameter): Ditto.
3462 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
3464 (ix86_expand_sse5_pack): Ditto.
3465 (ix86_sse5_valid_op_p): Ditto.
3466 (ix86_expand_sse5_multiple_memory): Ditto.
3468 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
3469 constant for SSE5 support.
3470 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
3471 (UNSPEC_SSE5_TRUEFALSE): Ditto.
3472 (UNSPEC_SSE5_PERMUTE): Ditto.
3473 (UNSPEC_SSE5_ASHIFT): Ditto.
3474 (UNSPEC_SSE5_LSHIFT): Ditto.
3475 (UNSPEC_FRCZ): Ditto.
3476 (UNSPEC_CVTPH2PS): Ditto.
3477 (UNSPEC_CVTPS2PH): Ditto.
3478 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
3480 (COM_FALSE_S): Ditto.
3481 (COM_FALSE_P): Ditto.
3482 (COM_TRUE_S): Ditto.
3483 (COM_TRUE_P): Ditto.
3484 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
3485 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
3487 (memory attribute): Ditto.
3488 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3489 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
3490 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3491 (floor<mode>2): Ditto.
3492 (ceil<mode>2): Ditto.
3493 (btrunc<mode>2): Ditto.
3494 (nearbyintdf2): Ditto.
3495 (nearbyintsf2): Ditto.
3496 (sse_setccsf): Disable if SSE5.
3497 (sse_setccdf): Ditto.
3498 (sse5_setcc<mode>): New support for SSE5 conditional move.
3499 (sse5_pcmov_<mode>): Ditto.
3501 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
3503 (SSEMODEF2P): Ditto.
3504 (ssemodesuffixf4): New mode attribute for SSE5.
3505 (ssemodesuffixf2s): Ditto.
3506 (ssemodesuffixf2c): Ditto.
3507 (sserotatemax): Ditto.
3508 (ssescalarmode): Ditto.
3509 (sse_maskcmpv4sf3): Disable if SSE5.
3510 (sse_maskcmpv2df3): Ditto.
3511 (sse_vmmaskcmpv4sf3): Ditto.
3512 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add
3514 (sse5_vmfmadd<mode>4): Ditto.
3515 (sse5_fmsub<mode>4): Ditto.
3516 (sse5_vmfmsub<mode>4): Ditto.
3517 (sse5_fnmadd<mode>4): Ditto.
3518 (sse5_vmfnmadd<mode>4): Ditto.
3519 (sse5_fnmsub<mode>4): Ditto.
3520 (sse5_vmfnmsub<mode>4): Ditto.
3521 (sse5i_fmadd<mode>4): Ditto.
3522 (sse5i_fmsub<mode>4): Ditto.
3523 (sse5i_fnmadd<mode>4): Ditto.
3524 (sse5i_fnmsub<mode>4): Ditto.
3525 (sse5i_vmfmadd<mode>4): Ditto.
3526 (sse5i_vmfmsub<mode>4): Ditto.
3527 (sse5i_vmfnmadd<mode>4): Ditto.
3528 (sse5i_vmfnmsub<mode>4): Ditto.
3529 (mulv16qi3): Add SSE5 support.
3531 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
3532 (sse2_mulv4si3): Disable if SSE5.
3533 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
3534 (sse4_1_roundps): Ditto.
3535 (sse4_1_roundsd): Ditto.
3536 (sse4_1_roundss): Ditto.
3537 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
3539 (sse_maskcmpsf3): Ditto.
3540 (sse_vmmaskcmpv4sf3): Ditto.
3541 (sse2_maskcmpv2df3): Ditto.
3542 (sse2_maskcmpdf3): Ditto.
3543 (sse2_vmmaskcmpv2df3): Ditto.
3544 (sse2_eq<mode>3): Ditto.
3545 (sse2_gt<mode>3): Ditto.
3546 (sse5_pcmov_<mode>): Add SSE5 support.
3547 (vec_unpacku_hi_v16qi): Ditto.
3548 (vec_unpacks_hi_v16qi): Ditto.
3549 (vec_unpacku_lo_v16qi): Ditto.
3550 (vec_unpacks_lo_v16qi): Ditto.
3551 (vec_unpacku_hi_v8hi): Ditto.
3552 (vec_unpacks_hi_v8hi): Ditto.
3553 (vec_unpacku_lo_v8hi): Ditto.
3554 (vec_unpacks_lo_v8hi): Ditto.
3555 (vec_unpacku_hi_v4si): Ditto.
3556 (vec_unpacks_hi_v4si): Ditto.
3557 (vec_unpacku_lo_v4si): Ditto.
3558 (vec_unpacks_lo_v4si): Ditto.
3559 (sse5_pmacsww): New SSE5 intrinsic insn.
3560 (sse5_pmacssww): Ditto.
3561 (sse5_pmacsdd): Ditto.
3562 (sse5_pmacssdd): Ditto.
3563 (sse5_pmacssdql): Ditto.
3564 (sse5_pmacssdqh): Ditto.
3565 (sse5_pmacsdqh): Ditto.
3566 (sse5_pmacsswd): Ditto.
3567 (sse5_pmacswd): Ditto.
3568 (sse5_pmadcsswd): Ditto.
3569 (sse5_pmadcswd): Ditto.
3570 (sse5_pcmov_<move>): Conditional move support on SSE5.
3571 (sse5_phaddbw): New SSE5 intrinsic insn.
3572 (sse5_phaddbd): Ditto.
3573 (sse5_phaddbq): Ditto.
3574 (sse5_phaddwd): Ditto.
3575 (sse5_phaddwq): Ditto.
3576 (sse5_phadddq): Ditto.
3577 (sse5_phaddubw): Ditto.
3578 (sse5_phaddubd): Ditto.
3579 (sse5_phaddubq): Ditto.
3580 (sse5_phadduwd): Ditto.
3581 (sse5_phadduwq): Ditto.
3582 (sse5_phaddudq): Ditto.
3583 (sse5_phsubbw): Ditto.
3584 (sse5_phsubwd): Ditto.
3585 (sse5_phsubdq): Ditto.
3586 (sse5_pperm): Ditto.
3587 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
3588 (sse5_pperm_zero_v16qi_v8hi): Ditto.
3589 (sse5_pperm_sign_v8hi_v4si): Ditto.
3590 (sse5_pperm_zero_v8hi_v4si): Ditto.
3591 (sse5_pperm_sign_v4si_v2di): Ditto.
3592 (sse5_pperm_sign_v4si_v2di): Ditto.
3593 (sse5_pperm_pack_v2di_v4si): Ditto.
3594 (sse5_pperm_pack_v4si_v8hi): Ditto.
3595 (sse5_pperm_pack_v8hi_v16qi): Ditto.
3596 (sse5_perm<mode>): New SSE5 intrinsic insn.
3597 (rotl<mode>3): Ditto.
3598 (sse5_rotl<mode>3): Ditto.
3599 (sse5_ashl<mode>3): Ditto.
3600 (sse5_lshl<mode>3): Ditto.
3601 (sse5_frcz<mode>2): Ditto.
3602 (sse5s_frcz<mode>2): Ditto.
3603 (sse5_cvtph2ps): Ditto.
3604 (sse5_cvtps2ph): Ditto.
3605 (sse5_vmmaskcmp<mode>3): Ditto.
3606 (sse5_com_tf<mode>3): Ditto.
3607 (sse5_maskcmp<mode>3): Ditto.
3608 (sse5_maskcmp_uns<mode>3): Ditto.
3609 (sse5_maskcmp_uns2<mode>3): Ditto.
3610 (sse5_pcom_tf<mode>3): Ditto.
3612 * config/i386/predicates.md (const_0_to_31_operand): New predicate
3614 (sse5_comparison_float_operator): New predicate to match the
3615 comparison operators supported by the SSE5 com instruction.
3616 (ix86_comparison_int_operator): New predicate to match just the
3617 signed int comparisons.
3618 (ix86_comparison_uns_operator): New predicate to match just the
3619 unsigned int comparisons.
3621 * doc/invoke.texi (-msse5): Add documentation.
3622 (-mfused-madd): Ditto.
3624 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
3626 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
3628 (x86_64-*-*): Ditto.
3630 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
3632 * config/i386/bmmintrin.h: New file, provide common x86 compiler
3633 intrinisics for SSE5.
3635 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
3638 * config/i386/mmintrin-common.h: New file, to contain common
3639 instructions between SSE4.1 and SSE5.
3641 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
3642 FOREACH_FUNCTION_ARGS to iterate over the argument list.
3643 (gen_regparm_prefix): Ditto.
3645 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
3646 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
3647 prototype_p to determine if a function is prototyped.
3649 2007-09-12 Janis Johnson <janis187@us.ibm.com>
3651 * config/dfp-bit.c (dfp_conversion_exception): New function.
3652 (DFP_TO_DFP) Add new variants to use direct conversions in decNumber.
3653 (DFP_TO_INT): Ditto.
3654 (INT_TO_DFP): Ditto.
3655 * config/dfp-bit.h (DEC_FLOAT_FROM_INT, DEC_FLOAT_TO_INT): New.
3657 2007-09-12 Jakub Jelinek <jakub@redhat.com>
3660 * config/ia64/ia64.c (ia64_expand_epilogue): Emit blockage
3661 before sp restoration even when total_size is 0, but
3662 frame_pointer_needed.
3664 2007-09-12 Bob Wilson <bob.wilson@acm.org>
3666 * config/xtensa/xtensa.c (machine_function): Add vararg_a7_copy.
3667 (xtensa_copy_incoming_a7): Use start_sequence instead of
3668 push_to_sequence. Stash insns in vararg_a7_copy for builtin_saveregs.
3669 (xtensa_builtin_saveregs): Place code from vararg_a7_copy at the start
3670 of the saveregs sequence.
3672 2007-09-12 Richard Sandiford <richard@codesourcery.com>
3674 * c-tree.h (grokfield): Add a "tree *" argument.
3675 * c-decl.c (grokdeclarator): Take a pointer to the decl's attributes.
3676 Chain nested decl attributes to it. Don't call decl_attributes here.
3677 (groktypename): Pass grokdeclarator a pointer to the attribute list.
3678 (start_decl, grokparm, push_parm_decl, start_function): Likewise.
3679 (grokfield): Take a pointer to the decl's attributes and pass
3680 it to grokdeclarator.
3681 * c-parser.c (c_parser_struct_declaration): Update the calls to
3682 grokfield. Call decl_attributes for anonymous struct and union
3685 2007-09-12 Jan Hubicka <jh@suse.cz>
3687 * c-objc-common.h (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
3689 2007-09-12 Ira Rosen <irar@il.ibm.com>
3691 PR tree-optimization/32377
3692 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Distinguish
3693 between positive and negative dependence distance using DDR_REVERSED_P.
3695 2007-09-12 Dorit Nuzman <dorit@il.ibm.com>
3697 PR tree-optimization/33373
3698 * tree-vect-analyze (vect_determine_vectorization_factor): Call
3699 TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT.
3701 2007-09-12 Jan Hubicka <jh@suse.cz>
3704 * i386.md (floatsisf2_mixed_memory, floatsisf2_sse_memory): Disable
3707 2007-09-12 Christian Bruel <christian.bruel@st.com>
3709 * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
3710 * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed.
3712 2007-09-12 Ira Rosen <irar@il.ibm.com>
3714 * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
3715 for oprnd1 if not required.
3716 (vectorizable_operation): Use scalar operand in SLP in case of
3717 shift with scalar argument.
3719 2007-09-12 Ira Rosen <irar@il.ibm.com>
3721 * params.def (PARAM_MIN_VECT_LOOP_BOUND): Change default and minimum
3724 2007-09-11 James E. Wilson <wilson@specifix.com>
3726 * defaults.h (DWARF2_UNWIND_INFO): Don't define if
3727 TARGET_UNWIND_INFO is defined.
3728 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
3731 2007-09-12 Kaz Kojima <kkojima@gcc.gnu.org>
3733 * config/sh/sh.c (calc_live_regs): Use
3734 current_function_saves_all_registers instead of
3735 current_function_has_nonlocal_label.
3736 (sh_allocate_initial_value): Likewise.
3737 (sh_get_pr_initial_val): Likewise.
3738 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Likewise.
3739 * config/sh/sh.md (load_ra): Likewise.
3741 2007-09-12 Hans-Peter Nilsson <hp@axis.com>
3743 * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.
3746 * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
3747 GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
3749 2007-09-12 Sa Liu <saliu@de.ibm.com>
3751 * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
3752 operands to DFmode GE or LE compares.
3754 2007-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
3756 * config/bfin/bfin.h (enum reg_class, REG_CLASS_CONTENTS,
3757 REG_CLASS_NAMES): Add P0REGS.
3758 (REGNO_REG_CLASS): Return it where appropriate.
3759 (REG_CLASS_FROM_CONSTRAINT): Add 'qA'.
3760 (CLASS_LIKELY_SPILLED_P): P0REGS is likely_spilled.
3761 * doc/md.texi (Blackfin family): Document 'q' constraints.
3763 2007-09-11 Steve Kenton <skenton@ou.edu>
3765 * pa/linux-unwind.h: Guard with inhibit_libc.
3766 * pa/hpux-unwind.h: Likewise.
3768 2007-09-11 David Daney <ddaney@avtrex.com>
3770 * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
3771 * doc/install.texi: Document new --with-llsc and --without-llsc
3773 * config.gcc: Handle --with-llsc and --without-llsc configure options.
3774 * config/mips/mips.md (sync, memory_barrier): Wrap sync instrunction
3775 in %| and %- operand codes. Depend on GENERATE_SYNC instead of
3777 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
3778 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
3779 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
3780 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3781 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Depend on
3782 GENERATE_LL_SC instead of ISA_HAS_LL_SC.
3783 * config/mips/mips.opt (mllsc): New option.
3784 * config/mips/mips.c (mips_llsc): Define variable.
3785 (mips_handle_option): Handle mllsc option.
3786 (override_options): Set mips_print_operand_punct for '|' and '-'.
3787 (print_operand): Add new %| and %- operand codes.
3788 * config/mips/mips.h (mips_llsc_setting): New enum type.
3789 (mips_llsc): Declare.
3790 (OPTION_DEFAULT_SPECS): Add llsc handling.
3791 (GENERATE_SYNC): New macro.
3792 (GENERATE_LL_SC): New macro.
3793 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
3794 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
3795 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Wrap instructions
3796 in %| and %- operand codes.
3798 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
3800 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Deal with
3801 TYPE_NONALIASED_COMPONENT like with DECL_NONADDRESSABLE_P.
3803 2007-09-11 Jason Merrill <jason@redhat.com>
3806 * stor-layout.c (layout_decl): Do pack variable size fields.
3808 2007-09-11 Maxim Kuvyrkov <maxim@codesourcery.com>
3810 * config/m68k/predicates.md (movsi_const0_operand,
3811 non_symbolic_call_operand): New predicates.
3813 * config/m68k/constraints.md (Cs, Ci, C0, Cj, CQ, CW, CZ, CS, Ap, Ac):
3815 * doc/md.texi (Constraints for Particular Machines: Motorola 680x0):
3816 Document constraints N, O, P, R, S, T, Q, U, W, Cs, Ci, C0, Cj, CQ,
3817 CW, CZ, CS, Ap and Ac.
3819 * config/m68k/m68k.md (UNSPEC_IB): New constant.
3820 (constraints.md): New include.
3821 (cpu, type, type1, opx, opy, opx_type, opy_type, size, opx_access,
3822 opx_mem, opy_mem, op_mem, guess, split): New attributes.
3823 (movdf_internal): Name pattern. Fix to use alternatives. Add split.
3825 (pushdi): Add split.
3826 (tstsi_internal): Name pattern. Fix to use alternatives. Specify
3827 attributes. Split tstsi_internal_68020_cf from it.
3828 (tstsi_internal_68020_cf): New pattern.
3829 (tsthi_internal, tstqi_internal): Name pattern. Specify attributes.
3830 (tst<mode>_cf): Specify attributea.
3831 (cmpsi_cf): Name pattern. Specify attributes.
3832 (cmp<mode>_68881, cmp<mode>_cf): Specify type attribute.
3833 (pushexthisi_const): Fix to use alternatives. Specify
3835 (movsi_const0): Split movsi_const0_68000_10 and movsi_const0_68040_60
3836 from it. Fix to use alternatives. Specify attributes.
3837 (movsi_const0_68040_10, movsi_const0_68040_60): New patterns.
3838 (movsi_cf, movstrictqi_cf): Fix to use alternatives. Specify
3840 (movsf_cf_soft): Specify attributes.
3841 (movdf_cf_soft): Add split.
3842 (pushasi, zero_extendhisi2_cf, zero_extendqisi2_cfv4,
3843 cfv4_extendhisi2, 68k_extendhisi2, extendqihi2, cfv4_extendqisi2,
3844 68k_extendqisi2, truncdfsf2_cf): Specify attributes.
3845 (truncdfsf2_68881): Name pattern. Specify attributes.
3846 (floatsi<mode>2_cf, floathi<mode>2_68881, floathi<mode>2_cf,
3847 floatqi<mode>2_68881, floatqi<mode>2_cf, ftrunc<mode>2_cf,
3848 fix<mode>qi2_cf, fix<mode>hi2_cf, fix<mode>si2_cf, adddi_dishl32):
3850 (addsi3_5200): Fix to use alternatives. Specify attributes.
3852 (add<mode>3_cf, subdi_dishl32): Specify attributes.
3853 (subsi3): Add alternative for subq.l. Specify attributes.
3854 (sub<mode>3_cf, mulhi3, mulhisi3): Specify attributes.
3855 (mulhisisi3_s, mulsi3_68020, mulsi3_cf): Name pattern. Specify
3857 (umulhisi3): Specify attributes.
3858 (mulhisisi3_z): Name pattern. Specify attributes.
3859 (fmul<mode>3_cf, div<mode>3_cf, negsi2_internal, negsi2_5200,
3860 sqrt<mode>2_68881, clzsi2, one_cmplsi2_5200, subreghi1ashrdi_const32,
3861 subregsi1ashrdi_const32, ashrsi3, subreg1lshrdi_const32, lshrsi3,
3862 bsetmemqi): Specify attributes.
3863 (bsetmemqi_ext): Name pattern. Specify attributes.
3864 (bclrmemqi): Specify attributes.
3865 (bclrmemqi_ext, scc, sls): Name pattern. Specify attributes.
3866 (beq, bne, bgt, bgtu, blt, bltu, bge, bgeu, ble, bleu): Specify
3868 (beq2, bne2, bgt2, bgtu2, blt2, bltu2, bge2, bgeu2, ble2, bleu2): Name
3869 pattern. Specify attributes.
3870 (jump): Specify attributes.
3871 (tablejump_internal): Name pattern. Specify attributes.
3872 (call_value): Split into non_symbolic_call_value,
3873 symbolic_call_value_jsr, symbolic_call_value_bsr. Fix to use
3874 alternatives. Specify attributes.
3875 (non_symbolic_call_value, symbolic_call_value_jsr,
3876 symbolic_call_value_bsr): New patterns.
3877 (nop, return, unlink, indirect_jump): Specify attributes.
3878 (trap): Fix condition. Specify attributes.
3881 * config/m68k/m68k.c (m68k_symbolic_call_var): New variable.
3882 (override_options): Initialize it. Initialize m68k_sched_cpu.
3883 (CONST_METHOD): Rename to M68K_CONST_METHOD, move to m68k.h.
3884 (const_method): Make global, rename to m68k_const_method.
3885 (const_int_cost, output_move_const_into_data_reg): Update.
3886 (output_move_double): Parametrize to emit rtl code, rename to
3888 (output_reg_adjust, emit_reg_adjust, output_compadr, output_movsi,
3889 emit_movsi): New static functions.
3890 (output_move_double): New function with semantics of old
3892 (m68k_emit_move_double): New function.
3893 (m68k_sched_cpu): New variable.
3894 (attr_op_type): New enum.
3895 (sched_guess_p): New variable.
3896 (sched_address_type, sched_operand_type, sched_attr_op_type):
3897 New static functions.
3898 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
3899 m68k_sched_attr_size, m68k_sched_attr_op_mem): New functions.
3900 (sched_branch_type): New static variable.
3901 (m68k_sched_branch_type): New function.
3902 * config/m68k/m68k.h (M68K_SYMBOLIC_CALL): New enum.
3903 (m68k_symbolic_call_var): Declare.
3904 (M68K_CONST_METHOD): Rename from CONST_METHOD. Move here from m68k.c.
3905 (m68k_const_method, m68k_emit_move_double, m68k_sched_cpu,
3906 m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
3907 m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type):
3910 2007-09-11 Jakub Jelinek <jakub@redhat.com>
3912 * builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
3913 * builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
3914 error if __builtin_va_arg_pack_len () wasn't optimized out during
3916 * tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
3917 with the number of inline's anonymous arguments.
3918 * doc/extend.texi: Document __builtin_va_arg_pack_len ().
3920 2007-09-11 Zdenek Dvorak <ook@ucw.cz>
3922 * fold-const.c (extract_muldiv_1): Do not simplify
3925 2007-09-11 Jan Hubicka <jh@suse.cz>
3927 * i386.h (ix86_tune_indices): Add X86_TUNE_INTER_UNIT_CONVERSIONS.
3928 (TARGET_INTER_UNIT_CONVERSIONS): New.
3929 * i386.md (floatsi expanders): Remove redundant check for SImode
3930 source; offload to memory when asked for.
3931 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse
3932 floatdisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
3934 (floatsisf2_mixed_memory, floatsisf2_sse_memory,
3935 floatsidf2_mixed_memory, floatsidf2_sse_memory
3936 floatdisf2_mixed_memory, floatsisf2_sse_memory,
3937 floatsidf2_mixed_memory, floatsidf2_sse_memory): New.
3939 2007-09-11 Jan Hubicka <jh@suse.cz>
3941 * toplev.c (process_options): all frontends now do unit-at-a-time.
3942 * cgraphunit.c: update comments.
3943 (cgraph_expand_function): call passmanager dirrectly; emit thunks.
3944 * c-decl.c (finish_function): use cgraph_add_new_function.
3945 * function.c (expand_function_end): We are always unit-at-a-time.
3947 2007-09-11 Richard Sandiford <richard@codesourcery.com>
3949 * config/mips/mips.c (mips_set_mips16_mode): Use separate anchor
3950 settings for MIPS16.
3951 (mips_use_anchors_for_symbol_p): Use default_use_anchors_for_symbol_p.
3953 2007-09-11 Richard Sandiford <richard@codesourcery.com>
3955 * config/mips/mips.c (mips_symbol_insns_1): Allow LEAs of
3956 SYMBOL_FORCE_TO_MEM constants.
3957 (mips_rtx_costs): Give a cost of 1 to force_to_mem_operands.
3958 (mips16_rewrite_pool_refs_info): New structure.
3959 (mips16_rewrite_pool_constant): New function, split out from...
3960 (mips16_rewrite_pool_refs): ...here. Take a pointer to a
3961 mips16_rewrite_pool_refs_info structure rather than a pointer
3962 to a constant pool. Force force_to_mem_operands into memory.
3963 (mips16_lay_out_constants): Update call to mips16_rewrite_pool_refs.
3964 * config/mips/predicates.md (force_to_mem_operand): New predicate.
3965 * config/mips/constraints.md (kf): New constraint.
3966 * config/mips/mips.md (*movdi_64bit_mips16): Add a d <- kf alternative.
3967 (*movsi_mips16): Likewise.
3969 2007-09-11 Richard Sandiford <richard@codesourcery.com>
3970 Nigel Stephens <nigel@mips.com>
3971 David Ung <davidu@mips.com>
3973 * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
3974 * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
3975 (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
3976 (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
3977 (mips_zero_extend_cost): New functions.
3978 (mips_rtx_costs): Treat COMPARE constants as having zero cost.
3979 Use the new functions. Tweak many cost estimates, both here
3980 and in the new subroutines. Return false when the cost of the
3981 operands has not been calculated. Check for *clear_upper32.
3982 Check for floating-point multiply-add, reciprocal and rsqrt
3983 patterns. Handle comparison and rotation codes.
3985 2007-09-11 Danny Smith <dannysmith@users.sourceforge.net>
3987 * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
3989 * config/i386/i386.c (get_dllimport_decl): Don't strip
3992 2007-09-10 Janis Johnson <janis187@us.ibm.com>
3995 * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
3996 declarations to top.
3997 (DFP_TO_BFP): Use for either XFmode or TFmode.
3998 (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
4000 * config/dfp-bit.h: Include float.h.
4001 (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
4002 double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
4003 which doesn't mean the same thing.
4004 (BFP_KIND): Use 4 to mean TFmode.
4005 (BFP_FMT): Specify the number of decimal digits based on the
4006 number of mantissa digits.
4007 (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
4008 (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
4009 (STR_TO_BFP): Use strtold for XFmode or TFmode.
4010 (TFtype): Define if TFmode is supported.
4011 * doc/libgcc.texi (Decimal float library routines): Document
4012 TF conversion functions.
4014 2007-09-10 Chao-ying Fu <fu@mips.com>
4016 * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
4017 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4018 (mips_emit_compare): Process fixed-point modes.
4019 (mips_pad_arg_upward): Support fixed-point types.
4020 (override_options): Allow fixed-point modes in accumulators.
4021 (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
4022 (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
4023 V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
4024 (mips_scalar_mode_supported_p): New function to accept fixed-point
4025 modes if the width is not greater than two BITS_PER_WORD.
4026 * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
4027 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
4028 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
4029 LONG_LONG_ACCUM_TYPE_SIZE): Define.
4030 * config/mips/mips.md ("d"): Update mode attribute for fixed-point
4032 ("IMODE"): New mode attribute.
4033 (mips-fixed.md): Include.
4034 * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
4036 * config/mips/mips-fixed.md: New file.
4038 2007-09-11 Ben Elliston <bje@au.ibm.com>
4040 * config/spu/spu.md: Formatting fixes.
4042 2007-09-10 Janis Johnson <janis187@us.ibm.com>
4044 * config/dfp-bit.c (dfp_unary_func): Delete.
4045 (dfp_unary_op): Delete.
4046 (dfp_binary_op): Use decFloat functions instead of decNumber
4047 functions for binary operations.
4048 (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
4049 (dnn_binary_op): Call dfp_binary_op with decFloat rather than
4051 (dfp_compare_op): Use decFloat functions insteadof decNumber
4052 functions for comparisons.
4053 (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
4054 (dnn_binary_op): Call dfp_compare_op with decFloat rather than
4056 (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
4057 call to dxx_binary_op and decFloat function.
4058 (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
4059 calls to dxx_binary_op and decFloat function.
4060 * config/dfp-bit.h: Include decFloat header files.
4061 (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
4062 DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
4063 DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
4064 DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
4066 2007-09-10 Harsha Jagasia <harsha.jagasia@amd.com>
4067 Jan Sjodin <jan.sjodin@amd.com>
4069 * tree-vect-analyze.c (vect_analyze_operations): Change
4070 comparison of loop iterations with threshold to less than
4071 or equal to instead of less than. Reduce
4072 min_scalar_loop_bound by one.
4073 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
4074 Change prologue and epilogue iterations estimate to vf/2,
4075 when unknown at compile-time. Change versioning guard
4076 cost to taken_branch_cost. If peeling for alignment is
4077 unknown at compile-time, change peel guard costs to one
4078 taken branch and one not-taken branch per peeled loop.
4079 If peeling for alignment is known but number of scalar loop
4080 iterations is unknown at compile-time, change peel guard
4081 costs to one taken branch per peeled loop. Change the cost
4082 model equation to consider vector iterations as the loop
4083 iterations less the prologue and epilogue iterations.
4084 Change outside vector cost check to less than or equal to
4085 zero instead of equal to zero.
4086 (vect_do_peeling_for_loop_bound): Reduce
4087 min_scalar_loop_bound by one.
4088 * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
4089 TARG_COND_NOT_TAKEN_BRANCH_COST.
4090 * config/i386/i386.h (processor_costs): Add
4091 scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
4092 vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
4093 vec_align_load_cost, vect_unalign_load_cost,
4094 vec_store_cost, cond_taken_branch_cost,
4095 cond_not_taken_branch_cost.
4096 Define macros for x86 costs.
4097 * config/i386/i386.c:
4098 (size_cost): Set scalar_stmt_cost, scalar_load_cost,
4099 scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
4100 scalar_to_vec_cost, vec_align_load_cost,
4101 vect_unalign_load_cost, vec_store_cost,
4102 cond_taken_branch_cost, cond_not_taken_branch_cost to one.
4103 (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
4104 geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost,
4105 core2_cost, generic64_cost, generic32_cost): Set to default
4107 (k8_cost, amdfam10_cost): Costs for vectorization tuned.
4108 (x86_builtin_vectorization_cost): New.
4110 2007-09-10 Janis Johnson <janis187@us.ibm.com>
4111 Ben Elliston <bje@au.ibm.com>
4113 * dfp.c: Include decimal128Local.h;
4114 (dfp_byte_swap): Remove.
4115 (encode_decimal32, decode_decimal32): Don't handle endianness.
4116 (encode_decimal64, decode_decimal64): Ditto.
4117 (encode_decimal128, decode_decimal128): Ditto.
4118 * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
4120 (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
4122 (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
4123 * Makefile.in (DECNUM_H): Add decimal128Local.h.
4125 2007-09-10 David Daney <ddaney@avtrex.com>
4127 * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
4129 (memory_barrier): Rewrote as an insn that clobbers memory.
4131 2007-09-10 Richard Sandiford <richard@codesourcery.com>
4133 * config/mips/mips.c (mips_global_pointer): Check
4134 call_really_used_regs instead of call_used_regs.
4135 (mips_save_reg_p): Likewise. Save all call-saved registers
4136 if current_function_saves_all_registers. Fix indentation.
4137 No longer treat $18 as a special case.
4138 (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
4140 2007-09-10 Richard Sandiford <richard@codesourcery.com>
4142 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
4143 * config/mips/mips.c (mips_cpu_info_table): Mention it in the
4144 the introductory comment.
4145 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
4146 (override_options): Don't test for it.
4147 * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
4148 (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
4149 * config/mips/vr.h: As for config/mips/sde.h.
4151 2007-09-10 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4152 Revital Eres <eres@il.ibm.com>
4154 * target.h (struct gcc_target.sched): New field: sms_res_mii.
4155 (struct ddg): Define.
4156 * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
4157 (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
4158 * config/spu/spu.c: Include ddg.h.
4159 (TARGET_SCHED_SMS_RES_MII): Define.
4160 (spu_sms_res_mii): New function to calculate mii.
4161 * modulo-sched (res_MII): Use it.
4162 * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
4164 2007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
4166 * config/s390/s390.c (s390_dump_pool): Create copy of constant
4167 pool entries since they might hold values that must not be shared.
4169 2007-09-10 Uros Bizjak <ubizjak@gmail.com>
4172 * gcc/config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
4173 Use 'N' operand constraint for op2.
4174 (lshr<mode>3): Ditto.
4175 (ashl<mode>3): Ditto.
4176 (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
4177 (vec_shr_<mode>): Ditto.
4178 * gcc/config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
4179 IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
4181 2007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
4183 * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
4184 Change mode macro in the last real_2expN parameter to uppercase.
4186 2007-09-10 Michael Matz <matz@suse.de>
4188 * tree-pass.h (pass_cselim): Declare new pass.
4189 * passes.c (init_optimization_passes): Link in pass_cselim.
4190 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
4191 tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
4192 cond_store_replacement.
4193 (condstoretemp): New static variable.
4194 (cond_store_replacement): New function.
4195 (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
4196 tree_ssa_phiopt_worker.
4197 (struct name_to_bb): New.
4198 (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
4199 nt_init_block, nt_fini_block): New static functions.
4200 (seen_ssa_names, nontrap_set): New static variables.
4201 (gate_cselim, pass_cselim): Define new pass.
4202 * common.opt (ftree-cselim): New flag.
4203 * toplev.c (process_options): Set flag_tree_cselim if required.
4205 2007-09-10 Hans-Peter Nilsson <hp@axis.com>
4207 * simplify-rtx.c (simplify_relational_operation_1): For recent
4208 canonicalization, don't recurse if op1 equals both PLUS arguments.
4210 2007-09-09 David Daney <ddaney@avtrex.com>
4212 * optabs.c (expand_sync_operation): Use plus insn if minus
4214 (expand_sync_fetch_operation): Ditto.
4216 2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
4218 * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
4220 (*floatsisf2_sse_vector): Likewise.
4222 2007-09-09 Krister Walfridsson <cato@df.lth.se>
4224 * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
4226 2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
4228 * config/i386/i386.h (ix86_tune_indices): Rename
4229 X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
4230 (TARGET_USE_VECTOR_CONVERTS): Updated.
4231 * config/i386/i386.c: Likewise.
4233 2007-09-09 Sandra Loosemore <sandra@codesourcery.com>
4234 Nigel Stephens <nigel@mips.com>
4236 * doc/invoke.texi (Overall Options): Add .sx file extension
4237 as a synonym for .S.
4238 * cppspec.c (known_suffixes): Likewise.
4239 * gcc.c (default_compilers): Likewise.
4241 2007-09-09 Rask Ingemann Lambertsen <rask@sygehus.dk>
4244 * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
4245 * simplify-rtx.c (simplify_relational_operation_1): Add the
4246 canonicalization from i386.h.
4247 * doc/md.texi (Canonicalization of Instructions): Document it.
4249 2007-09-09 Jan Hubicka <jh@suse.cz>
4250 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4252 * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
4253 (TARGET_USE_VECTOR_CONVERTS): New.
4254 * i386.md: New post-reload splitters for converting SF to DF and DF to
4256 (floatsi* expander): Special case vector conversions.
4257 (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
4258 floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
4259 floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
4260 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
4261 Disable when doing vector converts.
4262 (floatsi<mode>2_i387): Disable when
4263 * sse.md (vec_dupv2df): Export.
4264 * i386.c (ix86_tune_features): Enable SSE conversions.
4266 2007-09-09 Richard Guenther <rguenther@suse.de>
4268 * tree-ssa-operands.c (add_virtual_operand): Only mark
4269 stores as has_volatile_ops if alias information is not available.
4271 2007-09-09 Revital Eres <eres@il.ibm.com>
4273 * doc/contrib.texi: Add myself.
4275 2007-09-09 Ira Rosen <irar@il.ibm.com>
4277 * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
4278 stmt_vinfo_set_outside_of_loop_cost): New functions.
4279 * tree-vect-transform.c (vect_get_cost_fields): Remove.
4280 (vect_model_simple_cost): Call
4281 stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
4282 field instead of calling vect_get_cost_fields.
4283 (vect_model_store_cost, vect_model_load_cost): Likewise.
4285 2007-09-09 Revital Eres <eres@il.ibm.com>
4287 * config/rs6000/rs6000.c (paired_init_builtins): Add const
4288 declaration to bdesc_paired_preds variable.
4289 (paired_expand_builtin): Likewise.
4291 2007-09-09 Revital Eres <eres@il.ibm.com>
4293 * dbgcnt.def (sms_sched_loop): New counter.
4294 * modulo-sched.c: Use sms_sched_loop instead of
4295 MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
4296 perform swing modulo scheduling on. Include dbgcnt.h.
4297 * Makefile.in: Add DBGCNT_H to modulo-sched.o.
4298 * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
4300 2007-09-09 Uros Bizjak <ubizjak@gmail.com>
4302 * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
4303 Substitute all uses with ...
4304 (MODEF): New mode iterator.
4306 (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
4307 from pre-regalloc define_insn_and_split splitter pattern.
4308 (*fix_trunc<mode>_i387_1): Ditto.
4309 (*fistdi2_1): Ditto.
4310 (*fist<mode>2_1): Ditto.
4311 (frndintxf2_floor): Ditto.
4312 (*fist<mode>2_floor_1): Ditto.
4313 (frndintxf2_ceil): Ditto.
4314 (*fist<mode>2_ceil_1): Ditto.
4315 (frndintxf2_trunc): Ditto.
4316 (frndintxf2_mask_pm): Ditto.
4318 (prologue): Use (const_int 0) as never generated filler insn.
4320 (sibcall_epilogue): Ditto.
4321 (eh_return_si): Ditto.
4322 (eh_return_di): Ditto.
4324 (add<mode>3): Rename from adddf3 and addsf3. Macroize expander
4325 using MODEF mode iterator.
4326 (sub<mode>3): Rename from subdf3 and subsf3. Macroize expander
4327 using MODEF mode iterator.
4328 (mul<mode>3): Rename from muldf3 and mulsf3. Macroize expander
4329 using MODEF mode iterator.
4330 (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
4331 Macroize expander using MODEF mode iterator.
4333 (zero_extendsidi2): Remove operand constraints from expander.
4334 (smuldi3_highpart): Ditto.
4335 (indirect_jump): Ditto.
4338 * config/i386/sse.md (storentv4sf): Ditto.
4339 (storentv2df): Ditto.
4340 (storentv2di): Ditto.
4342 (sse2_cvtpd2ps): Ditto.
4343 (vec_interleave_highv16qi): Ditto.
4344 (vec_interleave_lowv16qi): Ditto.
4345 (vec_interleave_highv8hi): Ditto.
4346 (vec_interleave_lowv8hi): Ditto.
4347 (vec_interleave_highv4si): Ditto.
4348 (vec_interleave_lowv4si): Ditto.
4349 (vec_interleave_highv2di): Ditto.
4350 (vec_interleave_lowv2di): Ditto.
4351 (sse2_maskmovdqu): Ditto.
4352 * config/i386/mmx.md (mmx_maskmovq): Ditto.
4354 2007-09-09 Ira Rosen <irar@il.ibm.com>
4356 * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
4357 (struct _slp_tree, struct _slp_instance): Define new data structures
4358 along macros for their access.
4359 (struct _loop_vec_info): Define new fields: strided_stores,
4360 slp_instances, and slp_unrolling_factor along macros for their access.
4361 (enum slp_vect_type): New.
4362 (struct _stmt_vec_info): Define new field, slp_type, and macros for
4364 (STMT_VINFO_STRIDED_ACCESS): New macro.
4365 (vect_free_slp_tree): Declare.
4366 (vectorizable_load): Add an argument of type slp_tree.
4367 (vectorizable_store, vectorizable_operation, vectorizable_conversion,
4368 vectorizable_assignment): Likewise.
4369 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
4370 Declare (make extern).
4371 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
4372 (new_loop_vec_info): Likewise.
4373 (destroy_loop_vec_info): Free memory allocated for SLP structures.
4374 * tree-vect-analyze.c: Include recog.h.
4375 (vect_update_slp_costs_according_to_vf): New.
4376 (vect_analyze_operations): Add argument for calls to vectorizable_ ()
4377 functions. For not pure SLP stmts with strided access check that the
4378 group size is power of 2. Update the vectorization factor according to
4379 SLP. Call vect_update_slp_costs_according_to_vf.
4380 (vect_analyze_group_access): New.
4381 (vect_analyze_data_ref_access): Call vect_analyze_group_access.
4382 (vect_free_slp_tree): New functions.
4383 (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
4384 vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
4385 vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
4386 vect_detect_hybrid_slp): Likewise.
4387 (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
4388 and vect_detect_hybrid_slp.
4389 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
4390 SLP costs into account.
4391 (vect_get_cost_fields): New function.
4392 (vect_model_simple_cost): Make extern, add SLP parameter and handle
4394 (vect_model_store_cost, vect_model_load_cost): Likewise.
4395 (vect_get_constant_vectors): New function.
4396 (vect_get_slp_vect_defs, vect_get_slp_defs,
4397 vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
4398 vect_get_vec_defs): Likewise.
4399 (vectorizable_reduction): Don't handle SLP for now.
4400 (vectorizable_call): Don't handle SLP for now. Add argument to
4401 vect_model_simple_cost.
4402 (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
4403 get SLPed and vectorized defs). Fix indentation and spacing.
4404 (vectorizable_assignment): Handle SLP.
4405 (vectorizable_induction): Don't handle SLP for now.
4406 (vectorizable_operation): Likewise.
4407 (vectorizable_type_demotion): Add argument to
4408 vect_model_simple_cost.
4409 (vectorizable_type_promotion): Likewise.
4410 (vectorizable_store, vectorizable_load): Handle SLP.
4411 (vectorizable_condition): Don't handle SLP for now.
4412 (vect_transform_stmt): Add a new argument for SLP. Check that there is
4413 no SLP transformation required for unsupported cases. Add SLP
4414 argument for supported cases.
4415 (vect_remove_stores): New function.
4416 (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
4417 (vect_transform_loop): Schedule SLP instances.
4418 * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
4420 2007-09-09 Andrew Haley <aph@redhat.com>
4422 * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the fake
4425 2007-09-09 Hans-Peter Nilsson <hp@axis.com>
4427 Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
4428 * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
4429 Similar for what label_refs can go in the JUMP_TARGET field. Split
4430 REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
4431 * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
4432 REG_LABEL when replacing an operand with a LABEL_REF for a
4434 (subst_reloads): When replacing a LABEL_REG with a register,
4435 instead of generating a REG_LABEL note, assert that there already
4436 is one or that the label is a known target for the insn.
4437 * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
4438 note, check the JUMP_LABEL field. Remove "else" after return.
4439 * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
4440 cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
4441 (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
4442 REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
4443 insns. Iterate over all notes; don't assume there's only one.
4444 * cse.c (recorded_label_ref): Adjust comment to refer to
4446 (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
4447 insns, not just NONJUMP_INSN_P.
4448 (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
4449 isn't a jump target.
4450 * jump.c (rebuild_jump_labels): Adjust head comment.
4451 (init_label_info): Ditto. Remove REG_LABEL_OPERAND notes only;
4452 don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
4453 (mark_all_labels): For JUMP_P insns without a target, check if the
4454 the target is noted on the previous nonjump insn.
4455 (mark_jump_label_1): New function, guts from mark_jump_label.
4456 <case IF_THEN_ELSE>: Handle first operand as a non-target when
4457 marking jump target labels.
4458 <case LABEL_REF>: Adjust for whether to generate a
4459 REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
4460 For 'E' format rtl, iterate in descending element order.
4461 (delete_related_insns): Handle both REG_LABEL_TARGET and
4462 REG_LABEL_OPERAND notes. For JUMP_P insns with labels with zero
4463 reference count, delete and fallthrough. Move finding-next-
4464 non-deleted insn last in the function. Look at all INSN_P insns
4465 for REG_LABEL_OPERAND notes.
4466 (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
4468 * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
4469 JUMP_LABEL, output the INSN_UID of it.
4470 * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
4471 and/or REG_LABEL_TARGET.
4472 (add_label_notes): Only add REG_LABEL_OPERAND notes. Put in line
4473 with jump.c copy by only adding notes for labels actually
4474 referenced in the insn.
4475 * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
4476 usage count increment; handle all INSN_P trial insns.
4477 (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
4479 * rtl.h (struct rtx_def) <volatil>: Adjust to mention
4480 REG_LABEL_TARGET and REG_LABEL_OPERAND.
4481 (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
4483 * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
4484 JUMP_P insns and REG_LABEL_OPERAND everywhere.
4485 * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
4486 on all INSN_P insns.
4487 * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
4488 * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
4489 REG_LABEL_OPERAND notes.
4490 * reload1.c (calculate_needs_all_insns): Adjust comments.
4491 (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
4492 * config/alpha/alpha.md (split for load of an address into a
4493 four-insn sequence on Unicos/Mk): Adjust to use
4495 * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
4497 2007-09-09 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4500 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4501 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
4502 FOR_BB_INSNS_SAFE instead of for loop.
4503 * cse.c (cse_extended_basic_block): Likewise.
4504 * postreload.c (reload_cse_regs_1): New variable next. Make sure
4505 that the for loop does not invoke NEXT_INSN on a deleted insn.
4506 * function.c (instantiate_virtual_regs): Likewise.
4507 * lower-subreg.c (remove_retval_note): Likewise.
4508 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
4510 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
4512 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
4513 insn, if it's a jump.
4514 (try_redirect_by_replacing_jump): New variable jump_p. Call
4515 tablejump_p before delete_insn_chain.
4516 * reload1.c (reload): New variable next. Make sure that the for
4517 loop does not invoke NEXT_INSN on a deleted insn.
4518 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
4519 (delete_output_reload): New variable prev. Make sure the the for
4520 loops do not invoke PREV_INSN on a deleted insn.
4522 2007-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4524 * pa/constraints.md: Remove 'X' from unused letters comment.
4526 2007-09-08 Richard Guenther <rguenther@suse.de>
4528 * tree-tailcall.c (find_tail_calls): If we don't have aliases
4529 computed check stmt_ann->references_memory instead of counting
4532 2007-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4534 * cse.c (fold_rtx): Use validate_unshare_change() instead of
4535 validate_change() in one more case.
4537 2007-09-08 Zdenek Dvorak <ook@ucw.cz>
4539 PR tree-optimization/32283
4540 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
4541 estimated_loop_iterations.
4542 (determine_use_iv_cost_condition): Decrease cost of expressions
4543 used in iv elimination.
4545 2007-09-08 Richard Guenther <rguenther@suse.de>
4547 * tree-cfg.c (verify_gimple_expr): Avoid building new
4548 pointer types, use TYPE_POINTER_TO if available instead.
4550 2007-09-08 Uros Bizjak <ubizjak@gmail.com>
4553 PR rtl-optimization/26449
4554 * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
4555 (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
4557 (mulv16qi3): Implement as define_insn_and_split pattern instead of
4558 define_expand. Split insn in split1 pass.
4561 2007-09-08 Dorit Nuzman <dorit@il.ibm.com>
4563 PR tree-optimization/33301
4564 * tree-vect-analyze (analyze_operations): Look at the type of the rhs
4567 2007-09-07 Zdenek Dvorak <ook@ucw.cz>
4569 PR tree-optimization/32183
4570 * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
4572 * tree-ssa-reassoc.c: Include cfgloop.h.
4573 (is_reassociable_op): Add a loop argument and return true only
4575 (linearize_expr): Updated.
4576 (should_break_up_subtract): Likewise.
4577 (linearize_expr_tree): Likewise.
4578 (init_reassoc): Call loop_optimizer_init with
4579 AVOID_CFG_MODIFICATIONS. Remove calculate_dominance_info call
4580 with CDI_DOMINATORS.
4581 (fini_reassoc): Call loop_optimizer_finalize.
4583 2007-09-07 Sterling Augustine <sterling@tensilica.com>
4585 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
4586 if there is no i-cache.
4588 2007-09-07 Richard Guenther <rguenther@suse.de>
4591 2007-09-06 Richard Guenther <rguenther@suse.de>
4593 PR tree-optimization/32586
4594 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
4595 folding if nothing changed.
4596 (simplify_unary_expression): New function. Do tree combining
4597 on conversion like codes.
4598 (try_to_simplify): Call it.
4600 2007-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4603 * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
4604 (__gthread_active,__gthread_start, __gthread_active_init): New.
4605 * gthr-posix95.h: Likewise.
4607 2007-09-07 Roman Zippel <zippel@linux-m68k.org>
4609 * function.h (struct function): Rename calls_unwind_init
4610 to saves_all_registers.
4611 (current_function_saves_all_registers): Renamed from
4612 current_function_calls_unwind_init.
4613 * reload1.c (reload): Set current_function_saves_all_registers.
4614 * except.c (expand_builtin_unwind_init): Likewise.
4615 * config/m68k/m68k.c (m68k_save_reg): Use
4616 current_function_saves_all_registers to save pic register.
4618 2007-09-07 Janis Johnson <janis187@us.ibm.com>
4620 config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
4621 config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
4623 Reapply reverted changes:
4625 2007-09-06 Jan Hubicka <jh@suse.cz>
4627 * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call
4630 2007-09-06 Richard Sandiford <richard@codesourcery.com>
4632 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4633 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
4635 2007-09-05 Janis Johnson <janis187@us.ibm.com>
4637 * optabs.c (expand_float): Convert unsigned integer as signed only
4638 if it provides sufficient accuracy; add mode argument to real_2expN.
4639 (expand_fix): Fix comment typos; extend binary float into mode
4640 wider than destination for converion to unsigned integer; add mode
4641 argument to real_2expN.
4642 * real.c (real_2expN): Add mode argument to special-case decimal
4644 * real.h (real_2expN): Ditto.
4645 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
4647 (fixed_from_string): Ditto.
4648 (fixed_to_decimal): Ditto.
4649 (fixed_convert_from_real): Ditto.
4650 (real_convert_from_fixed): Ditto.
4651 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
4652 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
4653 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
4654 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
4656 2007-09-07 Diego Novillo <dnovillo@google.com>
4658 * tree-flow.h (const_block_stmt_iterator): Remove.
4659 Update all users to use block_stmt_iterator.
4660 * tree-iterator.h (const_tree_stmt_iterator): Remove.
4661 Update all users to use tree_stmt_iterator.
4663 2007-09-07 Sandra Loosemore <sandra@codesourcery.com>
4665 * config/mips/mips.c (mips_set_current_function): Temporarily
4666 make this a no-op to fix bootstrap errors, pending rewrite.
4668 2007-09-07 Jan Hubicka <jh@suse.cz>
4670 * reorg.c (dbr_schedule): Move code removing placeholder USEs later
4673 2007-09-07 Dorit Nuzman <dorit@il.ibm.com>
4675 PR tree-optimization/33299
4676 * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
4677 uses for all relevant loop-exit phis, not just the first.
4679 2007-09-07 Richard Guenther <rguenther@suse.de>
4682 * tree-ssa-operands.c (access_can_touch_variable): An access
4683 of the form (*p)[0] can touch a variable of same size.
4685 2007-09-07 Jan Hubicka <jh@suse.cz>
4687 * passes.c (init_optimization_passes): Add simple dce and addressable
4689 * tree-ssa.c (execute_update_addresses_taken): New function.
4690 (pass_update_address_taken): New.
4691 * tree-ssa-dse.c (execute_simple_dse): New function.
4692 (pass_simple_dse): New.
4693 * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
4695 2007-09-07 Tobias Burnus <burnus@net-b.de>
4698 * doc/invoke.texi: Fix -Wstrict-overflow= table.
4700 2007-09-07 Richard Guenther <rguenther@suse.de>
4703 2007-09-06 Richard Guenther <rguenther@suse.de>
4705 PR tree-optimization/32586
4706 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
4707 folding if nothing changed.
4708 (simplify_unary_expression): New function. Do tree combining
4709 on conversion like codes.
4710 (try_to_simplify): Call it.
4712 2007-09-07 Richard Guenther <rguenther@suse.de>
4713 Uros Bizjak <ubizjak@gmail.com>
4715 PR tree-optimization/32821
4716 * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
4717 NULL in the call to set_bb_stmt_list.
4719 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4721 * config/mips/mips.c (build_mips16_call_stub): Emit all direct
4722 float calls here, rather than leaving some to the caller.
4723 Use call_internal_direct and call_value_internal_direct.
4724 * config/mips/mips.md (call_internal_direct): New pattern.
4725 (call_value_internal_direct): Likewise.
4727 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4729 * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
4730 (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
4732 (override_options): Set mips_base_move_loop_invariants.
4734 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4736 * config/mips/mips.opt (mcode-readable=): Move to keep list
4739 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4741 * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
4742 and -mgpopt options. Adjust the -G documentation to match.
4743 * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
4744 * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
4745 function, split out from mips_classify_symbol. Return false for
4746 !TARGET_LOCAL_SDATA.
4747 (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
4748 Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
4749 (override_options): Check whether the -mgpopt setting is consistent
4750 with the other flags.
4751 (symbolic_expression_p): Delete.
4752 (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
4753 and default_elf_select_rtx_section.
4754 (mips_in_small_data_p): Honor section attributes for MIPS16 too.
4755 Return false for local data unless TARGET_LOCAL_SDATA. Likewise
4756 external data and TARGET_EXTERN_SDATA.
4758 2007-09-07 Tobias Burnus <burnus@net-b.de>
4761 * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
4763 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4765 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
4766 FOR_BB_INSNS_SAFE instead of for loop.
4767 * cse.c (cse_extended_basic_block): Likewise.
4768 * postreload.c (reload_cse_regs_1): New variable next. Make sure
4769 that the for loop does not invoke NEXT_INSN on a deleted insn.
4770 * function.c (instantiate_virtual_regs): Likewise.
4771 * lower-subreg.c (remove_retval_note): Likewise.
4772 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
4774 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
4776 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
4777 insn, if it's a jump.
4778 (try_redirect_by_replacing_jump): New variable jump_p. Call
4779 tablejump_p before delete_insn_chain.
4780 * reload1.c (reload): New variable next. Make sure that the for
4781 loop does not invoke NEXT_INSN on a deleted insn.
4782 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
4783 (delete_output_reload): New variable prev. Make sure the the for
4784 loops do not invoke PREV_INSN on a deleted insn.
4786 2007-09-06 Zdenek Dvorak <ook@ucw.cz>
4788 * cgraphbuild.c (rebuild_cgraph_edges): Export.
4789 * cgraph.h (rebuild_cgraph_edges): Declare.
4790 * tree-pass.h (pass_expand_omp_ssa): New.
4791 * omp-low.c (find_omp_clause): Export.
4792 (copy_var_decl): Split from omp_copy_decl_2.
4793 (build_omp_barrier): Return the call to emit instead of emitting
4795 (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
4797 (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
4798 expand_omp_for_generic, expand_omp_for_static_nochunk,
4799 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
4800 Adapted to work on SSA form.
4801 (execute_expand_omp): Do not invalidate dominance information.
4802 (gate_expand_omp): Do not run with -fopenmp-ssa flag.
4803 (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
4804 * gimplify.c (gimplify_omp_for): Ensure that the control variable is
4806 (force_gimple_operand): Allow gimplifying code expressions without
4808 * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
4809 * common.opt (fopenmp-ssa): New.
4810 * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
4811 * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
4812 * tree-cfg.c: Include tree-inline.h.
4813 (struct move_stmt_d): Replace vars_to_remove by vars_map field.
4814 (replace_by_duplicate_decl, replace_ssa_name,
4815 mark_virtual_ops_in_region): New functions.
4816 (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
4817 to work on SSA form.
4818 * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
4819 * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
4822 2007-09-06 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4824 * tree-loop-linear.c: Include obstack.h.
4825 (linear_transform_loops): New obstack lambda_obstack.
4826 Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
4827 lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
4828 and free afterwards.
4829 * lambda.h (struct obstack): New forward declaration.
4830 (lambda_linear_expression_new): New parameter of type struct
4832 (lambda_loopnest_new): Likewise.
4833 (lambda_loopnest_transform): Likewise.
4834 (lambda_body_vector_new): Likewise.
4835 (lambda_body_vector_compute_new): Likewise.
4836 (gcc_loopnest_to_lambda_loopnest): Likewise.
4837 (lambda_loopnest_to_gcc_loopnest): Likewise.
4838 * lambda-code.c: Include obstack.h.
4839 (lambda_lattice_new): New parameter lambda_obstack. Use it for
4841 (lambda_body_vector_new): Likewise.
4842 (lambda_linear_expression_new): Likewise.
4843 (lambda_lattice_new): Likewise.
4844 (lambda_loopnest_new): Likewise. Additionally use obstack to
4845 allocate LN_LOOPS(ret).
4846 (lambda_lattice_compute_base): New parameter lambda_obstack. Pass
4847 it to lambda_lattice_new.
4848 (lambda_body_vector_compute_new): New parameter lambda_obstack.
4849 Pass it to lambda_body_vector_new.
4850 (lambda_lattice_compute_base): New paramater lambda_obstack. Pass
4851 it to lambda_lattice_new.
4852 (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
4853 Pass it to lambda_loopnest_new, lambda_linear_expression_new.
4854 (lambda_compute_target_space): Likewise.
4855 (lambda_compute_auxillary_space): New parameter lambda_obstack.
4856 Pass it to lambda_lattice_compute_base and
4857 compute_nest_using_fourieer_motzkin.
4858 (lambda_loopnest_transform): New parameter lambda_obstack. Pass
4859 it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
4860 and lambda_lattice_compute_target_space.
4861 (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
4862 Pass it to lambda_linear_expression_new.
4863 (gcc_loop_to_lambda_loop): New parameter lambda_obstack. Pass it
4864 to gcc_tree_to_linear_expression.
4865 (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
4866 Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
4867 (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
4868 Pass it to lambda_body_vector_new and
4869 lambda_body_vector_compute_new.
4870 * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
4871 (lambda-code.o): Likewise.
4873 2007-09-06 Chao-ying Fu <fu@mips.com>
4875 * ginclude/stdfix.h: New file.
4876 * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
4877 (convert.o): Add dependence on fixed-value.h.
4878 * c-convert.c (convert): Support FIXED_POINT_TYPE.
4879 * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
4880 to define fixed-point constants.
4881 (c_cpp_builtins): Define fixed-point constants.
4882 * convert.c (fixed-value.h): New include.
4883 (convert_to_real): Update comment to include fixed-point.
4884 Support FIXED_POINT_TYPE.
4885 (convert_to_integer): Update comment to include fixed-point.
4886 Support FIXED_POINT_TYPE.
4887 (convert_to_complex): Support FIXED_POINT_TYPE.
4888 (convert_to_fixed): New function.
4889 * convert.h (convert_to_fixed): Declare.
4890 * genopinit.c: Add comment about $Q for only fixed-point modes.
4891 (optabs): Add fract_optab, fractuns_optab, satfract_optab,
4892 satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
4893 sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
4894 ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
4895 usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
4896 usneg_optab for fixed-point modes.
4897 (gen_insn): Add force_fixed to track the $Q format for all fixed-point
4899 * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
4900 PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
4901 unsigned saturation optabs, when type is saturating.
4902 (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
4903 (expand_fixed_convert): New function.
4904 (gen_fixed_libfunc, gen_signed_fixed_libfunc,
4905 gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
4906 gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
4907 gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
4908 gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
4909 gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
4911 (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
4912 ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
4913 usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
4914 ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
4915 usneg_optab, fract_optab, fractuns_optab, satfract_optab,
4917 Initialize fixed-point libraries, including add, ssadd, usadd, sub,
4918 sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
4919 ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
4920 fractuns, satfractuns.
4921 * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
4922 OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
4923 OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
4924 OTI_ssmsub_widen, OTI_usmsub_widen.
4925 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
4926 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
4927 ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
4928 umsub_widen_optab, usmsub_widen_optab): Define.
4929 (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
4931 (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
4933 (expand_fixed_convert): Declare.
4934 * expr.c (convert_move): Support the move of fixed-point modes.
4935 (emit_move_insn_1): Handle fixed-point mode to move via integer.
4936 (categorize_ctor_elements_1): Handle FIXED_CST.
4937 (count_type_elements): Handle FIXED_POINT_TYPE.
4938 (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
4939 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
4941 For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
4942 multiply and add/subtract for fixed-point types.
4943 For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
4944 mode, we jump to binop directly.
4945 Support FIXED_CONVERT_EXPR.
4946 (do_store_flag): Check FIXED_CST to put a constant second.
4947 (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
4948 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
4949 (const_vector_from_tree): Support FIXED_CST.
4950 * doc/extend.texi (Fixed-Point): New node.
4951 * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
4952 ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
4953 satfract, fractuns, satfractuns): Document them.
4955 2007-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4957 * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
4958 addresses into I registers.
4960 2007-09-06 Jan Hubicka <jh@suse.cz>
4961 Andreas Tobler <a.tobler@schweiz.org>
4963 * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
4965 (machopic_legitimize_pic_address): Likewise.
4967 2007-09-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
4968 Jan Hubicka <jh@suse.cz>
4970 * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
4971 instead of ufloat_optab->handlers directly.
4972 (floatdidf2): Likewise.
4974 2007-09-06 Sandra Loosemore <sandra@codesourcery.com>
4976 * config/mips/mips.c: Include diagnostic.h.
4977 (mips_set_current_function): Check errorcount and sorrycount
4978 before generating RTL.
4980 2007-09-06 Richard Sandiford <richard@codesourcery.com>
4983 * config/mips/mips.c (mips_classify_symbolic_expression): New function.
4984 (mips_classify_address): Use it instead of mips_symbolic_constant_p.
4985 (print_operand_reloc): Likewise.
4987 2007-09-06 Janis Johnson <janis187@us.ibm.com>
4991 2007-09-06 Jan Hubicka <jh@suse.cz>
4993 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
4996 2007-09-06 Richard Sandiford <richard@codesourcery.com>
4998 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4999 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
5001 2007-09-05 Janis Johnson <janis187@us.ibm.com>
5003 * optabs.c (expand_float): Convert unsigned integer as signed only
5004 if it provides sufficient accuracy; add mode argument to real_2expN.
5005 (expand_fix): Fix comment typos; extend binary float into mode
5006 wider than destination for converion to unsigned integer; add mode
5007 argument to real_2expN.
5008 * real.c (real_2expN): Add mode argument to special-case decimal
5010 * real.h (real_2expN): Ditto.
5011 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
5013 (fixed_from_string): Ditto.
5014 (fixed_to_decimal): Ditto.
5015 (fixed_convert_from_real): Ditto.
5016 (real_convert_from_fixed): Ditto.
5017 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
5018 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
5019 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
5020 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
5022 2007-09-06 Tom Tromey <tromey@redhat.com>
5024 * tree-cfg.c (remove_bb): Only warn if line is non-zero.
5025 * c-pch.c (c_common_read_pch): Restore current location after
5027 * tree.c (expand_location): Update.
5028 (expr_filename): Changed return type. Unified the two cases.
5029 (expr_lineno): Likewise.
5030 (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
5032 * toplev.c (line_table): Changed type.
5033 (general_init): Update.
5034 (realloc_for_line_map): New function.
5035 (general_init): Allocate line_table using GC.
5036 * fix-header.c (line_table): Changed type.
5037 (read_scan_file): Update.
5038 (read_scan_file): Update.
5039 * c-ppoutput.c (maybe_print_line): Update.
5040 (print_line): Update.
5041 (cb_line_change): Update.
5042 (cb_define): Update.
5043 (pp_file_change): Update.
5044 * c-opts.c (c_common_init_options): Update.
5045 (finish_options): Update.
5046 (push_command_line_include): Update.
5047 * c-lex.c (cb_line_change): Update.
5048 (cb_def_pragma): Update.
5049 (cb_define): Update.
5051 (c_lex_with_flags): Use cpp_get_token_with_location.
5052 * input.h (line_table): Changed type.
5053 (location_from_locus): New macro.
5054 * tree.h (EXPR_FILENAME): No longer an lvalue.
5055 (EXPR_LINENO): Likewise.
5056 (expr_locus, set_expr_locus): Declare separately for
5057 USE_MAPPED_LOCATION.
5058 (expr_filename, expr_lineno): Changed return type.
5059 * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
5060 * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
5061 (expand_gimple_basic_block): Likewise.
5062 * final.c (final_scan_insn): Use expanded_location.
5064 2007-09-06 Richard Guenther <rguenther@suse.de>
5066 PR tree-optimization/32586
5067 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
5068 folding if nothing changed.
5069 (simplify_unary_expression): New function. Do tree combining
5070 on conversion like codes.
5071 (try_to_simplify): Call it.
5072 * builtins.c (fold_builtin_cexp): Fold the built expressions.
5073 * fold-const.c (fold_unary): Test result of get_callee_fndecl().
5075 2007-09-06 Jan Hubicka <jh@suse.cz>
5078 * cse.c (fold_rtx): Avoid invalid sharing.
5080 2007-09-06 Richard Sandiford <richard@codesourcery.com>
5082 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5083 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
5085 2007-09-06 Revital Eres <eres@il.ibm.com>
5087 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
5088 Fix offsettable memory reference for 750CL.
5090 2007-09-06 Pat Haugen <pthaugen@us.ibm.com>
5092 * reload.c (find_reloads_address_1): Try to preserve original
5093 base/index regclass of operands.
5094 * regrename.c (scan_rtx_address): Likewise.
5095 (replace_oldest_value_addr): Likewise.
5097 2007-09-06 Richard Guenther <rguenther@suse.de>
5099 PR tree-optimization/33302
5100 * domwalk.c (walk_dominator_tree): The exit block is
5101 interesting even if it is not reachable.
5103 2007-09-06 Richard Sandiford <richard@codesourcery.com>
5106 * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
5108 2007-09-06 Basile Starynkevitch <basile@starynkevitch.net>
5110 * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for
5113 2007-09-05 Ian Lance Taylor <iant@google.com>
5115 * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
5117 (dump_generic_node): Likewise.
5118 * print-rtl.c (print_decl_name): Likewise.
5119 * print-tree.c (print_node_brief): Likewise.
5120 (print_node): Likewise.
5121 * Makefile.in (RTL_BASE_H): Add alias.h.
5124 2007-09-06 Jesper Nilsson <jesper.nilsson@axis.com>
5126 * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
5128 * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
5129 * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
5131 2007-09-06 Jie Zhang <jie.zhang@analog.com>
5133 * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
5134 (tm_defines): Define UCLIBC_DEFAULT to 1.
5135 (extra_options): Add linux.opt.
5136 * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
5137 (CRT_CALL_STATIC_FUNCTION): Likewise.
5138 (NO_IMPLICIT_EXTERN_C): Likewise.
5139 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
5140 * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
5141 * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
5142 (ENDFILE_SPEC): Don't define.
5143 (LIB_SPEC): Likewise.
5144 (CRT_CALL_STATIC_FUNCTION): Likewise.
5145 (NO_IMPLICIT_EXTERN_C): Likewise.
5146 (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
5147 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
5149 2007-09-06 Jan Hubicka <jh@suse.cz>
5151 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
5154 2007-09-06 Jan Hubicka <jh@suse.cz>
5156 * opts.c (common_handle_option): Enable inlining functions for
5159 2007-09-06 Jakub Jelinek <jakub@redhat.com>
5161 * builtin-attrs.def (ATTR_NONNULL_3): New.
5162 (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
5163 ATTR_NOTHROW_NONNULL_##FA.
5164 (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
5165 (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
5166 ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
5167 ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
5168 ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
5169 ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
5170 ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
5172 (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
5173 ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
5174 ATTR_FORMAT_NOTHROW_3_4): Remove.
5175 * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
5176 vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
5177 __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
5178 instead of ATTR_FORMAT_*_*.
5180 2007-09-06 Hans-Peter Nilsson <hp@axis.com>
5182 * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
5183 parts re-used for REG_FRAME_RELATED_EXPR.
5185 2007-09-05 Janis Johnson <janis187@us.ibm.com>
5187 * optabs.c (expand_float): Convert unsigned integer as signed only
5188 if it provides sufficient accuracy; add mode argument to real_2expN.
5189 (expand_fix): Fix comment typos; extend binary float into mode
5190 wider than destination for converion to unsigned integer; add mode
5191 argument to real_2expN.
5192 * real.c (real_2expN): Add mode argument to special-case decimal
5194 * real.h (real_2expN): Ditto.
5195 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
5197 (fixed_from_string): Ditto.
5198 (fixed_to_decimal): Ditto.
5199 (fixed_convert_from_real): Ditto.
5200 (real_convert_from_fixed): Ditto.
5201 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
5202 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
5203 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
5204 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
5206 2007-09-05 Ian Lance Taylor <iant@google.com>
5208 * init-regs.c (initialize_uninitialized_regs): Call
5209 emit_insn_before rather than add_insn_before.
5211 2007-09-05 Jakub Jelinek <jakub@redhat.com>
5213 * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
5214 * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
5215 * tree-inline.h (copy_body_data): Add call_expr field.
5216 * tree-inline.c (expand_call_inline): Initialize call_expr.
5217 (copy_bb): Append anonymous inline fn arguments to arguments
5218 when inlining a CALL_EXPR_VA_ARG_PACK call.
5219 * builtins.c (expand_builtin): Issue an error if
5220 BUILT_IN_VA_ARG_PACK is seen during expand.
5221 (fold_call_expr, fold_builtin_call_array): Don't fold
5222 CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
5223 __builtin_va_arg_pack () call as last argument.
5224 * gimplify.c (gimplify_call_expr): If last argument to a vararg
5225 function is __builtin_va_arg_pack (), decrease number of call
5226 arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
5227 * expr.c (expand_expr_real_1): Issue an error if
5228 CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
5229 * tree-pretty-print.c (dump_generic_node): Handle printing
5230 CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
5231 * doc/extend.texi (__builtin_va_arg_pack): Document.
5233 2007-09-05 Adam Nemet <anemet@caviumnetworks.com>
5235 PR tree-optimization/21513
5236 * builtins.c (build_builtin_expect_predicate): New function.
5237 (fold_builtin_expect): Add argument for expected value.
5238 Distribute __builtin_expect over short-circuiting operations.
5239 Fold nested builtin_expects.
5240 (fold_builtin_2): Adjust call to fold_builtin_expect.
5242 2007-09-05 Rask Ingemann Lambertsen <rask@sygehus.dk>
5245 PR tree-optimization/13756
5246 * doc/invoke.texi (Options That Control Optimization): Document
5249 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
5251 * gcc/config/i386/cpuid.h: New file.
5252 * gcc/config/i386/driver-i386.c: Include cpuid.h.
5253 (describe_cache): Shrink size and line strings to 100 bytes.
5254 (detect_caches_amd): Return "" for unsupported max_ext_level.
5255 Use __cpuid function.
5256 (detect_caches_intel): Return "" for unsupported max_level.
5257 Use __cpuid function.
5258 (host_detect_local_cpu): Change feature flag variables to
5259 unsigned int. Initialize only extended feature flag variables.
5260 Use __get_cpuid_max to determine max supported cpuid level.
5261 Use __cpuid function to determine supported features. Fix
5262 calculation of family id. Remove is_amd and check signature
5263 directly. Check for Geode signature. Handle family 4 id.
5264 [PROCESSOR_GENERIC32]: New default for unknown family id. Move
5265 cpu discovery code to lower part of the function.
5266 [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
5267 for sub-architecture.
5268 [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
5269 [PROCESSOR_K8]: Add k8-sse3 architecture.
5270 [PROCESSOR_NOCONA]: Remove.
5271 [PROCESSOR_GENERIC64]: Ditto.
5272 * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
5273 * gcc/config/i386/crtfastmath.c: Include cpuid.h. Use __get_cpuid
5274 to check for SSE and FXSAVE support.
5275 * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
5276 Add -minline-all-stringops.
5277 * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
5278 (x86_64-*-*): Ditto.
5280 2007-09-05 Jie Zhang <jie.zhang@analog.com>
5282 * config/bfin/linux-unwind.h: New file.
5283 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
5284 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
5286 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5288 * Makefile.in (stmt.o): Add alloc-pool.h dependency.
5289 * stmt.c: Include alloc-pool.h.
5290 (struct case_node): Remove GTY marker.
5291 (add_case_node): New parameter case_node_pool. Use it for
5293 (expand_case): New allocation pool case_node_pool. Initialize it,
5294 pass to add_case_node and free it.
5296 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5297 David Ung <davidu@mips.com>
5298 Nigel Stephens <nigel@mips.com>
5300 Add mips16/nomips16 function attributes and -mflip-mips16 option
5301 for testing mixed-mode compilation.
5303 * config/mips/mips.opt (mflip-mips16): New.
5305 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
5306 (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
5308 * config/mips/mips.c (mips_base_target_flags): New.
5309 (mips_base_mips16): New.
5310 (mips_base_schedule_insns): New.
5311 (mips_base_reorder_blocks_and_partition): New.
5312 (mips_base_align_loops): New.
5313 (mips_base_align_jumps): New.
5314 (mips_base_align_functions): New.
5315 (mips16_flipper): New.
5316 (mips_attribute_table): Add "mips16" and "nomips16" entries.
5317 (TARGET_SET_CURRENT_FUNCTION): Define.
5318 (mips_mips16_type_p, mips_nomips16_type_p): New.
5319 (mips_comp_type_attributes): Check mips16/nomips16 attributes.
5320 (mips_function_ok_for_sibcall): Make it deal with functions with
5322 (mips_init_split_addresses): New, split out from override_options.
5323 (mips_init_relocs): New, split out from override_options.
5324 (was_mips16_p): New.
5325 (mips_set_mips16_mode): New, split out from override_options.
5326 (mips_set_current_function): New.
5327 (override_options): Add sorry for unsupported mips16/pic
5328 combination. Remove error for mips16/dsp combination. Save
5329 base option settings.
5330 (mips_file_start): Move mips16 mode setting output from here....
5331 (mips_output_function_prologue): ....to here.
5332 (mips_output_mi_thunk): Check for mips16 function.
5333 (build_mips16_function_stub): Don't set .mips16 here.
5334 (build_mips16_call_stub): Likewise.
5335 (mips_expand_builtin): Error in mips16 mode.
5336 (mips_use_mips16_mode_p): New.
5337 (mips_encode_section_info): Check for mips16 function, and set
5338 SYMBOL_REF_FLAGS accordingly.
5340 * doc/extend.texi (Function Attributes): Document new
5341 mips16/nomips16 attributes.
5342 * doc/invoke.texi (Option Summary): Add -mflip-mips16.
5343 (MIPS Options): Document -mflip-mips16.
5345 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5347 * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
5348 if we encounter TLS address in MIPS16 mode.
5349 (mips_legitimize_const_move): Check cannot_force_const_mem for
5350 the (const (plus symbol offset)) case; this forces invalid TLS
5351 address in MIPS16 mode to be caught by the above call to sorry.
5352 (override_options): Don't reset targetm.have_tls in MIPS16 mode,
5353 because that now enables emutls, which is not ABI compatible
5354 with native TLS in non-MIPS16 mode.
5356 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5358 Add target hook invoked when cfun changes.
5360 * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
5361 * target.h (struct gcc_target): Add set_current_function.
5362 * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
5363 (TARGET_INITIALIZER): Add initializer for set_current_function.
5364 * tree.h (push_struct_function): New.
5365 * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
5367 (set_cfun): Declare.
5368 * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
5370 (push_function_context_to): Use allocate_struct_function
5371 to create null context, not init_dummy_function_start. Use set_cfun.
5372 (pop_function_context_from): Use set_cfun.
5373 (in_dummy_function): New.
5374 (invoke_set_current_function_hook): New.
5376 (push_cfun, pop_cfun): Use set_cfun.
5377 (push_struct_function): New.
5378 (allocate_struct_function): Call invoke_set_current_function_hook
5380 (prepare_function_start): Don't set cfun here. Remove unused
5381 argument; fix all callers.
5382 (init_dummy_function_start): Fiddle with in_dummy_function. Call
5383 push_struct_function.
5384 (init_function_start): Set cfun here.
5385 (expand_dummy_function_end): Fiddle with in_dummy_function. Pop cfun.
5386 * omp-low.c (create_omp_child_function): Use push_struct_function
5387 and pop_cfun to save/restore state.
5388 (expand_omp_parallel): Remove unused saved_cfun variable.
5389 * cgraphunit.c (ipa_passes): Use set_cfun.
5390 * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
5391 * dwarf2out.c (dwarf2out_abstract_function): Likewise.
5392 * matrix-reorg.c (transform_allocation_sites): Likewise.
5393 (matrix_reorg): Use set_cfun.
5394 * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
5395 * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
5396 assignment to cfun; use set_cfun for the other.
5397 * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
5398 (dump_function_to_file): Use push_cfun/pop_cfun here.
5399 * c-decl.c (finish_function): Use set_cfun.
5401 2007-09-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5403 * regrename.c (rerename_optimize): Use deferred rescanning and
5404 insert explicit calls to rescan insns when changed.
5406 2007-09-05 Jan Hubicka <jh@suse.cz>
5408 * optabs.c (libfunc_entry): Change optab to integer.
5409 (hash_libfunc, convert_optab_libfunc, optab_libfunc,
5410 set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
5411 of pointers for hashing.
5413 2007-09-05 Jan Hubicka <jh@suse.cz>
5415 * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
5417 * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
5418 * see.c (pass_see): Likewise.
5419 * tracer.c (pass_tracer): Likewise.
5420 * postreload-gcse.c (pass_gcse2): Likewise.
5421 * postreload.c (pass_postreload_cse): Likewise.
5422 * mode-switching.c (pass_mode_switching): Likewise.
5423 * modulo-sched.c (pass_sms): Likewise.
5424 * cse.c (cse_insn): Likewise.
5425 * web.c (pass_web): Likweise.
5426 * combine-stack-adj.c (pass_stack_adjustments): Likewise.
5427 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
5428 * loop-init.c (pass_rtl_loop_init): Likewise.
5429 (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
5430 pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
5431 * global.c (pass_global_alloc): Likewise.
5432 * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
5433 pass_if_after_reload): Likewise.
5434 * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
5435 * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
5436 * regmove.c (pass_regmove): Likewise.
5437 * function.c (pass_thread_prologugues_epilogues): Likewise.
5438 * gcse.c (pass_gcse): Likewise.
5439 * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
5440 * lower-subreg.c (pass_lower_subreg2): Likewise.
5441 * bt-load.c (pass_branch_target_load): Likewise.
5442 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
5443 * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
5444 * combine.c (pass_combine): Likewise.
5445 * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
5446 (pass_partition_blocks): Likewise.
5447 * var-tracking.c (pass_variable_track): Likewise.
5448 * reg-stack.c (pass_stack_regs_run): Likewise.
5449 * sched-rgn.c (pass_sched, pass_sched2): Likewise.
5450 * passes.c (pass_postreload): Likewise.
5451 (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
5452 * tree-pass.h (TODO_verify_rtl_sharing): New.
5453 (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
5454 TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
5455 TODO_set_props, TODO_df_finish, TODO_df_verify,
5456 TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
5458 2007-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5460 * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
5461 fold_real_zero_addition_p, reorder_operands_p,
5462 div_if_zero_remainder, fold_undefer_overflow_warnings,
5463 int_binop_types_match_p, fold_convert_const_int_from_int,
5464 fold_convert_const_int_from_real,
5465 fold_convert_const_int_from_fixed,
5466 fold_convert_const_real_from_real,
5467 fold_convert_const_real_from_fixed,
5468 fold_convert_const_fixed_from_fixed,
5469 fold_convert_const_fixed_from_int,
5470 fold_convert_const_fixed_from_real, maybe_lvalue_p,
5471 fold_checksum_tree, fold_check_failed, print_fold_checksum,
5472 debug_fold_checksum, multiple_of_p): Constify.
5473 * tree-flow-inline.h (get_lineno): Likewise.
5474 * tree-flow.h (get_lineno): Likewise.
5475 * tree-object-size.c (compute_object_offset, addr_object_size,
5476 alloc_object_size, pass_through_call): Likewise.
5477 * tree-pretty-print.c (op_symbol, print_call_name,
5478 print_struct_decl, do_niy): Likewise.
5479 * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
5480 debug_fold_checksum): Likewise.
5482 2007-09-04 Steven Bosscher <steven@gcc.gnu.org>
5485 * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
5486 note, remove the associated REG_RETVAL note.
5488 2007-09-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
5490 * config.gcc (powerpc*-*-*): Install
5491 spu2vmx.h, vec_types.h, and si2vmx.h headers.
5492 * config/rs6000/spu2vmx.h: New header.
5493 * config/rs6000/si2vmx.h: New header.
5494 * config/rs6000/vec_types.h: New header.
5496 2007-09-05 Ben Elliston <bje@au.ibm.com>
5498 * varasm.c (initializer_constant_valid_p): Fix comment typo.
5500 2007-09-05 Ben Elliston <bje@au.ibm.com>
5502 * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
5504 (__stdcx): Make asm volatile.
5505 (__stwcx, __stdcx): Return only 0 or 1.
5507 2007-09-05 Jan Hubicka <jh@suse.cz>
5511 2007-09-04 Jan Hubicka <jh@suse.cz>
5512 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
5514 2007-09-04 Richard Guenther <rguenther@suse.de>
5515 * tree-ssa-operands.c (add_virtual_operand): Only mark
5516 stores as has_volatile_ops if alias information is not available.
5518 2007-09-05 Jakub Jelinek <jakub@redhat.com>
5520 * config/rs6000/tramp.asm: Include config.h.
5521 Check __PIC__ or __pic__ macro instead of SHARED.
5523 PR rtl-optimization/32300
5524 * see.c (see_copy_insn): New function.
5525 (see_def_extension_not_merged, see_merge_one_use_extension,
5526 see_merge_one_def_extension): Use it. Avoid changing
5527 PREV_INSN/NEXT_INSN chains directly, insted emit insns
5528 into sequences. Call df_insn_delete on temporary insns
5529 that won't be emitted into the insn stream.
5530 (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
5531 and run df_process_deferred_rescans () before run_fast_dce.
5533 PR tree-optimization/33017
5534 * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
5535 recurse for pure or const function calls.
5537 2007-09-04 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5539 * c-format.c: Include alloc-pool.h.
5540 (check_format_info_main): New argument fwt_alloc. Use allocation
5541 pool instead of GC. Remove GC deallocation code.
5542 (check_format_arg): Create allocation pool, pass it to
5543 check_format_info_main and free it afterwards.
5544 * Makefile.in (c-format.o): Add alloc-pool.h dependency.
5546 2007-09-05 Ben Elliston <bje@au.ibm.com>
5548 * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
5549 Rename count macro arugment for clarity.
5550 (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
5551 (__protected_stream_set): Likewise, pass 0.
5553 2007-09-04 Jan Hubicka <jh@suse.cz>
5555 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
5557 2007-09-04 Jan Hubicka <jh@suse.cz>
5559 * invoke.texi (-finline-small-functions): Document.
5560 * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
5561 when deciding what is inlinable.
5562 (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
5563 (cgraph_decide_inlining_of_small_function): Handle new flags.
5564 (cgraph_decide_inlining_incrementally): Likewise.
5565 * opts.c (decode_options): Enable flag_inline_small_functions at -O2
5566 * common.opt (finline-small-functions): New.
5567 * Makefile.in (build/gengtype.o-warn): Work around PR29478
5569 2007-09-04 Richard Guenther <rguenther@suse.de>
5571 * tree-ssa-operands.c (add_virtual_operand): Only mark
5572 stores as has_volatile_ops if alias information is not available.
5574 2007-09-04 Andrew Haley <aph@redhat.com>
5576 * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
5578 2007-09-04 Andrew Haley <aph@redhat.com>
5580 * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
5581 * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
5582 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
5584 2007-09-04 Emmanuel Thome <Emmanuel.Thome@inria.fr>
5587 * common.opt: Mention ABI version 2 in comment.
5589 2007-09-04 Jan Hubicka <jh@suse.cz>
5591 * optabs.c (debug_optab_libfunc): Update; make available to gdb.
5592 (libfunc_entry): New structure.
5593 (libfunc_hash): New hashtable.
5594 (hash_libfunc): New function.
5595 (eq_libfunc): New function.
5596 (convert_optab_libfunc): New function.
5597 (optab_libfunc): New function.
5598 (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
5599 expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
5600 expand_float, expand_fix, new_optab, new_convert_optab):
5601 Update for new libfunc API.
5602 (init_libfunc, init_integral_libfuncs,
5603 init_floating_libfuncs, init_interclass_conv_libfuncs
5604 init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
5605 (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
5606 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
5607 gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
5608 gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
5609 gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
5610 gen_extend_conv_libfunc): New.
5611 (init_one_libfunc): Revamp for hashtables.
5612 (set_conv_libfunc): Likewise.
5613 (init_optabs): Initialize hashtable; use lazy initialization where
5615 * optabs.h (optab_handlers): Move out of GGC.
5616 (optab, convert_optab): Move out of GGC; add lazy gen info.
5617 (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
5618 (optab_libfunc, convert_optab_libfunc): New.
5619 * builtins.c (expand_builtin_powi): Update for new API.
5620 * expr.c (convert_move): Likewise.
5621 * expmed.c (expand_divmod): Likewise.
5623 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
5625 * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
5626 GOT pointer only if there is a constant pool. Use the allocated space
5629 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
5631 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
5634 2007-09-04 Revital Eres <eres@il.ibm.com>
5635 Richard Guenther <rguenther@suse.de>
5636 R. Clint Whaley <whaley@cs.utsa.edu>
5638 * doc/invoke.texi (-fassociative-math, -freciprocal-math):
5640 * tree-tailcall.c (process_assignment): Use -fassociative-math
5641 when reodering operands of floating-point type.
5642 * fold-const.c (fold_comparison, fold_binary): Use
5643 -fassociative-math and -freciprocal-math instead of
5644 -funsafe-math-optimization flag.
5645 * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
5646 * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
5647 -freciprocal-math instead of -funsafe-math-optimizations.
5648 * opts.c (set_fast_math_flags): Set -freciprocal-math and
5649 -fassociative-math when -ffast-math is set.
5650 (set_unsafe_math_optimizations_flags): New Function
5651 to set -freciprocal-math and -fassociative-math when
5652 -funsafe-math-optimizations is set.
5653 (common_handle_option): Call it.
5654 * tree-vectorizer.c (vect_is_simple_reduction): Use
5655 -fassociative-math when doing reduction on floats.
5656 * loop-unroll.c (analyze_insn_to_expand_var): Use
5657 -fassociative-math when expanding an accumulator of type float.
5658 * simplify-rtx.c (simplify_binary_operation_1): Use
5659 -fassociative-math and -freciprocal-math when reordeing operands
5660 of floating-point type.
5661 * combine.c (combine_simplify_rtx): Likewise.
5662 * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
5664 * common.opt (-fassociative-math, -freciprocal-math): New flags.
5666 2007-09-04 Paolo Carlini <pcarlini@suse.de>
5669 * doc/install.texi (--enable-__cxa_atexit): Fix typo.
5671 2007-09-04 Jan Hubicka <jh@suse.cz>
5673 * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
5675 2007-09-04 Jan Hubicka <jh@suse.cz>
5677 * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
5678 and corresponding MATCH_DUP.
5680 2007-09-04 Uros Bizjak <ubizjak@gmail.com>
5683 * combine.c (subst): Do not try to simplify X if it represents load
5684 of FP constant from the constant pool via float extension.
5686 2007-09-04 Ben Elliston <bje@au.ibm.com>
5688 * c-opts.c: Include "tm_p.h".
5689 * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
5691 2007-09-04 Richard Guenther <rguenther@suse.de>
5693 PR tree-optimization/33291
5694 * tree-pretty-print.c (dump_generic_node): Dump all
5695 qualifiers for pointer types, not only first. Dump
5696 qualifiers for aggregate types as well.
5697 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
5698 use the canonical type for building ARRAY_REFs.
5699 * gimplify.c (canonicalize_addr_expr): Clean up. The
5700 correct validness check is compatibility of the pointer
5701 types. Always use the canonical type for building
5702 ARRAY_REFs and ADDR_EXPRs.
5703 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
5704 change that disabled propagation of ADDR_EXPRs into statements
5707 2007-09-03 Zack Weinberg <zack@codesourcery.com>
5709 * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
5710 (umulsi3_highpart): Make into expanders; existing insns are
5711 now named *[insn]_nov6. Add stars to existing [insn]_v6
5712 counterparts' names.
5714 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
5716 * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
5717 (unprotoize.o): Remove SHLIB_MULTILIB.
5719 2007-09-03 Eric Weddington <eweddington@cso.atmel.com>
5721 * doc/extend.texi: Document progmem attribute for AVR.
5723 2007-09-03 Anatoly Sokolov <aesok@post.ru>
5726 * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
5728 2007-09-03 Zack Weinberg <zack@codesourcery.com>
5730 * optabs.c (expand_ffs): Initialize val and defined_at_zero
5733 * optabs.c: Remove unnecessary forward declarations.
5734 (expand_unop_direct): New, broken out of expand_unop.
5735 (expand_doubleword_clz): New.
5736 (expand_ctz): Move above expand_ffs. Use
5737 start_sequence, end_sequence, add_equal_note, and
5738 expand_unop_direct. Add more commentary.
5739 (expand_ffs): Try both ctz optab and expand_ctz.
5740 Generate a test and branch if the hardware doesn't give us
5741 a useful value for input zero. Style improvements similar to
5744 * config/arm/arm.md (ffssi2, ctzsi2): Delete.
5746 2007-09-03 Zack Weinberg <zack@codesourcery.com>
5748 * config.gcc: Delete stanza for arm-semi-aof and
5749 armel-semi-aof targets.
5750 * config/arm/arm-protos.h
5752 * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
5753 make all #ifndef AOF_ASSEMBLER blocks unconditional. Also
5754 delete aof_pic_label and remove mention of AOF in comments.
5755 * config/arm/arm.md: Delete patterns used only for AOF assembly.
5757 * config/arm/semiaof.h
5758 * config/arm/t-semi: Delete file.
5760 2007-09-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5762 * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
5763 CONST_CAST_BB): New macros for type-specific casts.
5764 (CONST_CAST): Add a TYPE parameter and define it in terms of
5767 * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
5768 * c-lex.c (cb_ident, lex_string): Likewise,
5769 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
5770 * config/i386/i386.c (ix86_function_regparm,
5771 ix86_function_sseregparm): Use CONST_CAST_TREE.
5772 * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
5774 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
5775 give_switch, set_multilib_dir): Likewise,
5776 * gengtype-parse.c (string_seq, typedef_name): Likewise,
5777 * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
5778 * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
5779 * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
5780 * prefix.c (update_path): Likewise,
5781 * pretty-print.c (pp_base_destroy_prefix): Likewise,
5782 * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
5783 * tree-cfg.c (tree_can_merge_blocks_p,
5784 tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
5785 * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
5786 * tree.c (build_string): Supply a TYPE for CONST_CAST.
5787 (attribute_list_contained): Use CONST_CAST_TREE.
5789 2007-09-03 Krister Walfridsson <cato@df.lth.se>
5791 * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
5793 2007-09-03 Richard Sandiford <richard@codesourcery.com>
5796 * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
5797 before forcing them into a register.
5799 2007-09-03 Richard Sandiford <richard@codesourcery.com>
5801 * config/mips/mips.md (fetchop_bit): Use define_code_iterator
5802 rather than define_code_macro.
5804 2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5806 * gcc.c (xputenv): New function.
5807 (putenv_from_prefixes): Use xputenv instead of putenv.
5808 (process_command): Use xputenv instead of putenv.
5809 (set_collect_gcc_options): Use xputenv instead of putenv.
5810 (main): Use xputenv instead of putenv.
5812 2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
5814 * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
5815 availability of swap instruction.
5816 * config/cris/cris.md (bswapsi2): Implement using swap instruction.
5818 2007-09-03 Revital Eres <eres@il.ibm.com>
5820 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
5823 2007-09-03 Vladimir Yanovsky <yanov@il.ibm.com>
5824 Ayal Zaks <zaks@il.ibm.com>
5825 Revital Eres <eres@il.ibm.com>
5827 * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
5828 compute_split_row): New functions.
5829 (ps_unschedule_node): Remove.
5830 (normalize_sched_times): Iterate over the already scheduled
5831 insns instead of the number of nodes.
5832 (MAX_SPLIT_NUM): New definition.
5833 (sms_schedule_by_order): Change the scheduling heuristic to
5834 avoid useless increases of initiation interval ii.
5835 (get_sched_window): Add dump printouts.
5837 2007-09-02 David Daney <ddaney@avtrex.com>
5839 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
5840 UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
5841 (optab, insn): Add more attributes.
5842 (fetchop_bit): New code macro.
5843 (immediate_insn): New code macro attribute.
5844 (sync): Change condition to ISA_HAS_SYNC.
5845 (rdhwr): Change predicate for operand 0 to register_operand.
5846 (memory_barrier): New expand.
5847 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
5848 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
5849 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
5850 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5851 sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
5852 * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
5853 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
5854 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
5855 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
5857 2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
5858 Hans-Peter Nilsson <hp@axis.com>
5860 * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
5861 Defined to describe availability and behavior of CLZ.
5862 * config/cris/cris.md (clzsi2): Implement using lz instruction.
5863 * config/cris/cris.opt: Tweak comment for "-metrax4".
5864 * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
5865 * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
5866 (count_leading_zeros): Define.
5868 2007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5870 * ggc-page.c (ggc_pch_read): Call validate_free_objects.
5872 2007-09-02 Joseph Myers <joseph@codesourcery.com>
5875 * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
5878 2007-09-01 Kazu Hirata <kazu@codesourcery.com>
5880 * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
5881 config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
5882 ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
5883 sched-deps.c, sched-int.h, system.h, target.h,
5884 tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
5885 tree.def: Fix comment typos.
5887 2007-09-01 Kazu Hirata <kazu@codesourcery.com>
5889 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
5890 (override_options): Turn on -mstrict-align on non-ColdFire
5892 * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
5894 2007-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5896 * c-common.c (const_strip_array_types): Delete.
5897 * c-common.h (const_strip_array_types): Likewise.
5898 * emit-rtl.c (const_next_insn, const_previous_insn,
5899 const_next_nonnote_insn, const_prev_nonnote_insn,
5900 const_next_real_insn, const_prev_real_insn,
5901 const_next_active_insn, const_prev_active_insn, const_next_label,
5902 const_prev_label): Delete.
5903 * gimple-low.c (block_may_fallthru): Use expr_last.
5904 * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
5905 * rtl.h (const_previous_insn, const_next_insn,
5906 const_prev_nonnote_insn, const_next_nonnote_insn,
5907 const_prev_real_insn, const_next_real_insn,
5908 const_prev_active_insn, const_next_active_insn, const_prev_label,
5909 const_next_label): Delete.
5910 * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
5911 * system.h (CONST_CAST): Update comment.
5912 * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
5913 (const_first_stmt, const_last_stmt): Delete.
5914 (tree_block_ends_with_condjump_p): Use last_stmt.
5915 * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
5916 * tree-iterator.c (const_expr_first, const_expr_last,
5917 const_expr_only): Delete.
5918 * tree.c (const_lookup_attribute): Likewise.
5919 (attribute_list_contained): Use lookup_attribute.
5920 * tree.h (const_lookup_attribute, const_expr_first,
5921 const_expr_last, const_expr_only): Delete.
5923 2007-09-01 Richard Guenther <rguenther@suse.de>
5925 * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
5926 instead of TREE_THIS_VOLATILE.
5927 * tree-ssa-operands.c (add_virtual_operand): Do not set
5928 has_volatile_ops. Do not check s_ann for NULL.
5929 (get_indirect_ref_operands): Likewise.
5930 (get_expr_operands): Likewise. For all reference trees
5931 set has_volatile_ops based on TREE_THIS_VOLATILE. Also
5932 check base of reference for TREE_THIS_VOLATILE.
5934 2007-09-01 Richard Guenther <rguenther@suse.de>
5936 * tree-cfg.c (verify_gimple_expr): Fix check for conversions
5937 between integral types. Also allow conversions between
5940 2007-08-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
5942 * optabs.c (prepare_float_lib_cmp): Use
5943 libgcc_cmp_return_mode instead of word_mode.
5944 * config/dfp-bit.h: Likewise.
5945 * config/fp-bit.h: Likewise.
5946 * config/spu/spu.c (spu_libgcc_cmp_return_mode):
5948 (spu_libgcc_shift_count_mode): New function.
5949 (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
5950 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
5952 2007-08-31 Joseph Myers <joseph@codesourcery.com>
5954 * tree-pretty-print.c: Include output.h.
5955 (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
5956 HOST_WIDE_INT_PRINT_DEC.
5957 * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
5959 2007-08-31 Zdenek Dvorak <ook@ucw.cz>
5961 PR rtl-optimization/33224
5962 * loop-iv.c (latch_dominating_def): Check that the definition belongs
5963 to the analysed region.
5965 2007-08-31 Richard Guenther <rguenther@suse.de>
5967 * function.c (allocate_struct_function): Do not set
5968 current_function_returns_pointer.
5969 * function.h (struct var_refs_queue): Remove.
5970 (struct simple_obstack_stack): Likewise.
5971 (struct function): Remove fixup_var_refs_queue member.
5972 Remove returns_pointer flag.
5973 (current_function_returns_pointer): Remove define.
5975 2007-08-31 Nick Clifton <nickc@redhat.com>
5977 * tree-ssa-coalesce.c (compare_pairs): Use the elements as
5978 secondary keys in order to obtain a stable sort.
5980 2007-08-31 Nick Clifton <nickc@redhat.com>
5983 * config/m32r/constraints.md: Add W constraint for integer zero.
5984 * config/m32r/m32r.md (get_pc): Use W and i constraints.
5985 Fix length calculation by using alternatives.
5987 2007-08-31 Richard Sandiford <richard@codesourcery.com>
5989 * optabs.c (shift_optab_p, commutative_optab_p): New functions,
5990 split out from expand_binop.
5991 (avoid_expensive_constant): New function.
5992 (expand_binop_directly): Remove commutative_op argument and
5993 (expand_binop_directly): Remove commutative_op argument and
5994 call cummutative_optab_p instead. Do not change op0 or op1
5995 when swapping xop0 and xop1. Apply avoid_expensive_constant
5996 to each argument after potential swapping. Enforce the
5997 canonical order of commutative operands.
5998 (expand_binop): Use shift_optab_p and commutative_optab_p.
5999 Update the calls to expand_binop_directly. Only force constants
6000 into registers when widening an operation. Only swap operands
6001 once a direct expansion has been rejected.
6002 (expand_twoval_binop): Only force constants into registers when
6003 using a direct expansion.
6005 2007-08-31 Maxim Kuvyrkov <maxim@codesourcery.com>
6007 * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
6008 (sched_analyze_insn): Don't postprocess speculative dependencies when
6009 target has no scheduling.
6010 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
6011 'uninitialized' warning.
6013 2007-08-31 Richard Guenther <rguenther@suse.de>
6015 * tree.c (build_complex_type): Always set TYPE_NAME for
6018 2007-08-31 Olivier Hainque <hainque@adacore.com>
6020 * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
6021 internal macro. Default alignment factor for csect directives, chosen
6022 to match what BIGGEST_ALIGNMENT allows.
6023 (DATA_SECTION_ASM_OP): Use it.
6024 * config/rs6000/rs6000.c
6025 (rs6000_xcoff_output_readonly_section_asm_op):
6026 Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
6027 (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
6029 2007-08-31 Olivier Hainque <hainque@adacore.com>
6031 * dbxout.c (dbxout_block): Move declaration within the first
6032 #if defined (DBX_DEBUGGING_INFO) block. Rearrange another such
6033 block to include the definition, together with the associated
6036 2007-08-31 David Edelsohn <edelsohn@gnu.org>
6037 Revital Eres <eres@il.ibm.com>
6039 * doc/invoke.texi (-mpaired): Document flag.
6040 * config.gcc: Include paired.h in powerpc extra_headers and
6041 750cl.h in powerpc-*-linux*paired*.
6042 * config/rs6000/rs6000.opt (-mpaired): New flag.
6043 * config/rs6000/rs6000.c (paired_init_builtins,
6044 paired_expand_builtin, paired_expand_lv_builtin,
6045 paired_expand_stv_builtin, paired_expand_predicate_builtin):
6046 New functions to support the paired single builtin functions.
6047 (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
6048 (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
6050 (bdesc_paired_preds): New structure for paired predicate
6052 (rs6000_expand_builtin): Expand paired single builtins.
6053 (rs6000_init_builtins): Init paired single builtins.
6054 (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
6055 Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
6056 and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf. Add new types
6057 v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
6058 (rs6000_vector_mode_supported_p): Support paired vector mode.
6059 * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
6060 PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
6062 (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
6063 (DATA_ALIGNMENT): Likewise.
6064 (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
6065 (rs6000_builtins): Add PAIRED builtins.
6066 * config/rs6000/rs6000.md: Include paired.md.
6067 * config/rs6000/paired.h: New.
6068 * config/rs6000/paired.md: New.
6069 * config/rs6000/750cl.h: New.
6070 * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
6072 2007-08-30 Ollie Wild <aaw@google.com>
6074 * c-opts.c (c_common_handle_option): Support -fno-directives-only.
6075 * gcc.c (default_compilers): Add -fno-directives-only to
6076 @assembler-with-cpp.
6078 2007-08-30 Sandra Loosemore <sandra@codesourcery.com>
6082 * regclass.c (initial_fixed_regs): Revert previous change and make
6084 (initial_call_used_regs): Likewise.
6085 (initial_call_really_used_regs): Delete, reverting previous addition.
6086 (initial_reg_names): Likewise.
6087 (init_reg_sets): Revert previous change.
6088 (saved_fixed_regs): New.
6089 (saved_call_used_regs): New.
6090 (saved_call_really_used_regs): New.
6091 (saved_reg_names): New.
6092 (save_register_info): New.
6093 (restore_register_info): New.
6094 (init_reg_sets_1): Replace reset of register info with call to
6095 restore_register_info.
6096 * rtl.h (save_register_info): Declare.
6097 * toplev.c (backend_init): Call save_register_info.
6099 2007-08-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6101 * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
6102 from the original statement.
6104 2007-08-30 Chao-ying Fu <fu@mips.com>
6106 * c-lex.c (interpret_fixed): Declare.
6107 (interpret_float): Process _Fract and _Accum.
6108 (interpret_fixed): New function.
6109 * final.c (output_addr_const): Process CONST_FIXED.
6110 * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
6111 (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
6113 (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
6115 (simplify_immed_subreg): Support CONST_FIXED.
6116 Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
6117 (simplify_subreg): Support CONST_FIXED.
6119 2007-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
6121 * config/rs6000/ppu_intrinsics.h: New file.
6122 * config.gcc (powerpc*-*-* <extra_headers>): Install
6125 2007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
6127 * cfg.c (dump_flow_info): Change to also print entry and exit
6129 * print-rtl.c (print_rtl_single): Allow to print rtl with
6132 2007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
6134 * df-core.h (df_dump_region): New function.
6135 * df.h (df_dump_region): New function.
6136 * loop-invariant.c (find_defs): Add call to df_dump_region.
6137 * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
6140 2007-08-30 Jakub Jelinek <jakub@redhat.com>
6143 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
6144 true if any of the compare_section_name calls returned true,
6145 rather than if any returned false.
6147 2007-08-30 Richard Guenther <rguenther@suse.de>
6149 PR tree-optimization/33199
6150 * tree-ssa-structalias.c (handle_lhs_call): New function.
6151 (find_func_aliases): In non-IPA mode make sure that for
6152 calls that return a pointer we add a constraint for the
6153 result to point to anything.
6155 2007-08-30 Richard Guenther <rguenther@suse.de>
6157 * doc/invoke.texi (-mveclibabi): Document new target option.
6158 * config/i386/i386.opt (-mveclibabi): New target option.
6159 * config/i386/i386.c (ix86_veclib_handler): Handler for
6160 vectorization library support.
6161 (override_options): Handle the -mveclibabi option, initialize
6162 the vectorization library handler.
6163 (ix86_builtin_vectorized_function): As fallback call the
6164 vectorization library handler, if set.
6165 (ix86_veclibabi_acml): New static function for ACML ABI style
6166 vectorization support.
6168 2007-08-30 Jakub Jelinek <jakub@redhat.com>
6170 * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
6171 used_m, even if it is 32-bit aligned, adjust used_m MEM to have
6172 SImode and update m. Don't run gen_lowpart_common on arbitrary
6173 memory address, force it to register first.
6176 * dce.c (dce_process_block): Don't delete setters of
6177 artificially used registers.
6179 2007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6181 * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
6182 "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
6183 "*add<mode>3_alc_carry2_cconly"): New insn definitions.
6185 2007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6187 * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
6189 * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
6190 "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
6192 2007-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6194 * system.h: Activate -Wcast-qual as warning-only.
6196 2007-08-29 Paolo Bonzini <bonzini@gnu.org>
6199 * config/rs6000/rs6000.c (compare_section_name): New function.
6200 (rs6000_elf_in_small_data_p): Compare section prefixes instead
6203 2007-08-29 Olivier Hainque <hainque@adacore.com>
6205 * xcoffout.c: #include debug.h.
6206 * Makefile.in (xcoffout.o): Add debug.h dependency.
6208 2007-08-29 Uros Bizjak <ubizjak@gmail.com>
6210 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
6211 Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
6213 2007-08-29 Richard Guenther <rguenther@suse.de>
6215 * tree-pretty-print.c (dump_generic_node): Print
6216 label DECL_UID as D.%u.
6217 * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
6219 2007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6221 * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
6222 * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
6224 2007-08-29 Douglas Gregor <doug.gregor@gmail.com>
6227 * tree.c (build_type_attribute_qual_variant): Set canonical types
6228 on the final, unqualified attribute variant before building the
6231 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6233 * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
6234 order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
6236 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6239 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6240 * config/bfin/bfin.md (composev2hi): Put operands into vector
6243 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6245 * config/bfin/bfin.md (composev2hi): Put operands into vector
6248 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6250 * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
6251 attribute when appropriate.
6252 (bfin_handle_l1_text_attribute): New.
6253 (bfin_handle_l1_data_attribute): New.
6254 (bfin_attribute_table): Add attributes: l1_text, l1_data,
6255 l1_data_A and l1_data_B.
6256 * doc/extend.texi (node Function Attributes): Document l1_text
6258 (Variable Attributes): Add Blackfin subsection. Document l1_data,
6259 l1_data_A and l1_data_B variable attributes.
6261 2007-08-28 Jie Zhang <jie.zhang@analog.com>
6263 * config/bfin/bfin.opt (minline-plt): Add.
6264 * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
6265 call to global functions.
6266 * doc/invoke.texi (Option Summary): Mention -minline-plt.
6267 (Blackfin Options): Document -minline-plt.
6269 2007-08-28 Nathan Sidwell <nathan@codesourcery.com>
6271 * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
6272 given a non-function.
6273 (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
6275 2007-08-28 DJ Delorie <dj@redhat.com>
6277 * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
6279 2007-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6281 * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
6283 2007-08-28 Richard Guenther <rguenther@suse.de>
6285 * tree.h (struct tree_function_decl): Increase size of
6286 function_code bitfield.
6288 2007-08-28 Nathan Sidwell <nathan@codesourcery.com>
6289 Kazu Hirata <kazu@codesourcery.com>
6291 * gcc/config/m68k/linux.h
6292 (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
6293 * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
6294 (m68k_return_in_memory): New.
6295 * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
6298 2007-08-28 Uros Bizjak <ubizjak@gmail.com>
6301 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
6302 Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
6303 operand) when top VEC_SELECT extracts scalar element.
6304 * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
6305 (*vec_extract_v4sf_mem): Ditto.
6307 2007-08-28 Jakub Jelinek <jakub@redhat.com>
6310 * passes.c (init_optimization_passes): Move pass_df_finish
6311 after pass_postreload sublist.
6313 PR rtl-optimization/33148
6314 * simplify-rtx.c (simplify_unary_operation_1): Only optimize
6315 (neg (lt X 0)) if X has scalar int mode.
6318 * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
6319 initializer, use build_vector_from_ctor if possible to create
6320 VECTOR_CST out of it. If vector initializer is not VECTOR_CST
6321 even after this, return NULL.
6323 2007-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
6325 * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
6327 2007-08-28 Richard Guenther <rguenther@suse.de>
6329 * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
6330 (struct tree_function_decl): Make function_code a bitfield.
6331 Add disregard_inline_limits flag.
6332 * cgraphunit.c (cgraph_process_new_functions): Check
6333 DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
6334 (cgraph_preserve_function_body_p): Likewise.
6335 * ipa-inline.c (compute_inline_parameters): Likewise.
6336 * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
6337 for GNU C extern inline functions.
6338 (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
6339 * tree-inline.c (disregard_inline_limits_p): Remove.
6340 * tree-inline.h (disregard_inline_limits_p): Likewise.
6341 * c-common.c (handle_always_inline_attribute): Set
6342 DECL_DISREGARD_INLINE_LIMITS.
6343 * langhooks.c (add_builtin_function): Verify the function code
6344 fits in the bitfield.
6346 2007-08-28 Mircea Namolaru <namolaru@il.ibm.com>
6347 Vladimir Yanovsky <yanov@il.ibm.com>
6348 Revital Eres <eres@il.ibm.com>
6349 Andrey Belevantsev <abel@ispras.ru>
6351 * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
6353 * modulo-sched.c: Add documentation regarding do-loop.
6354 (doloop_register_get): Change number of arguments to support
6355 the new do-loop pattern and check whether COUNT_REG has no other
6356 occurences in the loop besides in the control part.
6357 (duplicate_insns_of_cycles): Do not duplicate the insn which
6358 changes count_reg as it is already adjusted.
6359 (generate_prolog_epilog): New argument to support the new
6360 do-loop pattern. Change the subtract instruction to use
6361 expand_simple_binop. Call duplicate_insns_of_cycles with new
6363 (sms_schedule): Call doloop_register_get and
6364 generate_prolog_epilog with new argument. Do not handle loops
6365 with single sets insns with subreg in their lhs.
6366 * loop-doloop.c (doloop_optimize): Support for another do-loop
6368 (doloop_condition_get): Gets an instruction instead of a pattern
6369 and change the return condition when the do-loop pattern is
6371 * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
6372 deps when considering to not create edges.
6374 2007-08-27 Alexandre Oliva <aoliva@redhat.com>
6376 * doc/extend.texi (gnu_inline funtion attribute): Document C++
6379 2007-08-27 Jason Merrill <jason@redhat.com>
6382 * gimplify.c (gimplify_modify_expr): Discard the assignment of
6383 zero-sized types after calling gimplify_modify_expr_rhs.
6385 2007-08-27 Sandra Loosemore <sandra@codesourcery.com>
6387 * regclass.c (init_reg_autoinc): Fix typo.
6389 2007-08-27 Daniel Berlin <dberlin@dberlin.org>
6391 Fix PR tree-optimization/33173
6392 * tree-ssa-alias.c (find_used_portions): Fix reversed test.
6394 2007-08-27 H.J. Lu <hongjiu.lu@intel.com>
6397 * config/i386/i386.h (VALID_DFP_MODE_P): New.
6398 * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
6401 2007-08-27 Sandra Loosemore <sandra@codesourcery.com>
6402 David Ung <davidu@mips.com>
6403 Nigel Stephens <nigel@mips.com>
6405 Separate target-specific initialization from general
6406 back-end initialization.
6408 * toplev.c (init_alignments): New, split out from...
6409 (process_options): ...here.
6410 (backend_init_target): New, split out from...
6411 (backend_init): ...here.
6412 (lang_dependent_init_target): New, split out from...
6413 (lang_dependent_init): ...here.
6414 (target_reinit): New.
6415 * toplev.h (target_reinit): Declare.
6416 * expr.c (init_expr_target): Renamed from init_expr_once, since it
6417 now can be called more than once. Update comments.
6418 * expr.h (init_expr_target): Likewise.
6419 * alias.c (init_alias_target): Renamed from init_alias_once, since it
6420 now can be called more than once. Explicitly zero
6421 static_reg_base_value.
6422 * emit-rtl.c (init_emit_regs): New, split out from...
6423 (init_emit_once): Here.
6424 * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
6425 non-const, so that changes from command-line arguments can overwrite
6426 values provided by the static initializers.
6427 (initial_call_really_used_regs): New, used similarly to the above.
6428 (initial_reg_names): Likewise.
6429 (last_mode_for_init_move_cost): Promoted function-local static to
6430 file-scope static to make it accessible outside init_move_cost.
6431 (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
6432 Do not initialize inv_reg_alloc_order yet, either. Do initialize
6433 reg_names since it is needed for parsing command-line options.
6434 (init_move_cost): Use last_mode_for_init_move_cost instead of
6435 function-local static.
6436 (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
6437 call_really_used_regs now. Reinitialize reg_names. Also
6438 initialize inv_reg_alloc_order. Zero reg_class_subunion and
6439 reg_class_superunion. Clear losing_caller_save_reg_set.
6440 Preserve global registers if called more than once. Reset
6441 move cost, may_move_in_cost, may_move_out_cost, and
6442 last_mode_for_init_move_cost.
6443 (init_reg_modes_target): Renamed from init_reg_modes_once, since it
6444 can now be invoked more than once. Update comments.
6445 (init_regs): Update comments.
6446 (fix_register): Update initial_fixed_regs, initial_call_used_regs,
6447 and initial_call_really_used_regs, instead of the non-initial
6448 variables. This allows us to save the command-line register settings
6449 after target reinitialization.
6450 (init_reg_autoinc): Zero forbidden_inc_dec_classes.
6451 * rtl.h (init_emit_regs): Declare.
6452 (init_reg_modes_target, init_alias_target): Renamed as described
6454 * reload1.c (init_reload): Update comments.
6455 * optabs.c (init_optabs): Likewise.
6456 * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
6458 2007-08-26 Chao-ying Fu <fu@mips.com>
6460 * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
6463 2007-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6465 * alias.c (memory_modified_1, memory_modified_in_insn_p):
6467 * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
6469 * bb-reorder.c (copy_bb_p): Likewise.
6470 * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
6471 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
6472 block_ends_with_condjump_p): Likewise.
6473 * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
6474 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
6475 block_ends_with_condjump_p): Likewise.
6476 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
6477 * cfgrtl.c (can_delete_note_p, can_delete_label_p,
6478 rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
6479 rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
6480 need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
6481 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
6482 debug_true_const_tree instad of debug_true_tree.
6483 * debug.c (do_nothing_debug_hooks): Likewise.
6484 * debug.h (ignore_block, debug_true_const_tree): Constify.
6485 * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
6486 dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
6487 decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
6488 same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
6489 dbx_reg_number, is_based_loc, field_type,
6490 simple_type_align_in_bits, simple_decl_align_in_bits,
6491 simple_type_size_in_bits, field_byte_offset, insert_float,
6492 type_tag, member_declared_type, is_redundant_typedef,
6493 secname_for_decl, is_inlined_entry_point): Likewise.
6494 * emit-rtl.c (const_next_insn, const_previous_insn,
6495 const_next_nonnote_insn, const_prev_nonnote_insn,
6496 const_next_real_insn, const_prev_real_insn,
6497 const_next_active_insn, const_prev_active_insn, const_next_label,
6498 const_prev_label): Likewise.
6499 * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
6501 * haifa-sched.c (may_trap_exp, haifa_classify_insn,
6502 find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
6503 sched_insn_is_legitimate_for_speculation_p): Likewise.
6504 * jump.c (reversed_comparison_code_parts,
6505 reversed_comparison_code, reversed_comparison, condjump_label):
6507 * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
6508 * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
6510 * rtl.h (const_previous_insn, const_next_insn,
6511 const_prev_nonnote_insn, const_next_nonnote_insn,
6512 const_prev_real_insn, const_next_real_insn,
6513 const_prev_active_insn, const_next_active_insn, const_prev_label,
6514 const_next_label, modified_between_p, modified_in_p,
6515 const_note_storeskeep_with_call_p, condjump_label,
6516 reversed_comparison, reversed_comparison_code,
6517 reversed_comparison_code_parts, memory_modified_in_insn_p,
6518 stack_regs_mentioned): Likewise.
6519 * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
6520 keep_with_call_p): Likewise.
6521 * sched-deps.c (deps_may_trap_p, sched_get_condition,
6522 conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
6523 sd_lists_size, sd_lists_empty_p): Likewise.
6524 * sched-int.h (sched_insns_conditions_mutex_p,
6525 haifa_classify_insn, no_real_insns_p,
6526 sched_insn_is_legitimate_for_speculation_p, sd_next_list,
6527 sd_lists_size, sd_lists_empty_p): Likewise.
6528 * sdbout.c (sdb_debug_hooks): Likewise.
6529 * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
6530 stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
6531 -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
6533 * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
6534 tree_can_throw_internal): Likewise.
6535 * tree-flow-inline.h (phi_nodes): Likewise.
6536 * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
6537 tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
6538 * tree-gimple.c (const_get_call_expr_in): Likewise.
6539 * tree-gimple.h (const_get_call_expr_in): Likewise.
6540 * tree.c (const_lookup_attribute, attribute_list_equal,
6541 attribute_list_contained): Likewise.
6542 * tree.h (attribute_list_equal, attribute_list_contained,
6543 const_lookup_attribute): Likewise.
6544 * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
6546 2007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
6548 * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
6549 tree-ssa-pre.c: Remove unnecessary trailing whitespace.
6551 2007-08-26 H.J. Lu <hongjiu.lu@intel.com>
6554 * config/alpha/constraints.md: Delete "svn:mime-type" property
6555 with svn propdel "svn:mime-type".
6557 2007-08-26 H.J. Lu <hongjiu.lu@intel.com>
6560 * ifcvt.c (noce_get_alt_condition): Make sure that the previous
6561 non NOTE insn doesn't cross basic block.
6562 (noce_try_abs): Likewise.
6563 (noce_process_if_block): Likewise.
6565 2007-08-26 David Edelsohn <edelsohn@gnu.org>
6568 * config/rs6000/predicates.md (offsettable_mem_operand): Memory
6569 operand without auto-inc-dec.
6570 * config/rs6000/rs6000.md (floatsidf2_internal): Use
6571 offsettable_mem_operand.
6572 (floatunssidf2_internal): Same.
6573 (fix_truncdfsi2_internal): Same.
6574 (floatsidf_ppc64): Same.
6575 (floatunssidf_ppc64): Same.
6576 (fix_trunctfsi2_internal): Same.
6578 2007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
6581 * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
6582 pass defines needed for version.c.
6584 2007-08-25 Joseph Myers <joseph@codesourcery.com>
6586 * configure.ac (--debug-prefix-map check): Change assembler
6587 version presumed to have feature to 2.18.
6588 * configure: Regenerate.
6590 2007-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6592 * c-common.c (vector_types_convertible_p,
6593 decl_with_nonnull_addr_p, c_promoting_integer_type_p,
6594 self_promoting_args_p): Constify.
6595 * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
6596 c_promoting_integer_type_p, self_promoting_args_p,
6597 anon_aggr_type_p, vector_types_convertible_p): Likewise.
6598 * c-decl.c (anon_aggr_type_p): Likewise.
6599 * * c-dump.c (dump_stmt): Likewise.
6600 * c-objc-common.c (has_c_linkage): Likewise.
6601 * c-tree.h (same_translation_unit_p): Likewise.
6602 * c-typeck.c (null_pointer_constant_p,
6603 tagged_types_tu_compatible_p, function_types_compatible_p,
6604 type_lists_compatible_p, lvalue_or_else, lvalue_p,
6605 comptypes_internal, struct tagged_tu_seen_cache,
6606 same_translation_unit_p, alloc_tagged_tu_seen_cache,
6607 c_size_in_bytes): Likewise.
6608 * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
6609 hash_ptr, eq_ptr): Likewise.
6610 * langhooks-def.h (lhd_decl_ok_for_sibcall,
6611 LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
6612 * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
6613 * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
6615 * optabs.c (optab_for_tree_code): Likewise.
6616 * optabs.h (optab_for_tree_code): Likewise.
6617 * rtl.h (simplify_rtx): Likewise.
6618 * simplify-rtx.c (simplify_rtx): Likewise.
6619 * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
6620 dump_flag, dump_node): Likewise.
6621 * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
6622 queue_and_dump_type, dump_flag): Likewise.
6623 * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
6624 * tree-pass.h (dump_node): Likewise.
6625 * tree-vectorizer.c (vect_can_force_dr_alignment_p,
6626 supportable_narrowing_operation): Likewise.
6627 * tree-vectorizer.h (vect_can_force_dr_alignment_p,
6628 supportable_narrowing_operation): Likewise.
6629 * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
6630 is_negative_overflow_infinity, is_positive_overflow_infinity,
6631 is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
6632 nonnull_arg_p, get_value_range, vrp_operand_equal_p,
6633 update_value_range, add_equivalence, ssa_name_nonnegative_p,
6634 ssa_name_nonzero_p, fp_predicate): Likewise.
6635 * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
6636 * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
6637 ssa_name_nonnegative_p): Likewise.
6639 2007-08-25 Hans Kester <hans.kester@ellips.nl>
6641 * config.gcc : Add x86_64-elf target.
6643 2007-08-25 Jakub Jelinek <jakub@redhat.com>
6645 * expr.c (store_expr): Fix order of store_by_pieces arguments.
6647 2007-08-24 Sandra Loosemore <sandra@codesourcery.com>
6648 Nigel Stephens <nigel@mips.com>
6652 * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
6653 (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
6654 * expr.c (SET_BY_PIECES_P): Define.
6655 (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
6656 it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
6657 (store_expr): Pass MEMSETP argument to can_store_by_pieces and
6659 * expr.h (SET_RATIO): Define.
6660 (can_store_by_pieces, store_by_pieces): Update prototypes.
6661 * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
6662 can_store_by_pieces/store_by_pieces.
6663 (expand_builtin_memcpy_args): Likewise.
6664 (expand_builtin_strncpy): Likewise.
6665 (expand_builtin_memset_args): Likewise. Also remove special case
6666 for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
6667 decide what to do instead.
6668 * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
6669 to can_store_by_pieces.
6671 * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
6672 * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
6674 * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
6675 * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
6676 * config/mips/mips.h (MIPS_CALL_RATIO): Define.
6677 (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
6678 (STORE_BY_PIECES_P): Define.
6680 2007-08-24 Tom Tromey <tromey@redhat.com>
6682 * varpool.c (varpool_last_needed_node): Fix comment typo.
6683 * c-decl.c (duplicate_decls): Fix comment typo.
6684 (clone_underlying_type): Update comment.
6686 2007-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6688 * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
6689 alpha_in_small_data_p, alpha_split_complex_arg,
6690 alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6692 * config/arm/arm-protos.h (arm_mangle_type): Likewise.
6693 * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
6695 * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
6696 TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6697 * config/darwin-protos.h (darwin_binds_local_p): Likewise.
6698 * config/darwin.c (darwin_binds_local_p): Likewise.
6699 * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
6701 * config/i386/i386-protos.h (i386_pe_binds_local_p,
6702 i386_pe_valid_dllimport_attribute_p): Likewise.
6703 * config/i386/i386.c (ix86_function_regparm,
6704 ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
6705 x86_can_output_mi_thunk, ix86_mangle_type,
6706 TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
6707 * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
6708 i386_pe_binds_local_p): Likewise.
6709 * config/ia64/ia64.c
6710 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
6711 ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
6712 ia64_invalid_conversion, ia64_invalid_unary_op,
6713 ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6715 * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
6716 * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
6717 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6718 * config/mips/mips.c (mips_use_blocks_for_constant_p,
6719 mips_in_small_data_p, mips_use_anchors_for_symbol_p,
6720 mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6721 mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
6722 mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
6723 * config/pa/pa.c (pa_commutative_p): Likewise.
6724 * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
6726 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
6727 rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
6728 rs6000_use_blocks_for_constant_p,
6729 rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
6730 invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6731 TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
6732 * config/s390/s390.c (s390_mangle_type,
6733 TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
6735 * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6736 th_in_small_data_p): Likewise.
6737 * config/sh/sh.c (sh_ms_bitfield_layout_p,
6738 sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6740 * config/sparc/sparc.c (sparc_can_output_mi_thunk,
6741 sparc_mangle_type): Likewise.
6742 * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
6743 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
6744 * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
6746 * hooks.c (hook_bool_mode_const_rtx_false,
6747 hook_bool_mode_const_rtx_true,
6748 hook_bool_const_tree_hwi_hwi_const_tree_false,
6749 hook_bool_const_tree_hwi_hwi_const_tree_true,
6750 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
6751 hook_constcharptr_const_tree_null,
6752 hook_constcharptr_const_rtx_null,
6753 hook_constcharptr_const_tree_const_tree_null,
6754 hook_constcharptr_int_const_tree_null,
6755 hook_constcharptr_int_const_tree_const_tree_null): New.
6756 (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
6757 hook_bool_tree_hwi_hwi_tree_false,
6758 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
6759 hook_int_tree_tree_1, hook_constcharptr_tree_null,
6760 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
6761 hook_constcharptr_int_tree_null,
6762 hook_constcharptr_int_tree_tree_null): Delete.
6763 (default_can_output_mi_thunk_no_vcall): Constify.
6764 * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
6765 hook_bool_tree_hwi_hwi_tree_false,
6766 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
6767 hook_int_tree_tree_1, hook_constcharptr_tree_null,
6768 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
6769 hook_constcharptr_int_tree_null,
6770 hook_constcharptr_int_tree_tree_null): Delete.
6771 (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
6772 hook_bool_const_tree_hwi_hwi_const_tree_false,
6773 hook_bool_const_tree_hwi_hwi_const_tree_true,
6774 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
6775 hook_constcharptr_const_tree_null,
6776 hook_constcharptr_const_rtx_null,
6777 hook_constcharptr_const_tree_const_tree_null,
6778 hook_constcharptr_int_const_tree_null,
6779 hook_constcharptr_int_const_tree_const_tree_null): New.
6780 (default_can_output_mi_thunk_no_vcall): Constify.
6781 * integrate.c (function_attribute_inlinable_p): Likewise.
6782 * integrate.h (function_attribute_inlinable_p): Likewise.
6783 * jump.c (rtx_renumbered_equal_p): Likewise.
6784 * output.h (decl_readonly_section, categorize_decl_for_section,
6785 default_use_anchors_for_symbol_p, default_binds_local_p,
6786 default_binds_local_p_1): Likewise.
6787 * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
6789 * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6790 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
6791 TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
6792 TARGET_COMP_TYPE_ATTRIBUTES,
6793 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
6794 TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
6795 TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
6796 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
6797 TARGET_DWARF_CALLING_CONVENTION): Likewise.
6798 * target.h (can_output_mi_thunk, needs_block_p,
6799 first_cycle_multipass_dfa_lookahead_guard_spec,
6800 vector_alignment_reachable, comp_type_attributes,
6801 function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
6802 commutative_p, use_blocks_for_constant_p,
6803 use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
6804 vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
6805 invalid_within_doloop, valid_dllimport_attribute_p,
6806 split_complex_arg, invalid_arg_for_unprototyped_fn,
6807 invalid_conversion, invalid_unary_op, invalid_binary_op):
6809 * targhooks.c (default_invalid_within_doloop,
6810 hook_invalid_arg_for_unprototyped_fn,
6811 default_builtin_vector_alignment_reachable): Likewise.
6812 (hook_bool_rtx_commutative_p): Delete.
6813 (hook_bool_const_rtx_commutative_p): New.
6814 * targhooks.h (default_invalid_within_doloop,
6815 default_builtin_vector_alignment_reachable,
6816 hook_invalid_arg_for_unprototyped_fn): Constify.
6817 (hook_bool_rtx_commutative_p): Delete.
6818 (hook_bool_const_rtx_commutative_p): New.
6819 * varasm.c (bss_initializer_p, decl_default_tls_model,
6820 categorize_decl_for_section, decl_readonly_section,
6821 default_use_anchors_for_symbol_p, default_binds_local_p,
6822 default_binds_local_p_1): Constify.
6824 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6826 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6827 __NO_BUILTIN if -fno-builtin.
6829 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6831 * config/bfin/bfin.c (print_operand): Report error instead of
6832 ICE for wrong operand.
6834 2007-08-24 Michael Matz <matz@suse.de>
6836 * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
6838 2007-08-24 Richard Guenther <rguenther@suse.de>
6841 * tree-ssa.c (useless_type_conversion_p): Split into a
6842 recursive and a non-recursive part.
6843 (useless_type_conversion_p_1): New function.
6844 * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
6845 from maybe_fold_offset_to_reference is trivially convertible
6846 to the desired type before doing the simplification.
6848 2007-08-24 Jakub Jelinek <jakub@redhat.com>
6850 * expr.c (store_expr): Optimize initialization of an array
6852 * expr.h (builtin_strncpy_read_str): New prototype.
6853 * builtins.c (builtin_strncpy_read_str): Remove prototype.
6856 2007-08-24 Uros Bizjak <ubizjak@gmail.com>
6859 * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
6860 field when initializing if_info structure.
6862 2007-08-24 Richard Guenther <rguenther@suse.de>
6864 * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
6866 * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
6867 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
6868 * tree-inline.c (inlinable_function_p): Fold in common parts of
6869 the cannot_inline_tree_fn langhook.
6870 * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
6871 (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
6872 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
6873 cannot_inline_tree_fn langhook.
6874 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
6875 cannot_inline_tree_fn member.
6877 2007-08-24 Richard Guenther <rguenther@suse.de>
6879 * expr.c (get_inner_reference): Do computation of bitoffset
6880 from offset in a way we can detect overflow reliably.
6882 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6884 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
6886 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6888 * config/bfin/bfin.opt (mfast-fp): Add.
6889 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
6890 libbffastfp override libgcc if -mfast-fp.
6891 * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6892 * doc/invoke.texi (Option Summary): Mention -mfast-fp.
6893 (Blackfin Options): Document -mfast-fp.
6895 2007-08-24 Jakub Jelinek <jakub@redhat.com>
6897 PR tree-optimization/32573
6899 * tree-data-ref.c (initialize_data_dependence_relation): Clear
6900 DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
6901 (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
6902 (build_classic_dist_vector): Return false rather than true if
6903 DDR_ARE_DEPENDENT is non-NULL at the beginning. Return false
6904 if either subscript_dependence_tester_1 or build_classic_dist_vector_1
6905 returned false. Don't call save_dist_v before calling
6906 build_classic_dist_vector_1.
6907 (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
6908 with NULL DDR_ARE_DEPENDENT. Also free DDR_DIST_VECTS and/or
6909 DDR_DIR_VECTS vectors.
6911 2007-08-23 Brian Sidebotham <brian.sidebotham@gmail.com>
6913 * configure.ac (leb128): Modify sed statement to work with any
6914 binutils version string.
6915 * configure: Regenerate
6917 2007-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6919 * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
6920 Wrap in RTX_CODE macro guard.
6921 * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
6922 arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
6923 arm_mark_dllimport, arm_pe_encode_section_info,
6924 arm_pe_unique_section): Use ISO-C function declarations.
6925 * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
6926 c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
6927 c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
6929 * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
6930 * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
6932 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
6934 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
6935 * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
6936 (register_move_cost): Use ISO-C function declarations.
6937 * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
6938 * config/score/score-protos.h (score_declare_object): Add
6940 * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
6942 * final.c (profile_function): Avoid empty if-bodies.
6945 * calls.c (must_pass_in_stack_var_size,
6946 must_pass_in_stack_var_size_or_pad): Constify.
6947 * config/alpha/alpha-protos.h (function_value): Likewise.
6948 * config/alpha/alpha.c (alpha_return_in_memory,
6949 alpha_pass_by_reference, function_value,
6950 unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
6951 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
6953 * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
6954 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6955 TARGET_PROMOTE_PROTOTYPES): Likewise.
6956 * config/arm/arm-protos.h (arm_return_in_memory,
6957 arm_pad_arg_upward, arm_function_value): Likewise.
6958 * config/arm/arm.c (arm_pass_by_reference,
6959 arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
6960 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6961 arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
6963 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
6964 * config/avr/avr-protos.h (avr_function_value): Likewise.
6965 * config/avr/avr.c (avr_return_in_memory,
6966 gas_output_limited_string, gas_output_ascii, avr_function_value,
6967 avr_return_in_memory): Likewise.
6968 * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
6969 * config/bfin/bfin.c (bfin_pass_by_reference,
6970 bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
6971 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
6973 * config/cris/cris.c (cris_pass_by_reference,
6974 TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
6975 * config/crx/crx.c (crx_return_in_memory): Likewise.
6976 * config/darwin.c (function_base, machopic_function_base_name):
6978 * config/fr30/fr30.c (fr30_must_pass_in_stack,
6979 TARGET_PROMOTE_PROTOTYPES): Likewise.
6980 * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
6981 * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
6982 * config/i386/i386-protos.h (ix86_return_in_memory,
6983 ix86_sol10_return_in_memory): Likewise.
6984 * config/i386/i386.c (ix86_function_value,
6985 ix86_function_sseregparm, ix86_must_pass_in_stack,
6986 type_natural_mode, classify_argument, examine_argument,
6987 construct_container, ix86_pass_by_reference, function_value_32,
6988 function_value_64, ix86_function_value_1, return_in_memory_32,
6989 return_in_memory_64, return_in_memory_ms_64,
6990 ix86_return_in_memory, ix86_sol10_return_in_memory,
6991 TARGET_PROMOTE_PROTOTYPES): Likewise.
6992 * config/ia64/ia64-protos.h (ia64_function_value,
6993 ia64_hpux_function_arg_padding): Likewise.
6994 * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
6995 ia64_function_value, bundle_state_hash, bundle_state_eq_p,
6996 ia64_hpux_function_arg_padding): Likewise.
6997 * config/iq2000/iq2000-protos.h (function_arg,
6998 iq2000_function_value): Likewise.
6999 * config/iq2000/iq2000.c (iq2000_return_in_memory,
7000 iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
7001 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7002 function_arg, iq2000_function_value): Likewise.
7003 * config/m32c/m32c-protos.h (m32c_function_value,
7004 m32c_promote_function_return): Likewise.
7005 * config/m32c/m32c.c (m32c_pass_by_reference,
7006 m32c_promote_prototypes, m32c_promote_function_return,
7007 m32c_function_value): Likewise.
7008 * config/m32r/m32r.c (m32r_return_in_memory,
7009 m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
7010 m32r_in_small_data_p): Likewise.
7011 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
7013 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
7014 m68hc11_function_arg_padding): Likewise.
7015 * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
7016 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
7017 m68k_function_value): Likewise.
7018 * config/mcore/mcore-protos.h (mcore_num_arg_regs,
7019 mcore_function_value): Likewise.
7020 * config/mcore/mcore.c (handle_structs_in_regs,
7021 mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
7022 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7023 mcore_num_arg_regs, mcore_function_value): Likewise.
7024 * config/mips/mips-protos.h (mips_pad_arg_upward,
7025 mips_function_value): Likewise.
7026 * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
7027 mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
7028 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7029 TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
7030 mips_function_value): Likewise.
7031 * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
7033 * config/mmix/mmix.c (mmix_pass_by_reference,
7034 TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
7035 mmix_encode_section_info): Likewise.
7036 * config/mn10300/mn10300-protos.h (mn10300_function_value):
7038 * config/mn10300/mn10300.c (mn10300_return_in_memory,
7039 mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
7040 mn10300_function_value): Likewise.
7041 * config/mt/mt-protos.h (mt_function_value): Likewise.
7042 * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
7043 mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
7044 * config/pa/pa-protos.h (function_arg_padding, function_value,
7045 pa_return_in_memory): Likewise.
7046 * config/pa/pa.c (pa_pass_by_reference,
7047 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7048 function_arg_padding, function_value, pa_return_in_memory):
7050 * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
7051 * config/rs6000/rs6000-protos.h (rs6000_function_value,
7052 function_arg_padding): Likewise.
7053 * config/rs6000/rs6000.c (rs6000_return_in_memory,
7054 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
7055 rs6000_pass_by_reference, rs6000_must_pass_in_stack,
7056 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7057 function_arg_padding, altivec_expand_dst_builtin,
7058 altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
7059 altivec_init_builtins, rs6000_common_init_builtins,
7060 rs6000_function_value): Likewise.
7061 * s390/s390-protos.h (s390_function_value): Likewise.
7062 * config/s390/s390.c (s390_function_arg_size,
7063 s390_pass_by_reference, s390_return_in_memory,
7064 s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
7065 TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7066 * config/score/score-protos.h (score_function_value): Likewise.
7067 * config/score/score.c (score_arg_partial_bytes,
7068 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7069 TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
7070 score_pass_by_reference, score_add_offset, score_function_value):
7072 * config/sh/sh-protos.h (sh_attr_renesas_p,
7073 sh_promote_prototypes): Likewise.
7074 * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
7075 sh_callee_copies, sh_promote_prototypes, shcompact_byref,
7076 sh_attr_renesas_p): Likewise.
7077 * config/sparc/sparc-protos.h (function_value,
7078 function_arg_padding): Likewise.
7079 * config/sparc/sparc.c (sparc_promote_prototypes,
7080 sparc_return_in_memory, sparc_pass_by_reference,
7081 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7082 function_arg_record_value_2, function_arg_record_value_1,
7083 function_arg_record_value, function_arg_record_value,
7084 function_arg_padding, function_value): Likewise.
7085 * config/spu/spu-protos.h (spu_function_value): Likewise.
7086 * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
7087 spu_function_value): Likewise.
7088 * config/stormy16/stormy16-protos.h (xstormy16_function_value):
7090 * config/stormy16/stormy16.c (xstormy16_return_in_memory,
7091 xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
7092 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
7094 * config/v850/v850.c (v850_return_in_memory,
7095 v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
7096 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
7097 * config/xtensa/xtensa.c (xtensa_return_in_msb,
7098 xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
7099 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
7101 * explow.c (promote_mode, hard_function_value): Likewise.
7102 * expr.h (hard_function_value, promote_mode): Likewise.
7103 * function.c (aggregate_value_p): Likewise.
7104 * hooks.c (hook_bool_const_tree_true): New.
7105 * hooks.h (hook_bool_const_tree_true): New.
7106 * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
7107 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
7108 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7109 TARGET_RETURN_IN_MSB): Likewise.
7110 * target.h (promote_function_args, promote_function_return,
7111 promote_prototypes, return_in_memory, return_in_msb,
7112 pass_by_reference, must_pass_in_stack, callee_copies,
7113 function_value): Likewise.
7114 * targhooks.c (default_return_in_memory,
7115 hook_pass_by_reference_must_pass_in_stack,
7116 hook_callee_copies_named,
7117 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
7118 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
7119 default_function_value): Likewise.
7120 * targhooks.h (default_return_in_memory,
7121 hook_pass_by_reference_must_pass_in_stack,
7122 hook_callee_copies_named,
7123 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
7124 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
7125 default_function_value): Likewise.
7126 * tree-ssa-structalias.c (const_equiv_class_label_t): New.
7127 (equiv_class_label_hash, equiv_class_label_eq): Constify.
7128 * tree-vectorizer.c (bb_in_loop_p): Likewise.
7129 * tree.c (needs_to_live_in_memory): Likewise.
7130 * tree.h (struct tree_type, needs_to_live_in_memory,
7131 aggregate_value_p, must_pass_in_stack_var_size,
7132 must_pass_in_stack_var_size_or_pad): Likewise.
7133 * vmsdbgout.c (write_debug_addr, write_debug_delta4,
7134 write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
7135 lookup_filename): Likewise.
7137 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
7140 * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
7141 fake fcomi i387 instruction for !TARGET_CMOVE.
7142 (ix86_expand_branch): Expand natural sequence with one jump for
7143 all targets, not only TARGET_CMOVE.
7144 * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
7145 pattern to implement fake fcomi sequence. Split instruction after
7146 reload to correct compare sequences.
7147 (*cmpfp_xf_cc): Ditto.
7148 (*cmpfp_<mode>_cc): Ditto.
7149 (*cmpfp_u_cc): Ditto.
7150 (*cmpfp_<mode>_cc): Ditto.
7152 2007-08-23 Richard Guenther <rguenther@suse.de>
7154 * tree-pretty-print.c (dump_generic_node): Annotate
7155 GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
7157 2007-08-23 Richard Guenther <rguenther@suse.de>
7159 * builtins.c (expand_builtin_mathfn): Wrap argument in
7160 save_expr directly instead of re-building the call.
7161 (expand_builtin_mathfn_2): Likewise.
7162 (expand_builtin_mathfn_3): Likewise.
7163 (expand_builtin_interclass_mathfn): Likewise.
7164 (expand_builtin_int_roundingfn): Set arg.
7165 (expand_builtin_int_roundingfn_2): Likewise.
7167 2007-08-23 Paolo Bonzini <bonzini@gnu.org>
7169 * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
7170 *sse_nand<mode>3, *sse_xor<mode>3): New.
7172 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
7174 * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
7175 * config/i386/i386.c (print_operand): Handle ';' code. Output
7176 semicolon for TARGET_MACHO.
7177 * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
7178 emit semicolon after 'lock' prefix.
7179 (sync_double_compare_and_swap<mode>): Ditto.
7180 (*sync_double_compare_and_swapdi_pic): Ditto.
7181 (*sync_compare_and_swap_cc<mode>): Ditto.
7182 (sync_double_compare_and_swap_cc<mode>): Ditto.
7183 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
7184 (sync_old_add<mode>): Ditto.
7185 (sync_add<mode>): Ditto.
7186 (sync_sub<mode>): Ditto.
7187 (sync_ior<mode>): Ditto.
7188 (sync_and<mode>): Ditto.
7189 (sync_xor<mode>): Ditto.
7191 2007-08-22 Chao-ying Fu <fu@mips.com>
7193 * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
7195 (copy_rtx): Handle CONST_FIXED.
7196 (rtx_equal_p): Likewise.
7197 * rtl.h (fixed_value.h): New include.
7198 (rtx_def): Add a new field of fixed_value to u.
7199 (XCNMPFV): Define for accessing fixed_value.
7200 (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
7202 * rtl.def (CONST_FIXED): New constant.
7203 (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
7204 UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
7205 US_ASHIFT): New codes.
7206 * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
7207 us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
7208 unsigned_fract_convert, unsigned_sat_fract): Document them.
7209 * varasm.c (assemble_integer): Extend to support fixed-point constants
7210 by using different machine classes.
7211 (decode_addr_const): Handle FIXED_CST.
7212 (const_hash_1): Likewise.
7213 (compare_constant): Likewise.
7214 (copy_constant): Likewise.
7215 (const_rtx_hash_1): Handle CONST_FIXED.
7216 (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
7217 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
7219 (initializer_constant_valid_p): Handle FIXED_CST.
7220 (output_constant): Support FIXED_POINT_TYPE.
7221 * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
7222 * cse.c (hash_rtx): Support CONST_FIXED.
7223 (exp_equiv_p): Likewise.
7224 (cannon_reg): Likewise.
7225 (fold_rtx): Likewise.
7226 (equiv_constant): Likewise.
7227 (cse_process_notes_1): Likewise.
7228 (count_reg_usage): Likewise.
7229 * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
7230 (rtx_equal_for_cselib_p): Handle CONST_FIXED.
7231 (wrap_constant): Check CONST_FIXED.
7232 (cselib_hash_rtx): Support CONST_FIXED.
7233 (cselib_subst_to_values): Likewise.
7234 * df-scan.c (df_uses_record): Likewise.
7235 * gcse.c (want_to_gcse_p): Likewise.
7236 (oprs_unchanged_p): Likewise.
7237 (oprs_not_set_p): Likewise.
7238 (compute_transp): Likewise.
7239 (extract_mentioned_regs_helper): Likewise.
7240 * genemit.c (gen_exp): Likewise.
7241 * local-alloc.c (equiv_init_varies_p): Likewise.
7242 (contains_replace_regs): Likewise.
7243 (memref_referenced_p): Likewise.
7244 * loop-invariant.c (check_maybe_invariant): Likewise.
7245 (hash_invariant_expr_1): Likewise.
7246 (invariant_expr_equal_p): Likewise.
7247 * postreload-gcse.c (oprs_unchanged_p): Likewise.
7248 * regclass.c (reg_scan_mark_refs): Likewise.
7249 * regrename.c (scan_rtx): Likewise.
7250 * resource.c (mark_referenced_resources): Likewise.
7251 (mark_set_resources): Likewise.
7252 * rtlanal.c (rtx_unstable_p): Likewise.
7253 (rtx_varies_p): Likewise.
7254 (count_occurrences): Likewise.
7255 (reg_mentioned_p): Likewise.
7256 (modified_between_p): Likewise.
7257 (modified_in_p): Likewise.
7258 (volatile_insn_p): Likewise.
7259 (volatile_refs_p): Likewise.
7260 (side_effects_p): Likewise.
7261 (may_trap_p_1): Likewise.
7262 (inequality_comparisons_p): Likewise.
7263 (computed_jump_p_1): Likewise.
7264 (commutative_operand_precedence): Likewise.
7265 * sched-deps.c (sched_analyze_2): Likewise.
7266 * sched-vis.c (print_value): Likewise.
7267 * reload.c (operands_match_p): Likewise.
7268 (subst_reg_equivs): Likewise.
7269 * reload1.c (eliminate_regs_1): Likewise.
7270 (elimination_effects): Likewise.
7271 (scan_paradoxical_subregs): Likewise.
7272 * alias.c (rtx_equal_for_memref_p): Likewise.
7273 * Makefile.in (RTL_BASE_H): Add fixed-value.h.
7274 * emit-rtl.c (const_fixed_htab): New hash table.
7275 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
7277 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
7278 const_fixed_from_fixed_value): New functions.
7279 (verify_rtx_sharing): Handle CONST_FIXED.
7280 (copy_rtx_if_shared_1): Likewise.
7281 (reset_used_flags): Likewise.
7282 (set_used_flags): Likewise.
7283 (copy_insn_1): Likewise.
7284 (init_emit_once): Create const_fixed_htab.
7285 Store fixed-point scalar and vector zero and one to const_tiny_rtx.
7287 2007-08-22 Zdenek Dvorak <ook@ucw.cz>
7289 PR tree-optimization/32949
7290 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
7291 before failing for ivs with non-constant step.
7293 2007-08-22 Hans-Peter Nilsson <hp@axis.com>
7295 * doc/md.texi (Iterators): Renamed from Macros. All contents
7296 changed to reflect rename of respectively define_code_macro and
7297 define_mode_macro to define_code_iterator and define_mode_iterator.
7298 (Mode Iterators, Code Iterators): Similar.
7299 * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
7300 (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
7301 (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
7302 (initialize_iterators, find_iterator, check_code_iterator)
7303 (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
7304 (read_mapping, read_rtx_1): Similar.
7305 * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
7306 config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
7307 config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
7308 config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
7309 config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
7310 config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
7311 config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
7312 config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
7313 config/rs6000/sync.md, config/rs6000/rs6000.md,
7314 config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
7315 config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
7316 config/vax/vax.md, config/bfin/bfin.md: Similar.
7318 2007-08-22 David Daney <ddaney@avtrex.com>
7320 * doc/install.texi (Testing): Mention testing on a simulator.
7322 2007-08-22 Janis Johnson <janis187@us.ibm.com>
7324 * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
7326 * doc/libgcc.texi (Decimal float library routines): Fix formatting
7327 and rearrange floating point conversion functions into different
7330 2007-08-22 Maxim Kuvyrkov <maxim@codesourcery.com>
7332 * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
7333 dfa_post_advance_cycle): New scheduler hooks.
7334 * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
7335 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
7337 (TARGET_SCHED): Use them.
7338 * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
7339 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
7340 * haifa-sched.c (advance_one_cycle): Invoke new hooks.
7342 * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
7343 function to facilitate debugging.
7344 (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
7345 (output_insn_has_dfa_reservation_p): New static function to output
7346 insn_has_dfa_reservation_p ().
7347 (write_automata): Use it.
7348 * genattr.c (main): Output declaration for
7349 insn_has_dfa_reservation_p ().
7351 2007-08-22 Christian Bruel <christian.bruel@st.com>
7352 Richard Guenther <rguenther@suse.de>
7354 * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
7355 * simplify_rtx (simplify_binary_operation_1): Likewise.
7357 2007-08-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
7359 PR rtl-optimization/32557
7360 * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
7361 of REGNO (mws->mw_reg).
7363 2007-08-22 Richard Guenther <rguenther@suse.de>
7366 * builtins.c (expand_builtin_int_roundingfn): Replace call
7367 argument wrapped with SAVE_EXPR directly.
7368 (expand_builtin_int_roundingfn_2): Likewise.
7370 2007-08-22 Richard Guenther <rguenther@suse.de>
7372 * tree-inline.c (inlinable_function_p): Restore disregarding
7373 inline limits for GNU extern inline functions.
7375 2007-08-22 Richard Guenther <rguenther@suse.de>
7378 * tree.c (host_integerp): Treat sizetype as signed as it is
7381 2007-08-21 Ian Lance Taylor <iant@google.com>
7383 PR tree-optimization/33134
7384 * tree-vrp.c (adjust_range_with_scev): Call
7385 set_value_range_to_value.
7387 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
7389 * value-prof.h (gimple_remove_histogram_value): Remove duplicate
7392 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
7394 * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
7397 2007-08-21 Nathan Froyd <froydnj@codesourcery.com>
7399 * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
7400 cases to set eight bytes at a time.
7401 (expand_block_move): Likewise.
7403 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7406 * dwarf2out.c (gen_decl_die): Don't call
7407 gen_tagged_type_instantiation_die if decl doesn't have tagged type.
7409 2007-08-21 Paul Brook <paul@codesourcery.com>
7410 Nathan Sidwell <nathan@codesourcery.com>
7411 Mark Mitchell <mark@codesourcery.com>
7412 Joseph Myers <joseph@codesourcery.com>
7414 * configure.ac: Add --with-pkgversion and --with-bugurl.
7415 * configure: Regenerate.
7416 * doc/install.texi: Document them.
7417 * version.c (version_string): Remove VERSUFFIX.
7418 (VERSUFFIX): Remove.
7419 (pkgversion_string): New.
7420 (bug_report_url): Do not hard-code initializer.
7421 * version.h (pkgversion_string): Declare.
7422 * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
7424 (version.o): Define PKGVERSION and BUGURL.
7425 (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
7426 (%.pod): Define BUGURL.
7427 * gcc.c (process_command, main): Use pkgversion_string.
7428 * toplev.c (compile_file, print_version): Likewise.
7429 * protoize.c (main): Likewise.
7430 * gcov.c (print_version): Likewise. Update copyright date.
7431 * gcov-dump.c (print_version): Likewise. Update copyright date.
7432 * mips-tdump.c (main): Likewise. Update copyright date.
7433 * mips-tfile.c (main): Likewise. Update copyright date.
7434 * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
7435 * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
7436 shorten description.
7437 * doc/gcc.texi: Include VERSION_PACKAGE in version description.
7438 * doc/gccint.texi: Likewise.
7439 * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
7440 Update copyright date.
7442 2007-08-21 Uros Bizjak <ubizjak@gmail.com>
7444 * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
7445 (ix86_expand_strlensi_unroll_1): Ditto.
7446 (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
7447 (ix86_expand_carry_flag_compare): Update comment.
7449 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7452 * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
7453 (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
7455 2007-08-21 Richard Guenther <rguenther@suse.de>
7457 * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
7459 2007-08-21 Richard Guenther <rguenther@suse.de>
7462 * fold-const.c (fold_binary): Remove index +p PTR folding.
7463 Fix types of POINTER_PLUS_EXPR generated by folding of
7466 2007-08-20 Chao-ying Fu <fu@mips.com>
7468 * c-common.h (enum rid): Add new enumeration values of RID_SAT,
7469 RID_FRACT, and RID_ACCUM. RID_SAT needs to be inserted before
7470 RID_ONEWAY, so that it can be checked in declspecs_add_type.
7471 (c_common_fixed_point_type_for_size): Declare.
7472 * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
7473 (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
7474 (c_token_starts_declspecs): Likewise.
7475 (c_parser_declspecs): Likewise.
7476 (c_parser_attributes): Likewise.
7477 * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
7478 (c_declspecs): Add saturating_p.
7479 * c-decl.c (build_null_declspecs): Initialize saturating_p.
7480 (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
7481 _Sat. Handle RID_SAT.
7482 Avoid using void, bool, char, int, float, double, _Decimal32,
7483 _Decimal64, _Decimal128, and complex with _Sat.
7484 Handle RID_FRACT and RID_ACCUM.
7485 Make sure _Sat is used with _Fract or _Accum.
7486 (finish_declspecs): Handle cts_fract and cts_accum.
7487 * c-common.c (fixed-value.h): New include.
7488 (constant_expression_warning): Handle FIXED_CST.
7489 (overflow_warning): Likewise.
7490 (warnings_for_convert_and_check): Likewise.
7491 (c_common_fixed_point_type_for_size): New.
7492 (c_common_type_for_mode): Handle fixed-point modes to
7493 return various saturating/non-saturating, signed/unsigned types.
7494 (c_common_signed_or_unsigned_type): Support fixed-point types.
7495 (shorten_compare): Check fixed-point zero.
7496 Handle FIXED_POINT_TYPE.
7497 (c_common_truthvalue_conversion): Handle FIXED_CST.
7498 Handle FIXED_POINT_TYPE.
7499 (c_common_nodes_and_builtins): Record builtin types for fixed-point
7501 (handle_mode_attribute): Handle fixed-point modes. Need to check
7502 if the signness of base type and fixed-point modes are consistent.
7503 (handle_vector_size_attribute): Handle fixed-point modes.
7504 (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
7505 (warn_for_div_by_zero): Check fixed-point zero.
7506 * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE. Build
7507 a common fixed-point type based on fbit, ibit, sign, and saturation.
7508 (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
7509 NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
7510 PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
7511 (convert_for_assignment): Support FIXED_POINT_TYPE.
7512 (digest_init): Handle FIXED_POINT_TYPE.
7513 (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
7514 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
7515 TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
7516 GE_EXPR, LT_EXPR, GT_EXPR.
7517 * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
7518 (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
7519 * target.h (gcc_target): Add fixed_point_supported_p.
7520 * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
7521 MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
7522 (default_fixed_point_supported_p): Define.
7523 * targhooks.h (default_fixed_point_supported_p): Declare.
7524 * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
7525 * doc/install.texi (Configuration): Add --enable-fixed-point.
7526 * configure.ac (--enable-fixed-point): New to enable fixed-point
7527 arithmetic extension to C. For mips targets, we enable it by default.
7528 * configure, config.in: Regenerate.
7530 2007-08-20 Pawel Sikora <pluto@pld-linux.org>
7532 * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
7534 2007-08-20 David Edelsohn <edelsohn@gnu.org>
7536 * dwarf2out.c (text_section_used): Move declaration outside ifdef
7537 DWARF2_DEBUGGING_INFO.
7538 (cold_text_section_used): Same.
7539 (cold_text_section): Same.
7541 2007-08-20 Richard Guenther <rguenther@suse.de>
7543 * c-typeck.c (convert_for_assignment): Use the type of
7544 the member for the initialization.
7546 2007-08-20 Richard Guenther <rguenther@suse.de>
7548 * c-objc-common.c (c_disregard_inline_limits): Remove.
7549 * c-objc-common.h (c_disregard_inline_limits): Likewise.
7550 * cgraphunit.c (cgraph_process_new_functions): Call
7551 disregard_inline_limits_p.
7552 (cgraph_preserve_function_body_p): Likewise.
7553 * ipa-inline.c (compute_inline_parameters): Likewise.
7554 * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
7556 (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
7557 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
7558 disregard_inline_limits langhook.
7559 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7561 * langhooks.h (lang_hooks_for_tree_inlining): Remove
7562 disregard_inline_limits langhook.
7563 * tree-inline.c (disregard_inline_limits_p): New function.
7564 * tree-inline.h (disregard_inline_limits_p): Declare.
7566 2007-08-20 Richard Guenther <rguenther@suse.de>
7568 * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
7569 (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
7570 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
7571 auto_var_in_fn_p langhook.
7572 * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
7574 * tree.c (auto_var_in_fn_p): ... here.
7575 (find_var_from_fn): Call auto_var_in_fn_p directly.
7576 * langhooks.h (lang_hooks_for_tree_inlining): Remove
7577 auto_var_in_fn_p langhook.
7578 * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
7579 (copy_body_r): Likewise.
7580 (self_inlining_addr_expr): Likewise.
7581 * tree.h (auto_var_in_fn_p): Declare.
7583 2007-08-20 Richard Guenther <rguenther@suse.de>
7585 * tree.c (WALK_SUBTREE): Call walk_tree_1.
7586 (walk_type_fields): Take lh parameter.
7587 (walk_tree): Rename to ...
7588 (walk_tree_1): ... this. Do not call the walk_subtrees
7589 langhook but the now passed callback. Pass lh on recursion.
7590 (walk_tree_without_duplicates): Rename to ...
7591 (walk_tree_without_duplicates_1): ... this. Take lh parameter
7592 and call walk_tree_1.
7593 * tree.h (walk_tree_lh): New typedef.
7594 (walk_tree_1): Declare.
7595 (walk_tree_without_duplicates_1): Likewise.
7596 (walk_tree): New define to walk_tree_1 with NULL lh parameter.
7597 (walk_tree_without_duplicates): New define to
7598 walk_tree_without_duplicates_1 with NULL lh parameter.
7599 * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
7600 * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
7602 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
7603 (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
7604 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
7607 2007-08-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7610 * tree-inline.c (optimize_inline_calls): Move the cgraph checking
7611 code in front of the compacting of basic blocks.
7612 Move the folding of statements inbetween the cgraph checking
7613 and compacting of basic blocks.
7615 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
7616 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7619 * config/alpha/alpha.c (va_list_skip_additions): Check for
7620 POINTER_PLUS_EXPR in addition to PLUS_EXPR.
7621 (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
7622 PLUS_EXPR when checking ap.__base.
7623 (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
7624 when doing addition on pointer types. Use size_int instead of
7626 (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
7627 ptr_type in the second operand.
7629 2007-08-19 Andrew Pinski <pinskia@gmail.com>
7632 * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
7634 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
7637 * cfgexpand.c (expand_one_register_var): Mark pointer
7638 DECL_ARTIFICIAL as REG_POINTER also.
7639 * stmt.c (expand_decl): Likewise.
7641 2007-08-19 Daniel Berlin <dberlin@dberlin.org>
7648 * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
7649 * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
7650 on_worklist argument and avoid adding things to worklist multiple
7652 (add_to_worklist): Ditto.
7653 (mark_aliases_call_clobbered): Mark entire structure clobbered if
7654 single SFT is clobbered.
7655 (set_initial_properties): Ditto.
7656 (compute_call_clobbered): Update for changes to function
7658 (create_overlap_variables_for): Always create SFT for offset 0.
7659 (create_structure_vars): Handle PHI's, since we are in SSA form at
7661 * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
7662 * tree-ssa-operands.c (access_can_touch_variable): Don't handle
7664 (add_vars_for_offset): Figure out aliases from access + points-to.
7665 (add_virtual_operand): Use add_vars-for_offset.
7666 (get_tmr_operands): Update for NMT changes, rewrite to be correct.
7667 (add_call_clobber_ops): Remove makes_clobbering_call set.
7668 (get_expr_operands): Always pass through the INDIRECT_REF
7670 * tree-ssa-structalias.c (struct constraint_graph): Remove
7672 Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
7673 address_taken, pt_used, number_incoming.
7674 (FIRST_ADDR_NODE): Removed.
7675 (merge_graph_nodes): Remove broken code for the moment.
7676 (init_graph): New function.
7677 (build_pred_graph): Remove code to init_graph.
7678 Add location equivalence support.
7679 (struct scc_info): Rename roots to deleted.
7681 (init_scc_info): Ditto
7682 (init_topo_info): Use graph->size.
7683 (compute_topo_order): Ditto.
7684 (do_da_constraint): Removed.
7685 (do_sd_constraint): Remove calls to find().
7686 set_union_with_increment should always get 0 as last arg here.
7687 (do_complex_constraint): Replace do_da_constraint with assert.
7689 (struct equiv_class_label): New.
7690 (pointer_equiv_class_table): Ditto.
7691 (location_equiv_class_table): Ditto.
7692 (equiv_class_label_hash): Ditto.
7693 (equiv_class_label_eq): Ditto
7694 (equiv_class_lookup): Ditto.
7695 (equiv_class_ladd): Ditto.
7696 (pointer_equiv_class): Ditto.
7697 (location_equiv_class): Ditto.
7698 (condense_visit): Rename and rewrite from label_visit to do only
7699 SCC related stuff for HU.
7700 (label_visit): Do HU work for HU.
7701 (perform_var_substitution): Update to do HU and location
7703 (free_var_substitution_info): Update to free HU and location
7704 equivalence structures. */
7705 (find_equivalent_node): Update for pointer but not location
7707 (unite_pointer_equivalences): New function.
7708 (move_complex_constraints): Rewrite to only do moving.
7709 (rewrite_constraints): Split out of move_complex_constraints.
7710 (solve_graph): Use graph->size.
7711 (process_constraint_1): Add from_call argument, use it.
7712 Split *a = &b into two constraints.
7713 (process_constraint): Use new process_constraint_1.
7714 (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
7715 (get_constraint_for): Handle non-pointer integers properly.
7716 Remove code that used to handle structures.
7717 (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
7718 with unknown addends.
7719 (handle_rhs_call): New function.
7720 (find_func_aliases): Use handle_rhs_call.
7721 (set_uids_in_ptset): Add an assert.
7722 (set_used_smts): Fix bug in not considering unified vars.
7723 (compute_tbaa_pruning): Stop initing useless iteration_obstack.
7724 (compute_points_to_sets): Update for other function changes.
7725 (delete_points_to_sets): Ditto.
7726 (ipa_pta_execute): Ditto.
7727 (pass_ipa_pta): We need to update SSA after ipa_pta.
7729 2007-08-19 Jan Hubicka <jh@suse.cz>
7731 * i386.md: Replace "rim" and "mri" constraints by "g".
7733 2007-08-19 Joseph Myers <joseph@codesourcery.com>
7735 * dwarf2out.c (text_section_used, cold_text_section_used,
7736 cold_text_section, dwarf2out_note_section_used): New.
7737 (dwarf2out_init): Initialize cold_text_section.
7738 (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
7739 dwarf2out_note_section_used.
7740 (size_of_aranges): Only count entry for text section if it was
7741 used. Count entry for cold text section if it was used.
7742 (output_aranges): Only output entries for text section and cold
7743 text section if they were used.
7745 2007-08-19 Andrew Pinski <pinskia@gmail.com>
7747 * tree-pretty-print.c (debug_generic_expr): Add a comment about
7749 (debug_generic_stmt): Likewise.
7750 (debug_tree_chain): Likewise.
7752 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
7754 * tree-data-refs.c (split_constant_offset): Expose.
7755 * tree-data-refs.h (split_constant_offset): Add declaration.
7757 * tree-vectorizer.h (dr_alignment_support): Renamed
7758 dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
7759 Added a new value dr_explicit_realign.
7760 (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
7761 dr_offset, dr_step, and dr_aligned_to, along with new access
7762 functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
7763 STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
7764 STMT_VINFO_DR_ALIGNED_TO.
7766 * tree-vectorizer.c (vect_supportable_dr_alignment): Add
7768 In case of outer-loop vectorization with non-fixed misalignment - use
7769 the dr_explicit_realign scheme instead of the optimized realignment
7771 (new_stmt_vec_info): Initialize new fields.
7773 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
7774 'nested_in_vect_loop' case. Change verbosity level.
7775 (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
7776 Don't fail on zero step in the outer-loop for loads.
7777 (vect_analyze_data_refs): Call split_constant_offset to calculate
7778 base, offset and init relative to the outer-loop.
7780 * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
7781 BSI function argument with a new function argument - at_loop.
7782 Simplify the condition that determines STEP. Takes additional argument
7783 INV_P. Support outer-loop vectorization (handle the
7784 nested_in_vect_loop case), including zero step in the outer-loop. Call
7785 vect_create_addr_base_for_vector_ref with additional argument.
7786 (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
7787 Updated function documentation. Handle the 'nested_in_vect_loop' case.
7788 Fixed and simplified calculation of step.
7789 (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
7790 of bsi, and with additional argument. Call bump_vector_ptr with
7791 additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
7792 (vect_setup_realignment): Takes additional arguments INIT_ADDR and
7793 DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
7794 when the realignment setup needs to take place inside the loop.
7795 Support the dr_explicit_realign scheme. Allow generating the optimized
7796 realignment scheme for outer-loop vectorization. Added documentation.
7797 (vectorizable_load): Support the dr_explicit_realign scheme. Handle
7798 the 'nested_in_vect_loop' case, including loads that are invariant in
7799 the outer-loop and the realignment schemes. Handle the case when the
7800 realignment setup needs to take place inside the loop. Call
7801 vect_setup_realignment with additional arguments. Call
7802 vect_create_data_ref_ptr with additional argument and with loop instead
7803 of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
7804 (vect_gen_niters_for_prolog_loop): Call
7805 vect_create_addr_base_for_vector_ref with additional arguments.
7806 (vect_create_cond_for_align_checks): Likewise.
7807 (bump_vector_ptr): Updated to support the new dr_explicit_realign
7808 scheme: takes additional argument bump; argument ptr_incr is now
7809 optional; updated documentation.
7810 (vect_init_vector): Takes additional argument (bsi). Use it, if
7811 available, to insert the vector initialization.
7812 (get_initial_def_for_induction): Pass additional argument in call to
7814 (vect_get_vec_def_for_operand): Likewise.
7815 (vect_setup_realignment): Likewise.
7816 (vectorizable_load): Likewise.
7818 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
7820 * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
7821 as argument instead of struct loop.
7822 (nested_in_vect_loop_p): New function.
7823 (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
7825 (is_loop_header_bb_p): New. Used to differentiate loop-header phis
7826 from other phis in the loop.
7827 (destroy_loop_vec_info): Add additional argument to declaration.
7829 * tree-vectorizer.c (supportable_widening_operation): Also check if
7830 nested_in_vect_loop_p (don't allow changing the order in this case).
7831 (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
7832 of struct loop. Call nested_in_vect_loop_p and don't require
7833 flag_unsafe_math_optimizations if it returns true.
7834 (new_stmt_vec_info): When setting def_type for phis differentiate
7835 loop-header phis from other phis.
7836 (bb_in_loop_p): New function.
7837 (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
7838 just update their loop_vinfo. Order of BB traversal now matters -
7839 call dfs_enumerate_from with bb_in_loop_p.
7840 (destroy_loop_vec_info): Takes additional argument to control whether
7841 stmt_vinfo of the loop stmts should be destroyed as well.
7842 (vect_is_simple_reduction): Allow the "non-reduction" use of a
7843 reduction stmt to be defines by a non loop-header phi.
7844 (vectorize_loops): Call destroy_loop_vec_info with additional argument.
7846 * tree-vect-transform.c (vectorizable_reduction): Call
7847 nested_in_vect_loop_p. Check for multitypes in the inner-loop.
7848 (vectorizable_call): Likewise.
7849 (vectorizable_conversion): Likewise.
7850 (vectorizable_operation): Likewise.
7851 (vectorizable_type_promotion): Likewise.
7852 (vectorizable_type_demotion): Likewise.
7853 (vectorizable_store): Likewise.
7854 (vectorizable_live_operation): Likewise.
7855 (vectorizable_reduction): Likewise. Also pass loop_info to
7856 vect_is_simple_reduction instead of loop.
7857 (vect_init_vector): Call nested_in_vect_loop_p.
7858 (get_initial_def_for_reduction): Likewise.
7859 (vect_create_epilog_for_reduction): Likewise.
7860 (vect_init_vector): Check which loop to work with, in case there's an
7862 (get_initial_def_for_inducion): Extend to handle outer-loop
7863 vectorization. Fix indentation.
7864 (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
7865 In the case vect_induction_def get the vector def from the induction
7866 phi node, instead of calling get_initial_def_for_inducion.
7867 (get_initial_def_for_reduction): Extend to handle outer-loop
7869 (vect_create_epilog_for_reduction): Extend to handle outer-loop
7871 (vect_transform_loop): Change assert to just skip this case. Add a
7873 (vect_finish_stmt_generation): Add a couple asserts.
7875 (vect_estimate_min_profitable_iters): Multiply
7876 cost of inner-loop stmts (in outer-loop vectorization) by estimated
7878 (vect_model_reduction_cost): Don't add reduction epilogue cost in case
7879 this is an inner-loop reduction in outer-loop vectorization.
7881 * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
7882 Same code as what used to be vect_analyze_scalar_cycles, only with
7883 additional argument loop, and loop_info passed to
7884 vect_is_simple_reduction instead of loop.
7885 (vect_analyze_scalar_cycles): Code factored out into
7886 vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
7887 Updated documentation.
7888 (analyze_operations): Check for inner-loop loop-closed exit-phis during
7889 outer-loop vectorization that are live or not used in the outerloop,
7890 cause this requires special handling.
7891 (vect_enhance_data_refs_alignment): Don't consider versioning for
7893 (vect_analyze_data_refs): Check that there are no datarefs in the
7895 (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
7896 and vect_used_in_outer_by_reduction cases.
7897 (process_use): Also consider the case of outer-loop stmt defining an
7898 inner-loop stmt and vice versa.
7899 (vect_analyze_loop_1): New function.
7900 (vect_analyze_loop_form): Extend, to allow a restricted form of nested
7901 loops. Call vect_analyze_loop_1.
7902 (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
7903 been vectorized. Call destroy_loop_vec_info with additional argument.
7905 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
7906 in the inner-loop when doing outer-loop vectorization. Add
7907 documentation and printout.
7908 (vect_recog_dot_prod_pattern): Likewise. Also add check for
7909 GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
7911 2007-08-18 Andrew Pinski <pinskia@gmail.com>
7913 * tree-affine.h (print_aff): New prototype.
7914 (debug_aff): Likewise.
7915 * tree-affine.c (print_aff): New function.
7916 (debug_aff): Likewise.
7918 2007-08-18 Paul Brook <paul@codesourcery.com>
7919 Joseph Myers <joseph@codesourcery.com>
7921 * common.opt (-fdebug-prefix-map=): New option.
7922 * opts.c: Include debug.h.
7923 (common_handle_option): Handle -fdebug-prefix-map.
7924 * final.c: Include ggc.h.
7925 (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
7926 remap_debug_filename): New.
7927 * Makefile.in (final.o, opts.o): Update dependencies.
7928 * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
7929 * configure.ac: Check for assembler --debug-prefix-map support.
7930 * configure, config.in: Regenerate.
7931 * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
7932 (ASM_DEBUG_SPEC): Include ASM_MAP.
7933 * doc/install.texi (--with-debug-prefix-map): Document.
7934 * doc/invoke.texi (-fdebug-prefix-map): Document.
7935 * dbxout.c (dbxout_init, dbxout_start_source_file,
7936 dbxout_source_file): Call remap_debug_filename.
7937 * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
7938 dwarf2out_start_source_file, dwarf2out_finish): Call
7939 remap_debug_filename.
7940 (file_table_relative_p): Do not check d->emitted_number.
7941 * toplev.c (output_file_directive): Call remap_debug_filename.
7942 * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
7943 * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
7945 2007-08-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7947 * loop-invariant.c (find_invariants_to_move): Add missing macro
7950 2007-08-17 Tom Tromey <tromey@redhat.com>
7952 * tree.h (struct tree_label_decl): Removed old "java" fields.
7954 2007-08-17 Richard Sandiford <richard@codesourcery.com>
7955 Nigel Stephens <nigel@mips.com>
7957 * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
7958 Treat -mno-data-in-code and -mcode-xonly as aliases for
7959 -mcode-readable=no and -mcode-readable=pcrel respectively.
7960 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
7961 (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
7962 (MULTILIB_DIRNAMES): Update accordingly.
7964 2007-08-17 H.J. Lu <hongjiu.lu@intel.com>
7966 * Makefile.in (version.o): Depend on $(REVISION) only if
7967 REVISION_s is defined.
7969 2007-08-17 Sa Liu <saliu@de.ibm.com>
7970 Ulrich Weigand <uweigand@de.ibm.com>
7973 * tree.c (reconstruct_complex_type): For a pointer to a vector,
7974 use build_qualified_type to retain qualifiers of the base type.
7976 2007-08-17 Chen Liqin <liqin@sunnorth.com.cn>
7978 * config/score/score.md : Update pattern tablejump.
7979 * config/score/score.c : Update score_initialize_trampoline
7981 * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
7982 (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
7983 * doc/contrib.texi: Add my entry.
7985 2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
7987 * Makefile.in (REVISION): New.
7990 (version.o): Also depend on $(REVISION). Add
7991 -DREVISION=$(REVISION_s).
7993 * version.c (version_string): Add REVISION.
7995 2007-08-16 Seongbae Park <seongbae.park@gmail.com>
7997 * tree-eh.c (lower_try_finally_onedest): Reset the locus
7998 of GOTO that's relocated to a different block.
8000 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8002 * c-common.c (const_strip_array_types): New.
8003 * c-common.h (lang_missing_noreturn_ok_p): Delete.
8004 (const_strip_array_types): New.
8005 * c-objc-common.c (c_disregard_inline_limits,
8006 c_warn_unused_global_decl): Constify.
8007 * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
8008 c_vla_type_p, c_incomplete_type_error): Likewise.
8009 * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
8010 * hooks.c (hook_bool_const_tree_false): New.
8011 * hooks.h (hook_bool_const_tree_false): Likewise.
8012 * langhooks-def.h (lhd_warn_unused_global_decl,
8013 lhd_incomplete_type_error, lhd_expr_size,
8014 lhd_tree_inlining_disregard_inline_limits,
8015 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
8016 LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
8017 * langhooks.c (lhd_warn_unused_global_decl,
8018 lhd_incomplete_type_error,
8019 lhd_tree_inlining_disregard_inline_limits,
8020 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
8021 lhd_expr_size): Likewise.
8022 * langhooks.h (lang_hooks_for_tree_inlining,
8023 lang_hooks_for_tree_dump, lang_hooks_for_types,
8024 lang_hooks_for_decls, lang_hooks): Likewise.
8025 * pointer-set.c (pointer_set_t, pointer_set_create,
8026 pointer_set_contains, insert_aux, pointer_set_insert,
8027 pointer_set_traverse, pointer_map_t, pointer_map_create,
8028 pointer_map_contains, pointer_map_insert, pointer_map_traverse):
8030 * pointer-set.h (pointer_set_contains, pointer_set_insert,
8031 pointer_set_traverse, pointer_map_contains, pointer_map_insert,
8032 pointer_map_traverse): Likewise.
8033 * predict.c (assert_is_empty): Likewise.
8034 * tree-affine.c (free_name_expansion): Likewise.
8035 * tree-cfg.c (edge_to_cases_cleanup): Likewise.
8036 * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
8037 * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
8039 2007-08-16 Victor Kaplansky <victork@il.ibm.com>
8041 * tree-vectorizer.c (new_loop_vec_info): Initialize new
8043 (destroy_loop_vec_info): Add call to VEC_free.
8044 * tree-vectorizer.h (may_alias_ddrs): Define.
8045 (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
8046 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
8047 Change reporting to dump.
8048 (vect_is_duplicate_ddr): New.
8049 (vect_mark_for_runtime_alias_test): New.
8050 (vect_analyze_data_ref_dependences) Add call to
8051 vect_mark_for_runtime_alias_test.
8052 (vect_enhance_data_refs_alignment): Define local variable
8053 vect_versioning_for_alias_required, don't perform
8054 peeling for alignment if versioning for alias is
8056 (vect_enhance_data_refs_alignment): Use
8057 PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
8058 PARAM_VECT_MAX_VERSION_CHECKS.
8059 * tree-vect-transform.c
8060 (vect_create_cond_for_alias_checks): New.
8061 (vect_transform_loop): Add call to
8062 vect_create_cond_for_alias_checks.
8063 (vect_vfa_segment_size): New.
8064 * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
8066 (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
8067 * gcc/doc/invoke.texi
8068 (vect-max-version-for-alignment-checks): Document.
8069 (vect-max-version-for-alias-checks): Document.
8070 (vect-max-version-checks): Remove.
8072 2007-08-16 Uros Bizjak <ubizjak@gmail.com>
8074 * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
8075 the same line as the instruction for all asm dialects.
8076 (*rep_movsi): Ditto.
8077 (*rep_movsi_rex64): Ditto.
8078 (*rep_movqi): Ditto.
8079 (*rep_movqi_rex64): Ditto.
8080 (*rep_stosdi_rex64): Ditto.
8081 (*rep_stossi): Ditto.
8082 (*rep_stossi_rex64): Ditto.
8083 (*rep_stosqi): Ditto.
8084 (*rep_stosqi_rex64): Ditto.
8085 (*cmpstrnqi_nz_1): Ditto.
8086 (*cmpstrnqi_nz_rex_1): Ditto.
8087 (*cmpstrnqi_1): Ditto.
8088 (*cmpstrnqi_rex_1): Ditto.
8089 (*strlenqi_1): Ditto.
8090 (*strlenqi_rex_1): Ditto.
8091 * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
8092 prefix on the same line as the instruction for all asm dialects.
8093 (sync_double_compare_and_swap<mode>): Ditto.
8094 (*sync_double_compare_and_swapdi_pic): Ditto.
8095 (*sync_compare_and_swap_cc<mode>): Ditto.
8096 (sync_double_compare_and_swap_cc<mode>): Ditto.
8097 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
8098 (sync_old_add<mode>): Ditto.
8099 (sync_add<mode>): Ditto.
8100 (sync_sub<mode>): Ditto.
8101 (sync_ior<mode>): Ditto.
8102 (sync_and<mode>): Ditto.
8103 (sync_xor<mode>): Ditto.
8105 2007-08-16 Richard Sandiford <richard@codesourcery.com>
8108 * reload.c (find_reloads): Check that the memory returned by
8109 find_reloads_toplev was not the result of forcing a constant
8111 (find_reloads_toplev): Always use simplify_gen_subreg to get
8112 the subreg of a constant. If the result is also a constant,
8113 but not a legitimate one, force it into the constant pool
8114 and reload its address.
8116 2007-08-15 David Edelsohn <edelsohn@gnu.org>
8118 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
8121 2007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
8123 * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
8124 directive for the current vector ABI.
8126 2007-08-15 Steve Ellcey <sje@cup.hp.com>
8129 * caller-save.c (reg_save_code): Set invalide status on restore code.
8131 2007-08-15 Diego Novillo <dnovillo@google.com>
8133 * tree-ssa-alias.c (compute_memory_partitions): Use
8134 alias_bitmap_obstack to allocate bitmaps.
8135 (reset_alias_info): Factor out of init_alias_info.
8136 Mark all name tags not associated to an SSA name for renaming.
8137 (init_alias_info): Call it.
8138 (create_name_tags): Tidy. Add comments.
8139 (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
8141 2007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8143 * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
8144 scheduler dependencies.
8146 2007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
8148 * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
8150 (*iorsi_1_zext): Likewise.
8151 (*iorsi_1_zext_imm): Likewise.
8152 * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
8153 with "rm"/"xm" constraint.
8154 (sse2_vmsqrtv2df2): Likewise.
8156 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8159 * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
8162 2007-08-14 Daniel Berlin <dberlin@dberlin.org>
8164 * tree-pass.h (PROP_pta): Removed.
8165 (TODO_rebuild_alias): New.
8166 (pass_may_alias): Removed.
8167 * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
8168 aliasing if we changed something.
8169 * tree-ssa-alias.c (compute_may_aliases): Make non-static. Update
8171 (pass_may_alias): Removed.
8172 (create_structure_vars): Return TODO_rebuild_alias.
8173 * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
8174 * tree-sra.c (tree_sra): Only rebuild aliasing if something
8176 (tree_sra_early): We never affect aliasing right now.
8177 * tree-flow.h (compute_may_aliases): New prototype.
8178 * passes.c: Remove pass_may_alias from the passes.
8179 (execute_function_todo): Support TODO_rebuild_alias.
8181 2007-08-14 Kai Tietz <kai.tietz@onevision.com>
8183 * i386.c: (legitimize_address): Move dllimported variable check
8184 infront of legitimizing pic address of CONST symbols.
8186 2007-08-14 Steve Ellcey <sje@cup.hp.com>
8188 PR tree-optimization/32941
8189 * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
8190 (goto_queue_cmp): Remove.
8191 (find_goto_replacement): Change search method.
8192 (maybe_record_in_goto_queue): Add assert.
8193 (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
8194 * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
8196 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8198 * alias.c (component_uses_parent_alias_set): Constify.
8199 * alias.h (component_uses_parent_alias_set): Likewise.
8200 * cfgrtl.c (print_rtl_with_bb): Likewise.
8201 * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
8202 mpz_get_double_int): Likewise.
8203 * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
8204 mpz_get_double_int): Likewise.
8205 * expr.c (is_aligning_offset, undefined_operand_subword_p,
8206 mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
8208 * expr.h (safe_from_p): Likewise.
8209 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
8211 * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
8212 zero_sized_type, goa_lhs_expr_p): Likewise.
8213 * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
8214 * rtl.h (print_rtl_with_bb): Likewise.
8215 * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
8216 * tree-cfg.c (const_first_stmt, const_last_stmt): New.
8217 * tree-flow-inline.h (bb_stmt_list): Constify.
8218 (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
8220 * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
8221 const_first_stmt, const_last_stmt): New.
8222 (block_may_fallthru, empty_block_p): Constify.
8223 * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
8224 EXPR_ONLY_BODY): New.
8225 (expr_first, expr_last, expr_only): Use macro for body.
8226 (const_expr_first, const_expr_last, const_expr_only): New.
8227 * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
8228 ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
8229 ctsi_prev, ctsi_stmt): New.
8230 * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
8231 * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
8232 * tree-ssa-loop-niter.c (loop_only_exit_p,
8233 derive_constant_upper_bound): Likewise.
8234 * tree-ssa-phiopt.c (empty_block_p): Likewise.
8235 * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
8236 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
8237 * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
8238 * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
8239 * tree.c (get_type_static_bounds): Likewise.
8240 * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
8241 (get_type_static_bounds): Constify.
8243 2007-08-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
8246 * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
8247 * config/i386/i386.md (plusminus)(addsub)(SWI): New.
8248 (*<addsub><mode>3_cc_overflow): New.
8249 (*add<mode>3_cconly_overflow): New.
8250 (*sub<mode>3_cconly_overflow): New.
8251 (*<addsub>si3_zext_cc_overflow): New.
8252 * config/i386/predicates.md (fcmov_comparison_operator): Accept
8253 CCCmode for LTU, GTU, LEU and GEU.
8254 (ix86_comparison_operator): Likewise.
8255 (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
8256 * config/i386/i386.c (put_condition_code): Support CCCmode.
8257 (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
8258 or MINUS expressions.
8260 2007-08-14 Andrew Pinski <pinskia@gmail.com>
8263 * c-typeck.c (build_binary_op): Disallow vector float types with
8264 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
8266 2007-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
8268 * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
8269 (DEP_KIND): Rename to DEP_TYPE. Update all uses.
8270 (dep_def): New typedef.
8271 (init_dep_1, sd_debug_dep): Declare functions.
8272 (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
8273 (debug_dep_links): Remove.
8274 (struct _deps_list): New field 'n_links'.
8275 (DEPS_LIST_N_LINKS): New macro.
8276 (FOR_EACH_DEP_LINK): Remove.
8277 (create_deps_list, free_deps_list, delete_deps_list): Remove
8279 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
8280 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
8281 (copy_deps_list_change_con, move_dep_link): Ditto.
8282 (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
8283 and 'spec_back_deps'. New field 'resolved_forw_deps'. Remove field
8285 (INSN_BACK_DEPS): Remove.
8286 (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
8288 (INSN_DEP_COUNT): Remove.
8289 (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP. Fix comments.
8290 (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
8291 Declare global variables.
8292 (deps_pools_are_empty_p, sched_free_deps): Declare functions.
8293 (add_forw_dep, compute_forward_dependences): Remove declarations.
8294 (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
8295 (add_back_forw_dep, delete_back_forw_dep): Ditto.
8296 (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
8298 (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
8300 (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
8301 (sd_list_types_def): New typedef.
8302 (sd_next_list): Declare function.
8303 (struct _sd_iterator): New type.
8304 (sd_iterator_def): New typedef.
8305 (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
8307 (FOR_EACH_DEP): New cycle wrapper.
8308 (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
8310 (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
8311 (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
8314 * sched-deps.c (init_dep_1): Make global.
8315 (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
8317 (dump_dep): New static function.
8318 (dump_dep_flags): New static variable.
8319 (sd_debug_dep): New function.
8320 (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
8322 (move_dep_link): Use remove_from_deps_list (), instead of
8324 (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
8325 (dep_link_is_detached_p): New static function.
8326 (deps_obstack, dl_obstack, dn_obstack): Remove. Use dn_pool, dl_pool
8328 (dn_pool, dl_pool): New alloc_pools.
8329 (dn_pool_diff, dl_pool_diff): New static variables.
8330 (create_dep_node, delete_dep_node): New static function.
8331 (create_deps_list): Make it static. Use alloc_pool 'dl_pool'.
8332 (deps_list_empty_p): Make it static. Use 'n_links' field.
8333 (deps_pools_are_empty_p): New static function.
8334 (alloc_deps_list, delete_deps_list): Remove.
8335 (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
8336 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
8337 (copy_deps_list_change_con): Remove. Use sd_copy_back_deps () instead.
8338 (forward_dependency_cache): Remove.
8339 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
8340 'back' from the names. Change signature to use dep_t instead of
8342 (add_back_dep): Ditto. Make global.
8343 (check_dep_status): Rename to check_dep ().
8344 (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
8346 (sd_finish_insn): Ditto.
8347 (sd_find_dep_between_no_cache): New static function.
8348 (sd_find_dep_between): New function.
8349 (ask_dependency_caches, set_dependency_caches): New static functions.
8350 (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
8351 (add_or_update_dep_1): Separate pieces of functionality into
8352 ask_dependency_caches (), update_dependency_caches (),
8353 change_spec_dep_to_hard (), update_dep ().
8354 (get_back_and_forw_lists): New static function.
8355 (sd_add_dep): Separate setting of dependency caches into
8356 set_dependency_caches ().
8357 (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
8359 (sd_delete_dep): Ditto.
8360 (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
8361 (dump_lists): New static function.
8362 (sd_debug_lists): New debug function.
8363 (delete_all_dependences, fixup_sched_groups): Update to use
8364 sd_* infrastructure.
8365 (sched_analyze_2): Create data-speculative dependency only if
8366 data-speculation is enabled.
8367 (sched_analyze_insn): If insn cannot be speculative, make all its
8368 dependencies non-speculative.
8369 (sched_analyze): Use sd_init_insn ().
8370 (add_forw_dep, compute_forward_dependencies): Remove.
8371 (delete_dep_nodes_in_back_deps): New static function.
8372 (sched_free_deps): New function.
8373 (init_dependency_caches): Init alloc_pools.
8374 (extend_depedency_caches): Update after removing of
8375 forward_dependency_cache.
8376 (free_dependency_caches): Ditto. Free alloc_pools.
8377 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
8378 (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
8380 (add_back_forw_dep, delete_back_forw_dep): Ditto.
8381 (add_dependence): Use init_dep ().
8382 (get_dep_weak_1): New static function.
8383 (get_dep_weak): Move logic to get_dep_weak_1 ().
8384 (dump_ds): New static function moved from haifa-sched.c:
8385 debug_spec_status ().
8386 (debug_ds): New debug function.
8387 (check_dep_status): Rename to check_dep (). Update to check whole
8390 * haifa-sched.c (spec_info): Make global.
8391 (added_recovery_block_p): Rename to
8392 'haifa_recovery_block_was_added_during_current_schedule_block_p'.
8393 (haifa_recovery_block_was_added_during_scheduling_p): New variable.
8394 (dep_cost, priority, rank_for_schedule, schedule_insn): Update
8395 to use new interfaces.
8396 (ok_for_early_queue_removal): Ditto.
8397 (schedule_block): Initialize logical uids of insns emitted by the
8399 (sched_init): Initialize new variable.
8400 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
8402 (extend_global): Initialize insn data.
8403 (init_h_i_d): Remove code that is now handled in sd_init_insn ().
8404 (process_insn_forw_deps_be_in_spec): Change signature. Update to use
8406 (add_to_speculative_block): Update to use new interfaces.
8407 (create_recovery_block): Set new variables.
8408 (create_check_block_twin, fix_recovery_deps): Update to use new
8410 (sched_insn_is_legitimate_for_speculation_p): New function.
8411 (speculate_insn): Move checking logic to
8412 sched_insn_is_legitimate_for_speculation_p ().
8413 (sched_remove_insn): Finalize sched-deps information of instruction.
8414 (clear_priorities, add_jump_dependencies): Update to use new
8416 (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
8418 * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
8419 to use new interfaces.
8420 (is_conditionally_protected, is_pfree, is_prisky) Ditto.
8421 (new_ready): Try to use control speculation only if it is available.
8422 (add_branch_dependences): Update to use new interfaces.
8423 (compute_block_backward_dependences): Rename to
8424 compute_block_dependences (). Call
8425 targetm.sched.dependencies_evaluation_hook ().
8426 (free_block_dependencies): New static function.
8427 (debug_dependencies): Update to use new interfaces.
8428 (schedule_region): Remove separate computation of forward dependencies.
8429 Move call of targetm.sched.dependencies_evaluation_hook () to
8430 compute_block_dependences (). Free dependencies at the end of
8431 scheduling the region.
8433 * sched-ebb.c (earliest_block_with_similiar_load): Update to use
8435 (add_deps_for_risky_insns): Ditto.
8436 (schedule_ebb): Remove separate computation of forward dependencies.
8437 Free dependencies at the end of scheduling the ebb.
8439 * ddg.c (create_ddg_dependence): Update to use new interfaces.
8440 (build_intra_loop_deps): Ditto. Remove separate computation of
8441 forward dependencies. Free sched-deps dependencies.
8443 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
8444 to use new interfaces.
8445 (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
8447 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
8449 (is_costly_group): Ditto.
8451 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8453 * alias.c (rtx_equal_for_memref_p): Constify.
8454 * basic-block.h (const_edge, const_basic_block): New.
8455 (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
8456 single_pred_p, single_succ_edge, single_pred_edge, single_succ,
8457 single_pred, maybe_hot_bb_p, probably_cold_bb_p,
8458 probably_never_executed_bb_p, edge_probability_reliable_p,
8459 br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
8460 inside_basic_block_p, control_flow_insn_p, dominated_by_p):
8462 * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
8463 * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
8465 * cfganal.c (flow_active_insn_p, forwarder_block_p,
8466 flow_nodes_print, dfs_enumerate_from): Likewise.
8467 * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
8468 control_flow_insn_p, count_basic_blocks): Likewise.
8469 * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
8470 get_loop_body_with_size, loop_exit_edge_p): Likewise.
8471 * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
8472 average_num_loop_insns, loop_exit_edge_p,
8473 just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
8474 * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
8475 average_num_loop_insns, seq_cost): Likewise.
8476 * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
8477 * dominance.c (dominated_by_p): Likewise.
8478 * emit-rtl.c (validate_subreg): Likewise.
8479 * except.c (can_throw_internal, can_throw_external): Likewise.
8480 * except.h (can_throw_internal, can_throw_external): Likewise.
8481 * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
8482 oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
8483 compute_transp, load_killed_in_block_p, reg_killed_on_edge,
8484 simple_mem, store_ops_ok, load_kills_store, find_loads,
8485 store_killed_in_insn, store_killed_after, store_killed_before,
8486 gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
8488 * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
8489 noce_mem_write_may_trap_or_fault_p): Likewise.
8490 * pointer-set.c (pointer_set_contains, pointer_map_contains):
8492 * pointer-set.h (pointer_set_contains, pointer_map_contains):
8494 * predict.c (can_predict_insn_p, maybe_hot_bb_p,
8495 probably_cold_bb_p, probably_never_executed_bb_p,
8496 edge_probability_reliable_p, br_prob_note_reliable_p,
8497 can_predict_insn_p): Likewise.
8498 * regclass.c (reg_set_to_hard_reg_set): Likewise.
8499 * resource.c (return_insn_p): Likewise.
8500 * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
8502 * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
8503 * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
8504 * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
8505 verify_gimple_modify_stmt): Likewise.
8506 * tree-chrec.c (is_not_constant_evolution,
8507 is_multivariate_chrec_rec, is_multivariate_chrec,
8508 chrec_contains_symbols, chrec_contains_undetermined,
8509 tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
8510 evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
8511 eq_evolutions_p, scev_direction): Likewise.
8512 * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
8513 eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
8514 chrec_contains_symbols_defined_in_loop,
8515 chrec_contains_undetermined, tree_contains_chrecs,
8516 evolution_function_is_affine_multivariate_p,
8517 evolution_function_is_univariate_p, chrec_zerop,
8518 evolution_function_is_constant_p, evolution_function_is_affine_p,
8519 evolution_function_is_affine_or_constant_p,
8520 tree_does_not_contain_chrecs, chrec_type): Likewise.
8521 * tree-data-ref.c (tree_fold_divides_p,
8522 object_address_invariant_in_loop_p, dr_may_alias_p,
8523 ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
8524 same_access_functions, constant_access_functions,
8525 access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
8527 * tree-flow.h (scev_direction): Likewise.
8528 * tree-gimple.c (is_gimple_stmt): Likewise.
8529 * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
8531 * tree-pretty-print.c (op_prio): Likewise.
8532 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
8533 analyzable_condition, backedge_phi_arg_p): Likewise.
8534 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
8535 * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
8536 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
8539 2007-08-13 Dan Hipschman <dsh@google.com>
8542 * c-format.c (check_format_arg): Move check for zero-length
8543 format strings below the check for unterminated strings.
8545 2007-08-13 Andrew Pinski <pinskia@gmail.com>
8548 * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
8551 2007-08-13 Nick Clifton <nickc@redhat.com>
8553 * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
8555 2007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8558 * c-format.c (gcc_gfc_length_specs): New array.
8559 (gcc_gfc_char_table): Add unsigned specifier, and references to
8560 the l length modifier.
8561 (format_types_orig): Use the new gcc_gfc_length_specs.
8563 2007-08-12 Sa Liu <saliu@de.ibm.com>
8565 * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
8566 and with REG_RETVAL note after split.
8568 2007-08-11 David Daney <ddaney@avtrex.com>
8570 * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
8571 as ATTRIBUTE_UNUSED.
8573 2007-08-11 David Edelsohn <edelsohn@gnu.org>
8574 Segher Boessenkool <segher@kernel.crashing.org>
8576 * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
8577 HAVE_LOCAL_CPU_DETECT not defined.
8579 2007-08-11 Jan Hubicka <jh@suse.cz>
8581 * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
8582 (cgraph_process_new_functions): Honor previous value of
8583 disregard_inline_limits.
8584 * ipa-inline.c (compute_inline_parameters): Likewise.
8586 2007-08-11 Ian Lance Taylor <iant@google.com>
8588 * alias.h (alias_set_type): Define new type.
8589 (ALIAS_SET_MEMORY_BARRIER): Use it.
8590 * rtl.h: Include alias.h.
8591 (struct mem_attrs): Use alias_set_type.
8592 * tree.h: Include alias.h
8593 (struct tree_type): Use alias_set_type.
8594 (struct tree_struct_field_tag): Likewise.
8595 (struct tree_decl_common): Likewise.
8596 * alias.c (struct alias_set_entry): Use alias_set_type.
8597 (get_alias_set_entry, alias_set_subset_of): Likewise.
8598 (alias_sets_conflict_p): Likewise.
8599 (alias_sets_must_conflict_p): Likewise.
8600 (objects_must_conflict_p): Likewise.
8601 (get_alias_set, new_alias_set): Likewise.
8602 (record_alias_subset, record_component_aliases): Likewise.
8603 (varargs_set, frame_set): Change to alias_set_type.
8604 (get_varargs_alias_set): Use alias_set_type.
8605 (get_frame_alias_set): Likewise.
8606 * builtins.c (setjmp_alias_set): Change to alias_set_type.
8607 * dse.c (struct store_info): Use alias_set_type.
8608 (struct read_info, struct clear_alias_mode_holder): Likewise.
8609 (clear_alias_set_lookup, canon_address): Likewise.
8610 (record_store, check_mem_read_rtx): Likewise.
8611 (dse_record_singleton_alias_set): Likewise.
8612 (dse_invalidate_singleton_alias_set): Likewise.
8613 * emit-rtl.c (get_mem_attrs): Likewise.
8614 (set_mem_attributes_minus_bitpos): Likewise.
8615 (set_mem_alias_set): Likewise.
8616 * expr.c (store_constructor_field, store_field): Likewise.
8617 * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
8618 * langhooks.c (lhd_get_alias_set): Likewise.
8619 * langhooks-def.h (lhd_get_alias_set): Likewise.
8620 * reload1.c (alter_reg): Likewise.
8621 * tree-flow.h (struct fieldoff): Likewise.
8622 * tree-ssa-alias.c (struct alias_map_d): Likewise.
8623 (may_alias_p, get_smt_for, create_sft): Likewise.
8624 * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
8625 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
8626 (merge_smts_into): Likewise.
8627 * varasm.c (const_alias_set): Likewise.
8628 * c-common.c (strict_aliasing_warning): Likewise.
8629 (c_common_get_alias_set): Likewise.
8630 * dse.h (dse_record_singleton_alias_set): Update declaration.
8631 (dse_invalidate_singleton_alias_set): Likewise.
8632 * emit-rtl.h (set_mem_alias_set): Likewise.
8633 * c-common.h (c_common_get_alias_set): Likewise.
8634 * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
8635 * print-tree.c (print_node): Likewise.
8636 * config/alpha/alpha.c (alpha_sr_alias_set): Change to
8638 (alpha_setup_incoming_varargs): Use alias_set_type.
8639 * config/i386/i386.c (setup_incoming_varargs_64): Use
8641 (setup_incoming_varargs_ms_64): Likewise.
8642 (ix86_GOT_alias_set): Likewise.
8643 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
8644 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
8645 (set): Change to alias_set_type.
8646 (get_TOC_alias_set): Use alias_set_type.
8647 * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
8649 * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
8650 * config/sparc/sparc.c (sparc_sr_alias_set): Change to
8652 (struct_value_alias_set): Likewise.
8653 * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
8655 2007-08-11 Richard Sandiford <richard@codesourcery.com>
8657 * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
8658 * config/vxworks.h (TARGET_VXWORKS): Override.
8659 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
8660 "mips" if TARGET_VXWORKS.
8662 2007-08-11 Richard Sandiford <richard@codesourcery.com>
8664 * calls.c (avoid_likely_spilled_reg): New function.
8665 (expand_call): Use it.
8667 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8669 * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
8671 2007-08-10 Adam Nemet <anemet@caviumnetworks.com>
8673 * config/mips/predicates.md (const_call_insn_operand): Invoke
8674 SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
8676 2007-08-10 David Edelsohn <edelsohn@gnu.org>
8679 * config/rs6000/driver-rs6000.c: Include link.h.
8680 Use ElfW instead of wordsize-specif typedef.
8682 2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8684 * system.h (CONST_CAST): New.
8685 * c-decl.c (c_make_fname_decl): Use it.
8686 * c-lex.c (cb_ident, lex_string): Likewise.
8687 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
8688 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
8689 give_switch, set_multilib_dir): Likewise.
8690 * gengtype-parse.c (string_seq, typedef_name): Likewise.
8691 * passes.c (execute_one_pass): Likewise.
8692 * prefix.c (update_path): Likewise.
8693 * pretty-print.c (pp_base_destroy_prefix): Likewise.
8694 * tree.c (build_string): Likewise.
8696 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
8698 * tree-flow-inline.h (is_exec_stmt): Remove.
8699 (is_label_stmt): Remove.
8700 * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
8703 2007-08-10 Andreas Krebbel <krebbel1@de.ibm.com>
8705 * lower-subreg.c (resolve_shift_zext): Don't adjust
8706 src_reg_num for wordmode operands.
8708 2007-08-10 Sandra Loosemore <sandra@codesourcery.com>
8709 David Ung <davidu@mips.com>
8711 * config/mips/mips.c (TARGET_SCHED_INIT): Define.
8712 (TARGET_SCHED_REORDER2): Define.
8713 (mips_maybe_swap_ready): New.
8714 (mips_last_74k_agen_insn): New.
8715 (mips_74k_agen_init): New.
8716 (mips_74k_agen_reorder): New function to group loads and stores
8718 (mips_sched_init): New.
8719 (mips_sched_reorder): Don't do initialization here. Call
8720 mips_74k_agen_reorder.
8721 (mips_variable_issue): Call mips_74k_agen_init.
8723 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
8725 * tree-flow-inline.h (get_filename): Remove.
8727 2007-08-10 Richard Sandiford <richard@codesourcery.com>
8729 * config/mips/mips-protos.h (mips_address_insns): Add a boolean
8731 (mips_fetch_insns): Delete in favor of...
8732 (mips_load_store_insns): ...this new function.
8733 * config/mips/mips.c (mips_address_insns): Add a boolean argument
8734 to say whether multiword moves _might_ be split.
8735 (mips_fetch_insns): Delete in favor of...
8736 (mips_load_store_insns): ...this new function.
8737 (mips_rtx_costs): Update the call to mips_address_insns.
8738 (mips_address_cost): Likewise.
8739 * config/mips/mips.md (length): Use mips_load_store_insns instead
8740 of mips_fetch_insns.
8741 * config/mips/constraints.md (R): Use mips_address_insns rather
8742 than mips_fetch_insns. Assume that the move never needs to be split.
8744 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
8746 * config/mips/mips.opt (mhard-float, msoft-float): Make these
8747 control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
8748 than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.
8749 * config/mips/mips.h (mips16_hard_float): Delete.
8750 (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
8751 definitions, and replace with....
8752 (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
8753 * config/mips/mips.c (mips16_hard_float): Delete. Replace
8754 all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
8755 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
8756 (override_options): Replace MASK_SOFT_FLOAT references with
8757 MASK_SOFT_FLOAT_ABI. Delete twiddling with MASK_SOFT_FLOAT
8758 and mips16_hard_float when TARGET_MIPS16.
8760 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
8763 * c-typeck.c (build_binary_op): Check for non pointer types before
8764 calling int_fits_type_p.
8766 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
8769 * fold-const.c (omit_one_operand): Return only the ommitted expression
8770 if the result is an empty statement.
8771 (pedantic_omit_one_operand): Likewise.
8773 2007-08-09 Daniel Berlin <dberlin@dberlin.org>
8775 * c-typeck.c (readonly_error): Improve error for assignment.
8777 * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
8779 (pp_c_expression): Ditto.
8781 2007-08-09 Simon Baldwin <simonb@google.com>
8783 * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
8784 break that was preventing simplify_associative_operation() for xor.
8786 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
8787 Nigel Stephens <nigel@mips.com>
8789 * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
8790 Document change in interpretation of value from boolean to
8792 * optabs.c (expand_ffs, expand_ctz): New functions to compute
8793 ffs and ctz using clz.
8794 (expand_unop): Call them.
8795 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
8797 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
8798 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
8799 enable the new ffs expansion on this target.
8801 2007-08-09 Jan Hubicka <jh@suse.cz>
8803 * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
8804 (expand_ternary_op): Likewise.
8805 (expand_vec_shift_expr): Likewise.
8806 (expand_binop_directly): Likewise.
8807 (expand_binop): Likewise.
8808 (sign_expand_binop): Likewise.
8809 (expand_twoval_unop): Likewise.
8810 (expand_twoval_binop): Likewise.
8811 (expand_twoval_binop_libfunc): Likewise.
8812 (widen_clz): Likewise.
8813 (widen_bswap): Likewise.
8814 (expand_parity): Likewise.
8815 (expand_unop): Likewise.
8816 (expand_abs_nojump): Likewise.
8817 (expand_copysign): Likewise.
8818 (emit_no_conflict_block): Likewise.
8819 (emit_libcall_block): Likewise.
8820 (can_compare_p): Likewise.
8821 (prepare_cmp_insn): Likewise.
8822 (emit_cmp_and_jump_insn_1): Likewise.
8823 (prepare_float_lib_cmp): Likewise.
8824 (emit_conditional_add): Likewise.
8825 (gen_add2_insn): Likewise.
8826 (have_add2_insn): Likewise.
8827 (gen_sub2_insn): Likewise.
8828 (have_sub2_insn): Likewise.
8829 (can_extend_p): Likewise.
8830 (can_fix_p): Likewise.
8831 (can_float_p): Likewise.
8832 (expand_float): Likewise.
8833 (expand_fix): Likewise.
8834 (expand_sfix_optab): Likewise.
8835 (new_optab): Likewise.
8836 (new_convert_optab): Likewise.
8837 (init_libfuncs): Likewise.
8838 (init_interclass_conv_libfuncs): Likewise.
8839 (init_intraclass_conv_libfuncs): Likewise.
8840 (set_conv_libfunc): Likewise.
8841 (init_optabs): Likewise.
8842 (debug_optab_libfuncs): Likewise.
8843 (gen_cond_trap): Likewise.
8844 * optabs.h (optab_handler, convert_optab_hanlder): New.
8845 * genopinit.c: Update optabs generation table.
8846 * reload.c (find_reloads_address_1): Use optabs accestors.
8847 * builtins.c (expand_builtin_mathfn): Likewise.
8848 (expand_builtin_mathfn_2): Likewise.
8849 (expand_builtin_mathfn_3): Likewise.
8850 (expand_builtin_interclass_mathfn): Likewise.
8851 (expand_builtin_sincos): Likewise.
8852 (expand_builtin_cexpi): Likewise.
8853 (expand_builtin_powi): Likewise.
8854 (expand_builtin_strlen): Likewise.
8855 * dojump.c (do_jump): Likewise.
8856 * expr.c (convert_move): Likewise.
8857 (move_by_pieces): Likewise.
8858 (move_by_pieces_ninsns): Likewise.
8859 (can_store_by_pieces): Likewise.
8860 (store_by_pieces_1): Likewise.
8861 (emit_move_via_integer): Likewise.
8862 (emit_move_complex): Likewise.
8863 (emit_move_ccmode): Likewise.
8864 (emit_move_insn_1): Likewise.
8865 (emit_single_push_insn): Likewise.
8866 (store_constructor): Likewise.
8867 (expand_expr_real_1): Likewise.
8868 (do_store_flag): Likewise.
8869 * ada/misc.c (gnat_compute_largest_alignment): Likewise.
8870 (enumerate_modes): Likewise.
8871 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
8872 (supportable_widening_operation): Likewise.
8873 (supportable_narrowing_operation): Likewise.
8874 * expmed.c (store_bit_field_1): Likewise.
8875 (extract_bit_field_1): Likewise.
8876 (expand_mult_highpart_optab): Likewise.
8877 (expand_smod_pow2): Likewise.
8878 (expand_divmod): Likewise.
8879 (emit_store_flag): Likewise.
8880 * tree-vect-patterns.c
8881 (vect_pattern_recog_1): Likewise.
8882 * tree-ssa-loop-prefetch.c
8883 (nontemporal_store_p): Likewise.
8884 * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
8885 (vect_create_epilog_for_reduction): Likewise.
8886 (vectorizable_reduction): Likewise.
8887 (vectorizable_operation): Likewise.
8888 (vect_strided_store_supported): Likewise.
8889 (vectorizable_store): Likewise.
8890 (vect_strided_load_supported): Likewise.
8891 (vectorizable_load): Likewise.
8892 * combine.c (simplify_comparison): Likewise.
8893 * tree-vect-generic.c
8894 (type_for_widest_vector_mode): Likewise.
8895 (expand_vector_operations_1): Likewise.
8896 * config/spu/spu.c (spu_expand_mov): Likewise.
8897 (spu_emit_vector_compare): Likewise.
8898 * config/rs6000/rs6000.c
8899 (rs6000_emit_vector_compare): Likewise.
8900 * stmt.c (add_case_node): Likewise.
8901 * reload1.c (gen_reload):
8903 2007-08-09 Michael Matz <matz@suse.de>
8905 * tree.h (fixed_zerop): Declare as taking a const_tree.
8906 * tree.c (fixed_zerop): Take a const_tree.
8908 2007-08-09 Ira Rosen <irar@il.ibm.com>
8910 * tree-vect-transform.c (vectorizable_store): Remove call to
8911 copy_virtual_operands() and call mark_symbols_for_renaming() for
8912 the created vector store.
8913 (vect_setup_realignment): Don't call copy_virtual_operands() and
8914 update_vuses_to_preheader().
8915 (vectorizable_load): Don't call copy_virtual_operands().
8916 (update_vuses_to_preheader): Remove.
8918 2007-08-08 Chao-ying Fu <fu@mips.com>
8920 * tree.def (FIXED_POINT_TYPE): New type.
8921 (FIXED_CST): New constant.
8922 (FIXED_CONVERT_EXPR): New expr.
8923 * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
8924 (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
8925 * tree.h (struct tree_base): Add saturating_flag.
8926 Remove one bit of spare for saturating_flag.
8927 (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
8928 (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
8929 FIXED_POINT_TYPE_P): Define.
8930 (TYPE_SATURATING): Define.
8931 (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
8932 (struct tree_fixed_cst): New.
8933 (TYPE_IBIT, TYPE_FBIT): Define.
8934 (tree_node): Add fixed_cst.
8935 (enum tree_index): Add new enumeration values of
8936 TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
8937 TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
8938 TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
8939 TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
8940 TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
8941 TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
8942 TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
8943 TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
8944 TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
8945 TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
8946 TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
8947 TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
8948 TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
8949 TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
8950 TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
8951 TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
8952 TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
8953 TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
8954 (sat_short_fract_type_node, sat_fract_type_node,
8955 sat_long_fract_type_node, sat_long_long_fract_type_node,
8956 sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
8957 sat_unsigned_long_fract_type_node,
8958 sat_unsigned_long_long_fract_type_node, short_fract_type_node,
8959 fract_type_node, long_fract_type_node, long_long_fract_type_node,
8960 unsigned_short_fract_type_node, unsigned_fract_type_node,
8961 unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
8962 sat_short_accum_type_node, sat_accum_type_node,
8963 sat_long_accum_type_node, sat_long_long_accum_type_node,
8964 sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
8965 sat_unsigned_long_accum_type_node,
8966 sat_unsigned_long_long_accum_type_node, short_accum_type_node,
8967 accum_type_node, long_accum_type_node, long_long_accum_type_node,
8968 unsigned_short_accum_type_node, unsigned_accum_type_node,
8969 unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
8970 qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
8971 uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
8972 utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
8973 sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
8974 sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
8975 sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
8976 ta_type_node, uha_type_node, usa_type_node, uda_type_node,
8977 uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
8978 sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
8979 sat_uda_type_node, sat_uta_type_node): New macro.
8980 (make_fract_type, make_accum_type): Declare.
8981 (make_signed_fract_type, make_unsigned_fract_type,
8982 make_sat_signed_fract_type, make_sat_unsigned_fract_type,
8983 make_signed_accum_type, make_unsigned_accum_type,
8984 make_sat_signed_accum_type, make_sat_unsigned_accum_type,
8985 make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
8986 make_or_reuse_sat_signed_fract_type,
8987 make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
8988 make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
8989 make_or_reuse_sat_unsigned_accum_type): New macro.
8990 (fixed_zerop): Declare.
8991 * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
8992 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
8993 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
8994 LONG_LONG_ACCUM_TYPE_SIZE): Define.
8995 * treestruct.def: Add TS_FIXED_CST.
8996 * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
8998 (tree-dump.o): Likewise.
8999 (print-tree.o): Likewise.
9000 (tree-pretty-print.o): Likewise.
9001 (fold-const.o): Likewise.
9002 * tree-complex.c (some_nonzerop): Handle FIXED_CST.
9003 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
9004 (is_gimple_min_invariant): Handle FIXED_CST.
9005 * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
9006 MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
9007 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
9008 (layout_type): Handle FIXED_POINT_TYPE.
9009 (make_fract_type, make_accum_type): New functions.
9010 * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
9011 * tree-dump.c (fixed-value.h): New include.
9012 (dump_fixed): New function.
9013 (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
9014 * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
9015 (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
9016 * tree-pretty-print.c (fixed-value.h): New include.
9017 (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
9019 * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
9020 * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
9021 * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
9022 * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
9023 for non-saturating fixed-point types.
9024 (reassociate_bb): Likewise.
9025 * emit-rtl.c (fixed-value.h): New include.
9026 (fconst0, fconst1): New array.
9027 (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
9028 * tree-vect-generic.c expand_vector_operation): Support
9029 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
9031 (type_for_widest_vector_mode): Add one parameter for the
9033 Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
9035 Pass the satp parameter to type_for_mode for fixed-point types.
9036 (expand_vector_operations_1): Pass the saturating flag to
9037 type_for_widest_vector_mode.
9038 Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
9039 and MODE_VECTOR_UACCUM.
9040 * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
9041 (vectorizable_condition): Likewise.
9042 * tree.c (fixed-value.h): New include.
9043 (tree_code_size): Support FIXED_CST.
9044 (build_fixed): New function.
9045 (build_one_cst): Support FIXED_POINT_TYPE for accum types.
9046 (fixed_zerop): New function.
9047 (tree_node_structure): Support FIXED_CST.
9048 (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
9049 (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
9050 (type_hash_eq): Handle FIXED_POINT_TYPE.
9051 (simple_cst_equal): Support FIXED_CST.
9052 (iterative_hash_expr): Handle FIXED_CST.
9053 (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
9054 (get_narrower): Likewise.
9055 (variably_modified_type_p): Handle FIXED_POINT_TYPE.
9056 (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
9057 (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
9058 MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
9060 (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
9061 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
9062 (initializer_zerop): Support FIXED_CST.
9063 (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
9064 * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
9065 DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
9066 (is_base_type): Handle FIXED_POINT_TYPE.
9067 (add_type_attribute): Handle FIXED_POINT_TYPE.
9068 (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
9069 * print-tree.c (fixed-value.h): New include.
9070 (print_node_brief): Support FIXED_CST.
9071 (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
9072 * c-pretty-print.c (fixed-value.h): New include.
9073 (pp_c_type_specifier): Handle FIXED_POINT_TYPE. Need to pass
9074 TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
9075 (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
9076 Support fixed-point types for inner items in VECTOR_TYPE.
9077 (pp_c_direct_declarator): Likewise.
9078 (pp_c_declarator): Likewise.
9079 (pp_c_fixed_constant): New function.
9080 (pp_c_constant): Handle FIXED_CST.
9081 (pp_c_primary_expression): Likewise.
9082 (pp_c_expression): Likewise.
9083 * fold-const.c (fixed-value.h): New include.
9084 (negate_expr_p): Return true for FIXED_CST.
9085 (fold_negate_expr): Support FIXED_CST.
9086 (split_tree): Support FIXED_CST.
9087 (const_binop): Support FIXED_CST.
9088 (fold_convert_const_int_from_fixed): New function to convert from
9090 (fold_convert_const_real_from_fixed): New function to convert from
9092 (fold_convert_const_fixed_from_fixed): New function to convert from
9093 fixed to another fixed.
9094 (fold_convert_const_fixed_from_int): New function to convert from
9096 (fold_convert_const_fixed_from_real): New function to convert from
9098 (fold_convert_const): Support conversions from fixed to int, from
9099 fixed to real, from fixed to fixed, from int to fixed, and from real
9101 (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
9102 (operand_equal_p): Support FIXED_CST.
9103 (make_range): For fixed-point modes, we need to pass the
9104 saturating flag as the 2nd parameter.
9105 (tree_swap_operands_p): Handle FIXED_CST.
9106 (fold_plusminus_mult_expr): For fract modes, we cannot generate
9108 (fold_unary): Support FIXED_CONVERT_EXPR.
9109 (fold_binary): Handle FIXED_CST.
9110 Make sure the type is not saturating, before associating operations.
9111 Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
9112 (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
9113 (fold_negate_const): Support FIXED_CST.
9114 (fold_relational_const): Support FIXED_CST.
9115 * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
9116 (gimplify_expr): Handle FIXED_CST.
9117 (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
9118 * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
9119 * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
9120 * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
9121 FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
9122 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
9123 LONG_LONG_ACCUM_TYPE_SIZE.
9124 * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
9125 * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
9126 * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
9127 * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
9128 MODE_ACCUM, and MODE_UACCUM.
9129 * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
9130 fixed-point types to disable reduction.
9131 * explow.c (promote_mode): Support FIXED_POINT_TYPE.
9133 2007-08-08 David Edelsohn <edelsohn@gnu.org>
9135 * config/rs6000/x-rs6000: New file.
9136 * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
9137 * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
9138 (EXTRA_SPEC_FUNCTIONS): Define.
9139 (HAVE_LOCAL_CPU_DETECT): Define.
9140 (CC1_CPU_SPEC): Define.
9141 * config/rs6000/driver-rs6000.c: New file.
9142 * config/rs6000/aix.h (CC1_SPEC): Define.
9143 * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
9144 * config.host: Add x-rs6000 to host_xmake_file if host and target
9145 are rs6000 or powerpc.
9147 2007-08-08 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
9149 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
9151 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9152 Sandra Loosemore <sandra@codesourcery.com>
9153 Chao-ying Fu <fu@mips.com>
9154 Nigel Stephens <nigel@mips.com>
9155 David Ung <davidu@mips.com>
9157 * doc/invoke.texi (-mcode-readable): Document.
9158 * config/mips/mips.opt (mcode-readable): New option.
9159 * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
9160 * config/mips/mips.h (mips_code_readable_setting): New enum.
9161 (mips_code_readable): Declare.
9162 (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
9163 (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
9164 (JUMP_TABLES_IN_TEXT_SECTION): Use it.
9165 (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise. Remove
9166 boiler-plate comments.
9167 (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
9168 * config/mips/mips.c (mips_code_readable): New variable.
9169 (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
9170 MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES. Use both the
9171 context and -mcode-readable setting to restrict the use of
9172 SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
9173 Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
9174 (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
9175 (mips_blocks_for_constant_p): Only return false for
9176 TARGET_MIPS16_PCREL_LOADS.
9177 (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
9178 for MIPS16. Handle SYMBOL_32_HIGH.
9179 (mips_const_insns): Allow HIGHs for MIPS16 too.
9180 (mips_unspec_address_offset): New function, split out from...
9181 (mips_unspec_address): ...here.
9182 (mips_output_move): Handle MIPS16 HIGH moves. Use "li" to load
9183 16-bit symbolic constants. Assert approropiate conditions for
9184 using the "la" and "dla" macros.
9185 (mips_handle_option): Handle -mcode-readable=.
9186 (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
9187 Set up mips_lo_relocs[SYMBOL_32_HIGH].
9188 (mips_strip_unspec_address): New function, split out from...
9189 (print_operand_reloc): ...here.
9190 (print_operand): Pass constants through mips_strip_unspec_address.
9191 (print_operand_address): Likewise.
9192 (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
9193 (mips_select_rtx_section): Remove MIPS16 handling.
9194 (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
9195 (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
9196 (mips16_lay_out_constants): Do nothing unless
9197 TARGET_MIPS16_PCREL_LOADS.
9198 (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
9199 * config/mips/mips.md: Split HIGHs for MIPS16.
9200 (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
9202 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9204 * config/mips/mips-protos.h (mips_emit_move): Declare.
9205 * config/mips/mips.c (mips_emit_move): New function.
9206 (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
9207 (mips_legitimize_const_move): Likewise.
9208 (mips_legitimize_move): Likewise.
9209 (mips_split_64bit_move): Likewise.
9210 (mips_restore_gp): Likewise.
9211 (mips_load_call_address): Likewise.
9212 (mips_emit_fcc_reload): Likewise.
9213 (mips_set_return_address): Likewise.
9214 (mips_block_move_straight): Likewise.
9215 (mips_block_move_loop): Likewise.
9216 (mips_setup_incoming_varargs): Likewise.
9217 (mips_save_reg): Likewise.
9218 (mips_expand_prologue): Likewise.
9219 (mips_restore_reg): Likewise.
9220 (mips_expand_epilogue): Likewise.
9221 (mips_output_mi_thunk): Likewise.
9222 (build_mips16_call_stub): Likewise.
9223 (mips_builtin_branch_and_move): Likewise.
9224 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
9225 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
9226 (fixuns_truncdfdi2): Likewise.
9227 (fixuns_truncsfsi2): Likewise.
9228 (fixuns_truncsfdi2): Likewise.
9229 (loadgp_absolute): Likewise.
9230 (builtin_setjmp_setup): Likewise.
9231 (builtin_longjmp): Likewise.
9232 (untyped_call): Likewise.
9234 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9236 * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
9237 an "rtx *" argument. Return a bool.
9238 * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
9239 values and return true if they can be split. Take the same kind of
9240 mode argument as mips_symbol_insns. Add a "lo_sum_out" parameter
9241 and store the lo_sum there if nonnull. Use the symbol type to
9242 determine whether a $gp or HIGH is needed.
9243 (mips_legitimize_address): Update call to mips_split_symbol and
9244 simplify accordingly.
9245 (mips_legitimize_const_move): Likewise.
9246 * config/mips/mips.md: In the combine define_split,
9247 check mips_split_symbol instead of splittable_symbolic_operand.
9248 Update use of mips_split_symbol in the generator code.
9249 * config/mips/predicates.md (splittable_symbolic_operand): Delete.
9251 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9253 * config/mips/mips.c (mips_symbolic_address_p): Delete.
9254 (mips_symbol_insns_1): New function, split out from...
9255 (mips_symbol_insns): ...here. Take a mode argument. Treat loads
9256 and stores separately from load addresses.
9257 (mips_classify_address): Replace uses of mips_symbolic_address_p
9258 with uses of mips_symbol_insns.
9259 (mips_address_insns): Update calls to mips_symbol_insns.
9260 (mips_const_insns): Likewise.
9261 (mips_legitimize_address): Likewise.
9263 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9265 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
9266 * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
9267 block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
9268 Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
9269 non-call contexts if TARGET_MIPS16.
9270 (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
9271 (mips_symbolic_address_p): Likewise. Remove special TARGET_MIPS16
9272 code for SYMBOL_ABSOLUTE.
9273 (mips_symbol_insns): Likewise.
9275 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9277 * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
9278 * config/mips/mips.c (mips_classify_symbol): Take a context argument.
9279 (mips_symbolic_constant_p): Likewise. Update the call to
9280 mips_classify_symbol.
9281 (mips_classify_address): Update the calls to mips_symbolic_constant_p.
9282 (mips_const_insns): Likewise. Update the call to mips_classify_symbol.
9283 (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
9284 (print_operand_reloc): Add a context argument. Update the call to
9285 mips_symbolic_constant_p.
9286 (print_operand): Update the calls to print_operand_reloc.
9287 (print_operand_address): Use print_operand_reloc rather than
9289 (mips_rewrite_small_data_p): Add a context argument. Update the call
9290 to mips_symbolic_constant_p.
9291 (mips_small_data_pattern_1): Make DATA the containing mem.
9292 Update the call to mips_rewrite_small_data_p.
9293 (mips_rewrite_small_data_1): Likewise.
9294 (mips_use_anchors_for_symbol_p): Update the call to
9295 mips_symbolic_constant_p.
9296 * config/mips/predicates.md (const_call_insn_operand): Likewise.
9297 (splittable_symbolic_operand): Likewise.
9298 (move_operand): Likewise.
9299 (absolute_symbolic_operand): Likewise.
9300 (got_disp_operand): Likewise.
9301 (got_page_ofst_operand): Likewise.
9303 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9305 * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
9306 (SYMBOL_ABSOLUTE): ...this.
9307 (SYMBOL_SMALL_DATA): Rename to...
9308 (SYMBOL_GP_RELATIVE): ...this.
9309 (SYMBOL_CONSTANT_POOL): Rename to...
9310 (SYMBOL_PC_RELATIVE): ...this.
9311 * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
9312 (mips_symbolic_address_p, mips_symbol_insns, override_options)
9313 (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
9314 after above changes.
9315 * config/mips/predicates.md (const_call_insn_operand): Likewise.
9316 (general_symbolic_operand): Rename to...
9317 (absolute_symbolic_operand): ...this.
9318 * config/mips/mips.md: Update after above changes.
9320 2007-08-08 Vladimir Yanovsky <yanov@il.ibm.com>
9321 Revital Eres <eres@il.ibm.com>
9323 * ddg.c (print_ddg): Add dump information.
9324 * modulo-sched.c (print_node_sched_params): Add parameter and
9326 (calculate_maxii): Remove function.
9327 (undo_generate_reg_moves): Likewise.
9328 (undo_permute_partial_schedule): Likewise.
9329 (kernel_number_of_cycles): Likewise.
9330 (MAXII_FACTOR): New definition to calculate the upper bound of II.
9331 (sms_schedule): Use it. Remove profitability checks.
9332 (sms_schedule_by_order): Fix order of nodes within the cycle.
9334 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9336 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
9337 -profile option, add pie support.
9338 (ENDFILE_SPEC): New spec.
9339 * config/gnu.h (LIB_SPEC): Add -profile option.
9341 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9343 * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
9344 * config/gnu.h (LIB_SPEC): Likewise.
9346 2007-08-07 Yaz Saito <saito@google.com>
9347 Ian Lance Taylor <iant@google.com>
9349 * common.opt (finstrument-functions-exclude-function-list): New
9351 (finstrument-functions-exclude-file-list): New option.
9352 * opts.c (char_p): Define and DEF_VEC.
9353 (flag_instrument_functions_exclude_functions): New static
9355 (flag_instrument_functions_exclude_files): New static variable.
9356 (add_instrument_functions_exclude_list): New static function.
9357 (flag_instrument_functions_exclude_p): New function.
9358 (common_handle_option): Handle new options.
9359 * flags.h (flag_instrument_functions_exclude_p): Declare.
9360 * gimplify.c (gimplify_function_tree): Call
9361 flag_instrument_functions_exclude_p.
9362 * doc/invoke.texi (Option Summary): Mention new options.
9363 (Code Gen Options): Document new options.
9365 2007-08-07 Ian Lance Taylor <iant@google.com>
9367 PR rtl-optimization/32776
9368 * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
9369 (resolve_use): Likewise.
9370 (decompose_multiword_subregs): Remove "changed" local variable.
9372 2007-08-07 Carlos O'Donell <carlos@codesourcery.com>
9374 * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
9375 * configure: Regenerate.
9376 * config.in: Regenerate.
9377 * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
9380 2007-08-07 Ian Lance Taylor <iant@google.com>
9382 * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
9383 note, just delete the insn.
9385 2007-08-07 Andreas Schwab <schwab@suse.de>
9388 * gengtype-lex.l: Ignore backslash/newline pair while scanning a
9391 2007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
9393 * lower-subreg.c (resolve_subreg_use): Remove assertion.
9394 (find_decomposable_shift_zext, resolve_shift_zext): New functions.
9395 (decompose_multiword_subregs): Use the functions above to decompose
9396 multiword shifts and zero-extends.
9398 2007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
9400 * doc/sourcebuild.texi (Test Directives): Fix "compile" and
9401 "assemble" descriptions which were swapped.
9403 2007-08-06 Chao-ying Fu <fu@mips.com>
9405 * fixed-value.h: New file.
9406 * fixed-value.c: New file.
9407 * Makefile.in (OBJS-common): Add fixed-value.o.
9408 (fixed-value.o): New rule.
9409 (GTFILES): Add fixed-value.h.
9410 * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
9411 to compare a.low and b.low.
9412 * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
9414 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
9415 Daniel Jacobowitz <dan@codesourcery.com>
9418 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
9420 (x86_64-*-netbsd*): Likewise.
9421 (x86_64-*-linux*): Likewise.
9422 (x86_64-*-kfreebsd*-gnu): Likewise.
9423 (x86_64-*-knetbsd*-gnu): Likewise.
9424 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
9426 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
9428 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
9429 Add -fno-asynchronous-unwind-tables.
9431 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
9432 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
9433 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
9434 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
9435 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
9437 2007-08-06 Steve Ellcey <sje@cup.hp.com>
9439 * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
9440 (TARGET_C_MODE_FOR_SUFFIX): New.
9442 2007-08-06 Steve Ellcey <sje@cup.hp.com>
9444 * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
9446 2007-08-06 Steve Ellcey <sje@cup.hp.com>
9448 * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
9450 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
9452 * config/i386/i386.md: Check TARGET_ macros and optimize_size
9453 before checking function returns in conditional expressions.
9455 2007-08-06 Alfred Minarik <a.minarik@aon.at>
9458 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
9460 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9463 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
9464 for INTEGRAL_TYPE_P.
9466 2008-08-05 Paolo Bonzini <bonzini@gnu.org>
9468 * configure.ac: Remove --enable-checking=df from default settings.
9469 * tree-pass.h (TODO_df_verify): New. Shift TODO_mark_first_instance.
9470 * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
9471 if the parameter is true.
9472 (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
9473 DF_VERIFY_SCHEDULED flag is true.
9474 * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
9475 (df_finish_pass): Adjust prototype.
9476 * passes.c (execute_todo): Schedule verification if TODO_df_verify is
9479 * see.c (pass_see): Add TODO_df_verify.
9480 * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
9481 * global.c (rest_of_handle_global_alloc): Schedule verification
9483 * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
9485 * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
9486 * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
9487 * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
9489 * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
9490 * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
9491 * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
9493 2007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
9494 Revital Eres <eres@il.ibm.com>
9496 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
9498 * ddg.c (create_ddg_dependence): Rename to...
9499 (create_ddg_dep_from_intra_loop_link): This. Do not check
9500 for interloop edges. Do not create anti dependence edge when
9501 a true dependence edge exists in the opposite direction and
9502 -fmodulo-sched-allow-regmoves is set.
9503 (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
9504 (add_cross_iteration_register_deps): Create anti dependence edge
9505 when -fno-modulo-sched-allow-regmoves is set.
9506 * common.opt (-fmodulo-sched-allow-regmoves): New flag.
9508 2007-08-04 Richard Sandiford <richard@codesourcery.com>
9510 * config/arm/arm.md (movsi): Add braces.
9512 2007-08-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
9515 * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
9516 operands for the folding of "A - (A & B)" into "~B & A"; cast them
9519 2007-08-03 Zdenek Dvorak <ook@ucw.cz>
9521 * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
9522 state accessor functions.
9523 * cfgloopmanip.c (remove_path, create_preheaders,
9524 force_single_succ_latches, fix_loop_structure): Ditto.
9525 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9526 tree_duplicate_loop_to_header_edge): Ditto.
9527 * cfgloopanal.c (mark_irreducible_loops): Ditto.
9528 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
9530 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
9531 cleanup_tree_cfg): Ditto.
9532 * tree-cfg.c (tree_merge_blocks): Ditto.
9533 * cfgloop.c (rescan_loop_exit, record_loop_exits,
9534 release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
9535 loop_preheader_edge, single_exit): Ditto.
9536 (flow_loops_find): Do not clear loops->state.
9537 * cfgloop.h (loops_state_satisfies_p, loops_state_set,
9538 loops_state_clear): New functions.
9540 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9543 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
9544 when adding to the base and convert ELT to sizetype instead of type.
9546 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9549 * ipa-reference.c (has_proper_scope_for_analysis): Return false when
9550 the decl's type has TYPE_NEEDS_CONSTRUCTING set.
9552 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9555 * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
9556 correct type the negate expression.
9558 2007-08-03 Jan Hubicka <jh@suse.cz>
9560 * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
9563 2007-08-03 David Edelsohn <edelsohn@gnu.org>
9565 * config/rs6000/rs6000.c (struct processor_cost): Change
9566 l1_cache_lines to l1_cache_size. Add l2_cache_size.
9567 (*_cost): Convert l1 cache information to kilobytes. Add l2 cache
9569 (rios1_costs, rios2_cost): Correct cache line size.
9570 (rs6000_override_options): Set l2-cache-size parameter.
9572 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9573 Diego Novillo <dnovillo@google.com>
9576 * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
9577 if the range includes 0.
9579 2007-08-03 Ben Elliston <bje@au.ibm.com>
9581 * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
9582 mode to unspec expressions to silence a warning from the generator
9585 2007-08-02 Steve Ellcey <sje@cup.hp.com>
9587 * config/ia64/constraints.md ("U"): Make constraint vector only.
9589 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
9592 * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
9593 always_inline attribute on the function decl.
9595 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
9598 * varasm.c (default_binds_local_p_1): Consult flag_whole_program
9599 if we are compiling with -fPIC.
9601 2007-08-02 Sandra Loosemore <sandra@codesourcery.com>
9602 Nigel Stephens <nigel@mips.com>
9604 * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
9605 Define for MIPS32 and MIPS64.
9607 2007-08-02 Nick Clifton <nickc@redhat.com>
9609 * config/host-hpux.c: Change copyright header to refer to version
9610 3 of the GNU General Public License and to point readers at the
9611 COPYING3 file and the FSF's license web page.
9612 * config/alpha/predicates.md, config/alpha/vms-ld.c,
9613 config/alpha/linux.h, config/alpha/alpha.opt,
9614 config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
9615 config/alpha/vms-unwind.h, config/alpha/ev4.md,
9616 config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
9617 config/alpha/alpha.h, config/alpha/sync.md,
9618 config/alpha/openbsd.h, config/alpha/alpha.md,
9619 config/alpha/alpha-modes.def, config/alpha/ev5.md,
9620 config/alpha/alpha-protos.h, config/alpha/freebsd.h,
9621 config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
9622 config/alpha/constraints.md, config/alpha/osf.h,
9623 config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
9624 config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
9625 config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
9626 config/frv/frv-asm.h, config/frv/frv-protos.h,
9627 config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
9628 config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
9629 config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
9630 config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
9631 config/s390/s390.opt, config/s390/s390-modes.def,
9632 config/s390/fixdfdi.h, config/s390/constraints.md,
9633 config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
9634 config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
9635 config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
9636 config/m32c/m32c-pragma.c, config/m32c/m32c.h,
9637 config/m32c/prologue.md, config/m32c/m32c.abi,
9638 config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
9639 config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
9640 config/m32c/t-m32c, config/m32c/m32c-modes.def,
9641 config/m32c/jump.md, config/m32c/shift.md,
9642 config/m32c/m32c-protos.h, config/libgloss.h,
9643 config/spu/spu-protos.h, config/spu/predicates.md,
9644 config/spu/spu-builtins.h, config/spu/spu.c,
9645 config/spu/spu-builtins.def, config/spu/spu-builtins.md,
9646 config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
9647 config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
9648 config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
9649 config/sparc/hypersparc.md, config/sparc/predicates.md,
9650 config/sparc/linux.h, config/sparc/sp64-elf.h,
9651 config/sparc/supersparc.md, config/sparc/cypress.md,
9652 config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
9653 config/sparc/niagara.md, config/sparc/sparc.md,
9654 config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
9655 config/sparc/sparc.opt, config/sparc/sync.md,
9656 config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
9657 config/sparc/ultra1_2.md, config/sparc/biarch64.h,
9658 config/sparc/sparc.c, config/sparc/little-endian.opt,
9659 config/sparc/sysv4-only.h, config/sparc/sparc.h,
9660 config/sparc/linux64.h, config/sparc/freebsd.h,
9661 config/sparc/sol2.h, config/sparc/rtemself.h,
9662 config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
9663 config/sparc/sparc-modes.def, config/sparc/sparclet.md,
9664 config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
9665 config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
9666 config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
9667 config/m32r/linux.h, config/m32r/constraints.md,
9668 config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
9669 config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
9670 config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
9671 config/i386/i386.md, config/i386/netware-crt0.c,
9672 config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
9673 config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
9674 config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
9675 config/i386/sol2.h, config/i386/constraints.md,
9676 config/i386/netware-libgcc.c, config/i386/sysv5.h,
9677 config/i386/predicates.md, config/i386/geode.md,
9678 config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
9679 config/i386/freebsd64.h, config/i386/vxworksae.h,
9680 config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
9681 config/i386/rtemself.h, config/i386/netbsd-elf.h,
9682 config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
9683 config/i386/netware.h, config/i386/i386-modes.def,
9684 config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
9685 config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
9686 config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
9687 config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
9688 config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
9689 config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
9690 config/i386/xm-mingw32.h, config/i386/linux64.h,
9691 config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
9692 config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
9693 config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
9694 config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
9695 config/i386/cygwin2.c, config/i386/i386-protos.h,
9696 config/i386/sync.md, config/i386/openbsd.h,
9697 config/i386/host-mingw32.c, config/i386/i386-aout.h,
9698 config/i386/nto.h, config/i386/biarch64.h,
9699 config/i386/i386-coff.h, config/i386/freebsd.h,
9700 config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
9701 config/i386/host-i386-darwin.c, config/i386/vxworks.h,
9702 config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
9703 config/darwin-protos.h, config/linux.opt, config/sol2.c,
9704 config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
9705 config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
9706 config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
9707 config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
9708 config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
9709 config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
9710 config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
9711 config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
9712 config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
9713 config/sh/superh64.h, config/sh/rtemself.h,
9714 config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
9715 config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
9716 config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
9717 config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
9718 config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
9719 config/avr/predicates.md, config/avr/constraints.md,
9720 config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
9721 config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
9722 config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
9723 config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
9724 config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
9725 config/c4x/c4x-modes.def, config/c4x/rtems.h,
9726 config/c4x/predicates.md, config/c4x/c4x.h,
9727 config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
9728 config/xtensa/predicates.md, config/xtensa/xtensa.c,
9729 config/xtensa/linux.h, config/xtensa/xtensa.h,
9730 config/xtensa/elf.h, config/xtensa/xtensa.md,
9731 config/xtensa/xtensa.opt, config/xtensa/constraints.md,
9732 config/xtensa/xtensa-protos.h, config/dbx.h,
9733 config/stormy16/predicates.md, config/stormy16/stormy16.md,
9734 config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
9735 config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
9736 config/host-solaris.c, config/fr30/fr30.h,
9737 config/fr30/predicates.md, config/fr30/fr30-protos.h,
9738 config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
9739 config/vxworksae.h, config/sol2-c.c, config/lynx.h,
9740 config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
9741 config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
9742 config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
9743 config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
9744 config/host-linux.c, config/interix3.h, config/cris/cris.c,
9745 config/cris/predicates.md, config/cris/linux.h,
9746 config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
9747 config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
9748 config/cris/aout.opt, config/cris/cris-protos.h,
9749 config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
9750 config/iq2000/iq2000.h, config/iq2000/predicates.md,
9751 config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
9752 config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
9753 config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
9754 config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
9755 config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
9756 config/chorus.h, config/mn10300/mn10300.c,
9757 config/mn10300/mn10300.opt, config/mn10300/predicates.md,
9758 config/mn10300/mn10300.h, config/mn10300/linux.h,
9759 config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
9760 config/mn10300/mn10300.md, config/ia64/predicates.md,
9761 config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
9762 config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
9763 config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
9764 config/ia64/freebsd.h, config/ia64/ia64.md,
9765 config/ia64/ia64-modes.def, config/ia64/constraints.md,
9766 config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
9767 config/gofast.h, config/rtems.h, config/sol2-10.h,
9768 config/m68k/predicates.md, config/m68k/m68k.md,
9769 config/m68k/linux.h, config/m68k/m68k-modes.def,
9770 config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
9771 config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
9772 config/m68k/openbsd.h, config/m68k/m68k-aout.h,
9773 config/m68k/m68k.opt, config/m68k/m68020-elf.h,
9774 config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
9775 config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
9776 config/m68k/constraints.md, config/m68k/rtemself.h,
9777 config/m68k/netbsd-elf.h, config/m68k/m68k.h,
9778 config/m68k/uclinux.h, config/rs6000/power4.md,
9779 config/rs6000/host-darwin.c, config/rs6000/6xx.md,
9780 config/rs6000/linux.h, config/rs6000/eabi.h,
9781 config/rs6000/aix41.opt, config/rs6000/xcoff.h,
9782 config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
9783 config/rs6000/eabialtivec.h, config/rs6000/8540.md,
9784 config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
9785 config/rs6000/windiss.h, config/rs6000/603.md,
9786 config/rs6000/aix41.h, config/rs6000/cell.md,
9787 config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
9788 config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
9789 config/rs6000/darwin.md, config/rs6000/darwin64.h,
9790 config/rs6000/default64.h, config/rs6000/7xx.md,
9791 config/rs6000/darwin.opt, config/rs6000/spe.md,
9792 config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
9793 config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
9794 config/rs6000/7450.md, config/rs6000/linux64.h,
9795 config/rs6000/constraints.md, config/rs6000/440.md,
9796 config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
9797 config/rs6000/rs6000.c, config/rs6000/aix52.h,
9798 config/rs6000/rs6000.h, config/rs6000/power6.md,
9799 config/rs6000/predicates.md, config/rs6000/altivec.md,
9800 config/rs6000/aix64.opt, config/rs6000/rios1.md,
9801 config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
9802 config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
9803 config/rs6000/darwin7.h, config/rs6000/dfp.md,
9804 config/rs6000/linux64.opt, config/rs6000/sync.md,
9805 config/rs6000/vxworksae.h, config/rs6000/power5.md,
9806 config/rs6000/lynx.h, config/rs6000/biarch64.h,
9807 config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
9808 config/rs6000/eabispe.h, config/rs6000/e500.h,
9809 config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
9810 config/rs6000/netbsd.h, config/rs6000/e500-double.h,
9811 config/rs6000/aix.h, config/rs6000/vxworks.h,
9812 config/rs6000/40x.md, config/rs6000/aix51.h,
9813 config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
9814 config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
9815 config/arc/arc.h, config/mcore/mcore-elf.h,
9816 config/mcore/mcore-protos.h, config/mcore/predicates.md,
9817 config/mcore/mcore.md, config/mcore/mcore.c,
9818 config/mcore/mcore.opt, config/mcore/mcore.h,
9819 config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
9820 config/score/predicates.md, config/score/score-version.h,
9821 config/score/score-protos.h, config/score/misc.md,
9822 config/score/elf.h, config/score/score.c, config/score/mac.md,
9823 config/score/score7.md, config/score/score.h,
9824 config/score/score-conv.h, config/score/score-mdaux.c,
9825 config/score/score.md, config/score/score.opt,
9826 config/score/score-modes.def, config/score/score-mdaux.h,
9827 config/score/mul-div.S, config/arm/uclinux-elf.h,
9828 config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
9829 config/arm/symbian.h, config/arm/linux-elf.h,
9830 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
9831 config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
9832 config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
9833 config/arm/strongarm-pe.h, config/arm/arm.h,
9834 config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
9835 config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
9836 config/arm/arm-modes.def, config/arm/linux-eabi.h,
9837 config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
9838 config/arm/arm-cores.def, config/arm/arm-protos.h,
9839 config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
9840 config/arm/wince-pe.h, config/arm/neon.md,
9841 config/arm/constraints.md, config/arm/neon.ml,
9842 config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
9843 config/arm/arm.opt, config/arm/arm926ejs.md,
9844 config/arm/predicates.md, config/arm/iwmmxt.md,
9845 config/arm/arm_neon.h, config/arm/unknown-elf.h,
9846 config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
9847 config/arm/neon-testgen.ml, config/arm/arm.md,
9848 config/arm/xscale-coff.h, config/arm/pe.c,
9849 config/arm/arm-generic.md, config/arm/pe.h,
9850 config/arm/kaos-strongarm.h, config/arm/freebsd.h,
9851 config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
9852 config/arm/strongarm-elf.h, config/arm/cirrus.md,
9853 config/arm/netbsd-elf.h, config/arm/vxworks.h,
9854 config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
9855 config/pa/predicates.md, config/pa/pa64-hpux.h,
9856 config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
9857 config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
9858 config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
9859 config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
9860 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
9861 config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
9862 config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
9863 config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
9864 config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
9865 config/pa/pa64-regs.h, config/pa/pa-modes.def,
9866 config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
9867 config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
9868 config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
9869 config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
9870 config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
9871 config/mips/linux64.h, config/mips/elforion.h,
9872 config/mips/constraints.md, config/mips/generic.md,
9873 config/mips/predicates.md, config/mips/4300.md,
9874 config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
9875 config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
9876 config/mips/5k.md, config/mips/vr4120-div.S,
9877 config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
9878 config/mips/mips-protos.h, config/mips/6000.md,
9879 config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
9880 config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
9881 config/mips/mips-modes.def, config/mips/vr.h,
9882 config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
9883 config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
9884 config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
9885 config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
9886 config/vax/openbsd1.h, config/vax/netbsd.h,
9887 config/vax/vax-protos.h, config/vax/netbsd-elf.h,
9888 config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
9889 config/h8300/rtems.h, config/h8300/predicates.md,
9890 config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
9891 config/h8300/h8300.md, config/h8300/h8300.opt,
9892 config/h8300/coff.h, config/h8300/h8300-protos.h,
9893 config/v850/v850.md, config/v850/predicates.md,
9894 config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
9895 config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
9896 config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
9897 config/mmix/mmix.h, config/mmix/predicates.md,
9898 config/mmix/mmix-protos.h, config/mmix/mmix.md,
9899 config/mmix/mmix.c, config/mmix/mmix.opt,
9900 config/mmix/mmix-modes.def, config/bfin/bfin.opt,
9901 config/bfin/rtems.h, config/bfin/bfin-modes.def,
9902 config/bfin/predicates.md, config/bfin/bfin-protos.h,
9903 config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
9906 2007-08-02 Richard Sandiford <richard@codesourcery.com>
9908 * emit-rtl.c (reset_used_decls): Rename to...
9909 (set_used_decls): ...this. Set the used flag rather than clearing it.
9910 (unshare_all_rtl_again): Update accordingly. Set flags on argument
9911 DECL_RTLs rather than resetting them.
9913 2007-08-02 Andreas Krebbel <krebbel1@de.ibm.com>
9915 * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
9917 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
9919 * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
9920 argument to find_reloads_address.
9922 2007-08-01 Daniel Jacobowitz <dan@codesourcery.com>
9924 PR tree-optimization/32919
9925 * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
9926 * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
9927 (coalesce_ssa_name): Call it.
9929 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
9930 David Ung <davidu@mips.com>
9932 * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
9933 (__mips16_unorddf2, __mips16_floatunsidf): New.
9934 * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
9936 * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
9938 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
9940 * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
9941 Display new operands of OMP_SECTIONS and OMP_CONTINUE.
9942 * tree.h (OMP_SECTIONS_CONTROL): New macro.
9943 (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
9944 * omp-low.c (get_ws_args_for, determine_parallel_type,
9945 expand_omp_for_generic, expand_omp_for_static_nochunk,
9946 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
9947 Work with more precise CFG.
9948 (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
9949 (lower_omp_sections): Emit OMP_SECTIONS_SWITCH. Add arguments to
9951 * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
9952 * gimple-low.c (lower_stmt): Ditto.
9953 * tree-inline.c (estimate_num_insns_1): Ditto.
9954 * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
9955 (OMP_SECTIONS_SWITCH): New.
9956 * tree-cfgcleanup.c (cleanup_omp_return): New.
9957 (cleanup_tree_cfg_bb): Call cleanup_omp_return.
9958 * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
9959 and exit edge for OMP_FOR. Handle OMP_SECTIONS_SWITCH.
9960 (tree_redirect_edge_and_branch): Handle omp constructs.
9962 * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
9963 with three arguments.
9965 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
9967 * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
9970 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
9972 * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
9973 the loop structures may need fixing.
9974 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9976 (cleanup_tree_cfg_loop): Removed.
9977 (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
9978 * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
9979 instead of running cleanup_tree_cfg_loop.
9980 * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
9981 * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
9982 (tree_predictive_commoning): Declaration changed.
9983 * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
9985 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
9987 * doc/invoke.texi (l1-cache-size): Update documentation.
9988 (l2-cache-size): Document.
9989 * params.h (L2_CACHE_SIZE): New macro.
9990 * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
9991 that L1_CACHE_SIZE is in kB now.
9992 (L2_CACHE_SIZE_BYTES): New macro.
9993 (tree_ssa_prefetch_arrays): Show size in kB.
9994 * config/i386/i386.h (struct processor_costs): Add l1_cache_size
9995 and l2_cache_size fields.
9996 * config/i386/driver-i386.c (describe_cache): Detect cache size
9998 * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
9999 pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
10000 amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
10001 generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
10002 (override_options): Set l1-cache-size and l2-cache-size to default
10003 values if not specified otherwise.
10004 * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
10005 (PARAM_L2_CACHE_SIZE): New.
10007 2007-08-01 Nigel Stephens <nigel@mips.com>
10008 David Ung <davidu@mips.com>
10009 Thiemo Seufer <ths@mips.com>
10010 Chris Dearman <chris@mips.com>
10011 Richard Sandiford <richard@codesourcery.com>
10013 * config.gcc (mips*-sde-elf*): New stanza.
10014 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
10015 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
10016 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
10017 (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
10018 (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
10019 (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
10021 * config/mips/sde.h: New file.
10022 * config/mips/t-libgcc-mips16: Likewise.
10023 * config/mips/t-sde: Likewise.
10024 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
10025 of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
10026 _MIPS_FPSET and _MIPS_SZINT.
10027 * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
10028 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
10029 insertion of a default -mips option. Use MIPS_32BIT_OPTION_SPEC.
10030 * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
10031 * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10032 * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10033 * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
10034 _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
10035 _MIPS_SZPTR and _MIPS_FPSET.
10036 (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
10037 architecture is specified.
10038 (MIPS_32BIT_OPTION_SPEC): New macro.
10040 2007-07-31 Dan Hipschman <dsh@google.com>
10042 * gcc.c (end_going_arg): New function.
10043 (do_spec_2): Use it.
10044 (do_spec_1): Use it.
10046 2007-07-31 H.J. Lu <hongjiu.lu@intel.com>
10048 * ddg.c (add_cross_iteration_register_deps): Declare bb_info
10049 only if ENABLE_CHECKING is defined.
10051 2007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
10053 * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
10054 df_ru_add_problem, df_ru_get_bb_info): Removed.
10055 (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
10056 * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
10057 df_ru_free_bb_info, df_ru_alloc,
10058 df_ru_bb_local_compute_process_def,
10059 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
10060 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
10061 df_ru_transfer_function, df_ru_free, df_ru_start_dump,
10062 df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
10063 df_ru_add_problem): Removed.
10065 2007-07-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10068 * pa.md (casesi32): Use match_scratch. Revise insn condition.
10069 (casesi32p, casesi64p): Likewise.
10070 (casesi): Adjust for above.
10072 2007-07-31 Richard Sandiford <richard@codesourcery.com>
10074 * mode-switching.c (create_pre_exit): Don't search past calls.
10076 2007-07-31 Sandra Loosemore <sandra@codesourcery.com>
10078 * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
10080 2007-07-31 Revital Eres <eres@il.ibm.com>
10082 * ddg.c (add_deps_for_def): Rename to...
10083 (add_cross_iteration_register_deps): This. Change implementation
10084 to use only reaching def and def-use chains to construct the
10085 inter loop dependencies.
10086 (add_deps_for_use): Remove function.
10087 (build_inter_loop_deps): Call add_cross_iteration_register_deps
10088 function to build the inter loop dependencies.
10089 * modulo-sched.c (sms_schedule): Build only
10090 reaching def and def-use chains for the propose of the ddg
10093 2007-07-31 Julian Brown <julian@codesourcery.com>
10095 * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
10096 New define_insns. Use correct RTL.
10097 (vec_set<mode>): Write as expander.
10099 2007-07-31 Razya Ladelsky <razya@il.ibm.com>
10101 * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
10102 to an unallocated space.
10104 2007-07-30 Jan Sjodin <jan.sjodin@amd.com>
10107 (split_constant_offset): Enable split_constant_offset to extract
10108 constants from other statements.
10109 * tree-vect-transform.c
10110 (vect_create_addr_base_for_vector_ref): Generate data_ref_base
10111 to a temp var. Force base_offset to be simple.
10113 2007-07-30 Seongbae Park <seongbae.park@gmail.com>
10115 * df-scan.c (df_scan_verify): Remove artificial limit on
10116 the number of blocks for verification.
10117 * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
10118 df_simulate_defs): Avoid unnecessary insn checking for defs.
10120 2007-07-29 Mark Mitchell <mark@codesourcery.com>
10122 * config/m68k/lb1sf68.asm (FUNC): New macro.
10123 (__mulsi3): Use it.
10124 (__udivsi3): Likewise.
10125 (__divsi3): Likewise.
10126 (__umodsi3): Likewise.
10127 (__modsi3): Likewise.
10128 (__subdf3): Likewise.
10129 (__adddf3): Likewise.
10130 (__muldf3): Likewise.
10131 (__divdf3): Likewise.
10132 (__negdf2): Likewise.
10133 (__cmpdf2): Likewise.
10134 (__subsf3): Likewise.
10135 (__addsf3): Likewise.
10136 (__mulsf3): Likewise.
10137 (__divsf3): Likewise.
10138 (__negsf2): Likewise.
10139 (__cmpsf2): Likewise.
10140 (__eqdf2): Likewise.
10141 (__nedf2): Likewise.
10142 (__gtdf2): Likewise.
10143 (__gedf2): Likewise.
10144 (__ltdf2): Likewise.
10145 (__ledf2): Likewise.
10146 (__eqsf2): Likewise.
10147 (__nesf2): Likewise.
10148 (__gtsf2): Likewise.
10149 (__gesf2): Likewise.
10150 (__ltsf2): Likewise.
10151 (__lesf2): Likewise.
10153 2007-07-30 Ollie Wild <aaw@google.com>
10155 * c-ppoutput.c (print_lines_directives_only): New function.
10156 (scan_translation_unit_directives_only): New function.
10157 (preprocess_file): Add call to scan_translation_unit_directives_only.
10158 * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
10159 (sanitize_cpp_opts): Add default flag_dump_macros setting for
10160 -fdirectives-only. Add errors for -fdirectives-only conflict with
10161 -Wunused-macros and -traditional.
10162 (finish_options): Add builtin macro initialization for
10163 -fdirectives-only + -fpreprocessed.
10164 * c.opt (fdirectives-only): New.
10165 * doc/cppopts.texi (fdirectives-only): New.
10167 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10169 * alias.c (record_set, memory_modified_1): Constify.
10170 * bt-load.c (note_btr_set): Likewise.
10171 * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
10172 * combine.c (set_nonzero_bits_and_sign_copies,
10173 expand_field_assignment, record_dead_and_set_regs_1,
10174 use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
10175 likely_spilled_retval_1): Likewise.
10176 * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
10177 frv_io_handle_set): Likewise.
10178 * config/mips/mips.c (mips_sim_record_set,
10179 vr4130_true_reg_dependence_p_1): Likewise.
10180 * config/mt/mt.c (insn_dependent_p_1): Likewise.
10181 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
10182 * config/sh/sh.c (flow_dependent_p_1): Likewise.
10183 * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
10184 * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
10185 * ddg.c (mark_mem_store): Likewise.
10186 * df-problems.c (df_urec_mark_reg_change): Likewise.
10187 * function.c (update_epilogue_consts): Likewise.
10188 * gcse.c (record_set_info, record_last_set_info,
10189 mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
10190 reg_clear_last_set): Likewise.
10191 * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
10193 * jump.c (reversed_comparison_code_parts): Likewise.
10194 * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
10195 reg_is_set): Likewise.
10196 * loop-iv.c (mark_altered): Likewise.
10197 * mode-switching.c (reg_becomes_live): Likewise.
10198 * optabs.c (no_conflict_move_test): Likewise.
10199 * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
10201 * postreload.c (reload_combine_note_store, move2add_note_store):
10203 * regmove.c (flags_set_1): Likewise.
10204 * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
10206 * reload1.c (mark_not_eliminable, forget_old_reloads_1):
10208 * resource.c (update_live_status): Likewise.
10209 * rtl.h (set_of, note_stores): Likewise.
10210 * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
10211 note_stores, parms_set): Likewise.
10212 * sched-rgn.c (sets_likely_spilled_1): Likewise.
10213 * stack-ptr-mod.c (notice_stack_pointer_modification_1):
10215 * var-tracking.c (count_stores, add_stores): Likewise.
10217 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10219 * alias.c (mems_in_disjoint_alias_sets_p,
10220 fixed_scalar_and_varying_struct_p, aliases_everything_p,
10221 nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
10222 write_dependence_p, mems_in_disjoint_alias_sets_p,
10223 read_dependence, true_dependence, canon_true_dependence,
10224 anti_dependence, output_dependence): Constify.
10225 * combine.c (extended_count): Likewise.
10226 * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
10227 * cselib.c (get_value_hash, references_value_p,
10228 cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
10229 * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
10230 * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
10231 * function.c (contains, prologue_epilogue_contains,
10232 sibcall_epilogue_contains): Likewise.
10233 * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
10234 pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
10235 only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
10236 reg_or_subregno): Likewise.
10237 * recog.c (asm_noperands): Likewise.
10238 * reload1.c (function_invariant_p): Likewise.
10239 * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
10240 rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
10241 condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
10242 simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
10243 true_regnum, reg_or_subregno, condjump_in_parallel_p,
10244 extended_count, prologue_epilogue_contains,
10245 sibcall_epilogue_contains, function_invariant_p, true_dependence,
10246 canon_true_dependence, read_dependence, anti_dependence,
10247 output_dependence): Likewise.
10248 * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
10250 2007-07-30 Julian Brown <julian@codesourcery.com>
10252 * config/arm/neon.md (V_ext): New mode attribute.
10253 (neon_vget_lane<mode>): Replace with define_expand.
10254 (neon_vget_lane<mode>_sext_internal)
10255 (neon_vget_lane<mode>_zext_internal): New define_insns for double
10256 and quad precision vectors.
10257 (neon_vget_lanedi): Add bounds check. Remove dead comment.
10258 * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
10259 have typeless 32-bit result.
10261 2007-07-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
10264 * tree-affine.h (aff_tree): The type of rest is sizetype for types
10266 * tree-affine.c (aff_combination_scale): If type is a pointer type,
10267 use sizetype for rest.
10268 (aff_combination_add_elt): Likewise. Don't specialize pointer types.
10269 (aff_combination_convert): Don't convert rest for pointer types.
10271 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
10273 * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
10275 * tree-ssa-alias.c: Add alloc-pool.h.
10276 (init_alias_info): Free alias_bitmap_obstack.
10277 (delete_alias_info): Call delete_mem_ref_stats.
10278 (get_mem_sym_stats_for): Use alloc_pool.
10279 (init_mem_ref_stats): Do not delete mem_ref_stats here.
10280 (delete_mem_sym_stats): Removed.
10282 2007-07-29 Sebastian Pop <sebpop@gmail.com>
10284 * tree-data-ref.c (add_multivariate_self_dist): Parametric access
10285 functions cannot be represented as classical distance vectors.
10287 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10289 * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
10290 * builtins.c (validate_arg, builtin_mathfn_code,
10291 validate_arglist): Likewise.
10292 * calls.c (call_expr_flags): Likewise.
10293 * combine.c (reg_nonzero_bits_for_combine,
10294 reg_num_sign_bit_copies_for_combine, get_last_value,
10295 reg_truncated_to_mode): Likewise.
10296 * emit-rtl.c (subreg_lowpart_p): Likewise.
10297 * expr.c (highest_pow2_factor_for_target,
10298 categorize_ctor_elements_1, categorize_ctor_elements,
10299 count_type_elements, contains_packed_reference,
10300 highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
10301 * fold-const.c (may_negate_without_overflow_p, int_const_binop,
10302 fold_convertible_p, operand_equal_p, tree_swap_operands_p,
10303 native_encode_int, native_encode_real, native_encode_complex,
10304 native_encode_vector, native_encode_expr, native_interpret_int,
10305 native_interpret_real, native_interpret_complex,
10306 native_interpret_vector, native_interpret_expr): Likewise.
10307 * function.c (use_register_for_decl): Likewise.
10308 * gimplify.c (get_name): Likewise.
10309 * langhooks-def.h (lhd_return_null_const_tree): New.
10310 (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
10311 * langhooks.c (lhd_return_null_const_tree): New.
10312 * langhooks.h (lang_get_callee_fndecl): Constify.
10313 * output.h (constructor_static_from_elts_p): Likewise.
10314 * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
10315 * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
10316 subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
10317 * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
10318 cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
10319 nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
10320 * rtlhooks-def.h (reg_nonzero_bits_general,
10321 reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
10323 * rtlhooks.c (reg_num_sign_bit_copies_general,
10324 reg_nonzero_bits_general, reg_truncated_to_mode_general):
10326 * stmt.c (warn_if_unused_value, is_body_block): Likewise.
10327 * stor-layout.c (mode_for_size_tree): Likewise.
10328 * tree-ssa-loop-im.c (memref_eq): Likewise.
10329 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
10330 * tree.c (contains_placeholder_p, type_list_equal,
10331 simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
10333 * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
10334 mode_for_size_tree, categorize_ctor_elements, count_type_elements,
10335 contains_placeholder_p, contains_packed_reference,
10336 get_callee_fndecl, operand_equal_for_phi_arg_p,
10337 warn_if_unused_value, is_body_block, native_encode_expr,
10338 native_interpret_expr, fold_convertible_p, operand_equal_p,
10339 int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
10340 validate_arglist, simple_cst_equal, type_list_equal,
10341 use_register_for_decl, call_expr_flags, get_name,
10342 highest_pow2_factor): Likewise.
10343 (const_call_expr_arg_iterator_d,
10344 init_const_call_expr_arg_iterator, next_const_call_expr_arg,
10345 first_const_call_expr_arg, more_const_call_expr_args_p,
10346 FOR_EACH_CONST_CALL_EXPR_ARG): New.
10347 * varasm.c (constructor_static_from_elts_p): Constify.
10349 2007-07-28 Kazu Hirata <kazu@codesourcery.com>
10351 * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
10352 config/arm/neon-schedgen.ml, config/arm/neon.ml,
10353 config/arm/vec-common.md, config/ia64/div.md, cselib.c,
10354 df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
10355 regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
10356 tree-vect-transform.c, tree.def: Fix comment typos. Follow
10357 spelling conventions.
10358 * doc/invoke.texi: Follow spelling conventions.
10360 2007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
10361 Revital Eres <eres@il.ibm.com>
10363 * modulo-sched.c (sms_schedule): Avoid loops which includes
10364 auto-increment instructions.
10366 2007-07-28 Richard Guenther <rguenther@suse.de>
10368 PR middle-end/32920
10369 * fold-const.c (fold_cond_expr_with_comparison): Convert
10370 operand zero of MIN/MAX_EXPR to correct type.
10372 2007-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10374 * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
10375 flags_from_decl_or_type): Constify.
10376 * gcc.c (do_spec_1): Likewise.
10377 * print-tree.c (dump_addr, print_node_brief): Likewise.
10378 * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
10379 simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
10380 tree_purge_all_dead_eh_edges): Likewise.
10381 * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
10382 tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
10384 * tree.c (expr_location, expr_has_location, expr_locus,
10385 expr_filename, expr_lineno, get_inner_array_type,
10386 fields_compatible_p): Likewise.
10387 * tree.h (get_inner_array_type, fields_compatible_p,
10388 expr_location, expr_has_location, expr_locus, expr_filename,
10389 expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
10390 setjmp_call_p, alloca_call_p): Likewise.
10392 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
10394 * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
10395 TV_FLOW_INSENSITIVE.
10397 * tree-ssa-alias.c (compute_call_clobbered): Push/pop
10399 (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
10400 (compute_flow_insensitive_aliasing): Ditto for
10401 TV_FLOW_INSENSITIVE.
10403 2007-07-27 Jan Hubicka <jh@suse.cz>
10405 * config/i386/i386.c (register_move_cost): Remove accidentally
10406 comitted #if 0 block.
10408 * attribs.c: Include hashtab.h
10409 (attribute_hash): New.
10410 (substring): New structure.
10411 (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
10413 (init_attributes): Initialize attribute hash.
10414 (decl_attributes): Use attribute hash.
10415 * Makefile.in (attribs.c): Depend on hashtab.h.
10417 2007-07-27 Steve Ellcey <sje@cup.hp.com>
10419 * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
10421 2007-07-27 Richard Sandiford <richard@codesourcery.com>
10423 * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
10424 __mips_dspr2 and __mips_dsp_rev macros.
10425 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
10427 2007-07-27 Douglas Gregor <doug.gregor@gmail.com>
10429 * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
10431 2007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
10433 PR middle-end/32749
10435 * df-problems.c (df_create_unused_note): Removed do_not_gen parm
10436 and the updating of the live and do_not_gen sets.
10437 (df_note_bb_compute): Added updating of live and do_not_gen sets
10438 for regular defs so that the case of clobber inside conditional
10439 call is processed correctly.
10441 2007-07-27 Zdenek Dvorak <dvorakz@suse.cz>
10443 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
10444 operands with compatible type.
10446 2007-07-27 Richard Sandiford <richard@codesourcery.com>
10448 * expr.h (store_bit_field): Don't return a value.
10449 * expmed.c (check_predicate_volatile_ok): New function.
10450 (store_bit_field_1): New function, extracted from store_bit_field.
10451 Take a fallback_p argument and return true if the operation succeeded.
10452 Only use store_fixed_bit_field if fallback_p. Don't recompute
10453 mode_for_extraction; use op_mode instead. Try forcing memories
10454 into registers if the insv expander fails.
10455 (store_bit_field): Use store_bit_field_1 with fallback_p true.
10456 Don't return a value.
10457 (convert_extracted_bit_field): New function, extracted from
10459 (extract_bit_field_1): Likewise. Take a fallback_p argument
10460 and return NULL if the operation succeeded. Only use
10461 extract_fixed_bit_field if fallback_p. Only calculate one
10462 extraction mode. Combine code for extv and extzv. Try forcing
10463 memories into registers if the ext(z)v expander fails.
10464 (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
10466 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
10468 * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
10470 (df_ref): Likewise. Put regno with other integer fields.
10472 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
10474 * df.h (df_mw_hardreg): Remove "loc" field.
10475 * df-scan.c (df_ref_record): Don't set it. Remove redundant
10477 * df-problems.c (df_whole_mw_reg_unused_p): New function,
10478 split out from df_set_unused_notes_for_mw. Return false for
10479 partial references. Assert that mw_reg is a REG when returning true.
10480 (df_set_unused_notes_for_mw): Use it. Use mw_reg instead of *loc.
10481 (df_whole_mw_reg_dead_p): New function, split out from
10482 df_set_dead_notes_for_mw. Return false for partial references.
10483 Assert that mw_reg is a REG when returning true.
10484 (df_set_dead_notes_for_mw): Use it. Use mw_reg instead of *loc.
10485 Remove redundant bitmap check.
10487 2007-07-26 H.J. Lu <hongjiu.lu@intel.com>
10489 * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
10490 ($(T)crtend.o): Likwise.
10491 ($(T)crtbeginS.o): Likwise.
10492 ($(T)crtendS.o): Likwise.
10493 ($(T)crtfastmath.o): Likwise.
10495 2007-07-26 Zdenek Dvorak <dvorakz@suse.cz>
10497 * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
10498 * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
10499 * basic-block.h (struct control_flow_graph): Added x_dom_computed
10500 and x_n_bbs_in_dom_tree fields.
10502 2007-07-26 Steve Ellcey <sje@cup.hp.com>
10504 PR tree-optimization/32087
10505 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10506 Do not call scale_bbs_frequencies_int with prob of zero.
10508 2007-07-26 Julian Brown <julian@codesourcery.com>
10510 * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
10511 (neon_element_bits): Add prototypes.
10512 * config/arm/arm.c (bounds_check, neon_lane_bounds)
10513 (neon_const_bounds, neon_element_bits): New functions.
10514 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
10515 (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
10516 (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
10517 (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
10518 (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
10519 (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
10520 (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
10521 (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
10522 (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
10523 (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
10524 (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
10525 (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
10526 (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
10528 2007-07-26 Nathan Froyd <froydnj@codesourcery.com>
10530 * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
10531 (HAVE_AS_GNU_ATTRIBUTE): Undefine.
10533 2007-07-26 Mark Shinwell <shinwell@codesourcery.com>
10534 Julian Brown <julian@codesourcery.com>
10536 * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
10537 * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
10538 * config/arm/cortex-a8.md: New.
10539 * config/arm/cortex-a8-neon.md: New.
10540 * config/arm/neon-schedgen.ml: New.
10541 * config/arm/neon.md (vqh_mnem): New.
10543 (Is_float_mode): New.
10544 (Scalar_mul_8_16): New.
10546 (V_mode_nunits): New.
10547 (All instruction patterns): Annotate with neon_type attribute
10549 * config/arm/arm.md: Include cortex-a8.md.
10550 (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
10552 Annotate instruction patterns accordingly.
10553 (generic_sched): Do not use generic scheduling for Cortex-A8.
10554 (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
10556 2007-07-26 Daniel Jacobowitz <dan@codesourcery.com>
10558 * fold-const.c (fold_read_from_constant_string): Use
10559 build_int_cst_type.
10560 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10562 2007-07-26 Nick Clifton <nickc@redhat.com>
10564 * tree-ssa-operands.h: Change copyright header to refer to version
10565 3 of the GNU General Public License and to point readers at the
10566 COPYING3 file and the FSF's license web page.
10567 * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
10568 sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
10569 tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
10570 targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
10571 tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
10572 hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
10573 flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
10574 opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
10575 gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
10576 cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
10577 rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
10578 optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
10579 tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
10580 genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
10581 reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
10582 c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
10583 rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
10584 tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
10585 diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
10586 gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
10587 input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
10588 gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
10589 cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
10590 graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
10591 genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
10592 tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
10593 reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
10594 real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
10595 omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
10596 tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
10597 regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
10598 tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
10599 scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
10600 double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
10601 dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
10602 gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
10603 hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
10604 ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
10605 c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
10606 tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
10607 xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
10608 tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
10609 gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
10610 mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
10611 alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
10612 dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
10613 expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
10614 genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
10615 timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
10616 tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
10617 recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
10618 dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
10619 matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
10620 tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
10621 lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
10622 ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
10623 ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
10624 langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
10625 sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
10626 gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
10627 ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
10628 init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
10629 loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
10630 mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
10631 opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
10632 insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
10633 tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
10634 dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
10635 bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
10636 coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
10637 stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
10638 cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
10639 tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
10640 loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
10641 lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
10642 tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
10643 tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
10644 ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
10645 varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
10646 sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
10647 target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
10648 omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
10649 intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
10650 sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
10651 genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
10652 tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
10653 bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
10654 cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
10655 cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
10656 tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
10657 c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
10658 fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
10659 vecprim.h, basic-block.h, tree-ssa-structalias.c,
10660 tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
10661 passes.c, genconstants.c, c-incpath.c, c-incpath.h,
10662 struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
10663 varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
10664 reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
10665 stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
10666 params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
10667 tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
10668 convert.c, convert.h, langhooks-def.h, reload1.c,
10669 tree-ssa-operands.c: Likewise.
10671 2007-07-26 Jan Hubicka <jh@suse.cz>
10673 * tree-ssa-live.c: Include debug.h and flags.h.
10674 (mark_scope_block_unused): New function.
10675 (remove_unused_scope_block_p): New function.
10676 (remove_unused_locals): Remove unused blocks too.
10678 2007-07-25 Ian Lance Taylor <iant@google.com>
10680 * combine.c (combine_max_regno): Remove. Remove all uses.
10681 (struct reg_stat_struct): Rename from struct reg_stat.
10682 (reg_stat_type): Define, and declare VECs.
10683 (reg_stat): Change from pointer to VEC. Change all uses.
10684 (combine_split_insns): New static function.
10685 (try_combine, find_split_point): Call it instead of split_insns.
10687 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10689 * cfghooks.c (split_block): Fix the information about loop latch.
10691 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10693 * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
10695 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10697 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
10698 Scan the new edge for loop exit info.
10700 2007-07-25 Andreas Tobler <a.tobler@schweiz.org>
10702 * config/darwin.c: Include debug.h.
10704 2007-07-25 Steve Ellcey <sje@cup.hp.com>
10707 * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
10709 2007-07-25 Steve Ellcey <sje@cup.hp.com>
10711 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
10712 (HARD_REGNO_MODE_OK): Ditto.
10713 (MODES_TIEABLE_P): Ditto.
10714 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
10715 (CLASS_MAX_NREGS): Ditto.
10716 * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
10717 * config/ia64/ia64.md (divsf3_internal_thr): Removed.
10718 (divdf3_internal_thr): Removed.
10719 * config/ia64/div.md: New file.
10720 * config/ia64/constraints.md: Add H constraint.
10722 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10724 * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
10725 sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
10726 sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
10727 sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
10728 sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
10729 sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
10730 sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
10731 sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
10732 sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
10733 dump_sbitmap_file, debug_sbitmap, popcount_table,
10734 sbitmap_popcount): Constify.
10735 * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
10736 (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
10737 dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
10738 sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
10739 sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
10740 sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
10741 sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
10742 sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
10743 sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
10744 sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
10745 sbitmap_popcount, sbitmap_verify_popcount): Constify.
10747 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10749 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
10750 bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
10751 bitmap_first_set_bit, bitmap_and, bitmap_and_into,
10752 bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
10753 bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
10754 bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
10755 bitmap_intersect_p, bitmap_intersect_compl_p,
10756 bitmap_ior_and_compl, bitmap_ior_and_compl_into,
10757 debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
10759 * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
10760 bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
10761 bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
10762 bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
10763 bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
10764 debug_bitmap, debug_bitmap_file, bitmap_print,
10765 bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
10766 bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
10768 2007-07-25 Daniel Berlin <dberlin@dberlin.org>
10770 * config/darwin.c (darwin_override_options): Additional fix for
10771 debug info formats that don't support var tracking.
10773 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10775 * cselib.c (entry_and_rtx_equal_p): Constify.
10776 * gengtype.c (output_mangled_typename, write_types, write_local):
10778 * gengtype.h (const_type_p): New.
10779 * see.c (eq_descriptor_extension, hash_descriptor_extension):
10781 * tlink.c (scan_linker_output): De-constify.
10782 * tree-ssa-loop-im.c (memref_eq): Constify.
10783 * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
10784 (shared_bitmap_hash, shared_bitmap_eq): Constify.
10786 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10788 * c-common.c (fname_as_string, c_type_hash): Constify.
10789 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
10790 * cgraph.c (edge_hash, edge_eq): Likewise.
10791 * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
10792 * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
10793 reg_attrs_htab_eq): Likewise.
10794 * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
10796 * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
10797 const_decl_t, const_state_t, const_automata_list_el_t): New.
10798 (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
10799 DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
10800 automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
10801 insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
10802 reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
10803 automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
10804 compare_max_occ_cycle_nums, out_state_arcs_num,
10805 compare_transition_els_num, units_cmp, state_reservs_cmp):
10807 * genmodes.c (cmp_modes): Likewise.
10808 * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
10809 * gimplify.c (compare_case_labels): Likewise.
10810 * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
10811 * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
10812 * matrix-reorg.c (mtt_info_hash): Likewise.
10813 * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
10814 * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
10815 (htab_hash_bucket, htab_hash_elem): Constify.
10816 * tree-browser.c (TB_parent_eq): Likewise.
10817 * tree-scalar-evolution.c (hash_scev_info): Likewise.
10818 * tree-ssa-alias.c (sort_tags_by_id): Likewise.
10819 * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
10820 (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
10822 * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
10823 * tree-ssa-pre.c (const_expr_pred_trans_t): New.
10824 (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
10825 * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
10826 const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
10828 (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
10829 vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
10830 vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
10831 * tree-ssa-threadupdate.c (redirection_data_hash,
10832 redirection_data_eq): Likewise.
10833 * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
10834 * tree-ssa.c (var_ann_eq): Likewise.
10835 * tree-vrp.c (compare_case_labels): Likewise.
10836 * tree.c (int_cst_hash_hash, int_cst_hash_eq,
10837 tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
10838 tree_not_check_failed, tree_class_check_failed,
10839 tree_range_check_failed, tree_not_class_check_failed,
10840 omp_clause_check_failed, omp_clause_range_check_failed,
10841 tree_contains_struct_check_failed, tree_operand_check_failed):
10843 * tree.h (tree_contains_struct_check_failed, tree_check_failed,
10844 tree_not_check_failed, tree_class_check_failed,
10845 tree_range_check_failed, tree_not_class_check_failed,
10846 tree_operand_check_failed, omp_clause_operand_check_failed,
10847 tree_operand_length): Likewise.
10848 * var-tracking.c (const_variable): New.
10849 (variable_htab_hash, variable_htab_eq): Constify.
10850 * varasm.c (const_desc_hash): Likewise.
10852 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10854 * expr.c (handled_component_p): Constify.
10855 * fold-const.c (fit_double_type): Likewise.
10856 * real.h (real_value_from_int_cst): Likewise.
10857 * tree-flow-inline.h (gimple_in_ssa_p,
10858 gimple_aliases_computed_p, gimple_addressable_vars,
10859 gimple_call_clobbered_vars, gimple_referenced_vars,
10860 gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
10861 end_htab_p, end_referenced_vars_p, var_ann, function_ann,
10862 may_aliases, end_readonly_imm_use_p, has_zero_uses,
10863 has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
10864 is_label_stmt, is_global_var, phi_ssa_name_p,
10865 factoring_name_p, is_call_clobbered, tree_common_ann,
10866 op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
10867 unmodifiable_var_p, array_ref_contains_indirect_ref,
10868 ref_contains_array_ref, lookup_subvars_for_var,
10869 var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
10870 gimple_mem_ref_stats): Likewise.
10871 * tree-flow.h (tree_common_ann, var_ann, function_ann,
10872 may_aliases, is_exec_stmt, is_label_stmt,
10873 ref_contains_array_ref, array_ref_contains_indirect_ref,
10874 var_can_have_subvars, overlap_subvar, is_call_clobbered,
10875 unmodifiable_var_p): Likewise.
10876 * tree-gimple.c (is_gimple_min_invariant): Likewise.
10877 * tree-gimple.h (is_gimple_min_invariant): Likewise.
10878 * tree.c (type_hash_list, attribute_hash_list, tree_size,
10879 cst_and_fits_in_hwi, real_value_from_int_cst,
10880 build_real_from_int_cst, integer_zerop, integer_onep,
10881 integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
10882 tree_floor_log2, real_zerop, real_onep, real_twop,
10883 real_minus_onep, really_constant_p, purpose_member, chain_member,
10884 list_length, fields_length, int_size_in_bytes, bit_position,
10885 int_bit_position, byte_position, int_byte_position, expr_align,
10886 array_type_nelts, tree_node_structure,
10887 type_contains_placeholder_1, iterative_hash_pointer,
10888 is_attribute_with_length_p, is_attribute_p, check_qualified_type,
10889 tree_map_base_eq, type_hash_list, type_hash_eq,
10890 attribute_hash_list, type_num_arguments, tree_int_cst_equal,
10891 tree_int_cst_lt, tree_int_cst_compare, host_integerp,
10892 tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
10893 simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
10894 int_fits_type_p, get_containing_scope, decl_function_context,
10895 decl_type_context, omp_clause_operand_check_failed,
10896 initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
10897 * tree.h (omp_clause_operand_check_failed, tree_size,
10898 build_real_from_int_cst, array_type_nelts, purpose_member,
10899 tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
10900 host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
10901 is_attribute_p, check_qualified_type, expr_align,
10902 int_size_in_bytes, bit_position, int_bit_position, byte_position,
10903 int_byte_position, list_length, fields_length, initializer_zerop,
10904 integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
10905 integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
10906 tree_node_structure, handled_component_p, get_containing_scope,
10907 decl_function_context, decl_type_context, real_zerop,
10908 type_num_arguments, fit_double_type, really_constant_p,
10909 int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
10910 compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
10911 real_twop, real_minus_onep, int_cst_value): Likewise.
10913 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10915 * cfglayout.c (insn_scope, insn_line): Constify.
10916 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
10917 const_double_htab_hash, const_double_htab_eq,
10918 mem_attrs_htab_hash): Likewise.
10919 * loop-iv.c (biv_eq): Likewise.
10920 * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
10921 print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
10922 debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
10924 * rtl-error.c (location_for_asm, diagnostic_for_asm,
10925 error_for_asm, warning_for_asm, _fatal_insn,
10926 _fatal_insn_not_found): Likewise.
10927 * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
10928 rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
10929 rtl_check_failed_type2, rtl_check_failed_code1,
10930 rtl_check_failed_code2, rtl_check_failed_code_mode,
10931 rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
10932 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
10933 rtl_check_failed_type2, rtl_check_failed_code1,
10934 rtl_check_failed_code2, rtl_check_failed_code_mode,
10935 rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
10936 SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
10937 shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
10938 get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
10939 mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
10940 rtx_unstable_p, get_integer_term, get_related_value,
10941 offset_within_block_p, reg_mentioned_p, count_occurrences,
10942 reg_referenced_p, reg_used_between_p, no_labels_between_p,
10943 single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
10944 reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
10945 find_reg_note, find_regno_note, find_reg_equal_equiv_note,
10946 find_constant_src, find_reg_fusage, find_regno_fusage,
10947 pure_call_p, remove_note, side_effects_p, volatile_refs_p,
10948 volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
10949 may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
10950 computed_jump_p, auto_inc_p, in_expr_list_p,
10951 remove_node_from_expr_list, loc_mentioned_in_p,
10952 label_is_jump_target_p, reversed_comparison_code_parts,
10953 debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
10954 print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
10955 print_inline_rtx): Likewise.
10956 * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
10957 computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
10958 rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
10959 get_integer_term, get_related_value, offset_within_block_p,
10960 count_occurrences, reg_mentioned_p, no_labels_between_p,
10961 reg_used_between_p, reg_referenced_p, single_set_2,
10962 multiple_sets, set_noop_p, refers_to_regno_p,
10963 reg_overlap_mentioned_p, dead_or_set_p,
10964 covers_regno_no_parallel_p, covers_regno_p,
10965 dead_or_set_regno_p, find_reg_note, find_regno_note,
10966 find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
10967 find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
10968 remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
10969 side_effects_p, may_trap_p_1, may_trap_p,
10970 may_trap_after_code_motion_p, may_trap_or_fault_p,
10971 inequality_comparisons_p, tablejump_p, computed_jump_p_1,
10972 computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
10973 subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
10974 * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
10975 mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
10977 * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
10978 warning_for_asm): Likewise.
10979 * tree.h (print_rtl): Likewise.
10980 * varasm.c (get_pool_mode): Likewise.
10982 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10984 * c-lex.c (c_lex_with_flags, lex_string): Constify.
10985 * c-ppoutput.c (print_line, pp_dir_change): Likewise.
10986 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
10987 * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
10988 * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
10989 * ddg.c (compare_sccs): Likewise.
10990 * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
10991 * dfp.c (decimal_real_from_string, decimal_to_decnumber,
10992 decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
10993 decimal_do_fix_trunc, decimal_real_to_integer,
10994 decimal_real_to_integer2, decimal_real_maxval): Likewise.
10995 * dse.c (const_group_info_t): New.
10996 (invariant_group_base_eq, invariant_group_base_hash): Constify.
10997 * dwarf2out.c (const_dw_die_ref): New.
10998 (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
10999 * tree-browser.c (TB_parent_eq): Likewise.
11000 * unwind-dw2-fde.c (__register_frame_info_bases,
11001 __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
11002 add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
11004 * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
11005 * unwind-dw2.c (uw_frame_state_for): Likewise.
11006 * value-prof.c (histogram_hash, histogram_eq): Likewise.
11007 * value-prof.h (const_histogram_value): New.
11009 2007-07-25 Richard Sandiford <richard@codesourcery.com>
11011 * config/mips/mips.c (machine_function): Add
11012 initialized_mips16_gp_pseudo_p.
11013 (mips16_gp_pseudo_reg): Do not emit the initialization of
11014 mips16_gp_pseudo_rtx when being called from the gimple cost-
11015 calculation routines; emit it on the first use outside those
11018 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11020 * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
11023 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11024 RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
11025 RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
11026 RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
11027 RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
11028 Preserve const-ness of parameters through use of __typeof(),
11029 also constify and tidy.
11031 * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
11032 TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
11033 NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
11034 CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
11035 OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
11036 GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
11037 PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
11038 TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
11039 TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
11041 2007-07-25 Julian Brown <julian@codesourcery.com>
11042 Mark Shinwell <shinwell@codesourcery.com>
11044 * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
11045 (alpha_mangle_type): This.
11046 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11047 (TARGET_MANGLE_TYPE): Define this instead.
11048 * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
11049 * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
11050 (arm_init_neon_builtins): Fix comment.
11051 (arm_mangle_map_entry): New.
11052 (arm_mangle_map): New.
11053 (arm_mangle_type): New.
11054 * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
11055 (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
11056 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
11057 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11058 (TARGET_MANGLE_TYPE): Define this instead.
11059 * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
11060 (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
11061 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
11062 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11063 (TARGET_MANGLE_TYPE): Define this instead.
11064 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
11066 (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
11067 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11068 (TARGET_MANGLE_TYPE): Define this instead.
11069 * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
11070 (s390_mangle_type): This.
11071 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11072 (TARGET_MANGLE_TYPE): Define this instead.
11073 * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
11074 (sparc_mangle_type): This.
11075 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11076 (TARGET_MANGLE_TYPE): Define this instead.
11077 * cp/mangle.c (write_type): Call mangle_type target hook on all
11078 types before mangling. Use original type, not main variant, as
11080 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
11081 (TARGET_MANGLE_TYPE): This.
11082 * target.h (gcc_target): Rename mangle_fundamental_type to
11084 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
11085 (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
11087 2007-07-25 Julian Brown <julian@codesourcery.com>
11088 Paul Brook <paul@codesourcery.com>
11089 Joseph Myers <joseph@codesourcery.com>
11090 Mark Shinwell <shinwell@codesourcery.com>
11092 * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
11093 * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
11094 (with_fpu): Allow --with-fpu=neon.
11095 * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
11096 * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
11097 * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
11098 * config/arm/arm-protos.h (neon_immediate_valid_for_move)
11099 (neon_immediate_valid_for_logic, neon_output_logic_immediate)
11100 (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
11101 (neon_emit_pair_result_insn, neon_disambiguate_copy)
11102 (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
11103 (output_move_neon): Add prototypes.
11104 * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
11105 (all_fpus): Add FPUTYPE_NEON.
11106 (fp_model_for_fpu): Add NEON field.
11107 (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
11108 (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
11110 (arm_legitimate_address_p): Don't support fancy addressing for NEON
11112 (thumb2_legitimate_address_p): Likewise.
11113 (neon_valid_immediate): Recognize and prepare constants suitable for
11115 (neon_immediate_valid_for_move): New function. Recognize and prepare
11116 immediates for NEON move instructions.
11117 (neon_immediate_valid_for_logic): New function. Recognize and
11118 prepare immediates for NEON logic instructions.
11119 (neon_output_logic_immediate): New function. Create asm string
11120 suitable for outputting immediate logic instructions.
11121 (neon_pairwise_reduce): New function. Implement reduction using
11122 pairwise operations.
11123 (neon_expand_vector_init): New function. Expand a (possibly
11124 non-constant) vector initialization.
11125 (neon_vector_mem_operand): New function. Memory operands supported
11126 for quad-word loads/stores to/from ARM or NEON registers. Don't
11127 allow base+offset addressing for core regs.
11128 (neon_struct_mem_operand): New function. Valid mems for NEON
11130 (coproc_secondary_reload_class): Enable NEON registers to be loaded
11131 from neon_vector_mem_operand addresses without a secondary register.
11132 (add_minipool_forward_ref): Handle >8-byte minipool entries.
11133 (add_minipool_backward_ref): Likewise.
11134 (dump_minipool): Likewise.
11135 (push_minipool_fix): Likewise.
11136 (output_move_quad): New function. Output quad-word moves, loads and
11137 stores using ARM registers.
11138 (output_move_vfp): Add support for vectors in VFP (NEON) D
11140 (output_move_neon): Output a NEON load/store to/from a quadword
11142 (arm_print_operand): Implement new codes:
11143 - 'c' for unadorned integers (without a # sign).
11144 - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
11146 - 'e', 'f' for the low and high D parts of a NEON Q register.
11147 - 'q' outputs a NEON Q register.
11148 - 'h' outputs ranges of D registers for VLDM/VSTM etc.
11149 - 'T' prints NEON opcode features from a coded bitmask.
11150 - 'F' is similar to T, but signed/unsigned codes both print as
11152 - 't' is similar to T, but 'u' is printed instead of 'p'.
11153 - 'O' prints 'r' if NEON instruction should perform rounding (as
11154 specified by bitmask), else prints nothing.
11155 - '#' is a punctuation character to stop operand numbers from
11156 running together with following digits in the assembler
11157 strings for instructions (when using mode attributes).
11158 (arm_assemble_integer): Handle extra NEON vector modes. Permute
11159 constant vectors in big-endian mode, where necessary.
11160 (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
11161 Handle EI, OI, CI, XI modes.
11162 (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
11163 (ashrv2si3): Rename IWMMXT2_BUILTINs to...
11164 (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
11165 (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
11166 (neon_builtin_type_bits): Add enumeration, one bit for each vector
11168 (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
11169 (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
11170 to turn v8qi, etc. into bits defined above.
11171 (neon_itype): New enumeration. Classifications of NEON builtins.
11172 (neon_builtin_datum): Define struct. Contains information about
11173 a single builtin (with multiple modes).
11174 (CF): Define helper macro for...
11175 (VAR1...VAR10): Define builtins with a type, name and 1-10 different
11177 (neon_builtin_data): New array. Define information about builtins
11178 for use during initialization/expansion.
11179 (arm_init_neon_builtins): New function.
11180 (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
11182 (neon_builtin_compare): New function.
11183 (locate_neon_builtin_icode): New function. Find an insn code for a
11184 builtin given a function code for that builtin. Also return type of
11185 builtin (NEON_BINOP, NEON_UNOP etc.).
11186 (builtin_arg): New enumeration. Types of arguments for builtins.
11187 (arm_expand_neon_args): New function. Expand a generic NEON builtin.
11188 Takes a variable argument list of builtin_arg types, terminated by
11190 (arm_expand_neon_builtin): New function. Expand a NEON builtin.
11191 (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
11192 (neon_emit_pair_result_insn): New function. Support returning pairs
11193 of vectors via a pointer.
11194 (neon_disambiguate_copy): New function. Set up operands for a
11195 multi-word copy such that registers do not get clobbered.
11196 (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
11197 ARM_BUILTIN_NEON_BASE.
11198 (arm_file_start): Set float-abi attribute for NEON.
11199 (arm_vector_mode_supported_p): Enable NEON vector modes.
11200 (arm_mangle_map_entry): New.
11201 (arm_mangle_map): New.
11202 (arm_mangle_vector_type): New.
11203 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
11205 (TARGET_NEON): New macro. Target supports NEON.
11206 (fputype): Add FPUTYPE_NEON.
11207 (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
11208 for vectorization based on command-line arg.
11209 (NEON_REGNO_OK_FOR_NREGS): Define.
11210 (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
11211 (VALID_NEON_STRUCT_MODE): Define.
11212 (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
11213 (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
11214 * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
11215 (consttable_16): Add pattern for outputting 16-byte minipool
11217 (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
11219 (vec-common.md, neon.md): Include md files.
11220 * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
11221 * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
11222 (memory_constraint "Ut", "Un", "Us"): Define.
11223 * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
11224 (MMX_char): New mode attribute.
11225 (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
11226 (*add<mode>3_iwmmxt): New insn pattern.
11227 (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
11228 (*sub<mode>3_iwmmxt): New insn pattern.
11229 (mulv4hi3): Rename to...
11230 (*mulv4hi3_iwmmxt): This.
11231 (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
11232 (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
11233 (uminv4hi3, uminv2si3): Remove. Replace with...
11234 (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
11235 (*umin<mode>3_iwmmxt): These.
11236 (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
11237 (ashr<mode>3_iwmmxt): This new pattern.
11238 (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
11239 (lshr<mode>3_iwmmxt): This new pattern.
11240 (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
11241 (ashl<mode>3_iwmmxt): This new pattern.
11242 * config/arm/neon-docgen.ml: New file. Generate documentation for
11244 * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
11245 * config/arm/arm_neon.h: New (autogenerated).
11246 * config/arm/neon-testgen.ml: New file. Generate NEON tests
11248 * config/arm/neon.md: New file. Define NEON instructions.
11249 * config/arm/neon.ml: New file. Abstract description of NEON
11250 instructions, used to generate arm_neon.h header, documentation and
11252 * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
11253 * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
11255 * doc/extend.texi (ARM Built-in Functions): Rename and remove
11257 (ARM NEON Intrinsics): New subsection.
11258 * doc/arm-neon-intrinsics.texi: New (autogenerated).
11260 2007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
11262 * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
11265 2007-07-24 Jan Hubicka <jh@suse.cz>
11267 * regclass.c (move_table): New type.
11268 (move_cost, may_move_in_cost, may_move_out_cost): Use it.
11269 (init_move_cost): Break out from ...
11270 (init_reg_sets_1): ... here; simplify computation of
11271 have_regs-of_mode and contains_reg_of_mode.
11272 (record_reg_classes): Unswitch internal loops.
11273 (copy_cost): Trigger lazy initialization of move cost
11274 (record_address_regs): Likewise.
11276 2007-07-24 Daniel Berlin <dberlin@dberlin.org>
11278 * config/darwin.c (darwin_override_options): Don't force on
11279 flag_var_tracking_uninit when no debug info is requested.
11281 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
11283 * cfgloop.c (init_loops_structure): New function.
11284 (flow_loops_find): Create root of the loop tree unconditionally.
11286 2007-07-24 Daniel Jacobowitz <dan@codesourcery.com>
11288 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
11290 2007-07-24 Jan Hubicka <jh@suse.cz>
11292 * caller-save.c: Include ggc.h, gt-caller-save.h
11293 (reg_save_code, reg_restore_code): Rename to ...
11294 (cached_reg_save_code, cached_reg_restore_code): ... those.
11295 (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
11296 (reg_save_code, reg_restore_code): New functions.
11297 (init_caller_save): Do not intialize
11298 reg_save_code/reg_restore_code tables.
11299 * Makefile.in: (gt-caller-save.h): New.
11301 2007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
11303 * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
11304 with the mode of the original operand instead of
11307 2007-07-23 Jan Hubicka <jH@suse.cz>
11309 * i386.c (ix86_secondary_memory_needed): Break out to...
11310 (inline_secondary_memory_needed): ... here.
11311 (ix86_memory_move_cost): Break out to ...
11312 (inline_memory_move_cost): ... here; add support for IN value of 2 for
11313 maximum of input and output; fix handling of Q_REGS on 64bit.
11314 (ix86_secondary_memory_needed): Microoptimize.
11316 2007-07-23 Sebastian Pop <sebpop@gmail.com>
11318 * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
11319 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
11320 stmts_from_loop, known_dependences_p, build_rdg): New.
11321 * tree-data-ref.h: Depends on graphds.h.
11322 (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
11323 (build_rdg): Declared.
11324 * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
11326 2007-07-23 Daniel Berlin <dberlin@dberlin.org>
11328 * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
11331 2007-07-23 Peter Bergner <bergner@vnet.ibm.com>
11332 Jakub Jelinek <jakub@redhat.com>
11334 PR middle-end/PR28690
11335 * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
11337 * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
11338 and MEM_POINTER operands over REG and MEM operands.
11339 (swap_commutative_operands_p): Change return value to bool.
11340 * rtl.h: Update the corresponding prototype.
11341 * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
11342 instead of gen_rtx_PLUS.
11343 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
11344 value to bool. Change function arguments to rtx's and update code
11346 (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
11347 calls to match the new declaration.
11348 * simplify-rtx.c (simplify_associative_operation): Don't
11349 reorder simplify_binary_operation arguments.
11351 2007-07-23 Richard Sandiford <richard@codesourcery.com>
11353 * config/mips/mips.c (override_options): Use mips_costs to derive
11354 the default branch cost.
11355 * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
11357 * config/mips/mips.opt (mbranch-cost=): New option.
11358 * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
11360 2007-07-23 Richard Sandiford <richard@codesourcery.com>
11362 * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
11363 (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
11364 * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
11365 instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
11367 2007-07-23 Richard Sandiford <richard@codesourcery.com>
11369 * config/mips/constraints.md (ks): New constraint.
11370 * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
11371 (*add<mode>3_mips16): ...here.
11373 2007-07-21 Uros Bizjak <ubizjak@gmail.com>
11375 * optabs.h (enum optab_index): Add new OTI_signbit.
11376 (signbit_optab): Define corresponding macro.
11377 (enum insn_code signbit_optab[]): Remove array.
11378 * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
11379 (expand_copysign_absneg): If back end provides signbit insn, use it
11380 instead of bit operations on floating point argument.
11381 * builtins.c (enum insn_code signbit_optab[]): Remove array.
11382 (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
11383 for availability of signbit insn.
11385 * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
11386 signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
11387 SSE mode is not active.
11388 (isinf<mode>2): Disable for mfpmath=sse,387.
11390 2007-07-22 Ben Elliston <bje@au.ibm.com>
11392 * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
11394 * struct-equiv.c (note_local_live): Likewise for `y_regno'.
11396 2007-07-20 Richard Guenther <rguenther@suse.de>
11398 * tree-cfg.c (verify_expr): COND_EXPRs can have any
11399 integral typed condition.
11400 * tree-ssa.c (useless_type_conversion_p): Do not preserve
11401 booleanness. Only preserve conversions from a non-base
11402 type to a base type, not in general between types with
11403 different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
11404 * tree.def (COND_EXPR): Document that the condition
11405 can be of any integral type.
11407 2007-07-20 Nigel Stephens <nigel@mips.com>
11408 Richard Sandiford <richard@codesourcery.com>
11410 * config/mips/mips.h (mips_dwarf_regno): Declare.
11411 (DBX_REGISTER_NUMBER): Remove redundant brackets.
11412 (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
11413 (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
11414 (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
11415 (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
11416 (REG_CLASS_NAMES): Update accordingly.
11417 * config/mips/mips.c (mips_dwarf_regno): New array.
11418 (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
11419 (mips_subword): Remove special handling for accumulator registers.
11420 (override_options): Initiailize mips_dwarf_regno. Remove use
11422 (mips_swap_registers): New function.
11423 (mips_conditional_register_usage): Swap accumulator registers
11424 around if TARGET_LITTLE_ENDIAN.
11425 (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
11426 * config/mips/constraints.md (h, l): Use the endianness to choose
11427 between MD0_REG and MD1_REG.
11428 * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
11429 alternative-dependent template.
11431 2007-07-20 Richard Sandiford <richard@codesourcery.com>
11433 * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
11436 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
11438 * function.c (thread_prologue_and_epilogue_insns): Fix exit
11439 predecessor fallthru flags.
11441 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
11443 * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
11444 of compare to the same type.
11445 * cfgloopmanip.c (add_loop): Update information about loop exits.
11446 (loop_version): Remove the innermost loop requirement.
11447 * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
11448 to sizetype for pointers.
11450 2007-07-18 H.J. Lu <hongjiu.lu@intel.com>
11452 * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
11453 (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
11454 (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
11456 * config/dfp-bit.c: Empty for TFmode conversions.
11458 2007-07-18 Caroline Tice <ctice@apple.com>
11460 * var-tracking.c (find_src_status): Check for COND_EXEC insns
11461 and handle them correctly; check that src is not NULL before
11463 (find_src_set_src): Likewise.
11465 2007-07-18 Bob Wilson <bob.wilson@acm.org>
11467 * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
11468 (struct alignment_context, init_alignment_context): New.
11469 (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
11470 * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
11471 (XCHAL_HAVE_S32C1I): Likewise.
11472 (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
11473 * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
11474 (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
11475 (ATOMIC, HQI): New macros.
11476 (memory_barrier, *memory_barrier): New.
11477 (sync_lock_releasesi): New.
11478 (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
11479 (sync_lock_test_and_set<mode>): New.
11480 (sync_<atomic><mode>): New.
11481 (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
11482 * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
11483 (xtensa_expand_atomic): New.
11485 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11489 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
11490 transformation for builtin ISNORMAL.
11491 (expand_builtin): Handle BUILT_IN_ISNORMAL.
11492 * builtins.def (BUILT_IN_ISNORMAL): New.
11493 * doc/extend.texi: Document isnormal.
11495 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11499 * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
11500 optabs infrastructure. Provide generic implementation for
11502 (expand_builtin): Handle FINITE/ISFINITE.
11503 (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
11504 (fold_builtin_1): Likewise.
11506 * builtins.def (BUILT_IN_ISFINITE): New.
11508 * doc/extend.texi: Document isfinite.
11510 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11513 PR middle-end/20558
11515 * builtins.c (expand_builtin_interclass_mathfn): Provide a
11516 generic fallback for isinf.
11517 * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
11518 calculation code ...
11519 * real.c (get_max_float): ... to here.
11520 * real.h (get_max_float): New.
11522 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11524 PR middle-end/32668
11526 * builtin-attrs.def (ATTR_TYPEGENERIC,
11527 ATTR_CONST_NOTHROW_TYPEGENERIC): New.
11529 * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
11530 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
11531 BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
11532 BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
11534 * c-common.c (handle_type_generic_attribute): New.
11535 (c_common_attribute_table): Add "type generic".
11537 * c-typeck.c (convert_arguments): Handle "type generic" functions.
11539 2007-07-18 Daniel Berlin <dberlin@dberlin.org>
11541 * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
11542 * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
11545 2007-07-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
11548 * config/cris/cris.c (cris_print_index): Don't use XEXP before
11549 checking that the operand is an expression.
11551 2007-07-19 Christoph von Wittich <Christoph_vW@reactos.org>
11552 Danny Smith <dannysmith@users.sourceforge.net>
11555 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
11556 file mapping object in local namespace if Windows version later
11559 2007-07-18 Richard Sandiford <richard@codesourcery.com>
11561 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
11562 * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
11563 arm_cannot_force_const_mem.
11564 (arm_cannot_force_const_mem): New function.
11565 * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
11566 (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
11567 of arm_tls_referenced_p.
11568 * config/arm/arm.md (movsi): Split out-of-section constants when
11569 ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
11570 * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
11572 2007-07-18 Richard Sandiford <richard@codesourcery.com>
11574 * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
11576 2007-07-18 Richard Sandiford <richard@codesourcery.com>
11578 * config/mips/mips.md (*extendqihi2): Convert the destination
11581 2007-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11583 * config/pa/fptr.c: Update license header.
11584 * config/pa/milli64.S: Likewise.
11586 2007-07-17 Nick Clifton <nickc@redhat.com>
11588 * COPYING_v3: New file. Contains version 3 of the GNU General
11590 * COPYING.LIB_v3: New file. Contains version 3 of the GNU
11591 Lesser General Public License.
11592 * doc/include/gpl_v3.texi: New file. Contains version 3 of
11593 the GNU General Public License.
11595 2007-07-17 Zdenek Dvorak <dvorakz@suse.cz>
11597 PR rtl-optimization/32773
11598 * cfglayout.c (force_one_exit_fallthru): New function.
11599 (cfg_layout_finalize): Use it.
11601 2007-07-16 Richard Guenther <rguenther@suse.de>
11602 Uros Bizjak <ubizjak@gmail.com>
11604 * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
11605 before forcing it to gimple operand.
11607 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
11608 David Ung <davidu@mips.com>
11610 * config/mips/mips.h (TUNE_24K): Define.
11611 (TUNE_MACC_CHAINS): Add TUNE_24K.
11612 * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
11614 * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
11615 (r74k_int_madd): .. this new reservation.
11616 (define_bypass): Fixed bypasses for r74k_int_madd to use
11617 mips_linked_madd_p.
11618 * config/mips/24k.md (define_bypass): Define new
11619 r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
11621 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
11622 Nigel Stephens <nigel@mips.com>
11624 * config/mips/mips.md: Include 20kc.md.
11625 * config/mips/20kc.md: New file.
11626 * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
11627 (mips_adjust_cost): Tweak for 20Kc.
11628 (mips_issue_rate): Likewise.
11629 * config/mips/mips.h (TUNE_20KC): Define.
11631 2007-07-16 David Edelsohn <edelsohn@gnu.og>
11633 * config/rs6000/rs6000.c (struct processor_cost): Add
11634 cache_line_size, l1_cache_lines, and simultaneous_prefetches
11636 (*_cost): Add cache information.
11637 (rs6000_override_options): Set cache parameters.
11639 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11642 * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
11643 * doc/install.texi (mips-sgi-irix6): pthread support works now.
11645 2007-07-16 Paul Brook <paul@codesourcery.com>
11648 * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
11649 (cirrus_thumb2_movsi_insn): Ditto.
11651 2007-07-15 Geoffrey Keating <geoffk@apple.com>
11653 * config/rs6000/darwin-fallback.c (interpret_libc): Change
11654 CR2_REGNO to R_CR2.
11656 2007-07-15 Andrew Haley <aph@redhat.com>
11658 * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
11659 before looking in the context.
11661 2007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11663 PR middle-end/32398
11664 PR middle-end/32769
11665 * pa-protos.h (pa_eh_return_handler_rtx): Declare.
11666 * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
11667 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11668 (pa_output_function_prologue): Use rp_saved and
11669 current_function_is_leaf to generate .CALLINFO statement.
11670 (hppa_expand_prologue): Set rp_saved.
11671 (hppa_expand_epilogue): Use rp_saved.
11672 (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
11673 * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
11675 2007-07-14 Dirk Mueller <dmueller@suse.de>
11677 * omega.c (coalesce): Fix memory leak on early exit.
11678 * matrix-reorg.c (check_allocation_function): Likewise.
11679 * tree-vect-transform.c (vect_get_new_vect_var): free result
11681 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11682 pass pointer to edge vector
11683 (partition_hot_cold_basic_blocks): Fix memory leak.
11684 * collect2.c (prefix_from_string): Free temporary storage.
11685 * reload1.c (fixup_abnormal_edges): Free sbitmap.
11687 2007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
11689 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
11690 (DO_GLOBAL_DTORS_BODY): Likewise.
11692 2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
11693 Nigel Stephens <nigel@mips.com>
11695 * config/mips/mips.c (mips_classify_symbol): Don't return
11696 SYMBOL_SMALL_DATA for constant pool addresses if
11697 TARGET_EMBEDDED_DATA is true.
11699 2007-07-14 Uros Bizjak <ubizjak@gmail.com>
11701 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
11702 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
11703 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
11704 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
11705 __builtin_ia32_storehps, __builtin_ia32_storelps,
11706 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
11707 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
11708 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
11709 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
11710 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
11711 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
11712 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
11713 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
11714 using def_builtin_const.
11716 2007-07-14 Eric Botcazou <ebotcazou@adacore.com>
11718 PR tree-optimization/32705
11719 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
11720 (simplify_binary_expression): Use SSA_VAL consistently.
11722 2007-07-13 David Edelsohn <edelsohn@gnu.org>
11724 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
11725 (SPEFSCR_REGNO): Delete definition.
11726 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
11727 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11728 * config/rs6000/rs6000.h: Do not define *_REGNO.
11729 LINK_REGISTER_REGNUM -> LR_REGNO.
11730 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11731 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
11732 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11733 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
11734 R_VRSAVE, R_VSCR. Use them.
11735 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
11736 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
11737 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
11738 * config/rs6000/aix.h: Define R_LR. Use it.
11740 2007-07-13 Caroline Tice <ctice@apple.com>
11742 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
11743 flag_var_tracking is explicitly turned off (i.e. when variable
11744 tracking is not feasible); otherwise, turn flag_var_tracking on when
11745 flag_var_tracking_uninit is on.
11746 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
11747 note definitions, to allow recording of initialization status in the
11749 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
11750 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
11751 determine if two note locations are equal.
11752 (output_loc_list): Don't output list entries whose start & end labels
11754 (reg_loc_descriptor): Add parameter for initialization status; pass it
11755 to other loc descriptor functions.
11756 (one_reg_loc_descriptor): Add parameter for initialization status;
11757 check its value and add DW_OP_GNU_uninit to returned loc descr if
11759 (multiple_reg_loc_descriptor): Add parameter for initialization
11761 pass init status argument to other loc descriptor functions; check
11762 value of intialization parameter and add DW_OP_GNU_uninit to returned
11763 loc descr if appropriate.
11764 (based_loc_descr): Add parameter for initialization status; add new
11765 variable for return value; check value of initialization parameter and
11766 add DW_OP_GNU_uninit to returned loc descr if appropriate.
11767 (concatn_mem_loc_descriptor): Add parameter for initialization status;
11768 pass init status argument to other loc descriptor functions; check
11769 value of intialization parameter and add DW_OP_GNU_uninit to returned
11770 loc descr if appropriate.
11771 (mem_loc_descriptor): Likewise.
11772 (concat_loc_descriptor): Likewise.
11773 (concatn_loc_descriptor): Likewise.
11774 (loc_descriptor): Add parameter for initialization status; pass it as
11775 argument to other loc descriptor function calls.
11776 (loc_descriptor_from_tree_1): Add appropriate initialization status
11777 to loc descriptor function calls.
11778 (add_location_or_const_value_attribute): Get initialization status
11779 from VAR_LOCATION note; add initialization status to loc descriptor
11781 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
11782 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
11783 status is uninitialized, add "[uninint]" to output.
11784 * common.opt (fvar-tracking-uninit): New option, similar to
11785 fvar-tracking, to turn on tracking of uninitialized variables; creates
11786 a new global flag, flag_var_tracking_uninit.
11787 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
11788 (enum var_init_status): New type, for var initialization status field.
11789 * var-tracking.c (struct location_chain_def): Two new fields, init,
11790 for initialization status, and set_src for the assignment value expr.
11791 (unshare_variable): New parameter for initialization status;
11792 initialize new init and set_src fields.
11793 (var_reg_set): New parameters for initialization status and value;
11794 pass them to set_variable_part.
11795 (var_mem_set): Likewise.
11796 (get_init_value): New function.
11797 (var_reg_delete_and_set): New initialization status & value
11798 parameters; add call to get_init_value if status is unknown; pass new
11799 parameters to clobber_variable_part and var_reg_set.
11800 (var_mem_delete_and_set): Likewise.
11801 (var_reg_delete): Pass null set_src value to clobber_variable_part.
11802 (var_mem_delete): Likewise.
11803 (variable_union): Pass status to unshare_variable; initialize new init
11804 and set_src fields. If flag_var_tracking_uninit is not set, force
11805 status to initialized.
11806 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
11807 used later to get the set_src value.
11808 (find_src_status): New function.
11809 (find_src_set_src): New function.
11810 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
11811 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
11812 MO_SET, get set_src value and pass it to var_reg_delete_and_set
11813 and var_mem_delete_and_set.
11814 (dump_variable): Print out "[uninit]" if appropriate.
11815 (set_variable_part): Add new initialization and set_src parameters;
11816 pass status to unshare_variable; set node->init and node- >set_src
11817 fields and modify slot in hash table appropriately; save the init and
11818 set_src values if appropriate and assign to the new node.
11819 (clobber_variable_part): New set_src parameter; if two nodes have
11820 same variable and same location but different set_src (assignment)
11821 values, clobber old node.
11822 (delete_variable_part): Pass init status to unshare_variable.
11823 (emit_note_insn_var_location): Add initialized var; assign var's init
11824 status to new 'initialized'; pass new init status field to calls to
11825 gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
11826 status to initialized.
11827 (emit_notes_in_bb): Pass initialization status to calls to
11828 var_reg_set, var_mem_set, var_reg_delete_and_set and
11829 var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
11830 var_reg_delete_and_set and var_mem_delete_and_set; call
11831 emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
11832 make up for change in add_stores.
11833 (vt_add_function_parameters): Add status to calls to
11835 * config/darwin.c (darwin_override_options): Turn on uninitialized
11836 tracking automatically, if var_tracking is on and the system is
11839 2007-07-13 Sa Liu <saliu@de.ibm.com>
11841 * config.gcc: Add options for arch and tune on SPU.
11842 * config/spu/predicates.md: Add constant operands 0 and 1.
11843 * config/spu/spu-builtins.def: Add builtins for double precision
11844 floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt,
11845 si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
11847 * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with
11849 * config/spu/spu-protos.h: Add new function prototypes.
11850 * config/spu/spu.c (spu_override_options): Check options -march and
11852 (spu_comp_icode): Add comparison code for DFmode and vector mode.
11853 (spu_emit_branch_or_set): Use the new code for DFmode and vector
11855 (spu_const_from_int): New. Create a vector constant from 4 ints.
11856 (get_vec_cmp_insn): New. Get insn index of vector compare instruction.
11857 (spu_emit_vector_compare): New. Emit vector compare.
11858 (spu_emit_vector_cond_expr): New. Emit vector conditional expression.
11859 * config/spu/spu.h: Add options -march and -mtune. Define processor
11860 types PROCESSOR_CELL and PROCESSOR_CELLEDP. Define macro
11861 CANONICALIZE_COMPARISON.
11862 * config/spu/spu.md: Add new insns for double precision compare
11863 and double precision vector compare. Add vcond and smax/smin patterns
11864 to enable DFmode vector conditional expression.
11865 * config/spu/spu.opt: Add options -march and -mtune.
11866 * config/spu/spu_internals.h: Add builtins for CELLEDP target:
11867 si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv. Add builtin for
11868 both CELL and CELLEDP targets: spu_testsv.
11869 * config/spu/spu_intrinsics.h: Add flag mnemonics for test special
11872 2007-07-13 Richard Guenther <rguenther@suse.de>
11874 PR tree-optimization/32721
11875 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
11876 TREE_THIS_VOLATILE on the folded reference.
11877 * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
11878 if the array reference has TREE_THIS_VOLATILE set.
11880 2007-07-13 H.J. Lu <hongjiu.lu@intel.com>
11883 * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
11885 2007-07-13 Andreas Schwab <schwab@suse.de>
11887 * gengtype-lex.l: Allow declarations to be indented.
11889 2007-07-12 Geoffrey Keating <geoffk@apple.com>
11891 * ginclude/tgmath.h: New.
11892 * config.gcc: Use GCC's tgmath.h on non-glibc systems.
11893 * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
11894 * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
11895 * configure: Regenerate.
11897 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11899 * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
11900 correct index when setting register save state for xd
11903 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11905 * config/sh/sh.c (mark_use): Remove.
11907 2007-07-12 Paul Brook <paul@codesourcery.com>
11909 * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
11910 reg does not overlap return value.
11912 2007-07-12 Daniel Berlin <dberlin@dberlin.org>
11914 * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
11915 (set_expression_vuses): Ditto.
11916 (init_pre): Initialize expression_vuses.
11918 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11920 * config/i386/sse.md (storentdf, storentsf): New.
11922 2007-07-12 Geoffrey Keating <geoffk@apple.com>
11924 * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
11926 * tree.c (build_decl_stat): Move code from here...
11927 (make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
11928 (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
11929 about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
11930 * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
11931 * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
11934 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
11935 Devang Patel <dpatel@apple.com>
11937 PR tree-optimization/25413
11938 * targhooks.c (default_builtin_vector_alignment_reachable): New.
11939 * targhooks.h (default_builtin_vector_alignment_reachable): New.
11940 * tree.h (contains_packed_reference): New.
11941 * expr.c (contains_packed_reference): New.
11942 * tree-vect-analyze.c (vector_alignment_reachable_p): New.
11943 (vect_enhance_data_refs_alignment): Call
11944 vector_alignment_reachable_p.
11945 * target.h (vector_alignment_reachable): New builtin.
11946 * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
11947 * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
11948 (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
11950 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
11952 * target.h (builtin_vectorization_cost): Add new target builtin.
11953 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
11954 * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
11955 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
11956 * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
11957 uninitialized variables.
11958 * tree-vect-transform.c (cost_for_stmt): New function.
11959 (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
11960 using cost 1 for all scalar stmts. Be less conservative when
11961 estimating the number of prologue/epulogue iterations. Call
11962 targetm.vectorize.builtin_vectorization_cost. Return
11963 min_profitable_iters-1.
11964 (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
11965 initialization cost instead of TARG_VEC_STMT_COST. Use
11966 TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
11967 epilogue code. Fix epilogue cost computation.
11968 * config/spu/spu.c (spu_builtin_vectorization_cost): New.
11969 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
11970 * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
11971 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
11972 (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
11973 (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
11975 2007-07-12 Richard Guenther <rguenther@suse.de>
11977 * gimplify.c (gimplify_conversion): Make sure that the result
11978 from maybe_fold_offset_to_reference is trivially convertible
11979 to the desired type before doing the simplification.
11980 (gimplify_expr): Likewise.
11981 * fold-const.c (fold_binary): Use the correct types for
11982 building the simplified expression.
11984 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11986 PR rtl-optimization/32729
11987 * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
11988 that fallthru to exit.
11990 2007-07-12 Kaz Kojima <kkojima@gcc.gnu.org>
11992 * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
11993 (symDTPOFF2reg): Likewise.
11995 2007-07-11 Daniel Berlin <dberlin@dberlin.org>
11997 PR tree-optimization/32663
11999 * tree.h (VALUE_HANDLE_VUSES): Remove.
12000 (struct tree_value_handle): Remove vuses.
12002 * tree-vn.c (create_value_handle_for_expr): Don't set
12003 VALUE_HANDLE_VUSES.
12005 * tree-ssa-pre.c (expression_vuses): New.
12006 (alloc_expression_id): Set up expression_vuses.
12007 (get_expression_vuses): New.
12008 (set_expression_vuses): Ditto.
12009 (clear_expression_ids): Modify for expression_vuses.
12010 (phi_translate_1): Ditto.
12011 (phi_translate_set): Ditto.
12012 (value_dies_in_block_x): Ditto
12013 (valid_in_sets): Ditto.
12014 (add_to_sets): Ditto.
12015 (find_existing_value_expr): Ditto.
12016 (create_value_handle_for_expr): Ditto.
12017 (make_values_for_stmt): Ditto.
12018 (vuse_equiv): Remove.
12020 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
12022 * Makefile.in (mostlyclean): Remove object files.
12024 2007-07-11 Kenneth Zadeck <zadeck@naturalbridge.com>
12026 * toplev.c (no_new_pseudos): Deleted.
12027 * rtl.h (no_new_pseudos): Deleted.
12028 * tree-pass.h (pass_no_new_pseudos): Deleted.
12029 * passes.c (pass_no_new_pseudos): Deleted.
12030 * final.c (rest_of_clean_state): Removed no_new_pseudos.
12031 (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
12032 * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with
12034 * cfgcleanup.c (try_crossjump_to_edge): Ditto.
12035 * rtlhooks.c (gen_lowpart_general): Ditto.
12036 * optabs.c (prepare_operand): Ditto.
12037 * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
12039 * modulo-sched.c (rest_of_handle_sms): Ditto.
12040 * see.c (rest_of_handle_see): Ditto.
12041 * ifcvt.c (if_convert): Ditto.
12042 (gate_handle_if_after_combine): Replaced no_new_pseudos with
12044 * init-regs.c (gate_initialize_regs): Deleted set of
12046 * lower-subreg.c (decompose_multiword_subregs): Ditto.
12047 * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
12048 * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
12050 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
12053 * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
12054 (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
12055 (*vec_extractv2di_1_rex64): New insn pattern.
12057 2007-07-11 David Daney <ddaney@avtrex.com>
12059 * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
12060 return address calculation. Substitute DWARF_ALT_FRAME_RETURN_COLUMN
12061 for SIGNAL_UNWIND_RETURN_COLUMN.
12062 * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
12063 (DWARF_FRAME_REGNUM): Rewrite.
12064 (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
12066 2007-07-11 Nick Clifton <nickc@redhat.com>
12068 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
12069 delta and use gen_int_mode in place of GET_INT instead.
12071 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
12073 * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
12076 2007-07-11 Douglas Gregor <doug.gregor@gmail.com>
12078 * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
12079 (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical
12081 * params.h (VERIFY_CANONICAL_TYPES): Remove.
12082 (USE_CANONICAL_TYPES): New.
12083 * doc/invoke.texi (verify-canonical-types): Remove.
12084 (use-canonical-types): Add.
12086 2007-07-11 Ulrich Weigand <uweigand@de.ibm.com>
12088 * config/spu/spu.c (spu_optimization_options): Remove setting of
12089 parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
12090 (spu_override_options): Move it here.
12092 2007-07-11 Richard Sandiford <richard@codesourcery.com>
12094 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
12095 * config/mips/mips.c (mips_cpu_info_table): Mention
12096 MIPS_ISA_LEVEL_SPEC in the comment.
12098 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
12100 PR tree-optimization/32713
12101 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
12103 2007-07-11 Paolo Carlini <pcarlini@suse.de>
12105 PR middle-end/30482
12106 * c-opts.c (c_common_post_options): Do not change flag_complex_method
12107 conditional to flag_isoc99.
12108 (c_common_init_options): Do it here, unconditionally.
12110 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
12112 PR tree-optimization/32589
12113 * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
12114 * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
12115 * tree-ssa-propagate.c (valid_gimple_expression_p): New
12116 predicate, extracted from...
12117 (set_rhs): ...here. Call it for the expression on entry.
12118 * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
12119 * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
12120 (simplify_binary_expression): Use valid_gimple_expression_p
12121 to validate the simplification.
12122 * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
12124 2007-07-11 Danny Smith <dannysmith@users.sourceforge.net>
12126 * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
12127 DWARF2_DEBUG on 32 bit target too.
12128 (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition.
12130 2007-07-11 Nick Clifton <nickc@redhat.com>
12132 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
12133 version for 64-bit hosts.
12135 2007-07-10 David Daney <ddaney@avtrex.com>
12137 * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
12139 (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of library
12141 * config/mips/mips.c (mips_expand_synci_loop): New function.
12142 * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
12143 (UNSPEC_RDHWR): Same.
12144 (UNSPEC_SYNCI): Same.
12145 (UNSPEC_SYNC): Same.
12146 (clear_cache): New expand.
12150 (clear_hazard): Same.
12151 * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
12153 * testsuite/gcc.target/mips/clear-cache-1.c: New test.
12154 * testsuite/gcc.target/mips/clear-cache-2.c: New test.
12156 2007-07-10 Ian Lance Taylor <iant@google.com>
12158 * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
12161 2007-07-10 David Daney <ddaney@avtrex.com>
12163 * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
12164 * builtins.c (expand_builtin___clear_cache): New function.
12165 (expand_builtin): Call expand_builtin___clear_cache for
12166 BUILT_IN_CLEAR_CACHE case.
12167 * doc/extend.texi (__builtin___clear_cache): Document new builtin.
12168 * doc/md.texi (clear_cache): Document new instruction pattern.
12169 * testsuite/gcc.dg/builtins-64.c: New test.
12171 2007-07-11 Hans-Peter Nilsson <hp@axis.com>
12173 * config/cris/cris.md ("movsi"): Fix typo in last change.
12175 2007-07-09 Geoffrey Keating <geoffk@apple.com>
12178 * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
12180 (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
12181 * varasm.c (assemble_start_function): Honor DECL_ALIGN
12182 for FUNCTION_DECLs. Don't use align_functions_log if
12184 * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
12185 even for FUNCTION_DECLs.
12186 * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
12188 * tree.h (DECL_ALIGN): Update for new location of 'align'.
12189 (DECL_FUNCTION_CODE): Update for new location and name of
12191 (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
12192 (struct tree_decl_common): Move 'align' and 'off_align' out
12193 of union, ensure they're still on a 32-bit boundary. Remove
12194 other fields in union 'u1'.
12195 (struct tree_function_decl): Add field 'function_code' replacing
12196 'u1.f' in tree_decl_common.
12197 * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
12198 * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
12199 (Variable Attributes): Cross-reference 'aligned' attribute
12200 to Function Attributes.
12201 * flags.h (force_align_functions_log): Delete.
12202 * toplev.c (force_align_functions_log): Delete.
12204 2007-07-10 Uros Bizjak <ubizjak@gmail.com>
12207 * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
12208 (*vec_concatv2di_rex): New insn pattern.
12210 2007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12213 * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
12215 2007-07-10 Ian Lance Taylor <iant@google.com>
12217 Replace no_new_pseudos in backends.
12218 * rtl.h (can_create_pseudo_p): Define.
12219 * config/darwin.c (machopic_indirect_data_reference): Use
12220 can_create_pseudo_p () instead of no_new_pseudos.
12221 (machopic_indirect_data_reference): Likewise.
12222 (machopic_legitimize_pic_address): Likewise.
12223 * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
12224 (alpha_emit_set_const_1): Likewise.
12225 (alpha_emit_set_const): Likewise.
12226 (alpha_emit_conditional_move): Likewise.
12227 (alpha_split_conditional_move): Likewise.
12228 * config/alpha/alpha.md (various splitters): Likewise.
12230 * config/arm/arm.c (legitimize_pic_address): Likewise.
12231 (arm_load_pic_register): Likewise.
12232 * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
12233 (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
12234 * config/bfin/bfin.c (legitimize_pic_address): Likewise.
12235 * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
12236 * config/cris/cris.md (movsi): Likewise.
12237 * config/frv/frv.md (symGOT2reg_hilo): Likewise.
12238 (symGOTOFF2reg_hilo): Likewise.
12239 (symGPREL2reg, symGPREL2reg_hilo): Likewise.
12240 * config/h8300/h8300.md (insv, extzv): Likewise.
12241 * config/i386/i386.c (ix86_expand_move): Likewise.
12242 (ix86_expand_vector_move): Likewise.
12243 (ix86_prepare_fp_compare_args): Likewise.
12244 (ix86_expand_carry_flag_compare): Likewise.
12245 * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
12246 (tls_dynamic_gnu2_combine_32): Likewise.
12247 (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
12248 * config/ia64/ia64.c (ia64_expand_move): Likewise.
12249 (ia64_expand_movxf_movrf): Likewise.
12250 * config/m32c/m32c.c (m32c_prepare_move): Likewise.
12251 (m32c_split_move): Likewise.
12252 (m32c_expand_insv): Likewise.
12253 * config/m68k/m68k.md (movsi): Likewise.
12254 * config/mips/mips.c (mips_force_temporary): Likewise.
12255 (mips_split_symbol): Likewise.
12256 (mips_move_integer): Likewise.
12257 (mips_legitimize_const_move): Likewise.
12258 * config/mn10300/mn10300.md (movsi): Likewise.
12259 * config/pa/pa.c (emit_move_sequence): Likewise.
12260 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12261 (rs6000_got_register): Likewise.
12262 (create_TOC_reference): Likewise.
12263 (rs6000_machopic_legitimize_pic_address): Likewise.
12264 * config/rs6000/rs6000.md (add<mode>3): Likewise.
12265 (various splitters): Likewise.
12266 (iorsi3, xorsi3, iordi3, xordi3): Likewise.
12267 (movsi_got): Likewise.
12268 * config/s390/s390.c (emit_symbolic_move): Likewise.
12269 * config/s390/s390.md (movhi, movqi): Likewise.
12270 (load_multiple, store_multiple): Likewise.
12271 * config/score/score.c (score_force_temporary): Likewise.
12272 * config/sh/sh.c (prepare_move_operands): Likewise.
12273 (prepare_cbranch_operands): Likewise.
12274 (emit_fpu_switch): Likewise.
12275 (fpscr_set_from_mem): Likewise.
12276 * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
12277 (adddi3, subsi3): Likewise.
12278 (various splitters): Likewise.
12279 (divsi_inv_fp_combine): Likewise.
12280 (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
12281 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
12283 * config/sh/predicates.md (xor_operand): Likewise.
12284 * config/sparc/sparc.c (legitimize_tls_address): Likewise.
12285 * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
12286 (movdi_pic_label_ref): Likewise.
12287 * config/spu/spu.c (spu_split_immediate): Likewise.
12288 * config/alpha/alpha.md (various splitters): Remove test
12289 !no_new_pseudos || reload_completed.
12290 * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
12292 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12293 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12294 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12295 * config/score/score.c (th_output_mi_thunk): Likewise.
12296 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12297 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12299 2007-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
12301 PR rtl-optimization/32664
12302 * mode-switching.c (create_pre_exit): Skip barrier insns.
12304 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
12306 * tree-scalar-evolution.c (scev_const_prop): Add arguments to
12307 force_gimple_operand_bsi.
12308 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
12309 rewrite_use_compare): Ditto.
12310 * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
12312 * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
12313 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
12314 * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
12315 * tree-profile.c (prepare_instrumented_value,
12316 tree_gen_interval_profiler, tree_gen_pow2_profiler,
12317 tree_gen_one_value_profiler, tree_gen_ic_profiler,
12318 tree_gen_ic_func_profiler, tree_gen_average_profiler,
12319 tree_gen_ior_profiler): Ditto.
12320 * tree-ssa-reassoc.c (negate_value): Ditto.
12321 * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
12322 Use force_gimple_operand_bsi.
12323 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
12324 * tree-if-conv.c (add_to_dst_predicate_list,
12325 find_phi_replacement_condition): Ditto.
12326 * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
12327 Call mark_symbols_for_renaming for new statements.
12328 * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
12330 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
12332 * cfghooks.c (remove_edge): New function.
12333 (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
12335 * cfghooks.h (remove_edge): Declare.
12336 * cfg.c (remove_edge): Renamed to remove_edge_raw.
12337 * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
12339 2007-07-09 Wolfgang Gellerich <gellerich@de.ibm.com>
12341 * optabs.h: Added declaration for signbit_optab.
12342 * optabs.c: (init_optabs): Added initialization for signbit_optab.
12343 * genoptinit.c (optabs): Added entry for signbit insns.
12344 * builtins.c (expand_builtin_signbit): Added code to use a signbit
12345 insn, if available.
12346 * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.
12347 * config/s390/s390.md (signbit<mode>2): New expander.
12349 2007-07-09 Richard Guenther <rguenther@suse.de>
12351 PR middle-end/32698
12352 * fold-const.c (fold_plusminus_mult_expr): Move constant
12353 arguments second to allow decomposing.
12355 2007-07-09 Alexandre Oliva <aoliva@oliva.athome.lsd.ic.unicamp.br>
12358 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
12360 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12361 Disregard DECL_FROM_INLINE.
12363 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
12366 * doc/invoke.texi: Add ftree-reassoc flag.
12367 * common.opt (ftree-reassoc): New flag.
12368 * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
12369 (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
12371 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
12373 PR tree-optimization/32681
12374 * tree-if-conv.c (find_phi_replacement_condition): Use the condition
12375 saved in second_edge->aux when first_bb is a loop header.
12377 2007-07-09 Jan HUbicka <jh@suse.cz>
12379 * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
12381 2007-07-09 Richard Guenther <rguenther@suse.de>
12383 * c-decl.c (start_function): Do not promote return type.
12385 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
12387 * function.c (do_warn_unused_parameter): Do not warn if
12388 TREE_NO_WARNING is set.
12390 2007-07-08 Andreas Schwab <schwab@suse.de>
12392 * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
12394 2007-07-08 Sandra Loosemore <sandra@codesourcery.com>
12397 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
12399 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
12400 apply to assembly language, too.
12401 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
12403 2007-07-07 Daniel Berlin <dberlin@dberlin.org>
12405 Revert (note the sccvn portions are *not* reverted)
12406 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
12408 Fix PR tree-optimization/23488
12410 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
12412 * tree-flow-inline.h (get_value_handle): Ditto.
12413 * tree-ssa-pre.c (decl_vh_map): New.
12414 (decl_node_pool): New.
12415 (can_value_number_operation): Support DECL_P.
12416 (can_PRE_operation): Ditto.
12417 (create_expression_by_pieces): Ditto.
12418 (find_existing_value_expr): Modify to differnetiate between
12419 addressing and top level.
12420 (create_value_handle_for_expr): Handle DECL's.
12421 (poolify_tree): Ditto.
12422 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
12423 (make_values_for_stmt): Handle DECL's properly.
12424 (init_pre): Reorg to not init useless things during FRE.
12426 * tree-flow.h: Include pointer-set.h.
12427 (decl_vh_map): Declare.
12428 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
12430 2007-07-07 Eric Weddington <eweddington@cso.atmel.com>
12432 * config/avr/constraints.md (define_memory_constraint "Q"): Fix
12433 the constraint description.
12434 * doc/md.texi: Update documentation of AVR constraints.
12436 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
12438 * auto-inc-dec.c, config/arm/arm.c,
12439 config/m32r/constraints.md, config/mips/mips.md,
12440 config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
12441 df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
12442 tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
12443 typos. Follow spelling conventions.
12444 * doc/invoke.texi, doc/rtl.texi: Fix typos.
12446 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
12447 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
12449 * tree-ssa-operands.c (realloc_vop, realloc_vdef,
12450 realloc_vuse): Remove.
12451 * tree-ssa-operands.h: Remove the prototype for realloc_vdef
12454 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
12456 Fix PR tree-optimization/23488
12458 * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
12459 (try_to_simplify): Ditto.
12460 (visit_use): Ditto.
12461 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
12463 * tree-flow-inline.h (get_value_handle): Ditto.
12464 * tree-ssa-pre.c (decl_vh_map): New.
12465 (decl_node_pool): New.
12466 (can_value_number_operation): Support DECL_P.
12467 (can_PRE_operation): Ditto.
12468 (create_expression_by_pieces): Ditto.
12469 (find_existing_value_expr): Modify to differnetiate between
12470 addressing and top level.
12471 (create_value_handle_for_expr): Handle DECL's.
12472 (poolify_tree): Ditto.
12473 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
12474 (make_values_for_stmt): Handle DECL's properly.
12475 (init_pre): Reorg to not init useless things during FRE.
12477 * tree-flow.h: Include pointer-set.h.
12478 (decl_vh_map): Declare.
12479 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
12481 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
12483 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
12484 apply to assembly language, too.
12485 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
12487 2007-07-06 Ian Lance Taylor <iant@google.com>
12488 Zack Weinberg <zackw@panix.com>
12490 PR middle-end/32441
12491 * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
12493 2007-07-06 Richard Sandiford <richard@codesourcery.com>
12495 * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
12496 (prefetch): Likewise if "pref" would be used.
12498 2007-07-06 Josh Conner <jconner@apple.com>
12500 PR middle-end/32602
12501 PR middle-end/32603
12502 * calls.c (store_one_arg): Handle arguments which are partially
12503 on the stack when detecting argument overlap.
12505 2007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
12507 * reload1.c (choose_reload_regs): Set reload_spill_index for regs
12508 chosen during find_reloads.
12510 2007-07-06 Richard Guenther <rguenther@suse.de>
12512 * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
12513 TYPE_ARG_TYPES for verification of argument types. Use
12514 DECL_ARG_TYPE instead of the PARM_DECL type. Take excess
12515 parameters as variable arguments.
12517 2007-07-06 Andreas Krebbel <krebbel1@de.ibm.com>
12519 * libgcc2.h (word_type): Type definition removed.
12520 (cmp_return_type, shift_count_type): Type definitions added.
12521 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
12522 replaced with shift_count_type.
12523 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
12525 * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
12526 changed from word_type to Wtype.
12527 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
12528 replaced with shift_count_type.
12529 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
12531 * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
12532 and libgcc_shift_count attribute added.
12533 * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
12534 TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
12535 (TARGET_INITIALIZER): New target hooks added.
12536 * targhooks.c (default_libgcc_cmp_return_mode,
12537 default_libgcc_shift_count_mode): Default implementations for the new
12538 target hooks added.
12539 * targhooks.h (default_libgcc_cmp_return_mode,
12540 default_libgcc_shift_count_mode): Function prototypes added.
12541 * target.h (struct gcc_target): Fields for the new target hooks added.
12542 * optabs.c (expand_binop): Use shift_count_mode when expanding shift
12544 (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
12547 * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
12548 TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
12550 * config/s390/s390.c (s390_libgcc_cmp_return_mode,
12551 s390_libgcc_shift_count_mode): Functions added.
12552 (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
12553 Target hooks defined.
12555 2007-07-06 Richard Sandiford <richard@codesourcery.com>
12557 * config/mips/mips.c (compute_frame_size): Restore the original
12558 gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
12559 fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
12560 Document why the difference is needed.
12562 2007-07-06 Richard Guenther <rguenther@suse.de>
12564 * c-common.c (boolean_increment): Use correctly typed
12567 2007-07-06 Richard Sandiford <richard@codesourcery.com>
12569 * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
12570 the topmost argument register is not also included in the save mask.
12571 (mips16e_collect_argument_save_p): Take a pointer to the argument
12572 register, rather than a pointer to the number of arguments.
12573 (mips16e_collect_argument_saves): Only include argument saves
12574 that aren't in the register mask.
12576 2007-07-06 Uros Bizjak <ubizjak@gmail.com>
12578 PR rtl-optimization/32450
12579 * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
12580 to ensure that instructions are not moved into the prologue when
12581 profiling is on. Remove unused prologue_end variable.
12582 (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
12583 as a scheduling barrier.
12585 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
12588 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12589 Disregard DECL_FROM_INLINE.
12591 2007-07-05 Adam Nemet <anemet@caviumnetworks.com>
12593 * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
12594 IORing with a constant.
12596 2007-07-05 Seongbae Park <seongbae.park@gmail.com>
12598 PR rtl-optimization/32475
12599 * df-scan.c (df_def_record_1): Add a use of the stack pointer
12600 for every definition of the stack pointer.
12602 2007-07-05 Richard Earnshaw <rearnsha@arm.com>
12604 * arm.c (vfp3_const_double_index): Copy signed results of
12605 REAL_VALUE_TO_INT into unsigned vars.
12607 2007-07-05 Richard Guenther <rguenther@suse.de>
12609 PR middle-end/32639
12610 * alias.c (get_alias_set): Tread METHOD_TYPE the same as
12612 * tree-ssa.c (useless_type_conversion_p): Check canonical
12615 2007-07-05 Anatoly Sokolov <aesok@post.ru>
12617 * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2,
12618 zero_extendhisi2): Change to define_insn_and_split.
12619 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
12621 2007-07-05 Paolo Bonzini <bonzini@gnu.org>
12623 * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
12624 pass_match_asm_constraints): New.
12625 * passes.c (init_optimization_passes): Add new pass.
12626 * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
12627 * function.h (struct function): Add has_asm_statement bit.
12628 (current_function_has_asm_statement): New.
12629 * tree-pass.h (pass_match_asm_constraints): New.
12631 2007-07-05 Richard Sandiford <rsandifo@nildram.co.uk>
12633 * config/mips/mips.c (mips_file_start): Avoid declaration
12636 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12638 * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
12640 2007-07-05 Uros Bizjak <ubizjak@gmail.com>
12642 * rtl.def (NOTE): Change print format string to print
12643 operand 5 as a note insn name.
12645 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12646 David Ung <davidu@mips.com>
12648 * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
12649 * doc/invoke.texi: (MIPS Options): Document them.
12651 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12652 David Ung <davidu@mips.com>
12654 Add support for SmartMIPS ASE.
12656 * optabs.c (expand_binop_directly): New, broken out from...
12657 (expand_binop): Here. Make it try rotating in the other
12658 direction even when the second operand isn't constant.
12659 * config/mips/mips.md (*lwxs): New.
12660 * config/mips/mips.opt (msmartmips): New.
12661 * config/mips/mips.c (mips_lwxs_address_p): New.
12662 (mips_rtx_costs): Make it recognize scaled indexed addressing.
12663 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
12664 __mips_smartmips when compiling for TARGET_SMARTMIPS.
12665 (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
12666 (ISA_HAS_LWXS): New.
12667 (ASM_SPEC): Add -msmartmips/-mno-smartmips.
12668 * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
12669 * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
12670 * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
12671 * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
12672 * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
12673 * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
12675 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
12677 * tree-vectorizer.c (new_loop_vec_info): Initialize
12678 LOOP_VINFO_COST_MODEL_MIN_ITERS.
12679 * tree-vectorizer.h (_loop_vec_info): Added new filed
12680 min_profitable_iters.
12681 (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
12682 (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
12683 * tree-vect-analyze.c (vect_analyze_operations): Set
12684 LOOP_VINFO_COST_MODEL_MIN_ITERS.
12685 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
12686 VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
12687 Fix calculation of peel_iters_prologue. Move consideration of epilogue
12688 and prologue cost to after they are computed.
12689 (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
12690 TARG_VEC_STMT_COST.
12691 (vect_model_simple_cost): Takes additional argument dt. Consider cost
12692 of creating vectors from scalars according to dt.
12693 (vect_model_store_cost): Likewise.
12694 (vectorizable_call): Use dt array instead of scalar dt. Call
12695 vect_model_simple_cost with additional argument dt.
12696 (vectorizable_assignment): Likewise.
12697 (vectorizable_operation): Likewise.
12698 (vectorizable_type_demotion): Likewise.
12699 (vectorizable_type_promotion): Likewise.
12700 (vectorizable_store): Use dt array instead of scalar dt. Call
12701 vect_model_store_cost with additional argument dt.
12702 (vect_do_peeling_for_loop_bound): Don't call
12703 vect_estimate_min_profitable_iters. Instead, lookup
12704 LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
12705 "may not be profitable".
12707 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
12710 * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
12711 (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
12712 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
12713 (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns.
12715 2007-07-05 Zdenek Dvorak <dvorakz@suse.cz>
12717 * config/i386/i386.c (ix86_address_cost): Do not consider more complex
12718 addressing modes cheaper.
12720 2007-07-05 Alexandre Oliva <aoliva@redhat.com>
12722 * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
12723 (dw_ranges_struct): Rename block_num to num. Adjust.
12724 (dw_ranges_by_label_struct): New.
12725 (ranges_by_label, ranges_by_label_allocated,
12726 ranges_by_label_in_use): New variables.
12727 (add_ranges_num): Factored most of the code out of...
12728 (add_ranges): ... this one. Rewrite in terms of the former.
12729 (add_ranges_by_labels): New.
12730 (output_ranges): Output by-label ranges.
12731 (dwarf2out_finish): Output range for multiple-section
12732 compile_unit. Output standard DW_AT_low_pc in addition to
12733 unexpected DW_AT_entry_pc.
12735 2007-07-04 Daniel Berlin <dberlin@dberlin.org>
12737 PR tree-optimization/32604
12738 PR tree-optimization/32606
12740 * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
12741 (compute_antic_safe): Removed.
12742 (ANTIC_SAFE_LOADS): Ditto.
12743 (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
12744 (execute_pre): Don't call compute_antic_safe.
12745 (vuse_equiv): New function.
12746 (make_values_for_stmt): Use it
12747 * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
12750 2007-07-04 Anatoly Sokolov <aesok@post.ru>
12753 * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
12754 rather than a decl.
12755 (avr_attribute_table): Make "naked" attribute apply to function types
12756 rather than to decls.
12757 (avr_handle_fntype_attribute): New function.
12759 2007-07-04 Joseph Myers <joseph@codesourcery.com>
12761 * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
12764 2007-07-04 David Ung <davidu@mips.com>
12765 Joseph Myers <joseph@codesourcery.com>
12767 * config/mips/mips.md (type): Add logical, signext and move.
12768 (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
12769 *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
12770 *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
12771 combinations", *zero_extend<SHORT:mode><GPR:mode>2,
12772 *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
12773 *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
12774 *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
12775 *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
12776 *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
12777 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
12778 movv2sf_hardfloat_64bit): Use the new types.
12779 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
12780 *movdf_softfloat, *movdf_mips16): Use "multi".
12781 (extendqihi2): Replace with a define_expand.
12782 (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
12783 Based on extend<SHORT:mode><GPR:mode>2 patterns.
12784 * config/mips/74k.md (r74k_int_logical): New reservation and
12786 (r74k_int_arith): Remove "slt".
12787 * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
12788 config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
12789 config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
12790 config/mips/sb1.md, config/mips/sr71k.md: Add new types to
12791 reservations for "arith".
12793 2007-07-04 Richard Guenther <rguenther@suse.de>
12795 * tree-ssa.c (useless_type_conversion_p): Add handling for
12796 scalar float and vector types. Only call the types_compatible_p
12797 langhook for aggregate types as last resort. Follow the
12800 2007-07-04 Richard Guenther <rguenther@suse.de>
12802 * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
12803 the same as NOP_EXPR.
12805 2007-07-04 Nick Clifton <nickc@redhat.com>
12807 * target.h (struct gcc_target): Add target_help field.
12808 * target-def.h (TARGET_HELP): New.
12809 (TARGET_INITIALIZER): Use TARGET_HELP.
12810 * opts.c (command_handle_option): Invoke target_help function, if
12811 defined, when the user has specified --target-help on the command
12813 * doc/invoke.texi: Mention that --target-help might print
12814 additional information.
12815 * doc/tm.texi: Document TARGET_HELP hook.
12817 * arm.c (TARGET_HELP): Override default definition.
12818 (arm_target_help): New - display a wrapped list of cores and
12819 architectures supported.
12821 2007-07-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
12823 * config/v850/v850.c (expand_prologue): Make sure
12824 GEN_INT() argument is sign extended rather than zero extended.
12825 (expand_epilogue): Likewise.
12826 (output_move_double): Delete.
12827 * config/v850/v850-protos.h (output_move_double): Delete.
12828 * config/v850/v850.md (movdi): Delete.
12829 (*movdi_internal): Delete.
12831 (*movdf_internal): Delete.
12833 2007-07-04 Richard Sandiford <richard@codesourcery.com>
12835 * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
12836 unless compiling RTP PIC.
12838 2007-07-04 Richard Guenther <rguenther@suse.de>
12840 PR tree-optimization/32482
12841 * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
12842 original ssa name if we didn't find a shift expression.
12843 Fix shift constant for bit zero test.
12845 2007-07-04 Richard Sandiford <richard@codesourcery.com>
12847 * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
12849 2007-07-04 Richard Sandiford <richard@codesourcery.com>
12851 * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
12852 * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
12853 * config/arm/vxworks.h (ASM_SPEC): Delete.
12854 (SUBTARGET_EXTRA_ASM_SPEC): Define.
12856 2007-07-04 Sebastian Pop <sebpop@gmail.com>
12858 * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
12859 (DDR_REVERSED_P): New.
12860 * tree-data-ref.c (initialize_data_dependence_relation,
12861 build_classic_dist_vector): Set DDR_REVERSED_P.
12863 2007-07-04 Sebastian Pop <sebpop@gmail.com>
12865 PR middle-end/32457
12866 * tree-data-ref.c (analyze_siv_subscript_cst_affine,
12867 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
12868 init_omega_for_ddr_1): Use non conservative number of iterations
12870 (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
12871 (analyze_siv_subscript): Remove FIXME and reinitialization of
12872 last_conflicts to chrec_dont_know.
12873 * testsuite/gfortran.dg/vect/pr32457.f90: New.
12875 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
12877 * tree.c (maybe_canonicalize_argtypes): Improve description.
12879 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
12881 * tree.c (maybe_canonicalize_argtypes): New.
12882 (build_function_type): Set canonical type.
12883 (build_method_type_directly): Ditto.
12884 (reconstruct_complex_type): Rebuild the METHOD_TYPE node
12887 2007-07-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
12889 * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
12891 (rewrite_use_nonlinear_expr): Likewise.
12893 2007-07-03 Seongbae Park <seongbae.park@gmail.com>
12895 * rtl.def (UNSPEC, USE, CLOBBER): More comments.
12897 2007-07-04 Ben Elliston <bje@au.ibm.com>
12899 * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
12902 * c-objc-common.c (c_types_compatible_p): Fix indentation.
12904 * doc/tm.texi (Run-time Target): Capitalise "CPU".
12905 (Exception Handling): Likewise.
12907 2007-07-03 Jan Hubicka <jh@suse.cz>
12909 * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
12911 2007-07-03 Eric Christopher <echristo@apple.com>
12913 * doc/cppopts.texi: Add conflicting option note to -dM.
12914 * doc/invoke.texi: Add note about possible conflicts with
12915 -E for -dCHARS and note that -dM will not produce
12916 any results if there is no machine dependent reorg.
12918 2007-07-03 Geoffrey Keating <geoffk@apple.com>
12920 * tree.h (DECL_ALIGN): Back out previous change.
12922 2007-07-03 Joseph Myers <joseph@codesourcery.com>
12924 * configure.ac: Test for .dtprelword support on MIPS.
12925 * configure, config.in: Regenerate.
12926 * config/mips/mips.c (mips_output_dwarf_dtprel): New.
12927 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
12929 2007-07-03 Julian Brown <julian@codesourcery.com>
12931 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
12932 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
12933 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
12934 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
12936 (all_fpus): Add FPUTYPE_VFP3.
12937 (fp_model_for_fpu): Add VFPv3 field.
12938 (arm_rtx_costs_1): Give cost to VFPv3 constants.
12939 (vfp3_const_double_index): New function. Return integer index of
12940 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
12942 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
12943 and argument represents a valid RTX for a VFPv3 constant.
12944 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
12946 (vfp_emit_fstmd): Similar, for fstmd.
12947 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
12948 constants, represented as integer indices.
12949 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
12950 VFP_REGNO_OK_FOR_DOUBLE macros.
12951 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
12952 (arm_file_start): Set float-abi attribute for VFPv3, and output
12953 correct ".fpu" assembler directive.
12954 (arm_dbx_register_numbering): Add FIXME.
12955 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
12956 (fputype): Add FPUTYPE_VFP3.
12957 (FIXED_REGISTERS): Add 32 registers for D16-D31.
12958 (CALL_USED_REGISTERS): Likewise.
12959 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
12960 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
12961 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
12962 (D7_VFP_REGNUM): New.
12963 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
12964 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
12965 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
12966 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
12967 (REG_ALLOC_ORDER): Adjust for VFPv3.
12968 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
12969 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
12970 VFP_LO_REGS, VFP_HI_REGS.
12971 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
12972 (IS_VFP_CLASS): Define macro.
12973 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
12975 (REGISTER_MOVE_COST): Likewise.
12976 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
12977 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
12978 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
12979 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
12980 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
12981 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
12982 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
12983 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
12984 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
12985 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
12986 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
12987 where appropriate for single-word registers.
12988 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
12989 As above. Fix type attributes.
12990 * config/arm/constraints.md (register_contraint "t"): Define.
12991 (register_constraint "w"): Change to D0-D15, or D0-D31 for
12993 (register_constraint "x"): Define.
12994 (constraint "Dv"): Define.
12996 2007-07-03 Geoffrey Keating <geoffk@apple.com>
12998 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
13000 2007-07-03 Tom Tromey <tromey@redhat.com>
13002 * c-parser.c (objc_pq_context): Removed.
13003 (objc_need_raw_identifier): Likewise.
13004 (c_parser) <objc_pq_context>: New field.
13005 <objc_need_raw_identifier>: Likewise.
13006 (OBJC_NEED_RAW_IDENTIFIER): Removed.
13007 (c_lex_one_token): Update.
13008 (c_parser_objc_protocol_definition): Update.
13009 (c_parser_objc_method_definition): Update.
13010 (c_parser_objc_methodproto): Update.
13011 (c_parser_declspecs): Update.
13013 2007-07-03 David Ung <davidu@mips.com>
13015 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
13017 2007-07-03 David Ung <davidu@mips.com>
13018 Richard Sandiford <richard@codesourcery.com>
13020 * doc/invoke.texi: Document -march=74kf3_2.
13021 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
13022 (TUNE_74K): Check for it.
13023 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
13024 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
13025 * config/mips/mips.md (cpu): Add 74kf3_2.
13026 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
13027 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
13028 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
13029 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
13030 74kf3_2 to the CPU list.
13031 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
13032 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
13033 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
13034 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
13035 (r74kf3_2_fxfer_from_c1): New insn reservations.
13037 2007-07-03 Richard Sandiford <richard@codesourcery.com>
13038 David Ung <davidu@mips.com>
13040 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
13041 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
13042 and 74k[fx]. Document aliases for the new options.
13043 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
13044 (PROCESSOR_24KF2_1): ...this.
13045 (PROCESSOR_24KX): Rename to...
13046 (PROCESSOR_24KF1_1): ...this.
13047 (PROCESSOR_74KF): Rename to...
13048 (PROCESSOR_74KF2_1): ...this.
13049 (PROCESSOR_74KX): Rename to...
13050 (PROCESSOR_74KF1_1): ...this.
13051 (TUNE_74K): Update PROCESSOR_* names.
13052 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
13053 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
13054 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
13055 (mips_rtx_cost_data): Update processor names in comments.
13056 (mips_issue_rate): Update PROCESSOR_* names.
13057 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
13058 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
13059 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
13060 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
13061 Update cpu attribute names.
13062 (r24k_fpu_iss): Rename this reservation to...
13063 (r24kf2_1_fpu_iss): ...this and update all uses.
13064 (r24kx_fpu_iss): Rename this reservation to...
13065 (r24kf1_1_fpu_iss): ...this and update all uses.
13066 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
13067 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
13068 Update cpu attribute names.
13070 2007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
13072 * config/m32r/constraints.md: New file.
13073 * config/m32r/m32r.c: Include tm-constrs.h.
13074 (small_data_operand): Use satisfies_constraint_* instead of macro.
13075 (addr24_operand, gen_compare): Likewise.
13076 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
13077 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
13078 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
13079 EXTRA_CONSTRAINT): Likewise.
13080 * config/m32r/m32r.md: Include constraints.md.
13081 (*movsi_insn): Use satisfies_constraint_* instead of macro.
13082 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
13083 * config/m32r/predicates.md (conditional_move_operand): Likewise.
13084 (two_insn_const_operand, int8_operand, uint16_operand,
13085 reg_or_int16_operand, reg_or_uint16_operand,
13086 reg_or_cmp_int16_operand, cmp_int16_operand,
13087 seth_add3_operand): Likewise.
13089 2007-07-03 Eric Christopher <echristo@gmail.com>
13091 * libgcc2.h: Conditionally declare __bswapsi2 and
13094 2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
13096 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
13099 2007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13102 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
13103 (__gthrw_pragma): Provide default definition.
13104 (__gthrw2): Use it.
13105 * gthr-posix.c (__gthrw_pragma): Define.
13107 2007-07-03 Daniel Berlin <dberlin@dberlin.org>
13109 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
13110 before declaring inequality.
13112 2007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
13114 * combine.c (recog_for_combine): Log the success or failure of
13115 matching new insn patterns against the machine description in
13118 2007-07-03 Revital Eres <eres@il.ibm.com>
13120 * ddg.c (print_sccs): New function.
13121 (check_sccs): New function.
13122 (create_ddg_all_sccs): Use it.
13123 * ddg.h (print_sccs): Declare.
13124 * modulo-sched.c (sms_order_nodes): Call print_sccs.
13126 2007-07-03 Uros Bizjak <ubizjak@gmail.com>
13128 * targhooks.h (default_mode_for_suffix): New function declaration.
13129 * targhooks.c (default_mode_for_suffix): New default target hook.
13130 * target.h (struct c): New structure in the targetm struct.
13131 (mode_for_suffix): New target hook as part of struct c.
13132 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
13133 default_mode_for_suffix.
13134 (TARGET_C): New define.
13135 * c-lex.c: Include "target.h".
13136 (interpret_float): Use targetm.c.mode_for_suffix to determine
13137 the mode for a given non-standard suffix.
13138 Makefile.in (c-lex.o): Depend on $(TARGET_H).
13140 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
13141 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
13143 * doc/extend.texi (Floating Types): New node. Document __float80 and
13144 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
13146 2007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
13149 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
13150 predicate instead of target_operand.
13151 (divsi3_i1_media, divsi3_media_2): Likewise.
13153 2007-07-02 Eric Botcazou <ebotcazou@adacore.com>
13155 * tree.h (alias_sets_might_conflict_p): Rename into
13156 alias_sets_must_conflict_p.
13157 * alias.c (alias_sets_might_conflict_p): Likewise.
13158 (alias_sets_conflict_p): Use it.
13159 (objects_must_conflict_p): Likewise.
13160 * c-common.c (strict_aliasing_warning): Adjust.
13162 2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
13164 * rtlhooks.c (gen_lowpart_if_possible): Check for
13165 invalid subreg before calling gen_lowpart_SUBREG.
13167 2007-07-02 Geoffrey Keating <geoffk@apple.com>
13169 * config/darwin9.h: Add copyright notice.
13170 (LINK_COMMAND_SPEC): Add comment.
13171 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
13172 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
13173 DARWIN_LIBSYSTEM_HAS_UNWIND.
13175 2007-07-02 Jakub Jelinek <jakub@redhat.com>
13178 * omp-low.c (check_combined_parallel): New function.
13179 (lower_omp_parallel): Call it via walk_stmts, set
13180 OMP_PARALLEL_COMBINED if appropriate.
13181 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
13182 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
13183 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
13184 don't consider it as combined parallel.
13186 2007-07-02 Richard Sandiford <richard@codesourcery.com>
13188 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
13189 (gcc_tooldir): Likewise.
13190 * configure: Regenerate.
13191 * Makefile.in (libsubdir_to_prefix): New variable, based on the
13192 old configure.ac gcc_tooldir setting.
13193 (prefix_to_exec_prefix): New variable.
13194 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
13195 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
13197 2007-07-02 Daniel Berlin <dberlin@dberlin.org>
13199 Fix PR tree-optimization/32583
13200 Fix PR tree-optimization/32584
13201 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
13202 (phi_translate_set): Use phi_translate directly now.
13203 (make_values_for_stmt): Don't value number RHS if we already know
13206 2007-07-02 Steve Ellcey <sje@cup.hp.com>
13207 Jim Wilson <wilson@specifix.com>
13210 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
13213 2007-07-02 Sandra Loosemore <sandra@codesourcery.com>
13214 Richard Sandiford <richard@codesourcery.com>
13215 Nigel Stephens <nigel@mips.com>
13217 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
13218 (mips16e_output_save_restore): Declare.
13219 (mips16e_save_restore_pattern_p): Likewise.
13220 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
13221 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
13222 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
13223 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
13224 (BITSET_P): New global macro, extracted from...
13225 (mips_for_each_saved_reg): ...here.
13226 (mips16e_save_restore_info): New struct.
13227 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
13228 (mips16e_save_restore_regs): New variable.
13229 (mips_split_plus, mips16e_find_first_register): New functions.
13230 (mips16e_mask_registers): New function.
13231 (compute_frame_size): Expand the commentary before the function.
13232 Enforce the MIPS16e save and restore register range restrictions.
13233 Pad the general register save area at the low end.
13234 (mips16e_save_restore_reg, mips16e_build_save_restore)
13235 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
13236 (mips16e_output_save_restore, mips16e_collect_propagate_value)
13237 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
13239 (mips_expand_prologue, mips_expand_epilogue): Handle
13240 GENERATE_MIPS16E_SAVE_RESTORE.
13241 * config/mips/mips.md (*mips16e_save_restore): New pattern.
13243 2007-07-02 Uros Bizjak <ubizjak@gmail.com>
13245 PR tree-optimization/31966
13246 PR tree-optimization/32533
13247 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
13248 "basic_block" description as its third argument. Update function
13249 calls to get destination bb from "edge" argument. Save "cond" into
13250 aux field of the edge. Update prototype for changed arguments.
13251 (if_convertible_loop_p): Clear aux field of incoming edges if bb
13253 (find_phi_replacement_condition): Operate on incoming edges, not
13254 on predecessor blocks. If there is a condition saved in the
13255 incoming edge aux field, AND it with incoming bb predicate.
13256 Return source bb of the first edge.
13257 (clean_predicate_lists): Clean aux field of outgoing node edges.
13258 (tree_if_conversion): Do not initialize cond variable. Move
13259 variable declaration into the loop.
13260 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
13261 initializations of new_stmt, arg0 and arg1 variables.
13263 2007-07-02 Jakub Jelinek <jakub@redhat.com>
13265 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
13266 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
13268 2007-07-02 Richard Guenther <rguenther@suse.de>
13270 * tree-ssa.c (useless_type_conversion_p): Document
13271 future intent as defining the middle-end type system.
13272 Re-structure to call langhook last, group by type class,
13273 mark questionable parts.
13275 2007-07-02 Richard Guenther <rguenther@suse.de>
13277 * tree-flow.h (types_compatible_p): Declare.
13278 * tree-ssa.c (types_compatible_p): New function.
13279 * ipa-type-escape.c (discover_unique_type): Use
13280 types_compatible_p instead of lang_hooks.types_compatible_p.
13281 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13282 * tree-vn.c (expressions_equal_p): Likewise.
13283 * tree.c (fields_compatible_p): Likewise.
13284 * tree-ssa-dom.c (avail_expr_eq): Likewise.
13285 (cprop_operand): Use useless_type_conversion_p instead of
13286 lang_hooks.types_compatible_p.
13287 * tree-inline.c (setup_one_parameter): Likewise.
13288 (declare_return_variable): Likewise.
13289 * tree-nrv.c (tree_nrv): Likewise.
13290 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
13291 (maybe_fold_offset_to_component_ref): Likewise.
13292 (maybe_fold_offset_to_reference): Likewise.
13293 * tree-ssa-copy.c (may_propagate_copy): Likewise.
13294 (merge_alias_info): Likewise.
13295 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13296 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13297 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13298 * tree-tailcall.c (find_tail_calls): Likewise.
13299 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13300 * gimplify.c (canonicalize_addr_expr): Likewise.
13301 (fold_indirect_ref_rhs): Likewise.
13302 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
13303 (cpt_same_type): Likewise.
13304 (check_pointer_types_r): Swap parameters to cpt_same_type
13306 * fold-const.c (fold_convert): Revert fix for PR15988.
13307 * tree-inline.c (setup_one_parameter): Instead fix it here by
13308 using fold_build1 instead of fold_convert and checking for
13309 error_mark_node. Convert only if the conversion is necessary.
13311 2007-07-02 Joseph Myers <joseph@codesourcery.com>
13313 * configure.ac: Check for .gnu_attribute on Power.
13314 * configure: Regenerate.
13315 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
13316 attribute for floating-point ABI.
13318 2007-07-02 Ira Rosen <irar@il.ibm.com>
13320 PR tree-optimization/32230
13321 PR tree-optimization/32477
13322 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
13323 address is a constant.
13325 2007-07-02 Richard Sandiford <richard@codesourcery.com>
13327 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
13328 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
13329 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
13330 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
13331 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
13332 64-bit targets. Add support for *-elfoabi*.
13333 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
13334 different settings if $(tm_defines) does not select the EABI.
13335 (MULTILIB_EXCLUSIONS): Define in those circumstances.
13336 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
13337 (MIPS_ARCH_OPTION_SPEC): Likewise.
13338 (MIPS_ISA_LEVEL_SPEC): Likewise.
13339 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
13340 * config/mips/elfoabi.h: New file.
13342 2007-07-02 Richard Guenther <rguenther@suse.de>
13344 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
13345 (useless_type_conversion_p): ... this.
13346 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
13347 (useless_type_conversion_p): ... this.
13348 * builtins.c (fold_builtin_memory_op): Rename
13349 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
13350 * tree-cfg.c (verify_expr): Likewise.
13351 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
13352 * tree-ssa-ccp.c (ccp_fold): Likewise.
13353 * tree-ssa-copy.c (may_propagate_copy): Likewise.
13354 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
13355 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13356 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
13357 * tree-ssa-pre.c (eliminate): Likewise.
13358 * tree-ssa.c (delete_tree_ssa): Likewise.
13359 (tree_ssa_useless_type_conversion): Likewise.
13360 * tree.c (build2_stat): Likewise.
13362 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
13364 Fix PR tree-optimization/32571
13365 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
13368 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
13370 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
13371 and other expected operations explicitly, change default to
13374 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
13376 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
13378 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
13379 (tls_load_dot_plus_eight): Move the label number into the unspec.
13380 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
13382 2007-07-01 Andreas Schwab <schwab@suse.de>
13384 * dwarf2out.c (initial_return_save): Define only if used.
13386 2007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
13388 Unreverting Richard's Revert of:
13390 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13392 * dce.c (deletable_insn_p_1): New function, split out from...
13393 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13394 specially, not those inside PARALLELs. Remove BODY argument
13395 and adjust recursive call accordingly.
13396 (prescan_insns_for_dce): Update call to delete_insn_p.
13398 2007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
13399 Revital Eres <eres@il.ibm.com>
13401 * ddg.c (create_ddg_all_sccs): Fix missed
13402 initialization of scc_nodes.
13404 2007-07-01 Uros Bizjak <ubizjak@gmail.com>
13406 PR middle-end/32559
13407 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
13408 X + ~X to 1 only for INTEGRAL_TYPE_P type.
13410 2007-06-30 Joseph Myers <joseph@codesourcery.com>
13412 * configure.ac: Check for .gnu_attribute on MIPS.
13413 * configure, config.in: Regenerate.
13414 * config/mips/mips.c (mips_file_start): If supported, output
13415 attribute for floating-point ABI.
13417 2007-06-30 Uros Bizjak <ubizjak@gmail.com>
13420 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
13421 (ffs_cmove): New expander to expand using ctz pattern.
13422 (*ffs_cmove): Remove pattern.
13423 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
13424 (ffsdi2): Expand using ctz pattern.
13425 (*ffs_rex64): Remove pattern.
13427 2007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13429 PR rtl-optimization/32296
13430 * pa.md (return): Delete pattern.
13431 (return_internal): Remove "(const_int 1)" from pattern.
13432 (epilogue): Use return_internal pattern for trivial returns.
13433 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
13434 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
13436 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
13438 * tree-ssa-pre.c (is_exception_related): New function
13439 (can_value_number_operation): Use it.
13441 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
13443 Fix PR tree-optimization/32540
13444 Fix PR tree-optimization/31651
13446 * tree-ssa-sccvn.c: New file.
13448 * tree-ssa-sccvn.h: Ditto.
13450 * tree-vn.c: Include tree-ssa-sccvn.h
13451 (val_expr_paid_d): Removed.
13452 (value_table): Ditto.
13453 (vn_compute): Ditto.
13454 (val_expr_pair_hash): Ditto.
13455 (val_expr_pair_expr_eq): Ditto.
13456 (copy_vuses_from_stmt): Ditto.
13457 (vn_delete): Ditto.
13459 (shared_vuses_from_stmt): Ditto.
13460 (print_creation_to_file): Moved up.
13461 (sort_vuses): Ditto.
13462 (sort_vuses_heap): Ditto.
13463 (set_value_handle): Make non-static.
13464 (make_value_handle): Ditto.
13465 (vn_add): Rewritten to use sccvn lookups.
13466 (vn_add_with_vuses): Ditto.
13467 (vn_lookup): Ditto (and second argument removed).
13468 (vn_lookup_with_vuses): Ditto.
13469 (vn_lookup_or_add): Ditto (and second argument removed);
13470 (vn_lookup_or_add_with_vuses): Ditto.
13471 (vn_lookup_with_stmt): New.
13472 (vn_lookup_or_add_with_stmt): Ditto.
13473 (create_value_handle_for_expr): Ditto.
13475 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
13476 (seen_during_translate): New function.
13477 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
13478 (phi_trans_add): Ditto.
13479 (constant_expr_p): FIELD_DECL is always constant.
13480 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
13481 Use constant_expr_p.
13482 Avoid infinite recursion on mutually valued expressions.
13483 Change callers of vn_lookup_or_add.
13484 (phi_translate): New function.
13485 (compute_antic_safe): Allow phi nodes.
13486 (create_component_ref_by_pieces): Update for FIELD_DECL change.
13487 (find_or_generate_expression): Rewrite slightly.
13488 (create_expression_by_pieces): Updated for vn_lookup_or_add
13490 Update VN_INFO for new names.
13491 (insert_into_preds_of_block): Update for new names.
13492 (add_to_exp_gen): New function.
13493 (add_to_sets): Use vn_lookup_or_add_with_stmt.
13494 (find_existing_value_expr): Rewrite to changed vn_lookup.
13495 (create_value_expr_from): Ditto, and use add_to_exp_gen.
13496 (try_look_through_load): Removed.
13497 (try_combine_conversion): Ditto.
13498 (get_sccvn_value): New function.
13499 (make_values_for_phi): Ditto.
13500 (make_values_for_stmt): Ditto.
13501 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
13503 (init_pre): Update for SCCVN changes.
13505 (execute_pre): Ditto.
13507 * tree-flow.h (make_value_handle): Declare.
13508 (set_value_handle): Ditto.
13509 (sort_vuses_heap): Ditto.
13510 (vn_lookup_or_add_with_stmt): Ditto.
13511 (vn_lookup_with_stmt): Ditto.
13512 (vn_compute): Remove.
13514 (vn_delete): Ditto.
13515 (vn_lookup): Update arguments.
13517 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
13518 (tree-vn.o): Ditto.
13519 (tree-ssa-sccvn.o): New.
13520 (OBJS-common): Add tree-ssa-sccvn.o
13522 2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13525 * c-typeck.c (build_external_ref): Don't mark as used if called
13527 * calls.c (rtx_for_function_call): Likewise.
13529 2007-06-30 Richard Sandiford <richard@codesourcery.com>
13533 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13535 * dce.c (deletable_insn_p_1): New function, split out from...
13536 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13537 specially, not those inside PARALLELs. Remove BODY argument
13538 and adjust recursive call accordingly.
13539 (prescan_insns_for_dce): Update call to delete_insn_p.
13541 2007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
13543 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
13544 (try_combine): Move potential calls to undo_all() so they happen
13545 before we commit to using the combined insns.
13547 2006-06-30 Jan Hubicka <jh@suse.cz>
13549 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
13552 2006-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
13554 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
13555 (cgraph_remove_unreachable_nodes): Likewise.
13556 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
13557 * ipa-inline.c (update_caller_keys): Cast according to the coding
13559 (cgraph_decide_recursive_inlining): Likewise.
13560 (cgraph_decide_inlining_of_small_function): Likewise.
13561 (try_inline): Likewise.
13562 (cgraph_decide_inlining_incrementally): Likewise.
13563 * ipa-pure-const.c (get_function_state): Likewise.
13564 (scan_function): Likewise.
13565 (analyze_function): Likewise.
13566 (static_execute): Likewise.
13567 * ipa-reference.c (scan_for_static_refs): Likewise.
13568 (merge_callee_local_info): Likewise.
13569 (analyze_function): Use type safe memory macros.
13570 (static_execute): Likewise. Cast according to the coding conventions.
13571 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
13573 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
13575 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
13576 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
13579 2007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
13581 PR middle-end/30024
13582 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
13583 for complex modes (both int and real).
13585 2007-06-29 Jan Hubicka <jh@suse.cz>
13587 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
13589 2007-06-29 Jan Hubicka <jh@suse.cz>
13591 PR middle-end/32372
13592 * cse.c (cse_insn): Avoid invalid sharing in between register note and
13595 2007-06-29 Anatoly Sokolov <aesok@post.ru>
13598 * config/avr/avr.c: Include dataflow header file.
13599 (expand_prologue): Adjust for prologue insn change.
13600 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
13603 2007-06-29 Richard Guenther <rguenther@suse.de>
13605 PR middle-end/32493
13606 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
13607 during type verification.
13609 2007-06-29 Jan Hubicka <jh@suse.cz>
13611 * recog.c (validate_change_rtx_1): Unshare TO argument.
13613 2007-06-29 Uros Bizjak <ubizjak@gmail.com>
13615 PR tree-optimization/24659
13616 * tree-vect-transform.c (vectorizable_call): Handle
13617 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
13619 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
13620 * config/i386/i386.c (enum ix86_builtins)
13621 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
13622 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
13624 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
13625 const using def_builtin_const.
13626 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
13627 input operands in the same modes as the result.
13628 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
13630 2007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
13632 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
13633 (df_set_dead_notes_for_mw): Likewise.
13635 2007-06-29 Eric Botcazou <ebotcazou@adacore.com>
13637 * c-common.c (pointer_int_sum): Do the negation in sizetype.
13639 2007-06-28 DJ Delorie <dj@redhat.com>
13641 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
13643 2007-06-28 Geoffrey Keating <geoffk@apple.com>
13645 * doc/invoke.texi (C++ Dialect Options): Document
13646 fvisibility-ms-compat.
13647 * c.opt (fvisibility-ms-compat): New.
13649 2007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
13652 * tree-affine.c (aff_combination_add_elt): Handle
13653 pointer addition specially.
13655 2007-06-28 Jakub Jelinek <jakub@redhat.com>
13657 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
13658 decl is non-external for AIX ABI.
13660 2007-06-28 David Edelsohn <edelsohn@gnu.org>
13662 * config/rs6000/predicates.md (current_file_function_operand):
13663 Ensure the symbol is non-external for AIX ABI.
13665 2007-06-28 Nick Clifton <nickc@redhat.com>
13667 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
13668 (fdce, fdse, fpredictive-commoning): Likewise.
13670 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13673 * gcc.c (process_command): Recognize the new -static-libgfortran
13676 2007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
13679 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
13680 Use a call clobbered hard reg instead of a pseudo reg.
13682 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
13684 * config/sh/sh.md (load_gbr): Use correct operand constraint.
13686 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
13689 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
13690 REG_LIBCALL and REG_RETVAL notes.
13691 (divsi3, mulsi3): Likewise.
13692 (mulhisi3): Likewise. Use emit_libcall_block.
13693 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
13695 2007-06-27 Seongbae Park <seongbae.park@gmail.com>
13697 PR rtl-optimization/32481
13698 * combine.c (adjust_for_new_dest): Rescan the changed insn.
13700 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13702 * dce.c (deletable_insn_p_1): New function, split out from...
13703 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13704 specially, not those inside PARALLELs. Remove BODY argument
13705 and adjust recursive call accordingly.
13706 (prescan_insns_for_dce): Update call to delete_insn_p.
13708 2007-06-27 Richard Guenther <rguenther@suse.de>
13710 PR middle-end/32492
13711 * tree.h (fold_convertible_p): Declare.
13712 * fold-const.c (fold_convertible_p): New function.
13713 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
13714 instead of lang_hooks.types_compatible_p.
13716 2007-06-26 Jan Hubicka <jh@suse.cz>
13718 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
13719 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
13720 early use validate_unshare_change.
13721 (reload_combine): Likewise.
13722 * recog.c (change_t): New field unshare.
13723 (validate_change_1): Rename from validate_change; add argument unshare.
13724 (validate_change): Turn into wrapper of validate_change_1; update
13725 prototype for bools.
13726 (validate_unshare_change): New.
13727 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
13728 calls of df_insn_rescan.
13729 * recog.h (validate_change): Replace ints by bools.
13730 (validate_unshare_change): Declare.
13732 2007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
13734 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
13736 2007-06-26 Steve Ellcey <sje@cup.hp.com>
13738 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
13740 2007-06-25 Jan Hubicka <jh@suse.cz>
13742 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
13744 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
13745 cgraph_decide_inlining_incrementally): Move uninlinability checks to
13746 places other call site specific checks are performed.
13748 2007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13751 * tree-vect-transform.c (vectorizable_operation): Convert
13752 POINTER_PLUS_EXPR over to PLUS_EXPR.
13754 2007-06-25 Chao-ying Fu <fu@mips.com>
13756 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
13757 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
13758 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
13759 Document GET_MODE_IBIT, and GET_MODE_FBIT.
13761 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
13762 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
13763 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
13764 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
13765 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
13766 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
13767 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
13768 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
13769 ALL_FIXED_POINT_MODE_P): New define.
13770 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13772 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
13774 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
13775 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
13776 MODE_VECTOR_UACCUM): New mode classes.
13778 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
13779 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
13780 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
13783 * genmodes.c (struct mode_data): Add ibit and fbit fields.
13784 (blank_mode): Initialize ibit and fbit.
13785 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
13786 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13788 (new_adjust): Change required_class to required_class_from and
13789 required_class_to for testing within a range.
13790 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13791 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
13792 MODE_VECTOR_UACCUM.
13793 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
13794 (make_fixed_point_mode): New.
13795 (_ADD_ADJUST): Change C to C1 and C2.
13796 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
13797 use a range for machine classes.
13798 (ADJUST_IBIT, ADJUST_FBIT): New.
13799 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
13801 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
13802 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
13803 Emit adjustment for ibit and fbit.
13804 (emit_mode_ibit, emit_mode_fbit): New.
13805 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
13807 2007-06-25 Nathan Froyd <froydnj@codesourcery.com>
13809 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
13810 as the source of the set.
13812 2007-06-25 Roman Zippel <zippel@linux-m68k.org>
13814 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
13815 FP_REGNO_P): Use IN_RANGE.
13816 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
13817 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
13818 (DATA_REG_P): Use DATA_REGNO_P.
13819 (FP_REG_P): Use FP_REGNO_P.
13820 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
13821 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
13822 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
13824 2007-06-24 Jan Hubicka <jh@suse.cz>
13826 PR middle-end/30563
13827 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
13829 2007-06-24 Sebastian Pop <sebpop@gmail.com>
13831 PR middle-end/32461
13832 * fold-const.c (fold_binary): Strip nops of operand 0
13833 of BIT_NOT_EXPR before calling operand_equal_p.
13834 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
13835 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
13837 2007-06-23 Mark Mitchell <mark@codesourcery.com>
13839 * doc/extend.texi: Document that dllimport and dllexport imply
13840 default visibility.
13841 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
13842 imported or exported declaration, including type declarations.
13843 * c-common.c (handle_visibility_attribute): Check for conflicts
13844 with dllimport/dllexport.
13845 (c_determine_visibility): Handle dllimport/dllexport as an
13846 explicit visibility atttribute.
13848 2007-06-23 Richard Guenther <rguenther@suse.de>
13850 PR tree-optimization/16876
13851 PR middle-end/29478
13852 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
13854 * tree-inline.c (initialize_inlined_parameters): Do not call
13855 lang_hooks.tree_inlining.convert_parm_for_inlining.
13856 * cgraphbuild.c (initialize_inline_failed): Set inline failed
13857 reason for mismatched types.
13858 * gimplify.c (gimplify_call_expr): Verify the call expression
13859 arguments match the called function type signature. Otherwise
13860 mark the call expression to be not considered for inlining
13861 using CALL_CANNOT_INLINE_P flag.
13862 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
13863 edges call expression.
13864 (cgraph_decide_inlining_of_small_function): Likewise.
13865 (cgraph_decide_inlining): Likewise.
13866 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13868 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
13869 * c-typeck.c (c_convert_parm_for_inlining): Remove.
13870 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
13871 Remove declaration.
13872 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
13873 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
13875 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
13876 convert_parm_for_inlining member.
13878 2007-06-23 Richard Earnshaw <rearnsha@arm.com>
13881 * arm.md (negscc): Match the correct operand for optimized LT0 test.
13882 Remove optimization for GT.
13884 2007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
13886 PR middle-end/32437
13887 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
13889 (prescan_insns_for_dce): Add extra parameter.
13891 2007-06-23 Jan Hubicka <jh@suse.cz>
13893 PR middle-end/31541
13894 * gimplify.c (mark_addressable): New function.
13895 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
13897 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
13899 PR middle-end/32374
13900 * expr.c (store_constructor): Do not clobber non-zeroed memory.
13902 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
13905 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
13906 moves between MMX/SSE registers to at least 8 units to prevent
13907 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
13909 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
13911 * config/i386/i386.c (override_options): Correct x86_sahf
13914 2007-06-21 David Daney <ddaney@avtrex.com>
13917 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
13918 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
13919 (exception_receiver): Renamed to ...
13920 (nonlocal_goto_receiver): ... this.
13922 2007-06-22 Roman Zippel <zippel@linux-m68k.org>
13924 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
13925 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
13926 partial register accesses.
13928 2007-06-21 Adam Nemet <anemet@caviumnetworks.com>
13930 * fold-const.c (debug_fold_checksum): Move it under
13931 ENABLE_FOLD_CHECKING.
13933 2007-06-21 Sebastian Pop <sebpop@gmail.com>
13935 PR middle-end/20623
13936 * tree.h (debug_fold_checksum): Declared.
13937 * fold-const.c (build_fold_addr_expr_with_type_1): New.
13938 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
13939 build_fold_addr_expr_with_type_1.
13940 (fold_addr_expr, debug_fold_checksum): New.
13941 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
13942 (fold_unary, fold_comparison, split_address_to_core_and_offset):
13943 Use fold_addr_expr.
13945 2007-06-21 Sebastian Pop <sebpop@gmail.com>
13947 PR tree-optimization/19590
13948 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
13949 of scev is a constant.
13951 2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
13953 * df-problems.c (df_note_bb_compute): Made computation of live
13954 info consistent with df_lr.
13956 2007-06-21 Richard Guenther <rguenther@suse.de>
13958 PR tree-optimization/32453
13959 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
13960 for pointer anti-range.
13962 2007-06-21 H.J. Lu <hongjiu.lu@intel.com>
13964 * config/i386/i386.c (processor_target_table): Increase maximum
13965 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
13968 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
13969 byte alignment if > 8 byte alignment is preferred.
13970 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13972 2007-06-21 Jakub Jelinek <jakub@redhat.com>
13974 PR tree-optimization/31866
13975 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
13976 if ASM_EXPR's input is not a SSA_NAME.
13978 PR middle-end/32362
13979 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
13980 but decl is a global var, instead return decl.
13981 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
13982 even for is_global_var decls, if they are private in some outer
13985 2007-06-21 Richard Guenther <rguenther@suse.de>
13987 PR tree-optimization/32451
13988 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
13990 2007-06-21 Christian Bruel <christian.bruel@st.com>
13992 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
13993 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
13994 (push_regs): Changed saving order or banked registers.
13995 (sh_expand_epilogue): Likewise.
13996 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
13997 (FIRST_BANKED_REG): Likewise.
13998 (LAST_BANKED_REG): Likewise.
13999 * config/sh/sh.md (banked) New attribute.
14000 (in_delay_slot): Check banked attribute.
14002 2007-06-20 Sebastian Pop <sebpop@gmail.com>
14004 PR tree-optimization/32075
14005 * tree-data-ref.c (subscript_dependence_tester_1,
14006 analyze_miv_subscript, analyze_overlapping_iterations,
14007 add_distance_for_zero_overlaps, build_classic_dist_vector,
14008 subscript_dependence_tester_1, analyze_overlapping_iterations,
14009 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
14010 compute_affine_dependence, compute_all_dependences): Pass loop_nest
14011 to evolution_function_is_affine_multivariate_p.
14013 2007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
14015 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
14017 2007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
14020 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
14022 * config/m32c/prologue.md (epilogue_exitd_16): New.
14023 (epilogue_reit_16): New.
14024 (epilogue_exitd): Rename to epilogue_exitd_24.
14025 (epilogue_reit): Rename to epilogue_reit_24.
14027 2007-06-20 Seongbae Park <seongbae.park@gmail.com>
14028 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14030 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
14032 * haifa-sched.c (queue_to_ready): Don't requeue next insn
14033 if dbg_cnt (sched_insn) reaches the limit.
14034 (choose_ready): New parameter INSN_PTR and new return value.
14035 (schedule_block): Handle dbg_cnt (sched_insn). Handle
14036 the new return value from choose_ready.
14037 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
14038 (rest_of_handle_global_alloc): New global_alloc_at_func.
14040 2007-06-20 Adam Nemet <anemet@caviumnetworks.com>
14042 PR tree-optimization/25737
14043 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
14044 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
14045 * tree-flow.h (struct fieldoff): Add new field alias_set.
14046 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
14047 argument addressable_type. Set alias_set of fieldoff.
14048 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
14049 (create_overlap_variables_for): Pass alias_set from fieldoff to
14051 * alias.c (get_alias_set): Use alias_set from SFT if set.
14053 2007-06-20 Hui-May Chang <hm.chang@apple.com>
14055 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
14056 of a variable as an unsigned HOST_WIDE_INT integer.
14058 2007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
14060 PR rtl-optimization/32405
14061 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
14063 2007-06-20 Jakub Jelinek <jakub@redhat.com>
14065 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
14067 PR middle-end/31959
14068 * builtins.c: Include diagnostic.h.
14069 (expand_builtin_expect): Make gcc_assert more permissive.
14070 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
14072 PR inline-asm/32109
14073 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
14076 PR middle-end/32285
14077 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
14078 if ACCUMULATE_OUTGOING_ARGS.
14080 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
14082 * config/m68hc11/m68hc11.c: Include dataflow header file.
14083 (m68hc11_reorg): Port to dataflow.
14085 2007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
14087 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
14088 (struct df_problem.free_blocks_on_set_blocks): New field.
14089 (struct dataflow.optional_p): New field.
14090 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
14091 (df_live_set_all_dirty): New function.
14092 * df-scan.c (df_scan_alloc): Initialize optional_p.
14093 (problem_SCAN): Initialize free_blocks_on_set_blocks.
14094 * df-core.c (df_set_blocks): Removed use of
14095 DF_FIRST_OPTIONAL_PROBLEM. Now uses
14096 df_problem.free_blocks_on_set_blocks to determine which blocks are
14098 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
14099 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
14100 uses dataflow.optional_p to determine if problem should be
14102 (rest_of_handle_df_initialize): Only start live problem if
14104 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
14105 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
14106 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
14107 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
14108 problem_NOTE): Initialize free_blocks_on_set_blocks.
14109 (df_lr_bb_local_compute): Recompute luids if df_live problem is
14111 (df_live_set_all_dirty, df_note_alloc): New function.
14112 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
14114 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
14115 * postreload.c (reload_combine): Ditto.
14116 * cse.c (cse_extended_basic_block): Ditto.
14117 * regmove.c (mark_flags_life_zones): Ditto.
14118 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
14119 erase_matching_seqs): Ditto.
14120 * bt-load.c (compute_defs_uses_and_gen): Ditto.
14121 * integrate (allocate_initial_values): Ditto.
14122 * combine.c (reg_dead_at_p): Ditto.
14123 * resource.c (mark_target_live_regs): Ditto.
14124 * sched-rgn.c (check_live_1, update_live_1): Ditto.
14125 * config/sh/sh.c (find_r0_life_regions): Ditto.
14126 * global.c (rest_of_handle_global_alloc): Only add back df_live
14128 * local-alloc.c (rest_of_handle_local_alloc): Only remove
14129 df_live for -O > 1.
14130 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
14132 (if_convert): Make sure df_live is there at -O == 1.
14133 (pass_if_after_combine): Cleanup flags.
14134 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
14135 is there at -O == 1.
14137 2007-06-19 Seongbae Park <seongbae.park@gmail.com>
14139 * config/arm/arm.c (arm_get_frame_offsets): Set
14140 offsets->locals_base to avoid negative stack size.
14141 (thumb1_expand_prologue): Assert on negative stack size.
14143 2007-06-19 Sebastian Pop <sebpop@gmail.com>
14145 PR tree-optimization/32367
14146 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
14147 of the chrec has no evolution in that loop.
14148 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
14150 2007-06-19 Bob Wilson <bob.wilson@acm.org>
14152 * config/xtensa/xtensa.c: Include "df.h".
14153 (xtensa_builtin_saveregs): Use adjust_address instead of
14155 (xtensa_va_start): Invoke make_tree with sizetype for
14156 expand_builtin_saveregs and then convert the result to a pointer.
14157 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
14158 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
14159 Subtract argument size from index value as integers and then use
14160 POINTER_PLUS_EXPR to add the result to the array address.
14162 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
14165 * config/m32c/m32c.c: Include dataflow header file.
14166 (m32c_emit_prologue): Adjust for prologue insn change.
14167 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
14168 once inside a PARALLEL. Assume frame size passed in operand 0
14169 includes space to save the fb register.
14170 (prologue_enter_24): Likewise.
14171 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
14173 2007-06-19 David Daney <ddaney@avtrex.com
14176 * config/mips/mips.md (cprestore): Mark $gp as used.
14178 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
14181 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
14182 (frv_ifcvt_modify_insn): Likewise.
14184 2007-06-19 Richard Guenther <rguenther@suse.de>
14186 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
14187 only handle positive offsets that fit in a HOST_WIDE_INT.
14189 2007-06-19 Uros Bizjak <ubizjak@gmail.com>
14191 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
14192 result of rsqrt insn for zero input argument to avoid NaN.
14194 2007-06-19 Richard Guenther <rguenther@suse.de>
14196 PR middle-end/31950
14197 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
14199 2007-06-19 Jakub Jelinek <jakub@redhat.com>
14201 PR tree-optimization/32353
14202 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
14204 2007-06-19 Nick Clifton <nickc@redhat.com>
14206 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
14208 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
14211 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
14212 * config/i386/i386.c (assign_386_stack_local): Assert that
14213 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
14214 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
14215 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
14216 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
14218 2007-06-18 Steve Ellcey <sje@cup.hp.com>
14220 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
14222 2007-06-18 Seongbae Park <seongbae.park@gmail.com>
14224 PR rtl-optimization/32321
14225 * gcse.c (replace_store_insn): Update the note before
14226 calling emit_insn_after.
14228 2007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
14230 PR middle-end/32355
14231 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
14233 * df-problems.c (df_note_bb_compute): Fix dumping info.
14235 2007-06-18 Kazu Hirata <kazu@codesourcery.com>
14237 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
14238 insn with emit_jump_insn.
14240 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
14242 PR tree-optimization/32383
14243 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
14244 * targhooks.h (default_builtin_reciprocal): Update prototype.
14245 * target.h (struct gcc_target): Update builtin_reciprocal.
14246 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
14247 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
14248 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
14249 when fndecl is in BUILT_IN_MD class.
14250 (execute_convert_to_rsqrt): Ditto.
14252 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
14253 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
14254 Convert BUILT_IN_SQRTF code only when md_fn is false.
14256 2007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14258 * bt-load.c (move_btr_def): Fix the order of arguments
14259 to validate_replace_rtx.
14261 2007-06-18 Nathan Sidwell <nathan@codesourcery.com>
14263 * config/m68k/m68k-devices.def: Add 54450..54455.
14265 2007-06-17 Uros Bizjak <ubizjak@gmail.com>
14267 PR rtl-optimization/32366
14268 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
14269 FLOAT_EXTEND]: Prevent non-scalar modes from entering
14272 2007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
14274 PR middle-end/32349
14275 * modulo-sched (generate_reg_moves): Added rescan parameter and if
14276 this is true, rescan insn being modified.
14277 (sms_schedule): Added rescan parameter.
14278 (rest_of_handle_sms): Moved freeing of dominance info to before
14279 getting out of cfg_layout.
14281 2007-06-17 Nathan Sidwell <nathan@codesourcery.com>
14283 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
14284 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
14287 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
14288 FL_CF_EMAC from the entry for isac.
14290 * config/m68k/predicates.md (const_call_operand): Adjust comment.
14291 (const_sibcall_operand): New.
14292 (sibcall_operand): Use it.
14293 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
14294 (m68k_isas): ISAC does not imply FPU or EMAC.
14295 (override_options): Add ISA_C logic for symbolic jump & call.
14297 2007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
14299 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
14300 return mode from the builtin itself.
14301 (sparc_fold_builtin): Fix cast of zero constant.
14303 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
14305 * targhooks.c (default_builtin_reciprocal): New default target hook.
14306 * targhooks.h (default_builtin_reciprocal): Add prototype.
14307 * hooks.c (hook_tree_tree_bool_null): Remove hook.
14308 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
14309 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
14310 default_builtin_reciprocal.
14312 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
14314 PR middle-end/31723
14315 * hooks.c (hook_tree_tree_bool_null): New hook.
14316 * hooks.h (hook_tree_tree_bool_null): Add prototype.
14317 * tree-pass.h (pass_convert_to_rsqrt): Declare.
14318 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
14319 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
14320 and convert it to reciprocal a*rfunc(b).
14321 (execute_convert_to_rsqrt): New function.
14322 (gate_convert_to_rsqrt): New function.
14323 (pass_convert_to_rsqrt): New pass definition.
14324 * target.h (struct gcc_target): Add builtin_reciprocal.
14325 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
14326 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
14327 TARGET_BUILTIN_RECIPROCAL.
14328 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
14330 * config/i386/i386.h (TARGET_RECIP): New define.
14331 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
14332 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14333 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14334 and not optimizing for size.
14335 (*rcpsf2_sse): New insn pattern.
14336 (*rsqrtsf2_sse): Ditto.
14337 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
14338 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14339 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14340 and not optimizing for size.
14341 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
14342 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14343 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14344 and not optimizing for size.
14345 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
14346 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14347 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14348 and not optimizing for size.
14349 (*sse_rsqrtv4sf2): Do not export.
14350 (sqrtv4sf2): Ditto.
14351 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
14352 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14353 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14354 and not optimizing for size.
14355 (sqrtv4sf2): Ditto.
14356 * config/i386/i386.opt (mrecip): New option.
14357 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
14358 (ix86_emit_swsqrtsf): Ditto.
14359 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
14360 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
14361 builtin definition.
14362 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
14363 ix86_expand_unop1_builtin.
14364 (ix86_emit_swdivsf): New function.
14365 (ix86_emit_swsqrtsf): Ditto.
14366 (ix86_builtin_reciprocal): New function.
14367 (TARGET_BUILTIN_RECIPROCAL): Use it.
14368 (ix86_vectorize_builtin_conversion): Rename from
14369 ix86_builtin_conversion.
14370 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
14371 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
14372 "i386 and x86_64 Options" section.
14373 (Intel 386 and AMD x86_64 Options): Document -mrecip.
14375 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
14376 Zdenek Dvorak <dvorakz@suse.cz>
14377 Richard Guenther <rguenther@suse.de>
14378 Kaz Kojima <kkojima@gcc.gnu.org>
14380 * tree-vrp.c (compare_values_warnv): Convert val2 to
14382 (extract_range_from_assert): Create
14383 POINTER_PLUS_EXPR for pointer types.
14384 (extract_range_from_binary_expr): Handle
14385 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
14387 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
14388 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
14389 POINTER_PLUS_EXPR as PLUS_EXPR.
14390 (number_of_iterations_lt_to_ne):
14391 For pointer types, use sizetype when
14392 creating MINUS_EXPR/PLUS_EXPRs.
14393 (assert_loop_rolls_lt): For pointer types, use sizetype when
14394 creating MINUS_EXPR/PLUS_EXPRs.
14395 (number_of_iterations_le): Likewise.
14396 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
14397 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
14398 like PLUS_EXPR and MINUS_EXPR.
14399 * tree-pretty-print.c (dump_generic_node): Handle
14401 (op_prio): Likewise.
14402 (op_symbol_1): Likewise.
14403 * optabs.c (optab_for_tree_code): Likewise.
14404 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
14406 * tree-tailcall.c (process_assignment): Mention
14407 POINTER_PLUS_EXPR in a TODO comment.
14408 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
14409 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
14410 not used with a pointer and an integer type.
14411 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
14412 increment using chrec_convert_rhs instead of chrec_convert.
14413 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
14414 PLUS_EXPR except for the right hand side's type will be
14416 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
14417 (fold_used_pointer_cast): Kill.
14418 (pointer_offset_p): Kill.
14419 (fold_used_pointer): Kill.
14420 (pointer_used_p): Kill.
14421 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
14422 call fold_used_pointer.
14423 (instantiate_parameters_1): Convert the increment
14424 using chrec_convert_rhs instead of chrec_convert.
14425 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
14426 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
14427 instead of PLUS_EXPR.
14428 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
14429 PLUS_EXPR for pointers.
14430 (std_gimplify_va_arg_expr): Likewise.
14431 (fold_builtin_memory_op): Likewise.
14432 (fold_builtin_strstr): Likewise.
14433 (fold_builtin_strchr): Likewise.
14434 (fold_builtin_strrchr): Likewise.
14435 (fold_builtin_strpbrk): Likewise.
14436 (expand_builtin_memory_chk): Likewise.
14437 (fold_builtin_memory_chk): Likewise.
14438 (std_expand_builtin_va_start): Use
14439 sizetype for the call to make_tree and then convert
14440 to the pointer type.
14441 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
14442 instead of PLUS_EXPR for adding to a pointer.
14443 (std_gimplify_va_arg_expr): Use fold_build2 for
14444 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
14445 the operands to sizetype first and then cast the BIT_AND_EXPR
14446 back to the pointer type.
14447 * fold-const.c (build_range_check): Handle pointer types
14449 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
14450 of PLUS_EXPR's. Make sure the offset is converted to
14452 (try_move_mult_to_index): Strip the NOPs from the offset.
14453 Remove code argument and replace all uses with PLUS_EXPR.
14454 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
14455 specially. Don't use a pointer type for MINUS_EXPR.
14456 (fold_unary): Handle for (T1)(X op Y),
14457 only p+ as that is the only as that can be handled for
14458 binary operators now.
14459 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
14461 <case PLUS_EXPR>: Add folding of PTR+INT into
14463 Don't call try_move_mult_to_index.
14464 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
14465 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
14466 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
14467 Don't call try_move_mult_to_index.
14468 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
14469 (tree_expr_nonzero_p): Likewise.
14470 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
14471 of PLUS_EXPR for the complex expression folding.
14472 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
14473 first chrec is a pointer type, then the second should
14474 be sizetype and not the first's type.
14475 For POINTER_PLUS_EXPR, use a different right hand side type.
14476 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14477 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
14478 different right hand side type.
14479 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14480 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
14481 instead of PLUS_EXPR.
14482 When either operand is zero, convert the other operand.
14483 (chrec_apply): Use chrec_convert_rhs
14484 on the argument x instead of chrec_convert.
14485 (reset_evolution_in_loop): For pointer types, the new_evol
14486 should be sizetype.
14487 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
14488 different right hand side type.
14489 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14490 (chrec_convert_rhs): New function.
14491 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
14492 different right hand side type.
14493 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14494 * tree-chrec.h (chrec_convert_rhs): New prototype.
14495 (build_polynomial_chrec): For pointer types, the right hand
14496 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
14497 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
14498 Remove subtraction case as it is always addition now.
14499 Make sure the offset is converted to sizetype.
14500 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
14501 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
14502 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
14503 PLUS_EXPR in pointer type.
14504 Handle POINTER_PLUS_EXPR.
14505 (tree_to_aff_combination): Likewise.
14506 (force_expr_to_var_cost): Likewise.
14507 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
14508 instead of PLUS_EXPR for pointers.
14509 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
14510 instead of PLUS_EXPR of pointer types.
14511 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
14513 (check_va_list_escapes): Likewise.
14514 (check_all_va_list_escapes): Likewise.
14515 * dwarf2out.c (loc_descriptor_from_tree_1):
14516 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
14517 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
14518 (string_constant): Likewise.
14519 * tree-ssa-address.c (tree_mem_ref_addr): When adding
14520 the offset to the base, use POINTER_PLUS_EXPR.
14521 (add_to_parts): Convert the index to sizetype.
14522 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
14523 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
14524 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
14525 Offset only holds something for PLUS_EXPR.
14526 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
14528 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
14530 (analyze_accesses_for_modify_stmt): Likewise.
14531 Remove comment about the type being integral type as it is
14533 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
14535 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
14537 Correct the type which the artimentic is done in (is now
14540 * tree-data-ref.c (split_constant_offset): Handle
14542 * tree-affine.c (tree_to_aff_combination): Likewise.
14543 * c-typeck.c (build_unary_op): For pointers create the increment
14544 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
14546 * gimplify.c (gimplify_self_mod_expr): Create a
14547 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14548 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
14549 * tree.def (POINTER_PLUS_EXPR): New tree code.
14550 * tree-predcom.c (ref_at_iteration): If we have a pointer
14551 type do the multiplication in sizetype.
14552 * tree-mudflap.c (mf_xform_derefs_1): Create a
14553 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14554 * tree-ssa-forwprop.c
14555 (forward_propagate_addr_into_variable_array_index):
14556 Don't expect there to be a cast for the index as that
14557 does not exist anymore.
14558 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
14559 instead of PLUS_EXPR.
14560 Don't check for the first operand of the POINTER_PLUS_EXPR
14561 was the index as it cannot be.
14562 Call forward_propagate_addr_into_variable_array_index with
14563 the SSA_NAME instead of the statement.
14564 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
14565 (compare_constant): Likewise.
14566 (copy_constant): Likewise.
14567 (compute_reloc_for_constant): Likewise.
14568 (output_addressed_constants): Likewise.
14569 (initializer_constant_valid_p): Likewise.
14570 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
14571 Convert the MIN/MAX of the inner type to the outer
14572 type before comparing them.
14573 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
14574 POINTER_PLUS_EXPR instead of PLUS_EXPR.
14575 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
14576 of PLUS_EXPR for pointers.
14577 * tree-inline.c (estimate_num_insns_1): Handle
14579 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
14580 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14581 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
14582 instead of PLUS_EXPR for the pointer increment statement.
14583 (vect_update_ivs_after_vectorizer): For pointer types, create
14584 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
14585 MULT_EXPR in sizetype.
14586 (vect_gen_niters_for_prolog_loop): Add a cast when creating
14588 * tree-object-size.c (plus_expr_object_size): Handle
14589 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
14590 code which is trying to figure out which side is a pointer and
14592 (check_for_plus_in_loops_1): Likewise.
14593 (check_for_plus_in_loops): Likewise.
14594 * c-common.c (pointer_int_sum): Create a
14595 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14596 * tree-ssa-structalias.c (handle_ptr_arith): Handle
14597 only POINTER_PLUS_EXPR. Removing all the extra
14598 code which is trying to figure out which side is a pointer and
14600 * tree-cfg.c (verify_expr): Add extra checking for pointers and
14601 PLUS_EXPR and MINUS_EXPR.
14602 Also add checking to make sure the operands of POINTER_PLUS_EXPR
14604 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
14605 with make_tree, instead of a pointer type.
14606 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
14607 for pointers instead of PLUS_EXPR.
14608 (s390_gimplify_va_arg): Likewise.
14609 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
14610 instead of PLUS_EXPR when doing addition on pointer
14611 types. Use sizetype for the second operand.
14612 (spu_gimplify_va_arg_expr): Likewise.
14613 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
14614 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
14615 a pointer. Don't create a BIT_AND_EXPR for pointer types.
14616 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
14617 for the pointer addition and also use size_int/sizetype
14619 (ix86_gimplify_va_arg): Likewise.
14620 Perform BIT_AND_EXPR on sizetype arguments.
14621 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
14622 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
14623 for the pointer additions and also use size_int for the offsets.
14624 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
14625 additions and also use size_int for the offsets. Perform
14626 BIT_AND_EXPR on sizetype arguments.
14627 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
14628 POINTER_PLUS_EXPR for pointers and create the
14629 BIT_AND_EXPR in sizetype.
14630 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
14631 instead of PLUS_EXPR for pointer addition.
14632 (rs6000_va_start): Likewise.
14633 Also use sizetype for the offset.
14634 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
14635 as PLUS_EXPR/MINUS_EXPR.
14636 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
14637 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
14638 Don't use BIT_AND_EXPR on a pointer type, convert the
14639 expression to sizetype first.
14640 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
14642 (mips_gimplify_va_arg_expr): Likewise.
14643 Don't create BIT_AND_EXPR in a pointer type.
14645 2007-06-15 Eric Christopher <echristo@apple.com>
14647 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
14648 (x86_64-*-darwin*): Ditto.
14649 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
14652 2007-06-15 Matthew Wilcox <matthew@wil.cx>
14654 * doc/extend.texi: Document behavior of __attribute__((aligned))
14657 2007-06-15 Mark Mitchell <mark@codesourcery.com>
14659 * rtlanal.c (note_stores): Improve documentation.
14661 2007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
14663 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
14664 LOCAL_LABEL_PREFIX): Delete.
14665 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
14666 (bfin_internal_label): Delete.
14668 2007-06-15 Uros Bizjak <ubizjak@gmail.com>
14670 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
14671 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
14672 otherwise define to LIBGCC2_TF_CEXT.
14673 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
14674 (LIBGCC_TF_CEXT): Ditto.
14677 2007-06-14 Seongbae Park <seongbae.park@gmail.com>
14679 PR rtl-optimization/32339
14680 * df-scan.c (df_uses_record): Don't modify flags but just add to
14681 it for df_ref_record.
14683 2007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
14685 * tree-mudflap.c: Fix whitespace issues.
14687 2007-06-15 Kazu Hirata <kazu@codesourcery.com>
14689 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
14691 2007-06-14 Eric Christopher <echristo@apple.com>
14693 * config/i386/sse.md (movdi_to_sse): Rewrite body.
14694 (movv4sf): Use gcc_unreachable instead of abort.
14696 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
14699 * config/i386/sfp-machine.h (CMPtype): New define.
14700 (mach stubs): Use CMPtype instead of int as a return type.
14702 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
14704 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
14705 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
14706 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
14707 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
14708 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
14709 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
14710 config/soft-fp/soft-fp.h: Update from glibc CVS.
14712 2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
14714 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
14716 2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
14719 * config/v850/v850.c: Include dataflow header file.
14720 (substitute_ep_register): Fix typo.
14722 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
14724 * configure.ac: Fix earlier checkin.
14725 * configure: Regenerated.
14727 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
14729 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
14730 * aclocal.m4: Regenerate.
14731 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
14732 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
14733 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
14734 * configure: Regenerate.
14735 * Makefile.in (LOOSE_WARN): Subst loose_warn.
14737 * Makefile.in (quickstrap): Build libgcc too.
14739 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
14741 * configure.ac: Add --enable-checking=df. Explicitly mention that
14742 the variables are initialized as for "release".
14743 * df-core.c: Use it.
14744 * configure: Regenerate.
14745 * config.in: Regenerate.
14747 2007-06-14 Bob Wilson <bob.wilson@acm.org>
14749 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
14750 validate_replace_rtx instead of replace_rtx.
14751 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
14753 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
14755 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
14756 (DWARF2_UNWIND_INFO): Override default if configured with
14758 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
14759 (ENDFILE_SPEC): Add crtend.o.
14760 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
14761 (ENDFILE_SPEC): Add crtend.o.
14762 (TARGET_USE_JCR_SECTION): Define.
14763 (MD_UNWIND_SUPPORT): Define for 32-bit target.
14765 * config/i386/cygming-crtbegin.c: New file.
14766 * config/i386/cygming-crtend.c: New file.
14768 2007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
14770 * config/i386/w32-unwind.h: New file.
14772 2007-06-13 Eric Christopher <echristo@apple.com>
14774 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
14775 the user set a value below STACK_BOUNDARY.
14777 2007-06-13 Thiemo Seufer <ths@networkno.de>
14779 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
14780 imply -lpthread for -pthread.
14782 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
14784 * basic-block.h: Remove the prototype for
14785 free_basic_block_vars.
14786 * cfglayout.h: Remove the prototype for
14787 insn_locators_initialize.
14788 * tree.h: Remove the prototype for emit_line_note.
14790 * tree-ssa-pre.c (mergephitemp): Remove.
14791 (init_pre): Don't use mergephitemp.
14793 2007-06-13 Eric Christopher <echristo@apple.com>
14795 * config/i386/i386.c (override_options): If we've specified
14796 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
14798 2007-06-13 Bob Wilson <bob.wilson@acm.org>
14800 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
14803 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
14805 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
14806 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
14807 (eh_store_handler): New pattern.
14808 (eh_return): Emit it instead of a plain move.
14810 2007-06-13 Uros Bizjak <ubizjak@gmail.com>
14812 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
14813 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
14814 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
14817 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
14819 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
14820 (find_next_insn_start, find_load): New functions.
14821 (bfin_reorg): Use them to deal with the fact that parallel insns are
14822 no longer represented as a SEQUENCE.
14824 2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
14826 * config/sparc/sparc.c (sparc_override_options): Initialize
14827 fpu mask correctly.
14829 2007-06-13 Dave Korn <dave.korn@artimi.com>
14831 * config/i386/i386.c (ix86_eax_live_at_start_p): Use
14834 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
14836 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
14837 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
14838 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
14839 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
14840 tree-vect-transform.c: Fix comment typos. Follow spelling
14843 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
14845 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
14846 to the exit block use set.
14847 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
14848 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
14849 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
14851 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
14853 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
14854 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
14855 to indicate an error.
14856 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
14858 (dbg_cnt_process_opt): Print an error on a bad argument.
14859 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
14860 * common.opt (-fdbg-cnt-list): New.
14861 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
14863 2007-06-12 Eric Botcazou <ebotcazou@adacore.com>
14865 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
14866 flag on ref-all pointers.
14868 2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14870 PR middle-end/31579
14871 * expr.c (expand_expr_addr_expr_1): Call expand_expr
14872 for the offset with the modifier as EXPAND_INITIALIZER
14873 if the modifier is EXPAND_INITIALIZER.
14874 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
14875 a register if we had an overflow.
14877 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14879 * real.c (real_isfinite): New.
14880 (real_sqrt): Use it.
14881 * real.h (real_isfinite): New.
14882 * builtins.c: Use it.
14884 2007-06-12 Ian Lance Taylor <iant@google.com>
14885 Daniel Berlin <dberlin@dberlin.org>
14888 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
14889 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
14890 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
14891 (DECL_NO_TBAA_P): Define.
14892 (struct tree_decl_common): Add no_tbaa_flag field.
14893 * tree-ssa-structalias.c (struct variable_info): Add
14894 no_tbaa_pruning field.
14895 (new_var_info): Initialize no_tbaa_pruning field.
14896 (unify_nodes): Copy no_tbaa_pruning field.
14897 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
14898 (dump_solution_for_var): Print no_tbaa_pruning flag.
14899 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
14901 (compute_tbaa_pruning): New static function.
14902 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
14903 Call compute_tbaa_pruning.
14904 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
14905 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
14906 * gimple-low.c (lower_stmt): Likewise.
14907 * tree-gimple.c (is_gimple_stmt): Likewise.
14908 * tree-ssa-operands.c (get_expr_operands): Likewise.
14909 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14910 * tree-inline.c (estimate_num_insns_1): Likewise.
14911 (copy_result_decl_to_var): Likewise.
14912 * expr.c (expand_expr_real_1): Likewise.
14913 * tree-pretty-print.c (dump_generic_node): Likewise.
14914 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
14915 * omp-low.c (omp_copy_decl_2): Likewise.
14916 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
14917 * doc/c-tree.texi (Expression trees): Document
14918 CHANGE_DYNAMIC_TYPE_EXPR.
14920 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14922 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
14923 with !HONOR_NANS and !HONOR_INFINITIES.
14924 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14926 2007-06-12 Tristan Gingold <gingold@adacore.com>
14928 * gcov.c: Comments updated.
14929 (source_info): Add file_time field.
14930 (source_index): New variable.
14931 (mutiple_files): New variable.
14932 (generate_results): New function extracted from process_file.
14933 (process_file): Save and restore chain of functions, generate
14934 results and free structures only if not merging results.
14935 (release_structures): File names are now freed in create_file_names
14936 (create_file_names): Free previous file names.
14937 (find_source): File date is now read here and modifications in
14938 source files is checked here.
14939 (read_graph_file): Only reverse order of functions for the current
14941 (make_gcov_file_name): Do not generate long names if input_name is
14943 (output_lines): If merging results do not display graph, data and
14945 Checking source file modification is done in find_source.
14947 * doc/gcov.texi: Append an s to sourcefile.
14949 2007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
14951 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
14952 (forced_nop): New pattern.
14953 * config/bfin/bfin.c: Include "df.h".
14954 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
14955 (bfin_discover_loop): Use df_get_live_in instead of
14956 global_live_at_start.
14957 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
14958 df_analyze when done.
14959 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
14960 the insns. Use QImode for the final insn in a bundle. Call
14961 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
14963 (reorder_var_tracking_notes): New function.
14964 (bfin_reorg): Pass no argument to split_all_insns. Don't call
14965 update_life_info. Call df_analyze after scheduling and bundle
14966 generation. Call reorder_var_tracking_notes if generating these
14967 notes. Call df_finish_pass at the end.
14969 2007-06-12 Dirk Mueller <dmueller@suse.de>
14971 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
14972 a comparison, not an assignment.
14974 2007-06-12 Olivier Hainque <hainque@adacore.com>
14976 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
14977 Request walking the subtrees only, leaving the current is_lhs/val_only
14979 (convert_non_local_reference): Likewise.
14981 2007-06-12 Nathan Sidwell <nathan@codesourcery.com>
14983 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
14985 2007-06-12 Richard Guenther <rguenther@suse.de>
14987 PR tree-optimization/15353
14988 PR tree-optimization/31657
14989 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
14990 * timevar.def: Add TV_TREE_IFCOMBINE.
14991 * tree-pass.h (pass_tree_ifcombine): Declare.
14992 * tree-ssa-ifcombine.c: New file.
14993 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
14994 * tree-flow.h (blocks_in_phiopt_order): Declare.
14995 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
14996 (tree-ssa-ifcombine.o): New dependencies.
14998 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
15000 PR rtl-optimization/32293
15001 * combine.c (simplify_if_then_else): Truncate return from
15002 nonzero_bits() to correct mode.
15004 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
15006 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
15007 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
15009 2007-06-11 Diego Novillo <dnovillo@google.com>
15011 * Makefile.in (reload1.o-warn): Remove.
15013 2007-06-11 Seongbae Park <seongbae.park@gmail.com>
15015 * combine.c (subst): Use reg_overlap_mentioned_p
15016 instead of comparing register numbers directly.
15018 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
15020 * reload1.c (mark_home_live_1): Use the mode parameter.
15022 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
15024 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
15025 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
15027 * df-core.c: Ditto.
15029 2007-06-11 Daniel Berlin <dberlin@dberlin.org>
15031 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
15033 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
15035 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
15036 from integer registers.
15037 (FP mode splitters): Handle TFmode.
15039 2007-06-11 Eric Botcazou <ebotcazou@adacore.com>
15041 * tree-ssa-structalias.c (find_what_p_points_to): Return false
15042 for ref-all pointers that point-to anything.
15044 2007-06-11 Joseph Myers <joseph@codesourcery.com>
15046 * config/arm/arm.c (arm_output_dwarf_dtprel,
15047 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
15049 2007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
15051 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
15052 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
15055 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
15057 * tree.c (signed_or_unsigned_type_for): New.
15058 (unsigned_type_for): Use signed_or_unsigned_type_for.
15059 (signed_type_for): Use signed_or_unsigned_type_for.
15060 * tree.h (signed_or_unsigned_type_for): New.
15061 (get_signed_or_unsigned_type): Remove.
15062 * fold-const.c (fold_negate_expr): Use signed_type_for instead of
15063 lang_hooks.types.signed_type
15064 (size_diffop): Likewise.
15065 (all_ones_mask_p): Likewise.
15066 (build_range_check): Likewise.
15067 (fold_cond_expr_with_comparison): Likewise.
15068 (fold_cond_expr_with_comparison): Likewise.
15069 (unextend): Likewise.
15070 (extract_muldiv_1): Likewise.
15071 (fold_single_bit_test_into_sign_test): Likewise.
15072 (fold_binary): Likewise.
15073 (fold_ternary): Likewise.
15074 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
15075 instead of get_signed_or_unsigned_type.
15076 * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
15077 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
15078 * expr.c (signed_or_unsigned_type_for): Use
15079 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
15080 * langhooks.c (get_signed_or_unsigned_type): Remove.
15081 (lhd_signed_or_unsigned_type): Remove.
15082 * langhooks.h (lang_hooks_for_types): Remove signed_type and
15083 signed_or_unsigned_type.
15084 (lhd_signed_or_unsigned_type): Remove.
15085 * expmed.c (make_tree): Use signed_type_for instead of
15086 lang_hooks.types.signed_type.
15087 * c-common.c (same_scalar_type_ignoring_signedness): Use
15088 c_common_signed_type instead of lang_hooks.types.signed_type.
15089 (c_common_unsigned_type): New.
15090 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
15091 (shorten_compare): Use c_common_unsigned_type instead of
15092 c_common_signed_or_unsigned_type.
15093 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
15095 * convert.c (convert_to_integer): Use signed_type_for instead of
15096 lang_hooks.types.signed_type.
15097 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
15098 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
15099 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
15100 * c-format.c (check_format_types): Use c_common_unsigned_type
15101 instead of unsigned_type_for.
15102 * c-decl.c (groakdeclarator): Likewise.
15103 * c-typeck.c (convert_for_assignment): Likewise.
15104 * c-common.h (c_common_unsigned_type): New.
15106 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
15109 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
15110 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
15112 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
15114 PR middle-end/32279
15115 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
15116 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
15118 2007-06-10 Jan Sjodin <jan.sjodin@amd.com>
15119 Sebastian Pop <sebpop@gmail.com>
15121 * lambda-code.c (remove_iv): New.
15122 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
15124 2007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
15126 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
15127 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
15128 * tree-ssa-loop-prefetch.c: Include optabs.h.
15129 (FENCE_FOLLOWING_MOVNT): New macro.
15130 (struct mem_ref): Add independent_p and storent_p fields.
15131 (record_ref): Initalize the new fields.
15132 (gather_memory_references_ref): Return true if the reference
15134 (gather_memory_references): Check whether all memory accesses
15135 in loop were recorded.
15136 (should_issue_prefetch_p): Return false for nontemporal stores.
15137 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
15138 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
15139 (determine_loop_nest_reuse): Detect independent memory references.
15140 (loop_prefetch_arrays): Call mark_nontemporal_stores.
15141 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
15142 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
15143 * config/i386/i386.h (x86_mfence): Declare.
15144 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
15145 * config/i386/i386.c (x86_mfence): New variable.
15146 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
15148 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
15149 * optabs.c (init_optabs): Initialize storent_optab.
15150 * optabs.h (enum optab_index): Add OTI_storent.
15151 (storent_optab): Declare.
15152 * genopinit.c (optabs): Add initialization for storent_optab.
15153 * tree.h (MOVE_NONTEMPORAL): New macro.
15154 * expr.c (expand_assignment, store_expr, store_constructor_field,
15155 store_constructor, store_field, expand_expr_real_1): Propagate
15156 nontemporality of the expanded store.
15157 (emit_storent_insn): New function.
15158 * expr.h (expand_assignment, store_expr): Declaration changed.
15159 * function.c (assign_parm_setup_reg): Pass false as nontemporality
15160 to expand_assignment.
15161 * stmt.c (expand_asm_expr): Ditto.
15162 * calls.c (initialize_argument_information): Pass false as
15163 nontemporality to store_expr.
15164 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
15167 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
15169 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
15171 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
15173 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
15175 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
15176 and allow DECL_P here.
15178 2007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
15180 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
15181 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
15182 track of the size of the expression.
15183 * cfghooks.c (merge_blocks): Remove block from loops structure only
15184 after call of the merge_blocks hook.
15186 2007-06-09 Tom Tromey <tromey@redhat.com>
15188 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
15189 (deprecated_state): Removed.
15190 (start_decl): Update.
15191 (enum deprecated_states): Moved earlier.
15192 (groktypename): Update.
15193 (push_parm_decl): Likewise.
15194 (grokfield): Likewise.
15195 (start_function): Likewise.
15197 2007-06-09 Ian Lance Taylor <iant@google.com>
15199 PR tree-optimization/32169
15200 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
15201 CONVERT_EXPR, check whether min and max both converted to an
15202 overflow infinity representation.
15204 2007-06-08 Eric Botcazou <ebotcazou@adacore.com>
15206 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
15207 not inserted on the edge.
15209 2007-06-08 Bob Wilson <bob.wilson@acm.org>
15211 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
15212 instructions if they are supported.
15213 (__divsi3, __umodsi3, __modsi3): Likewise.
15214 (__ashldi3, __ashrdi3, __lshrdi3): New.
15215 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
15217 2007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
15218 Tony Linthicum <tony.linthicum@amd.com>
15220 * doc/invoke.texi: Add fvect-cost-model flag.
15221 * common.opt (fvect-cost-model): New flag.
15222 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
15223 cost fields in stmt_vec_info struct for STMT.
15224 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
15225 fields in stmt_vec_info struct and access functions for the same.
15226 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
15227 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
15228 load, store and vector to scalar operation.
15229 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
15230 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
15231 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
15232 (TARG_VEC_STORE_COST): Define cost of vector store.
15233 (vect_estimate_min_profitable_iters): Define new function.
15234 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
15235 check to evaluate if loop iterations are less than minimum profitable
15236 iterations determined by cost model or minimum vect loop bound defined
15237 by user, whichever is more conservative.
15238 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
15239 run-time check to evaluate if loop iterations are less than minimum
15240 profitable iterations determined by cost model or minimum vect loop
15241 bound defined by user, whichever is more conservative.
15242 (vect_estimate_min_profitable_iterations): New function to estimate
15243 mimimimum iterartions required for vector version of loop to be
15244 profitable over scalar version.
15245 (vect_model_reduction_cost): New function.
15246 (vect_model_induction_cost): New function.
15247 (vect_model_simple_cost): New function.
15248 (vect_cost_strided_group_size): New function.
15249 (vect_model_store_cost): New function.
15250 (vect_model_load_cost): New function.
15251 (vectorizable_reduction): Call vect_model_reduction_cost during
15253 (vectorizable_induction): Call vect_model_induction_cost during
15255 (vectorizable_load): Call vect_model_load_cost during analysis phase.
15256 (vectorizable_store): Call vect_model_store_cost during analysis phase.
15257 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
15258 vectorizable_promotion, vectorizable_demotion): Call
15259 vect_model_simple_cost during analysis phase.
15261 2007-06-08 Simon Baldwin <simonb@google.com>
15263 * reg-stack.c (get_true_reg): Readability change. Moved default case
15264 label into direct switch statement scope.
15266 2007-06-08 Simon Baldwin <simonb@google.com>
15268 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
15269 in gcc_assert() with '==' comparison.
15271 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15273 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
15274 TARGET_ABM handling of x86_popcnt variable.
15276 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15278 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
15279 __builtin_copysignq and __builtin_infq built-in functions.
15281 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15283 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
15284 SSE4.2 section. Correct built-in function names in SSE4A section.
15286 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15288 PR tree-optimization/32243
15289 * tree-vect-transform.c (vectorizable_type_promotion): Move check
15290 for ncopies after ratio check between nunits_out and nunits_in.
15291 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
15293 2007-06-08 Dorit Nuzman <dorit@il.ibm.com>
15295 PR tree-optimization/32224
15296 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
15297 vectorization upon a non GIMPLE_MODIFY_STMT.
15299 2007-06-08 Christian Bruel <christian.bruel@st.com>
15302 * config/sh/sh.md (doloop_end): New pattern and splitter.
15303 * loop-iv.c (simple_rhs_p): Check for hardware registers.
15305 2007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
15307 PR middle-end/32209
15308 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
15310 (verify_dominators): Do not change dominance tree.
15312 2007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15314 * config/sh/constraints.md: New file.
15315 * config/sh/sh.c: Include tm-constrs.h.
15316 (reg_class_from_letter): Remove.
15317 (prepare_cbranch_operands): Use satisfies_constraint_*
15318 function instead of macro.
15319 (andcosts, broken_move, sh_secondary_reload): Likewise.
15320 * config/sh/predicates.md (trapping_target_operand): Likewise.
15321 (and_operand, arith_operand, arith_reg_or_0_operand,
15322 cmp_operand, logical_operand, target_operand,
15323 ua_address_operand, ua_offset, xor_operand): Likewise.
15324 * config/sh/sh.md: Include constraints.md.
15325 (*movsicc_t_false): Use satisfies_constraint_* function
15327 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
15328 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
15329 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
15330 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
15331 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
15332 (REG_CLASS_FROM_CONSTRAINT): Remove.
15333 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
15334 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
15335 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
15336 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
15337 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
15338 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
15339 function instead of macro.
15340 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
15341 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
15342 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
15343 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
15344 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
15345 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
15346 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
15347 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
15348 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
15349 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
15350 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
15351 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
15352 EXTRA_CONSTRAINT_STR): Likewise.
15353 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
15355 2007-06-07 Geoffrey Keating <geoffk@apple.com>
15357 * config/i386/darwin.h (STACK_BOUNDARY): Define.
15359 2007-06-07 Simon Martin <simartin@users.sourceforge.net>
15362 * c-common.h (flag_cpp0x): Replaced by...
15363 (cxx_dialect): ... this new variable specifying the C++ dialect that
15365 * c-common.c (flag_cpp0x): Removed.
15366 (cxx_dialect): Defined.
15367 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
15369 * c-opts.c (c_common_post_options): Likewise.
15370 (set_std_cxx98): Set cxx_dialect to cxx98.
15371 (set_std_cxx0x): Set cxx_dialect to cxx0x.
15373 2007-06-07 Geoffrey Keating <geoffk@apple.com>
15374 Hui-May Chang <hm.chang@apple.com>
15376 * doc/invoke.texi (Darwin Options): Update documentation for
15377 -mmacosx-version-min.
15378 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
15379 * config/darwin-driver.c: New file.
15380 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
15381 * config/t-darwin (darwin-driver.o): New rule.
15383 * config/darwin-c.c (version_as_macro): Ignore low digit.
15385 2007-06-07 Uros Bizjak <ubizjak@gmail.com>
15387 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
15388 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
15389 (CSGNMODE): New mode macro.
15390 (CSGNVMODE): New mode attribute.
15391 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
15392 expander using CSGNMODE mode macro. Handle TFmode.
15393 (copysign<mode>3_const): Rename from copysignsf3_const and
15394 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
15396 (copysign<mode>3_var): Rename from copysignsf3_var and
15397 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
15399 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
15400 mode macro. Handle TFmode.
15401 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
15402 (iortf3, *iortf3): Ditto.
15403 (xortf3, *xortf3): Ditto.
15404 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
15405 TFmode and TImode masks.
15406 (ix86_expand_copysign): Expand TFmode copysign insn.
15407 (IX86_BUILTIN_INFQ): New.
15408 (IX86_BUILTIN_FABSQ): Ditto.
15409 (IX86_BUILTIN_COPYSIGNQ): Ditto.
15410 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
15411 [__builtin_fabsq]: Ditto.
15412 [__builtin_copysignq]: Ditto.
15413 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
15414 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
15415 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
15416 ix86_expand_binop_builtin().
15418 2007-06-07 Bob Wilson <bob.wilson@acm.org>
15420 * config/xtensa/lib1funcs.asm: Clean up whitespace.
15422 2007-06-07 Steve Ellcey <sje@cup.hp.com>
15425 * rtl.h (push_to_sequence2): New.
15426 * emit-rtl.c (push_to_sequence2): New.
15427 * function.c (assign_parm_data_all): Add new fields.
15428 (assign_parm_setup_block): Call push_to_sequence2 instead of
15430 (assign_parm_setup_reg): Ditto.
15431 (assign_parm_setup_stack): Ditto.
15432 (assign_parms_unsplit_complex): Ditto.
15433 (assign_parms): Change field name.
15435 2007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
15437 PR tree-optimization/32220
15438 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
15439 phi node is reached before defining statement.
15441 2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
15444 * tree-vect-transform.c (vectorizable_call): Call update_stmt
15445 after changing the right hand side of the assignment.
15447 2007-06-06 Eric Christopher <echristo@apple.com>
15449 * config.gcc (i?86-*-darwin*): Remove arch parameter.
15450 (x86_64-*-darwin*): Ditto.
15451 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
15452 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
15454 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15456 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
15457 coding conventions.
15458 (add_key): Likewise.
15459 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
15460 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
15462 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
15464 (add_cost_one_coalesce): Likewise.
15465 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
15466 variable names. Rename orig to orig_name for consistency.
15467 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
15468 coding conventions.
15469 (cprop_into_successor_phis): Avoid using C++ keywords as variable
15471 (record_equivalences_from_stmt): Likewise.
15472 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
15473 the coding conventions.
15474 (memory_ssa_name_same): Likewise.
15475 (dse_optimize_stmt): Likewise.
15476 (dse_record_phis): Likewise.
15477 (dse_finalize_block): Likewise.
15478 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
15479 keywords as variable names.
15480 (may_move_till): Cast according to the coding conventions.
15481 (force_move_till_expr): Avoid using C++ keywords as variable names.
15482 (force_move_till): Cast according to the coding conventions.
15483 (memref_hash): Likewise.
15484 (memref_eq): Likewise.
15485 (gather_mem_refs_stmt): Likewise.
15486 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
15487 using C++ keywords as variable names.
15488 (idx_find_step): Cast according to the coding conventions.
15489 (idx_record_use): Likewise.
15490 (find_depends): Likewise.
15491 (prepare_decl_rtl): Likewise.
15492 (mbc_entry_hash): Likewise.
15493 (mbc_entry_eq): Likewise.
15494 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
15495 (simplify_replace_tree): Avoid using C++ keywords as variable names.
15496 (idx_infer_loop_bounds): Cast according to the coding conventions.
15497 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15498 * tree-ssa-math-opts.c (occ_new ): Likwise.
15499 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
15501 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
15503 (add_use_op): Likewise.
15504 (add_vop): Likewise.
15505 (add_vuse_op): Likewise.
15506 (add_vdef_op): Likewise.
15507 (get_expr_operands): Likewise.
15508 (push_stmt_changes): Use type safe memory macros.
15509 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
15510 keywords as variable names.
15511 (conditional_replacement): Likewise.
15512 (minmax_replacement): Likewise.
15513 (abs_replacement): Likewise.
15514 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
15515 coding conventions.
15516 (insert_fake_stores): Avoid using C++ keywords as variable names.
15517 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
15519 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
15520 (heapvar_insert): Use type safe memory macros.
15521 (new_var_info): Cast according to the coding conventions.
15522 (new_constraint): Likewise.
15523 (remove_preds_and_fake_succs): Use type safe memory macros.
15524 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
15526 (thread_single_edge): Likewise.
15527 (thread_through_loop_header): Likewise.
15529 2007-06-06 Eric Christopher <echristo@apple.com>
15531 * config/i386/i386.c (override_options): Move handling
15532 of TARGET_SUBTARGET* earlier.
15534 2007-06-06 Paolo Bonzini <bonzini@gnu.org>
15536 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
15539 2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
15541 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
15542 emited outside of basic block.
15543 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
15544 the created blocks.
15545 * rtl.h (delete_insn_chain): Declaration changed.
15546 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
15548 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
15549 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
15550 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
15551 to delete_insn_chain.
15552 (rtl_verify_flow_info_1): Verify that the insns in header and footer
15553 do not have bb field set.
15554 (rtl_verify_flow_info): Verify that insns between basic blocks do not
15556 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
15557 * cfgcleanup.c (try_optimize_cfg): Ditto.
15559 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15561 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
15562 (lambda_body_vector_new): Use type safe memory macros.
15563 (lambda_linear_expression_new): Likewise.
15564 (lambda_loopnest_new): Likewise.
15565 (lambda_lattice_new): Likewise.
15566 (replace_uses_equiv_to_x_with_y): Cast according to the coding
15567 conventions. Use type safe memory macros.
15568 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
15569 (lambda_body_vector_s): Likewise.
15570 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
15571 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
15573 2007-06-06 Richard Guenther <rguenther@suse.de>
15575 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
15576 if we need to schedule cfg_cleanup.
15577 (tree_ssa_forward_propagate_single_use_vars): Do so.
15579 2007-06-06 Ian Lance Taylor <iant@google.com>
15581 * fold-const.c (merge_ranges): If range_successor or
15582 range_predecessor fail, just return 0.
15584 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
15586 PR tree-optimization/32216
15587 * tree-vectorizer.c (supportable_widening_operation): Determine
15588 signedness of FIX_TRUNC_EXPR from output operand.
15589 (supportable_narrowing_operation): Ditto.
15590 * tree-vect-generic.c (expand_vector_operations_1): Determine
15591 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
15592 from input operand.
15594 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15596 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
15597 (struct pta): ...from here. Change flags to unsigned to avoid
15598 excessive casting (as it is used as a bit mask).
15599 (override_options): Add casts according to the coding convenventions.
15600 (x86_64_elf_unique_section): Likewise.
15601 (examine_argument): Avoid using C++ keywords as variable names.
15602 (construct_container): Likewise.
15603 (legitimize_pic_address): Likewise.
15604 (get_dllimport_decl): Cast according to the coding conventions. Use
15605 type safe memory macros.
15606 (legitimize_address): Cast according to the coding conventions.
15607 (emit_i387_cw_initialization): Corrected the type of slot to enum
15609 (ix86_init_machine_status): Use type safe memory macros.
15610 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
15611 (bdesc_pcmpistr): Likewise.
15612 (bdesc_crc32): Likewise.
15613 (bdesc_sse_3arg): Likewise.
15614 (bdesc_2arg): Likewise.
15615 (bdesc_1arg): Likewise.
15616 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
15617 (ix86_expand_sse_pcmpistr): Likewise.
15618 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
15619 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
15620 int to match the langhook definition.
15621 (ix86_builtin_conversion): Change the type of code to unsigned init to
15622 match the langhook definition.
15623 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
15625 (ix86_preferred_output_reload_class): Likewise.
15626 (ix86_cannot_change_mode_class): Likewise.
15627 (ix86_memory_move_cost): Likewise.
15628 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
15629 avoid excessive casting later on.
15630 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
15632 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
15634 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
15635 as flags setting insn.
15636 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
15638 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
15640 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
15641 (UNSPEC_ROUND): New.
15642 ("sse4_1_round<mode>2"): New insn pattern.
15643 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
15645 ("floor<mode>2"): Rename from floordf2 and floorsf2. Macroize
15646 expander using SSEMODEF mode macro. Expand using
15647 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15648 ("ceil<mode>2"): Rename from ceildf2 and ceilsf2. Macroize
15649 expander using SSEMODEF mode macro. Expand using
15650 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15651 ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2. Macroize
15652 expander using SSEMODEF mode macro. Expand using
15653 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15654 * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
15655 UNSPEC_ROUND instead of UNSPEC_ROUNDP.
15656 ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
15659 2007-06-06 Jan Sjodin <jan.sjodin@amd.com>
15660 Sebastian Pop <sebpop@gmail.com>
15662 * lambda.h (build_linear_expr): New.
15663 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
15664 Use build_linear_expr, call fold and force_gimple_operand.
15665 (lambda_loopnest_to_gcc_loopnest): Check that there is
15666 something to insert.
15667 * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
15669 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
15671 PR preprocessor/23479
15672 * doc/extend.texi: Document the 0b-prefixed binary integer
15673 constant extension.
15675 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
15677 PR tree-optimization/32215
15678 * tree-vectorizer.c (supportable_widening_operation): Return false
15679 for unsupported FIX_TRUNC_EXPR tree code.
15680 (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
15682 2007-06-06 Nathan Froyd <froydnj@codesourcery.com>
15684 * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
15685 register on SPE targets. Change documentation to reflect
15687 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15688 Change FIXED_SCRATCH to 14 and document why we're keeping r14
15689 out of the register allocation pool.
15690 (rs6000_reg_live_or_pic_offset_p): New function.
15691 (rs6000_emit_prologue): Move the actual saving of LR up to free
15692 r0 for holding r11. Split saving of SPE 64-bit registers into
15693 its own case. Ensure that offsets will always be in-range for
15694 'evstdd' by using r11 as a scratch register to point at the start
15695 of the SPE save area. Save r11 if necessary, as it is the static
15697 (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
15698 into its own case. Ensure that offsets will always be in-range
15699 for 'evldd' by using r11 as a scratch register to point at the
15700 start of the SPE save area. Also adjust r11 when restoring
15701 the stack pointer to compensate for pre-loading r11.
15703 2007-06-05 Thomas Neumann <tneumann@users.sourceforge.net>
15705 * cfg.c (init_flow): Use type safe memory macros.
15706 (alloc_block): Likewise.
15707 (unchecked_make_edge): Likewise.
15708 (dump_flow_info): Avoid using C++ keywords as variable names.
15709 (copy_original_table_clear): Cast according to the coding conventions.
15710 (copy_original_table_set): Likewise.
15711 * cfgexpand (label_rtx_for_bb): Likewise.
15712 (expand_gimple_basic_block): Likewise.
15713 * cfghooks.c (dump_bb): Likewise.
15714 (lv_adjust_loop_header_phi): Avoid using C++ keywords as
15716 (lv_add_condition_to_bb): Likewise.
15717 * cfglayout (relink_block_chain): Cast according to the coding
15719 (fixup_reorder_chain): Likewise.
15720 (fixup_fallthru_exit_predecessor): Likewise.
15721 * cfgloop.c (glb_enum_p): Likewise.
15722 (get_exit_description): Likewise.
15723 (dump_recorded_exit): Likewise.
15724 * cfgloop.h (enum loop_estimation): Move out of struct scope...
15725 (struct loop): ... from here.
15726 * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
15728 * cfgrtl.c (rtl_create_basic_block): Likewise.
15729 (rtl_split_block): Likewise.
15730 (rtl_dump_bb): Likewise.
15731 (cfg_layout_split_block): Likewise.
15732 (init_rtl_bb_info): Use typesafe memory macros.
15734 * graphds.h (struct graph_edge): Renamed edge to graph_edge.
15735 * graphds.h: Updated all usages of edge to graph_edge.
15736 * graphds.c: Likewise.
15737 * cfgloopanal.c: Likewise.
15739 2007-06-05 Ian Lance Taylor <iant@google.com>
15741 * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
15742 PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
15743 (extract_range_from_assert): Set TREE_NO_WARNING when creating an
15745 (test_for_singularity): Likewise.
15747 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
15749 * config/i386/constraints.md ("Y2"): Replaced by ...
15751 * config/i386/i386.md: Likewise.
15752 * config/i386/mmx.md: Likewise.
15753 * config/i386/sse.md: Likewise.
15755 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
15757 * config/i386/constraints.md ("z"): Replaced by ...
15759 * config/i386/sse.md (sse4_1_blendvpd): Likewise.
15760 (sse4_1_blendvps): Likewise.
15761 (sse4_1_pblendvb): Likewise.
15762 (sse4_2_pcmpestr): Likewise.
15763 (sse4_2_pcmpestrm): Likewise.
15764 (sse4_2_pcmpestr_cconly): Likewise.
15765 (sse4_2_pcmpistr): Likewise.
15766 (sse4_2_pcmpistrm): Likewise.
15767 (sse4_2_pcmpistr_cconly): Likewise.
15769 2007-06-05 Razya Ladelsky <razya@il.ibm.com>
15771 * matrix-reorg.c (transform_access_sites): Fix computation.
15772 (transform_allocation_sites): Same.
15774 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
15776 * config/i386/i386.c (override_options): Use
15777 TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
15779 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
15781 * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
15782 (nonimm_not_xmm0_operand): Ditto.
15783 * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
15784 as operand[0] and operand[1] predicate. Use "nonimm_not_xmm0_operand"
15785 as operand[2] predicate. Require "z" class XMM register for
15786 operand[3]. Adjust asm template.
15787 ("sse4_1_blendvpd"): Ditto.
15788 ("sse4_1_pblendvb"): Ditto.
15789 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
15790 force op2 into xmm0 register for variable blend instructions.
15792 2007-06-04 Tom Tromey <tromey@redhat.com>
15794 * c-tree.h (start_enum): Update.
15795 (build_enumerator): Likewise.
15796 * c-decl.c (enum_next_value): Removed.
15797 (enum_overflow): Likewise.
15798 (start_enum): Add c_enum_contents argument. Don't use globals.
15799 (build_enumerator): Likewise.
15800 * c-tree.h (struct c_enum_contents): New struct.
15802 2007-06-04 Tom Tromey <tromey@redhat.com>
15804 * c-common.c (c_common_get_alias_set): Fix indentation.
15806 2007-06-04 Ian Lance Taylor <iant@google.com>
15808 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
15809 to overflow, reduce overflow infinity to regular infinity.
15810 (vrp_var_may_overflow): New static function.
15811 (vrp_visit_phi_node): Check vrp_var_may_overflow.
15813 2007-06-04 Kazu Hirata <kazu@codesourcery.com>
15815 * stor-layout.c (layout_type): Remove duplicate code.
15817 2007-06-04 Uros Bizjak <ubizjak@gmail.com>
15820 * c-common.c (c_define_builtins): Call targetm.init_builtins ()
15821 before build_common_builtin_nodes ().
15823 2007-06-04 Steve Ellcey <sje@cup.hp.com>
15826 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
15828 2007-06-04 Jan Hubicka <jh@suse.cz>
15830 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
15831 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
15832 instead of _stat version.
15834 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
15836 PR tree-optimization/32194
15837 * tree-predcom.c (determine_offset): Check that both references have
15840 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
15842 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
15843 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
15844 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
15845 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
15846 Add argument to iterate_fix_dominators call.
15847 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
15848 * gcse.c (hoist_code): Change domby to vector.
15849 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
15850 Add argument to iterate_fix_dominators call.
15851 * loop-doloop.c (doloop_modify): Changed recount_dominator to
15852 recompute_dominator.
15853 * lambda-code.c (perfect_nestify): Ditto.
15854 * cfgloopanal.c: Include graphds.h.
15855 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
15856 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
15857 (mark_irreducible_loops): Use graphds_scc. Remove argument from
15859 * graphds.c: New file.
15860 * graphds.h: New file.
15861 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
15862 (get_dominated_by, get_dominated_by_region): Change return type to
15864 (verify_dominators): Recompute all dominators and compare the results.
15865 (recount_dominator): Renamed to ...
15866 (recompute_dominator): ... this. Do not check that the block is
15867 dominated by entry.
15868 (iterate_fix_dominators): Reimplemented.
15869 (prune_bbs_to_update_dominators, root_of_dom_tree,
15870 determine_dominators_for_sons): New functions.
15871 * et-forest.c (et_root): New function.
15872 * et-forest.h (et_root): Declare.
15873 * Makefile.in (graphds.o): Add.
15874 (cfgloopanal.o): Add graphds.h dependency.
15875 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
15876 * basic-block.h (get_dominated_by, get_dominated_by_region,
15877 iterate_fix_dominators): Declaration changed.
15878 (recount_dominator): Renamed to ...
15879 (recompute_dominator): ... this.
15880 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
15881 (thread_through_all_blocks): Do not free dominance info.
15883 2007-06-03 Andreas Schwab <schwab@suse.de>
15885 * config/m68k/m68k.c (override_options): Don't override
15887 * config/m68k/m68k-modes.def (SF, DF): Define to use
15888 motorola_single_format and motorola_double_format, resp.
15889 * real.c (motorola_single_format): Renamed from
15890 coldfire_single_format.
15891 (motorola_double_format): Renamed from coldfire_double_format.
15892 (encode_ieee_extended): Generate a proper canonical NaN image
15893 respecting canonical_nan_lsbs_set.
15894 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
15896 * real.h: Adjust declarations.
15898 2007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
15901 * config/sh/sh.md (symGOT_load): Don't schedule insns when
15902 the symbol is generated with the stack protector.
15904 2007-06-03 Kazu Hirata <kazu@codesourcery.com>
15906 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
15907 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
15909 * doc/extend.texi (interrupt): Mention m68k.
15911 2007-06-02 Uros Bizjak <ubizjak@gmail.com>
15913 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
15914 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
15915 (ix86_expand_sse_pcmpestr): Do not check operands for
15916 "register_operand", when insn operand predicate is "register_operand".
15917 (ix86_expand_sse_pcmpistr): Ditto.
15919 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
15920 Uros Bizjak <ubizjak@gmail.com>
15922 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
15923 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
15924 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
15925 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
15926 * config/i386/constraints.md ("z"): New register constraint
15927 for members of SSE_FIRST_REG class.
15928 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
15929 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
15930 SSE_FIRST_REG class.
15931 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
15932 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
15933 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
15934 (IX86_BUILTIN_PCMPESTRM128): Likewise.
15935 (IX86_BUILTIN_PCMPESTRA128): Likewise.
15936 (IX86_BUILTIN_PCMPESTRC128): Likewise.
15937 (IX86_BUILTIN_PCMPESTRO128): Likewise.
15938 (IX86_BUILTIN_PCMPESTRS128): Likewise.
15939 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
15940 (IX86_BUILTIN_PCMPISTRI128): Likewise.
15941 (IX86_BUILTIN_PCMPISTRM128): Likewise.
15942 (IX86_BUILTIN_PCMPISTRA128): Likewise.
15943 (IX86_BUILTIN_PCMPISTRC128): Likewise.
15944 (IX86_BUILTIN_PCMPISTRO128): Likewise.
15945 (IX86_BUILTIN_PCMPISTRS128): Likewise.
15946 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
15947 (struct builtin_description): Change "flag" field to unsigned.
15948 (bdesc_pcmpestr): New builtin description table.
15949 (bdesc_pcmpistr): Likewise.
15950 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
15951 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
15952 Initialize pcmp[ei]str[im] insns for SSE4.2.
15953 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
15954 (ix86_expand_sse_pcmpistr): Likewise.
15955 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
15956 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
15957 (UNSPEC_PCMPISTR): Likewise.
15958 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
15959 (sse4_2_pcmpestri):New isns pattern.
15960 (sse4_2_pcmpestrm): Likewise.
15961 (sse4_2_pcmpestr_cconly): Likewise.
15962 (sse4_2_pcmpistr): New insn patern and splitter.
15963 (sse4_2_pcmpistri):New isns pattern.
15964 (sse4_2_pcmpistrm): Likewise.
15965 (sse4_2_pcmpistr_cconly): Likewise.
15966 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
15969 2007-06-01 David Daney <ddaney@avtrex.com>
15971 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
15972 LOADGP_ABSOLUTE and not binds_local_p.
15974 2007-06-01 Geoffrey Keating <geoffk@apple.com>
15976 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
15978 2007-06-01 Ian Lance Taylor <iant@google.com>
15980 * tree-vrp.c (compare_name_with_value): Always set
15981 used_strict_overflow if we get a result from the variable itself.
15983 2007-06-01 Ian Lance Taylor <iant@google.com>
15985 PR rtl-optimization/31455
15986 * lower-subreg.c (find_decomposable_subregs): Don't decompose
15987 subregs which have a cast between modes which are not tieable.
15989 2007-06-01 Uros Bizjak <ubizjak@gmail.com>
15991 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
15992 breaks after return statements.
15994 2007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
15996 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
15997 only after no_new_pseudos.
15999 2007-05-31 Eric Christopher <echristo@apple.com>
16001 * expr.c (convert_move): Assert that we don't have a BLKmode
16003 (store_expr): Handle BLKmode moves by calling emit_block_move.
16005 2007-05-31 Daniel Berlin <dberlin@dberlin.org>
16007 * c-typeck.c (build_indirect_ref): Include type in error message.
16008 (build_binary_op): Pass types to binary_op_error.
16009 * c-common.c (binary_op_error): Take two type arguments, print out
16011 * c-common.h (binary_op_error): Update prototype.
16013 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
16015 * config/i386/i386.c: Correct coments on -mno-sse4.
16017 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
16019 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
16020 (x86_64-*-*): Likewise.
16021 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
16022 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
16023 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
16024 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
16025 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
16026 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
16027 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
16028 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
16029 (OPTION_MASK_ISA_SSE4): Likewise.
16030 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
16031 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
16032 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
16033 (override_options): Support SSE4.2.
16034 (ix86_build_const_vector): Support SImode and DImode.
16035 (ix86_build_signbit_mask): Likewise.
16036 (ix86_expand_int_vcond): Support V2DImode.
16037 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
16038 (IX86_BUILTIN_CRC32HI): Likewise.
16039 (IX86_BUILTIN_CRC32SI): Likewise.
16040 (IX86_BUILTIN_CRC32DI): Likewise.
16041 (IX86_BUILTIN_PCMPGTQ): Likewise.
16042 (bdesc_crc32): Likewise.
16043 (bdesc_sse_3arg): Likewise.
16044 (ix86_expand_crc32): Likewise.
16045 (ix86_init_mmx_sse_builtins): Support SSE4.2.
16046 (ix86_expand_builtin): Likewise.
16047 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
16048 __SSE4_2__ for -msse4.2.
16049 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
16050 (CRC32MODE): Likewise.
16051 (crc32modesuffix): Likewise.
16052 (crc32modeconstraint): Likewise.
16053 (sse4_2_crc32<mode>): Likewise.
16054 (sse4_2_crc32di): Likewise.
16055 * config/i386/i386.opt (msse4.2): New for SSE4.2.
16057 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
16058 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
16059 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
16060 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
16061 (vcondu<mode>): Likewise.
16062 * doc/extend.texi: Document SSE4.2 built-in functions.
16063 * doc/invoke.texi: Document -msse4.2/-msse4.
16065 2007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
16067 PR tree-optimization/32160
16068 * tree-predcom.c (predcom_tmp_var): New function. Mark created
16069 variable as gimple reg.
16070 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
16072 2007-05-31 Kazu Hirata <kazu@codesourcery.com>
16074 * gcc.c (main): Don't consider linker options when issuing the
16075 warning about a linker input file not being used.
16077 2007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16079 * tree-vrp.c (compare_names): Initialize sop.
16081 2007-05-30 Dirk Mueller <dmueller@suse.de>
16083 * cgraphunit.c (cgraph_analyze_function): Remove
16084 computation of inline parameters.
16086 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
16088 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
16090 2007-05-30 Richard Sandiford <richard@codesourcery.com>
16092 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
16093 Add vx-common.h. Include vxworks.h between vx-common.h and
16095 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
16097 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
16098 (TARGET_ASM_DESTRUCTOR): Likewise.
16099 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
16100 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
16101 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
16102 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
16103 (VXWORKS_ENDIAN_SPEC): Define.
16104 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
16105 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
16106 VXWORKS_* equivalents.
16107 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
16108 (ASM_FILE_START): Delete.
16109 (TARGET_VERSION): Reformat.
16110 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
16111 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
16112 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
16113 (FPBIT, DPBIT): Define.
16114 (fp-bit.c, dp-bit.c): New rules.
16115 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
16116 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
16117 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
16118 * config/arm/arm.h: Include vxworks-dummy.h.
16119 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
16120 Mark with ATTRIBUTE_UNUSED.
16121 (arm_override_options): Do not allow VxWorks RTP PIC to be used
16122 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
16123 make it incompatible with -msingle-pic-base.
16124 (arm_function_ok_for_sibcall): Return false for calls that might
16125 go through a VxWorks PIC PLT entry.
16126 (require_pic_register): New function, split out from...
16127 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
16129 (arm_load_pic_register): Handle the VxWorks RTP initialization
16130 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
16131 (arm_emit_call_insn): New function.
16132 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
16133 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
16134 (pic_offset_arm): New pattern.
16135 (call, call_value): Use arm_emit_call_insn.
16136 (call_internal, call_value_internal): New expanders.
16137 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
16138 VxWorks unless __PIC__.
16140 2007-05-30 Eric Christopher <echristo@gmail.com>
16142 * genrecog.c: Include regs.h in generated file.
16143 * genemit.c: Ditto. Fix up formatting.
16144 * config/mn10300/constraints.md: New.
16145 * config/mn10300/mn10300.md: Include.
16146 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
16147 Fix up for removed macro.
16148 * config/mn10300/predicates.md (call_address_operand): Ditto.
16149 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
16150 (CONST_OK_FOR_I): Ditto.
16151 (CONST_OK_FOR_J): Ditto.
16152 (CONST_OK_FOR_K): Ditto.
16153 (CONST_OK_FOR_L): Ditto.
16154 (CONST_OK_FOR_M): Ditto.
16155 (CONST_OK_FOR_N): Ditto.
16156 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
16160 (EXTRA_CONSTRAINT): Ditto.
16162 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
16164 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
16166 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
16167 OPTION_MASK_ISA_64BIT.
16168 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
16170 2007-05-30 Richard Guenther <rguenther@suse.de>
16172 PR middle-end/32152
16173 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
16174 types for comparison.
16175 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
16176 with original typed arguments.
16177 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
16179 2007-05-30 Jakub Jelinek <jakub@redhat.com>
16181 PR tree-optimization/31769
16182 * except.c (duplicate_eh_regions): Clear prev_try if
16183 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
16185 2007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
16187 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
16188 * tree-ssa-sink.c (statement_sink_location): Return basic block and
16189 bsi of the location where statements should be inserted.
16190 (sink_code_in_bb): Take bsi from statement_sink_location.
16191 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
16192 instead of bsi_start.
16193 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
16195 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
16196 (bsi_move_before): Document inconsistency with bsi_move_after.
16197 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
16199 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
16201 * config/i386/i386.h (TARGET_ABM): New define.
16202 (TARGET_POPCNT): Ditto.
16203 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
16204 New temporary defines to redefine from OPTION_ISA_* defines.
16205 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
16206 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
16207 (ix86_isa_flags): New extern int declaration.
16208 (TARGET_SUBTARGET_DEFAULT): New define.
16209 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
16210 (TARGET_SUBTARGET32_DEFAULT): Ditto.
16211 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
16212 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
16213 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
16214 * config/i386/darwin.h: Change TARGET_64BIT define to
16217 * config/i386/i386.opt (m3dnowa): Define as undocumented option
16218 using existing "ix86_isa_flags" varible.
16219 (m32, m64): Use existing "ix86_isa_flags" variable.
16220 (mmmx, m3dnow): Ditto.
16221 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
16222 (mabm): Define as non-negative option using "x86_abm" variable.
16223 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
16225 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
16226 Rewrite feature test bitmap.
16227 (ix86_isa_flags): New initialized global int varible.
16228 (ix86_isa_flags_explicit): New static int variable.
16229 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
16230 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
16231 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
16232 target_flags_explicit.
16233 (override_options): Remove "target_enable" and "target_disable" fields
16234 from "struct ptt". Update processor_target_table accordingly. Remove
16235 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
16236 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
16237 "target_flags" and "ix86_isa_flags_explicit" instead of
16238 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
16239 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
16240 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
16241 to true when either of PTA_POPCNT or PTA_ABM is set in
16242 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
16243 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
16244 processor_alias_table flags entry. Remove handling of
16245 "target_enable" and "target_disable" fields of processor_target_table.
16246 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
16247 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
16248 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
16249 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
16250 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
16252 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
16254 2007-05-29 David Daney <ddaney@avtrex.com>
16257 * config/mips/mips.c (mips_output_mi_thunk): Emit
16258 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
16260 2007-05-29 Hui-May Chang <hm.chang@apple.com>
16261 * config/i386/i386.c (ix86_function_regparm): Added checking of
16262 ix86_force_align_arg_pointer to determine the number of
16263 register parameters.
16265 2007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
16267 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
16268 (SET_DR_MISALIGNMENT): New.
16269 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
16270 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
16271 Use SET_DR_MISALIGNMENT.
16272 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
16274 * tree-data-ref.c (create_data_ref, compute_all_dependences,
16275 find_loop_nest): Export.
16276 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
16277 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
16278 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
16279 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
16281 (struct mem_ref): Add field reuse_distance.
16282 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
16283 Initialize reuse_distance field.
16284 (issue_prefetch_ref): Select temporality of prefetch according to
16286 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
16287 self_reuse_distance, determine_loop_nest_reuse): New functions.
16288 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
16289 (tree_ssa_prefetch_arrays): Dump L2 cache size.
16290 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
16293 2007-05-29 Daniel Berlin <dberlin@dberlin.org>
16295 * tree-ssa-alias.c: Add aliasing overview.
16297 2007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
16298 Danny Smith <dannysmith@users.sourceforge.net>
16301 * config/i386/t-crtfm: Compile crtfastmath.o with
16302 -minline-all-stringops.
16303 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
16304 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
16306 2007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16308 * doc/md.texi: Document constraints on HP PA-RISC.
16310 * pa/constraints.md: New file.
16311 * pa.md: Include constraints.md.
16312 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
16313 (integer_store_memory_operand, ldil_cint_p): New functions.
16314 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
16315 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
16316 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
16317 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
16318 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
16320 2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
16323 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
16324 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
16325 case POSTDECREMENT_EXPR>): Return the error_mark_node
16326 if either the real or imaginary parts would an
16329 2007-05-28 Daniel Berlin <dberlin@dberlin.org>
16331 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
16332 name when we remove it from a call.
16334 2007-05-28 Kazu Hirata <kazu@codesourcery.com>
16336 * targhooks.c (default_narrow_bitfield): Remove.
16337 * targhooks.h: Remove the prototype for
16338 default_narrow_bitfield.
16340 * langhooks-def.h: Remove the prototype for
16341 hook_get_alias_set_0.
16342 * langhooks.c (hook_get_alias_set_0): Remove.
16344 * global.c (EXECUTE_IF_CONFLICT): Remove.
16346 2007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
16349 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
16350 return true when truth_value_p is true and the type
16353 2007-05-28 Gerald Pfeifer <gerald@pfeifer.com>
16355 * doc/install.texi (Prerequisites): We no longer require Autoconf
16356 2.13 for the top-level.
16358 2007-05-28 Uros Bizjak <ubizjak@gmail.com>
16360 * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
16361 memory access via x86_expand_vector_move_misalign() only for
16362 TImode values on 32-bit targets.
16364 2007-05-28 Razya Ladelsky <razya@il.ibm.com>
16366 * matrix-reorg.c: New file. Implement matrix flattening and
16367 transposing optimization.
16368 * tree-pass.h: Add matrix reorg pass.
16369 * common.opt: Add fipa-mreorg flag.
16370 * Makefile.in: Add matrix-reorg.c.
16371 * passes.c: Add matrix reorg pass.
16372 * varpool.c (add_new_static_var): New function.
16373 * cgraph.h (add_new_static_var): Declare.
16375 2007-05-27 Eric Christopher <echristo@apple.com>
16377 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
16378 sp_offset depending on stack size. Save r12 depending
16379 on registers we're saving later.
16380 (rs6000_emit_epilogue): Update sp_offset depending only
16383 2007-05-27 Zdenek Dvorak <dvorakz@suse.cz>
16385 * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
16386 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
16387 * ifcvt.c (if_convert): Ditto.
16388 * tree-ssa-threadupdate.c (thread_block): Ditto.
16389 (thread_through_all_blocks): Ditto. Assert that loops were analysed.
16390 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
16391 verify_loop_closed_ssa): Check number_of_loops instead of
16393 * predict.c (tree_estimate_probability): Ditto.
16394 * tree-if-conv.c (main_tree_if_conversion): Ditto.
16395 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16396 * modulo-sched.c (sms_schedule): Ditto.
16397 * tree-scalar-evolution.c (scev_const_prop): Ditto.
16398 (scev_finalize): Do not do anything if scev analysis was not
16400 * cfgloopanal.c (mark_irreducible_loops): Do not check whether
16401 current_loops == NULL.
16402 (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
16403 * loop-init.c (loop_optimizer_init): Do not free current_loops when
16404 there are no loops.
16405 (loop_optimizer_finalize): Assert that loops were analyzed.
16406 (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
16407 rtl_doloop): Check number_of_loops instead of current_loops.
16408 * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
16409 current_loops == NULL.
16410 (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
16411 gate_tree_vectorize tree_linear_transform, check_data_deps,
16412 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
16413 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
16414 Check number_of_loops instead of current_loops.
16415 (tree_ssa_loop_done): Do not check whether current_loops == NULL.
16416 * tree-ssa-pre.c (fini_pre): Do not take do_fre argument. Always
16417 free loops if available.
16418 (execute_pre): Do not pass do_fre to fini_pre.
16420 2007-05-27 Tobias Burnus <burnus@net-b.de>
16422 PR middle-end/32083
16423 * real.c (mpfr_from_real): Fix sign of -Inf.
16425 2007-05-27 H.J. Lu <hongjiu.lu@intel.com>
16427 * tree-vect-transform.c (vectorizable_conversion): Initialize
16428 tree_code variables to ERROR_MARK.
16429 (vectorizable_type_demotion): Likewise.
16430 (vectorizable_type_promotion): Likewise.
16432 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
16435 * config/i386/i386.md (movti): Handle push operands via
16436 ix86_expand_push().
16438 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
16440 * basic-block.h: Remove the prototype for merge_seq_blocks.
16441 * cfgcleanup.c (merge_seq_blocks): Remove.
16443 * tree-flow.h: Remove the prototype for is_aliased_with.
16444 * tree-ssa-alias.c (is_aliased_with): Remove.
16446 2007-05-26 H.J. Lu <hongjiu.lu@intel.com>
16448 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
16450 * config/i386/i386.c (ix86_expand_sse4_unpack): New.
16452 * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
16453 ix86_expand_sse4_unpack if SSE4.1 is enabled.
16454 (vec_unpacks_hi_v16qi): Likewise.
16455 (vec_unpacku_lo_v16qi): Likewise.
16456 (vec_unpacks_lo_v16qi): Likewise.
16457 (vec_unpacku_hi_v8hi): Likewise.
16458 (vec_unpacks_hi_v8hi): Likewise.
16459 (vec_unpacku_lo_v8hi): Likewise.
16460 (vec_unpacks_lo_v8hi): Likewise.
16461 (vec_unpacku_hi_v4si): Likewise.
16462 (vec_unpacks_hi_v4si): Likewise.
16463 (vec_unpacku_lo_v4si): Likewise.
16464 (vec_unpacks_lo_v4si): Likewise.
16466 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
16468 * c-typeck.c, config/arm/arm.c, config/darwin.c,
16469 config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
16470 omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
16471 follow spelling conventions in various
16472 warning/error/diagnostic messages.
16474 * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
16475 df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
16476 fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
16477 tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
16478 tree-vrp.c: Fix comment typos. Follow spelling conventions.
16479 * doc/tm.texi: Follow spelling conventions.
16481 2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
16484 * tree-ssa-forwprop.c
16485 (forward_propagate_addr_into_variable_array_index): Remove
16486 the lhs argument. Use the type of def_rhs instead of lhs.
16487 (forward_propagate_addr_expr_1): Update use of
16488 forward_propagate_addr_into_variable_array_index.
16490 2007-05-25 Sandra Loosemore <sandra@codesourcery.com>
16491 Nigel Stephens <nigel@mips.com>
16493 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
16494 function attributes, "far" being an alias for "long_call".
16495 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
16496 (mips_near_type_p, mips_far_type_p): New.
16497 (mips_comp_type_attributes): New function to check that attributes
16498 attached to a function type are compatible.
16499 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
16500 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
16501 to the target function of the thunk.
16502 (mips_encode_section_info): Check for "near" and "far" function
16503 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
16505 * config/mips/predicates.md (const_call_insn_operand): Test only
16506 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
16508 * doc/extend.texi (Function Attributes): Document MIPS "near" and
16511 * testsuite/gcc.target/mips/near-far-1.c: New test case.
16512 * testsuite/gcc.target/mips/near-far-2.c: New test case.
16513 * testsuite/gcc.target/mips/near-far-3.c: New test case.
16514 * testsuite/gcc.target/mips/near-far-4.c: New test case.
16516 2007-05-25 Eric Christopher <echristo@apple.com>
16518 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
16519 to x86-darwin configurations.
16520 * config/i386/t-darwin: Add softfp support.
16521 * config/i386/t-darwin64: Ditto.
16522 * config/i386/sfp-machine.h: If mach then don't use
16523 aliasing, emit a stub to call.
16525 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
16527 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
16528 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
16529 tree-predcom.c, tree-ssa-alias-warnings.c,
16530 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
16531 comment typos. Follow spelling conventions.
16532 * doc/cpp.texi, doc/invoke.texi: Fix typos.
16534 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
16537 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
16538 constants into memory. Expand unaligned memory references for
16539 SSE modes via x86_expand_vector_move_misalign() function.
16541 2007-05-25 Uros Bizjak <ubizjak@gmail.com>
16543 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
16544 "memory" attribute for "sseishft" type insn without operands[2].
16546 2007-05-25 Dirk Mueller <dmueller@suse.de>
16547 Marcus Meissner <meissner@suse.de>
16549 * doc/extend.texi (alloc_size): New attribute.
16550 * c-common.c (handle_alloc_size_attribute): New.
16551 * tree-object-size.c (alloc_object_size): Use alloc_size
16552 attribute, if available.
16554 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
16556 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
16558 (__builtin_ia32_vec_ext_v2di): Likewise.
16559 (__builtin_ia32_vec_ext_v4si): Likewise.
16560 (__builtin_ia32_vec_ext_v8hi): Likewise.
16561 (__builtin_ia32_vec_ext_v16qi): Likewise.
16562 (__builtin_ia32_vec_set_v8hi): Likewise.
16564 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
16566 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
16568 2007-05-25 Richard Sandiford <richard@codesourcery.com>
16570 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
16571 (arm_is_longcall_p): Rename to...
16572 (arm_is_long_call_p): ...this. Take a single tree argument and
16574 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
16575 (CUMULATIVE_ARGS): Remove call_cookie.
16576 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
16577 (ENCODED_LONG_CALL_ATTR_P): Delete.
16578 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
16579 LONG_CALL_FLAG_CHAR cases.
16580 (ARM_DECLARE_FUNCTION_SIZE): Delete.
16581 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
16582 ARM_DECLARE_FUNCTION_SIZE.
16583 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
16584 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
16585 (arm_encode_call_attribute, current_file_function_operand): Delete.
16586 (arm_function_in_section_p): New function.
16587 (arm_is_longcall_p): Rename to...
16588 (arm_is_long_call_p): ...this. Take the target function as a single
16589 argument and return a bool. Do not rely on call cookies. Check
16590 whether the target symbol is in the same section as the current
16591 function, not just the same compilation unit.
16592 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
16593 (arm_encode_section_info): Don't encode a call type.
16594 * config/arm/arm.md (call, call_value): Update calls to
16595 arm_is_long(_)call_p. Simplify logic.
16596 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
16597 Update calls to arm_is_long(_)call_p.
16599 2007-05-25 Richard Guenther <rguenther@suse.de>
16601 PR tree-optimization/31982
16602 * tree-ssa-forwprop.c
16603 (forward_propagate_addr_into_variable_array_index): Handle arrays
16604 with element size one.
16606 2007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
16608 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
16609 (umulsi3_highpart): Likewise.
16611 2007-05-24 Ian Lance Taylor <iant@google.com>
16613 PR rtl-optimization/32069
16614 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
16617 2007-05-24 Ollie Wild <aaw@google.com>
16619 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
16622 2007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
16624 * postreload-gcse.c (reg_changed_after_insn_p): New function.
16625 (oprs_unchanged_p): Use it to check all registers in a REG.
16626 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
16627 (reg_set_between_after_reload_p): Delete.
16628 (reg_used_between_after_reload_p): Likewise.
16629 (reg_set_or_used_since_bb_start): Likewise.
16630 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
16631 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
16632 Use reg_set_between_p instead of reg_set_between_after_reload_p.
16633 * rtlanal.c (reg_set_p): Check whether REG overlaps
16634 regs_invalidated_by_call, rather than just checking the
16635 membership of REGNO (REG).
16637 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
16639 * doc/passes.texi: Document predictive commoning.
16640 * doc/invoke.texi (-fpredictive-commoning): Document.
16641 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
16642 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
16643 adding indices to the generated name.
16644 (schedule_sm): Pass 0 to get_lsm_tmp_name.
16645 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
16646 * tree-pretty-print.c (op_symbol_1): Renamed to ...
16647 (op_symbol_code): ... and exported.
16648 (dump_omp_clause, op_symbol): Use op_symbol_code
16649 instead of op_symbol_1.
16650 * tree-pass.h (pass_predcom): Declare.
16651 * timevar.def (TV_PREDCOM): New timevar.
16652 * tree-ssa-loop.c (run_tree_predictive_commoning,
16653 gate_tree_predictive_commoning, pass_predcom): New.
16654 * tree-data-ref.c (find_data_references_in_loop): Find the
16655 references in dominance order.
16656 (canonicalize_base_object_address): Ensure that the result has
16658 (dr_analyze_innermost): Export.
16659 (create_data_ref): Code to fail for references with invariant
16661 (find_data_references_in_stmt): ... here.
16662 * tree-data-ref.h (dr_analyze_innermost): Declare.
16663 * tree-affine.c: Include tree-gimple.h and hashtab.h.
16664 (aff_combination_find_elt, name_expansion_hash,
16665 name_expansion_eq, tree_to_aff_combination_expand,
16666 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
16668 * tree-affine.h (aff_combination_constant_multiple_p,
16669 tree_to_aff_combination_expand): Declare.
16670 * tree-predcom.c: New file.
16671 * common.opt (fpredictive-commoning): New option.
16672 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
16673 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
16674 * Makefile.in (tree-predcom.o): Add.
16675 (tree-affine.o): Add TREE_GIMPLE_H dependency.
16676 * passes.c (init_optimization_passes): Add dceloop after
16677 copy propagation in loop optimizer. Add predictive commoning
16678 to loop optimizer passes.
16680 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16682 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
16685 2007-05-24 Jan Hubicka <jh@suse.cz>
16687 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
16689 (genheader): Include statistics.h.
16691 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
16693 * print-rtl.c (flag_dump_unnumbered): Update comments.
16694 (print_rtl): Fix my previous change.
16695 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
16698 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
16700 PR middle-end/32018
16701 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
16703 (thread_through_all_blocks): Call initialize_original_copy_tables
16704 and free_original_copy_tables.
16705 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
16707 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
16708 * cfghooks.c (duplicate_block): Use get_loop_copy.
16709 * cfg.c: Include cfgloop.h.
16710 (loop_copy): New hash table.
16711 (initialize_original_copy_tables): Initialize loop_copy table.
16712 (free_original_copy_tables): Free loop_copy table.
16713 (copy_original_table_clear, copy_original_table_set,
16714 set_loop_copy, get_loop_copy): New functions.
16715 (set_bb_original, set_bb_copy): Use copy_original_table_set.
16716 * cfgloop.h (struct loop): Remove copy field.
16717 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
16718 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
16720 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16722 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
16723 -msse/-msse2/-msse3.
16725 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16727 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
16728 __builtin_ia32_vec_set_v2di with MASK_64BIT.
16730 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
16733 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
16734 * targhooks.h (default_mangle_decl_assembler_name): Declare
16736 * targhooks.c (default_mangle_decl_assembler_name): Define
16738 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
16740 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
16741 * langhooks.c (lhd_set_decl_assembler_name): Call
16742 targetm.mangle_decl_assembler_name for names with global scope.
16744 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
16746 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
16747 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
16749 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16750 New. Factored out of i386_pe_encode_section_info.
16751 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
16752 Move check for prior decoration of stdcall
16753 symbols to i386_pe_encode_section_info.
16754 (i386_pe_encode_section_info): Adjust call to
16755 gen_stdcall_or_fastcall_suffix. Use
16756 i386_pe_maybe_mangle_decl_assembler_name, if needed.
16757 (i386_pe_mangle_decl_assembler_name): New. Wrap
16758 i386_pe_maybe_mangle_decl_assembler_name.
16760 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
16762 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
16763 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
16764 * langhooks.c (get_signed_or_unsigned_type): Don't check for
16765 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
16766 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
16769 2007-05-23 Sandra Loosemore <sandra@codesourcery.com>
16770 Nigel Stephens <nigel@mips.com>
16771 Richard Sandiford <richard@codesourcery.com>
16773 Fix up MIPS16 hard float and add support for complex.
16775 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
16776 (TARGET_SOFT_FLOAT_ABI): New.
16777 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
16778 __mips_soft_float to reflect the ABI in use, not whether the
16779 FPU is directly accessible (e.g., in MIPS16 mode).
16780 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
16781 (UNITS_PER_FPVALUE): Likewise.
16783 * config/mips/mips.c (mips_expand_call): Remove redundant
16784 TARGET_MIPS16 check.
16785 (mips_arg_regno): New.
16786 (function_arg_advance): When setting bits in cum->fp_code for
16787 MIPS16, don't subtract 1 from cum->arg_number, since it is now
16789 (function_arg): Use mips_arg_regno.
16790 (mips_return_mode_in_fpr_p): New.
16791 (mips16_call_stub_mode_suffix): New.
16792 (mips16_cfun_returns_in_fpr_p): New.
16793 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
16794 (mips_output_function_prologue): Test mips16_hard_float, not
16795 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
16796 (mips_expand_epilogue): Call MIPS16 helper routines to copy
16797 return value into a floating-point register.
16798 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
16799 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
16800 (mips16_fp_args): Handle MIPS32r2 ISA which supports
16801 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
16802 word of double arguments from or to the high bits of 64-bit
16803 floating point registers.
16804 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
16805 (mips16_fpret_double): New helper function.
16806 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
16807 support for complex modes. Fill in DECL_RESULT for stubdecl.
16808 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
16810 * config/mips/mips16.S
16811 (RET, ARG1, ARG2): New.
16812 (MERGE_GPRf, MERGE_GPRt): New.
16813 (DELAYt, DELAYf): New.
16814 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
16815 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
16816 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
16817 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
16818 (SFOP): Renamed to...
16819 (OPSF3): This, and macro-ified. Updated all uses.
16820 (SFOP2): Renamed to...
16821 (OPSF2): This, and macro-ified. Updated all uses.
16822 (SFCMP): Renamed to...
16823 (CMPSF): This, and macro-ified. Updated all uses.
16824 (SFREVCMP): Renamed to...
16825 (REVCMPSF): This, and macro-ified. Updated all uses.
16826 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
16827 (LDDBL1, LDDBL2, RETDBL): Deleted.
16828 (DFOP): Renamed to...
16829 (OPDF3): This, and macro-ified. Updated all uses.
16830 (DFOP2): Renamed to...
16831 (OPDF2): This, and macro-ified. Updated all uses.
16832 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
16833 (DFCMP): Renamed to...
16834 (CMPDF): This, and macro-ified. Updated all uses.
16835 (DFREVCMP): Renamed to...
16836 (REVCMPDF): This, and macro-ified. Updated all uses.
16837 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
16838 (RET_FUNCTION): New.
16839 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
16840 (__mips16_ret_sc, __mips16_ret_dc): New.
16841 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
16842 STUB_ARGS_6, STUB_ARGS_10): New.
16843 (CALL_STUB_NO_RET): New.
16844 (__mips16_call_stub_1): Macro-ified.
16845 (__mips16_call_stub_5): Macro-ified.
16846 (__mips16_call_stub_2): Macro-ified.
16847 (__mips16_call_stub_6): Macro-ified.
16848 (__mips16_call_stub_9): Macro-ified.
16849 (__mips16_call_stub_10): Macro-ified.
16850 (CALL_STUB_RET): New.
16851 (__mips16_call_stub_sf_0): Macro-ified.
16852 (__mips16_call_stub_sf_1): Macro-ified.
16853 (__mips16_call_stub_sf_5): Macro-ified.
16854 (__mips16_call_stub_sf_2): Macro-ified.
16855 (__mips16_call_stub_sf_6): Macro-ified.
16856 (__mips16_call_stub_sf_9): Macro-ified.
16857 (__mips16_call_stub_sf_10): Macro-ified.
16858 (__mips16_call_stub_df_0): Macro-ified.
16859 (__mips16_call_stub_df_1): Macro-ified.
16860 (__mips16_call_stub_df_5): Macro-ified.
16861 (__mips16_call_stub_df_2): Macro-ified.
16862 (__mips16_call_stub_df_6): Macro-ified.
16863 (__mips16_call_stub_df_9): Macro-ified.
16864 (__mips16_call_stub_df_10): Macro-ified.
16865 (__mips16_call_stub_sc_0): New.
16866 (__mips16_call_stub_sc_1): New.
16867 (__mips16_call_stub_sc_5): New.
16868 (__mips16_call_stub_sc_2): New.
16869 (__mips16_call_stub_sc_6): New.
16870 (__mips16_call_stub_sc_9): New.
16871 (__mips16_call_stub_sc_10): New.
16872 (__mips16_call_stub_dc_0): New.
16873 (__mips16_call_stub_dc_1): New.
16874 (__mips16_call_stub_dc_5): New.
16875 (__mips16_call_stub_dc_2): New.
16876 (__mips16_call_stub_dc_6): New.
16877 (__mips16_call_stub_dc_9): New.
16878 (__mips16_call_stub_dc_10): New.
16880 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
16881 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
16882 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
16884 2007-05-23 Ian Lance Taylor <iant@google.com>
16886 * doc/invoke.texi (Invoking GCC): Document that the order of the
16889 2007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
16892 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
16893 * config/score/predicate.md (const_pow2, const_npow2): Remove.
16894 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
16898 * config/score/score.c (score_print_operand): Make sure that only
16899 lower bits are used.
16901 2007-05-22 Ian Lance Taylor <iant@google.com>
16903 * tree-vrp.c (avoid_overflow_infinity): New static function,
16904 broken out of set_value_range_to_value.
16905 (set_value_range_to_value): Call avoid_overflow_infinity.
16906 (extract_range_from_assert): Likewise.
16908 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
16910 PR middle-end/31095
16911 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
16912 change the type before looking for a COMPOUND_EXPR.
16914 2007-05-22 Ian Lance Taylor <iant@google.com>
16916 * lower-subreg.c (decompose_multiword_subregs): If we change an
16917 insn, call remove_retval_note on it.
16919 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
16921 * regs.h (end_hard_regno): New function.
16922 (END_HARD_REGNO, END_REGNO): New macros.
16923 (add_to_hard_reg_set): New function.
16924 (remove_from_hard_reg_set): Likewise.
16925 (in_hard_reg_set_p): Likewise.
16926 (overlaps_hard_reg_set_p): Likewise.
16927 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
16928 (note_btr_set): Use END_HARD_REGNO.
16929 * caller-save.c (setup_save_areas): Use end_hard_regno.
16930 (mark_set_regs): Use END_HARD_REGNO.
16931 (add_stored_regs): Use end_hard_regno.
16932 (mark_referenced_regs): Use add_to_hard_reg_set.
16933 * combine.c (update_table_tick): Use END_REGNO.
16934 (record_value_for_reg): Likewise.
16935 (record_dead_and_set_regs): Likewise.
16936 (get_last_value_validate): Likewise.
16937 (use_crosses_set_p): Likewise.
16938 (reg_dead_at_p_1): Likewise.
16939 (reg_dead_at_p): Likewise.
16940 (mark_used_regs_combine): Use add_to_hard_reg_set.
16941 (move_deaths): Use END_HARD_REGNO.
16942 (reg_bitfield_target_p): Use end_hard_regno.
16943 (distribute_notes): Use END_HARD_REGNO.
16944 * cse.c (mention_regs): Use END_REGNO.
16945 (insert): Use add_to_hard_reg_set.
16946 (invalidate): Use END_HARD_REGNO.
16947 (invalidate_for_call): Likewise.
16948 (exp_equiv_p): Use END_REGNO.
16949 (cse_insn): Likewise.
16950 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
16951 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
16952 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
16953 * function.c (keep_stack_depressed): Use end_hard_regno.
16954 * global.c (global_alloc): Use end_hard_regno.
16955 (global_conflicts): Use add_to_hard_reg_set instead of
16957 (find_reg): Likewise.
16958 (mark_reg_store): Likewise.
16959 (mark_reg_conflicts): Likewise.
16960 (mark_reg_death): Use remove_from_hard_reg_set.
16961 (mark_reg_live_nc): Delete.
16962 (set_preference): Use end_hard_regno.
16963 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
16964 remove_from_hard_reg_set.
16965 (post_mark_life): Use add_to_hard_reg_set.
16966 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
16967 (reg_becomes_live): Use add_to_hard_reg_set.
16968 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
16969 (peep2_find_free_register): Use add_to_hard_reg_set.
16970 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
16971 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
16972 * regrename.c (note_sets): Use add_to_hard_reg_set.
16973 (clear_dead_regs): Use remove_from_hard_reg_set.
16974 (regrename_optimize): Use add_to_hard_reg_set.
16975 (find_oldest_value_reg): Use in_hard_reg_set_p.
16976 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
16977 (hard_reg_set_here_p): Use end_hard_regno.
16978 (decompose): Likewise.
16979 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
16980 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
16981 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
16982 (mark_home_live): Use end_hard_regno.
16983 (spill_hard_reg): Likewise.
16984 (clear_reload_reg_in_use): Likewise.
16985 * reorg.c (delete_prior_computation): Use END_REGNO.
16986 * resource.c (update_live_status): Use END_HARD_REGNO.
16987 (mark_referenced_resources): Use add_to_hard_reg_set.
16988 (mark_set_resources): Likewise.
16989 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
16990 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
16991 (reg_overlap_mentioned_p): Likewise.
16992 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
16993 (covers_regno_no_parallel_p): Use END_REGNO.
16994 (find_regno_note): Likewise.
16995 (find_reg_fusage): Use END_HARD_REGNO.
16996 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
16997 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
16999 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
17001 * mode-switching.c (reg_dies): Change type of second argument to
17003 (optimize_mode_switching): Update accordingly.
17005 2007-05-22 Richard Sandiford <richard@codesourcery.com>
17007 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
17009 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
17010 (hard_reg_set_empty_p): ...these new functions.
17011 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
17012 GO_IF_HARD_REG_SUBSET.
17013 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
17014 instead of GO_IF_HARD_REG_EQUAL.
17015 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
17016 instead of GO_IF_HARD_REG_EQUAL.
17017 * global.c (find_reg): Use hard_reg_set_empty_p instead of
17018 GO_IF_HARD_REG_SUBSET.
17019 (modify_reg_pav): Use hard_reg_set_empty_p instead of
17020 GO_IF_HARD_REG_EQUAL.
17021 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
17022 of GO_IF_HARD_REG_SUBSET.
17023 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
17024 instead of GO_IF_HARD_REG_EQUAL.
17025 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
17026 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
17027 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
17028 of GO_IF_HARD_REG_SUBSET,
17029 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
17030 GO_IF_HARD_REG_SUBSET.
17031 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
17032 instead of GO_IF_HARD_REG_EQUAL.
17033 * config/sh/sh.c (push_regs, calc_live_regs): Use
17034 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
17035 (hard_regs_intersect_p): Delete.
17037 2007-05-22 Janis Johnson <janis187@us.ibm.com>
17039 * doc/sourcebuild.texi (Test Directives) Add dg-message.
17041 2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
17042 Richard Henderson <rth@redhat.com>
17044 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
17046 (x86_64-*-*): Likewise.
17048 * i386/i386-modes.def (V2QI): New.
17050 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
17052 (override_options): Support SSE4.1.
17053 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
17054 (IX86_BUILTIN_BLENDPS): Likewise.
17055 (IX86_BUILTIN_BLENDVPD): Likewise.
17056 (IX86_BUILTIN_BLENDVPS): Likewise.
17057 (IX86_BUILTIN_PBLENDVB128): Likewise.
17058 (IX86_BUILTIN_PBLENDW128): Likewise.
17059 (IX86_BUILTIN_DPPD): Likewise.
17060 (IX86_BUILTIN_DPPS): Likewise.
17061 (IX86_BUILTIN_INSERTPS128): Likewise.
17062 (IX86_BUILTIN_MOVNTDQA): Likewise.
17063 (IX86_BUILTIN_MPSADBW128): Likewise.
17064 (IX86_BUILTIN_PACKUSDW128): Likewise.
17065 (IX86_BUILTIN_PCMPEQQ): Likewise.
17066 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
17067 (IX86_BUILTIN_PMAXSB128): Likewise.
17068 (IX86_BUILTIN_PMAXSD128): Likewise.
17069 (IX86_BUILTIN_PMAXUD128): Likewise.
17070 (IX86_BUILTIN_PMAXUW128): Likewise.
17071 (IX86_BUILTIN_PMINSB128): Likewise.
17072 (IX86_BUILTIN_PMINSD128): Likewise.
17073 (IX86_BUILTIN_PMINUD128): Likewise.
17074 (IX86_BUILTIN_PMINUW128): Likewise.
17075 (IX86_BUILTIN_PMOVSXBW128): Likewise.
17076 (IX86_BUILTIN_PMOVSXBD128): Likewise.
17077 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
17078 (IX86_BUILTIN_PMOVSXWD128): Likewise.
17079 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
17080 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
17081 (IX86_BUILTIN_PMOVZXBW128): Likewise.
17082 (IX86_BUILTIN_PMOVZXBD128): Likewise.
17083 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
17084 (IX86_BUILTIN_PMOVZXWD128): Likewise.
17085 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
17086 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
17087 (IX86_BUILTIN_PMULDQ128): Likewise.
17088 (IX86_BUILTIN_PMULLD128): Likewise.
17089 (IX86_BUILTIN_ROUNDPD): Likewise.
17090 (IX86_BUILTIN_ROUNDPS): Likewise.
17091 (IX86_BUILTIN_ROUNDSD): Likewise.
17092 (IX86_BUILTIN_ROUNDSS): Likewise.
17093 (IX86_BUILTIN_PTESTZ): Likewise.
17094 (IX86_BUILTIN_PTESTC): Likewise.
17095 (IX86_BUILTIN_PTESTNZC): Likewise.
17096 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
17097 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
17098 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
17099 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
17100 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
17101 (bdesc_ptest): New.
17102 (bdesc_sse_3arg): Likewise.
17103 (bdesc_2arg): Likewise.
17104 (bdesc_1arg): Likewise.
17105 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
17107 (ix86_expand_sse_4_operands_builtin): New.
17108 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
17109 smaller than 8 bits as the 2nd arg.
17110 (ix86_expand_sse_ptest): New.
17111 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
17112 (ix86_expand_vector_set): Support SSE4.1.
17113 (ix86_expand_vector_extract): Likewise.
17115 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
17116 __SSE4_1__ for -msse4.1.
17118 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
17119 (UNSPEC_INSERTPS): Likewise.
17120 (UNSPEC_DP): Likewise.
17121 (UNSPEC_MOVNTDQA): Likewise.
17122 (UNSPEC_MPSADBW): Likewise.
17123 (UNSPEC_PHMINPOSUW): Likewise.
17124 (UNSPEC_PTEST): Likewise.
17125 (UNSPEC_ROUNDP): Likewise.
17126 (UNSPEC_ROUNDS): Likewise.
17128 * config/i386/i386.opt (msse4.1): New for SSE4.1.
17130 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
17131 (const_pow2_1_to_32768_operand): Likewise.
17133 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
17136 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
17138 (sse4_1_insertps): Likewise.
17139 (*sse4_1_extractps): Likewise.
17140 (sse4_1_ptest): Likewise.
17141 (sse4_1_mulv2siv2di3): Likewise.
17142 (*sse4_1_mulv4si3): Likewise.
17143 (*sse4_1_smax<mode>3): Likewise.
17144 (*sse4_1_umax<mode>3): Likewise.
17145 (*sse4_1_smin<mode>3): Likewise.
17146 (*sse4_1_umin<mode>3): Likewise.
17147 (sse4_1_eqv2di3): Likewise.
17148 (*sse4_1_pinsrb): Likewise.
17149 (*sse4_1_pinsrd): Likewise.
17150 (*sse4_1_pinsrq): Likewise.
17151 (*sse4_1_pextrb): Likewise.
17152 (*sse4_1_pextrb_memory): Likewise.
17153 (*sse4_1_pextrw_memory): Likewise.
17154 (*sse4_1_pextrq): Likewise.
17155 (sse4_1_blendpd): Likewise.
17156 (sse4_1_blendps): Likewise.
17157 (sse4_1_blendvpd): Likewise.
17158 (sse4_1_blendvps): Likewise.
17159 (sse4_1_dppd): Likewise.
17160 (sse4_1_dpps): Likewise.
17161 (sse4_1_movntdqa): Likewise.
17162 (sse4_1_mpsadbw): Likewise.
17163 (sse4_1_packusdw): Likewise.
17164 (sse4_1_pblendvb): Likewise.
17165 (sse4_1_pblendw): Likewise.
17166 (sse4_1_phminposuw): Likewise.
17167 (sse4_1_extendv8qiv8hi2): Likewise.
17168 (*sse4_1_extendv8qiv8hi2): Likewise.
17169 (sse4_1_extendv4qiv4si2): Likewise.
17170 (*sse4_1_extendv4qiv4si2): Likewise.
17171 (sse4_1_extendv2qiv2di2): Likewise.
17172 (*sse4_1_extendv2qiv2di2): Likewise.
17173 (sse4_1_extendv4hiv4si2): Likewise.
17174 (*sse4_1_extendv4hiv4si2): Likewise.
17175 (sse4_1_extendv2hiv2di2): Likewise.
17176 (*sse4_1_extendv2hiv2di2): Likewise.
17177 (sse4_1_extendv2siv2di2): Likewise.
17178 (*sse4_1_extendv2siv2di2): Likewise.
17179 (sse4_1_zero_extendv8qiv8hi2): Likewise.
17180 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
17181 (sse4_1_zero_extendv4qiv4si2): Likewise.
17182 (*sse4_1_zero_extendv4qiv4si2): Likewise.
17183 (sse4_1_zero_extendv2qiv2di2): Likewise.
17184 (*sse4_1_zero_extendv2qiv2di2): Likewise.
17185 (sse4_1_zero_extendv4hiv4si2): Likewise.
17186 (*sse4_1_zero_extendv4hiv4si2): Likewise.
17187 (sse4_1_zero_extendv2hiv2di2): Likewise.
17188 (*sse4_1_zero_extendv2hiv2di2): Likewise.
17189 (sse4_1_zero_extendv2siv2di2): Likewise.
17190 (*sse4_1_zero_extendv2siv2di2): Likewise.
17191 (sse4_1_roundpd): Likewise.
17192 (sse4_1_roundps): Likewise.
17193 (sse4_1_roundsd): Likewise.
17194 (sse4_1_roundss): Likewise.
17195 (mulv4si3): Don't expand for SSE4.1.
17196 (smax<mode>3): Likewise.
17197 (umaxv4si3): Likewise.
17198 (uminv16qi3): Likewise.
17199 (umin<mode>3): Likewise.
17200 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
17202 * doc/extend.texi: Document SSE4.1 built-in functions.
17204 * doc/invoke.texi: Document -msse4.1.
17206 2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
17208 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
17209 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
17210 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
17211 (ASM_SPEC): Add asm_pcrel_spec.
17212 (EXTRA_SPECS): Add asm_pcrel_spec.
17214 2007-05-21 David Daney <ddaney@avtrex.com>
17216 * doc/install.texi (Building a cross compiler): Add requirements
17217 for Java cross compiler.
17219 2007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17221 PR middle-end/31995
17222 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
17223 Add loopno argument. Use evolution_function_is_invariant_rec_p
17224 instead of evolution_function_is_constant_p.
17225 Update calls to evolution_function_is_affine_multivariate_p.
17226 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
17227 Add loopno argument.
17228 * tree-scalar-evolution.c (gather_chrec_stats): Call
17229 evolution_function_is_affine_multivariate_p with a loop
17231 * tree-data-ref.c (analyze_miv_subscript): Likewise.
17232 (analyze_overlapping_iterations): Likewise.
17233 (access_functions_are_affine_or_constant_p): Likewise.
17234 (build_classic_dist_vector_1): If the access functions
17235 are equal, don't do anything.
17237 2007-05-21 Paolo Bonzini <bonzini@gnu.org>
17238 Paolo Carlini <pcarlini@suse.de>
17239 Uros Bizjak <ubizjak@gmail.com>
17241 * c-cppbuiltin.c (c_cpp_builtins): Define
17242 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17243 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
17244 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
17245 * doc/cpp.texi ([Standard Predefined Macros]): Document.
17247 2007-05-21 Mike Stump <mrs@apple.com>
17249 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
17251 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
17253 2007-05-21 Uros Bizjak <ubizjak@gmail.com>
17255 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
17256 implementation if __OPTIMIZE__ is not defined.
17257 (_mm_alignr_pi8): Ditto.
17258 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
17259 (_mm_inserti_si64): Ditto.
17260 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
17261 (_mm_slli_epi16): Ditto.
17262 (_mm_slli_epi32): Ditto.
17263 (_mm_slli_epi64): Ditto.
17264 (_mm_srai_epi16): Ditto.
17265 (_mm_srai_epi32): Ditto.
17266 (_mm_srli_si128): Ditto.
17267 (_mm_slli_si128): Ditto.
17268 (_mm_srli_epi16): Ditto.
17269 (_mm_srli_epi32): Ditto.
17270 (_mm_srli_epi64): Ditto.
17271 (_mm_extract_epi16): Ditto.
17272 (_mm_insert_epi16): Ditto.
17273 (_mm_shufflehi_epi16): Ditto.
17274 (_mm_shufflelo_epi16): Ditto.
17275 (_mm_shuffle_epi32): Ditto.
17276 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
17277 (_m_pextrw): Ditto.
17278 (_mm_insert_pi16): Ditto.
17279 (_m_pinsrw): Ditto.
17280 (_mm_shuffle_pi16): Ditto.
17281 (_m_pshufw): Ditto.
17282 (_mm_shufle_ps): Ditto.
17283 (_mm_prefetch): Ditto.
17285 2007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
17287 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
17288 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
17289 * real.c (encode_i370_single, decode_i370_single,
17290 encode_i370_double, decode_i370_double): Functions removed.
17291 (i370_single_format, i370_double_format): Initializations removed.
17292 (real_maxval, round_for_format, exact_real_truncate, significand_size):
17293 Consider the log2_b field to always be one.
17294 (ieee_single_format, mips_single_format, coldfire_single_format,
17295 ieee_double_format, mips_double_format, coldfire_double_format,
17296 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17297 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17298 ibm_extended_format, mips_extended_format, ieee_quad_format,
17299 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17300 decimal_single_format, decimal_double_format, decimal_quad_format,
17301 c4x_single_format, c4x_extended_format, real_internal_format): Remove
17302 initialization of log2_b.
17303 * real.h (i370_single_format, i370_double_format): Declarations
17305 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
17306 field to always be one.
17308 2007-05-21 Andreas Schwab <schwab@suse.de>
17310 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
17311 NOTE_INSN_BASIC_BLOCK_P.
17312 (process_for_unwind_directive): Likewise.
17314 2007-05-21 Nathan Sidwell <nathan@codesourcery.com>
17316 * builtins.c (expand_builtin_setjmp_setup): Update comment.
17317 * function.h (struct function): Move va_list_gpr_size,
17318 va_list_fpr_size, function_frequency to front of bitfields. Add
17320 (current_function_calls_unwind_init): New.
17321 * except.c (expand_builtin_unwind_init): Set
17322 current_function_calls_unwind_init not
17323 current_function_has_nonlocal_label.
17324 * reload1.c (has_nonexceptional_receiver): New.
17325 (reload): Use it and current_function_calls_unwind_init to
17326 determine whether call-saved regs must be saved.
17328 2007-05-20 Jan Hubicka <jh@suse.cz>
17330 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
17331 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17332 * ddg.c (create_ddg): LIkewise.
17333 * final.c (final): Remove hunk moving line number notes around since
17334 they are no longer present at this stage.
17335 (final_scan_insn): Use NOTE_KIND instead of
17336 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17337 (output_asm_label): Likewise.
17338 * reorg.c (dbr_schedule): Likewise.
17339 * haifa-sched.c (unlink_other_notes): Likewise.
17340 * mode-switching.c (optimize_mode_switching): Likewise.
17341 * graph.c (start_bb): Likewise.
17342 * rtl.def (NOTE): Update description.
17343 * jump.c (squeeze_notes): Delete.
17344 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
17345 NOTE_INSN_BASIC_BLOCK_P when possible.
17346 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
17347 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
17348 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17349 (dwarf2out_var_location): Likewise.
17350 * cfgbuild.c (make_edges): Likewise.
17351 (find_basic_blocks_1): Likewise.
17352 * function.c (reorder_blocks_1): Likewise.
17353 (epilogue_done): Likewise.
17354 (reposition_prologue_and_epilogue_notes): Likewise.
17355 * print-rtl.c (print_rtx): Likewise; drop code for printing
17357 (print_rtl): Likewise.
17358 (print_rtl_single): Likewise.
17359 * gcse.c (insert_insn_start_bb): Likewise.
17360 * alias.c (init_alias_analysis): Likewise.
17361 * calls.c (fixup_tail_calls): Likewise.
17362 * except.c (sjlj_emit_function_enter): Likewise.
17363 * emit-rtl.c (add_insn_after): Likeiwse.
17364 (emit_label_before): Likewise.
17365 (emit_label_after): Likewise.
17366 (emit_note_before, emit_note_after, emit_note): Update
17367 parameter to be enum insn_note; do not deal with source
17369 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
17370 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
17372 (merge_blocks_move_successor_nojumps): Simplify now when
17373 we don't have BLOCK notes.
17374 (try_optimize_cfg): Likewise.
17375 * cfglayout.c (skip_insns_after_block): Likewise.
17376 (record_effective_endpoints): Likewise.
17377 (duplicate_insn_chain): Likewise.
17378 * varasm.c (output_constant_pool_1): Likewise.
17379 * sched-deps.c (sched_analyze): Likewise.
17380 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
17382 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
17383 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
17384 (SET_INSN_DELETED): Simplify.
17385 (NOTE_LINE_NUMBER): Exterminate.
17386 (NOTE_LINE_KIND): New.
17387 (NOTE_INSN_BASIC_BLOCK_P): Update.
17388 (enum insn_note): Simplify.
17389 (GET_NOTE_INSN_NAME) Simplify.
17390 (emit_note_before, emit_note_after, emit_note): Update prototype.
17391 (squeeze_notes): Remove.
17392 * sched-int.h (NOTE_NOT_BB_P): Update.
17393 * resource.c (mark_target_live_regs): Update.
17394 * sched-rgn.c (debug_dependencies): Update.
17395 * sched-vis.c (print_insn): Update.
17396 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
17397 * config/i386/i386.c (ix86_output_function_epilogue): Update.
17398 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
17399 (TARGET_ADJUST_UNROLL_MAX): Likewise.
17400 (split_branches): Update.
17401 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
17403 (sh_adjust_unroll_max): Exterminate.
17404 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
17405 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
17406 (m68hc11_reorg): Likewise.
17407 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
17408 (emit_predicate_relation_info): Update.
17409 (process_for_unwind_directive): Update.
17410 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
17411 (output_call): Update.
17412 * config/pa/pa.c (output_lbranch): Update.
17413 (output_millicode_call): Update.
17414 (output_call): Update.
17415 (pa_combine_instructions): Update.
17416 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
17417 * config/bfin/bfin.c (gen_one_bundle): Update.
17418 * cfgrtl.c (can_delete_note_p): Update.
17419 (delete_insn): Update.
17420 (rtl_merge_blocks): Update.
17421 (commit_one_edge_insertion): Update.
17422 (rtl_verify_flow_info): Update.
17423 * stmt.c (expand_case): Do not call squeeze_notes.
17425 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17432 * c.opt (Wtype-limits): New.
17433 * doc/invoke.texi (Wtype-limits): Document it.
17434 (Wextra): Enabled by -Wextra.
17435 * c-opts.c (c_common_post_options): Enabled by -Wextra.
17436 * c-common.c (shorten_compare): Warn with Wtype-limits.
17438 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
17440 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
17441 inlined function, not as a macro.
17442 (_mm_alignr_pi8): Ditto.
17443 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
17444 (_mm_inserti_si64): Ditto.
17445 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
17446 (_mm_extract_epi16): Ditto.
17447 (_mm_insert_epi16): Ditto.
17448 (_mm_shufflehi_epi16): Ditto.
17449 (_mm_shufflelo_epi16): Ditto.
17450 (_mm_shuffle_epi32): Ditto.
17451 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
17452 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
17454 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
17456 (_m_to_float): Use C89 compatible assignment.
17458 2007-05-20 Martin Michlmayr <tbm@cyrius.com>
17461 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
17463 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17466 * doc/invoke.texi (Wreturn-type): Complete description.
17467 (Wextra): Delete item about return-type warning.
17468 * c-decl.c: Delete redundant Wextra warning.
17470 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
17473 * config/i386/pmmintrin.h: Do not include xmmintrin.h
17474 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
17475 inlined function, not as a macro.
17476 (_mm_prefetch): Ditto.
17477 (_m_pextrw): Ditto.
17478 (_mm_insert_pi16): Ditto.
17479 (_m_pinsrw): Ditto.
17480 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
17481 (_m_pshufw): Ditto. Add const to __N argument.
17482 (_mm_shufle_ps): Ditto. Add const to __mask argument.
17483 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
17484 (_mm_slli_epi32): Ditto.
17485 (_mm_srli_si128): Implement as always inlined function, not as a
17486 macro. Add __inline to function declaration.
17487 (_mm_slli_si128): Ditto.
17489 2007-05-19 Uros Bizjak <ubizjak@gmail.com>
17491 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
17492 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
17494 (struct fenv): New structure.
17495 (FP_HANDLE_EXCEPTIONS): New define.
17496 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
17497 (_FP_DECL_EXP): New define.
17498 (FP_INIT_ROUNDMODE): New define.
17499 (FP_ROUNDMODE): New define.
17501 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17503 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
17504 (Wconversion): Update description.
17505 (Wconversion-sign): New.
17506 * c.opt (Wconversion-sign): New.
17507 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
17508 means disabled for C++. Otherwise, take the status of Wconversion.
17509 * c-common.c (conversion_warning): Warn with either Wconversion or
17511 (warnings_for_convert_and_check): Conditions are already checked by
17512 conversion_warning.
17513 (convert_and_check): Don't check warnings if the conversion failed.
17515 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
17516 Anatoly Sokolov <aesok@dol.ru>
17518 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
17519 avr_epilogue_uses) : Add declaration.
17520 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
17521 * config/avr/constraints.md (R): New constraint.
17522 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
17523 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
17524 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
17525 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
17526 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
17527 call_prologue_saves, epilogue_restores, return_from_epilogue,
17528 return_from_main_epilogue, return_from_interrupt_epilogue,
17529 return_from_naked_epilogue, prologue, epilogue): New patterns.
17530 (jump): Handle symbol reference.
17531 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
17532 avr_output_function_prologue, avr_output_function_epilogue): Remove
17534 (avr_init_machine_status, expand_prologue, expand_epilogue,
17535 avr_asm_function_end_prologue, avr_epilogue_uses,
17536 avr_asm_function_begin_epilogue): New functions.
17537 (prologue_size, epilogue_size, jump_tables_size): Remove global
17539 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
17540 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
17541 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
17542 (avr_override_options): Initialise init_machine_status.
17543 (output_movhi): Handle all stack pointer loads.
17544 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
17545 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
17546 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
17547 (EPILOGUE_USES) Redefine.
17548 (machine_function) Declare.
17550 2007-05-19 Richard Sandiford <richard@codesourcery.com>
17552 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
17553 Use a single return statement.
17555 2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17557 PR middle-end/30250
17558 * builtins.c (do_mpfr_lgamma_r): New.
17559 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
17560 * tree.h (CASE_FLT_FN_REENT): New.
17562 2007-05-18 Geoffrey Keating <geoffk@apple.com>
17564 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
17565 (output_die): Use 'unsigned long' with %x.
17566 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
17567 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
17568 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
17570 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
17572 2007-05-18 H.J. Lu <hongjiu.lu@intel.com>
17577 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
17578 true if function has no argument.
17580 2007-05-18 DJ Delorie <dj@redhat.com>
17582 * config/mips/mips.c (mips_offset_within_alignment_p): New.
17583 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
17585 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
17587 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
17588 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
17589 count_trailing_zeros.
17590 (__i386__): Implement count_leading_zeros using __builtin_clz().
17591 Implement count_trailing_zeros usign __builtin_ctz().
17593 2007-05-18 Richard Sandiford <richard@codesourcery.com>
17595 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
17597 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
17599 PR middle-end/31344
17600 * expr.c (emit_move_change_mode): Change mode of push operands here.
17602 2007-05-17 Ian Lance Taylor <iant@google.com>
17604 PR tree-optimization/31953
17605 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
17606 Change all callers.
17607 (set_value_range_to_null): Call set_value_range_to_value.
17608 (extract_range_from_comparison): Likewise.
17610 2007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17612 * toplev.c (print_version): Output GMP/MPFR version info.
17614 * builtins.c (CASE_MATHFN_REENT): New macro.
17615 (mathfn_built_in): Use it.
17616 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
17617 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
17618 BUILT_IN_LGAMMAL_R): New.
17619 * doc/extend.texi: Document new builtins.
17621 PR middle-end/31796
17622 * builtins.c (do_mpfr_remquo): New.
17623 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
17624 (fold_builtin_3): Handle BUILT_IN_REMQUO.
17626 PR middle-end/30251
17627 * builtins.c (fold_builtin_1): Handle y0, y1.
17628 (fold_builtin_2): Handle yn.
17630 PR middle-end/30251
17631 * builtins.c (do_mpfr_bessel_n): New.
17632 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
17633 (fold_builtin_2): Handle BUILT_IN_JN.
17635 2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
17638 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
17639 TYPE_PRECISION (intmax_type_node).
17641 2007-05-17 Steve Ellcey <sje@cup.hp.com>
17644 * reload.c (subst_reloads): Remove checking.
17646 2007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
17648 PR rtl-optimization/31691
17649 * combine.c (simplify_set): Build a new src pattern instead of
17650 substituting its operands in the COMPARE case.
17652 2007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
17654 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
17655 (execute_vrp): Preserve loops through jump threading.
17656 * tree-ssa-threadupdate.c (thread_single_edge,
17657 dbds_continue_enumeration_p, determine_bb_domination_status,
17658 thread_through_loop_header): New functions.
17659 (create_edge_and_update_destination_phis,
17660 create_edge_and_update_destination_phis): Set loops for the new blocks.
17661 (prune_undesirable_thread_requests): Removed.
17662 (redirect_edges): Do not pretend that redirect_edge_and_branch can
17664 (thread_block): Do not call prune_undesirable_thread_requests.
17666 (mark_threaded_blocks): Select edges to thread here.
17667 (thread_through_all_blocks): Take may_peel_loop_headers argument.
17668 Thread edges through loop headers independently.
17669 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
17670 * tree-pass.h (TODO_mark_first_instance): New.
17671 (first_pass_instance): Declare.
17672 * cfghooks.c (duplicate_block): Put the block to the original loop
17673 if copy is not specified.
17674 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
17675 jump threading. Pass may_peel_loop_headers to
17676 thread_through_all_blocks according to first_pass_instance.
17677 * cfgloop.h (create_preheader): Declare.
17678 * tree-flow.h (thread_through_all_blocks): Declaration changed.
17679 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
17680 * passes.c (first_pass_instance): New variable.
17681 (next_pass_1): Set TODO_mark_first_instance.
17682 (execute_todo): Set first_pass_instance.
17684 2007-05-17 Uros Bizjak <ubizjak@gmail.com>
17686 PR tree-optimization/24659
17687 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
17688 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
17689 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
17690 OTI_vec_pack_ufix_trunc.
17691 (vec_unpacks_float_hi_optab): Define new macro.
17692 (vec_unpacks_float_lo_optab): Ditto.
17693 (vec_unpacku_float_hi_optab): Ditto.
17694 (vec_unpacku_float_lo_optab): Ditto.
17695 (vec_pack_sfix_trunc_optab): Ditto.
17696 (vec_pack_ufix_trunc_optab): Ditto.
17697 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
17698 and vec_pack_[s|u]fix_trunc_optab using
17699 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
17700 * tree-vectorizer.c (supportable_widening_operation): Handle
17701 FLOAT_EXPR and CONVERT_EXPR. Update comment.
17702 (supportable_narrowing_operation): New function.
17703 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
17704 * tree-vect-transform.c (vectorizable_conversion): Handle
17705 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
17706 (vect_gen_widened_results_half): Move before vectorizable_conversion.
17707 (vectorizable_type_demotion): Call supportable_narrowing_operation()
17708 to check for target support.
17709 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
17710 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
17711 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
17712 for VEC_PACK_FIX_TRUNC_EXPR.
17713 (expand_binop): Special case mode of the result for
17714 vec_pack_[u|s]fix_trunc_optab.
17715 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
17716 vec_pack_[u|s]fix_trunc_optab.
17718 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
17719 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
17720 * tree-pretty-print.c (dump_generic_node): Handle
17721 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
17722 VEC_PACK_FIX_TRUNC_EXPR.
17724 * expr.c (expand_expr_real_1): Ditto.
17725 * tree-inline.c (estimate_num_insns_1): Ditto.
17726 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
17728 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
17729 (vec_unpacks_float_lo_v8hi): Ditto.
17730 (vec_unpacku_float_hi_v8hi): Ditto.
17731 (vec_unpacku_float_lo_v8hi): Ditto.
17732 (vec_unpacks_float_hi_v4si): Ditto.
17733 (vec_unpacks_float_lo_v4si): Ditto.
17734 (vec_pack_sfix_trunc_v2df): Ditto.
17736 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
17738 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
17739 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
17740 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
17741 [vec_pack_ufix_trunc]: Ditto.
17742 [vec_unpacks_float_hi]: Ditto.
17743 [vec_unpacks_float_lo]: Ditto.
17744 [vec_unpacku_float_hi]: Ditto.
17745 [vec_unpacku_float_lo]: Ditto.
17747 2007-05-16 Uros Bizjak <ubizjak@gmail.com>
17749 * soft-fp/README: Update for new files.
17750 * soft-fp/floattisf.c: New file.
17751 * soft-fp/floattidf.c: New file.
17752 * soft-fp/floattitf.c: New file.
17753 * soft-fp/floatuntisf.c: New file.
17754 * soft-fp/floatuntidf.c: New file.
17755 * soft-fp/floatuntitf.c: New file.
17756 * soft-fp/fixsfti.c: New file.
17757 * soft-fp/fixdfti.c: New file.
17758 * soft-fp/fixtfti.c: New file.
17759 * soft-fp/fixunssfti.c: New file.
17760 * soft-fp/fixunsdfti.c: New file.
17761 * soft-fp/fixunstfti.c: New file.
17762 * soft-fp/extendxftf.c: New file.
17763 * soft-fp/trunctfxf.c: New file.
17765 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
17766 (__trunctfxf2): Ditto.
17768 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
17769 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
17770 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
17771 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
17772 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
17773 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
17775 * config/i386/t-fprules-softfp64: New file.
17776 * config/i386/sfp-machine.h: New file.
17777 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
17778 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
17779 and soft-fp/t-softfp to tmake_file.
17780 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
17781 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
17783 * config/i386/t-linux64 (softfp_wrap_start): New.
17784 (softfp_wrap_end): New.
17785 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
17786 supported for TARGET_64BIT.
17788 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
17790 * c-common.c (c_common_signed_or_unsigned_type): Emulate
17791 c_common_unsigned_type behavior.
17793 2007-05-16 Paolo Bonzini <bonzini@gnu.org>
17795 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
17798 2007-05-16 Eric Christopher <echristo@apple.com>
17800 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
17801 saving after stack push. Set sp_offset whenever we push.
17802 (rs6000_emit_epilogue): Move altivec register restore before
17805 2007-05-16 Richard Sandiford <richard@codesourcery.com>
17807 * configure.ac: Allow sysroots to be relocated under $prefix as
17808 well as $exec_prefix.
17809 * configure: Regenerate.
17811 2007-05-16 Richard Sandiford <richard@codesourcery.com>
17815 2007-05-12 Richard Sandiford <richard@codesourcery.com>
17817 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
17818 (gcc_tooldir): Likewise.
17819 * configure: Regenerate.
17820 * Makefile.in (libsubdir_to_prefix): New variable, based on the
17821 old configure.ac gcc_tooldir setting.
17822 (prefix_to_exec_prefix): New variable.
17823 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
17824 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
17826 2007-05-14 Janis Johnson <janis187@us.ibm.com>
17828 * c-typeck.c (build_binary_op): Return early for error.
17830 2007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
17832 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
17833 struct nb_iter_bound.
17834 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
17835 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
17836 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
17837 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
17838 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
17839 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
17840 (del_scev_info): Use ggc_free.
17841 (scev_initialize): Allocate scalar_evolution_info in gc memory.
17842 * loop-init.c: Include ggc.h.
17843 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
17844 (loop_optimizer_finalize): Use ggc_free.
17845 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
17846 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
17847 pass_iv_optimize): Add TODO_ggc_collect.
17848 * function.h (struct function): Remove skip marker from
17850 * cfgloop.c: Include ggc.h.
17851 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
17853 (establish_preds): Vector superloops is gc allocated.
17854 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
17856 (flow_loops_find): Vector larray is gc allocated.
17857 (loop_exit_free): Use ggc_free.
17858 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
17859 that head of exits list is now not a part of struct loop.
17860 (record_loop_exits): Allocate exits table in gc memory.
17861 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
17862 that head of exits list is now not a part of struct loop.
17863 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
17864 struct loop_exit): Add GTY marker.
17865 (struct loop): Add GTY marker. Make superloops vector gc allocated.
17866 Add skip marker to aux field. Make head of exits list a separate
17868 (struct loops): Add GTY marker. Make larray vector gc allocated.
17869 Add param marker to exits table.
17870 (get_loops): Type changed.
17871 * Makefile.in (tree-scalar-evolution.o): Add
17872 gt-tree-scalar-evolution.h dependency.
17873 (cfgloop.o, loop-init.o): Add ggc.h dependency.
17874 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
17875 * basic-block.h (struct basic_block_def): Remove skip marker from
17878 2007-05-14 Uros Bizjak <ubizjak@gmail.com>
17880 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
17881 of 0 in the call to expand_expr().
17882 (expand_builtin_mathfn_3): Ditto.
17883 (expand_builtin_interclass_mathfn): Ditto.
17884 (expand_builtin_cexpi): Ditto.
17885 (expand_builtin_int_roundingfn): Ditto.
17886 (expand_builtin_int_roundingfn_2): Ditto.
17887 (expand_builtin_pow): Ditto.
17888 (expand_builtin_powi): Ditto.
17889 (expand_builtin_bswap): Ditto.
17890 (expand_builtin_unop): Ditto.
17891 (expand_builtin_fabs): Ditto.
17892 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
17893 the call to expand_expr().
17894 (expand_builtin_sync_operation): Ditto.
17895 (expand_builtin_compare_and_swap): Ditto.
17896 (expand_builtin_lock_test_and_set): Ditto.
17897 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
17898 instead of 0 in the call to expand_expr().
17899 (expand_builtin_extract_return_addr): Ditto.
17900 (expand_builtin_eh_return): Ditto.
17901 (expand_eh_return): Ditto.
17902 * explow.c (expr_size): Ditto.
17903 * expr.c (optimize_bitfield_assignment_op): Ditto.
17904 (expand_assignement): Ditto.
17905 (store_expr): Ditto.
17906 (store_field): Ditto.
17907 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
17908 the call to expand_expr().
17909 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
17910 in the call to expand_expr().
17911 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
17912 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
17913 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
17915 * optabs.c (expand_vec_shift_expr): Ditto.
17916 (expand_vec_cond_expr): Ditto.
17917 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
17918 call to expand_expr().
17919 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
17920 in the call to expand_expr().
17922 2007-05-14 Dave Korn <dave.korn@artimi.com>
17924 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
17926 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
17928 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
17929 instead of c_common_unsigned_type.
17930 (c_common_unsigned_type): Remove.
17931 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
17932 c_common_unsigned_type.
17933 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
17934 c_common_unsigned_type.
17935 * c-common.h (c_common_unsigned_type): Remove.
17936 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
17937 c_common_unsigned_type.
17938 * c-format.c (check_format_types): Use unsigned_type_for instead of
17939 c_common_unsigned_type.
17940 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17941 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
17942 of c_common_unsigned_type.
17943 * convert.c (convert_to_integer): Use unsigned_type_for instead of
17944 lang_hooks.types.unsigned_type.
17945 * expmed.c (make_tree): Use unsigned_type_for instead of
17946 lang_hooks.types.unsigned_type.
17947 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
17948 lang_hooks.types.unsigned_type.
17949 (build_range_check): Likewise.
17950 (fold_unary): Likewise.
17951 (fold_binary): Likewise.
17952 (fold_ternary): Likewise.
17953 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17954 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
17955 * tree.c (get_unsigned_type): New.
17956 (unsigned_type_for): Use get_unsigned_type instead of
17957 lang_hooks.types.unsigned_type.
17959 2007-05-14 Kazu Hirata <kazu@codesourcery.com>
17961 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
17962 to m68k_get_function_kind. Update its prototype.
17963 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
17965 (m68k_interrupt_function_p): Return enum m68k_function_type
17966 instead of bool. Rename to m68k_get_function_kind.
17967 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
17968 target is not fido.
17969 (m68k_compute_frame_layout): Don't mark any register for save
17970 if an interrupt_thread attribute is specified.
17971 (m68k_hard_regno_rename_ok): Update a use of
17972 m68k_interrupt_function_p.
17973 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
17974 m68k_interrupt_function_p.
17975 (m68k_function_type): New.
17976 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
17977 for a function with an interrupt_thread attribute.
17978 * doc/extend.texi: Document the interrupt_thread attribute.
17980 2007-05-13 Daniel Berlin <dberlin@dberlin.org>
17982 Fix PR tree-optimization/31911
17983 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
17984 if they didn't change the expression.
17986 2007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
17988 * tree-scalar-evolution.c (resolve_mixers): Exported.
17989 * tree-scalar-evolution.h (resolve_mixers): Declare.
17990 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
17991 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
17992 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
17993 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
17994 init_array_ref, init_pointer_ref, analyze_indirect_ref,
17995 strip_conversion, analyze_offset_expr, address_analysis,
17996 object_analysis, analyze_offset): Removed.
17997 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
17998 split_constant_offset, canonicalize_base_object_address,
17999 object_address_invariant_in_loop_p, disjoint_objects_p,
18000 dr_may_alias_p, dr_address_invariant_p): New functions.
18001 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
18002 and dr_analyze_alias.
18003 (initialize_data_dependence_relation): Use dr_may_alias_p
18004 and object_address_invariant_in_loop_p.
18005 (compute_self_dependence): Handle the case when
18006 DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
18007 (find_data_references_in_stmt): Restrict the analysis of data
18008 references to the given loop nest.
18009 (find_data_references_in_loop): Made static. Pass loop nest to
18010 find_data_references_in_stmt.
18011 (compute_data_dependences_for_loop): Use DR_VOPS.
18012 (free_data_ref): Free DR_VOPS.
18013 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
18014 (struct innermost_loop_behavior): ... new.
18015 (struct base_object_info): Replaced by ...
18016 (struct indices): ... new.
18017 (struct dr_alias): New.
18018 (enum data_ref_type): Removed.
18019 (struct data_reference): Consist of struct innermost_loop_behavior,
18020 struct indices and struct dr_alias.
18021 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
18022 (DR_MEMTAG): Renamed to ...
18023 (DR_SYMBOL_TAG): ... this.
18024 (find_data_references_in_loop): Declaration removed.
18025 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
18026 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
18027 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
18028 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
18030 2007-05-13 Revital Eres <eres@il.ibm.com>
18032 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
18033 which walks virtual def-use chains to find redundant stores.
18034 (dse_optimize_stmt): Call it.
18036 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
18038 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
18039 * passes.c (init_optimization_passes): Move pass_jump_bypass
18042 * basic-block.h (bb_has_eh_pred): Fix style issue.
18044 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
18046 PR rtl-optimization/31848
18047 * loop-invariant.c (move_invariant_reg): If we move an insn
18048 with a REG_EQUAL note, and that insn is not always executed,
18049 remove the REG_EQUAL note.
18051 2007-05-12 Richard Guenther <rguenther@suse.de>
18053 PR tree-optimization/31797
18054 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
18055 propagate into a stmt that has volatile ops.
18057 2007-05-12 Richard Sandiford <richard@codesourcery.com>
18059 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
18060 (gcc_tooldir): Likewise.
18061 * configure: Regenerate.
18062 * Makefile.in (libsubdir_to_prefix): New variable, based on the
18063 old configure.ac gcc_tooldir setting.
18064 (prefix_to_exec_prefix): New variable.
18065 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
18066 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
18068 2007-05-11 Silvius Rus <rus@google.com>
18070 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
18071 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
18072 * c-common.h (strict_aliasing_warning): Change return type.
18073 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
18074 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
18075 (build_c_cast): Condition call to strict_aliasing_warning.
18076 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
18077 * flags.h (set_Wstrict_aliasing): Declare.
18078 * opts.c (set_Wstrict_alising): Define, add call to.
18079 * tree-flow.h (strict_aliasing_warning_backend): Declare.
18080 * tree-ssa-alias-warnings.c: New file.
18081 * tree-ssa-alias.c (compute_may_aliases): Add call to
18082 strict_aliasing_warning_backend.
18084 2007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
18086 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
18087 Use loop_depth and loop_outer accessor functions.
18088 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
18089 determine_invariantness_stmt, move_computations_stmt): Ditto.
18090 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
18091 add_loop, loopify, unloop, fix_loop_structure): Ditto.
18092 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
18093 * tree-scalar-evolution.c (interpret_loop_phi,
18094 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
18095 instantiate_parameters_1, scev_const_prop): Ditto.
18096 * cfghooks.c (make_forwarder_block): Ditto.
18097 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
18098 * modulo-sched.c (loop_canon_p): Ditto.
18099 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
18100 slpeel_can_duplicate_loop_p): Ditto.
18101 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
18102 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
18103 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
18104 cancel_loop, verify_loop_structure): Ditto.
18105 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
18106 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
18107 superloops vector instead of "pred" array.
18108 (establish_preds): Take father loop as an argument. Initialize the
18110 (flow_loop_tree_node_add): Pass father loop to establish_preds.
18111 Do not initialize loop->outer.
18112 (flow_loop_tree_node_remove): Truncate the superloops vector.
18113 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
18114 "pred" merged to "superloops" vector.
18115 (loop_depth, loop_outer): New.
18116 (fel_init): Use loop_outer.
18118 2007-05-11 Jan Hubicka <jh@suse.cz>
18120 * cgraphunit.c: Include gt-cgraphunit.h
18121 (static_ctors, static_dtors): New static vars.
18122 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
18123 based on implementation in c-common.c
18124 (cgraph_finalize_function): Call record_cdtor_fn.
18125 (cgraph_optimize): Call cgraph_build_cdtor_fns.
18126 * decl.c (finish_function): Do not call c_record_cdtor_fn.
18127 (c_write_global_declarations): Do not call c_build_cdtor_fns.
18128 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
18129 build_cdtor, c_build_cdtor_fns): Remove.
18130 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
18131 c_build_cdtor_fns): Remove prototype.
18133 2007-05-11 Paolo Carlini <pcarlini@suse.de>
18136 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
18137 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
18138 * builtins.c (fold_builtin_memchr): New.
18139 (expand_builtin_memchr): Call the latter.
18140 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
18141 * doc/extend.texi ([Other built-in functions provided by GCC]):
18144 2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
18146 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
18147 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
18148 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
18149 PFPO_OP1_TYPE_SHIFT): Constants added.
18150 (DFP_ALL): Mode macro defined.
18151 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
18152 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
18153 Insn definitions added.
18154 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
18155 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
18158 2007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
18160 PR tree-optimization/31885
18161 * tree-chrec.c (chrec_contains_undetermined): Do not consider
18162 NULL_TREE to be undetermined.
18163 (automatically_generated_chrec_p): Return false for NULL.
18165 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
18167 * config/bfin/bfin.h (MOVE_RATIO): Define.
18169 2007-05-10 Richard Sandiford <richard@codesourcery.com>
18171 * config.gcc (sparc-wrs-vxworks): New target.
18172 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
18173 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
18174 * config/sparc/sparc.h: Include vxworks-dummy.h.
18175 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
18176 include LABEL_REFs too.
18177 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
18178 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
18180 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
18182 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
18183 (sparc_emit_call_insn): New function.
18184 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
18185 functions when generating VxWorks PIC.
18186 * config/sparc/sparc.md (vxworks_load_got): New pattern.
18187 (call, call_value): Use sparc_emit_call_insn instead of
18190 2007-05-09 Bob Wilson <bob.wilson@acm.org>
18192 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
18194 2007-05-09 Bob Wilson <bob.wilson@acm.org>
18196 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
18197 for floating-point values if HOST_BITS_PER_LONG > 32. Use
18198 split_double instead of operand_subword.
18200 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
18202 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
18203 * config/bfin/bfin.c (bfin_local_alignment): New function.
18204 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
18206 2007-05-08 Chao-ying Fu <fu@mips.com>
18208 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
18209 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
18210 (smsub_widen_optab, umsub_widen_optab): Define.
18211 * optabs.c (init_optabs): Initialize smsub_widen_optab and
18213 * genopinit.c (optabs): Fill in smsub_widen_optab and
18215 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
18216 and umsub_widen_optab to implement multiply-subtract sequences.
18217 * config/mips/mips.md (*msac<u>_di): Rename to...
18218 (<u>msubsidi4): ...this. Extend condition to include
18219 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
18220 of operand 0 to "ka" and use the three-operand form of msub<u>
18222 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
18225 2007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18227 PR rtl-optimization/28011
18228 * reload.c (push_reload): Set dont_share if IN appears in OUT
18229 also when IN is a PLUS rtx.
18230 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
18233 2007-05-08 Kazu Hirata <kazu@codesourcery.com>
18235 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
18236 call unshare_all_decls.
18237 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
18238 (unshare_all_decls): Remove.
18240 2007-05-08 Simon Martin <simartin@users.sourceforge.net>
18243 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
18246 2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
18247 Nigel Stephens <nigel@mips.com>
18249 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
18250 Update comments and all uses.
18251 (MIN_FPRS_PER_FMT): Define.
18252 * config/mips/mips.c (function_arg): Fix to correctly handle
18253 the -mips32r2 -mfp64 -mabi=32 case.
18254 (override_options): Enable use of odd-numbered registers for
18255 SFmode values on MIPS32.
18256 (mips_save_reg_p): Save whole floating-point register pair if
18257 either half is used.
18258 (compute_frame_size): Fix comment.
18260 2007-05-08 Jie Zhang <jie.zhang@analog.com>
18262 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
18263 argument of type bool.
18264 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
18265 argument. Safely select temporary P register according to it.
18266 (do_link): Change call site of add_to_reg accordingly.
18267 (do_unlink): Add epilogue_p as a fourth argument and pass it
18269 (expand_interrupt_handler_epilogue): Change call of do_unlink
18271 (bfin_expand_prologue): Add a third argument sibcall_p.
18272 * config/bfin/bfin.md (epilogue): Change call of
18273 bfin_expand_epilogue accordingly.
18274 (sibcall_epilogue): Likewise.
18275 (eh_return_internal): Likewise.
18277 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
18278 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
18279 * config/bfin/bfin.c (bfin_handle_option): Handle
18280 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
18281 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
18282 Support bf534, bf536 and bf561.
18283 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
18285 2007-05-08 Uros Bizjak <ubizjak@gmail.com>
18288 * config/i386/i386.c (ix86_function_regparm): Process local
18289 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
18291 2007-05-07 Mike Stump <mrs@apple.com>
18293 * doc/invoke.texi (Warning Options): Document that -Wempty-body
18294 also checks for and while statements in C++.
18296 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
18298 * gcc.c (at_file_supplied): New variable.
18299 (main): Set it if we expanded argv.
18300 (do_spec_1): Pass an @-file to the linker if we were called with
18301 an @-file argument and HAVE_GNU_LD.
18302 * collect2.c (at_file_supplied): New variable.
18303 (response_file): New variable.
18304 (collect_exit): Unlink response_file if necessary.
18305 (handler): Likewise.
18306 (do_wait): Likewise.
18307 (main): Set at_file_supplied if we expanded argv.
18308 (collect_execute): Pass an @-file to subprocesses if we were called
18309 with an @-file argument.
18310 * configure.ac: Add define for HAVE_GNU_LD.
18311 * configure: Regenerate.
18312 * config.in: Regenerate.
18314 2007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
18316 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
18317 operand to HI mode.
18322 2007-05-07 Jayant Sonar <jayants@kpitcummins.com>
18324 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18325 (TARGET_ENCODE_SECTION_INFO): Re-define.
18326 (m32c_encode_section_info): New
18327 (function_vector_handler): New
18328 (current_function_special_page_vector): New
18329 (m32c_special_page_vector_p): New.
18330 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
18332 * config/m32c/jump.md: Added instruction JSRS for functions
18333 with attribute "function_vector".
18334 * doc/extend.texi (function_vector): Added description
18335 for M16C, M32C targets.
18337 2007-05-07 DJ Delorie <dj@redhat.com>
18340 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
18341 ashrpsi3, lshrpsi3): Update shift count constraint.
18343 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
18344 Nathan Froyd <froydnj@codesourcery.com>
18347 * c-incpath.c (add_path): Strip trailing path separators.
18349 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
18351 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
18352 Free dominance info before purging EH edges.
18353 (eliminate_degenerate_phis): Likewise.
18354 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
18356 2007-05-07 Jan Hubicka <jh@suse.cz>
18358 * gimplify.c (gimplify_expr): Do not crash when folding
18359 (void *)(int)&a + 4.
18361 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18364 * c-opts.c (lang_fortran): Make it non static.
18365 * c-common.h (lang_fortran): New prototype.
18366 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
18367 -lang-fortran option was passed by the driver.
18369 2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
18371 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
18372 of ASSERT_CHECKING. Tweak message.
18374 2007-05-06 Revital Eres <eres@il.ibm.com>
18377 * loop-unroll.c (insert_var_expansion_initialization):
18378 Initialize the expansions with -zero instead of +zero.
18380 2007-05-05 Aurelien Jarno <aurelien@aurel32.net>
18382 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
18383 into pic and non-pic versions. Mark r19 as used for
18384 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
18385 for tgd_load, tld_load and tie_load .
18386 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
18387 version of tgd_load, tld_load and tie_load depending on the
18390 2007-05-04 Ulrich Drepper <drepper@redhat.com>
18391 Jakub Jelinek <jakub@redhat.com>
18393 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
18394 (__do_global_dtors_aux): Use more paranoid loop to run
18395 destructors if HIDDEN_DTOR_LIST_END.
18396 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
18398 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18400 * varasm.c (align_variable): Don't increase alignment for
18401 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
18402 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
18404 2007-05-04 Josh Conner <jconner@apple.com>
18406 * basic-block.h (cdi_direction): Assign values to all enumeration
18408 (dom_computed): Remove.
18409 (dom_info_state): New.
18410 (set_dom_info_availability): New.
18411 * tree-ssa-loop-im.c (determine_invariantness): Initialize
18412 walk_data.dom_direction.
18413 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
18414 instead of dom_computed[].
18415 (split_edge): Likewise.
18416 (create_basic_block): Likewise.
18417 (merge_blocks): Likewise.
18418 * ifcvt.c (find_if_header): Likewise.
18419 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
18420 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
18421 * tree-ssa.c (verify_ssa): Likewise.
18422 * tree-cfg.c (tree_verify_flow_info): Likewise.
18423 (remove_edge_and_dominated_blocks): Likewise.
18424 * dominance.c (dom_computed): Make static.
18425 (calc_dfs_tree_nonrec): Change third param to a bool.
18426 (calc_dfs_tree): Change second param to a bool.
18427 (calc_idioms): Change second param to a bool. Use
18428 dom_convert_dir_to_idx.
18429 (init_dom_info): Validate dir before using.
18430 (dom_convert_dir_to_idx): New.
18431 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
18432 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
18433 (free_dominance_info): Use dom_convert_dir_to_idx.
18434 (get_immediate_dominator): Likewise.
18435 (set_immediate_dominator): Likewise.
18436 (get_dominated_by): Likewise.
18437 (redirect_immediate_dominators): Likewise.
18438 (nearest_common_denominator): Likewise.
18439 (dominated_by_p): Likewise.
18440 (bb_dom_dfs_in): Likewise.
18441 (bb_dom_dfs_out): Likewise.
18442 (recount_dominator): Likewise.
18443 (iterate_fix_dominators): Likewise.
18444 (add_to_dominance_info): Likewise.
18445 (delete_from_dominance_info): Likewise.
18446 (first_dom_son): Likewise.
18447 (next_dom_son): Likewise.
18448 (dom_info_available_p): Likewise.
18449 (dom_info_state): New.
18450 (set_dom_info_availability): New.
18452 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
18454 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
18456 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
18458 2007-05-04 Bob Wilson <bob.wilson@acm.org>
18460 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
18461 (subdi3, subdi_carry): Delete.
18463 2007-05-04 Jan Hubicka <jh@suse.cz>
18464 Richard Guenther <rguenther@suse.de>
18466 * opts.c (decode_options): Do not fiddle with inlining
18467 parameters in case of optimizing for size.
18468 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
18469 for size do nothing.
18470 (cgraph_decide_inlining_of_small_function): When optimizing for
18471 size never inline functions increasing caller size.
18472 (cgraph_early_inlining): Inline for size when optimizing for size.
18474 2007-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
18476 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
18477 logical operations piecewise.
18478 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
18479 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
18480 subdi_sesidi_di): Delete.
18481 (add_with_carry): Produce carry in CC instead of a DREG to shorten
18482 the generated sequence. Allow three-reg add in constraints. Rewrite
18483 the rtl expression for carry to avoid zero_extend of a constant.
18484 (sub_with_carry): New pattern.
18485 (adddi3, subdi3): Change into define_expand. For subtract, generate a
18486 different sequence not involving jumps.
18487 (notbi): Now a named pattern.
18489 2007-05-04 Bradley Lucier <lucier@math.purdue.edu>
18491 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
18492 Add the note about a significant loss of accuracy of some
18493 mathematical routines when these options are used.
18495 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
18497 * haifa-sched.c (rtx_vec_t): New typedef.
18498 (contributes_to_priority_p): Extract piece of priority () into new
18500 (priority): Use the function. Add assertion.
18501 (rank_for_schedule, set_priorities): Add assertion to check that
18502 insn's priority is initialized.
18503 (clear_priorities, calc_priorities): Change signature. Make it update
18504 all relevant insns. Update all callers ('add_to_speculative_block ()'
18505 and 'create_block_check_twin ()').
18506 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
18507 Add new field 'priority_status'.
18508 (INSN_PRIORITY_STATUS): New macro.
18509 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
18511 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
18513 * sched-ebb.c (debug_ebb_dependencies): New static function.
18514 (init_ready_list): Use it.
18516 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
18517 with changed signature and 'debug_rgn_dependencies ()'.
18518 (debug_rgn_dependencies): New static function.
18519 (init_ready_list): Use it.
18521 * sched-int.h (debug_dependencies): Declare.
18523 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
18525 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
18527 2007-05-04 Dirk Mueller <dmueller@suse.de>
18529 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
18531 2007-05-03 Jan Hubicka <jh@suse.cz>
18533 * fold-const.c (fold_unary): Convert (T1)(X op Y) into
18534 ((T1)X op (T1)Y), for pointer type in more cases than before.
18536 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
18538 * tree-object-size.c (plus_expr_object_size): When operand size is
18539 unknown, return unknown.
18541 2007-05-03 Dirk Mueller <dmueller@suse.de>
18543 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
18545 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
18548 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
18550 2007-05-03 Janis Johnson <janis187@us.ibm.com>
18552 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
18554 2007-05-03 Joseph Myers <joseph@codesourcery.com>
18556 * config/soft-fp/double.h, config/soft-fp/extended.h,
18557 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
18558 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
18559 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
18560 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
18563 2007-05-03 Ian Lance Taylor <iant@google.com>
18565 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
18566 MASK_PPC_GFXOPT for 8540 or 8548.
18568 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
18570 * tree-vect-transform.c (vect_update_inits_of_drs): Use
18571 vect_print_dump_info() to output debug information.
18573 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
18576 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
18577 operands of size 2 when operand is not MEM_P.
18579 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
18581 PR tree-optimization/30565
18582 * lambda-code.c (perfect_nestify): Fix updating of dominators.
18584 2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
18586 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
18587 (umulsi3_highpart): Use them.
18588 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
18589 for final accumulator to D regisster tranfser.
18591 2007-05-03 Dorit Nuzman <dorit@il.ibm.com>
18593 PR tree-optimization/31699
18594 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
18596 (vect_enhance_data_refs_alignment): Compute peel amount using
18597 TYPE_VECTOR_SUBPARTS instead of vf.
18598 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
18600 2007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
18603 * system.h: Remove inclusion of double-int.h
18604 * tree.h: Include double-int.h
18605 * gengtype.c: Likewise
18606 * cfgloop.h: Likewise
18607 * Makefile.in: Adjust dependencies on double-int.h
18609 2007-05-02 Eric Christopher <echristo@apple.com>
18611 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
18612 -shared to -Zdynamiclib.
18614 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
18617 * c-common.c (strip_pointer_or_array_types): New function.
18618 * c-common.h (strip_pointer_or_array_types): New function declaration.
18620 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
18622 PR tree-optimization/31771
18623 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
18625 2007-05-02 Paul Brook <paul@codesourcery.com>
18627 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
18629 2007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
18631 PR middle-end/29715
18632 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
18635 2007-05-02 Nick Clifton <nickc@redhat.com>
18637 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
18639 2007-05-02 Richard Guenther <rguenther@suse.de>
18641 PR tree-optimization/31146
18642 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
18643 argument, single_use_p. If we have a single use that is
18644 a conversion to the definition rhs type, propagate that rhs.
18645 (forward_propagate_addr_expr): Pass single_use_p argument
18646 to forward_propagate_addr_expr_1.
18648 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
18650 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
18653 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18655 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
18656 'AMD Family 10 core'.
18658 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18660 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
18661 and athlon64-sse3 as improved versions of k8, opteron and athlon64
18662 with SSE3 instruction set support.
18663 * doc/invoke.texi: Likewise.
18665 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18667 * config/i386/i386.c (override_options): Tuning 32-byte loop
18668 alignment for amdfam10 architecture. Increasing the max loop
18669 alignment to 24 bytes.
18671 2007-05-01 Kazu Hirata <kazu@codesourcery.com>
18673 * config/m68k/constraints.md: New.
18674 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
18675 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
18676 EXTRA_CONSTRAINT): Remove.
18677 * config/m68k/m68k.md: Include constraints.md.
18678 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
18680 2007-05-01 Ian Lance Taylor <iant@google.com>
18682 PR tree-optimization/31739
18683 * tree-vrp.c (vrp_val_is_max): New static function.
18684 (vrp_val_is_min): New static function.
18685 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
18687 (set_value_range): Use vrp_val_is_{max,min}.
18688 (extract_range_from_assert): Likewise.
18689 (extract_range_from_binary_expr): Likewise.
18690 (extract_range_from_unary_expr): Likewise.
18691 (dump_value_range, vrp_meet): Likewise.
18692 (vrp_visit_phi_node): Likewise.
18693 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
18695 2007-05-01 Mark Mitchell <mark@codesourcery.com>
18697 * config/i386/gmon-sol2.c (size_t): New type.
18698 (intptr_t): Likewise.
18699 (s_textsize): Declare as size_t.
18701 (monstartup): Use size_t for sizes.
18702 (_mcount): Save and restore registers.
18703 (internal_mcount): Pass 0 as the first argument to monstartup
18705 (moncontrol): Convert pointer to appropriately sized integer
18706 before passing to profil.
18708 2007-05-01 Joseph Myers <joseph@codesourcery.com>
18710 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
18711 __NO_FPRS__, not just if _SOFT_DOUBLE.
18712 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
18713 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
18714 also for E500 double.
18715 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
18716 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
18719 2007-05-01 Richard Guenther <rguenther@suse.de>
18721 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
18724 2007-05-01 Joseph Myers <joseph@codesourcery.com>
18726 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
18728 2007-05-01 Jan Hubicka <jh@suse.cz>
18730 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
18733 2007-05-01 Jan Hubicka <jh@suse.cz>
18735 * tree.h (maybe_fold_offset_to_component_ref): Remove.
18736 (maybe_fold_offset_to_reference): Declare.
18737 * fold-const.c (fold_unary): Do not fold
18738 (type *)&A into &A->field_of_type_and_offset_0
18739 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
18740 size is unknown, give up.
18741 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
18743 (maybe_fold_offset_to_reference): New.
18744 (maybe_fold_stmt_indirect): Use it.
18745 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
18746 * gimplify.c (gimplify_conversion): Canonicalize conversions to
18748 (gimplify_expr): Likewise for plus_expr.
18750 2007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
18752 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
18753 bsi_after_labels. Always insert statements before bsi.
18754 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
18755 * predict.c (apply_return_prediction): Check for empty blocks.
18756 * cfgexpand.c (lab_rtx_for_bb): New variable.
18757 (label_rtx_for_bb): Do not create new tree labels.
18758 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
18759 (tree_expand_cfg): Initialize lab_rtx_for_bb.
18760 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
18762 (label_for_bb): Add field used.
18763 (update_eh_label, main_block_label): Mark the label used.
18764 (cleanup_dead_labels): Remove unused labels.
18766 2007-05-01 Richard Guenther <rguenther@suse.de>
18768 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
18769 if it is not about to be set.
18770 (get_value_range): Do not pre-allocate equiv bitmap.
18771 (update_value_range): No need to clear equiv field.
18772 (add_equivalence): Change prototype to get bitmap pointer.
18773 Allocate bitmap here if it is not already.
18774 (extract_range_from_assert): Do not allocate bitmap here.
18775 Update callers to add_equivalence.
18776 (extract_range_from_ssa_name): Likewise.
18777 (get_vr_for_comparison): New static helper.
18778 (compare_name_with_value): Handle NULL equiv bitmap by
18779 peeling the first iteration of the comparison loop.
18780 Use get_vr_for_comparison.
18781 (compare_names): Handle NULL equiv bitmaps by using fake
18782 ones. Use get_vr_for_comparison.
18784 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
18786 * double-int.c (mpz_set_double_int): Moved from
18787 tree-ssa-loop-niter.c.
18788 (mpz_get_double_int): Likewise; also, add option to wrap
18789 out-of-range integers.
18790 * double-int.h: New prototypes for above.
18791 * tree.c (get_static_type_bounds): Moved from
18792 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
18793 TYPE_MAX_VALUE if they exist..
18794 * tree.h: New prototype for above.
18795 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
18796 get_type_bounds calls.
18797 (mpz_set_double_int): Move to double-int.c.
18798 (get_type_bounds): Move to tree.c, rename to
18799 get_static_type_bounds.
18800 (mpz_to_double_int): Move to double-int.c, rename to
18801 mpz_get_double_int.
18803 2007-04-30 Bob Wilson <bob.wilson@acm.org>
18805 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
18806 DIV0 exception can fall through to a normal return.
18808 2007-04-30 Alexandre Oliva <aoliva@redhat.com>
18810 PR middle-end/22156
18811 Temporarily revert:
18812 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
18813 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
18814 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
18815 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
18816 initialize align to silence bogus warning.
18817 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
18818 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
18820 (struct sra_walk_fns): Remove use_all parameter from use.
18821 (sra_hash_tree): Handle BIT_FIELD_REFs.
18822 (sra_elt_hash): Don't hash bitfld blocks.
18823 (sra_elt_eq): Skip them in parent compares as well. Handle
18825 (sra_walk_expr): Don't maintain or pass down use_all_p.
18826 (scan_use): Remove use_all parameter.
18827 (scalarize_use): Likewise. Re-expand assignment to
18828 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
18829 output, and re-scalarize after output. Don't mark anything
18831 (scalarize_ldst): Adjust.
18832 (scalarize_walk_gimple_modify_statement): Likewise.
18833 (build_element_name_1): Handle BIT_FIELD_REFs.
18834 (instantiate_element): Don't warn for any element whose parent
18835 is used as a whole.
18836 (instantiate_missing_elements_1): Return the sra_elt.
18837 (canon_type_for_field): New.
18838 (try_instantiate_multiple_fields): New.
18839 (instantiate_missing_elemnts): Use them.
18840 (mark_no_warning): Removed.
18841 (generate_one_element_ref): Handle BIT_FIELD_REFs.
18842 (REPLDUP, sra_build_elt_assignment): New.
18843 (generate_copy_inout): Use them.
18844 (generate_element_copy): Likewise. Handle bitfld differences.
18845 (generate_element_zero): Don't recurse for blocks. Use
18846 sra_build_elt_assignment.
18847 (generate_one_element_int): Take elt instead of var. Use
18848 sra_build_elt_assignment.
18849 (generate_element_init_1): Adjust.
18850 (scalarize_use, scalarize_copy): Use REPLDUP.
18851 (scalarize_ldst): Move assert before dereference.
18852 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
18854 2007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
18857 * tree.c (reconstruct_complex_type): Reconstruct a reference
18859 Also use the same mode for the pointer as the old pointer type.
18861 2007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18863 * doc/trouble.texi (Interoperation): Remove note about Ultrix
18866 2007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
18868 PR rtl-optimization/31676
18869 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
18870 (df_refs_record): Call it.
18872 2007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
18874 * rtl.def (SS_ABS): New code.
18875 * config/bfin/bfin.c (print_operand): New modifier 'v'.
18876 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
18877 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
18878 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
18879 (bfin_init_builtins): Define them.
18880 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
18881 (bfin_expand_builtin): ... and handle the others here.
18882 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
18883 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
18884 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
18885 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
18886 operand is only HImode.
18888 2007-04-29 Steven Bosscher <steven@gcc.gnu.org>
18890 * regclass.c (scan_one_insn): Remove splitting of
18893 2007-04-28 Sandra Loosemore <sandra@codesourcery.com>
18894 Nigel Stephens <nigel@mips.com>
18896 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
18898 2007-04-28 Jan Hubicka <jh@suse.cz>
18900 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
18901 insn_locators_alloc instead of insn_locators_initialize;
18902 call reset_block_changes.
18903 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18904 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
18905 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
18906 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18907 * config/score/score.c (th_output_mi_thunk): Likewise.
18908 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18909 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
18910 tolerate uninitialized locator info.
18913 * function.c (init_function_start): Don't init line number info.
18914 (expand_function_end): Update.
18915 (reset_block_changes, record_block_change, finalize_block_changes,
18916 check_block_change, free_block_changes): Kill.
18917 * function.h (reset_block_changes, record_block_change,
18918 finalize_block_changes, check_block_change, free_block_changes):
18920 (struct function): Remove ib_boundaries_block.
18921 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
18922 Use curr_insn_locator to initialize locator.
18923 (emit_line_note): Remove.
18924 * cfgexpand.c (expand_gimple_cond_expr): Update.
18925 (construct_exit_block): Likewise.
18926 (tree_expand_cfg): Initialize/finalize locators.
18927 * expr.c (expand_expr_real): Update.
18928 * cfglayout.c (line_locators_locs, line_locators_lines,
18929 file_locators_locs, file_locators_files): Remove.
18930 (set_block_levels): Move to cfgexpand.c.
18931 (insn_locators_initialize): Remove.
18932 (pass_insn_locators_initialize): Remove.
18933 (locations_locators_locs, locations_locators_vals): New static vars.
18934 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
18936 (insn_locators_alloc, insn_locators_finalize,
18937 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18939 (locator_location): New.
18940 (locator_line, locator_file): Rewrite.
18941 * rtl.h (emit_line_note): Kill.
18942 (insn_locators_alloc, insn_locators_finalize,
18943 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18945 * tree-inline.c (initialize_cfun): Do not initialize
18946 ib_boundaries_block.
18947 * passes.c (pass_insn_locators_initialize): Remove.
18949 2007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
18951 * tree-cfg.c (move_block_to_fn): Release bb from dominance
18952 info. Update last_basic_block correctly.
18954 2007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
18957 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
18958 register itself to hold the offset constant. Tell flow the use
18959 of r4 and r5 when they are used.
18961 2007-04-27 Richard Guenther <rguenther@suse.de>
18963 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
18964 if we simplified anything.
18965 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
18966 warnings until we did a simplification and the stmt was not
18967 marked as TREE_NO_WARNING.
18969 2007-04-27 Mike Stump <mrs@apple.com>
18971 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
18973 2007-04-27 Ian Lance Taylor <iant@google.com>
18975 PR middle-end/31710
18976 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
18977 TYPE_MAX_VALUE exist, convert them to the new type.
18979 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
18981 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
18982 if it claims to be available.
18983 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
18984 edge is redirected.
18985 (perform_tree_ssa_dce): Always free postdominators.
18987 2007-04-27 Richard Henderson <rth@redhat.com>
18989 * config/alpha/predicates.md (aligned_memory_operand): Mark
18990 as define_special_predicate.
18991 (unaligned_memory_operand, normal_memory_operand): Likewise.
18992 (reg_or_unaligned_mem_operand): Remove.
18993 (any_memory_operand): Match the documentation and check for
18994 non-renumbered pseudos during reload.
18995 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
18996 alpha_secondary_reload_class, update to new interface, make static.
18997 Handle CQImode like HImode. Remove FP subreg check.
18998 (alpha_expand_mov): Use replace_equiv_address.
18999 (alpha_expand_mov_nobwx): Use any_memory_operand.
19000 (TARGET_SECONDARY_RELOAD): New.
19001 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
19002 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
19003 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
19004 * config/alpha/alpha.md: ... here.
19005 (RELOAD12, reloadmode): New.
19007 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
19008 Don't handle the aligned case here.
19009 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
19010 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
19011 reload_inhi_help. Don't expect a scratch register.
19012 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
19014 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
19016 2007-04-27 Richard Guenther <rguenther@suse.de>
19018 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
19020 2007-04-27 Richard Guenther <rguenther@suse.de>
19022 PR tree-optimization/30965
19023 PR tree-optimization/30978
19024 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
19025 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
19026 (find_equivalent_equality_comparison): Likewise.
19027 (simplify_cond): Likewise.
19028 (get_prop_source_stmt): New helper.
19029 (get_prop_dest_stmt): Likewise.
19030 (can_propagate_from): Likewise.
19031 (remove_prop_source_from_use): Likewise.
19032 (combine_cond_expr_cond): Likewise.
19033 (forward_propagate_comparison): New function.
19034 (forward_propagate_into_cond): Rewrite to use fold for
19036 (tree_ssa_forward_propagate_single_use_vars): Call
19037 forward_propagate_comparison to propagate comparisons.
19039 2007-04-27 Richard Guenther <rguenther@suse.de>
19041 PR tree-optimization/31715
19042 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
19043 sure to do computation on the offset in an appropriate
19046 2007-04-27 Richard Sandiford <richard@codesourcery.com>
19048 * reload.h (elimination_target_reg_p): Declare.
19049 * reload.c (find_reloads): Don't apply the reg_rtx move
19050 optimization if the SET_DEST satisfies elimination_target_reg_p.
19051 * reload1.c (elimination_target_reg_p): New function.
19052 (gen_reload): In the move/add2 fallback, make sure that op0
19053 does not overlap the destination register.
19055 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
19057 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
19058 transform only GIMPLE_MODIFY_STMTs.
19059 * tree-complex.c (expand_complex_operations_1): Ditto.
19060 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
19061 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
19062 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
19064 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
19065 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
19066 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
19067 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
19068 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
19069 slpeel_add_loop_guard): Ditto.
19070 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
19071 * lambda-code.c (perfect_nestify): Ditto.
19072 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
19073 before the first statement.
19074 * tree-optimize.c (execute_free_datastructures): Fix comments.
19075 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
19076 * tree-flow.h (disband_implicit_edges): Declaration removed.
19077 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
19079 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
19080 COND_EXPRs without gotos.
19081 (disband_implicit_edges, has_label_p): Removed.
19082 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
19083 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
19085 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
19087 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
19088 also for COND_EXPRs.
19089 * cfgexpand.c (label_rtx_for_bb): New function.
19090 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
19091 Use label_rtx_for_bb to find the labels.
19092 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
19093 last block. Detect fallthru edges.
19095 2007-04-26 Ian Lance Taylor <iant@google.com>
19098 * reload.c (find_reloads_subreg_address): If the address was valid
19099 in the original mode but not in the new mode, reload the whole
19102 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
19104 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
19105 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
19106 (cleanup_control_expr_graph): Do not invalidate dominance info.
19107 Record altered blocks.
19108 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
19109 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
19110 cleanup_tree_cfg_bb): New functions.
19111 (remove_forwarder_block): Do not maintain the worklist of blocks.
19112 Record altered blocks.
19113 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
19114 not over whole cfg.
19115 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
19116 delete_unreachable_blocks if dominators are not available.
19117 * tree-inline.c (optimize_inline_calls): Free dominance information
19119 * tree-flow.h (remove_edge_and_dominated_blocks,
19120 cfgcleanup_altered_bbs): Altered.
19121 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
19123 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
19125 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
19126 do not invalidate dominators.
19128 2007-04-26 Anatoly Sokolov <aesok@post.ru>
19130 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
19131 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
19132 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
19133 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
19135 2007-04-26 Steve Ellcey <sje@cup.hp.com>
19137 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
19139 2007-04-26 Richard Guenther <rguenther@suse.de>
19141 PR tree-optimization/31703
19142 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
19143 the right type for the target of the bittest.
19145 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19147 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
19148 ix86_sol10_return_in_memory.
19150 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19152 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
19155 2007-04-26 Jakub Jelinek <jakub@redhat.com>
19158 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
19160 PR tree-optimization/30558
19161 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
19162 clear this_state.prev_try.
19164 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19165 Mark Mitchell <mark@codesourcery.com>
19167 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
19168 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
19169 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
19171 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19174 * doc/invoke.texi (%:print-asm-header): Document.
19175 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
19177 (static_spec_functions): Add print-asm-header.
19178 (main): Print a banner before the --target-help linker options.
19179 (print_asm_header_spec_function): New function.
19181 2007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
19184 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
19185 (movsf_ie): Likewise.
19187 2007-04-25 Paolo Carlini <pcarlini@suse.de>
19189 * doc/extend.texi ([Type Traits]): Adjust per N2255.
19191 2007-04-25 Bob Wilson <bob.wilson@acm.org>
19193 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
19194 exception for divide-by-zero.
19195 (__umodsi3, __modsi3): Likewise.
19197 2007-04-25 Dirk Mueller <dmueller@suse.de>
19199 * c-typeck.c (build_compound_expr): Annotate warning()
19200 call with OPT_Wunused_value.
19201 * tree-ssa.c (warn_uninit): Annotate warning with
19203 * c-common.c (handle_sentinel_attribute): Annotate warning
19204 call with OPT_Wattributes.
19206 2007-04-25 Thiemo Seufer <ths@mips.com>
19208 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
19209 (mips16): Fix typo.
19210 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
19211 on to the assembler. Improve handling of -mno-mips16. Add handling
19212 of -mno-mips3d, -mno-dsp, -mno-dspr2.
19213 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
19214 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
19215 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
19217 2007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
19220 * config/i386/winnt.c (i386_pe_file_end): Strip only
19221 USER_LABEL_PREFIX when writing export name.
19223 2007-04-25 Richard Sandiford <richard@codesourcery.com>
19225 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
19226 sh/elf.h, vx-common.h and vxworks.h.
19227 * config/sh/sh.h: Include config/vxworks-dummy.h.
19228 (SUBTARGET_OVERRIDE_OPTIONS): Define.
19229 (OVERRIDE_OPTIONS): Use it.
19230 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
19231 (vxworks_picreg): New pattern.
19232 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
19233 VXWORKS_OS_CPP_BUILTINS.
19234 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
19235 to their VXWORKS_* equivalents.
19236 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
19237 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
19238 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
19239 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
19240 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
19241 -mrtp/-fPIC multilibs.
19242 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
19243 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
19244 (MULTILIB_OSDIRNAMES): Delete.
19246 2007-04-25 Anatoly Sokolov <aesok@post.ru>
19249 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
19251 2007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
19253 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
19254 rounding mode to be specified by the caller.
19255 (real_to_mpfr) Likewise.
19256 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
19257 include new arguments.
19258 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
19260 2007-04-24 Ian Lance Taylor <iant@google.com>
19262 PR tree-optimization/31605
19263 * tree-vrp.c (set_value_range): Check that min and max are not
19264 both overflow infinities.
19265 (set_value_range_to_value): New static function.
19266 (extract_range_from_binary_expr): Call set_value_range_to_value.
19267 (extract_range_from_cond_expr): Likewise.
19268 (extract_range_from_expr): Likewise.
19269 (extract_range_from_unary_expr): Likewise. Don't create a range
19270 which overflows on both sides.
19271 (vrp_meet): Check for a useless range.
19272 (vrp_visit_phi_node): If we see a constant which looks like an
19273 overflow infinity, turn off the TREE_OVERFLOW flag.
19275 2007-04-24 Ian Lance Taylor <iant@google.com>
19277 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
19279 2007-04-24 Simon Martin <simartin@users.sourceforge.net>
19281 PR diagnostic/25923
19282 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
19283 diagnostic message is being built.
19284 * tree-pretty-print.c (dump_generic_node): Only write the
19285 formatted text into BUFFER's stream if we are not building a
19286 diagnostic message.
19287 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
19289 * Makefile.in (toplev.o): Depend on tree-pass.h.
19291 2007-04-24 Ian Lance Taylor <iant@google.com>
19293 PR tree-optimization/31602
19294 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
19295 conditionals in the copied loop header.
19296 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
19297 warnings if TREE_NO_WARNING is set.
19298 * doc/invoke.texi (Warning Options): Clarify that
19299 -Wstrict-overflow does not warn about loops.
19301 2007-04-24 Janis Johnson <janis187@us.ibm.com>
19303 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
19304 expand on the comment about _Decimal128 arguments and check the
19305 integer result of the modulus operation; for 64-bit ELF ABI, ensure
19306 that _Decimal128 argument uses even/odd register pair.
19307 (function_arg): Ditto.
19309 2007-04-24 Hui-May Chang <hm.chang@apple.com>
19311 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
19312 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
19314 2007-04-24 Richard Guenther <rguenther@suse.de>
19315 Olga Golovanevsky <olga@il.ibm.com>
19317 * fold-const.c (multiple_of_p): Check for bottom
19320 2007-04-24 Richard Henderson <rth@redhat.com>
19322 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
19323 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
19324 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
19325 looking for non-zero bits shifted out. Avoid a recursive call
19326 when constructing the scalar.
19327 (__floatundisf): Likewise.
19329 2007-04-24 Nathan Froyd <froydnj@codesourcery.com>
19331 * dwarf2out.c (field_byte_offset): Move the existing logic
19332 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
19333 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
19335 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
19338 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
19339 length argument of 0 for memset.
19340 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
19341 unsigned shift instead of the signed variant.
19343 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
19345 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
19346 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
19347 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
19348 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
19349 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
19350 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
19351 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
19352 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
19353 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
19354 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
19355 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
19356 "mul<mode>3", "div<mode>3"): Insn definitions added.
19357 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
19358 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
19359 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
19360 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
19361 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
19362 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
19363 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
19364 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
19365 TARGET_FLOAT_FORMAT): Macro definitions removed.
19366 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
19367 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
19368 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
19369 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
19370 (s390_gen_rtx_const_DI): Function removed.
19371 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
19373 2007-04-24 Richard Sandiford <richard@codesourcery.com>
19375 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
19376 over an external ffs function.
19378 2007-04-24 Chao-ying Fu <fu@mips.com>
19379 Richard Sandiford <richard@nildram.co.uk>
19381 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
19382 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
19383 (smadd_widen_optab, umadd_widen_optab): Define.
19384 * optabs.c (init_optabs): Initialize smadd_widen_optab and
19386 * genopinit.c (optabs): Fill in smadd_widen_optab and
19388 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
19389 and umadd_widen_optab to implement multiply-add sequences.
19390 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
19391 (<u>maddsidi4): ...this. Extend condition to include
19392 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
19393 of operand 0 to "ka" and use the three-operand form of madd<u>
19395 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
19397 * config/mips/constraints.md (ka): New register constraint.
19399 2007-04-24 Jan Hubicka <j@suse.cz>
19403 2007-04-23 Jan Hubicka <jh@suse.cz>
19404 * function.c (init_function_start): Don't init line number info.
19405 (expand_function_end): Update.
19406 (reset_block_changes, record_block_change, finalize_block_changes,
19407 check_block_change, free_block_changes): Kill.
19408 * function.h (reset_block_changes, record_block_change,
19409 finalize_block_changes, check_block_change, free_block_changes):
19411 (struct function): Remove ib_boundaries_block.
19412 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
19413 Use curr_insn_locator to initialize locator.
19414 (emit_line_note): Remove.
19415 * cfgexpand.c (expand_gimple_cond_expr): Update.
19416 (construct_exit_block): Likewise.
19417 (tree_expand_cfg): Initialize/finalize locators.
19418 * expr.c (expand_expr_real): Update.
19419 * cfglayout.c (line_locators_locs, line_locators_lines,
19420 file_locators_locs, file_locators_files): Remove.
19421 (set_block_levels): Move to cfgexpand.c.
19422 (insn_locators_initialize): Remove.
19423 (pass_insn_locators_initialize): Remove.
19424 (locations_locators_locs, locations_locators_vals): New static vars.
19425 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
19427 (insn_locators_alloc, insn_locators_finalize,
19428 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19430 (locator_location): New.
19431 (locator_line, locator_file): Rewrite.
19432 * rtl.h (emit_line_note): Kill.
19433 (insn_locators_alloc, insn_locators_finalize,
19434 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19436 * tree-inline.c (initialize_cfun): Do not initialize
19437 ib_boundaries_block.
19438 * passes.c (pass_insn_locators_initialize): Remove.
19440 2007-04-24 Daniel Franke <franke.daniel@gmail.com>
19442 * doc/invoke.texi: Removed leading '-' from option index entries.
19444 2007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
19446 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
19448 (create_phi_node): Use set_phi_nodes.
19449 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
19450 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
19451 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
19452 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
19453 (bsi_start, bsi_last): Use bb_stmt_list.
19454 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
19455 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
19456 Traverse the statements using tsi iterator.
19457 * basic-block.h (struct basic_block_def): Fields stmt_list
19458 and phi_nodes moved to ...
19459 (struct tree_bb_info): ... new structure.
19460 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
19461 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
19462 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
19463 (tree_verify_flow_info): Verify that il.tree is not set for
19464 entry and exit block.
19465 (tree_split_block): Use set_bb_stmt_list.
19467 2007-04-23 Mike Stump <mrs@apple.com>
19469 * config/i386/i386.c (ix86_tune_features
19470 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
19473 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
19475 * config/i386/i386.md (prefix_extra): New attribute.
19476 (length): Add prefix_extra.
19478 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
19479 (sse2_movntv2di): Likewise.
19480 (sse2_cvtps2dq): Likewise.
19481 (sse2_cvtpd2pi): Likewise.
19482 (sse2_cvttpd2pi): Likewise.
19483 (*sse2_cvtpd2ps): Likewise.
19484 (*add<mode>3): Likewise.
19485 (sse2_ssadd<mode>3): Likewise.
19486 (sse2_usadd<mode>3): Likewise.
19487 (*sub<mode>3): Likewise.
19488 (sse2_sssub<mode>3): Likewise.
19489 (sse2_ussub<mode>3): Likewise.
19490 (*mulv8hi3): Likewise.
19491 (*smulv8hi3_highpart): Likewise.
19492 (*umulv8hi3_highpart): Likewise.
19493 (sse2_umulv2siv2di3): Likewise.
19494 (sse2_pmaddwd): Likewise.
19495 (ashr<mode>3): Likewise.
19496 (lshr<mode>3): Likewise.
19497 (ashl<mode>3): Likewise.
19498 (sse2_ashlti3): Likewise.
19499 (sse2_lshrti3): Likewise.
19500 (*umaxv16qi3): Likewise.
19501 (*smaxv8hi3): Likewise.
19502 (*uminv16qi3): Likewise.
19503 (*sminv8hi3): Likewise.
19504 (sse2_eq<mode>3): Likewise.
19505 (sse2_gt<mode>3): Likewise.
19506 (*and<mode>3): Likewise.
19507 (sse2_nand<mode>3): Likewise.
19508 (*ior<mode>3): Likewise.
19509 (*xor<mode>3): Likewise.
19510 (sse2_packsswb): Likewise.
19511 (sse2_packssdw): Likewise.
19512 (sse2_packuswb): Likewise.
19513 (sse2_punpckhbw): Likewise.
19514 (sse2_punpcklbw): Likewise.
19515 (sse2_punpckhwd): Likewise.
19516 (sse2_punpcklwd): Likewise.
19517 (sse2_punpckhdq): Likewise.
19518 (sse2_punpckldq): Likewise.
19519 (sse2_punpckhqdq): Likewise.
19520 (sse2_punpcklqdq): Likewise.
19521 (*sse2_pinsrw): Likewise.
19522 (*sse2_pextrw): Likewise.
19523 (sse2_pshufd_1): Likewise.
19524 (sse2_uavgv16qi3): Likewise.
19525 (sse2_uavgv8hi3): Likewise.
19526 (sse2_psadbw): Likewise.
19527 (sse2_pmovmskb): Likewise.
19528 (*sse2_maskmovdqu): Likewise.
19529 (*sse2_maskmovdqu_rex64): Likewise.
19530 (sse4a_extrqi): Likewise.
19531 (sse4a_extrq): Likewise.
19532 (sse3_lddqu): Set prefix_rep.
19533 (sse3_addsubv4sf3): Likewise.
19534 (sse3_haddv4sf3): Likewise.
19535 (sse3_hsubv4sf3): Likewise.
19536 (sse_cvtss2si): Likewise.
19537 (sse_cvtss2si_2): Likewise.
19538 (sse_cvtss2siq): Likewise.
19539 (sse_cvtss2siq_2): Likewise.
19540 (sse_cvttss2si): Likewise.
19541 (sse_cvttss2siq): Likewise.
19542 (sse2_cvttps2dq): Likewise.
19543 (sse3_movshdup): Likewise.
19544 (sse3_movsldup): Likewise.
19545 (sse2_cvtsd2si): Likewise.
19546 (sse2_cvtsd2si_2): Likewise.
19547 (sse2_cvtsd2siq): Likewise.
19548 (sse2_cvtsd2siq_2): Likewise.
19549 (sse2_cvttsd2si): Likewise.
19550 (sse2_cvttsd2siq): Likewise.
19551 (*sse2_cvtpd2dq): Likewise.
19552 (*sse2_cvttpd2dq): Likewise.
19553 (sse2_pshuflw_1): Likewise.
19554 (sse2_pshufhw_1): Likewise.
19555 (sse4a_insertqi): Likewise.
19556 (sse4a_insertq): Likewise.
19557 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
19558 (ssse3_phadddv4si3): Likewise.
19559 (ssse3_phaddswv8hi3): Likewise.
19560 (ssse3_phsubwv8hi3): Likewise.
19561 (ssse3_phsubdv4si3): Likewise.
19562 (ssse3_phsubswv8hi3): Likewise.
19563 (ssse3_pmaddubswv8hi3): Likewise.
19564 (ssse3_pmulhrswv8hi3): Likewise.
19565 (ssse3_pshufbv16qi3): Likewise.
19566 (ssse3_psign<mode>3): Likewise.
19567 (ssse3_palignrti): Likewise.
19568 (abs<mode>2): Likewise.
19569 (ssse3_phaddwv4hi3): Set prefix_extra.
19570 (ssse3_phadddv2si3): Likewise.
19571 (ssse3_phaddswv4hi3): Likewise.
19572 (ssse3_phsubwv4hi3): Likewise.
19573 (ssse3_phsubdv2si3): Likewise.
19574 (ssse3_phsubswv4hi3): Likewise.
19575 (ssse3_pmaddubswv4hi3): Likewise.
19576 (ssse3_pmulhrswv4hi3): Likewise.
19577 (ssse3_pshufbv8qi3): Likewise.
19578 (ssse3_psign<mode>3): Likewise.
19579 (ssse3_palignrdi): Likewise.
19580 (abs<mode>2): Likewise.
19581 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
19582 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
19583 (sse2_pmovmskb): Set mode to SI instead of V2DF.
19585 2007-04-23 Nick Clifton <nickc@redhat.com>
19587 * params.def: Fix formatting of emacs local variables.
19589 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
19591 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
19592 move if inter-unit move isn't allowed.
19593 Don't split moving the first element of V2DI to DI to inter-unit
19594 move if inter-unit move isn't allowed.
19596 2007-04-23 Richard Guenther <rguenther@suse.de>
19598 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
19599 and CDI_POST_DOMINATORS separately.
19601 2007-04-23 Nick Clifton <nickc@redhat.com>
19603 * c.opt (Wformat-contains-nul): Add warning attribute.
19605 2007-04-23 Jan Hubicka <jh@suse.cz>
19607 * function.c (init_function_start): Don't init line number info.
19608 (expand_function_end): Update.
19609 (reset_block_changes, record_block_change, finalize_block_changes,
19610 check_block_change, free_block_changes): Kill.
19611 * function.h (reset_block_changes, record_block_change,
19612 finalize_block_changes, check_block_change, free_block_changes):
19614 (struct function): Remove ib_boundaries_block.
19615 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
19616 Use curr_insn_locator to initialize locator.
19617 (emit_line_note): Remove.
19618 * cfgexpand.c (expand_gimple_cond_expr): Update.
19619 (construct_exit_block): Likewise.
19620 (tree_expand_cfg): Initialize/finalize locators.
19621 * expr.c (expand_expr_real): Update.
19622 * cfglayout.c (line_locators_locs, line_locators_lines,
19623 file_locators_locs, file_locators_files): Remove.
19624 (set_block_levels): Move to cfgexpand.c.
19625 (insn_locators_initialize): Remove.
19626 (pass_insn_locators_initialize): Remove.
19627 (locations_locators_locs, locations_locators_vals): New static vars.
19628 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
19630 (insn_locators_alloc, insn_locators_finalize,
19631 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19633 (locator_location): New.
19634 (locator_line, locator_file): Rewrite.
19635 * rtl.h (emit_line_note): Kill.
19636 (insn_locators_alloc, insn_locators_finalize,
19637 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19639 * tree-inline.c (initialize_cfun): Do not initialize
19640 ib_boundaries_block.
19641 * passes.c (pass_insn_locators_initialize): Remove.
19643 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
19645 PR middle-end/31448
19646 * expr.c (reduce_to_bit_field_precision): Handle
19649 2007-04-22 Uros Bizjak <ubizjak@gmail.com>
19651 PR tree-optimization/24659
19652 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
19653 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
19654 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
19655 * genopinit.c (optabs): Rename vec_pack_mod_optab
19656 to vec_pack_trunc_optab.
19657 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
19658 early for scalar floating point operands for NOP_EXPR.
19659 (vectorizable_type_promotion): Ditto.
19660 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
19661 vec_pack_trunc_optab.
19662 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
19664 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
19665 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
19666 Rename from VEC_PACK_MOD_EXPR.
19667 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
19668 * expr.c (expand_expr_real_1): Ditto.
19669 * tree-inline.c (estimate_num_insns_1): Ditto.
19670 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
19672 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
19673 (vec_unpacks_lo_v4sf): Ditto.
19674 (vec_pack_trunc_v2df): Ditto.
19675 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
19676 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
19677 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
19679 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
19681 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
19683 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
19684 Rename from VEC_PACK_MOD_EXPR. This expression also represent
19685 packing of floating point operands.
19686 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
19687 represent unpacking of floating point operands.
19688 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
19689 [vec_unpacks_hi]: Ditto.
19690 [vec_unpacks_lo]: Ditto.
19692 2007-04-22 Jan Hubicka <jh@suse.cz>
19694 * final.c (rest_of_handle_final): Call
19695 targetm.asm_out.constructor/targetm.asm_out.destructor
19696 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
19697 proper priority via decl_*_priority_insert.
19698 * c-common.c (c_expand_body): Likewise.
19700 2007-04-22 Richard Guenther <rguenther@suse.de>
19702 PR tree-optimization/29789
19703 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
19704 (rewrite_reciprocal): New helper split out from
19705 determine_invariantness_stmt.
19706 (rewrite_bittest): Likewise.
19707 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
19708 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
19711 2007-04-22 Revital Eres <eres@il.ibm.com>
19713 * loop-unroll.c (var_to_expand): New field to support also
19714 insns of the form x = something + x.
19715 (analyze_insn_to_expand_var): Use it.
19716 (expand_var_during_unrolling): Likewise.
19718 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
19720 * predict.c: Include pointer-set.h.
19721 (bb_predictions): New variable.
19722 (tree_predicted_by_p, tree_predict_edge,
19723 remove_predictions_associated_with_edge): Use bb_predictions map
19724 instead of bb->predictions.
19725 (clear_bb_predictions, assert_is_empty): New functions.
19726 (combine_predictions_for_bb): Use bb_predictions map. Call
19727 clear_bb_predictions.
19728 (tree_estimate_probability): Create and free bb_predictions map.
19729 * Makefile.in (predict.o): Add pointer-set.h dependency.
19730 * basic-block.h (struct basic_block_def): Remove predictions
19732 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
19734 2007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
19737 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
19740 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19742 * timevar.c (timevar_print): Change reference of --disable-checking to
19743 --enable-checking=release. Also warn if assert checking is disabled.
19745 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19748 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
19749 decl as addressable if the compound literal was marked as
19751 Mark the decl as a gimple register if it is a complex or
19752 vector decl and does not live in memory.
19754 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19756 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
19757 (GENERIC_NEXT): New function macro.
19758 (PHI_CHAIN): Use phi_node's new chain variable.
19759 (tree_phi_node): Change tree_common to tree_base
19760 and add the chain field.
19761 * tree-phinodes.c (make_phi_node): Don't set
19762 TREE_TYPE on the new node.
19763 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
19764 instead of checking GIMPLE_TUPLE_P in chain_next.
19765 * tree-vect-transform.c
19766 (get_initial_def_for_induction): Look at
19767 PHI_RESULT_TREE for the type of the phi node.
19768 (update_vuses_to_preheader): Use PHI_CHAIN
19769 instead of TREE_CHAIN on the phi node.
19770 * tree-ssa-structalias.c (compute_points_to_sets):
19772 (ipa_pta_execute): Likewise.
19774 2007-04-21 Richard Guenther <rguenther@suse.de>
19776 PR middle-end/31136
19777 * fold-const.c (fold_unary): Call fold_convert_const on the
19780 2007-04-21 Alexandre Oliva <aoliva@redhat.com>
19782 * gcse.c (store_killed_in_insn): Handle PARALLELs.
19783 (store_killed_in_pat): New.
19785 2007-04-20 Richard Henderson <rth@redhat.com>
19788 * config/i386/i386.c (type_has_variadic_args_p): Look for any
19789 TREE_LIST with a void_type_node value, not void_list_node exactly.
19791 2007-04-21 Douglas Gregor <doug.gregor@gmail.com>
19793 * doc/standards.texi: Re-arrange into language-specific
19794 subsections. Add a C++ section, documenting which standards we
19797 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
19799 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
19800 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
19802 2007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
19804 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
19805 ecrti.o and crtbegin.o.
19806 (LIB_DEFAULT_SPEC): Include -lc.
19807 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
19809 2007-04-20 Richard Henderson <rth@redhat.com>
19812 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
19813 argument; update all callers.
19814 (get_unaligned_offset): New.
19815 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
19816 get_unaligned_address, just pass on the address directly.
19817 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
19818 the subreg in the helper patterns.
19819 (unaligned_extendqidi_le): Use get_unaligned_offset.
19820 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
19821 (unaligned_extendhidi_be): Likewise.
19822 (unaligned_extendhidi): Tidy.
19823 * config/alpha/alpha-protos.h: Update.
19825 2007-04-20 Richard Henderson <rth@redhat.com>
19827 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
19828 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
19829 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
19830 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19831 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19832 (CPP_SPEC): Don't include %(cpp_subtarget).
19833 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
19834 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19835 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
19837 2007-04-20 Jakub Jelinek <jakub@redhat.com>
19839 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
19840 for __builtin_ia32_cmpordss.
19842 PR tree-optimization/31632
19843 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
19844 and arg1 for optimizations of comparison against min/max values.
19845 Fold arg0 to arg1's type for optimizations of comparison against
19846 min+1 and max-1 values.
19848 2007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
19850 * reload.c (combine_reloads): When trying to use a dying register,
19851 check whether it's uninitialized and don't use if so.
19853 2007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
19855 * fold-const.c: Remove prototypes for native_encode_expr and
19856 native_interpret_expr.
19857 (native_encode_expr): Make non-static.
19858 (native_interpret_expr): Likewise.
19859 * tree.h: Add prototypes for the above.
19861 2007-04-19 Joseph Myers <joseph@codesourcery.com>
19863 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
19864 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
19865 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
19866 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
19867 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
19868 Add length attributes.
19870 2007-04-19 Janis Johnson <janis187@us.ibm.com>
19872 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
19875 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
19876 __STDC_WANT_DEC_FP__.
19878 2007-04-19 Joseph Myers <joseph@codesourcery.com>
19880 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
19881 for long double compatibility.
19882 * configure: Regenerate.
19884 2007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
19886 PR rtl-optimization/29841
19887 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
19889 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
19890 that may cause control flow transfer from being moved.
19892 2007-04-18 Jan Hubicka <jh@suse.cz>
19894 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
19897 2007-04-18 Eric Christopher <echristo@apple.com>
19899 * config/rs6000/darwin.md (load_macho_picbase): Use link register
19900 only. Update operands.
19901 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
19902 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
19903 link register to pic register.
19905 2007-04-18 Dirk Mueller <dmueller@suse.de>
19907 PR diagnostic/31227
19908 * tree-vrp.c (search_for_addr_array): New.
19909 (check_array_bounds): Suppress warning about
19910 address taken of array refs if its not de-referenced.
19912 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19914 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
19915 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
19917 * tree-vectorizer.h (NITERS_KNOWN_P): New.
19918 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
19919 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
19921 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
19923 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
19925 (vect_analyze_scalar_cycles): Fix indentation.
19926 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
19927 (vect_mark_relevant): Include phis in relevance analysis.
19929 * tree-vect-transform.c (vect_transform_loop): Add an assert.
19931 2007-04-18 Anatoly Sokolov <aesok@post.ru>
19933 * config/avr/avr.c (ptrreg_to_str): Replace error() with
19934 output_operand_lossage().
19936 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19938 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
19939 the unused code for reduction without adjust-in-epilog to simplify the
19942 2007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
19944 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
19945 (S390_TDC_NEGATIVE_ZERO): New constant.
19946 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
19947 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
19948 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
19949 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
19950 (S390_TDC_POSITIVE_INFINITY): New constant.
19951 (S390_TDC_NEGATIVE_INFINITY): New constant.
19952 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
19953 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
19954 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
19955 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
19956 (S390_TDC_INFINITY): New constant.
19957 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
19958 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
19959 optimization for UNSPEC_CCZ_TO_INT.
19960 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
19961 ("*ccz_to_int"): New insn.
19962 ("isinf<mode>2"): New insn.
19963 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
19964 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
19965 (UNSPEC_CCZ_TO_INT): New constant.
19967 2007-04-18 Richard Guenther <rguenther@suse.de>
19969 PR tree-optimization/19431
19970 PR tree-optimization/21463
19971 * tree-pass.h (pass_phiprop): Declare.
19972 * passes.c (init_optimization_passes): New phiprop pass.
19973 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
19974 (phivn_valid_p): New helper function.
19975 (phiprop_insert_phi): Likewise.
19976 (propagate_with_phi): Likewise.
19977 (tree_ssa_phiprop): New propagator propagating loads
19978 through phi nodes if profitable.
19980 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19982 * tree-vect-analyze.c (process_use): New function.
19983 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
19984 Check phis in all bbs.
19985 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
19988 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
19990 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
19993 2007-04-17 Anatoly Sokolov <aesok@post.ru>
19996 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
19999 2007-04-17 H.J. Lu <hongjiu.lu@intel.com>
20001 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
20003 (sse_vmmulv4sf3): Likewise.
20004 (sse2_vmaddv2df3): Likewise.
20005 (sse2_vmmulv2df3): Likewise.
20007 2007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
20009 PR rtl-optimization/31360
20010 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
20011 (target_reg_cost): New.
20012 (init_set_costs): Initialize target_reg_cost. Add comments
20013 regarding the rationale of the costs.
20014 (global_cost_for_size): Renamed to...
20015 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
20016 of register pressure.
20017 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
20018 estimate_reg_pressure_cost. Add number of ivs.
20019 (determine_set_costs): Dump target_reg_cost.
20020 * loop-invariant.c (gain_for_invariant): Use
20021 estimate_reg_pressure_cost. Removed n_inv_uses argument.
20022 (best_gain_for_invariant, find_invariants_to_move): Remove
20024 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
20025 (target_reg_cost): Declare.
20026 (global_cost_for_size): Declaration removed.
20027 (estimate_reg_pressure_cost): Declare.
20029 2007-04-17 Peter Bergner <bergner@vnet.ibm.com>
20031 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
20032 regnos into even/odd register pairs.
20033 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
20034 TDmode similar to the other floating point modes.
20035 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
20036 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
20038 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
20039 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
20040 (movdd_hardfloat64): Use TARGET_MFPGPR.
20042 2007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
20044 * reload1.c (delete_output_reload): Don't count output in n_inherited.
20047 2005-01-05 Richard Henderson <rth@redhat.com>
20049 * reload1.c (do_input_reload): Restrict the optimization deleteing
20050 a previous output reload to RELOAD_FOR_INPUT.
20052 2007-04-17 Dorit Nuzman <dorit@il.ibm.com>
20054 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
20055 induc_vec_info_type.
20056 (vectorizable_induction): New function declaration.
20057 * tree-vect-transform.c (get_initial_def_for_induction): No need to
20058 check if already vectorized. Find first place in BB where new stmts
20059 can be inserted. Takes only one argument.
20060 (vectorizable_induction): New function.
20061 (vect_transform_stmt): Add case for induc_vec_info_type to call
20062 vectorizable_induction.
20063 (vect_transform_loop): Consider phis for vectorization.
20064 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
20066 (analyze_operations): Call vectorizable_induction when analyzing phis.
20068 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
20069 (vect_mark_relevant): Include phis in relevance analysis.
20070 (vect_mark_stmts_to_be_vectorize): Likewise.
20071 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
20073 2007-04-16 Lawrence Crowl <crowl@google.com>
20075 * doc/invoke.texi (Debugging Options): Add documentation for the
20076 -femit-struct-debug options -femit-struct-debug-baseonly,
20077 -femit-struct-debug-reduced, and
20078 -femit-struct-debug-detailed[=...].
20080 * c-opts.c (c_common_handle_option): Add
20081 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
20082 and OPT_femit_struct_debug_detailed_.
20083 * c.opt: Add specifications for
20084 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
20085 and -femit-struct-debug-detailed[=...].
20086 * opts.c (set_struct_debug_option): Parse the
20087 -femit-struct-debug-... options.
20088 * opts.c (matches_main_base, main_input_basename,
20089 main_input_baselength, base_of_path, matches_main_base): Add
20090 variables and functions to compare header base name to compilation
20092 * opts.c (should_emit_struct_debug): Add to determine to emit a
20093 structure based on the option.
20094 (dump_struct_debug) Also disabled function to debug this
20096 * opts.c (handle_options): Save the base name of the
20099 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
20100 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
20101 This hook indicates if a type is generic. Set it by default
20102 to "never generic".
20103 * langhooks.h (struct lang_hooks_for_types): Add a new hook
20104 to determine if a struct type is generic or not.
20105 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
20106 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
20107 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
20108 with live C++ hook.
20110 * flags.h (enum debug_info_usage): Add an enumeration to describe
20111 a program's use of a structure type.
20112 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
20113 to indicate the program's usage of the type. Filter structs based
20114 on the -femit-struct-debug-... specification.
20115 (gen_type_die): Split into two routines, gen_type_die and
20116 gen_type_die_with_usage. gen_type_die is now a wrapper
20117 that assumes direct usage.
20118 (gen_type_die_with_usage): Replace calls to gen_type_die
20119 with gen_type_die_with_usage adding the program usage of
20120 the referenced type.
20121 (dwarf2out_imported_module_or_decl): Suppress struct debug
20122 information using should_emit_struct_debug when appropriate.
20124 2007-04-16 Ian Lance Taylor <iant@google.com>
20126 PR tree-optimization/31522
20127 * tree-vrp.c (vr_phi_edge_counts): New static variable.
20128 (vrp_initialize): Allocate vr_phi_edge_counts.
20129 (vrp_visit_phi_node): Don't push to infinity if we saw a new
20130 executable edge. Drop test for all constants.
20131 (vrp_finalize): Free vrp_phi_edge_counts.
20133 * doc/cpp.texi (Common Predefined Macros): Clarify description of
20134 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
20136 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
20137 predecessors at head rather than tail.
20139 2007-04-16 Matthias Klose <doko@debian.org>
20141 * config/alpha/linux.h (CPP_SPEC): Define.
20142 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
20144 2007-04-16 Aldy Hernandez <aldyh@redhat.com>
20146 * function.h: Remove sequence_stack extern declaration.
20148 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
20150 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
20152 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
20155 2007-04-16 Anatoly Sokolov <aesok@post.ru>
20157 * config/avr/avr.c (avr_arch_types): Rearranging array.
20158 (enum avr_arch): Add.
20159 (avr_mcu_types): Use avr_arch enumeration constants instead of
20161 * config/avr/avr.h (LINK_SPEC): Simplify.
20163 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
20165 * config/m68k/m68k.c (m68k_libcall_value,
20166 m68k_function_value): Use macros for register names more.
20168 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
20170 (M68K_REGNAME): Use A6_REG.
20171 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
20173 2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
20175 PR middle-end/28071
20176 * sched-int.h (struct deps): Split field 'pending_lists_length' into
20177 'pending_read_list_length' and 'pending_write_list_length'. Update
20179 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
20180 to handle two length counters instead of one. Update all uses.
20181 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
20182 two length counters instead of one.
20183 * sched-rgn.c (propagate_deps): Update to handle two length counters
20186 2007-04-16 H.J. Lu <hongjiu.lu@intel.com>
20189 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
20190 copy of source, pass it to ix86_expand_vector_set and return
20193 2007-04-16 David Ung <davidu@mips.com>
20194 Joseph Myers <joseph@codesourcery.com>
20196 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
20197 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
20198 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
20199 Add 74K processor information.
20200 * config/mips/mips.md: Include 74k.md.
20201 (cpu): Add 74kc,74kf,74kx.
20202 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
20203 * config/mips/74k.md: New.
20204 * doc/invoke.texi (MIPS Options): Document 74K support.
20206 2007-04-16 Dorit Nuzman <dorit@il.ibm.com>
20208 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
20209 vectorizable_* functions.
20210 * tree-vect-transform.c (vectorizable_call): Add check for
20211 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
20212 (vectorizable_store): likewise.
20213 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
20215 (vectorizable_operation, vectorizable_type_demotion): Likewise.
20216 (vectorizable_type_promotion, vectorizable_load): Likewise.
20217 (vectorizable_live_operation, vectorizable_condition): Likewise.
20218 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
20220 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
20222 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
20224 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
20225 register numbers more.
20226 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
20227 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
20228 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
20229 FUNCTION_VALUE_REGNO_P): Likewise.
20230 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
20231 STATIC_CHAIN_REGNUM): Likewise.
20232 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
20233 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
20234 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
20235 * config/m68k/m68k.md (FP_REG): New.
20237 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
20239 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
20242 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
20244 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
20245 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
20248 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20250 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
20253 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
20256 * c-decl.c (finish_decl): Grab the type of the decl after the call
20257 to store_init_value.
20259 2007-04-14 Steven Bosscher <steven@gcc.gnu.org>
20261 * common.opt (fforward-propagate): Fix "Optimization" annotation.
20263 2007-04-14 Jakub Jelinek <jakub@redhat.com>
20266 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
20267 dominators, post dominators and cleanup cfg before returning.
20269 2007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
20271 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
20272 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
20274 2007-04-14 Kazu Hirata <kazu@codesourcery.com>
20276 * config.gcc: Recognize fido.
20277 * config/m68k/m68k-devices.def (fidoa): New.
20278 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
20280 (FL_FIDOA, TARGET_FIDOA): New.
20281 * config/m68k/m68k.opt (mfidoa): New.
20283 2007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20285 PR middle-end/31322
20286 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
20287 when a personality function is used.
20289 2007-04-13 Bob Wilson <bob.wilson@acm.org>
20291 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
20293 2007-04-13 Mike Stump <mrs@apple.com>
20295 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
20297 * config/darwin.opt (fapple-kext): Make C++ only.
20298 * config/darwin.c (darwin_override_options): Remove code to ensure
20299 -fapple-kext is given for C++ only.
20301 2007-04-13 Richard Sandiford <richard@codesourcery.com>
20303 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
20304 * config/mips/mips.c (override_options): Call
20305 SUBTARGET_OVERRIDE_OPTIONS, if defined.
20307 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
20309 * config/i386/i386.opt (msvr3-shlib): Removed.
20311 * doc/invoke.texi: Remove -msvr3-shlib.
20313 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
20315 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
20316 with "popcnt" instruction.
20318 2007-04-13 Richard Guenther <rguenther@suse.de>
20320 PR tree-optimization/21258
20321 * tree-vrp.c (compare_case_labels): New helper.
20322 (find_switch_asserts): New function.
20323 (find_assert_locations): Call it for SWITCH_EXPRs.
20325 2007-04-13 Uros Bizjak <ubizjak@gmail.com>
20327 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
20328 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
20329 check is now implied in X87_FLOAT_MODE_P.
20330 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
20331 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
20332 (fix_trunc<mode>_i386_fisttp): Ditto.
20333 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
20334 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
20335 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
20336 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
20337 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
20338 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
20339 (unnamed_splitters): Ditto.
20340 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
20341 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
20342 FIRST_SSE_REG for local functions when SSE math is enabled or
20343 for functions with sseregparm attribute.
20344 (standard_80387_constant_p): Return -1 if mode is not
20346 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
20347 (ix86_expand_compare): Ditto.
20348 (ix86_expand_carry_flag_compare): Ditto.
20349 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
20350 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
20351 DECIMAL_FLOAT_MODE_P.
20352 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
20353 of SCALAR_FLOAT_MODE_P.
20354 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
20355 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
20356 checks before FLOAT_MODE_P.
20357 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
20358 before FLOAT_MODE_P.
20363 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
20365 2007-04-12 Paolo Bonzini <bonzini@gnu.org>
20366 Charles Wilson <libtool@cwilson.fastmail.fm>
20368 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
20369 (libgcc.mvars): Don't depend on them.
20370 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
20371 * exec-tool.in: New.
20373 2007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
20375 * doc/invoke.text (--help): Document --help=common.
20377 2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
20379 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
20381 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20383 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
20384 * genemit.c (main): Emit #include "integrate.h".
20385 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
20386 (LOADGP_RTP): New mips_loadgp_style.
20387 * config/mips/mips.h: Include config/vxworks-dummy.h.
20388 (TARGET_RTP_PIC): New macro.
20389 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
20390 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
20391 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
20392 for TARGET_RTP_PIC.
20393 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
20394 -mvxworks-pic when using -mrtp and a PIC option.
20395 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
20397 (mips_symbolic_constant_p, mips_symbolic_address_p)
20398 (mips_symbol_insns): Handle SYMBOL_HALF.
20399 (override_options): Warn about -G and -mrtp being used together.
20400 Initialize mips_lo_relocs[SYMBOL_HALF].
20401 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
20402 (mips_emit_loadgp): Handle LOADGP_RTP.
20403 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
20404 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
20405 (tablejump): Handle function-relative case table entries if
20407 * config/mips/predicates.md (symbol_ref_operand): New predicate.
20409 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20411 * config/mips/mips.md (load_call<mode>): Allow any general register.
20413 (sibcall_value_internal, sibcall_value_multiple_internal)
20414 (call_value_internal, call_value_split, call_value_multiple_internal)
20415 (call_value_multiple_split): Remove constraints from operand 0.
20417 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20419 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
20420 rather than loadgp_noshared.
20421 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
20422 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
20424 * config/mips/mips.md (loadgp): Rename to...
20425 (loadgp_newabi): ...this.
20426 (loadgp_noshared): Rename to...
20427 (loadgp_absolute): ...this.
20429 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20431 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
20432 false for locally-binding symbols.
20433 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
20435 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20437 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
20438 (SYMBOL_GOT_PAGE_OFST): ...this.
20439 (SYMBOL_GOT_GLOBAL): Rename to...
20440 (SYMBOL_GOT_DISP): ...this.
20441 (SYMBOL_GOTOFF_GLOBAL): Rename to...
20442 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
20443 * config/mips/mips.c (mips_global_symbol_p): New function.
20444 (mips_symbol_binds_local_p): Likewise.
20445 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
20446 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use
20447 mips_global_symbol_p and mips_symbol_binds_local_p.
20448 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
20449 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
20450 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
20451 SYMBOL_GOTOFF_DISP.
20452 (mips_ok_for_lazy_binding_p): New function.
20453 (mips_load_call_address, mips_expand_call): Use it.
20454 (mips_dangerous_for_la25_p): Likewise.
20455 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
20456 (*got_disp<mode>): Use got_disp_operand instead of
20457 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
20458 SYMBOL_GOTOFF_GLOBAL.
20459 (*got_page<mode>): Use got_page_ofst_operand instead of
20461 * config/mips/predicates.md (const_call_insn_operand): Use
20462 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
20463 (global_got_operand): Rename to...
20464 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
20466 (local_got_operand): Rename to...
20467 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
20468 of SYMBOL_GOT_LOCAL.
20470 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20472 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
20473 TARGET_CALL_CLOBBERED_GP.
20474 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20475 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
20476 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
20477 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
20478 of TARGET_ABICALLS && !TARGET_NEWABI.
20479 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20480 * config/mips/mips.c (mips_load_call_address): Check
20481 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
20482 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20483 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
20484 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
20485 TARGET_ABICALLS && TARGET_NEWABI.
20486 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
20488 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
20489 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
20490 TARGET_ABICALLS && TARGET_NEWABI.
20491 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
20492 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
20493 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
20494 whether indirect calls must use $25.
20495 (mips_extra_live_on_entry): Check TARGET_GOT instead of
20497 * config/mips/mips.md (jal_macro): Check flag_pic and
20498 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
20499 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
20500 instead of TARGET_ABICALLS.
20501 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
20502 TARGET_ABICALLS && TARGET_OLDABI.
20503 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20504 (sibcall): In the comment above the define_insn, mention
20505 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
20506 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
20507 instead of TARGET_ABICALLS.
20509 2007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
20511 * doc/md.texi (Blackfin family constraints): Document PA and PB.
20512 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
20513 (MACFLAGS_MATCH_P): New macro.
20514 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
20515 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
20516 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
20517 the other MACFLAG constants.
20518 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
20519 (flag_machi): Tighten constraints. Renumber some of the operands.
20520 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
20522 (flag_machi_parts_acconly): New pattern.
20523 (flag_macinithi): Tighten constraints. Allow any accumulator to be
20525 (flag_macinit1hi): Tighten constraints.
20526 (flag_mul_macv2hi_parts_acconly): New pattern.
20528 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
20529 Use a more efficient implementation.
20530 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
20531 inline sequences when not optimizing for size.
20533 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
20534 movhi_high2low): Delete, merge functionality into...
20535 (packv2hi): ... this pattern.
20537 2007-02-11 Jie Zhang <jie.zhang@analog.com>
20538 * config/bfin/bfin.opt (msim): New option.
20539 (mcpu=): New option.
20540 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
20541 (bfin_cpu_t): Typedef of enum bfin_cpu.
20542 (bfin_cpu_type): New declaration.
20543 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
20544 -msim and -mcpu= options.
20545 (LIB_SPEC): Likewise.
20546 * config/bfin/bfin.c (bfin_cpu_type): Define.
20547 (bfin_handle_option): Handle -mcpu= option.
20548 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
20549 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
20550 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
20552 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20554 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
20555 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
20556 (powerpc-wrs-vxworksae): Use ${tm_file}.
20557 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
20558 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
20559 * config/i386/vx-common.h: New file.
20561 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20563 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
20566 2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
20568 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
20571 2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
20575 * c-common.c (c_build_qualified_type): Set canonical type
20578 2007-04-12 Richard Guenther <rguenther@suse.de>
20580 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
20581 lower bound and element size if lower bound is not zero
20582 or either of the ARRAY_REF operands is set.
20584 2007-04-12 Richard Guenther <rguenther@suse.de>
20586 PR tree-optimization/24689
20587 PR tree-optimization/31307
20588 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
20590 * gimplify.c (canonicalize_addr_expr): To be consistent with
20591 gimplify_compound_lval only set operands two and three of
20592 ARRAY_REFs if they are not gimple_min_invariant. This makes
20593 it never at this place.
20594 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
20596 2007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20598 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
20599 null before emitting a .nsubspa directive.
20601 2007-04-11 Diego Novillo <dnovillo@redhat.com>
20603 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
20604 need_to_partition_p if there are no memory statements in the
20607 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20609 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
20610 (gcd_of_steps_may_divide_p): New function.
20611 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
20613 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
20615 * reload.c (find_reloads_toplev, find_reloads_address,
20616 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
20617 not a pointer equality test, to decide if we need to call
20618 push_reg_equiv_alt_mem.
20620 2007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
20622 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
20623 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
20625 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
20627 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20629 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
20630 vector to be positive.
20632 2007-04-11 Diego Novillo <dnovillo@redhat.com>
20636 * doc/invoke.texi: Document --params max-aliased-vops and
20638 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
20639 debug_memory_partitions): Move to tree-flow.h
20640 * params.h (AVG_ALIASED_VOPS): Define.
20641 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
20643 (mp_info_t): Likewise.
20644 (get_mem_sym_stats_for): New.
20645 (set_memory_partition): Move from tree-flow-inline.h.
20646 (mark_non_addressable): Only clear the set of symbols for the
20647 partition if it exists.
20648 (dump_memory_partitions): Move from tree-ssa-operands.c
20649 (debug_memory_partitions): Likewise.
20650 (need_to_partition_p): New.
20651 (dump_mem_ref_stats): New.
20652 (debug_mem_ref_stats): New.
20653 (dump_mem_sym_stats): New.
20654 (debug_mem_sym_stats): New.
20655 (update_mem_sym_stats_from_stmt): New.
20656 (compare_mp_info_entries): New.
20657 (mp_info_cmp): Call it.
20658 (sort_mp_info): Change argument to a list of mem_sym_stats_t
20660 (get_mpt_for): Move from tree-ssa-operands.c.
20661 (find_partition_for): New.
20662 (create_partition_for): Remove.
20663 (estimate_vop_reduction): New.
20664 (update_reference_counts): New.
20665 (build_mp_info): New.
20666 (compute_memory_partitions): Refactor.
20667 Document new heuristic.
20668 Call build_mp_info, update_reference_counts,
20669 find_partition_for and estimate_vop_reduction.
20670 (compute_may_aliases): Populate virtual operands before
20671 calling debugging dumps.
20672 (delete_mem_sym_stats): New.
20673 (delete_mem_ref_stats): New.
20674 (init_mem_ref_stats): New.
20675 (init_alias_info): Call it.
20676 (maybe_create_global_var): Remove alias_info argument.
20677 Get number of call sites and number of pure/const call sites
20678 from gimple_mem_ref_stats().
20679 (dump_alias_info): Call dump_memory_partitions first.
20680 (dump_points_to_info_for): Show how many times a pointer has
20682 * opts.c (decode_options): For -O2 set --param
20683 max-aliased-vops to 500.
20684 For -O3 set --param max-aliased-vops to 1000 and --param
20685 avg-aliased-vops to 3.
20686 * fortran/options.c (gfc_init_options): Remove assignment to
20688 * tree-flow-inline.h (gimple_mem_ref_stats): New.
20689 * tree-dfa.c (dump_variable): Dump memory reference
20691 Dump NO_ALIAS* settings.
20692 (referenced_var_lookup): Tidy.
20693 (mem_sym_stats): New.
20694 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
20695 and ORIG are different SSA names for a memory partition.
20696 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
20697 * tree-flow.h (struct mem_sym_stats_d): Define.
20698 (mem_sym_stats_t): Define.
20699 (struct mem_ref_stats_d): Define.
20700 (struct gimple_df): Add field mem_ref_stats.
20701 (enum noalias_state): Define.
20702 (struct var_ann_d): Add bitfield noalias_state.
20703 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
20704 debug_mem_ref_stats, debug_memory_partitions,
20705 debug_mem_sym_stats): Declare.
20706 * tree-ssa-structalias.c (update_alias_info): Update call
20707 sites, pure/const call sites and asm sites in structure
20708 returned by gimple_mem_ref_stats.
20709 Remove local variable IS_POTENTIAL_DEREF.
20710 Increase NUM_DEREFS if the memory expression is a potential
20712 Call update_mem_sym_stats_from_stmt.
20713 If the memory references memory, call
20714 update_mem_sym_stats_from_stmt for all the direct memory
20715 symbol references found.
20716 (intra_create_variable_infos): Set noalias_state field for
20717 pointer arguments according to the value of
20718 flag_argument_noalias.
20719 * tree-ssa-structalias.h (struct alias_info): Remove fields
20720 num_calls_found and num_pure_const_calls_found.
20721 (update_mem_sym_stats_from_stmt): Declare.
20722 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
20723 Set default value to 100.
20724 (PARAM_AVG_ALIASED_VOPS): Define.
20726 2007-04-11 Richard Guenther <rguenther@suse.de>
20728 PR middle-end/31530
20729 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
20730 a * -b + c as c - a * b if we honor sign dependent rounding.
20732 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
20734 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
20735 bfin_expand_strmov.
20736 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
20737 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
20739 (initialize_trampoline): Don't use old-style function definition.
20740 (bfin_secondary_reload): Mark IN_P argument as unused.
20742 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
20744 PR tree-optimization/31343
20745 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
20746 (build_polynomial_chrec): Return a scalar when the evolution is zero.
20747 * testsuite/gcc.dg/vect/pr31343.c: New.
20749 2007-04-10 Eric Christopher <echristo@apple.com>
20751 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
20752 * config/i386/i386.md (*cmpfp0): Use.
20753 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
20754 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
20755 (fix_trunc<mode>_i386_fisttp): Ditto.
20756 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
20757 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
20758 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
20759 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
20760 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
20761 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
20762 (unnamed_splitters): Ditto.
20763 * config/i386/i386.c (output_fix_trunc): Assert that
20764 we're not being passed a TFmode operand.
20766 2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
20768 PR tree-optimization/31526
20769 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
20770 n_basic_blocks to find newly added blocks.
20772 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
20774 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
20776 (fix_trunc<mode>si_sse): Ditto.
20777 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
20778 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
20779 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
20780 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
20781 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
20782 expander using SSEMODEF mode macro.
20783 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
20784 expander using SSEMODEF mode macro.
20785 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
20786 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
20787 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
20788 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
20789 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
20790 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
20791 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
20792 Macroize insn using X87MODEF mode macro.
20794 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
20796 * config/i386/sse.md (sse2_pinsrw): Removed.
20797 (sse2_pextrw): Renamed to ...
20798 (*sse2_pextrw): This.
20800 2007-04-09 Jan Hubicka <jh@suse.cz>
20803 * config/i386/sse.md
20804 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
20805 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
20806 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
20807 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
20809 2007-04-09 Jan Hubicka <jh@suse.cz>
20811 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
20812 multiple fields of union.
20814 2007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
20816 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
20817 (create_preheaders): Check that loops are available.
20818 (fix_loop_structure): Clean up, improve comments.
20819 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
20820 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
20822 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
20823 * predict.c (tree_estimate_probability): Do not call
20824 calculate_dominance_info. Call create_preheaders.
20825 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
20826 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
20828 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
20829 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
20830 * tree-cfg.c (tree_split_edge): Make an assert more precise.
20831 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
20834 2007-04-08 Jan Hubicka <jh@suse.cz>
20836 * tree.h (maybe_fold_offset_to_component_ref): Declare.
20837 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
20838 * fold-const.c (fold_unary): Use it.
20840 2007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
20842 * varasm.c (assemble_variable): Remove call to
20843 lang_hooks.decls.prepare_assemble_variable.
20844 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
20845 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
20846 * langhooks.h (lang_hooks_for_decls): Remove
20847 prepare_assemble_variable.
20849 2007-04-08 Mike Stump <mrs@apple.com>
20851 * config/i386/i386.c: Use inc/dec on Core2.
20853 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
20855 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
20856 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
20857 lhd_tree_inlining_end_inlining): Remove.
20858 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
20859 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
20860 end_inlining hooks.
20861 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
20862 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
20863 lhd_tree_inlining_end_inlining): Remove prototypes.
20864 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
20865 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
20866 LANG_HOOKS_TREE_INLINING_START_INLINING,
20867 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
20869 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
20872 2007-04-08 Anatoly Sokolov <aesok@post.ru>
20875 * config/avr/predicates.md (io_address_operand): Delete predicate.
20876 (low_io_address_operand): Don't use 'mode' argument.
20877 (higth_io_address_operand): Rename ...
20878 (high_io_address_operand): ... to this. Don't use 'mode' argument.
20879 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
20882 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
20884 Revert change removing staticp.
20886 2007-04-07 Anatoly Sokolov <aesok@post.ru>
20889 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
20892 2007-04-07 Bruce Korb <bkorb@gnu.org>
20894 * c.opt: Add -Wformat-contains-nul.
20895 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
20897 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
20898 the NUL byte warning.
20900 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
20902 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
20904 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
20906 * tree.c (staticp): No longer use staticp langhook.
20907 * langhooks.c (lhd_staticp): Removed.
20908 * langhooks.h (struct lang_hooks): Remove staticp.
20909 * c-common.c (c_staticp): Remove.
20910 * c-common.h (c_staticp): Ditto.
20911 * langhooks-defs.h (lhd_staticp): Ditto.
20912 (LHD_HOOKS_STATICP): Ditto
20913 * tree.h (gcc_assert_lowered): New macro.
20915 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
20917 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
20918 argument "reliable".
20919 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
20920 Add argument "reliable". Propagate it through calls.
20921 (infer_loop_bounds_from_undefined): Derive number of iterations
20922 estimates from references in blocks that do not dominate loop latch.
20923 (gcov_type_to_double_int): New function.
20924 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
20925 and expected_loop_iterations_unbounded.
20926 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
20927 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
20928 * tree-data-ref.c (estimated_loop_iterations): Export.
20929 (get_references_in_stmt): Fix -- do not return addresses of local
20931 * cfgloop.h (expected_loop_iterations_unbounded,
20932 estimated_loop_iterations): Declare.
20934 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
20936 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
20938 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
20940 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
20941 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
20942 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
20943 Use output_387_reg_move().
20944 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
20945 expander using X87MODEF12 mode macro.
20946 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
20947 choosing register preferences. Use output_387_reg_move().
20948 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
20949 instead of "x". Use output_387_reg_move().
20950 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
20951 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
20952 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
20953 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
20954 Use output_387_reg_move().
20955 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
20957 (*truncxf?f_i387 splitter): Ditto.
20959 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
20961 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
20962 LANG_HOOKS_SAFE_FROM_P.
20963 * expr.c (safe_from_p): Remove langhook call.
20964 * langhooks.h (lang_hooks): Remove safe_from_p.
20965 (lhd_safe_from_p): Remove prototype.
20966 * langhooks.c (lhd_safe_from_p): Remove.
20968 2007-04-06 Jan Hubicka <jh@suse.cz>
20970 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
20973 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
20975 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
20976 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
20977 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
20978 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
20980 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
20981 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
20983 2007-04-05 Richard Henderson <rth@redhat.com>
20985 * config/alpha/alpha.c (print_operand) [+]: Remove.
20986 (alpha_end_function): Print nop if call at end of function.
20987 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
20988 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
20989 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
20990 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
20991 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
20992 the call pattern. Update peepholes to match.
20994 2007-04-05 Janis Johnson <janis187@us.ibm.com>
20996 * doc/extend.texi (Other Builtins): Add decimal float variants
20998 * builtins.def: Ditto.
20999 * builtins.c (expand_builtin): Ditto.
21001 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
21002 H.J. Lu <hongjiu.lu@intel.com>
21005 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
21006 of V8HImode when calling ix86_binary_operator_ok.
21007 (sse2_pmaddwd): Call ix86_binary_operator_ok.
21008 (sdot_prodv8hi): Operands 1 and 2 must be register.
21010 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
21012 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
21013 initialize align to silence bogus warning.
21015 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
21017 PR middle-end/22156
21018 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
21020 (struct sra_walk_fns): Remove use_all parameter from use.
21021 (sra_hash_tree): Handle BIT_FIELD_REFs.
21022 (sra_elt_hash): Don't hash bitfld blocks.
21023 (sra_elt_eq): Skip them in parent compares as well. Handle
21025 (sra_walk_expr): Don't maintain or pass down use_all_p.
21026 (scan_use): Remove use_all parameter.
21027 (scalarize_use): Likewise. Re-expand assignment to
21028 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
21029 output, and re-scalarize after output. Don't mark anything
21031 (scalarize_ldst): Adjust.
21032 (scalarize_walk_gimple_modify_statement): Likewise.
21033 (build_element_name_1): Handle BIT_FIELD_REFs.
21034 (instantiate_element): Don't warn for any element whose parent
21035 is used as a whole.
21036 (instantiate_missing_elements_1): Return the sra_elt.
21037 (canon_type_for_field): New.
21038 (try_instantiate_multiple_fields): New.
21039 (instantiate_missing_elemnts): Use them.
21040 (mark_no_warning): Removed.
21041 (generate_one_element_ref): Handle BIT_FIELD_REFs.
21042 (REPLDUP, sra_build_elt_assignment): New.
21043 (generate_copy_inout): Use them.
21044 (generate_element_copy): Likewise. Handle bitfld differences.
21045 (generate_element_zero): Don't recurse for blocks. Use
21046 sra_build_elt_assignment.
21047 (generate_one_element_int): Take elt instead of var. Use
21048 sra_build_elt_assignment.
21049 (generate_element_init_1): Adjust.
21050 (scalarize_use, scalarize_copy): Use REPLDUP.
21051 (scalarize_ldst): Move assert before dereference.
21052 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
21054 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
21056 * regmove.c: Fix unused variable warnings due to previous commit.
21058 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
21060 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
21061 (regmove_bb_head): Remove.
21062 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
21063 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
21064 problems with fixup_match_1.
21065 Don't initialize/free regmove_bb_head.
21067 (reg_is_remote_constant_p): If an insn is in the same basic block
21068 but not before INSN, consider it remote, too.
21070 2007-04-05 Anatoly Sokolov <aesok@post.ru>
21073 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
21074 DECL_ASSEMBLER_NAME, not the DECL_NAME.
21076 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
21078 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
21079 (CONDITIONAL_REGISTER_USAGE): Likewise.
21081 2007-04-04 Richard Henderson <rth@redhat.com>
21083 * config/alpha/lib1funcs.asm: Remove unused file.
21085 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
21088 * opts.c (print_specific_help): Fix --help=<language>
21090 (common_handle_option): Support --help=common.
21092 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
21095 * gcc.c (main): Do not run the linker if
21096 print_subprocess_help indicates that it shouldn't be
21099 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
21102 * doc/invoke.texi (--help=): Document <languages> value, fix
21103 formatting in tables of values.
21105 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
21107 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
21108 dllimport attribute of virtual methods.
21110 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
21112 * config/score/crti.asm: Change _bss_start to __bss_start.
21113 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
21114 (OUTGOING_REG_PARM_STACK_SPACE) update.
21115 * config/score/score.opt: add options to make backend support
21116 score5, score5u, score7 and score7d.
21117 * config/score/score.md: Likewise.
21118 * config/score/misc.md: Likewise.
21119 * config/score/mac.md: Likewise.
21120 * doc/invoke.texi: Likewise.
21121 * doc/md.texi: update constraints define.
21123 2007-04-03 Richard Henderson <rth@redhat.com>
21125 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
21126 an appropriate type, use the mode instead.
21128 2007-04-03 Richard Sandiford <richard@codesourcery.com>
21130 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
21131 Set the default --with-arch setting to mips2.
21132 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
21133 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
21134 (MULTILIB_OSDIRNAMES): Delete.
21135 (MULTILIB_DIRNAMES): Define.
21136 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
21137 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
21138 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
21139 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
21140 VXWORKS_OS_CPP_BUILTINS.
21141 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
21142 (MIPS_DEBUGGING_INFO): Undefine.
21143 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
21145 2007-04-03 Jakub Jelinek <jakub@redhat.com>
21147 PR middle-end/30704
21148 * fold-const.c (native_encode_real): Encode real.c provided longs
21149 as a series of 32-bit native integers.
21150 (native_interpret_real): Interpret buffer as a series of 32-bit
21153 2007-04-03 Richard Guenther <rguenther@suse.de>
21155 * genpreds.c (write_insn_constraint_len): Write function
21156 optimized for CONSTRAINT_LEN implementation.
21157 (write_tm_preds_h): Output insn_constraint_len inline and
21158 use it for CONSTRAINT_LEN.
21159 (write_insn_preds_c): Don't output insn_constraint_len.
21160 * doc/md.texi (define_register_constraint): Document multi-letter
21161 constraints shall have the same length if they start with the same
21164 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
21167 * config/i386/i386.md (isinf<mode>2): Expand only when
21168 TARGET_C99_FUNCTIONS is set.
21170 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
21172 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
21173 (x86_64-*-linux*): Ditto.
21174 * config/i386/i386.opt (mpc): New option.
21175 * config/i386/i386.c (overrride_options): Handle
21176 ix87_precision_string.
21177 * config/i386/crtprec.c: New file.
21178 * config/i386/t-crtpc: Ditto.
21179 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
21180 and -mpc80 options.
21181 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
21182 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
21183 crtprec32.o, crtprec64.o and crtprec80.o.
21185 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
21186 and -mpc80 options.
21187 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
21189 2007-04-02 Eric Christopher <echristo@apple.com>
21191 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
21192 limitations on darwin.
21194 2007-04-02 Anatoly Sokolov <aesok@post.ru>
21197 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
21199 2007-04-02 Dave Korn <dave.korn@artimi.com>
21201 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
21203 2007-04-02 Dave Korn <dave.korn@artimi.com>
21205 * libgcc2.h (exception_descriptor): Don't forward-declare.
21206 (__get_eh_table_language, __get_eh_table_version): Delete
21207 prototypes of long-dead functions.
21209 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
21211 * ebitmap.h: New file
21212 * ebitmap.c: New file
21213 * Makefile.in (ebitmap.o): New target.
21215 2007-04-01 Jan Hubicka <jh@suse.cz>
21217 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
21218 before very first instruction.
21220 2007-04-01 Jan Hubicka <jh@suse.cz>
21222 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
21223 waring on 64bit hosts.
21224 * bitmap.h: Fix typo in bitmap_head_def.
21226 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
21228 PR rtl-optimization/31391
21229 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
21230 into a DELETED_LABEL note, and the label is in an empty basic
21231 block, update BB_END as well as BB_HEAD.
21233 2007-04-01 Richard Henderson <rth@redhat.com>
21235 PR tree-optimization/31169
21236 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
21237 to varying if the range is outside [0, prec-1].
21239 2007-04-01 Richard Sandiford <richard@codesourcery.com>
21242 * config/mips/mips.md (load_const_gp): New insn.
21243 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
21244 the MIPS16 GP pseudo register if no_new_pseudos.
21245 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
21247 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
21250 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
21252 (call_value): Likewise.
21254 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
21255 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21258 * doc/invoke.texi: (optimization options): Reword description
21259 of -ffast-math. Document its primary purpose.
21261 2007-03-31 Richard Guenther <rguenther@suse.de>
21263 * omp-low.c (splay-tree.h): Include.
21264 (lookup_decl): Replace splay-tree usage by pointer-map.
21265 (maybe_lookup_decl): Likewise.
21266 (new_omp_context): Likewise.
21267 (delete_omp_context): Likewise.
21268 * gimplify.c (splay-tree.h): Include.
21269 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
21271 (remap_ssa_name): Likewise.
21272 (remap_decl): Likewise.
21273 (remap_type_1): Likewise.
21274 (remap_type): Likewise.
21275 (copy_body_r): Likewise.
21276 (expand_call_inline): Likewise.
21277 (clone_body): Likewise.
21278 (copy_tree_r): Likewise.
21279 (remap_save_expr): Likewise.
21280 (unsave_r): Likewise.
21281 (unsave_expr_now): Likewise.
21282 (tree_function_versioning): Likewise.
21283 (build_duplicate_type): Likewise.
21284 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
21285 (struct copy_body_data): Replace splay-tree by pointer-map.
21286 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
21287 not $(SPLAY_TREE_H).
21288 (gimplify.o): Depend on $(SPLAY_TREE_H).
21289 (omp-low.p): Likewise.
21291 2007-03-31 Anatoly Sokolov <aesok@post.ru>
21293 * config/avr/predicates.md (even_register_operand,
21294 odd_register_operand): New predicates.
21295 * config/avr/avr.md (movw peephole2): New.
21296 (movw_r peephole2): New.
21298 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
21300 * tree.h (get_signed_or_unsigned_type): New.
21301 * fold-const.c (operand_equal_for_comparison_p): Use
21302 get_signed_or_unsigned_type instead of
21303 lang_hooks.types.signed_or_unsigned_type.
21304 * expr.c (store_expr): Ditto.
21305 * langhooks.c (get_signed_or_unsigned_type): New.
21306 (lhd_signed_or_unsigned_type): New.
21307 * langhooks.h (lhd_signed_or_unsigned_type): New.
21308 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
21310 2007-03-30 Richard Henderson <rth@redhat.com>
21312 * tree-ssa-loop-ivopts.c: Include target.h.
21313 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
21314 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
21315 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
21316 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
21318 2007-03-30 Richard Henderson <rth@redhat.com>
21319 Kai Tietz <kai.tietz@onevision.com>
21321 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
21322 default for 64-bit.
21323 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
21324 (TARGET_64BIT_MS_ABI): New.
21325 (DBX_REGISTER_NUMBER): Handle 64-bit.
21326 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
21327 (LONG_TYPE_SIZE): Force to 32.
21328 (REG_PARM_STACK_SPACE): New.
21329 (OUTGOING_REG_PARM_STACK_SPACE): New.
21330 (REGPARM_MAX, SSE_REGPARM_MAX): New.
21331 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
21332 (STACK_BOUNDARY): Use 128 for 64-bit.
21333 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
21334 Add 64-bit implementation.
21335 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
21337 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
21338 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
21339 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
21340 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
21341 (ix86_handle_cconv_attribute): Don't warn when ignoring if
21342 TARGET_64BIT_MS_ABI.
21343 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
21344 (ix86_pass_by_reference): Likewise.
21345 (ix86_function_value_regno_p): Likewise.
21346 (ix86_build_builtin_va_list): Likewise.
21347 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
21348 (function_arg_advance_ms_64): New.
21349 (function_arg_advance): Call it.
21350 (function_arg_ms_64): New.
21351 (function_arg): Call it.
21352 (function_value_ms_64): New.
21353 (ix86_function_value_1): Call it.
21354 (return_in_memory_ms_64): New.
21355 (ix86_return_in_memory): Call it.
21356 (setup_incoming_varargs_ms_64): New.
21357 (ix86_setup_incoming_varargs): Call it.
21358 (ix86_expand_prologue): Handle 64-bit stack probing.
21359 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
21360 (output_pic_addr_const): Likewise.
21361 (x86_this_parameter): Likewise.
21362 (x86_output_mi_thunk): Likewise.
21363 (x86_function_profiler): Likewise.
21364 (TARGET_STRICT_ARGUMENT_NAMING): New.
21365 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
21366 (TARGET_64BIT_MS_ABI): New.
21367 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
21368 * config/i386/i386.md (allocate_stack_worker): Remove.
21369 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
21370 describe the clobber of eax without a match_scratch.
21371 (allocate_stack_worker_postreload): Remove.
21372 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
21373 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
21374 (allocate_stack_worker_rex64_postreload): Remove.
21375 (allocate_stack): Handle 64-bit.
21376 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
21377 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
21378 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
21379 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
21380 (STANDARD_STARTFILE_PREFIX_1): Likewise.
21381 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
21382 * config.build (x86_64-*-mingw*): New host.
21383 * config.host (x86_64-*-mingw*): New host.
21384 * config.gcc (x86_64-*-mingw*): New target.
21385 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
21387 2007-03-30 Richard Henderson <rth@redhat.com>
21388 Kai Tietz <kai.tietz@onevision.com>
21390 * c-pragma.c (struct def_pragma_macro_value): New.
21391 (struct def_pragma_macro): New.
21392 (pushed_macro_table): New.
21393 (dpm_hash, dpm_eq): New.
21394 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
21395 (init_pragma): Install them.
21396 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
21398 2007-03-30 Anatoly Sokolov <aesok@post.ru>
21400 * config/avr/avr.c (avr_override_options): Clear
21401 'flag_delete_null_pointer_checks'.
21403 2007-03-30 Paolo Carlini <pcarlini@suse.de>
21406 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
21407 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
21408 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
21409 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
21410 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
21411 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
21412 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
21414 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
21416 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
21418 * regmove.c: Move all of pass_stack_adjustments from here...
21419 * combine-stack-adj.c: ...to this new file.
21420 * Makefile.in: Add rules for combine-stack-adj.o.
21422 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
21424 PR tree-optimization/31383
21425 * tree-data-ref.c (affine_function_equal_p): Do not require the
21426 vectors to have the same length.
21428 2007-03-30 Jan Hubicka <jh@suse.cz>
21430 PR middle-end/30700
21431 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
21432 availablility; add more sanity checking; ask varpool only about
21435 2007-03-29 Richard Henderson <rth@redhat.com>
21437 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
21438 to decide, but __SIZEOF_LONG_LONG__.
21440 2007-03-29 Richard Henderson <rth@redhat.com>
21442 * emutls.c (struct __emutls_array): New.
21443 (emutls_destroy): Use it instead of casting element 0 from void*.
21444 (__emutls_get_address): Likewise.
21446 2007-03-29 Richard Henderson <rth@redhat.com>
21448 * varasm.c (initializer_constant_valid_p): Don't deny
21449 DECL_DLLIMPORT_P on functions.
21451 * config/i386/cygming.h: Remove function declarations.
21452 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
21453 (ASM_OUTPUT_LABELREF): Remove.
21454 (COMMON_ASM_OP): Remove.
21455 (ASM_OUTPUT_COMMON): Remove.
21456 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21457 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
21458 (ASM_DECLARE_FUNCTION_NAME): Likewise.
21459 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
21460 Rename from TARGET_ENCODE_SECTION_INFO.
21461 * config/i386/netware.h: Likewise.
21462 * config/i386/i386-protos.h: Update.
21463 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
21464 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
21465 (legitimate_constant_p): Reject dllimports.
21466 (dllimport_map, get_dllimport_decl): New.
21467 (legitimize_dllimport_symbol): New.
21468 (legitimize_address, ix86_expand_move): Use it.
21469 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
21470 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
21471 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
21472 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
21473 * config/i386/predicates.md (constant_call_address_operand): Only
21474 accept symbols; reject dllimport_p symbols.
21475 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
21476 i386_pe_maybe_record_exported_symbol.
21477 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
21478 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
21479 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
21480 trust the setting of DECL_DLLIMPORT_P.
21481 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
21482 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
21483 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
21484 tidy the argument scanning loop.
21485 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
21486 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
21487 (i386_pe_strip_name_encoding): Remove.
21488 (i386_pe_binds_local_p): New.
21489 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
21490 (i386_pe_output_labelref): Remove.
21491 (i386_pe_asm_output_aligned_decl_common): New.
21492 (i386_pe_maybe_record_exported_symbol): Rename from
21493 i386_pe_record_exported_symbol; check for dllexported symbols.
21495 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
21497 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
21498 add comment explaining why vsnprintf cannot be used.
21500 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
21502 PR tree-optimization/30666
21503 * tree.c (build_complex_type): When creating type names for DWARF2
21504 debug info, create TYPE_DECLs for TYPE_NAME instead of
21506 (build_common_tree_nodes_2): Use build_complex_type when building
21507 predefined complex types, to preserve canonical types.
21509 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
21511 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
21512 (noce_get_alt_condition): Look at it to determine whether to
21513 reverse the condition or not.
21514 (noce_get_condition): Substitute the truth for lies.
21515 (noce_find_if_block): Set the then_else_reversed field.
21517 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
21519 * config/fr30/fr30.md (movdi): Do not accept immediates as the
21520 destination of this insn.
21521 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
21522 than calling gen_rtx_SET directly. Use r0 to hold the value of
21523 'address + 4' rather than a stack based temporary which can be
21524 mis-optimized away.
21526 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
21528 * config/s390/s390.c (s390_secondary_input_reload_class,
21529 s390_secondary_output_reload_class): Functions removed.
21530 (s390_secondary_reload): New function.
21531 (TARGET_SECONDARY_RELOAD): Target macro defined.
21532 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
21533 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
21534 * config/s390/s390.md ("reload_outti", "reload_outdi",
21535 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
21536 "reload_out<mode>"): Expanders removed.
21537 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
21538 "reload<mode>_nonoffmem_out"): Expanders added.
21540 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
21542 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
21543 action if SRC->DEST replacement failed anyway.
21545 2007-03-28 Mike Stump <mrs@apple.com>
21547 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
21548 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
21549 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
21551 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
21553 * config.gcc: Accept barcelona as a variant of amdfam10.
21554 * config/i386/i386.c (override_options): Likewise.
21555 * doc/invoke.texi: Likewise.
21557 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
21559 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
21560 offsets for BIT_FIELD_REF and COMPONENT_REF.
21562 2007-03-28 Richard Guenther <rguenther@suse.de>
21564 * tree.c (is_global_var): Move ...
21565 * tree-flow-inline.h (is_global_var): ... here.
21566 * tree.h (is_global_var): Remove declaration.
21568 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
21570 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
21572 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
21573 * config/i386/i386.c (ix86_tune_features): Initialize new
21575 * config/i386/predicates.md (promotable_binary_operator): Use
21576 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
21578 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
21581 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
21583 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
21585 * config/fr30/fr30.md (movsi_internal): Change destination
21586 constraint from m to V and add m to the end.
21588 2007-03-28 Christian Bruel <christian.bruel@st.com>
21590 * config/sh/sh.md (movsi_i): Fix type attribute.
21592 2007-03-28 Christian Bruel <christian.bruel@st.com>
21594 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
21595 (movsf_ie): Likewise.
21597 2007-03-28 Christian Bruel <christian.bruel@st.com>
21599 * config.gcc: Add sh4-300 to multilib.
21600 * config/sh/t-mlib-sh4-300: New file.
21602 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
21604 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
21605 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
21606 fix_trunc<mode>di2.
21607 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
21608 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
21609 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
21610 "fixuns_trunctddi2"): Whitespace fix.
21612 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
21614 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
21615 the definition of struct sh_args.
21616 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
21617 CALL_COOKIE_INT_REG_GET): Likewise.
21619 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
21621 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
21622 transformations are applied successfully.
21624 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
21626 * tree.c (tree_contains_struct): Permit 512 tree codes.
21627 * tree.h (tree_contains_struct): Ditto.
21628 (MAX_TREE_CODES): Ditto.
21629 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
21630 SPARE member to store remaining padding bits.
21632 2007-03-27 Anatoly Sokolov <aesok@post.ru>
21634 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
21637 2007-03-27 Janis Johnson <janis187@us.ibm.com>
21639 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
21640 * configure: Regenerate.
21642 * configure: Regenerate using the correct version of autoconf.
21644 2007-03-27 Anatoly Sokolov <aesok@post.ru>
21646 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
21648 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
21649 regs to "__SP_L__" and "__SP_H__".
21651 2007-03-27 Richard Guenther <rguenther@suse.de>
21653 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
21654 computations with it with a HOST_WIDE_INT variable.
21656 2007-03-26 Mike Stump <mrs@apple.com>
21658 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
21659 objective-c-header, objective-c++-header and objc++-cpp-output
21661 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
21663 2007-03-26 Richard Henderson <rth@redhat.com>
21666 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
21667 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
21668 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
21669 IX86_BUILTIN_PSRLQ128): New.
21670 (ix86_init_mmx_sse_builtins): Add them.
21671 (ix86_expand_builtin): Expand them.
21672 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
21673 operand 2 be TImode.
21674 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
21675 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
21676 _mm_srli_epi64): Mark __B const.
21677 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
21678 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
21679 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
21680 new two-vector shift builtins.
21682 2007-03-26 Ian Lance Taylor <iant@google.com>
21684 PR tree-optimization/31345
21685 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
21686 [+INF, +INF(OVF)] into VARYING.
21688 2007-03-26 Zack Weinberg <zackw@panix.com>
21690 * gengtype-parse.c: New file.
21691 * gengtype-yacc.y: Delete.
21692 * gengtype-lex.l: Don't include gengtype-yacc.h.
21693 Define YY_DECL and yyterminate appropriately for recursive
21694 descent parser. yylval is now a string out-parameter to yylex.
21695 (HWS, EOID): New shorthand.
21696 (IWORD): Add a couple more types.
21697 (yylex): Add a setup stanza. Remove the complex rules for
21698 detecting GTY'ed types and typedefs; replace with simple
21699 keyword detectors. Adjust everything for the changed
21700 definition of yylval. Ignore all pp-directives, not just #define.
21702 (parse_file): Rename yybegin; do not call yyparse.
21704 * gengtype.c (xasprintf): Export again.
21705 (this_file): New. Use everywhere __FILE__ was being used.
21706 (get_lang_bitmap): Special case types defined in gengtype.c.
21707 (do_typedef, new_structure): Suppress definition of certain types.
21708 (new_structure): Improve diagnostics of duplicate definitions.
21709 Make sure location_s is associated with input.h.
21710 (nreverse_pairs, define_location_structures): New functions.
21711 (main): Improve tagging of kludge types. Remove old kludges
21712 for input.h types; use define_location_structures.
21713 * gengtype.h: Update prototypes. Define token codes here.
21714 * Makefile.in: Remove all references to gengtype-yacc.
21715 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
21717 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
21718 add GTY((skip)) to the field that's only conditionally there.
21719 * doc/install.texi: Document that Bison is no longer required
21720 unless building treelang.
21722 * gengtype.c: Don't include gtyp-gen.h.
21723 (srcdir): Declare here.
21724 (base_files, lang_dir_names): Allocate dynamically.
21725 (gt_files, num_gt_files, num_lang_dirs): New globals.
21726 (measure_input_list, read_input_line, read_input_list)
21727 (set_lang_bitmap): New functions.
21728 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
21729 simplify, relying on read_input_list to set up the bitmaps.
21730 (main): Arguments are no longer unused. Check for correct number
21731 of command line arguments, set srcdir and srcdir_len, then call
21732 read_input_list, before doing anything else. No need to worry
21733 about duplicates in main loop.
21734 * configure.ac: Simplify the calculation of all_gtfiles.
21735 Put language tags in there. Don't set or substitute
21736 all_gtfiles_files_langs or all_gtfiles_files_frags.
21737 * Makefile.in: Revamp the way gengtype is invoked, now that it
21738 takes a file on its command line with a much simpler format.
21739 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
21740 (GTFILES): Remove duplicates and C source files.
21741 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
21742 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
21743 * configure: Regenerate.
21745 * gengtype.h: Remove all type definitions to gengtype.c; leave
21746 only definitions of options_p, type_p, and pair_p as opaque
21747 pointers. Update prototypes.
21748 * gengtype.c: Many type definitions moved here from gengtype.h.
21749 Consolidate type definitions at the top of the file.
21750 (xvasprintf): Delete.
21751 (xasprintf): Make static.
21752 (create_nested_pointer_option): Add 'next' parameter.
21753 (create_field_all, create_field_at): New functions.
21754 (create_field): Now a thin wrapper around create_field_all.
21755 (create_optional_field): Rename create_optional_field_ and add
21756 line argument. Original name is now a macro which supplies
21758 (oprintf): Use vsnprintf directly.
21759 (close_output_files): Use fatal rather than perror/exit.
21760 (note_def_vec, note_def_vec_alloc): Use create_field_at.
21761 (main): Set progname. Don't use exit.
21762 * gengtype-yacc.y (struct_fields): Use create_field_at.
21763 (option, optionseqopt): Delete.
21764 (optionseq): Consolidate productions from option here so we
21765 can use the first argument to create_option.
21767 * gengtype-lex.l: Distinguish unions from structures in the
21768 token type. Don't call find_structure; return the tag as a string.
21769 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
21770 ENT_UNION. Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
21771 string. Reorganize typedef_struct production accordingly.
21772 Use create_nested_ptr_option.
21773 * gengtype.c (create_nested_ptr_option): New function.
21774 * gengtype.h: Declare it.
21776 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
21777 (string_type): Don't declare.
21778 (do_scalar_typedef): Declare.
21779 (create_scalar_type): Update prototype.
21780 * gengtype.c (string_type): Make static.
21781 (scalar_nonchar, scalar_char): New.
21782 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
21783 (resolve_typedef): Use scalar_nonchar for error recovery.
21784 (create_scalar_type): Remove name_len field. Return scalar_char
21785 or scalar_nonchar as appropriate.
21786 (adjust_field_type): Look at scalar_is_char boolean to decide whether
21787 to use string_type.
21788 (throughout): Use scalar_nonchar instead of calling
21789 create_scalar_type, whenever possible.
21790 (main): Initialize scalar_char and scalar_nonchar before calling
21792 * gengtype-lex.l: Adjust for removal of second argument to
21793 create_scalar_type. Use yylval.s instead of yylval.t when
21795 * gengtype-yacc.y: Type of SCALAR is string. Call
21796 create_scalar_type from type:SCALAR rule. Adjust for removal of
21797 second argument to create_scalar_type.
21799 * vec.h: Remove all #if IN_GENGTYPE blocks.
21800 Add comment saying that changes may require adjustments to gengtype.
21801 * gengtype.c: Don't include coretypes.h or tm.h.
21802 Add comment to inclusion of errors.h.
21803 (note_def_vec, note_def_vec_alloc): New functions.
21804 * gengtype.h: Declare new functions.
21805 * gengtype-lex.l: Don't include coretypes.h.
21806 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
21808 (update_lineno): Remove unnecessary prototype.
21809 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
21810 (VEC rule): Just return VEC_TOKEN.
21811 * gengtype-yacc.y (VEC_TOKEN): New token type.
21812 (type): Add a production for VEC(a,b).
21813 * Makefile.in: Update dependencies.
21815 * gengtype-lex.l: Remove rules for parsing pointer-to-function
21816 typedefs that use the old PARAMS macro.
21818 * gengtype-lex.l: Remove all rules and states relating to yacc
21820 * gengtype-yacc.y: Similarly.
21821 * gengtype.c (note_yacc_type): Delete function.
21822 * gengtype.h: Update prototypes.
21824 2007-03-26 Joseph Myers <joseph@codesourcery.com>
21826 * tree-pretty-print.c (dump_generic_node): Report precision of
21827 unnamed integer types.
21829 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
21831 * ifcvt.c (noce_try_store_flag_constants): Don't check
21832 no_new_pseudos here.
21833 (noce_try_store_flag_constants): Don't check no_new_pseudos.
21834 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
21835 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
21836 noce_try_sign_mask): Likewise.
21837 (if_convert): Check no_new_pseudos here.
21839 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
21841 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
21842 (noce_get_condition): Handle new then_else_reversed argument.
21843 (noce_init_if_info): Remove, fold into noce_find_if_block.
21844 (noce_process_if_block): Take a struct noce_if_info as the
21845 argument. Don't set up one based on ce_if_info. Update pointer
21846 references accordingly.
21847 (cond_move_process_if_block): Likewise.
21848 (process_if_block): Removed.
21849 (find_if_block): Removed. Move functionality two new functions,
21850 noce_find_if_block and cond_exec_find_if_block.
21851 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
21852 blocks and the symmetric IF-ELSE-JOIN case.
21853 (cond_exec_find_if_block): Also new function mostly based on old
21854 find_if_block and process_if_block.
21855 (find_if_header): Replace find_if_block call with separately
21856 guarded calls to noce_find_if_block and cond_exec_find_if_block.
21857 (find_cond_trap): Update noce_get_condition call.
21858 (dead_or_predicable): Likewise.
21860 2007-03-26 Jakub Jelinek <jakub@redhat.com>
21862 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
21864 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
21865 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
21866 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
21867 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
21868 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
21869 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
21870 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
21871 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
21872 __builtin_ia32_psrad128 builtins.
21874 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
21876 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
21877 * config/i386/constraints.md
21878 (define_constraint "I"): Use IN_RANGE macro.
21879 (define_constraint "J"): Ditto.
21880 (define_constraint "K"): Ditto.
21881 (define_constraint "M"): Ditto.
21882 (define_constraint "N"): Ditto.
21883 (define_constraint "O"): Ditto.
21884 * config/i386/predicates.md
21885 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
21886 (define_predicate "const_0_to_3_operand"): Ditto.
21887 (define_predicate "const_0_to_7_operand"): Ditto.
21888 (define_predicate "const_0_to_15_operand"): Ditto.
21889 (define_predicate "const_0_to_63_operand"): Ditto.
21890 (define_predicate "const_0_to_255_operand"): Ditto.
21891 (define_predicate "const_1_to_31_operand"): Ditto.
21892 (define_predicate "const_2_to_3_operand"): Ditto.
21893 (define_predicate "const_4_to_7_operand"): Ditto.
21895 2007-03-25 David Edelsohn <edelsohn@gnu.org>
21897 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
21898 in SImode for save_world.
21899 * config/rs6000/altivec.md (save_world, restore_world): Convert to
21902 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
21904 PR tree-optimization/30784
21905 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
21908 2007-03-25 Revital Eres <eres@il.ibm.com>
21910 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
21911 Fold movement_possibility function into it.
21913 2007-03-25 David Edelsohn <edelsohn@gnu.org>
21915 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
21916 (load_macho_picbase_{si,di}): Convert to LR hard reg.
21917 (call_indirect_nonlocal_darwin64): Same.
21918 (call_nonlocal_darwin64): Same.
21919 (call_value_indirect_nonlocal_darwin64): Same.
21920 (call_value_nonlocal_darwin64): Same.
21921 (sibcall_nonlocal_darwin64): Same.
21922 (sibcall_value_nonlocal_darwin64): Same.
21923 (sibcall_symbolic_64): Same.
21924 (sibcall_value_symbolic_64): Same.
21925 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
21927 (rs6000_emit_load_toc_table): Same.
21928 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
21929 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
21931 (divss_call): Same.
21932 (divus_call): Same.
21933 (quoss_call): Same.
21934 (quous_call): Same.
21935 (load_toc_v4_pic_si): Same
21936 (load_toc_v4_PIC_1): Same.
21937 (load_toc_v4_PIC_1b): Same.
21938 (call_indirect_aix{32,64}): Same.
21939 (call_value_indirect_aix{32,64}): Same.
21941 (call_value): Same.
21942 (call_local{32,64}): Same.
21943 (call_value_local{32,64}): Same.
21944 (call_indirect_nonlocal_aix{32,64}): Same.
21945 (call_nonlocal_aix{32,64}): Same.
21946 (call_value_indirect_nonlocal_aix{32,64}): Same.
21947 (call_value_nonlocal_aix{32,64}): Same.
21948 (call_indirect_nonlocal_sysv<mode>): Same.
21949 (call_nonlocal_sysv<mode>): Same.
21950 (call_value_indirect_nonlocal_sysv<mode>): Same.
21951 (call_value_nonlocal_sysv<mode>): Same.
21953 (sibcall_local{32,64}): Same.
21954 (sibcall_value_local{32,64}): Same.
21955 (sibcall_nonlocal_aix{32,64}): Same.
21956 (sibcall_value_nonlocal_aix{32,64}): Same.
21957 (sibcall_nonlocal_sysv<mode>): Same.
21958 (sibcall_value): Same.
21959 (sibcall_value_nonlocal_sysv<mode>): Same.
21961 2007-03-24 Paul Brook <paul@codesourcery.com>
21963 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
21964 * config/arm/linux-eabi.h: Remove legacy syscall hack.
21966 2007-03-24 Richard Henderson <rth@redhat.com>
21968 * config/ia64/constraints.md: New file.
21969 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
21970 satisfies_constraint_?.
21971 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
21972 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
21973 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
21974 ia64_output_mi_thunk): Likewise.
21975 (ia64_const_ok_for_letter_p): Remove.
21976 (ia64_const_double_ok_for_letter_p): Remove.
21977 (ia64_extra_constraint): Remove.
21978 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
21979 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
21980 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
21981 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
21982 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
21983 EXTRA_MEMORY_CONSTRAINT): Remove.
21984 * config/ia64/ia64.md: Include constriants.md. Replace
21985 CONST_OK_FOR_? with satisfies_constraint_?.
21987 2007-03-23 Michael Meissner <michael.meissner@amd.com>
21988 H.J. Lu <hongjiu.lu@intel.com>
21990 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
21992 (name macros): Use DPD_BID_NAME to convert names properly.
21994 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
21995 decimal floating point format.
21996 (init_floating_libfuncs): Change decimal functions so that they
21997 have a "bid_" prefix if the decimal system uses the BID format,
21998 and "dpd_" prefix if the decimal system uses the DPD format.
21999 (init_interclass_conv_libfuncs): Ditto.
22000 (init_intraclass_conv_libfuncs): Ditto.
22002 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
22003 using the BID format.
22005 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
22006 whether we are using the BID decimal format.
22007 * configure: Regenerate.
22009 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
22010 the compiler has decimal floating point enabled. Define
22011 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
22014 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
22015 using the BID format.
22017 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
22018 whether we are using the BID decimal format.
22019 * configure: Regenerate.
22021 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
22022 the compiler has decimal floating point enabled. Define
22023 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
22026 * doc/install.texi (--enable-decimal-float): Document BID and DPD
22027 options, and that it is enabled for i386/x86_64 systems.
22029 * Makefile.in (enable_decimal_float): New.
22031 (DECNUMINC): Add -I$(DECNUMFMT).
22032 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
22033 to $(DECNUMFMT) from $(DECNUM).
22035 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
22036 Substitute enable_decimal_float.
22037 * configure: Regenerated.
22040 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
22043 * configure.ac: Enable decimal float for x86_64-*-linux*.
22044 * configure: Regenerated.
22047 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
22048 decimal128ClearSign to flip and clear the sign bit in decimal128.
22049 (decimal_real_maxval): Set decimal128SetSign to set the sign
22052 2007-03-23 Ian Lance Taylor <iant@google.com>
22054 * fold-const.c (fold_binary): Correct warning for X - c >= X.
22056 2007-03-23 Ian Lance Taylor <iant@google.com>
22058 * tree-dump.c (dump_files): Correct comment.
22060 2007-03-23 Ian Lance Taylor <iant@google.com>
22062 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
22064 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
22066 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
22067 in cfglayout mode. Don't go into and out of cfglayout mode.
22068 Link the blocks in the order of the constructed traces.
22069 (rest_of_handle_tracer): Adjust call to tracer.
22070 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
22071 Don't go into cfglayout mode.
22072 (rtl_loop_done): Don't go out of cfglayout mode.
22073 * cfglayout.c (relink_block_chain): New function, split out from...
22074 (fixup_reorder_chain): ...here. Remove redundant checking.
22075 (cfg_layout_finalize): Don't clear the header, footer, and aux
22076 fields here, move the code to do so to relink_block_chain. Likewise
22077 for free_original_copy_tables.
22078 * rtl.h (tracer): Update prototype.
22079 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
22080 Assert we are in cfglayout mode. Don't go into and out of cfglayout
22081 mode. Use relink_block_chain to serialize the CFG according to the
22082 new basic block order. Move targetm.cannot_modify_jumps_p check from
22084 (gate_handle_reorder_blocks): ...to here.
22085 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
22087 (gate_duplicate_computed_gotos): ...to here.
22088 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
22089 something always changes when going into and out of cfglayout mode.
22090 Perform an expensive cfg cleanup while going into cfglayout mode.
22091 Always update liveness information on HAVE_conditional_execution
22092 targets. Reserialize the basic blocks and go out of cfglayout mode.
22093 * reg-stack.c: Include cfglayout.h.
22094 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
22095 the call to reorder_basic_blocks.
22096 * basic-block.h (reorder_basic_blocks): Update prototype.
22097 (relink_block_chain): New prototype.
22098 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
22100 2007-03-23 Joseph Myers <joseph@codesourcery.com>
22102 * config/mips/mips.md (type, hazard, *movdi_32bit,
22103 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
22104 *movhi_internal, *movqi_internal, *movsf_hardfloat,
22105 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
22106 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
22107 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
22109 (movcc): Change first xfer to multi.
22110 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
22111 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
22112 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
22113 config/mips/generic.md: Change reservations using "xfer" to use
22115 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
22116 using match_operand.
22117 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
22118 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
22120 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
22122 2007-03-22 Richard Henderson <rth@redhat.com>
22124 * config/i386/i386.c: Remove unnecessary function declarations.
22125 Move targetm definition, and all related macros, to the end of
22126 the file. Resort some functions to put definitions before uses.
22127 (ix86_attribute_table): Make static. Move to end of file.
22128 (ix86_gimplify_va_arg): Make static.
22130 2007-03-22 Richard Henderson <rth@redhat.com>
22132 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
22133 don't increase local_regparm with force_align_arg_pointer check.
22134 (ix86_function_sseregparm): Assert 32-bit.
22135 (type_has_variadic_args_p): New.
22136 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
22137 type_has_variadic_args_p.
22138 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
22139 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
22140 use memset instead. Do maybe_vaarg check first; skip attribute
22141 tests if true; skip attribute tests for 64-bit.
22142 (construct_container): Remove TARGET_DEBUG_ARG.
22143 (function_arg_advance_32, function_arg_advance_64): Split out ...
22144 (function_arg_advance): ... from here.
22145 (function_arg_32, function_arg_64): Split out ...
22146 (function_arg): ... from here.
22147 (ix86_pass_by_reference): Tidy.
22148 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
22149 (function_value_32): New, from parts of ix86_function_value
22150 and ix86_value_regno.
22151 (function_value_64): New, from parts of ix86_function_value
22152 and ix86_libcall_value.
22153 (ix86_function_value_1): New.
22154 (ix86_function_value, ix86_libcall_value): Use it.
22155 (return_in_memory_32, return_in_memory_64): Split out ...
22156 (ix86_return_in_memory): ... from here.
22157 (ix86_struct_value_rtx): Skip for 64-bit.
22158 (ix86_libcall_value, ix86_value_regno): Remove.
22159 (setup_incoming_varargs_64): Split out ...
22160 (ix86_setup_incoming_varargs): ... from here.
22161 (ix86_va_start): Remove TARGET_DEBUG_ARG.
22162 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
22163 * config/i386/i386-protos.h (ix86_function_value): Remove.
22164 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
22166 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22169 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
22170 infinities not supported, otherwise emit warning if -Woverflow. On
22171 underflow, emit warning if -Woverflow.
22172 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
22174 * real.h (real_from_string): Update declaration
22176 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
22177 Richard Henderson <rth@redhat.com>
22179 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
22180 * calls.c (compute_argument_block_size, expand_call,
22181 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
22182 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
22183 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
22184 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
22185 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
22186 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
22187 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
22188 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
22191 2007-03-22 Joseph Myers <joseph@codesourcery.com>
22193 * c-incpath.c (add_sysroot_to_chain): New.
22194 (merge_include_chains): Add sysroot argument. Call
22195 add_sysroot_to_chain if sysrooted.
22196 (register_include_chains): Update call to merge_include_chains.
22197 * doc/cppopts.texi: Document use of '=' in include directory
22200 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
22202 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
22203 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
22204 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
22205 insn pattern using X87MODEF12 mode macro.
22207 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
22209 * regmove.c (regmove_optimize): Use reg_mentioned_p
22210 instead of reg_overlap_mentioned_p for DST.
22212 2007-03-21 Mike Stump <mrs@apple.com>
22214 * c.opt: Fixup for Objective-C/C++.
22216 2007-03-21 Steve Ellcey <sje@cup.hp.com>
22218 * explow.c (convert_memory_address): Fold memory reference when
22219 POINTERS_EXTEND_UNSIGNED < 0
22221 2007-03-21 Richard Henderson <rth@redhat.com>
22224 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
22225 * config/i386/mmintrin.h (__m64): Likewise.
22226 * config/i386/xmmintrin.h (__m128): Likewise.
22228 2007-03-21 Richard Sandiford <richard@codesourcery.com>
22230 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
22231 (VXWORKS_OS_CPP_BUILTINS): Define.
22232 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
22233 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
22235 2007-03-21 Richard Sandiford <richard@codesourcery.com>
22237 * rtl.h (constant_pool_reference_p): Delete.
22238 (find_constant_src): Declare.
22239 * rtlanal.c (find_constant_src): New function.
22240 * simplify-rtx.c (constant_pool_reference_p): Delete.
22241 * config/i386/i386.md: Use find_constant_src instead of
22242 constant_pool_reference_p/avoid_constant_pool_reference pairs.
22244 2007-03-21 Richard Sandiford <richard@codesourcery.com>
22246 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
22247 * c-cppbuiltin.c (c_cpp_builtins): Define them.
22249 2007-03-20 Mark Mitchell <mark@codesourcery.com>
22251 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
22252 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
22253 (arm_elf_asm_constructor): Use it.
22254 (arm_elf_asm_destructor): New function.
22256 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
22258 * jump.c (mark_jump_label): Treat SEQUENCE specially.
22260 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
22262 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
22264 2007-03-19 Andrew Haley <aph@redhat.com>
22266 PR tree-optimization/31264
22267 * tree-vrp.c (register_edge_assert_for_1): Don't look though
22268 VIEW_CONVERT_EXPRs.
22270 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
22272 PR rtl-optimization/30907
22273 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
22274 (fwprop_init): Always call loop_optimizer_initialize.
22275 (fwprop_done): Always call loop_optimizer_finalize.
22276 (fwprop): We always have loop info now.
22277 (gate_fwprop_addr): Remove.
22278 (pass_fwprop_addr): Use gate_fwprop as gate.
22280 PR rtl-optimization/30841
22281 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
22282 df_chain_alloc): Call df_reorganize_refs unconditionally.
22283 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
22284 refs_organized to refs_organized_size.
22285 (df_ref_create_structure): Use refs_organized_size instead of
22286 bitmap_size if refs had been organized, and keep refs_organized_size
22288 * df.h (struct df_ref_info): Change refs_organized to
22289 refs_organized_size.
22290 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
22293 2007-03-19 Mark Mitchell <mark@codesourcery.com>
22295 * except.c (output_function_exception_table): Do not reference the
22296 EH personality routine for functions that do not require an
22299 2007-03-20 Jakub Jelinek <jakub@redhat.com>
22302 * c-typeck.c (convert_for_assignment): Call comptypes for
22303 RECORD_TYPE or UNION_TYPE.
22305 PR inline-asm/30505
22306 * reload1.c (reload): Do invalid ASM checking after
22307 cleanup_subreg_operands.
22309 2007-03-19 Jeff Law <law@redhat.com>
22311 * tree-cfg.c (find_taken_edge): Tighten conditions for
22312 optimizing computed gotos.
22314 2007-03-19 Michael Matz <matz@suse.de>
22316 * builtins.c (expand_builtin_sync_operation,
22317 expand_builtin_compare_and_swap,
22318 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
22321 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
22322 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
22325 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22327 * doc/tm.texi: Add brackets around the return type of
22328 TARGET_SECONDARY_RELOAD.
22330 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
22331 Richard Guenther <rguenther@suse.de>
22333 PR tree-optimization/31254
22334 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
22335 Use handled_component_p () where appropriate. Continue
22336 propagating into the rhs if we propagated into an INDIRECT_REF
22339 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22341 * config/s390/s390.md (op_type attribute): RRR instruction type added.
22342 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
22343 (xde, xdee): Mode attributes adjusted to support DFP modes.
22344 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
22345 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
22346 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
22347 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
22348 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
22349 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
22350 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
22352 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
22353 "movsf"): Insn definitions removed.
22354 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
22355 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
22356 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
22358 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
22359 "reload_in<mode>", "reload_out<mode>"): Expander added.
22360 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
22363 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22365 * config/s390/s390.md: Only non-functional changes. Renamed
22366 FPR mode macro to BFP all over the file.
22368 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22370 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
22371 (op_type attribute): RRF instruction type added.
22372 (fT0): New mode attribute.
22373 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
22374 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
22375 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
22376 instruction no secondary memory is needed when moving DFmode values
22377 between GPRs and FPRs.
22379 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22381 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
22382 inverted and documentation adjusted.
22383 ("mhard-dfp", "msoft-dfp"): New options.
22384 * config/s390/s390.c (s390_handle_arch_option): New architecture
22386 (override_options): Sanity checks for the new options added.
22387 * config.gcc: New architecture switch: z9-ec.
22388 * config/s390/s390.h (processor_flags): PF_DFP added.
22389 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
22390 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
22391 when the bit is NOT set so remove it from the defaults.
22393 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22395 * genemit.c (main): Print include statement for dfp.h.
22396 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
22399 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
22401 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
22403 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22406 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
22407 instead of PATTERN.
22409 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22411 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
22412 attr_length_call, output_call, output_indirect_call): Cleanup
22413 formatting of targetm calls.
22415 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
22417 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
22419 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22421 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
22422 reservation, bypass and anti-bypass descriptions for these
22423 instructions. Update move patterns.
22424 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
22427 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
22429 * tree-vect-transform.c (get_initial_def_for_induction): Replace
22430 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
22431 (get_initial_def_for_reduction): Likewise.
22433 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
22435 Fix PR tree-optimization/29922
22436 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
22437 (get_representative): Removed.
22438 (value_dies_in_block_x): Update for rvuse removal.
22439 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
22440 (compute_antic_aux): Handle when PHI nodes appear in
22441 non-single-successors.
22442 (dump_bitmap_of_names): Removed.
22443 (compute_antic_safe): Renamed and removed rvuse calculation.
22444 Calculate only antic safe.
22445 (insert_into_preds_of_block): Remove assert.
22446 (execute_pre): Update for renamed functions.
22447 (defer_or_phi_translate_block): New function.
22449 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
22451 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
22452 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
22454 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
22455 Follow spelling conventions.
22457 * tree-data-ref.h: Remove the prototype for analyze_array.
22459 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
22461 PR tree-optimization/31041
22462 * tree-vect-transform.c (get_initial_def_for_induction): Call
22463 force_gimple_operand.
22465 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
22467 * ipa-type-escape.c (look_for_casts) : Revert code to use
22468 handled_component_p due to ada test a-numaux.adb.
22470 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
22472 * final.c (final_scan_insn): Alter the condition of a
22473 conditional trap if we have nonstandard CC.
22475 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
22477 * configure.ac: Remove excess quoting from asm line 0 test.
22478 * configure: Rebuilt.
22480 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22482 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
22483 * c-common.c (convert_and_check): Move warning logic to...
22484 (warnings_for_convert_and_check): ...here. Define.
22485 * c-common.h (warnings_for_convert_and_check): Declare.
22487 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22489 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
22490 (output_call): Likewise.
22492 2007-03-16 Richard Sandiford <richard@codesourcery.com>
22494 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
22496 2007-03-16 Richard Sandiford <richard@codesourcery.com>
22498 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
22500 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
22502 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
22503 opteron, athlon-64 and athlon-fx processor_alias_table entries.
22505 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
22507 PR tree-optimization/31183
22508 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
22509 Use double_int instead of unsigned int for representing access_strides.
22510 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
22512 2007-03-16 Richard Guenther <rguenther@suse.de>
22514 PR tree-optimization/31146
22515 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
22516 to allow recursion of forward_propagate_addr_expr.
22517 (forward_propagate_addr_into_variable_array_index): Likewise.
22518 (forward_propagate_addr_expr): Likewise.
22519 (tree_ssa_forward_propagate_single_use_vars): Likewise.
22520 (forward_propagate_addr_expr_1): Recurse on simple copies
22521 instead of propagating into them. Do so for useless conversions
22523 (forward_propagate_addr_expr): Clean up unused statements after
22526 2007-03-16 Richard Guenther <rguenther@suse.de>
22528 * builtins.c (expand_builtin_cexpi): Use the right argument
22529 for the expansion via cexp.
22531 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
22533 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
22534 * configure: Rebuilt.
22536 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
22539 * dwarf2out.c (force_type_die): Adjust comment.
22540 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
22542 2007-03-15 DJ Delorie <dj@redhat.com>
22544 * config/frv/predicates.md (minmax_operator): Don't check operands
22547 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
22549 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
22550 Update constant estimates of number of iterations.
22551 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
22552 argument renamed to "realistic".
22553 (compute_estimated_nb_iterations): Removed.
22554 (record_niter_bound): New function.
22555 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
22556 call record_nonwrapping_iv with upper = false.
22557 (infer_loop_bounds_from_signedness): Pass upper argument to
22558 record_nonwrapping_iv.
22559 (estimate_numbers_of_iterations_loop): Do not call
22560 compute_estimated_nb_iterations. Record estimate based on profile
22561 information. Initialize the constant estimates of number of
22563 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
22565 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
22566 number of iterations is too small.
22567 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
22568 (EST_NOT_AVAILABLE): Removed.
22569 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
22570 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
22573 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
22575 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
22576 Handle NE_EXPR guards.
22578 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22581 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
22582 Set also -pedantic-errors by default for the preprocessor unless
22583 -fpermissive is given.
22585 2007-03-15 Richard Guenther <rguenther@suse.de>
22587 PR middle-end/29719
22588 PR middle-end/31161
22589 * builtins.c (expand_builtin_cexpi): As a fallback if we
22590 don't have builtins for sincos or cexp create a function
22591 declaration for cexp and expand to a call to that.
22592 (expand_builtin_int_roundingfn): Always fall
22593 back to floor/ceil and its variants even if they may be
22596 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
22598 PR middle-end/31159
22599 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
22600 jump tables, move the call to delete_dead_jumptables from here...
22601 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
22602 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
22603 don't allow merging of blocks that try_redirect_by_replacing_jump
22604 also does not handle when not optimizing.
22606 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
22607 Francois-Xavier Coudert <coudert@clipper.ens.fr>
22609 * config/i386/i386.md (x86_sahf_1): Correctly handle
22612 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
22615 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
22616 x86_64_general_operand as operand[2] predicate. Remove "iF"
22617 from operand constraints and use "e" constraint instead.
22618 (*subti3_1, *subti3_1 splitter): Ditto.
22619 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
22620 operand[1] predicate.
22622 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
22624 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
22625 arrays, multiply the access strides by the size of the sub-array.
22626 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
22628 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
22630 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
22631 the configured assembler supports the sahf mnemonic.
22632 * configure: Regenerate.
22633 * config.in: Regenerate.
22635 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
22636 emit "sahf" or ".byte\t0x9e" as asm template.
22638 2007-03-14 Michael Meissner <michael.meissner@amd.com>
22641 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
22642 option to replace hard coded TARGET_xxx in md file.
22643 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
22644 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
22645 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
22646 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
22647 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
22648 (X86_TUNE_NOT_VECTORMODE): Ditto.
22649 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
22650 (TUNE_AVOID_VECTOR_DECODE): Ditto.
22651 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
22652 (TUNE_SLOW_IMUL_IMM8): Ditto.
22653 (TUNE_MOVE_M1_VIA_OR): Ditto.
22654 (TUNE_NOT_UNPAIRABLE): Ditto.
22655 (TUNE_NOT_VECTORMODE): Ditto.
22657 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
22660 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
22661 tuning options instead of hard coded TARGET_xxx.
22662 (fix ssemode peephole2's): Ditto.
22663 (imul peephole2's): Ditto.
22665 (movdi_or_rex64): Ditto.
22666 (move peephole2): Ditto.
22667 (not peephole2's): Ditto.
22669 2007-03-14 Dirk Mueller <dmueller@suse.de>
22671 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
22672 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
22673 * c-parser.c (c_parser_if_body): Always add an empty statement in case
22675 * c-parser.c (c_parser_do_statement): Warn about empty body in
22676 do/while statement.
22677 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
22678 * doc/invoke.texi (-Wempty-body): Update documentation.
22680 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22683 * c-common.h (warn_for_div_by_zero): Declare.
22684 * c-common.c (warn_for_div_by_zero): Define.
22685 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
22688 2007-03-14 Richard Sandiford <richard@codesourcery.com>
22690 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
22691 to PREFIX and STANDARD_PREFIX.
22693 2007-03-14 Richard Sandiford <richard@codesourcery.com>
22694 Phil Edwards <phil@codesourcery.com>
22696 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
22697 (__gthread_once_t): Remove busy field for RTPs.
22698 (__GTHREAD_ONCE_INIT): Update accordingly.
22700 2007-03-14 Richard Sandiford <richard@codesourcery.com>
22702 * doc/invoke.texi: Document VxWorks options.
22704 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
22706 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
22708 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
22710 PR tree-optimization/30590
22711 * tree-nrv.c (tree_nrv): Check for the partial update of the
22714 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
22716 * flags.h (flag_random_seed): Remove declaration, in favor of...
22717 * toplev.h (get_random_seed, set_random_seed): ... these.
22718 * tree.c (get_file_function_name): Use the former.
22719 * opts.c (common_handle_option): Use the latter.
22722 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
22724 PR middle-end/31127
22725 * cse.c (cse_find_path): Do not bail out if a basic block that
22726 we already visited now becomes part of a path that starts at a
22727 different basic block. Just disallow this, to make sure we
22728 visit each basic block at most once.
22730 2007-03-13 Jan Hubicka <jh@suse.cz>
22732 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
22733 attributes, when profile esitmate is present, calls with very low
22734 frequency are cold.
22736 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
22738 PR tree-optimization/30730
22739 PR tree-optimization/26900
22740 * tree-ssa-loop-niter.c: Include gmp.h.
22741 (bounds): New type.
22742 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
22743 split_to_var_and_offset, determine_value_range,
22744 bound_difference_of_offsetted_base, refine_bounds_using_guard,
22745 bound_difference, bounds_add, bounds_negate,
22746 number_of_iterations_ne_max, dump_affine_iv): New functions.
22747 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
22748 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
22749 difference of initial and final value of control iv to validate
22751 (number_of_iterations_cond): Add loop parameter. Determine bounds
22752 on the difference of the extremes of the control iv. Add dumps.
22753 (expand_simple_operations): Handle phi nodes.
22754 (simplify_using_initial_conditions): Do not record used conditions.
22755 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
22756 Do not set additional_info.
22757 (implies_nonnegative_p, implies_ge_p): Removed.
22758 (derive_constant_upper_bound): Do not use parameter `additional'.
22759 (record_estimate): Parameter `additional' removed. Parameter
22760 `i_bound' added. Do not call derive_constant_upper_bound.
22761 (record_nonwrapping_iv): Use derive_constant_upper_bound to
22762 bound the number of iterations estimate.
22763 (estimate_numbers_of_iterations_loop): Pass the estimate from
22764 the number of iterations analysis to record_estimate.
22765 * tree.h (multiple_of_p): Declare.
22766 * tree-scalar-evolution.c (expression_expensive_p): Removed.
22767 (scev_const_prop): Do not check expression_expensive_p.
22768 * fold-const.c (multiple_of_p): Exported.
22769 * double-int.c (double_int_mask): Exported.
22770 * double-int.h (double_int_mask): Declare.
22771 * tree-flow.h (struct tree_niter_desc): Removed additional_info
22772 field. Added max field.
22774 2007-03-13 David Taylor <taylor@candd.org>
22777 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
22780 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22783 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
22784 two unamed patterns.
22786 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
22788 * config/i386/i386.opt (mcx16, msahf): New options.
22789 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
22790 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
22792 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
22793 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
22794 Output -mcx16 and -msahf options when corresponding bit is set.
22796 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
22797 and -msahf options.
22799 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
22801 * configure.ac: Test for assembler tolerance to # 0 "".
22802 * configure, config.in: Rebuilt.
22803 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
22805 2007-03-13 Geoffrey Keating <geoffk@apple.com>
22807 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
22809 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
22810 (handle_syscall): Handle direct system calls.
22811 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
22813 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
22815 * doc/invoke.texi: Fix cpp.info cross-reference.
22816 * doc/passes.texi: Fix gcc.info cross-reference.
22818 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
22820 PR tree-optimization/30835
22821 * lambda-code.c (can_convert_to_perfect_nest): Check whether
22822 bb_for_stmt is not NULL before accessing it.
22824 2007-03-12 Joseph Myers <joseph@codesourcery.com>
22826 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
22829 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
22832 * doc/install.texi: Document --enable-stage1-languages
22834 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
22836 * tree-pass.h (pass_into_cfg_layout_mode,
22837 pass_outof_cfg_layout_mode): Declare.
22838 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
22839 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
22840 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
22841 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
22843 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
22845 * c-decl.c (warn_variable_length_array): New function.
22846 Refactored from grokdeclarator to handle warn_vla
22847 and handle unnamed array case.
22848 (grokdeclarator): Refactored VLA warning case.
22849 * c.opt (Wvla): New flag.
22850 * doc/invoke.texi (Wvla): New warning.
22852 2007-03-12 Richard Henderson <rth@redhat.com>
22854 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
22855 (TARGET_SECTION_TYPE_FLAGS): New.
22857 2007-03-12 Richard Henderson <rth@redhat.com>
22859 * config/darwin.c (machopic_reloc_rw_mask): New.
22860 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
22861 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
22863 2007-03-12 Mark Mitchell <mark@codesourcery.com>
22865 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
22866 * cppdefault.h (cpp_PREFIX): Document.
22867 (cpp_PREFIX_len): Likewise.
22868 (cpp_EXEC_PREFIX): New variable.
22869 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
22870 * c-incpath.c (add_standard_paths): Correct logic for relocating
22871 paths within prefix.
22873 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
22875 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
22876 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
22878 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
22879 fix_truncdfdi_sse using SSEMODEF mode macro.
22880 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
22881 fix_truncdfsi_sse using SSEMODEF mode macro.
22882 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
22883 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
22885 2007-03-12 Richard Sandiford <richard@codesourcery.com>
22887 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
22888 elfos.h to tm_file.
22890 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
22892 * tree.h : Add multiple_of_p declaration.
22893 * fold-const.c (multiple_of_p): Make multiple_of_p public.
22894 * ipa-type-escape.c (results_of_malloc): Redundant.
22895 (visited_stmts): New. Visited stmt for walk_use_def_chains.
22896 (cast_type): Extended with new members.
22897 (check_cast): Returns cast_type.
22898 (cast): New structure for data of walk_use_def_chains.
22899 (is_malloc_result, is_cast_from_non_pointer_1,
22900 is_cast_from_non_pointer,
22901 is_array_access_through_pointer_and_index): New functions.
22902 (look_for_casts): Returns cast types.
22903 (check_call): Returns void.
22904 (okay_pointer_operation): Use support of pointer plus index,
22905 pointer plus constant and allow all multiplications.
22907 2007-03-11 Richard Guenther <rguenther@suse.de>
22909 PR tree-optimization/31115
22910 * tree-vrp.c (extract_range_from_binary_expr): Make sure
22911 the shift count is positive and non-anti-range for RSHIFT_EXPR.
22912 A shift count of zero is not special as with *_DIV_EXPR.
22913 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
22916 2007-03-11 Ian Lance Taylor <iant@google.com>
22918 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
22919 the *_DIV_EXPR codes correctly with overflow infinities.
22921 2007-03-11 Ira Rosen <irar@il.ibm.com>
22923 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
22924 indicate success/failure of the analysis. Add negation to subtrahend
22925 in case of subtraction. Fail if both operands contain constants.
22926 (create_data_ref): Fail if analyze_offset fails.
22928 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
22930 * config/i386/i386.md (frndintxf2): Rename to ...
22931 (rintxf2): ... this. Remove expander having same name.
22932 (rintsf2, rintdf2): Implement using SSEMODEF macro.
22933 (roundsf2, rounddf2): Ditto.
22934 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
22935 (lround<mode>di2, lround<mode>si2): Ditto.
22937 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
22939 * lower-subreg.c: Include except.h.
22940 (decompose_multiword_subregs): Verify that the only control flow
22941 insns we can split are loads to multi-words pseudos.
22942 Handle breaking such blocks after splitting, instead of calling
22943 find_many_sub_basic_blocks.
22945 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
22946 on the new basic block. Add a lengthy comment explaining why we
22947 thought this was necessary.
22948 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
22950 2007-03-10 Mark Mitchell <mark@codesourcery.com>
22953 * tree.c (walk_type_fields): Recurse into the element type of
22954 ARRAY_TYPEs if there is a pointer set.
22956 2007-03-10 Dirk Mueller <dmueller@suse.de>
22958 * c-common.c (warn_logical_operator): Fix condition.
22960 2007-03-10 Tobias Schl�ter <tobi@gcc.gnu.org>
22962 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
22964 * config/darwin.c (machopic_select_section): Remove superfluous
22965 argument in call to categorize_decl_for_section. Remove unused
22968 2007-03-10 Joseph Myers <joseph@codesourcery.com>
22970 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
22972 * configure: Regenerate.
22974 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
22977 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
22978 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
22979 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
22980 Add LABEL_NUSES to emitted label.
22981 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
22982 branch probability value to emitted jump insn.
22983 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
22984 Do not check life information and do not re-arrange input operands
22985 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
22987 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
22989 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
22990 the change of decode_asm_operands.
22992 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
22994 * mode-switching.c (create_pre_exit): Skip blockage insn.
22996 2007-03-09 Diego Novillo <dnovillo@redhat.com>
22998 * tree-pass.h (TODO_update_smt_usage): Remove.
23000 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
23004 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23006 * pa.c (attr_length_call): Revise condition for long
23007 pc-relative branch.
23008 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
23009 local calls on the SOM target. Don't use "LONG_PIC_PCREL" call
23010 sequence on SOM target.
23012 2007-03-09 Geoffrey Keating <geoffk@apple.com>
23014 * gcc.c: Document %{, in big comment at top.
23015 (input_suffix_matches): Remove special handling for .s and
23017 (input_spec_matches): New.
23018 (handle_braces): Handle %{,.
23019 (validate_switches): ',' indicates a value which is not a switch.
23020 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
23021 to detect assembler input.
23022 * config/i386/sol2.h (CPP_SPEC): Likewise.
23023 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23024 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23025 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
23026 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23027 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
23028 -m64 causes deployment target to default to 10.5.
23029 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
23031 2007-03-09 Richard Henderson <rth@redhat.com>
23034 * target.h (targetm.asm.out.reloc_rw_mask): New.
23035 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
23036 (TARGET_ASM_OUT): Use it.
23037 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
23038 * varasm.c (categorize_decl_for_section): Remove shlib argument;
23039 use the new reloc_rw_mask target hook instead.
23040 (default_section_type_flags_1): Merge into...
23041 (default_section_type_flags): ... here.
23042 (decl_readonly_section_1): Merge into...
23043 (decl_readonly_section): ... here.
23044 (default_elf_select_section_1): Merge into...
23045 (default_elf_select_section): ... here.
23046 (default_unique_section_1): Merge into...
23047 (default_unique_section): ... here.
23048 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
23049 (default_select_rtx_section): Use it.
23050 (default_elf_select_rtx_section): Likewise.
23051 * output.h: Update to match.
23052 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
23053 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
23054 (TARGET_ASM_RELOC_RW_MASK): New.
23055 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
23056 to categorize_decl_for_section.
23057 (x86_64_elf_unique_section): Likewise.
23058 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
23059 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
23060 (TARGET_ASM_RELOC_RW_MASK): New.
23061 * config/ia64/ia64.c (ia64_rwreloc_select_section,
23062 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
23063 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
23064 (TARGET_RWRELOC): Remove.
23065 (ia64_section_type_flags): Adjust call to default_section_type_flags.
23066 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
23067 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
23068 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
23069 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
23070 (rs6000_xcoff_select_section): Use decl_readonly_section.
23071 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
23072 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
23073 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
23074 (TARGET_SECTION_TYPE_FLAGS): Remove.
23075 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
23077 2007-03-09 Roger Sayle <roger@eyesopen.com>
23079 * fold-const.c (fold_comparison): Remove compile-time evaluation of
23080 complex constant equality/inequality comparisons for here.
23081 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
23082 known at compile-time or can be simplified to a scalar comparison.
23083 (fold_relational_const): Move compile-time evaluation of complex
23084 constant equality/inequality comparisons to here.
23086 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23088 PR rtl-optimization/30643
23089 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
23091 (fold_rtx): Recurse, like before 2006-11-03.
23093 2007-03-09 DJ Delorie <dj@redhat.com>
23095 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
23098 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
23100 PR tree-optimization/30375
23101 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
23102 LHS of statements is not the same.
23103 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
23105 2007-03-09 Chao-ying Fu <fu@mips.com>
23107 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
23109 * doc/invoke.texi (-mdspr2): Document new option.
23110 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
23111 New unspec for DSP REV 2.
23112 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
23113 these instructions are extended in DSP REV 2.
23114 (mips-dspr2.md): Include.
23115 * config/mips/mips.opt (mdspr2): New option.
23116 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
23117 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
23118 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
23119 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
23120 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
23121 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
23122 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
23124 (bdesc_map): Add one field of unsupported_target_flags.
23125 (bdesc_arrays): Update entries to have extra fields. Add
23127 (mips_init_builtins): Initialize new function types.
23128 Check unsupported_target_fileds to filter out builtins.
23129 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
23131 (ASM_SPEC): Pass mdspr2 to the assembler.
23132 * config/mips/mips-dspr2.md: New file.
23134 2007-03-09 Sa Liu <saliu@de.ibm.com>
23136 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
23138 2007-03-09 Ian Lance Taylor <iant@google.com>
23140 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
23141 argument) like -Wstrict-overflow=2.
23142 * doc/invoke.texi (Warning Options): Update documentation.
23144 2007-03-09 Dirk Mueller <dmueller@suse.de>
23147 * doc/invoke.texi (-Wlogical-op): Document.
23148 * common.opt (-Wlogical-op): New.
23149 * c-common.h (warn_logical_operator): Declare.
23150 * c-common.c (warn_logical_operator): Define.
23151 * c-typeck.c (parser_build_binary_op): Call
23152 warn_logical_operator.
23154 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23156 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
23157 * final.c (final_scan_insn): Test for non-"" file name.
23159 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
23161 * doc/loop.texi: Document the Omega linear constraints solver.
23162 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
23163 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
23164 omega-hash-table-size, omega-max-keys, and
23165 omega-eliminate-redundant-constraints.
23166 * tree-pass.h (pass_check_data_deps): Declared.
23169 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
23170 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
23171 pass_check_data_deps): New.
23172 * tree-data-ref.c (init_data_ref): Remove declaration.
23173 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
23174 (analyze_array): Renamed init_array_ref, move up initializations.
23175 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
23176 Removed arguments that are set to NULL.
23177 (analyze_indirect_ref): Correct indentation, correct call to
23179 (object_analysis): Call init_array_ref instead of analyze_array.
23180 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
23181 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
23182 of DR_ACCESS_FNS_ADDR.
23183 (init_omega_eq_with_af, omega_extract_distance_vectors,
23184 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
23185 ddr_consistent_p): New.
23186 (compute_affine_dependence): Check consistency of ddrs when
23187 flag_check_data_deps is passed.
23188 (analyze_all_data_dependences): Uncomment.
23189 (tree_check_data_deps): New.
23190 * tree-data-ref.h: Include omega.h.
23191 (DR_ACCESS_FNS_ADDR): Removed.
23192 (data_dependence_relation): Add inner_loop.
23193 (DDR_INNER_LOOP): New.
23194 * common.opt (fcheck-data-deps): New.
23195 * tree-flow.h (tree_check_data_deps): Declare.
23196 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
23197 (OBJS-common): Depend on omega.o.
23199 * passes.c (pass_check_data_deps): Scheduled.
23200 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
23201 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
23202 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
23203 PARAM_VECT_MAX_VERSION_CHECKS,
23204 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
23206 2007-03-09 Richard Guenther <rguenther@suse.de>
23208 PR tree-optimization/30904
23209 PR middle-end/31058
23210 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
23211 the same way as *_DIV_EXPR.
23213 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23215 * recog.c (decode_asm_operands): No mixed declarations and code.
23217 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23219 * rtl.def (ASM_INPUT): Add location.
23220 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
23221 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
23222 (decode_asm_operands): Add loc operand.
23223 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
23224 * stmt.c (expand_asm): Rename to...
23225 (expand_asm_loc): ... this. Add locus argument. Pass it on to
23226 gen_rtx_ASM_INPUT_loc.
23227 (expand_asm_expr): Adjust.
23228 * recog.c (decode_asm_operands): Add loc operand.
23229 (check_asm_operands, extract_insn): Adjust.
23230 * reload1.c (maybe_fix_stack_asms): Likewise.
23231 * final.c (asm_insn_count): Likewise.
23232 (final_scan_insn): Output # line before and after asm.
23234 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
23236 * tree-ssa-structalias.c (variable_info): Remove
23238 (new_var_info): Ditto.
23239 (shared_bitmap_info_t): New structure.
23240 (shared_bitmap_table): New variable.
23241 (shared_bitmap_hash): New function.
23242 (shared_bitmap_eq): Ditto
23243 (shared_bitmap_lookup): Ditto.
23244 (shared_bitmap_add): Ditto.
23245 (merge_smts_into): Change to take bitmap directly.
23246 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
23247 (init_alias_vars): Init shared bitmap hashtable.
23248 (delete_points_to_sets): Delete shared bitmap hashtable.
23249 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
23250 is_aliased removal as a change that was still necessary was
23253 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
23255 * config/i386/i386.h (override_options): Conditionally disable
23256 x86_sahf for 64bit targets only.
23258 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
23261 * c-decl.c (merge_decls): Don't call make_var_volatile.
23262 * varasm.c (make_var_volatile): Remove.
23263 * output.h (make_var_volatile): Remove.
23265 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
23267 PR tree-optimization/31085
23268 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
23270 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23272 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
23273 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
23274 ATTR_CONST_NOTHROW_LIST.
23276 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
23279 2007-03-08 Diego Novillo <dnovillo@redhat.com>
23281 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
23283 2007-03-08 Geoffrey Keating <geoffk@apple.com>
23286 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
23288 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
23289 passed, use shared libgcc.
23291 2007-03-08 Roger Sayle <roger@eyesopen.com>
23293 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
23294 instead of calling build2 with a GIMPLE_MODIFY_STMT.
23295 (honor_protect_cleanup_actions, lower_try_finally_switch):
23297 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
23298 ifc_temp_var): Likewise.
23299 * tree-inline.c (setup_one_parameter): Likewise.
23300 * tree-mudflap.c (mf_decl_cache_locals,
23301 mf_build_check_statement_for): Likewise.
23302 * tree-nested.c (init_tmp_var, save_tmp_var,
23303 finalize_nesting_tree_1): Likewise.
23304 * tree-outof-ssa.c (insert_copy_on_edge,
23305 insert_backedge_copies): Likewise.
23306 * tree-profile.c (tree_gen_edge_profiler,
23307 tree_gen_ic_profiler): Likewise.
23308 * tree-scalar-evolution.c (scev_const_prop): Likewise.
23309 * tree-sra.c (sra_build_assignment): Likewise.
23310 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
23311 * tree-ssa-math-opts.c (insert_reciprocals,
23312 execute_cse_sincos_1): Likewise.
23313 * tree-tailcall.c (adjust_accumulator_values,
23314 adjust_return_value): Likewise.
23315 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
23316 * tree-vect-transform.c (vect_create_data_ref_ptr,
23317 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
23318 vect_create_epilog_for_reduction, vectorizable_reduction,
23319 vectorizable_call, vectorizable_conversion,
23320 vectorizable_assignment, vectorizable_operation,
23321 vectorizable_type_demotion, vect_gen_widened_results_half,
23322 vect_permute_store_chain, vectorizable_store,
23323 vect_setup_realignment, vect_permute_load_chain,
23324 vectorizable_load, vectorizable_condition,
23325 vect_create_cond_for_align_checks): Likewise.
23326 * tree-vrp.c (build_assert_expr_for): Likewise.
23328 2007-03-08 Ian Lance Taylor <iant@google.com>
23330 * tree-vrp.c: Include "intl.h".
23331 (usable_range_p): New static function.
23332 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
23333 overflowed values, juts set *strict_overflow_p.
23334 (compare_values): Only return -2 if one of the operands is not a
23336 (compare_ranges): Call usable_range_p.
23337 (compare_range_with_value): Likewise.
23338 (vrp_evaluate_conditional_warnv): Rename from
23339 vrp_evaluate_conditional. Make static. Change all callers.
23340 (vrp_evaluate_conditional): New function.
23341 (simplify_div_or_mod_using_ranges): Issue warning about reliance
23342 on signed overflow.
23343 (simplify_abs_using_ranges): Likewise.
23344 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
23345 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
23346 within_stmt parameter.
23347 * tree-ssa-propagate.c (fold_predicate_in): Update call to
23348 vrp_evaluate_conditional.
23349 * tree-ssa-threadedge.c
23350 (record_temporary_equivalences_from_stmts_at_dest): Change
23351 simplify parameter to take a second tree parameter.
23352 (simplify_control_stmt_condition): Likewise.
23353 (thread_across_edge): Likewise.
23354 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
23355 (thread_across_edge): Likewise.
23356 * Makefile.in (tree-vrp.o): Depend upon intl.h.
23358 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
23360 * config/i386/i386.h (TARGET_SAHF): New define.
23361 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
23362 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
23363 (x86_sahf): New global variable.
23364 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
23365 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
23366 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
23367 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
23369 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
23370 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
23371 when expanding fcomi/sahf based tests.
23372 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
23373 expanding sahf based alternative. Emit sahf based sequence when
23374 optimizing for code size.
23375 * config/i386/i386.md (x86_sahf_1): Do not disable for
23376 TARGET_64BIT, enable for TARGET_SAHF.
23378 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
23380 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
23381 spurious whitespace from error message.
23383 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
23386 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
23388 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
23390 * c-decl.c (grokdeclarator): Disable warnings for anonymous
23392 * tree-sra.c (instantiate_element): Propagate disabled warnings
23393 from the element itself to the created variable.
23395 2007-03-07 Richard Henderson <rth@redhat.com>
23398 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
23399 silently fix up the stack in the case of a missing register.
23401 2007-03-07 Paul Brook <paul@codesourcery.com>
23403 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
23405 2007-03-07 Joseph Myers <joseph@codesourcery.com>
23407 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
23409 (phase1_vrs): Use them.
23410 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
23411 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
23412 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
23413 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
23414 __gnu_Unwind_Restore_WMMXC if required.
23415 (_Unwind_VRS_Pop): Implement iWMMXt support.
23416 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
23417 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
23418 gnu_Unwind_Save_WMMXC): Define.
23420 2007-03-07 Richard Sandiford <richard@codesourcery.com>
23422 * config/vxworks.h (vxworks_override_options): Declare.
23423 (VXWORKS_OVERRIDE_OPTIONS): Use it.
23424 * config/vxworks.c: Include target.h and toplev.h.
23425 (vxworks_override_options): New function.
23426 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
23428 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
23430 * config/s390/s390.c (override_options): Don't emit an error when
23431 -mstack-size is used without providing -mstack-guard.
23432 (s390_emit_prologue): Choose stack_guard value automatically if not
23433 provided via command line.
23434 * doc/invoke.texi: Adjust description of -mstack-guard and
23437 2007-03-07 Richard Sandiford <richard@codesourcery.com>
23439 * config/i386/i386.c (output_set_got): Add a GOT initialization
23440 sequence for VxWorks PIC.
23441 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
23442 around labels as well as symbols. Use gotoff_operand instead
23443 of local_symbolic_operand.
23444 (legitimize_pic_address): Use gotoff_operand instead of
23445 local_symbolic_operand. Use @GOT accesses for labels as
23447 (ix86_output_addr_diff_elt): Use PC-relative rather than
23448 GP-relative offsets for VxWorks PIC.
23449 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
23450 no_new_pseudos. Check whether the returned register is op0.
23451 * config/i386/i386.md (tablejump): Use PC-relative rather than
23452 GP-relative offsets for VxWorks PIC.
23453 * config/i386/predicates.md (gotoff_operand): New predicate.
23455 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23457 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
23459 * config/vxworks-dummy.h: New file.
23460 * config/i386/i386.h: Include it.
23462 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
23464 * dwarf2out.c (is_inlined_entry_point): New
23465 (add_high_low_attributes): Emit DW_AT_entry_pc along with
23466 DW_AT_ranges if the first subblock is the entry point.
23468 2007-03-06 David Daney <ddaney@avtrex.com>
23470 * doc/install.texi (mips-*-*): Change recommended binutils
23473 2007-03-06 Anatoly Sokolov <aesok@post.ru>
23475 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
23476 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
23478 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
23479 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
23481 2007-03-06 Jan Hubicka <jh@suse.cz>
23483 * errors.h (warning, error, fatal, internal_error): Mark as cold.
23484 * predict.c (maybe_hot_bb): Cold functions are never hot; hot
23486 (probably_cold_bb_p): Cold functions are cold.
23487 (probably_never_executed_bb_p): Cold functions are cold.
23488 (tree_bb_level_predictions): Predict calls to cold functions as not
23490 (compute_function_frequency): Check hot/cold attributes.
23491 * function.h (function_frequency): Update comments.
23492 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
23493 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
23494 (c_common_att): Add cold and hot.
23496 * doc/extend.texi (hot,cold attributes): Document.
23498 2007-03-06 Andrew Haley <aph@redhat.com>
23500 * function.c (expand_function_end): Move blockage to just after we
23501 emit the label for the naked return from the function.
23503 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23505 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
23508 2007-03-06 Jan Hubicka <jh@suse.cz>
23510 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
23511 loaded for constant large models. Non-large 64bit PIC can do.
23512 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
23513 * cmodel.h: Add LARGE PIC.
23514 * i386.md (UNSPEC_PLTOFF): New.
23515 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
23517 (*call_1_rex64): Disable for large models.
23518 (*call_1_rex64_large): New.
23519 (*call_value_1_rex64): Disable for large models.
23520 (*call_value_1_rex64_large): New.
23521 (set_rip_rex4): New.
23522 (set_got_offset_rex64): New.
23523 * predicates.md (constant_call_address_operand): For large model
23524 constant calls are not possible.
23525 * i386-protos.h (construct_plt_address): Declare.
23526 * i386.c (override_options): Accept large models.
23527 (ix86_expand_prologue): Expand large PIC GOT pointer load.
23528 (legitimate_constant_p): Add new UNSPECs.
23529 (legitimate_pic_operand_p): Likewise.
23530 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
23531 (legitimize_pic_address): Do easy RIP relative way for TLS only for
23533 (output_pic_addr_const): Add PLTOFF.
23534 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
23535 (ix86_expand_move): Legitimize pic address when in PIC mode.
23536 (construct_plt_address): New function.
23537 (ix86_expand_call): Offload the address to register and use GOT
23538 pointer for large model.
23539 * invoke.texi (mcmodel=large): Update documentation.
23541 2007-03-06 Richard Henderson <rth@redhat.com>
23543 * config/i386/i386.c (x86_use_leave, x86_push_memory,
23544 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
23545 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
23546 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
23547 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
23548 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
23549 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
23550 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
23551 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
23552 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
23553 x86_partial_reg_dependency, x86_memory_mismatch_stall,
23554 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
23555 x86_sse_partial_reg_dependency, x86_sse_split_regs,
23556 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
23557 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
23558 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
23559 x86_schedule, x86_use_bt, x86_pad_returns,
23560 x86_use_xchgb): Merge into ...
23561 (ix86_tune_features): ... here. New array.
23562 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
23563 x86_bswap): Merge into ...
23564 (ix86_arch_features): ... here. New array.
23565 (x86_3dnow_a): Remove.
23566 (x86_accumulate_outgoing_args): Make static.
23567 (x86_arch_always_fancy_math_387): Make static.
23568 (ix86_tune_mask, ix86_arch_mask): Move ...
23569 (override_options): ... to local variables here. Apply the
23570 appropriate mask to each element of ix86_arch_features and
23571 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
23572 as were done in the old macros.
23573 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
23574 * config/i386/i386.h (x86_use_leave, x86_push_memory,
23575 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
23576 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
23577 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
23578 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
23579 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
23580 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
23581 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
23582 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
23583 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
23584 x86_partial_reg_dependency, x86_memory_mismatch_stall,
23585 x86_accumulate_outgoing_args, x86_prologue_using_move,
23586 x86_epilogue_using_move, x86_decompose_lea,
23587 x86_arch_always_fancy_math_387, x86_shift1,
23588 x86_sse_partial_reg_dependency, x86_sse_split_regs,
23589 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
23590 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
23591 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
23592 x86_use_incdec, x86_pad_returns, x86_bswap,
23593 x86_partial_flag_reg_stall): Remove.
23594 (enum ix86_tune_indices): New.
23595 (ix86_tune_features): New.
23596 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
23597 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
23598 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
23599 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
23600 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
23601 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
23602 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
23603 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
23604 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
23605 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
23606 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
23607 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
23608 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
23609 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
23610 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
23611 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
23612 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
23613 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
23614 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
23615 TARGET_EXT_80387_CONSTANTS): Use it.
23616 (enum ix86_arch_indices): New.
23617 (ix86_arch_features): New.
23618 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
23619 TARGET_BSWAP): Use it.
23620 (ix86_tune_mask, ix86_arch_mask): Remove.
23622 2007-03-06 Joseph Myers <joseph@codesourcery.com>
23625 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
23626 Define using $${sysroot_headers_suffix}.
23627 * configure: Regenerate.
23628 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
23629 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
23631 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
23632 * gcc.c (print_sysroot_headers_suffix): New.
23633 (option_map): Include --print-sysroot-headers-suffix.
23634 (display_help): Mention -print-sysroot-headers-suffix.
23635 (process_command): Handle -print-sysroot-headers-suffix.
23636 (do_spec_1): Append multilib directory to include-fixed path if
23637 sysroot suffixes in use.
23638 (main): Handle -print-sysroot-headers-suffix.
23639 * Makefile.in (start.encap): Don't depend on xlimits.h
23640 (xlimits.h): Remove.
23641 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
23642 limits.h for each multilib in fixinc_list.
23643 (fixinc_list, s-fixinc_list): New.
23644 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
23645 generate them for each multilib in fixinc_list.
23646 (stmp-fixproto): Use include-fixed. Run fixproto for each
23647 multilib in fixinc_list.
23648 (mostlyclean): Don't remove xlimits.h.
23649 (clean): Remove include-fixed.
23650 (real-install-headers-tar, real-install-headers-cpio,
23651 real-install-headers-cp): Don't copy include, only include-fixed.
23652 (install-mkheaders): Depend on fixinc_list. Don't depend on
23653 xlimits.h. Save limits.h files for each multilib in fixinc_list.
23654 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
23655 SYSTEM_HEADER_DIR setting in mkheaders.conf.
23657 2007-03-06 Jan Hubicka <jh@suse.cz>
23659 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
23662 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23664 * configure.ac: Allow tm_file to contain build-directory files.
23665 * configure: Regenerate.
23666 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
23667 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
23668 * config/m68k/print-sysroot-suffix.sh: New file.
23670 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23672 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
23673 of pic_offset_table_rtx if reload_completed.
23674 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
23675 PIC_OFFSET_TABLE_REGNUM.
23676 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
23678 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
23679 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
23681 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23683 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
23684 functions that call eh_return.
23686 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23688 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
23689 functions that need a constant pool.
23691 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23694 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
23695 (m68k_preferred_reload_class): Likewise.
23696 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
23697 (SECONDARY_RELOAD_CLASS): Define.
23698 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
23699 (LIMIT_RELOAD_CLASS): Delete.
23700 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
23701 registers from storing bytes.
23702 (m68k_secondary_reload_class): New function.
23703 (m68k_preferred_reload_class): Likewise.
23705 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23707 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
23709 (m68k_expand_prologue): Likewise.
23711 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23713 * config/m68k/m68k-protos.h (output_sibcall): Declare.
23714 (mips_expand_epilogue): Add a bool parameter.
23715 (m68k_legitimize_sibcall_address): Declare.
23716 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
23717 (m68k_expand_epilogue): Add a parameter to select between sibling
23718 and normal epilogues. Only generate a return for the latter.
23719 (m68k_ok_for_sibcall_p): New function.
23720 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
23721 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
23722 (sibcall_value, *sibcall_value): Likewise.
23723 (*call, *call_value): Require !SIBLING_CALL_P.
23724 (epilogue): Update call to m68k_expand_epilogue.
23725 (sibcall_epilogue): New pattern.
23726 * config/m68k/predicates.md (const_call_operand): Say that this
23727 predicate applies to sibling calls too.
23728 (sibcall_operand): New predicate.
23730 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23732 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
23733 alternatives as movsi_cf.
23734 (movsf_cf_hard): Add commentary.
23736 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
23737 Richard Sandiford <richard@codesourcery.com>
23739 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
23740 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
23741 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
23742 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
23743 as being live on exit from an interrupt function.
23744 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
23745 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
23746 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
23747 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
23748 (m68k_interrupt_function_p): Globalize.
23749 (m68k_compute_frame_layout): Remove reverse mask code.
23750 (m68k_emit_movem, m68k_set_frame_related): New functions.
23751 (m68k_output_function_prologue): Delete in favor of...
23752 (m68k_expand_prologue): ...this new function.
23753 (m68k_output_function_epilogue): Delete in favor of...
23754 (m68k_expand_epilogue): ...this new function.
23755 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
23757 (print_operand): Handle %?.
23758 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
23759 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
23760 (prologue, epilogue): New patterns.
23761 (return): Turn into a define_expand.
23762 (*return): New pattern, derived from old "return" pattern. Use rte
23763 rather than rts for interrupt functions. Only use rtd if the pop
23765 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
23766 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
23767 (link, *link, unlink, *unlink, load_got): Likewise.
23769 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23773 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
23774 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
23775 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
23776 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
23777 and m68k_matches_u_p.
23778 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
23779 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
23780 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
23781 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
23782 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
23783 (REG_STRICT_P): New macro.
23784 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
23785 PCREL_GENERAL_OPERAND_OK.
23786 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
23787 m68k_legitimate_base_reg_p.
23788 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
23789 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
23790 (PIC_CASE_VECTOR_ADDRESS): Update comment.
23791 * config/m68k/m68k.c (m68k_address): New structure.
23792 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
23793 (m68k_decompose_index, m68k_legitimate_constant_address_p)
23794 (m68k_jump_table_ref_p, m68k_decompose_address)
23795 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
23796 (m68k_matches_u_p): New functions.
23797 (print_operand_address): Rewrite to use m68k_decompose_index.
23799 2007-03-05 David Taylor <dtaylor@emc.com>
23801 * gcc.c: Correct copyright date in --version output.
23803 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23805 * pa.md: In unamed move patterns, disparge copies between general
23806 and floating point registers using '?' modifier. Don't include 'f'
23807 constraint for register preferences in DImode, SImode, HImode and
23808 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
23809 Remove constraints for copies between general and floating registers
23810 in soft-float DFmode pattern.
23811 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
23815 2007-03-05 Mike Stump <mrs@apple.com>
23817 * c-common.c (targetcm): Add.
23818 * c-opts.c (c_common_handle_option): Handle language specific
23820 * opts.c (handle_option): Verify language for target options, if
23822 * opth-gen.awk: Add CL_LANG_ALL.
23823 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
23824 (TARGETCM_INITIALIZER): Add.
23825 * target.h (struct gcc_targetcm): Add.
23827 * targhooks.c (default_handle_c_option): Add.
23828 * targhooks.h (default_handle_c_option): Add.
23829 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
23831 * config/darwin.opt (iframework): Add.
23832 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
23833 * config/darwin-c.c (handle_c_option): Add.
23834 (TARGET_HANDLE_C_OPTION): Add.
23836 * doc/invoke.texi (Darwin Options): Add -iframework.
23838 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23840 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
23843 2007-03-05 Ian Lance Taylor <iant@google.com>
23845 * c.opt (fgnu89-inline): New option.
23846 * c-opts.c (c_common_post_options): Set default value for
23848 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
23849 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
23851 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
23852 (grokdeclarator, start_function): Likewise.
23853 * c-cppbuiltin.c (c_cpp_builtins): Define either
23854 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
23855 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
23856 (C Dialect Options): Document -fgnu89-inline.
23857 * doc/extend.texi (Function Attributes): Explain what the
23858 gnu_inline attribute does.
23859 * doc/cpp.texi (Common Predefined Macros): Document
23860 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
23862 2007-03-05 Ian Lance Taylor <iant@google.com>
23864 PR tree-optimization/31034
23865 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
23866 half-range if the other side is an overflow infinity.
23868 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
23870 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
23871 (bfin*-linux-uclibc*): New configuration.
23872 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
23874 * config/bfin/linux.h: New file.
23875 * config/bfin/libgcc-bfin.ver: New file.
23876 * config/bfin/t-bfin-uclinux: New file.
23877 * config/bfin/t-bfin-linux: New file.
23878 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
23879 (TARGET_OS_CPP_BUILTINS): New macro.
23881 2007-03-05 Richard Guenther <rguenther@suse.de>
23883 * fold-const.c (fold_binary): Remove duplicate folding
23884 of comparison of non-null ADDR_EXPR against null.
23886 2007-03-05 Richard Guenther <rguenther@suse.de>
23887 Dorit Nuzman <dorit@il.ibm.com>
23889 PR tree-optimization/26420
23890 * tree-vectorizer.c (vectorize_loops): Bail out early if there
23891 are no loops in the function. Only print the number of
23892 vectorized loops if it is greater than zero or we are supposed
23893 to print information about unvectorized loops.
23895 2007-03-05 Revital Eres <eres@il.ibm.com>
23897 * gcc.dg/var-expand1.c: New test.
23898 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
23899 when an accumulator is expanded.
23901 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23904 * c-common.c (convert_and_check): Don't give warnings for
23905 conversion if 'expr' already overflowed.
23907 2007-03-04 Roger Sayle <roger@eyesopen.com>
23909 PR middle-end/30744
23910 * fold-const.c (fold_comparison): Enforce type consistency when
23911 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
23913 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
23915 * tree-ssa-address.c (create_mem_ref): Do not put an expression
23916 containing a cast to the base of TARGET_MEM_REF.
23918 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
23920 * tree.c (tree_contains_struct_check_failed): Remove spurious
23921 whitespace from error message.
23923 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
23926 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
23927 instead of precision.
23929 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
23930 Nathan Sidwell <nathan@codesourcery.com>
23932 * emit-rtl.c (find_auto_inc): New.
23933 (try_split): recreate REG_INC notes,
23934 Use regular for loops rather than whiles.
23936 2007-03-03 Andreas Schwab <schwab@suse.de>
23938 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
23939 * configure: Regenerate.
23941 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23943 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
23944 flag_rounding_math, not flag_unsafe_math_optimizations.
23946 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
23948 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
23949 alpha_fold_vector_minmax): Likewise.
23950 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
23951 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
23953 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
23955 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
23956 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
23957 if the lhs has side-effects.
23958 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
23960 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
23962 * config/i386/i386.h (TUNEMASK): Remove define.
23963 (ARCHMASK): Remove define.
23964 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
23965 Use ix86_arch_mask variable instead of ARCHMASK.
23966 * config/i386/i386.c (override_options): Ditto.
23967 (standard_80387_constant_p): Ditto.
23969 2007-03-02 Ian Lance Taylor <iant@google.com>
23971 Used signed infinities in VRP.
23972 * tree-vrp.c (uses_overflow_infinity): New static function.
23973 (supports_overflow_infinity): New static function.
23974 (make_overflow_infinity): New static function.
23975 (negative_overflow_infinity): New static function.
23976 (positive_overflow_infinity): New static function.
23977 (is_negative_overflow_infinity): New static function.
23978 (is_positive_overflow_infinity): New static function.
23979 (is_overflow_infinity): New static function.
23980 (overflow_infinity_range_p): New static function.
23981 (compare_values_warnv): New function split out of compare_values.
23982 (compare_value): Call it.
23983 (set_value_range_to_nonnegative): Add overflow_infinity
23984 parameter. Change caller.
23985 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
23987 (vrp_expr_computes_nonzero): Likewise.
23988 (compare_ranges, compare_range_with_value): Likewise.
23989 (compare_name_with_value, compare_names): Likewise.
23990 (vrp_evaluate_conditional): Likewise.
23991 (set_value_range): Handle infinity
23992 (vrp_operand_equal_p, operand_less_p): Likewise.
23993 (extract_range_from_assert): Likewise.
23994 (vrp_int_const_binop): Likewise.
23995 (extract_range_from_binary_expr): Likewise.
23996 (extract_range_from_unary_expr): Likewise.
23997 (extract_range_from_comparison): Likewise.
23998 (extract_range_from_expr): Likewise.
23999 (dump_value_range): Likewise.
24000 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
24001 (test_for_singularity): Likewise.
24002 (vrp_int_const_binop): Remove inline qualifier.
24003 (adjust_range_with_scev): Add comment.
24004 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
24006 2007-03-02 Diego Novillo <dnovillo@redhat.com>
24008 * tree-ssa-structalias.c (could_have_pointers): Tidy.
24009 (get_constraint_for): Likewise.
24010 (do_structure_copy): Likewise.
24011 (find_func_aliases): Fix references to MODIFY_EXPR.
24012 (intra_create_variable_infos): Tidy.
24013 * tree-ssa-operands.c (add_virtual_operand): Add argument
24015 When adding members of alias sets, if IS_CALL_SITE is true and
24016 the symbol is not call-clobbered, skip it.
24017 Adjust all callers.
24019 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
24021 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
24022 entry by means of emit_insn_at_entry.
24024 2007-03-02 Richard Henderson <rth@redhat.com>
24026 * expr.h (promoted_input_arg): Remove decl.
24027 * function.c (promoted_input_arg): Merge into ...
24028 * combine.c (setup_incoming_promotions): ... only caller.
24029 Rearrange to avoid double loop.
24031 2007-03-02 Ben Elliston <bje@au.ibm.com>
24032 Peter Bergner <bergner@vnet.ibm.com>
24033 Janis Johnson <janis187@us.ibm.com>
24035 * config/rs6000/dfp.md: New file.
24036 * config/rs6000/rs6000.md: Include dfp.md.
24037 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
24038 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
24039 and TDmode decimal float modes in FP registers.
24040 (num_insns_constant): Likewise.
24041 (rs6000_legitimate_offset_address_p): Likewise.
24042 (rs6000_legitimize_address): Likewise.
24043 (rs6000_legitimize_reload_address): Likewise.
24044 (rs6000_legitimate_address): Likewise.
24045 (rs6000_emit_move): Likewise.
24046 (function_arg_boundary): Likewise.
24047 (function_arg_advance): Likewise.
24048 (rs6000_darwin64_record_arg_recurse): Likewise.
24049 (function_arg): Likewise.
24050 (rs6000_gimplify_va_arg): Likewise.
24051 (rs6000_split_multireg_move): Likewise.
24052 (rs6000_output_function_epilogue): Likewise.
24053 (rs6000_output_function_epilogue): Likewise.
24054 (rs6000_register_move_cost): Likewise.
24055 (rs6000_function_value): Likewise.
24056 (rs6000_libcall_value): Likewise.
24058 2007-03-02 Richard Sandiford <richard@codesourcery.com>
24060 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
24062 2007-03-02 Richard Sandiford <richard@codesourcery.com>
24064 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
24065 Use $MULTIDIR to choose between the kernel and RTP headers,
24066 and use $WIND_BASE and $WIND_USR to locate them.
24068 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
24070 * config/i386/i386.c (override_options): Put initialization of
24071 ix86_tune_mask and ix86_arch_mask to the correct place.
24073 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
24074 Michael Meissner <michael.meissner@amd.com>
24077 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
24078 (ARCHMASK): Define.
24079 (TARGET_CMOVE): Use ARCHMASK.
24080 (TARGET_CMPXCHG): Ditto.
24081 (TARGET_CMPXCHG8B): Ditto.
24082 (TARGET_XADD): Ditto.
24083 (TARGET_BSWAP): Ditto.
24084 * config/i386/i386.c (ix86_tune_mask): New global variable.
24085 (ix86_arch_mask): Ditto.
24086 (override_options): Initialize ix86_tune_mask and
24087 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
24090 2007-03-02 Ben Elliston <bje@au.ibm.com>
24093 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
24095 2007-03-02 Joseph Myers <joseph@codesourcery.com>
24097 * target.h (init_dwarf_reg_sizes_extra): New target hook.
24098 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
24099 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
24100 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
24102 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
24103 rs6000_init_dwarf_reg_sizes_extra): New.
24104 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
24105 SPE register high parts.
24107 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
24109 * Makefile.in: Add install-pdf target as
24110 copied from automake v1.10 rules.
24111 * configure.ac: Add install-pdf to target list.
24112 * configure: Regenerate.
24114 2007-03-01 Paul Brook <paul@codesourcery.com>
24116 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
24117 modes to LDRD for DImode.
24118 (output_move_double): Fixup out of range ldrd/strd.
24119 (vfp_secondary_reload_class): Rename...
24120 (coproc_secondary_reload_class): ... to this. Add wb argument.
24121 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
24122 coproc_secondary_reload_class for CLASS_IWMMXT.
24123 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
24124 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
24126 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
24128 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
24129 unroll factor by the estimated number of iterations.
24130 (loop_prefetch_arrays): Do not prefetch in loops that iterate less
24131 than prefetch latency.
24133 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
24134 decode_caches_intel, detect_caches_intel): New functions.
24135 (host_detect_local_cpu): Use detect_caches_amd and
24136 detect_caches_intel.
24138 2007-03-01 Richard Henderson <rth@redhat.com>
24140 * expr.c (emit_move_complex_push): Export.
24141 (emit_move_complex_parts): Split out from ...
24142 (emit_move_complex): ... here.
24143 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
24144 * config/i386/i386.md (movcdi): New.
24146 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
24148 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
24149 size of mode1 to check for tieable modes in MMX case.
24151 2007-03-01 Richard Sandiford <richard@codesourcery.com>
24153 * Makefile.in (rtlanal.o): Depend on tree.h.
24154 * rtl.h (offset_within_section_p, split_const): Declare.
24155 * rtlanal.c: Include tree.h.
24156 (offset_within_block_p): New function, taken from
24157 mips_offset_within_object_p.
24158 (split_const): New function, taken from mips_split_const.
24159 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
24161 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
24162 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
24163 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
24164 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
24165 (m68k_illegitimate_symbolic_constant_p): New function.
24166 * config/m68k/m68k.md (movsi): Remove misleading predicates.
24167 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
24168 symbolic constant that might be outside the symbol's section,
24169 move the symbol first and then add the offset.
24170 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
24172 * config/mips/mips.c (mips_split_const): Delete.
24173 (mips_offset_within_object_p): Delete.
24174 (mips_symbolic_constant_p): Use offset_within_section_p and
24175 split_const instead of mips_offset_within_object_p and
24177 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
24178 (mips_legitimize_const_move, print_operand_reloc)
24179 (mips_dangerous_for_la25_p): Use split_const instead of
24182 2007-02-28 Eric Christopher <echristo@apple.com>
24184 * Makefile.in (install-include-dir): Don't rm -rf include.
24186 2007-02-28 Richard Guenther <rguenther@suse.de>
24188 PR middle-end/30364
24189 * fold-const.c (fold_binary): Do not associate expressions
24190 with more than one variable for integer types that do not wrap.
24192 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
24194 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
24195 Delete, and replace with...
24196 (fold_builtin_call_array): This. Update callers to use it.
24197 * fold-const.c (fold_build_call_list): Delete, and replace with...
24198 (fold_build_call_array): This.
24199 (fold_build_call_list_initializer): Delete, and replace with...
24200 (fold_build_call_array_initializer): This.
24201 * tree.h: Update declarations to reflect above changes.
24203 * c-typeck.c (build_function_call): Store converted arguments
24204 in a stack-allocated array instead of building a list.
24205 (convert_arguments): Store arguments in the array passed in as an
24206 argument, and return the actual number of arguments.
24207 * c-format.c: (check_function_format): Pass arguments in an
24208 array instead of a list.
24209 * c-common.c (check_function_nonnull): Likewise.
24210 (check_function_sentinel): Likewise.
24211 (check_function_arguments): Likewise.
24212 * c-common.h: Update declarations to reflect above changes.
24214 2007-02-28 Jan Hubicka <jh@suse.cz>
24216 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
24217 PRED_NEGATIVE_RETURN): Update outcomes.
24219 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
24221 * calls.c (emit_library_call_value_1): Handle partial registers
24222 correctly when building up CALL_INSN_FUNCTION_USAGE.
24224 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24226 * pa/predicates.md (move_src_operand): Allow zero for mode.
24227 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
24230 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
24233 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
24234 *movv2df_internal): Enable pattern only for valid operand
24236 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
24237 tie only 128bit modes. For MMX registers, tie only 64bit modes.
24239 2007-02-27 Mike Stump <mrs@apple.com>
24241 * config/darwin-crt3.c: Avoid compilation when compiling for a
24244 2007-02-27 Joseph Myers <joseph@codesourcery.com>
24246 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
24248 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
24249 for fixed headers and limits.h.
24250 (install-include-dir, install-headers-tar, install-headers-cpio,
24251 install-headers-cp, real-install-headers-tar,
24252 real-install-headers-cpio, real-install-headers-cp): Handle
24253 include-fixed as well as include.
24254 (install-mkheaders): Don't install files that go only in include
24256 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
24257 from GCC_INCLUDE_DIR.
24258 * gcc.c (process_command): Remove special -BstageN/ handling.
24259 (do_spec_1): Add include-fixed directories.
24261 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24263 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
24265 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
24267 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
24270 2007-02-27 Mark Mitchell <mark@codesourcery.com>
24272 * c-common.c (get_priority): Add check for
24273 SUPPORTS_INIT_PRIORITY.
24275 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24277 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
24279 * config/bfin/bfin.c: Include "cfglayout.h".
24280 (MAX_LSETUP_DISTANCE): New macro.
24281 (struct loop_info): New members incoming, incoming_src and
24282 incoming_dest. Delete member predecessor.
24283 (length_for_loop): New function.
24284 (bfin_optimize_loop): Handle more different loop structures.
24285 (bfin_discover_loop): Rework detection of predecessor blocks by
24286 examining incoming edges.
24287 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
24289 (bfin_reorder_loops): New function.
24290 (bfin_reorg_loops): Use these three new functions.
24292 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
24293 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
24294 (CONSTRAINT_LEN): Add entry for 'q'.
24295 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
24296 Add 'q' constraints.
24297 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
24298 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
24300 * config/bfin/bfin.md (add_with_carry): New pattern.
24301 (s_or_u, su_optab, su_modifier): New code macros/attrs.
24302 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
24303 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
24304 support unsigned multiplies too. Removed incorrect commutativity from
24305 operand 1 constraint where appropriate.
24306 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
24308 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
24309 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
24311 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
24312 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
24313 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
24314 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
24315 usmulhisi_hh_huh): New patterns.
24317 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
24318 lshifthi3): Fix output template to use half reg for operand 2.
24320 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
24323 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
24325 2007-02-27 Andreas Schwab <schwab@suse.de>
24327 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
24329 2007-02-27 Jan Hubicka <jh@suse.cz>
24331 * predict.c (last_basic_block_p): Remove.
24332 (tree_estimate_probability): Update return heuristic for commonized
24335 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
24337 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
24339 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
24341 * doc/include/gcc-common.texi (versionsubtitle): New macro.
24342 * doc/cpp.texi: Standardize title page.
24343 * doc/cppinternals.texi: Likewise.
24344 * doc/gcc.texi: Standardize title page, remove version number
24345 from copyright page.
24346 * doc/gccint.texi: Likewise.
24347 * doc/install.texi: Standardize title page, add table of
24350 2007-02-26 Jan Hubicka <jh@suse.cz>
24352 * predict.def: Set outcomes according to more recent results.
24353 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
24354 Remove dead predictors.
24355 * predict.c (return_prediction): Fix pasto.
24357 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24359 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
24360 change; avoid a memory leak when returning early.
24362 2007-02-26 Mark Mitchell <mark@codesourcery.com>
24364 * c-decl.c (static_ctors): Move to c-common.c.
24365 (static_dtors): Likewise.
24366 (finish_function): Use c_record_cdtor_fn.
24367 (build_cdtor): Move to c-common.c.
24368 (c_write_global_declarations): Use c_build_cdtor_fns.
24369 * c-common.h (static_ctors): Declare.
24370 (static_dtors): Likewise.
24371 (c_record_cdtor_fn): Likewise.
24372 (c_build_cdtor_fns): Likewise.
24373 * c-common.c (static_ctors): New variable.
24374 (static_dtors): Likewise.
24375 (c_record_cdtor_fn): New function.
24376 (build_cdtor): Move from c-decl.c
24377 (c_build_cdtor_fns): New function.
24379 * output.h (assemble_addr_to_section): Declare.
24380 (get_cdtor_priority_section): Likewise.
24381 * varasm.c (assemble_addr_to_section): New function.
24382 (get_cdtor_priority_section): Likewise.
24383 (default_named_section_asm_out_destructor): Use them.
24384 (destor_dtor_section_asm_out_destructor): Likewise.
24385 (default_named_section_asm_out_constructor): Likewise.
24386 (default_ctor_section_asm_out_constructor): Likewise.
24387 * config.gcc (*-*-vxworks*): Include vxworks.o.
24388 * config/t-vxworks (vxworks.o): New target.
24389 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
24390 (TARGET_ASM_CONSTRUCTOR): Define.
24391 (TARGET_ASM_DESTRUCTOR): Likewise.
24392 (vxworks_asm_out_constructor): Declare.
24393 (vxworks_asm_out_destructor): Likewise.
24395 * c-common.c (get_priority): Check that we have not just an
24396 INTEGER_CST, but an integer constant with integeral type.
24398 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
24400 PR tree-optimization/30938
24401 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
24402 use &dt[nargs-1] instead of &dt[nargs] in the call to
24403 vect_is_simple_use().
24405 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
24407 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
24408 from register elimination as PRE_MODIFY / POST_MODIFY increments.
24409 Do not attempt to handle MEM inside auto-inc expressions.
24410 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
24411 of a register modified by an auto-inc expression. However, do handle
24412 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
24413 (elimination_effects): Prohibit elimination of a register modified
24414 by an auto-inc expression. Disable register elimination rules whose
24415 target register is modified by an auto-inc expression with variable
24418 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
24420 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
24422 (array_at_struct_end_p): New function.
24423 (idx_infer_loop_bounds): Use it.
24424 (estimate_numbers_of_iterations_loop): Export.
24425 * predict.c (predict_loops): Use estimated_loop_iterations_int.
24426 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
24427 (tree_estimate_probability): Call record_loop_exits.
24428 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
24429 (estimated_loop_iterations, estimated_loop_iterations_int,
24430 estimated_loop_iterations_tree): New functions.
24431 (analyze_siv_subscript_cst_affine,
24432 compute_overlap_steps_for_affine_1_2,
24433 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
24434 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
24435 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
24436 (PRED_LOOP_ITERATIONS_GUESSED): New.
24437 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
24438 * cfgloop.h (estimate_numbers_of_iterations_loop,
24439 estimated_loop_iterations_int): Declare.
24441 2007-02-25 Mark Mitchell <mark@codesourcery.com>
24443 * doc/extend.texi: Document optional priority argument to
24444 constructors and destructors.
24445 * tree.c (init_priority_for_decl): Adjust GTY markers.
24446 (init_ttree): Use priority-info hash functions for
24447 init_priority_for_decl.
24448 (tree_map_eq): Rename to ...
24449 (tree_map_base_eq): ... this.
24450 (tree_map_marked_p): Rename to ...
24451 (tree_map_base_marked_p): ... this.
24452 (tree_map_base_hash): New function.
24453 (decl_init_priority_lookup): Rework.
24454 (decl_fini_priority_lookup): New function.
24455 (decl_priority_info): New function.
24456 (decl_init_priority_insert): Use it.
24457 (decl_fini_priority_insert): Likewise.
24458 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
24460 (decl_restrict_base_insert): Likewise.
24461 (decl_debug_expr_insert): Likewise.
24462 (decl_value_expr_lookup): Likewise.
24463 (decl_value_expr_insert): Likewise.
24464 * tree.h (priority_type): New type.
24465 (decl_init_priority_lookup): Use priority_type.
24466 (decl_fini_priority_lookup): New function.
24467 (decl_init_priority_insert): Use priority_type.
24468 (decl_fini_priority_insert): New function.
24469 (DECL_HAS_INIT_PRIORITY): Tweak comments.
24470 (DECL_INIT_PRIORITY): Likewise.
24471 (SET_DECL_INIT_PRIORITY): Add comment.
24472 (DECL_FINI_PRIORITY): New macro.
24473 (SET_DECL_FINI_PRIORITY): Likewise.
24474 (DEFAULT_INIT_PRIORITY): Document.
24475 (MAX_INIT_PRIORITY): Likewise.
24476 (MAX_RESERVED_INIT_PRIORITY): Likewise.
24477 (tree_map_base): New type.
24478 (tree_map_base_eq): New function.
24479 (tree_map_base_hash): Likewise.
24480 (tree_map_base_marked_p): Likewise.
24481 (tree_map): Inherit from tree_map_base.
24482 (tree_map_eq): Make it a macro.
24483 (tree_map_marked_p): Likewise.
24484 (tree_int_map): Inherit from tree_map_base.
24485 (tree_int_map_eq): Make it a macro.
24486 (tree_int_map_hash): Likewise.
24487 (tree_int_map_marked_p): Likewise.
24488 (tree_priority_map): New type.
24489 (tree_priority_map_eq): New macro.
24490 (tree_priority_map_hash): Likewise.
24491 (tree_priority_map_marked_p): Likewise.
24492 * varasm.c (emults_decl): Adjust for refactoring of tree_map
24494 (emutls_common_1): Likewise.
24495 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
24496 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
24497 of tree_map hierarchy.
24498 * tree-cfg.c (move_stmt_r): Likewise.
24499 (new_label_mapper): Likewise.
24500 * c-tree.h (c_expand_body): Move to ...
24501 * c-common.h (c_expand_body): ... here.
24502 * c-decl.c (c_expand_body): Move to ...
24503 * c-common.c (c_expand_body): ... here.
24504 (c_common_attribute_table): Allow 1 argument for the constructor
24505 and destructor attributes.
24506 (get_priority): New function.
24507 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
24508 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
24510 2007-02-24 Jan Hubicka <jh@suse.cz>
24512 PR middle-end/30509
24513 * tree-inline.c (copy_bb): Produce exact copy of EH info when
24514 copying for inlining.
24516 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
24517 Jan Hubicka <jh@suse.cz>
24520 * i386.c (counter_mode): New function.
24521 (expand_set_or_movmem_via_loop): Use it.
24522 (expand_movmem_epilogue): Likewise; fix pasto.
24523 (ix86_expand_movmem): Do emit guard even for constant counts.
24524 (ix86_expand_setmem): Likewise.
24526 2007-02-25 Nick Clifton <nickc@redhat.com>
24528 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
24529 (JUMP_TABLES_IN_TEXT_SECTION): Define.
24531 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
24534 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
24535 count argument with 0x10, not with 0x16.
24536 (expand_setmem_epilogue): Ditto.
24538 2007-02-24 Mike Stump <mrs@apple.com>
24540 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
24543 2007-02-24 Richard Guenther <rguenther@suse.de>
24545 PR middle-end/30951
24546 * fold-const.c (fold_binary): Fold x +- CST op x for
24547 EQ_EXPR and NE_EXPR.
24549 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24551 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
24553 2007-02-24 Jan Hubicka <jh@suse.cz>
24555 * cgraphunit.c (decide_is_function_needed): Honor
24556 -fkeep-inline-functions.
24558 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24560 * builtins.c (fold_builtin_modf): New.
24561 (fold_builtin_2): Use it.
24563 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
24565 * loop-iv.c (implies_p): Detect additional cases where A implies B.
24566 (determine_max_iter): Take additional LOOP arg; all callers changed.
24567 Lose broken logic dealing with PLUS. Try to limit the upper bound by
24568 one using simplifications.
24569 (simplify_using_initial_values): Return if the expression becomes
24570 invalid due to altered regs.
24572 2007-02-23 DJ Delorie <dj@redhat.com>
24574 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
24576 2007-02-23 Mike Stump <mrs@apple.com>
24578 * tlink.c (scan_linker_output): Parse linker messages from
24579 darwin9's linker better.
24581 2007-02-23 Steve Ellcey <sje@cup.hp.com>
24584 * varpool.c (varpool_assemble_pending_decls): Set
24585 varpool_last_needed_node to null.
24587 2007-02-23 DJ Delorie <dj@redhat.com>
24589 * config/i386/i386.c (ix86_data_alignment): Don't specify an
24590 alignment bigger than the object file can handle.
24592 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
24595 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
24596 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
24597 (*movsf_1): Penalize MMX moves.
24599 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
24601 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
24602 2^32-1 or more times unless flag_unsafe_loop_optimizations.
24604 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
24606 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24608 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
24609 (fold_builtin_1): Use them.
24610 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
24611 BUILT_IN_SIGNIFICAND.
24613 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
24615 * config/i386/i386.c (bdesc_1arg): Initialize
24616 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
24617 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
24618 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
24619 and IX86_BUILTIN_MOVSLDUP.
24621 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
24623 PR rtl-optimization/30841
24624 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
24626 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24628 * builtins.c (fold_builtin_frexp): New.
24629 (fold_builtin_2): Use it.
24631 2007-02-22 Mark Mitchell <mark@codesourcery.com>
24633 * doc/invoke.texi (Spec Files): Document getenv spec function.
24635 * gcc.c (getenv_spec_function): New function.
24636 (static_spec_functions): Add it.
24637 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
24638 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
24641 2007-02-22 Michael Matz <matz@suse.de
24644 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
24645 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
24647 2007-02-22 Ian Lance Taylor <iant@google.com>
24650 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
24651 (mem_loc_descriptor): Call it.
24653 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
24654 Ira Rosen <irar@il.ibm.com>
24656 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
24658 2007-02-22 Ira Rosen <irar@il.ibm.com>
24660 PR tree-optimization/30843
24661 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
24662 stores only after all the group is vectorized.
24664 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
24666 PR tree-optimization/30858
24667 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
24668 in the reduction cycle have a single use in the loop.
24669 * tree-vectorizer.h (relevant): Add documentation.
24671 2007-02-20 Mike Stump <mrs@apple.com>
24673 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
24674 * configure: Regenerate.
24676 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
24678 Change the defaults of some parameters and options.
24679 * config/spu/spu-protos.h (spu_optimization_options): Declare.
24680 * config/spu/spu.c (spu_optimization_options): Add.
24681 (spu_override_options): Change params in spu_optimization_options.
24682 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
24684 Register 127 is only 16 byte aligned when used as a frame pointer.
24685 * config/spu/spu-protos.h (spu_init_expanders): Declare.
24686 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
24687 HARD_FRAME_POINTER_REGNUM.
24688 (spu_legitimate_address): Use regno_aligned_for_reload.
24689 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
24690 aligned when frame_pointer_needed is true.
24691 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
24693 * config/spu/spu.h (INIT_EXPANDERS): Define.
24695 Make sure shift and rotate instructions have valid immediate operands.
24696 * config/spu/predicates.md (spu_shift_operand): Remove.
24697 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
24698 * config/spu/constraints.md (W, O): Extend range.
24699 * config/spu/spu.md (umask, nmask): Define.
24700 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
24701 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
24702 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
24703 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
24704 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
24705 (lshr<mode>3_reg): Fix rtl description.
24707 Make sure mulhisi immediate operands are valid.
24708 * config/spu/predicates.md (imm_K_operand): Add.
24709 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
24711 Generate constants using fsmbi and andi.
24712 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
24713 (print_operand, spu_split_immediate, classify_immediate,
24714 fsmbi_const_p): Handle IC_FSMBI2.
24716 Correctly handle a CONST_VECTOR containing symbols.
24717 * config/spu/spu.c (print_operand): Handle HIGH correctly.
24718 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
24719 (immediate_load_p): Allow symbols that use 2 instructions to create.
24720 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
24721 with symbols when flag_pic is set.
24722 (const_vector_immediate_p): New.
24723 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
24724 accept a CONST_VECTOR with symbols.
24725 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
24726 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
24728 * config/spu/spu.md (high, low): Delete.
24729 (low_<mode>): Define.
24731 Remove INTRmode and INTR_REGNUM, which didn't work.
24732 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
24734 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
24735 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
24736 peephole2 pattern): Don't use INTR or 131.
24737 (movintrcc): Delete.
24738 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
24739 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
24740 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
24741 (UNSPEC_SET_INTR): Add.
24742 * config/spu/spu-modes.def (INTR): Remove.
24744 More accurate warnings about run-time relocations.
24745 * config/spu/spu.c (reloc_diagnostic): Test in_section.
24747 Correctly warn about immediate arguments to specific intrinsics.
24748 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
24749 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
24750 the instruction predicate.
24752 Fix tree check errors with latest update.
24753 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
24755 (spu_expand_builtin): Use CALL_EXPR_FN.
24757 Add missing specific intrinsics.
24758 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
24760 * config/spu/spu_internals.h: Ditto.
24762 Fix incorrect operand modifiers.
24763 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
24764 * config/spu/spu.md (xor<mode>3): Change %S to %J.
24766 Optimize one case of zero_extend of a vec_select.
24767 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
24769 Accept any immediate for hbr.
24770 * config/spu/spu.md (hbr): Change s constraints to i.
24772 2007-02-21 Paul Brook <paul@codesourcery.com>
24774 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
24775 condexec_count when skipping USE and CLOBBER.
24777 2007-02-21 Nick Clifton <nickc@redhat.com>
24779 * common.opt (Warray-bounds): Add Warning attribute.
24780 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
24782 (fsized-zeroes): Add Optimization attribute.
24783 (fsplit-wide-types, ftree-scev-cprop): Likewise.
24784 * c.opt (Wc++0x-compat): Add Warning attribute.
24786 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
24788 PR middle-end/30761
24789 * reload1.c (eliminate_regs_in_insn): In the single_set special
24790 case, attempt to re-recognize the insn before falling back to
24791 having reload fix it up.
24793 2007-02-20 Eric Christopher <echristo@gmail.com>
24795 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
24796 Rewrite accordingly.
24797 (frv_read_iacc_argument): Ditto.
24798 (frv_expand_set_builtin): Take a call instead of arglist, update for
24800 (frv_expand_unop_builtin): Ditto.
24801 (frv_expand_binop_builtin): Ditto.
24802 (frv_expand_cut_builtin): Ditto.
24803 (frv_expand_binopimm_builtin): Ditto.
24804 (frv_expand_voidbinop_builtin): Ditto.
24805 (frv_expand_int_void2arg): Ditto.
24806 (frv_expand_prefetches): Ditto.
24807 (frv_expand_voidtriop_builtin): Ditto.
24808 (frv_expand_voidaccop_builtin): Ditto.
24809 (frv_expand_load_builtin): Ditto.
24810 (frv_expand_store_builtin): Ditto.
24811 (frv_expand_mdpackh_builtin): Ditto.
24812 (frv_expand_mclracc_builtin): Ditto.
24813 (frv_expand_mrdacc_builtin): Ditto.
24814 (frv_expand_mwtacc_builtin): Ditto.
24815 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
24818 2007-02-20 Janis Johnson <janis187@us.ibm.com>
24820 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
24821 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
24823 (HAVE_GAS_DFP): Check for assembler support of decimal floating
24824 point instructions.
24825 * configure: Regenerate.
24826 * config.in: Regenerate.
24827 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
24828 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
24829 masks to power6 and power6x and to POWERPC_MASKS.
24830 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24832 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
24833 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
24834 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
24835 Access PROTOTYPE as variable, not mask.
24837 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
24839 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
24840 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
24841 * combine.c (adjust_for_new_dest): Use it.
24842 * postreload.c (reload_combine): Likewise.
24844 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
24846 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
24847 notes on an insn with multiple sets, even if single_set returns
24848 non-NULL for that insn.
24850 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24852 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
24853 scalbn and scalbln.
24855 2007-02-20 Geoffrey Keating <geoffk@apple.com>
24857 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
24858 if user didn't pass it.
24859 * config/i386/darwin.h (CC1_SPEC): Likewise.
24860 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
24861 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
24862 -mmacosx-version-min.
24864 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24865 Uros Bizjak <ubizjak@gmail.com>
24867 * optabs.h (enum optab_index): Add new OTI_scalb.
24868 (scalb_optab): Define corresponding macro.
24869 * optabs.c (init_optabs): Initialize scalb_optab.
24870 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
24872 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
24873 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
24874 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
24875 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
24876 flag_unsafe_math_optimizations is set.
24878 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
24879 to implement scalbf, scalb and scalbl built-ins as inline x87
24882 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24883 DJ Delorie <dj@redhat.com>
24886 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
24887 (diagnostic_report_diagnostic): ... here, and turn them into real
24888 errors. If warnings are inhibited, no need to do anything.
24890 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
24892 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
24893 better code generation.
24895 2007-02-20 Ben Elliston <bje@au.ibm.com>
24897 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
24899 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
24901 * config/alpha/alpha.c, config/alpha/alpha.md,
24902 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
24903 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
24904 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
24905 config/arm/lib1funcs.asm: Follow spelling conventions.
24907 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
24908 config/fr30/fr30.md, config/i386/i386.h,
24909 config/iq2000/iq2000.h, config/iq2000/predicates.md,
24910 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
24911 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
24912 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
24913 config/rs6000/altivec.md, config/rs6000/rs6000.c,
24914 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
24915 config/sparc/sparc.c, config/sparc/sparc.h,
24916 config/sparc/sparc.md, config/spu/constraints.md,
24917 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
24920 2007-02-20 Alan Modra <amodra@bigpond.net.au>
24923 * varasm.c (use_blocks_for_decl_p): Return false for decls with
24926 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
24928 * doc/invoke.texi (-ftree-lrs): Remove.
24930 2007-02-19 Diego Novillo <dnovillo@redhat.com>
24932 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
24935 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
24937 * config/ia64/ia64.c (ia64_expand_builtin): Use the
24938 new CALL_EXPR_FN macro for retrieving the function
24939 declaration of the input expression.
24941 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24943 * c.opt (Waddress): New.
24944 * common.opt (Walways-true): Delete.
24945 (Wstring-literal-comparison): Delete.
24946 * doc/invoke.texi (Warning Options): Delete -Walways-true and
24947 -Wstring-literal-comparison. Add -Waddress.
24949 (Walways-true): Delete.
24950 (Wstring-literal-comparison): Delete.
24951 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
24952 consistently instead of -Walways-true in example.
24953 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
24954 * c-typeck.c (parser_build_binary_op): Replace
24955 -Wstring-literal-comparison and -Walways-true with -Waddress.
24956 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
24959 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
24961 * tree-cfg.c (dump_function_to_file): Be prepared for functions
24962 without DECL_STRUCT_FUNCTION initialized.
24964 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
24966 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
24967 due to calls to functions taking pointers as parameters.
24969 2007-02-19 Richard Henderson <rth@redhat.com>
24972 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
24975 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
24977 * config/s390/s390.c (s390_call_saved_register_used,
24978 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
24979 accessed to the new scheme.
24981 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24983 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
24984 (cris_print_index, cris_print_operand, cris_print_operand_address)
24985 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
24986 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
24987 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
24988 GET_CODE () == xxx.
24989 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
24990 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
24991 GO_IF_LEGITIMATE_ADDRESS): Ditto.
24992 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
24993 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
24994 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
24995 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
24996 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
24997 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
24998 (uminsi3, call, call_value): Ditto.
24999 (define_split: indir_to_reg_split, unnamed): Ditto.
25001 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
25003 PR tree-optimization/30975
25004 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
25007 2007-02-18 Eric Christopher <echristo@gmail.com>
25009 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
25010 Remove use of arglist.
25011 (mips_expand_builtin): Remove use of arglist, pass in expr.
25012 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
25013 (mips_expand_builtin_movtf): Ditto.
25014 (mips_expand_builtin_compare): Ditto.
25016 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
25018 * tree-sra.c (sra_build_assignment): Replace assertion
25019 checking with a comment explaining why it can't be done.
25021 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
25023 PR middle-end/30833
25024 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
25025 during CALL_EXPR representation conversion.
25026 * tree-ssa-propagate.c (set_rhs): Likewise.
25028 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
25030 * tree-sra.c (sra_build_assignment): Disable assertion checking
25033 2007-02-18 Roger Sayle <roger@eyesopen.com>
25035 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
25036 instead of calling build2 with a GIMPLE_MODIFY_STMT.
25037 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
25039 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
25040 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
25041 gimplify_init_ctor_eval_range, gimple_push_cleanup,
25042 gimplify_omp_for, gimplify_omp_atomic_pipeline,
25043 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
25044 force_gimple_operand): Likewise.
25045 * ipa-cp.c (constant_val_insert): Likewise.
25046 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
25047 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
25048 perfect_nestify): Likewise.
25049 * langhooks.c (lhd_omp_assignment): Likewise.
25050 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
25051 lower_copyprivate_clauses, lower_send_clauses,
25052 lower_send_shared_vars, expand_parallel_call,
25053 expand_omp_for_generic, expand_omp_for_static_nochunk,
25054 expand_omp_for_static_chunk, expand_omp_sections,
25055 lower_omp_single_copy, lower_omp_for_lastprivate,
25056 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
25057 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
25058 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
25061 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
25063 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
25064 config/sh/sh.md: Follow spelling conventions.
25066 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
25067 config/frv/predicates.md: Follow spelling conventions.
25069 * config/m68k/linux-unwind.h: Fix a comment typo.
25070 * target.h: Follow spelling conventions.
25072 2007-02-18 Roger Sayle <roger@eyesopen.com>
25074 PR rtl-optimization/28173
25075 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
25076 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
25077 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
25078 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
25079 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
25081 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25083 * builtins.c (fold_builtin_load_exponent): New.
25084 (fold_builtin_2): Use it.
25086 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
25088 PR rtl-optimization/30773
25089 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
25090 if we fail to attach a REG_EQUIV note.
25092 2007-02-18 David Edelsohn <edelsohn@gnu.org>
25093 Roger Sayle <roger@eyesopen.com>
25095 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
25097 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
25099 * calls.c (initialize_argument_information): Pass original EXP
25100 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
25101 code to split complex arguments here, as part of initializing the
25103 (expand_call): Remove code that builds a list of arguments and
25104 inserts implicit arguments into it. Instead, just count how many
25105 implicit arguments there will be so we can determine the size of
25106 the ARGS array, and let initialize_argument_information do the work.
25107 (split_complex_values): Delete unused function.
25109 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
25111 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
25113 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
25115 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
25116 for arg pointer based indexed addressing.
25118 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
25120 * config/ia64/ia64.h, config/ia64/ia64.md,
25121 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
25122 spelling conventions.
25124 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
25126 * config/m68k/m68k.c (split_di): New.
25127 * config/m68k/m68k-protos.h: Declare split_di.
25128 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
25129 Improve predicate handling and split constant shifts.
25131 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
25133 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
25134 parameter for register bitfield operations, general predicates
25137 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
25139 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
25140 * config/m68k/linux-unwind.h: New file.
25142 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
25144 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
25145 config/i386/athlon.md, config/ia64/ia64.md,
25146 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
25147 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
25148 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
25149 tree-ssa-loop-niter.c, tree-vect-analyze.c,
25150 tree-vect-transform.c: Fix comment typos.
25152 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
25154 * sched-deps.c (find_insn_list): Remove.
25155 * sched-int.h: Remove the prototype for find_insn_list.
25157 2007-02-16 Geoffrey Keating <geoffk@apple.com>
25159 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
25161 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
25162 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
25163 darwin_rs6000_override_options.
25164 (C_COMMON_OVERRIDE_OPTIONS): Expect
25165 darwin_macosx_version_min to be non-NULL always.
25166 (TARGET_C99_FUNCTIONS): Likewise.
25167 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
25168 (DARWIN_MINVERSION_SPEC): New.
25169 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
25170 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
25172 (DARWIN_MINVERSION_SPEC): New.
25173 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
25175 * config/darwin-c.c (darwin_cpp_builtins): Expect
25176 darwin_macosx_version_min to be non-NULL always.
25178 * config/rs6000/rs6000.c: Clean up trailing whitespace.
25180 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
25182 * config/i386/i386.h (x86_use_xchgb): New.
25183 (TARGET_USE_XCHGB): New macro.
25184 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
25185 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
25186 Split after reload into bswaphi for shifts of 8.
25187 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
25188 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
25189 or when optimizing for size.
25191 2007-02-16 Richard Guenther <rguenther@suse.de>
25192 Christian Bruel <christian.bruel@st.com>
25194 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
25195 DECLs but prefer SSA_NAMEs over DECLs.
25197 2007-02-16 Richard Guenther <rguenther@suse.de>
25199 * tree-flow-inline.h (single_imm_use_p): Remove.
25200 (zero_imm_uses_p): Likewise.
25201 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
25202 instead of single_imm_use_p.
25203 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
25206 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25209 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
25210 nested double- and backquotes.
25212 2007-02-15 Roger Sayle <roger@eyesopen.com>
25214 PR middle-end/30391
25215 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
25216 should be unreachable.
25217 (build2_stat): Allow construction of MODIFY_EXPR at any time.
25218 For the time being redirect GIMPLE_MODIFY_STMT to the new
25219 (renamed) build_gimple_modify_stmt_stat.
25220 (build2_gimple_stat): Rename to...
25221 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
25222 Always build a GIMPLE_MODIFY_STMT node.
25223 * tree.h (build2_gimple, build2_gimple_stat): Delete.
25224 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
25227 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
25228 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
25229 * tree-complex.c (set_component_ssa_name, expand_complex_move,
25230 expand_complex_div_wide): Likewise.
25231 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
25232 * tree-ssa-loop-im.c (schedule_sm): Likewise.
25233 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
25234 * tree-ssa-loop-manip.c (create_iv): Likewise.
25235 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
25236 abs_replacement): Likewise.
25237 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
25238 realify_fake_stores): Likewise.
25240 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
25241 node rather than a GIMPLE_MODIFY_STMT node.
25242 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
25243 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
25245 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
25246 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
25247 GIMPLE_MODIFY_STMT.
25249 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
25251 PR middle-end/30433
25252 * fold-const.c (fold_comparison): Add back the
25253 folding of constant complex comparisions.
25255 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
25257 PR middle-end/30729
25258 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
25259 effects unknown to this function, return early.
25261 2007-02-15 Ian Lance Taylor <iant@google.com>
25263 * lower-subreg.c (move_eh_region_note): New static function.
25264 (resolve_simple_move): Call it.
25265 (decompose_multiword_subregs): Track blocks for which we resolve a
25266 simple move which is also a control flow insn. Pass them to
25267 find_many_sub_basic_blocks.
25268 (pass_lower_subreg): Add TODO_verify_flow.
25269 (pass_lower_subreg2): Likewise.
25271 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25272 Brooks Moses <brooks.moses@codesourcery.com>
25273 Lee Millward <lee.millward@codesourcery.com>
25275 * tree.h (enum tree_code_class): Add tcc_vl_exp.
25276 (VL_EXP_CLASS_P): New.
25277 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
25279 (TREE_OPERAND_CHECK_CODE): Likewise.
25280 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
25281 (TREE_RTL_OPERAND_CHECK): Likewise.
25282 (tree_operand_check_failed): Make second parameter the whole tree
25283 instead of its code. Fixed callers.
25284 (VL_EXP_CHECK): New.
25285 (TREE_OPERAND_LENGTH): New.
25286 (VL_EXP_OPERAND_LENGTH): New.
25287 (CALL_EXPR_FN): New.
25288 (CALL_EXPR_STATIC_CHAIN): New.
25289 (CALL_EXPR_ARGS): New.
25290 (CALL_EXPR_ARG): New.
25291 (call_expr_nargs): New.
25292 (CALL_EXPR_ARGP): New.
25293 (build_nt_call_list): Declare.
25294 (build_vl_exp_stat): Declare.
25295 (build_vl_exp): New.
25296 (build_call_list): Declare.
25297 (build_call_nary): Declare.
25298 (build_call_valist): Declare.
25299 (build_call_array): Declare.
25300 (call_expr_arg): Declare.
25301 (call_expr_argp): Declare.
25302 (call_expr_arglist): Declare.
25303 (fold_build_call_list): Declare.
25304 (fold_build_call_list_initializer): Declare.
25305 (fold_call_expr): Declare to replace fold_builtin.
25306 (fold_builtin_fputs): Update to agree with modified definition.
25307 (fold_builtin_strcpy): Likewise.
25308 (fold_builtin_strncpy): Likewise.
25309 (fold_builtin_memory_chk): Likewise.
25310 (fold_builtin_stxcpy_chk): Likewise.
25311 (fold_builtin_strncpy_chk): Likewise.
25312 (fold_builtin_next_arg): Likewise.
25313 (fold_build_call_expr): Declare.
25314 (fold_builtin_call_list): Declare.
25315 (fold_builtin_call_valist): Declare.
25316 (build_call_expr): Declare.
25317 (validate_arglist): Update to agree with modified definition.
25318 (tree_operand_length): New.
25319 (call_expr_arg_iterator): New.
25320 (init_call_expr_arg_iterator): New.
25321 (next_call_expr_arg): New.
25322 (first_call_expr_arg): New.
25323 (more_call_expr_args_p): New.
25324 (FOR_EACH_CALL_EXPR_ARG): New.
25326 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
25327 and tcc_gimple_stmt.
25328 (tree_code_size): Update documentation. Use sizeof (tree) rather
25329 than sizeof (char *).
25330 (tree_size): Likewise. Add case for tcc_vl_exp.
25331 (tree_node_structure): Add case for tcc_vl_exp.
25332 (contains_placeholder_p): Likewise.
25333 (substitute_in_expr): Likewise.
25334 (substitute_placeholder_in_expr): Likewise.
25335 (stabilize_reference_1): Likewise.
25336 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
25337 to diagnose breakage of this interface for constructing CALL_EXPRs.
25338 (build_nt): Add similar assertion here.
25339 (build_nt_call_list): New.
25340 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
25341 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
25343 (get_callee_fndecl): Use new CALL_EXPR accessors.
25344 (tree_operand_check_failed): Change parameters to pass entire node
25345 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
25346 (process_call_operands): New.
25347 (build_vl_exp_stat): New.
25348 (build_call_list): New.
25349 (build_call_nary): New.
25350 (build_call_valist): New.
25351 (build_call_array): New.
25352 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25353 (call_expr_arglist): New.
25355 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
25356 tcc_vl_exp instead of a fixed-size tcc_expression.
25358 * doc/c-tree.texi (CALL_EXPR): Document new representation and
25359 accessors for CALL_EXPRs.
25360 (AGGR_INIT_EXPR): Likewise.
25362 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25363 Brooks Moses <brooks.moses@codesourcery.com>
25364 Lee Millward <lee.millward@codesourcery.com>
25366 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
25367 (expand_builtin_nonlocal_goto): Change parameter to be entire
25368 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
25369 (expand_builtin_prefetch): Likewise.
25370 (expand_builtin_classify_type): Likewise.
25371 (mathfn_built_in): Return NULL_TREE instead of 0.
25372 (expand_errno_check): Use new CALL_EXPR accessors.
25373 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
25374 Return NULL_RTX instead of 0.
25375 (expand_builtin_mathfn_2): Likewise.
25376 (expand_builtin_mathfn_3): Likewise.
25377 (expand_builtin_interclass_mathfn): Likewise.
25378 (expand_builtin_sincos): Likewise.
25379 (expand_builtin_cexpi): Likewise.
25380 (expand_builtin_int_roundingfn): Likewise.
25381 (expand_builtin_int_roundingfn_2): Likewise.
25382 (expand_builtin_pow): Likewise.
25383 (expand_builtin_powi): Likewise.
25384 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
25385 of arglist, fixing callers appropriately. Use new CALL_EXPR
25386 accessors and constructors. Return NULL_RTX instead of 0.
25387 (expand_builtin_strstr): Likewise.
25388 (expand_builtin_strchr): Likewise.
25389 (expand_builtin_strrchr): Likewise.
25390 (expand_builtin_strpbrk): Likewise.
25391 (expand_builtin_memcpy): Likewise.
25392 (expand_builtin_mempcpy): Likewise.
25393 (expand_builtin_mempcpy_args): New.
25394 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
25395 (expand_builtin_memmove_args): New.
25396 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
25397 (expand_movstr): Likewise.
25398 (expand_builtin_strcpy): Likewise.
25399 (expand_builtin_strcpy_args): New.
25400 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
25401 (expand_builtin_strncpy): Likewise.
25402 (expand_builtin_memset): Likewise.
25403 (expand_builtin_memset_args): New.
25404 (expand_builtin_bzero): Similarly to expand_builtin_memset.
25405 (expand_builtin_memcmp): Likewise.
25406 (expand_builtin_strcmp): Likewise.
25407 (expand_builtin_strncmp): Likewise.
25408 (expand_builtin_strcat): Likewise.
25409 (expand_builtin_strncat): Likewise.
25410 (expand_builtin_strspn): Likewise.
25411 (expand_builtin_strcspn): Likewise.
25412 (expand_builtin_args_info): Likewise.
25413 (expand_builtin_va_start): Likewise.
25414 (gimplify_va_arg_expr): Likewise.
25415 (expand_builtin_va_end): Likewise.
25416 (expand_builtin_va_copy): Likewise.
25417 (expand_builtin_frame_address): Likewise.
25418 (expand_builtin_alloca): Likewise.
25419 (expand_builtin_bswap): Likewise.
25420 (expand_builtin_unop): Likewise.
25421 (expand_builtin_fputs): Likewise.
25422 (expand_builtin_expect): Likewise.
25423 (expand_builtin_fabs): Likewise.
25424 (expand_builtin_copysign): Likewise.
25425 (expand_builtin_printf): Likewise.
25426 (expand_builtin_fprintf): Likewise.
25427 (expand_builtin_sprintf): Likewise.
25428 (expand_builtin_init_trampoline): Likewise.
25429 (expand_builtin_signbit): Likewise.
25430 (expand_builtin_fork_or_exec): Likewise.
25431 (expand_builtin_sync_operation): Likewise.
25432 (expand_builtin_compare_and_swap): Likewise.
25433 (expand_builtin_lock_test_and_set): Likewise.
25434 (expand_builtin_lock_release): Likewise.
25435 (expand_builtin): Likewise.
25436 (builtin_mathfn_code): Likewise.
25438 (fold_builtin_constant_p): Pass call arguments individually instead
25439 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25440 accessors and constructors. Return NULL_TREE instead of 0.
25441 (fold_builtin_expect): Likewise.
25442 (fold_builtin_classify_type): Likewise.
25443 (fold_builtin_strlen): Likewise.
25444 (fold_builtin_nan): Likewise.
25445 (integer_valued_real_p): Likewise.
25446 (fold_trunc_transparent_mathfn): Likewise.
25447 (fold_fixed_mathfn): Likewise.
25448 (fold_builtin_cabs): Likewise.
25449 (fold_builtin_sqrt): Likewise.
25450 (fold_builtin_cbrt): Likewise.
25451 (fold_builtin_cos): Likewise.
25452 (fold_builtin_cosh): Likewise.
25453 (fold_builtin_tan): Likewise.
25454 (fold_builtin_sincos): Likewise.
25455 (fold_builtin_cexp): Likewise.
25456 (fold_builtin_trunc): Likewise.
25457 (fold_builtin_floor): Likewise.
25458 (fold_builtin_ceil): Likewise.
25459 (fold_builtin_round): Likewise.
25460 (fold_builtin_int_roundingfn): Likewise.
25461 (fold_builtin_bitop): Likewise.
25462 (fold_builtin_bswap): Likewise.
25463 (fold_builtin_logarithm): Likewise.
25464 (fold_builtin_hypot): Likewise.
25465 (fold_builtin_pow): Likewise.
25466 (fold_builtin_powi): Likewise.
25467 (fold_builtin_exponent): Likewise.
25468 (fold_builtin_memset): Likewise.
25469 (fold_builtin_bzero): Likewise.
25470 (fold_builtin_memory_op): Likewise.
25471 (fold_builtin_bcopy): Deleted; call site changed to invoke
25472 fold_builtin_memory_op directly.
25473 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
25474 (fold_builtin_strncpy): Likewise.
25475 (fold_builtin_memcmp): Likewise.
25476 (fold_builtin_strcmp): Likewise.
25477 (fold_builtin_strncmp): Likewise.
25478 (fold_builtin_signbit): Likewise.
25479 (fold_builtin_copysign): Likewise.
25480 (fold_builtin_isascii): Likewise.
25481 (fold_builtin_toascii): Likewise.
25482 (fold_builtin_isdigit): Likewise.
25483 (fold_builtin_fabs): Likewise.
25484 (fold_builtin_abs): Likewise.
25485 (fold_builtin_fmin_fmax): Likewise.
25486 (fold_builtin_carg): Likewise.
25487 (fold_builtin_classify): Likewise.
25488 (fold_builtin_unordered_cmp): Likewise.
25490 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
25491 New functions split out from fold_builtin_1.
25492 (fold_builtin_n): New.
25493 (fold_builtin_varargs): New.
25494 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
25496 (fold_call_expr): New.
25497 (build_function_call_expr): Rewrite to use new helper function.
25498 (fold_builtin_call_list): New.
25499 (build_call_expr): New.
25500 (fold_builtin_call_valist): New.
25501 (rewrite_call_expr): New.
25502 (validate_arg): New.
25503 (validate_arglist): Change parameter to be entire CALL_EXPR instead
25504 of an arglist. Change return type to bool. Use new CALL_EXPR
25507 (fold_builtin_strstr): Pass call arguments individually instead
25508 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25509 accessors and constructors. Return NULL_TREE instead of 0.
25510 (fold_builtin_strchr): Likewise.
25511 (fold_builtin_strrchr): Likewise.
25512 (fold_builtin_strpbrk): Likewise.
25513 (fold_builtin_strcat): Likewise.
25514 (fold_builtin_strncat): Likewise.
25515 (fold_builtin_strspn): Likewise.
25516 (fold_builtin_strcspn): Likewise.
25517 (fold_builtin_fputs): Likewise.
25518 (fold_builtin_next_arg): Likewise.
25519 (fold_builtin_sprintf): Likewise.
25521 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
25522 NULL_RTX instead of 0.
25523 (expand_builtin_memory_chk): Likewise.
25524 (maybe_emit_chk_warning): Likewise.
25525 (maybe_emit_sprintf_chk_warning): Likewise.
25527 (fold_builtin_object_size): Pass call arguments individually instead
25528 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25529 accessors and constructors. Return NULL_TREE instead of 0.
25530 (fold_builtin_memory_chk): Likewise.
25531 (fold_builtin_stxcpy_chk): Likewise.
25532 (fold_builtin_strncpy_chk): Likewise.
25533 (fold_builtin_strcat_chk): Likewise.
25534 (fold_builtin_strcat_chk): Likewise.
25535 (fold_builtin_strncat_chk): Likewise.
25536 (fold_builtin_sprintf_chk): Likewise.
25537 (fold_builtin_snprintf_chk): Likewise.
25538 (fold_builtin_printf): Likewise.
25539 (fold_builtin_vprintf): Likewise.
25541 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
25543 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
25544 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25545 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
25546 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
25547 (fold_unary): Likewise.
25548 (fold_binary): Likewise.
25549 (fold_ternary): Remove CALL_EXPR case, since they are no longer
25550 ternary expressions.
25551 (fold): Add logic for tcc_vl_exp.
25552 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
25553 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25554 (fold_build3_stat): Add assertion to flag broken interface for
25555 constructing CALL_EXPRs.
25556 (fold_build_call_list): New.
25557 (fold_build_call_list_initializer): New.
25558 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
25560 (fold_strip_sign_ops): Likewise.
25562 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25563 Brooks Moses <brooks.moses@codesourcery.com>
25564 Lee Millward <lee.millward@codesourcery.com>
25566 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
25567 accessors and dump arguments explicitly.
25569 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
25571 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
25573 (print_call_name): Use new CALL_EXPR accessors.
25575 * print-tree.c (print_node): Add case tcc_vl_exp. Print
25576 CALL_EXPR arguments explicitly instead of as a list. Use
25577 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25579 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
25580 (vrp_visit_stmt): Likewise.
25582 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
25583 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
25585 (force_move_till_expr): Likewise.
25587 * targhooks.c (default_external_stack_protect_fail): Use
25588 build_call_expr instead of build_function_call_expr.
25589 (default_hidden_stack_protect_fail): Likewise.
25591 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
25594 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
25595 and walk arguments explicitly.
25597 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
25598 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25599 (expand_simple_operations): Likewise.
25600 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
25602 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
25603 of TREE_CODE_LENGTH.
25604 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
25606 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
25607 instead of TREE_CODE_LENGTH.
25609 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
25610 (tree_ic_transform): Likewise.
25611 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
25612 parameter instead of arglist. Fix callers.
25613 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
25614 (tree_stringops_transform): Likewise.
25615 (tree_indirect_call_to_profile): Likewise.
25616 (tree_stringops_values_to_profile): Likewise.
25618 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
25619 (eliminate_tail_call): Likewise.
25621 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
25623 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25624 Use TREE_OPERAND_LENGTH and generalize to handle any number of
25626 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
25628 * omp-low.c (build_omp_barrier): Use build_call_expr.
25629 (lower_rec_input_clauses): Likewise.
25630 (lower_reduction_clauses): Likewise.
25631 (expand_parallel_call): Likewise.
25632 (maybe_catch_exception): Likewise.
25633 (expand_omp_for_generic): Likewise.
25634 (expand_omp_for_static_nochunk): Likewise.
25635 (expand_omp_sections): Likewise.
25636 (lower_omp_single_simple): Likewise.
25637 (lower_omp_single_copy): Likewise.
25638 (lower_omp_master): Likewise.
25639 (lower_omp_ordered): Likewise.
25640 (lower_omp_critical): Likewise.
25642 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
25643 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
25645 * tree-gimple.c (is_gimple_call_addr): Fix doc.
25646 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
25647 TREE_CODE_LENGTH. Add tcc_vl_exp case.
25649 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
25650 and generalize to handle any number of operands.
25651 (chrec_contains_undetermined): Likewise.
25652 (tree_contains_chrecs): Likewise.
25653 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
25655 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
25657 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
25658 fold_call_expr instead of fold_builtin.
25659 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
25660 match declarations there.
25661 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
25664 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
25665 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25667 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
25668 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
25670 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
25673 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
25674 (execute_cse_sincos): Use new CALL_EXPR accessors.
25676 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
25678 * gimple-low.c (lower_function_body): Use build_call_expr.
25679 (lower_builtin_setjmp): Likewise.
25681 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
25682 (set_storage_via_libcall): Likewise.
25683 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
25684 instead of TREE_CODE_LENGTH.
25685 (expand_expr_real_1): Use new CALL_EXPR accessors.
25687 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
25688 generalize to handle any number of operands.
25689 (TB_parent_eq): Likewise.
25691 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
25692 (strip_builtin_expect): Likewise.
25694 * function.c (gimplify_parameters): Use build_call_expr.
25696 * tree-vectorizer.c (vect_is_simple_reduction): Use
25697 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25699 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
25700 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
25702 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
25705 * gimplify.c (build_stack_save_restore): Use build_call_expr.
25706 (gimplify_decl_expr): Likewise.
25707 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
25708 Use new CALL_EXPR iterators.
25709 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
25710 (gimplify_modify_expr_to_memset): Likewise.
25711 (gimplify_variable_sized_compare): Likewise.
25712 (gimplify_omp_atomic_fetch_op): Likewise.
25713 (gimplify_omp_atomic_pipeline): Likewise.
25714 (gimplify_omp_atomic_mutex): Likewise.
25715 (gimplify_function_tree): Likewise.
25717 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
25718 (call_expr_flags): Likewise.
25719 (expand_call): Likewise.
25721 * except.c (expand_builtin_eh_return_data_regno): Pass entire
25722 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
25725 * coverage.c (create_coverage): Use build_call_expr.
25727 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
25728 (temp_call_expr_obstack): New.
25729 (pool_copy_list): Delete.
25730 (temp_copy_call_expr): New.
25731 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
25732 CALL_EXPR accessors. Get rid of special goo for copying argument
25733 lists and use temp_copy_call_expr instead.
25734 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
25735 CALL_EXPR accessors.
25736 (create_expression_by_pieces): Likewise. Use build_call_array
25737 to construct the result instead of fold_build3.
25738 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
25739 dealing with argument lists.
25740 (init_pre): Remove references to expression_node_pool and
25741 list_node_pool. Init temp_call_expr_obstack instead.
25742 (fini_pre): Remove references to expression_node_pool and
25745 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
25746 and walk arguments explicitly instead of as a list.
25748 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
25749 (mx_register_decls): Likewise.
25750 (mudflap_register_call): Likewise.
25751 (mudflap_finish_file): Likewise.
25753 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
25754 (ipa_callsite_compute_param): Likewise.
25756 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
25757 accessors and constructor.
25759 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
25760 accessors and constructor.
25761 (convert_tramp_reference): Likewise.
25762 (convert_call_expr): Likewise.
25763 (finalize_nesting_tree_1): Likewise.
25765 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
25768 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
25770 * tree-inline.c (initialize_inlined_parameters): Pass entire
25771 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
25773 (estimate_num_insns_1): Use new CALL_EXPR accessors.
25774 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
25776 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
25777 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25778 (vectorizable_reduction): Likewise.
25779 (vectorizable_call): Use new CALL_EXPR iterators.
25780 (vectorizable_conversion): Use build_call_expr.
25781 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
25782 (vect_gen_widened_results_half): Use build_call_expr.
25783 (vect_setup_realignment): Likewise.
25784 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
25786 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
25787 (pass_through_call): Likewise.
25788 (compute_object_sizes): Likewise. Use fold_call_expr instead of
25791 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
25792 (tree_gen_pow2_profiler): Likewise.
25793 (tree_gen_one_value_profiler): Likewise.
25794 (tree_gen_ic_func_profiler): Likewise.
25795 (tree_gen_average_profiler): Likewise.
25796 (tree_gen_ior_profiler): Likewise.
25798 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
25799 (find_func_aliases): Use new CALL_EXPR accessors. Add case
25800 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25802 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
25803 of TREE_CODE_LENGTH.
25805 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
25806 of TREE_CODE_LENGTH.
25808 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
25810 (convert_to_integer): Likewise.
25812 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
25815 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25816 Brooks Moses <brooks.moses@codesourcery.com>
25817 Lee Millward <lee.millward@codesourcery.com>
25819 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
25821 * config/frv/frv.c (frv_expand_builtin): Likewise.
25822 * config/s390/s390.c (s390_expand_builtin): Likewise.
25824 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
25825 (sparc_expand_builtin): Use new CALL_EXPR accessors.
25827 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
25828 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
25829 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
25830 (ix86_expand_store_builtin): Likewise.
25831 (ix86_expand_unop_builtin): Likewise.
25832 (ix86_expand_unop1_builtin): Likewise.
25833 (ix86_expand_sse_compare): Likewise.
25834 (ix86_expand_sse_comi): Likewise.
25835 (ix86_expand_vec_init_builtin): Likewise.
25836 (ix86_expand_vec_ext_builtin): Likewise.
25837 (ix86_expand_vec_set_builtin): Likewise.
25838 (ix86_expand_builtin): Use new CALL_EXPR accessors.
25840 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
25841 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25843 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
25844 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
25845 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
25847 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
25849 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
25850 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
25851 arglist. Use new CALL_EXPR accessors. Fix callers.
25852 (altivec_expand_abs_builtin): Likewise.
25853 (rs6000_expand_binop_builtin): Likewise.
25854 (altivec_expand_predicate_builtin): Likewise.
25855 (altivec_expand_lv_builtin): Likewise.
25856 (spe_expand_stv_builtin): Likewise.
25857 (altivec_expand_stv_builtin): Likewise.
25858 (rs6000_expand_ternop_builtin): Likewise.
25859 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
25860 (altivec_expand_st_builtin): Likewise.
25861 (altivec_expand_dst_builtin): Likewise.
25862 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
25863 arglist. Use new CALL_EXPR accessors. Fix callers.
25864 (altivec_expand_vec_set_builtin): Likewise.
25865 (altivec_expand_vec_ext_builtin): Likewise.
25866 (altivec_expand_builtin): Use new CALL_EXPR accessors.
25867 (spe_expand_builtin): Likewise.
25868 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
25869 arglist. Use new CALL_EXPR accessors. Fix callers.
25870 (spe_expand_evsel_builtin): Likewise.
25871 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
25872 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
25874 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
25875 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
25876 (arm_expand_unop_builtin): Likewise.
25877 (arm_expand_builtin): Use new CALL_EXPR accessors.
25879 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
25882 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
25883 CALL_EXPR instead of arglist. Use new CALL_EXPR accessors.
25885 (bfin_expand_unop_builtin): Likewise.
25886 (bfin_expand_builtin): Use new CALL_EXPR accessors.
25888 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25889 Brooks Moses <brooks.moses@codesourcery.com>
25890 Lee Millward <lee.millward@codesourcery.com>
25892 * c-semantics.c (build_stmt): Add internal diagnostic check.
25894 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
25895 accessors. Print arguments explicitly instead of as a list.
25897 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
25899 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
25900 (c_finish_omp_flish): Likewise.
25902 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
25903 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
25904 instead of TREE_CODE_LENGTH.
25905 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
25906 (c_warn_unused_result): Likewise.
25908 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25911 * doc/invoke.texi (Warning Options): Remove
25912 -Werror-implicit-function-declaration.
25913 (Wimplicit-function-declaration): Update description.
25914 * opts.c (common_handle_option): Move handling of -Werror=* to...
25915 (enable_warning_as_error): ...here.
25916 * opts.h (enable_warning_as_error): Declare.
25917 * c-decl.c (implicit_decl_warning): Unless
25918 -Wno-implicit-function-declaration is given, emit a pedwarn if
25919 -std=c99 or emit a warning if -Wimplicit-function-declaration.
25920 * c.opt (Wimplicit-function-declaration): Replace
25921 mesg_implicit_function_declaration with
25922 warn_implicit_function_declaration.
25923 * c-opts.c (c_common_handle_option):
25924 -Werror-implicit-function-declaration is exactly equal as
25925 -Werror=implicit-function-declaration.
25926 (set_Wimplicit): Replace mesg_implicit_function_declaration with
25927 warn_implicit_function_declaration.
25928 (c_common_post_options): -Wimplict-function-declaration is enabled
25929 by default by -std=c99, otherwise is disabled by default.
25930 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
25932 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
25934 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
25935 DECL on the rhs to a DECL on the lhs for debug info purposes if the
25936 former is ignored but not the latter.
25938 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
25940 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
25941 is made and the reference doesn't use the alias set of its type,
25942 do not create the temporary using that type.
25944 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
25946 * jump.c: Remove prototypes for delete_computation and
25947 delete_prior_computation.
25949 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
25951 * jump.c (get_label_after): Delete.
25952 (get_label_before, delete_computation, delete_jump,
25953 delete_prior_computation, follow_jumps): Move...
25954 * reorg.c (delete_computation, delete_prior_computation): ... here...
25955 (get_label_before, delete_jump): ... making these static ...
25956 (follow_jumps): ... and simplifying this since it only runs after
25958 * rtl.h (get_label_after, get_label_before, delete_jump,
25959 follow_jumps): Delete prototypes.
25961 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
25963 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
25965 2007-02-15 Nick Clifton <nickc@redhat.com>
25967 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
25968 order to prevent it from being munged by the target.
25970 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
25972 * config/i386/i386.md: Remove misleading comment.
25974 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
25976 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
25977 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
25980 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
25982 * tree-sra.c (instantiate_missing_elements): Canonicalize
25984 (sra_build_assignment): New.
25985 (generate_copy_inout, generate_element_copy,
25986 generate_element_zero, generate_one_element_init): Use it.
25988 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
25990 * tree-sra.c (instantiate_missing_elements): Canonicalize
25992 (sra_build_assignment): New.
25993 (generate_copy_inout, generate_element_copy,
25994 generate_element_zero, generate_one_element_init): Use it.
25996 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
25998 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
26001 2007-02-14 Joseph Myers <joseph@codesourcery.com>
26003 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
26004 types as aggregates not scalars.
26005 * function.c (assign_stack_temp_for_type): Likewise.
26007 2007-02-14 Roger Sayle <roger@eyesopen.com>
26008 Zdenek Dvorak <dvorakz@suse.cz>
26010 * tree-dump.c (dump_switch_p_1): Require exact match of the option
26013 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
26015 * passes.c (next_pass_1): Clear the next field of the copied
26018 2007-02-14 Richard Henderson <rth@redhat.com>
26020 * tree-sra.c (early_sra): New.
26021 (decl_can_be_decomposed_p): Deny va_list if early_sra.
26022 (tree_sra_early, pass_sra_early): New.
26023 * tree-pass.h (pass_sra_early): Declare.
26024 * passes.c (init_optimization_passes): Use it.
26026 2007-02-14 Richard Guenther <rguenther@suse.de>
26028 * flags.h (issue_strict_overflow_warning): Convert to a macro.
26030 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
26032 PR tree-optimization/30771
26033 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
26035 (vect_analyze_operations): Induction phis can now be marked as
26037 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
26038 Update documentation accordingly.
26040 2007-02-14 Nick Clifton <nickc@redhat.com>
26042 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
26043 most 3 arguments are supported.
26044 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
26046 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
26048 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
26049 Ensure dst->current is valid.
26051 2007-02-13 Paul Brook <paul@codesourcery.com>
26053 * config.gcc: Add arm*-*-uclinux-*eabi.
26054 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
26055 (SUBTARGET_EXTRA_LINK_SPEC): Define.
26056 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
26057 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
26058 (LINK_SPEC): Define.
26059 (LIB_SPEC): Define.
26060 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
26062 * config/arm/uclinux-eabi.h: New file.
26063 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
26064 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
26067 2007-02-13 Ian Lance Taylor <iant@google.com>
26069 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
26070 * flags.h (warn_strict_overflow): Declare.
26071 (enum warn_strict_overflow_code): Define.
26072 (issue_strict_overflow_warning): New static inline function.
26073 * opts.c (warn_strict_overflow): New variable.
26074 (common_handle_option): Handle OPT_Wstrict_overflow and
26075 OPT_Wstrict_overflow_.
26076 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
26078 * fold-const.c: Include intl.h.
26079 (fold_deferring_overflow_warnings): New static variable.
26080 (fold_deferred_overflow_warning): New static variable.
26081 (fold_deferred_overflow_code): New static variable.
26082 (fold_defer_overflow_warnings): New function.
26083 (fold_undefer_overflow_warnings): New function.
26084 (fold_undefer_and_ignore_overflow_warnings): New function.
26085 (fold_deferring_overflow_warnings_p): New function.
26086 (fold_overflow_warning): New static function.
26087 (make_range): Add strict_overflow_p parameter. Change all
26089 (extract_muldiv, extract_muldiv_1): Likewise.
26090 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
26091 tree_expr_nonnegative_p.
26092 (fold_negate_expr): Call fold_overflow_warning.
26093 (fold_range_test): Likewise.
26094 (fold_comparison): Likewise.
26095 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
26096 instead of tree_expr_nonnegative_p.
26097 (tree_expr_nonnegative_warnv_p): Rename from
26098 tree_expr_nonnegative_p, add strict_overflow_p parameter.
26099 (tree_expr_nonnegative_p): New function.
26100 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
26101 strict_overflow_p parameter.
26102 (tree_expr_nonzero_p): New function.
26103 * passes.c (verify_interpass_invariants): New static function.
26104 (execute_one_pass): Call it.
26105 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
26107 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
26108 (estimate_numbers_of_iterations): Likewise.
26109 (scev_probably_wraps_p): Likewise.
26110 * tree-ssa-ccp.c: Include "toplev.h".
26111 (evaluate_stmt): Defer fold overflow warnings until we know we are
26113 (struct fold_stmt_r_data): Add stmt field.
26114 (fold_stmt_r): Defer fold overflow warnings until we know we
26116 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
26117 (fold_stmt_inplace): Likewise.
26118 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
26119 (cleanup_control_expr_graph): Defer fold overflow warnings until
26120 we know we are going to optimize.
26121 * tree-cfg.c (fold_cond_expr_cond): Likewise.
26122 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
26124 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
26125 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
26126 * tree-ssa-loop-manip.c (create_iv): Likewise.
26127 * c-typeck.c (build_conditional_expr): Likewise.
26128 (build_binary_op): Likewise.
26129 * tree-vrp.c (vrp_expr_computes_nonzero): Call
26130 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
26131 (extract_range_from_unary_expr): Likewise.
26132 * simplify-rtx.c (simplify_const_relational_operation): Warn when
26133 assuming that signed overflow does not occur.
26134 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
26135 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
26136 (fold_defer_overflow_warnings): Declare.
26137 (fold_undefer_overflow_warnings): Declare.
26138 (fold_undefer_and_ignore_overflow_warnings): Declare.
26139 (fold_deferring_overflow_warnings_p): Declare.
26140 (tree_expr_nonzero_warnv_p): Declare.
26141 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
26142 of warning options.
26143 (Warning Options): Document -Wstrict-overflow.
26144 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
26145 (tree-ssa-ccp.o): Likewise.
26146 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
26147 (fold-const.o): Depend on intl.h.
26149 2007-02-13 Ian Lance Taylor <iant@google.com>
26151 PR middle-end/30751
26152 * lower-subreg.c (resolve_simple_move): Decompose subregs in
26155 2007-02-13 Stuart Hastings <stuart@apple.com>
26157 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
26159 2007-02-13 Richard Henderson <rth@redhat.com>
26161 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
26162 handled_component_p before looking for the indirect_ref.
26164 2007-02-13 Richard Henderson <rth@redhat.com>
26166 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
26167 remove flags clobber.
26168 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
26169 (bswaphi_lowpart): New.
26170 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
26171 remove TARGET_BSWAP test. Delete expander of the same name.
26173 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
26174 (expand_unop): Use them.
26176 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
26178 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
26179 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
26180 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
26181 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
26182 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
26183 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
26184 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
26185 assembler dialect choice from asm templates.
26187 2007-02-12 Richard Henderson <rth@redhat.com>
26189 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
26190 (fixuns_trunc<SSEMODEF>si2): Use it.
26191 * config/i386/sse.md (vec_setv4sf_0): Export.
26192 * config/i386/i386.c (ix86_build_const_vector): Export.
26193 (ix86_split_convert_uns_si_sse): Rename from
26194 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
26195 * config/i386/i386-protos.h: Update.
26197 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26200 * c-typeck.c (c_finish_return): Improve warning message.
26202 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26204 * alias.c (find_symbolic_term): Delete unused function.
26206 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
26208 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
26209 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
26210 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
26212 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
26214 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
26215 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
26216 the function, temporarily point the debug interface to the null one.
26218 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
26220 * dwarf2out.c (round_up_to_align): New static function.
26221 (field_byte_offset): Use it to round the offset.
26223 2007-02-12 Richard Henderson <rth@redhat.com>
26225 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
26226 (inswl_const): Export.
26228 2007-02-12 Richard Henderson <rth@redhat.com>
26230 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
26231 result mode of the libcall, convert back to outmode.
26233 2007-02-12 Roger Sayle <roger@eyesopen.com>
26235 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
26236 (bswapdi2): New define_expand to implement 32-bit implementation.
26238 2007-02-12 Nick Clifton <nickc@redhat.com>
26240 * doc/invoke.texi (Overall Options): Document --help=.
26241 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
26242 (cc1_options): Pass --help= on to cc1.
26243 (display_help): Add description of --help=.
26244 (process_command): Add code to handle --help=. Allow translated
26245 --help and --target-help switches to be passed on to compiler
26247 (main): Remove unused if statement.
26248 * opts.c (columns): Remove.
26249 (LEFT_COLUMN): Define.
26250 (wrap_help): Add columns argument.
26251 (print_filtered_help): Change parameters to be an include bitmask,
26252 an exclude bitmask, an any bitmask and the column width. Move the
26253 code to display the params list here. Add code to display the
26254 status of options rather than their descriptions if the quiet flag
26256 (print_specific_help): Change parameters to be an include bitmask,
26257 an exclude bitmask and an any bitmask. Move code to look up the
26258 column width here. Decide upon the title for an options listing.
26259 (common_handle_options): Add code to handle --help=. Adapt code
26260 for --help and --target-help to use the revised form of the
26261 print_specific_help function.
26262 (print_help): Delete.
26263 (print_param_help): Delete.
26264 (print_switch): Delete.
26265 * opts.h (cl_lang_count): Add prototype.
26266 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
26267 CL_MAX_OPTION_CLASS): New defines.
26268 * optc-gen.awk: Add construction of cl_lang_count.
26269 * c.opt: Add Warning attribute to warning options and Optimization
26270 attribute to optimization options.
26271 * common.opt: Likewise.
26273 Add -fhelp and -ftarget-help as aliases for the transformed --help
26274 and --target-help options.
26275 * opt-functions.awk: Add code to handle Warning and Optimization
26278 2007-02-12 Richard Henderson <rth@redhat.com>
26280 * config/alpha/constraints.md: New file.
26281 * config/alpha/alpha.c: Include tm-constrs.h.
26282 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
26283 alpha_extra_constraint): Remove.
26284 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
26285 * config/alpha/alpha-protos.h: Update.
26286 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
26287 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
26288 (EXTRA_CONSTRAINT): Remove.
26289 * config/alpha/alpha.md: Include constraints.md.
26290 (adddi splitter): Use satisfies_constraint_*.
26291 * config/alpha/predicates.md (add_operand): Likewise.
26292 (sext_add_operand, addition_operation): Likewise.
26294 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
26296 PR tree-optimization/29145
26297 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
26298 in our handling of restrict qualified pointers.
26300 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26303 * doc/invoke.texi (Wunused-value): Update description.
26304 (Wextra): Delete item.
26305 * opts.c (set_Wextra): Don't use the value of Wextra to set the
26306 value of Wunused-value.
26307 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
26308 (c_finish_stmt_expr): Don't check extra_warnings.
26309 (emit_side_effect_warnings): The caller is responsible to check
26312 2007-02-11 Roger Sayle <roger@eyesopen.com>
26313 Matt Thomas <matt@3am-software.com>
26315 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
26317 2007-02-11 Roger Sayle <roger@eyesopen.com>
26319 * simplify-rtx.c (simplify_relational_operation_1): Optimize
26320 comparisons of POPCOUNT against zero.
26321 (simplify_const_relational_operation): Likewise.
26323 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26325 * doc/invoke.texi (Wextra): Delete outdated paragraph.
26327 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26329 * dwarf2out.c (root_type): Delete unused function.
26331 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26333 * genattrtab.c (contained_in_p): Delete unused function.
26334 (write_expr_attr_cache): Likewise.
26336 2007-02-11 Jan Hubicka <jh@suse.cz>
26338 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
26341 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
26343 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
26344 to add the REG_EQ* note.
26345 * see.c (see_merge_one_use_extension): Likewise.
26346 * local-alloc.c (update_equiv_regs): Likewise. Also don't
26347 turn REG_EQUAL notes into REG_EQUIV notes if the target
26348 register may have more than one set.
26349 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
26350 * gcse.c (try_replace_reg): Likewise.
26351 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
26352 * calls.c (fixup_tail_calls): Likewise. Abort if there is
26353 more than one REG_EQUIV note.
26354 * reload1.c (gen_reload): Use set_unique_reg_note.
26356 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
26358 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
26359 (ix86_builtin_conversion): New function.
26361 2007-02-06 Mark Mitchell <mark@codesourcery.com>
26364 * tree.h (DECL_REPLACEABLE_P): New macro.
26365 * except.c (set_nothrow_function_flags): Likewise.
26367 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
26368 Ira Rosen <irar@il.ibm.com>
26369 Dorit Nuzman <dorit@il.ibm.com>
26371 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
26372 * targhooks.c (default_builtin_vectorized_conversion): New.
26373 * targhooks.h (default_builtin_vectorized_function): New declaration.
26374 * target.h (struct vectorize): Add builtin_conversion field.
26375 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
26376 stmt_vec_info_type value.
26377 (vectorizable_conversion): New declaration.
26378 * tree-vect-analyze.c (vect_analyze_operations): Add
26379 vectorizable_conversion call.
26380 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
26381 * tree-vect-transform.c (vectorizable_conversion): New function.
26382 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
26383 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
26385 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
26386 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
26387 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
26388 or ALTIVEC_BUILTIN_VCFSX.
26390 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26393 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
26394 CONST_DOUBLE and operand 0 is a hard register.
26395 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
26396 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
26397 is a hard floating-point register.
26399 2007-02-10 Richard Henderson <rth@redhat.com>
26400 Jakub Jelinek <jakub@redhat.com>
26401 Alexandre Oliva <aoliva@redhat.com>
26403 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
26404 * builtin-types.def (BT_WORD): Make unsigned.
26405 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
26406 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
26407 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
26408 * c-decl.c (grokdeclarator): Don't error if !have_tls.
26409 * c-parser.c (c_parser_omp_threadprivate): Likewise.
26410 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
26412 * expr.c (emutls_var_address): New.
26413 (expand_expr_real_1): Expand emulated tls.
26414 (expand_expr_addr_expr_1): Likewise.
26415 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
26416 * output.h (emutls_finish): Declare.
26417 * toplev.c (compile_file): Call it.
26418 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
26419 address before wrapping in CONST.
26420 * varasm.c (emutls_htab, emutls_object_type): New.
26421 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
26422 (get_emutls_object_name, get_emutls_object_type): New.
26423 (get_emutls_init_templ_addr, emutls_decl): New.
26424 (emutls_common_1, emutls_finish): New.
26425 (assemble_variable): When emulating tls, swap decls; generate
26426 constructor for the emutls objects.
26427 (do_assemble_alias): When emulating tls, swap decl and target name.
26428 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
26430 * varpool.c (decide_is_variable_needed): Look at force_output.
26431 Recurse for emulated tls.
26432 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
26433 with decide_is_variable_needed.
26434 * emutls.c: New file.
26435 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
26436 tls_object for real tls.
26438 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
26440 PR rtl-optimization/29599
26441 * reload1.c (eliminate_regs_in_insn): Take the destination
26442 mode into account when computing the offset.
26444 2007-02-09 Stuart Hastings <stuart@apple.com>
26445 Richard Henderson <rth@redhat.com>
26447 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
26448 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
26449 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
26450 fixuns_truncdfhi2): New.
26451 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
26452 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
26453 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
26454 (floatunssidf2): Allow nonimmediate source.
26455 * config/i386/sse.md (movdi_to_sse): New.
26456 (vec_concatv2di): Drop '*'.
26457 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
26458 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
26459 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
26461 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
26462 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
26463 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
26464 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
26465 (ix86_build_signbit_mask): Fix decl of v, refactor to call
26466 ix86_build_const_vector.
26467 (x86_emit_floatuns): Rewrite.
26469 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26471 * genautomata.c (longest_path_length): Delete unused function.
26472 (struct state): Delete unused longest_path_length.
26473 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
26474 (get_free_state): Delete unused.
26476 2007-02-09 Jan Hubicka <jh@suse.cz>
26478 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
26479 * doc/invoke.texi (inline-unit-growth): Update default value.
26481 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
26482 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
26483 (rebuild_cgraph_edges): Likewise.
26484 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
26485 (dump_cgraph_node): Dump frequencies.
26486 (cgraph_clone_edge): Add frequency scales.
26487 (cgraph_clone_node): Add freuqnecy.
26488 * cgraph.h (cgraph_edge): Add freuqnecy argument.
26489 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
26490 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
26491 * tree-pass.h (TODO_rebuild_frequencies): New constant.
26492 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
26493 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
26494 (save_inline_function_body): Likewise.
26495 * ipa-inline.c: inluce rtl.h
26496 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
26497 (cgraph_edge_badness): Use frequencies.
26498 (cgraph_decide_recursive_inlining): Update clonning.
26499 (cgraph_decide_inlining_of_small_function): Dump frequency.
26500 * predict.c (estimate_bb_frequencies): Export.
26501 * predict.h (estimate_bb_frequencies): Declare.
26502 * tree-inline.c (copy_bb): Watch overflows.
26503 (expand_call_inline): Update call of cgraph_create_edge.
26504 (optimize_inline_calls): Use TODO flags to update frequnecies.
26505 * passes.h: Include predict.h
26506 (init_optimization_passes): Move profile ahead.
26507 (execute_function_todo): Handle TODO_rebuild_frequencies.
26509 2007-02-09 Roger Sayle <roger@eyesopen.com>
26511 * config/alpha/alpha.c (emit_insxl): Force the first operand of
26512 the insbl or inswl pattern into a register.
26514 2007-02-09 Roger Sayle <roger@eyesopen.com>
26516 * config/ia64/ia64.md (bswapdi2): New define_insn.
26518 2007-02-09 Richard Henderson <rth@redhat.com>
26520 * config/i386/constraints.md (Ym): New constraint.
26521 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
26522 (movdi_1_rex64): Split sse and xmm general register moves from
26523 memory move alternatives. Use conditional register constraints.
26524 (movsf_1, movdf_integer): Likewise.
26525 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
26526 (movdf_integer_rex64): New.
26527 (pushsf_rex64): Fix output constraints.
26528 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
26529 (sse2_stored): Likewise.
26530 (sse2_storeq_rex64): New.
26531 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
26532 amd and not generic.
26533 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
26534 for optimize_size. Remove SF/DFmode hack.
26536 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
26538 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
26541 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
26542 Richard Sandiford <richard@codesourcery.com>
26544 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
26545 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
26546 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
26547 m68k/t-mlib to tmake_file.
26548 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
26549 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
26550 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
26551 Allow it to be cf or m68k. Set m68k_arch_family. If that
26552 variable is not empty, add t-$m68k_arch_family to tmake_file.
26553 Add t-mlibs to tmake_file.
26554 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
26555 * config/m68k/t-cf: New file.
26556 * config/m68k/t-m68k: Likewise.
26557 * config/m68k/t-mlibs: Likewise.
26558 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26559 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26560 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
26561 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26562 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
26564 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
26565 (INSTALL_LIBGCC): Delete.
26566 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
26567 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26568 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26569 (M68K_MLIB_CPU): Define.
26570 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26571 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26572 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
26574 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
26575 Richard Guenther <rguenther@suse.de>
26577 PR middle-end/23361
26578 * fold-const.c (fold_comparison): Handle obfuscated comparisons
26579 against INT_MIN/INT_MAX.
26580 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
26581 file if a loop is removed.
26583 2007-02-09 Joseph Myers <joseph@codesourcery.com>
26585 * calls.c (store_one_arg): Pass correct alignment to
26586 emit_push_insn for non-BLKmode values.
26587 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
26588 unaligned stack slot via a suitably aligned slot.
26590 2007-02-08 DJ Delorie <dj@redhat.com>
26592 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
26594 (legal_subregs): Use unsigned char, make const.
26595 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
26597 2007-02-08 Paul Brook <paul@codesourcery.com>
26599 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
26600 special interworking needed.
26602 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
26604 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
26605 conditional to __SSE2__.
26606 (Entries below should have been added to first ChangeLog
26607 entry for amdfam10 dated 2007-02-05)
26608 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
26610 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
26612 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
26615 2007-02-08 DJ Delorie <dj@redhat.com>
26617 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
26618 * config/m32c/m32c.c (legal_subregs): New.
26619 (m32c_illegal_subreg_p): New.
26620 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
26621 unsupported subregs of hard regs.
26623 2007-02-08 Jan Hubicka <jh@suse.cz>
26625 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
26626 the same one; always update histograms.
26628 2007-02-08 Diego Novillo <dnovillo@redhat.com>
26630 * passes.c (init_optimization_passes): Tidy comment.
26632 2007-02-08 Roger Sayle <roger@eyesopen.com>
26634 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
26635 strip zero_extend, bswap and rotates from POCOUNT's argument.
26636 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
26637 zero_extend and rotates from PARITY's argument.
26638 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
26639 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
26640 of an integer constant at compile-time.
26642 2007-02-08 Diego Novillo <dnovillo@redhat.com>
26645 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
26647 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
26650 * tree-ssa-live.c (remove_unused_locals): Do not remove
26651 TREE_ADDRESSABLE variables.
26652 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
26653 * tree-ssa-operands.c (add_virtual_operand): Remove argument
26654 FOR_CLOBBER. Update all users.
26655 If VAR has an associated alias set, add a virtual operand for
26656 it if no alias is found to conflict with the memory reference.
26658 2007-02-07 Jan Hubicka <jh@suse.cz>
26659 Robert Kidd <rkidd@crhc.uiuc.edu>
26661 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
26663 2007-02-07 Ian Lance Taylor <iant@google.com>
26665 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
26667 2007-02-07 Roger Sayle <roger@eyesopen.com>
26669 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
26670 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
26671 tablejumpdi, movsi_to_cr_one): Remove constraints from
26672 define_expand's match_operands.
26674 2007-02-07 Roger Sayle <roger@eyesopen.com>
26676 * global.c (compute_regsets): Move declatation of "i" inside of
26677 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
26679 2007-02-07 Jakub Jelinek <jakub@redhat.com>
26682 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
26683 of INDIRECT_REF <RESULT_DECL>.
26685 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
26687 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
26688 Kaz Kojima <kkojima@gcc.gnu.org>
26691 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
26693 (sh_initialize_trampoline): Add parentheses to avoid a warning.
26695 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
26697 * doc/loop.texi: Document possibility not to perform disambiguation
26698 of loops with multiple latches.
26699 * cfgloopmanip.c (alp_enum_p): Removed.
26700 (add_loop): Handle subloops. Use get_loop_body_with_size.
26701 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
26702 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
26703 the new forwarder block.
26704 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
26705 Handle the case latch is NULL.
26706 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
26707 modifications when marking loop exits.
26708 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
26710 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
26711 disambiguate_loops_with_multiple_latches.
26712 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
26713 before fix_loop_structure.
26714 * cfgloop.c: Include pointer-set.h and output.h.
26715 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
26716 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
26717 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
26718 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
26719 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
26720 disambiguate_multiple_latches, get_loop_body_with_size,
26721 disambiguate_loops_with_multiple_latches): New functions.
26722 (flow_loop_dump): Dump multiple latch edges.
26723 (flow_loop_nodes_find): Handle loops with multiple latches.
26724 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
26725 (glb_enum_p): Modified.
26726 (get_loop_body): Use get_loop_body_with_size.
26727 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
26728 (AVOID_CFG_MODIFICATIONS): New constant.
26729 (disambiguate_loops_with_multiple_latches, add_loop,
26730 get_loop_body_with_size): Declare.
26731 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
26733 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
26735 PR inline-asm/28686
26736 * global.c (compute_regsets): New function.
26737 (global_alloc): Refactored ELIMINABLE_REGSET
26738 and NO_GLOBAL_ALLOC_REGS computation out.
26739 (rest_of_handle_global_alloc): Call compute_regsets()
26740 for non-optimizing case.
26742 2007-02-06 Richard Henderson <rth@redhat.com>
26744 * config/i386/constraints.md (Y2): Rename from Y.
26745 (Yi): New constraint.
26746 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
26747 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
26748 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
26749 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
26750 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
26751 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
26752 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
26753 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
26754 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
26755 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
26756 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
26757 vec_extractv2si_1): Change Y constraints to Y2.
26758 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
26759 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
26760 Change Y constraints to Y2.
26761 (sse2_loadld): Change Y constraints to x.
26763 2007-02-06 Roger Sayle <roger@eyesopen.com>
26765 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
26766 (parity<mode>2): New define_expand using rs6000_emit_parity.
26767 * config/rs6000/rs6000.c (rs6000_emit_popcount,
26768 rs6000_emit_parity): New functions.
26769 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
26770 rs6000_emit_parity): Prototype here.
26772 2007-02-06 Ian Lance Taylor <iant@google.com>
26774 * lower-subreg.c (simple_move_operand): Reject CONST.
26775 (resolve_clobber): Call validate_change rather than directly
26776 assigning to XEXP (pat, 0).
26778 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
26780 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
26781 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
26782 (tree-cfg.o): Remove hashtab.h dependency.
26784 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
26785 (struct ivopts_data): Change niters to pointer_map_t.
26786 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
26787 (niter_for_exit): Create pointer_map on demand. Change for
26789 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
26790 (free_loop_data): Destroy data->niters if created and reset field.
26791 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
26792 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
26794 * tree-ssa-reassoc.c: Include pointer-set.h.
26795 (bb_rank): Change to long *.
26796 (operand_rank): Change to pointer_map_t.
26797 (find_operand_rank): Return long, -1 if not found. Declare as inline.
26798 (insert_operand_rank): Accept long.
26799 (operand_entry_hash, operand_entry_eq): Remove.
26800 (get_rank): Return long. Adjust for changes above.
26801 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
26803 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
26805 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
26806 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
26807 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
26809 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
26810 directly since it cannot be NULL.
26811 (get_vi_for_tree): Rewrite for pointer_map API.
26812 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
26813 (init_alias_vars): Create vi_for_tree as pointer_map.
26814 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
26816 * tree-cfg.c: Don't include hashtab.h.
26817 (edge_to_cases): Declare as pointer_map.
26818 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
26820 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
26821 (start_recording_case_labels): Create edge_to_cases as pointer_map.
26822 (end_recoding_case_labels): Cleanup edge_to_cases manually before
26824 (record_switch_edge): Delete.
26825 (get_cases_for_edge): Adjust for pointer_map API, inline
26826 record_switch_edge (rewritten for new API), remove goto.
26828 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
26830 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
26831 * tree-nested.c: Include pointer-set.h.
26832 (var_map_elt, var_map_eq, var_map_hash): Delete.
26833 (struct nesting_info): Remove GTY marker. Change the two htab_t's
26834 to pointer_map_t's.
26835 (nesting_info_bitmap_obstack): New.
26836 (lookup_field_for_decl): Adjust for pointer_map API.
26837 (lookup_tramp_for_decl): Adjust for pointer_map API.
26838 (get_nonlocal_debug_decl): Adjust for pointer_map API.
26839 (get_local_debug_decl): Adjust for pointer_map API.
26840 (convert_nl_goto_reference): Adjust for pointer_map API.
26841 (convert_nl_goto_receiver): Adjust for pointer_map API.
26842 (create_nesting_tree): Create outside GGC space. Create bitmap on
26843 the new obstack. Create field_map and var_map as pointer_maps.
26844 (free_nesting_tree): Adjust for changes to create_nesting_tree.
26846 (lower_nested_functions): Move root here, no need to NULL it.
26847 Initialize and release the obstack.
26849 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
26851 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
26852 Remove prototypes and make them non-static.
26853 (struct tree_int_map): Remove.
26854 * tree.h (struct tree_int_map): Move here, turning TO into an
26856 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
26858 * tree.h (TREE_COMPLEXITY): Remove.
26859 (struct tree_exp): Remove complexity field.
26860 * tree.c (build1_stat): Don't set it.
26862 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
26863 Victor Kaplansky <victork@il.ibm.com>
26865 * tree-vectorizer.c (vect_is_simple_use): Support induction.
26866 (vect_is_simple_reduction): Support reduction with induction as
26867 one of the operands.
26868 (vect_is_simple_iv_evolution): Fix formatting.
26869 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
26870 formatting. Don't mark induction phis for vectorization.
26871 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
26872 * tree-vect-transform.c (get_initial_def_for_induction): New function.
26873 (vect_get_vec_def_for_operand): Support induction.
26874 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
26876 (vectorizable_reduction): Support reduction with induction as one of
26878 (vectorizable_type_demotion): Use def-type of stmt argument rather
26879 than dummy def-type.
26881 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
26882 flag_tree_scev_cprop.
26883 * common.opt (tree-scev-cprop): New flag.
26885 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
26886 call to vect_get_new_vect_var.
26888 2007-02-06 Ira Rosen <irar@il.ibm.com>
26890 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
26891 vectype is not NULL.
26892 (vect_pattern_recog_1): Likewise.
26894 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26896 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
26897 (fold_negate_expr): Likewise.
26899 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
26902 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
26903 even if cv-qualification is the same.
26905 2007-02-05 Geoffrey Keating <geoffk@apple.com>
26907 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
26908 __enable_execute_stack on completion.
26910 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26912 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
26913 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
26914 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
26915 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
26916 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
26917 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
26918 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
26919 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
26921 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26923 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
26924 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
26925 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
26926 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
26927 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
26928 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
26929 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
26930 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
26931 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
26932 umuldi3_highpart_rex64, umulsi3_highpart_insn,
26933 umulsi3_highpart_zext, smuldi3_highpart_rex64,
26934 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
26935 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
26936 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
26937 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
26938 sqrtextenddfxf2_i387): Added amdfam10_decode.
26940 * config/i386/athlon.md (athlon_idirect_amdfam10,
26941 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
26942 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
26943 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
26944 athlon_ivector_store_amdfam10): New define_insn_reservation.
26945 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
26948 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26950 * config/i386/athlon.md (athlon_call_amdfam10,
26951 athlon_pop_amdfam10, athlon_lea_amdfam10): New
26952 define_insn_reservation.
26953 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
26954 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
26955 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
26957 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26959 * config/i386/athlon.md (athlon_sseld_amdfam10,
26960 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
26961 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
26963 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26965 * config/i386/athlon.md (athlon_sseins_amdfam10): New
26966 define_insn_reservation.
26967 * config/i386/i386.md (sseins): Added sseins to define_attr type
26968 and define_attr unit.
26969 * config/i386/sse.md: Set type attribute to sseins for insertq
26972 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26974 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
26975 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
26976 ssecomi_load_amdfam10, ssecomi_amdfam10,
26977 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
26978 define_insn_reservation.
26979 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
26981 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26983 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
26984 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
26985 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
26986 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
26987 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
26988 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
26989 define_insn_reservation.
26991 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
26992 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
26993 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
26994 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
26995 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
26997 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26999 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
27000 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
27001 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
27002 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
27003 athlon_ssemul_load_k8): Added amdfam10.
27005 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27007 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
27008 (x86_sse_unaligned_move_optimal): New variable.
27010 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
27012 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
27013 for unaligned vector SSE double/single precision loads for AMDFAM10.
27015 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27017 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
27018 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
27019 Define TARGET_CPU_DEFAULT_amdfam10.
27020 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
27021 (processor_type): Add PROCESSOR_AMDFAM10.
27023 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
27024 processor_type in config/i386/i386.h.
27025 Enable imul peepholes for TARGET_AMDFAM10.
27027 * config.gcc: Add support for --with-cpu option for amdfam10.
27029 * config/i386/i386.c (amdfam10_cost): New variable.
27030 (m_AMDFAM10): New macro.
27031 (m_ATHLON_K8_AMDFAM10): New macro.
27032 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
27033 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
27034 x86_promote_QImode, x86_integer_DFmode_moves,
27035 x86_partial_reg_dependency, x86_memory_mismatch_stall,
27036 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
27037 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
27038 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
27039 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
27040 Enable/disable for amdfam10.
27041 (override_options): Add amdfam10_cost to processor_target_table.
27042 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
27043 processor_alias_table.
27044 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
27045 (ix86_adjust_cost): Add code for amdfam10.
27047 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27049 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
27050 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
27051 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
27052 * config/i386/i386.h: Add builtin definition for SSE4A.
27053 * config/i386/i386.md: Add support for ABM instructions
27054 (popcnt and lzcnt).
27055 * config/i386/sse.md: Add support for SSE4A instructions
27056 (movntss, movntsd, extrq, insertq).
27057 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
27058 Add -march=amdfam10 flag.
27059 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
27060 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
27062 * doc/extend.texi: Add documentation for SSE4A builtins.
27064 2007-02-05 Bob Wilson <bob.wilson@acm.org>
27066 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
27068 2007-02-05 Richard Guenther <rguenther@suse.de>
27070 * tree-vectorizer.h (vectorizable_function): Add argument type
27071 argument, change return type.
27072 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
27073 * tree-vect-transform.c (vectorizable_function): Handle extra
27074 argument, return vectorized function decl.
27075 (build_vectorized_function_call): Remove.
27076 (vectorizable_call): Handle calls with result and argument types
27077 differing. Handle loop vectorization factor correctly.
27078 * targhooks.c (default_builtin_vectorized_function): Adjust for
27080 * targhooks.h (default_builtin_vectorized_function): Likewise.
27081 * target.h (builtin_vectorized_function): Add argument type
27083 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
27084 extra argument, allow vectorizing of lrintf.
27085 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
27086 documentation of target hook.
27088 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
27091 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
27092 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
27093 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
27095 2007-02-05 Roger Sayle <roger@eyesopen.com>
27097 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
27098 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
27099 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
27100 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
27101 before canonicalizing sincos to cexpi.
27102 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
27104 2007-02-05 Roger Sayle <roger@eyesopen.com>
27106 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
27107 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
27108 (alpha_init_builtins): Use alpha_add_builtins to process tables.
27110 2007-02-05 Roger Sayle <roger@eyesopen.com>
27112 * mips-tfile.c (initialize_init_file): Correct endianness test.
27114 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
27116 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
27117 the 'y' constraint.
27119 2007-02-05 Richard Sandiford <richard@codesourcery.com>
27121 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
27122 saves in a PARALLEL before the register assignments.
27124 2007-02-05 Richard Sandiford <richard@codesourcery.com>
27126 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
27127 DWARF_FRAME_RETURN_COLUMN to be a general register.
27128 * dwarf2out.c (init_return_column_size): New function, split from...
27129 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
27130 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
27131 to be nongeneral registers.
27132 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
27134 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
27135 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
27137 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
27139 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
27141 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
27143 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
27144 (remove_path): Use can_remove_branch_p and remove_branch instead
27145 of loop_delete_branch_edge.
27146 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
27147 (tree_transform_and_unroll_loop): Remove dead branches immediately.
27148 Update profile using scale_dominated_blocks_in_loop.
27149 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
27150 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
27151 (can_remove_branch_p, remove_branch): Declare.
27152 * tree-cfg.c (tree_can_remove_branch_p): New function.
27153 (tree_cfg_hooks): Add tree_can_remove_branch_p.
27154 * cfgrtl.c (rtl_can_remove_branch_p): New function.
27155 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
27157 2007-02-05 Jan Hubicka <jh@suse.cz>
27159 PR middle-end/30696
27160 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
27161 nodes in cgraph, don't remove offline copy of the function.
27163 2007-02-04 Jan Hubicka <jh@suse.cz>
27165 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
27166 vectors might cause maybe_lookup_element_for_expr to be called
27167 on non-sra-candidate.
27169 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
27171 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
27172 config/bfin/bfin.md, config/bfin/predicates.md: Follow
27173 spelling conventions.
27175 2007-02-04 Richard Guenther <rguenther@suse.de>
27177 PR middle-end/30636
27178 * fold-const.c (try_move_mult_to_index): Make sure to not
27179 overflow one dimension of a multi-dimensional array access.
27181 2007-02-04 Jan Hubicka <jh@suse.cz>
27183 * passes.c (init_optimization_passes): Reindent.
27185 2007-02-04 Jan Hubicka <jh@suse.cz>
27186 Eric Botcazou <ebotcazou@adacore.com>
27188 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
27189 (execute_fixup_cfg): Break out the abnormal goto code.
27190 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
27191 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
27192 (optimize_inline_calls): Call make_nonlocal_label_edges.
27194 2007-02-04 Jan Hubicka <jh@suse.cz>
27196 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
27197 true when something was changed.
27198 (rename_ssa_copies): When something was changed, do
27199 TODO_remove_unused_locals.
27200 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
27201 add TODO_remove_unused_locals when instruction was removed.
27203 2007-02-04 Jan Hubicka <jh@suse.cz>
27205 * ipa-inline.c (try_inline): Improve debug output; work on already
27207 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
27208 call try_inline for already inlined edges too when flattening;
27209 inline also functions that make callee growth but overall unit size
27212 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
27214 * config/m32c/bitops.md, config/m32c/jump.md,
27215 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
27216 config/m32r/m32r.h, config/m32r/m32r.md,
27217 config/m32r/predicates.md, config/m68hc11/larith.asm,
27218 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
27219 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
27220 config/mips/mips-protos.h, config/mips/mips.c,
27221 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
27222 config/mn10300/mn10300.h, config/mn10300/predicates.md,
27223 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
27224 spelling conventions.
27226 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
27227 Follow spelling conventions.
27229 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
27231 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
27232 warn about C++0x compatibility.
27234 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
27236 * config/h8300/h8300.c, config/h8300/h8300.h,
27237 config/h8300/h8300.md: Follow spelling conventions.
27239 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
27241 PR middle-end/30667
27242 * combine.c (try_combine): Do not substitute source operand
27243 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
27245 2007-02-03 Jan Hubicka <jh@suse.cz>
27247 PR gcov-profile/30650
27248 * value-prof.c (stringop_block_profile): Fix handling of size counter;
27249 do not divide by zero for never executed counters.
27250 (tree_find_values_to_profile): Fix counters.
27251 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
27253 2007-02-03 Ian Lance Taylor <iant@google.com>
27255 * lower-subreg.c (simple_move_operand): New static function,
27256 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
27258 (simple_move): Call simple_move_operand.
27259 (find_decomposable_subregs): Add special handling of MEMs.
27260 (can_decompose_p): Rename from cannot_decompose_p. Reverse
27261 meaning of return value. If we see a hard register, test whether
27262 it can store a word_mode value. Change all callers.
27264 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27266 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
27267 ftrapv insns and expanders.
27268 (subdi3): Change define_expand operand 1 to arith11_operand, and
27269 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
27270 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
27271 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
27274 PR middle-end/30174
27275 * varasm.c (notice_global_symbol): Treat global objects as weak when
27276 flag_shlib is true.
27278 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27280 * emit-rtl.c (dconstpi): Delete.
27281 (dconstsqrt2): New.
27282 (init_emit_once): Delete dconstpi and init dconstsqrt2.
27283 * real.h (dconstpi): Delete.
27284 (dconstsqrt2): New.
27285 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
27286 (fold_builtin_hypot): Likewise.
27288 2007-02-03 Tom Tromey <tromey@redhat.com>
27291 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
27292 -gcoff3, -gxcoff3, -gvms3 implies -dD.
27294 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
27296 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
27297 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
27298 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
27299 config/rs6000/cell.md, config/rs6000/darwin.h,
27300 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
27301 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
27302 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
27303 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
27304 typos. Follow spelling conventions.
27305 * doc/invoke.texi: Follow spelling conventions.
27307 2007-02-03 Roger Sayle <roger@eyesopen.com>
27309 * simplify-rtx.c (simplify_relational_operation_1): Implement some
27310 canonicalization transformations that attempt to simplify integer
27311 constant comparisons to become comparisons against zero.
27313 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27315 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
27317 * fold-const.c (fold_binary): Fix comment typos. Fold complex
27318 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
27320 2007-02-02 Mike Stump <mrs@apple.com>
27322 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
27323 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
27324 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
27325 generate a branch island.
27327 2007-02-02 Bob Wilson <bob.wilson@acm.org>
27329 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
27330 (xtensa_legitimate_address_p): New.
27331 (xtensa_legitimize_address): New.
27332 (xtensa_output_addr_const_extra): New.
27333 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
27335 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
27336 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
27337 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
27338 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
27339 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
27340 (xtensa_legitimize_address): New.
27341 (xtensa_output_addr_const_extra): New.
27343 2007-02-02 Steve Ellcey <sje@cup.hp.com>
27345 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
27347 2007-02-02 Ian Lance Taylor <iant@google.com>
27349 * expmed.c (expand_divmod): Add comment.
27351 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
27353 * emit-rtl.c (renumber_insns): Remove.
27354 * flags.h: Remove the extern for flag_renumber_insns.
27355 * rtl.h: Remove the prototype for renumber_insns.
27356 * toplev.c (flag_renumber_insns): Remove.
27358 2007-02-02 Hui-May Chang <hm.chang@apple.com>
27360 Revert for x86 darwin:
27361 2005-06-19 Uros Bizjak <uros@kss-loka.si>
27363 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
27364 code before the following patch under TARGET_MACHO.
27365 (ix86_function_value_regno_p): Likewise.
27367 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27369 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
27372 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
27375 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
27376 loads to general or fp registers. Add comments.
27377 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
27379 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
27381 * pointer-set.c (insert_aux): Only return insertion slot.
27382 (pointer_set_insert): Adjust.
27383 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
27384 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
27385 pointer_map_traverse): New.
27386 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
27387 pointer_map_create, pointer_map_destroy, pointer_map_insert,
27388 pointer_map_contains, pointer_map_traverse): Declare.
27390 2007-02-02 Jakub Jelinek <jakub@redhat.com>
27392 PR middle-end/30473
27393 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
27394 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
27396 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
27398 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
27400 (struct _dep): New type.
27401 (dep_t): New typedef.
27402 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
27403 (DEP_STATUS): New access macro. The macro with the same name was
27404 renamed to DEP_LINK_STATUS.
27405 (dep_init): Declare function
27407 (struct _dep_link): New type.
27408 (dep_link_t): New typedef.
27409 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
27410 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
27411 (DEP_LINK_STATUS): New macro.
27412 (debug_dep_links): New debug function.
27414 (struct _deps_list): New type.
27415 (deps_list_t): New typedef.
27416 (DEPS_LIST_FIRST): New access macro.
27417 (FOR_EACH_DEP_LINK): New cycle macro.
27418 (create_deps_list, free_deps_list, delete_deps_list): Declare
27420 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
27421 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
27422 (copy_deps_list_change_con): Ditto.
27424 (move_dep_link): Declare function.
27426 (struct _dep_node): New type.
27427 (dep_node_t): New typedef.
27428 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
27430 (struct haifa_insn_data.back_deps): New field to hold backward
27431 dependencies of the insn.
27432 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
27434 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
27435 Change its type to deps_list_t.
27436 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
27437 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
27438 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
27440 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
27442 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
27444 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
27446 (dep_cost): Declare.
27448 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
27449 (ds_to_dk, dk_to_ds): New functions.
27451 (init_dep_1): New static function.
27452 (init_dep): New function.
27453 (copy_dep): New static function.
27455 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
27457 (detach_dep_link): New static function.
27458 (move_dep_link): New function.
27460 (dep_links_consistent_p, dump_dep_links): New static functions.
27461 (debug_dep_links): New debugging function.
27463 (deps_obstack, dl_obstack, dn_obstack): New static variables.
27465 (alloc_deps_list, init_deps_list): New static functions.
27466 (create_deps_list): New function.
27467 (clear_deps_list): New static function.
27468 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
27469 (deps_list_consistent_p, dump_deps_list): New static functions.
27470 (debug_deps_list): New function.
27471 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
27473 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
27475 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
27476 use new scheduler dependencies lists.
27477 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
27478 (sched_analyze): Ditto. Initialize dependencies lists.
27479 (add_forw_dep, compute_forward_dependences): Update to use new
27480 scheduler dependencies lists.
27482 (init_dependency_caches): Init deps_obstack.
27483 (free_dependency_caches): Free deps_obstack.
27485 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
27486 new scheduler dependencies lists.
27487 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
27488 (add_back_forw_dep, delete_back_forw_dep): Ditto.
27490 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
27491 Update to use new scheduler dependencies lists.
27492 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
27493 (debug_dependencies): Ditto.
27494 (schedule_region): Update comments.
27496 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
27497 scheduler dependencies lists.
27498 (schedule_ebb): Update comments.
27500 * rtl.def (DEPS_LIST): Remove.
27502 * lists.c (unused_deps_list): Remove.
27503 (free_list): Update assertions.
27505 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
27506 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
27508 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
27509 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
27511 * haifa-sched.c (comments): Update.
27512 (insn_cost1): Remove. Inline the code into insn_cost ().
27513 (insn_cost): Update to use new scheduler dependencies lists. Move
27514 processing of the dependency cost to dep_cost ().
27515 (dep_cost): New function. Use it instead of insn_cost () when
27516 evaluating cost of the dependency. Use compatible interface to
27517 interact with the target.
27518 (priority): Update to use new scheduler dependencies lists.
27519 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
27520 with greater number of insns that depend on the insn.
27521 (schedule_insn): Update to use new scheduler dependencies lists. Add
27522 code to free backward dependencies lists. Inline and optimize code
27523 from resolve_dep () - see PR28071.
27524 (ok_for_early_queue_removal): Update to use new scheduler dependencies
27525 lists. Update call to targetm.sched.is_costly_dependence hook.
27527 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
27528 scheduler dependencies lists.
27530 (resolve_dep): Remove. Move the logic to schedule_insn ().
27531 (init_h_i_d): Initialize dependencies lists.
27533 (process_insn_depend_be_in_spec): Rename to
27534 process_insn_forw_deps_be_in_spec. Update to use new scheduler
27535 dependencies lists.
27536 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
27537 Update to use new scheduler dependencies lists.
27538 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
27540 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
27541 new scheduler dependencies lists.
27542 (build_intra_loop_deps): Ditto.
27544 * target.h (struct _dep): Declare to use in
27545 gcc_target.sched.is_costly_dependence.
27546 (struct gcc_target.sched.adjust_cost): Fix typo.
27547 (struct gcc_target.sched.is_costly_dependence): Change signature to
27548 use single dep_t parameter instead of an equivalent triad.
27549 (struct gcc_target.sched.adjust_cost_2): Remove.
27551 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
27553 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
27555 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
27557 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
27559 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
27560 (REG_DEP_TRUE): Document.
27562 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
27563 Change signature to correspond to the targetm.sched.adjust_cost hook.
27564 Update use in TARGET_SCHED_ADJUST_COST_2.
27565 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
27566 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
27567 new scheduler dependencies lists.
27568 (ia64_gen_check): Ditto.
27570 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
27571 scheduler dependencies lists.
27573 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
27574 signature to correspond to the targetm.sched.is_costly_dependence hook.
27575 (is_costly_group): Update to use new scheduler dependencies lists.
27577 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
27578 instead of INSN_COST () macro.
27580 2007-02-01 Ian Lance Taylor <iant@google.com>
27582 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
27584 2007-02-01 Guy Martin <gmsoft@gentoo.org>
27586 * pa.md (tp_load): Correct mfctl instruction syntax.
27588 2007-02-01 Geoffrey Keating <geoffk@apple.com>
27590 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
27591 altivec_padding_size calculation on AIX. Improve comment, add
27592 assert to verify that it's right.
27594 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
27597 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
27599 PR inline-asm/28686
27600 * global.c (global_alloc): Add mising initialization of
27603 2007-02-01 Roger Sayle <roger@eyesopen.com>
27605 * alias.c (init_alias_analysis): Correct whitespace.
27606 * bb-reorder.c (fix_edges_for_rarely_executed_code,
27607 partition_hot_cold_basic_blocks): Likewise.
27608 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
27609 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
27610 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
27611 fold_builtin_snprintf_chk, fold_builtin_printf,
27612 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
27613 do_mpfr_arg3, do_mpfr_sincos): Likewise.
27614 * cfgcleanup.c (cleanup_cfg): Likewise.
27615 * cfgexpand.c (tree_expand_cfg): Likewise.
27616 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
27617 * function.c (get_next_funcdef_no): Likewise.
27618 * gengtype.c (main): Likewise.
27619 * genmodes.c (main): Likewise.
27620 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
27621 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
27622 * ifcvt.c (noce_emit_move_insn): Likewise.
27623 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
27625 * stor-layout.c (get_best_mode): Likewise.
27626 * tree-ssa-loop-niter.c (get_val_for): Likewise.
27627 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
27628 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
27629 perform_var_substitution, solve_graph): Likewise.
27630 * tree-vrp.c (vrp_finalize): Likewise.
27632 2007-02-01 Ian Lance Taylor <iant@google.com>
27634 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
27635 high part of a paradoxical subreg, return a constant zero.
27637 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
27639 * toplev.c (lang_dependent_init): Call init_set_costs.
27640 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
27642 2007-02-01 Richard Guenther <rguenther@suse.de>
27644 PR middle-end/30656
27645 * fold-const.c (fold_negate_expr): Allow negating a
27646 constant if overflow does not change.
27648 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27650 * doc/c-tree.texi (Expression trees): Improve markup.
27651 * doc/tm.texi (Register Classes, Addressing Modes)
27652 (Floating Point): Fix spacing after abbreviations. Fix some
27655 2007-02-01 Ben Elliston <bje@au.ibm.com>
27657 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
27658 * doc/contrib.texi: Likewise.
27659 * doc/install.texi: Likewise.
27661 2007-01-31 Richard Henderson <rth@redhat.com>
27662 Ian Lance Taylor <iant@google.com>
27664 * lower-subreg.c: New file.
27665 * rtl.def (CONCATN): Define.
27666 * passes.c (init_optimization_passes): Add pass_lower_subreg and
27667 pass_lower_subreg2.
27668 * emit-rtl.c (update_reg_offset): New static function, broken out
27669 of gen_rtx_REG_offset.
27670 (gen_rtx_REG_offset): Call update_reg_offset.
27671 (gen_reg_rtx_offset): New function.
27672 * regclass.c: Revert patch of 2006-03-05, restoring
27674 (clear_reg_info_regno): New function.
27675 * dwarf2out.c (concatn_loc_descriptor): New static function.
27676 (loc_descriptor): Handle CONCATN.
27677 * common.opt (fsplit_wide_types): New option.
27678 * opts.c (decode_options): Set flag_split_wide_types when
27680 * timevar.def (TV_LOWER_SUBREG): Define.
27681 * rtl.h (gen_reg_rtx_offset): Declare.
27682 (reg_scan_update): Declare.
27683 * regs.h (clear_reg_info_regno): Declare.
27684 * tree-pass.h (pass_lower_subreg): Declare.
27685 (pass_lower_subreg2): Declare.
27686 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
27687 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
27688 -fsplit-wide-types.
27689 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
27690 * Makefile.in (OBJS-common): Add lower-subreg.o.
27691 (lower-subreg.o): New target.
27693 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
27695 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
27697 2007-01-31 Anatoly Sokolov <aesok@post.ru>
27700 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
27702 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27704 PR middle-end/29335
27705 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
27707 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
27709 * cfgloop.h: Include vec-prim.h.
27710 (enum li_flags): Remove LI_ONLY_OLD.
27711 (loop_iterator): Changed.
27712 (fel_next, fel_init): Iterate over loop tree.
27713 (FOR_EACH_LOOP_BREAK): New macro.
27714 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
27716 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
27717 * modulo-sched.c (sms_schedule): Ditto.
27718 * tree-vectorizer.c (vectorize_loops): Ditto.
27719 * doc/loop.texi: Update information on loop numbering and behavior of
27720 FOR_EACH_LOOP wrto new loops.
27721 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
27722 add_to_evolution_1): Test nestedness of loops instead of comparing
27724 * tree-chrec.c (chrec_fold_plus_poly_poly,
27725 chrec_fold_multiply_poly_poly, chrec_evaluate,
27726 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
27727 reset_evolution_in_loop): Ditto.
27728 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
27730 2007-01-31 Dirk Mueller <dmueller@suse.de>
27732 * c-common.c (warn_about_parentheses): Separate warning about
27733 un-parenthized sequence of comparison operators from the one
27734 which is supposed to warn about x <= y <= z.
27736 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
27738 * optabs.h (enum optab_index): Add new OTI_isinf.
27739 (isinf_optab): Define corresponding macro.
27740 * optabs.c (init_optabs): Initialize isinf_optab.
27741 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
27743 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
27744 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
27746 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
27747 expand_builtin_interclass_mathfn.
27748 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
27749 * config/i386/i386.md (UNSPEC_FXAM): New constant.
27750 (fxam<mode>2_i387): New insn pattern.
27751 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
27752 built-in functions as x87 inline asm.
27754 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
27756 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
27758 2007-01-30 Eric Christopher <echristo@apple.com>
27760 * config.gcc: Add geode.
27762 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
27764 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
27765 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
27766 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
27767 value-prof.c: Fix comment typos.
27769 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27772 * doc/invoke.texi (Wpointer-arith): Document warning.
27774 2007-01-30 Janis Johnson <janis187@us.ibm.com>
27776 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
27777 the list of discrepancies from the draft TR.
27779 2007-01-30 Dirk Mueller <dmueller@suse.de>
27782 * doc/invoke.texi (-Wreturn-type): Update description to
27783 match new behavior.
27785 2007-01-30 Richard Sandiford <richard@codesourcery.com>
27787 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
27789 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
27791 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
27792 to handle optabs that operate on floating point input argument and
27793 output to integer output.
27794 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
27795 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
27796 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
27797 expand_builtin_interclass_mathfn ().
27798 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
27799 (ilogbsi2): Remove.
27800 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
27801 ilogbl built-in functions as x87 intrinsics.
27803 2007-01-30 Richard Guenther <rguenther@suse.de>
27805 PR middle-end/27657
27806 * dwarf2out.c (reference_to_unused): Query varpool if the
27807 variable was output.
27809 2007-01-30 Richard Guenther <rguenther@suse.de>
27811 PR middle-end/30313
27812 * passes.c (execute_one_pass): Reset in_gimple_form to not
27813 confuse non-unit-at-a-time mode.
27815 2007-01-29 Roger Sayle <roger@eyesopen.com>
27816 Richard Guenther <rguenther@suse.de>
27818 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
27819 avoid undefined behaviour on overflow. Use force_fit_type_double
27820 to construct the constant with the specified TREE_OVERFLOW.
27822 2007-01-29 Janis Johnson <janis187@us.ibm.com>
27824 * config/dfp-bit.c: Add parameterized support for fp exceptions.
27825 * config/dfp-bit.h: Ditto.
27827 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27829 * c-decl.c (pop_scope): Replace warnings with call to
27830 warn_for_unused_label.
27831 * c-common.h (warn_for_unused_label): Declare.
27832 * c-common.c (warn_for_unused_label): Define.
27834 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27836 * tree-optimize.c (update_inlined_to_pointers): Delete unused
27839 2007-01-29 Janis Johnson <janis187@us.ibm.com>
27841 * Makefile.in (USER_H): Remove decfloat.h.
27842 * ginclude/decfloat.h: Delete, moving contents to ...
27843 * ginclude/float.h: Add support for decimal floating point,
27844 guarded by __STDC_WANT_DEC_FP__.
27846 2007-01-29 Mike Stump <mrs@apple.com>
27848 * doc/gccint.texi (Top): Rename Loop Representation to Loop
27849 Analysis and Representation to resolve case insensitive conflict.
27850 * doc/loop.texi (Loop Analysis and Representation): Likewise.
27852 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
27854 * tree.h (struct tree_memory_tag): Add aliases member.
27855 (MTAG_ALIASES): New macro.
27856 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
27857 (add_may_alias): Remove pointer-set. Update for may_aliases being
27859 (mark_aliases_call_clobbered): Update for may_aliases being a
27861 (compute_tag_properties): Ditto.
27862 (create_partition_for): Ditto.
27863 (compute_memory_partitions): Ditto.
27864 (dump_may_aliases_for): Ditto.
27865 (is_aliased_with): Ditto.
27866 (add_may_alias_for_new_tag): Ditto.
27867 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
27868 (compute_is_aliased): New function.
27869 (compute_may_aliases): Call compute_is_aliased).
27870 (init_alias_info): Initialize alias_bitmap_obstack.
27871 (union_alias_set_into): New function.
27872 (compute_flow_sensitive_aliasing): Use union_aliases_into.
27873 (have_common_aliases_p): Rewrite to take two bitmaps and use
27875 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
27876 Update for bitmaps.
27877 (finalize_ref_all_pointers): Update for add_may_alias changes.
27878 (new_type_alias): Ditto.
27879 * tree-flow-inline.h (may_aliases): Return a bitmap.
27880 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
27881 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
27882 may_aliases being a bitmap.
27883 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
27884 may_aliases now returns a bitmap.
27885 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
27887 * tree-ssa-operands.c (add_virtual_operand): Update for
27888 may_aliases being a bitmap.
27890 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
27892 PR tree-optimization/30630
27893 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
27894 variable as changed.
27896 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
27899 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
27900 expanded only once even if an error occurs.
27902 2007-01-29 Ben Elliston <bje@au.ibm.com>
27904 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
27905 (__gcov_average_profiler): Likewise.
27906 (__gcov_ior_profiler): Likewise.
27907 (__gcov_merge_ior): Likewise.
27909 2007-01-28 Jan Hubicka <jh@suse.cz>
27911 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
27912 * value-prof.c (stringop_block_profile): Likewise.
27914 2007-01-28 Jan Hubicka <jh@suse.cz>
27916 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
27917 Add variant handling histograms; add wrapper.
27918 (clear_storage_via_libcall): Export.
27919 (emit_block_move_hints): Break out from ...; add histograms.
27920 (emit_block_move): ... this one.
27921 (clear_storage_hints): Break out from ...; add histograms.
27922 (clear_storage): ... this one.
27923 (set_storage_via_memset): Handle histogram.
27924 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
27925 (clear_storage_hints, clear_storage_via_libcall): Declare.
27926 (set_storage_via_setmem): Update prototype.
27927 * doc/md.texi (movmem, setmem): Document new arguments.
27929 * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
27930 Add new histograms.
27931 (stringop_block_profile): New global function.
27932 (tree_stringops_values_to_profile): Profile block size and alignment.
27933 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
27935 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
27936 (stringop_block_profile): Declare.
27937 * builtins.c: Include value-prof.h.
27938 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
27939 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
27940 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
27941 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
27942 * profile.c (instrument_values): Add new counters.
27943 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
27945 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
27946 (tree_init_edge_profiler): Build new profilers.
27947 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
27948 (pass_tree_profile): Add dump.
27949 (tree_profile_hooks): Update.
27950 * Makefile.in (LIBGCOV): Add new constants.
27951 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
27952 __gcov_ior_profiler): New.
27953 * i386.md (movmem/setmem expanders): Add new optional arguments.
27955 2007-01-28 David Edelsohn <edelsohn@gnu.org>
27957 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
27959 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
27961 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
27962 (tree_unswitch_single_loop): Pass eni_size_weights to
27963 tree_num_loop_insns.
27964 * tree-ssa-loop-manip.c: Include tree-inline.h.
27965 (can_unroll_loop_p): Pass eni_size_weights to
27966 tree_num_loop_insns.
27967 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
27968 Pass eni_size_weights to estimate_num_insns.
27969 * tree.h (init_inline_once): Export.
27970 * toplev.c (backend_init): Call init_inline_once.
27971 * cgraphunit.c (cgraph_process_new_functions,
27972 cgraph_analyze_function): Pass eni_inlining_weights to
27973 estimate_num_insns.
27974 * ipa-inline.c (compute_inline_parameters): Ditto.
27975 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
27976 to estimate_num_insns.
27977 (try_unroll_loop_completely): Pass eni_size_weights to
27978 tree_num_loop_insns.
27979 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
27980 ot estimate_num_insns.
27981 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
27982 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
27983 * tree-inline.c (eni_inlining_weights, eni_size_weights,
27984 eni_time_weights): New variables.
27985 (init_inline_once): Initialize them.
27986 (struct eni_data): Mew.
27987 (estimate_num_insns_1, estimate_num_insns): Use weights.
27988 * tree-inline.h (struct eni_weights_d): New.
27989 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
27990 (estimate_num_insns): Declaration changed.
27991 * cfgloop.h (tree_num_loop_insns): Declaration changed.
27992 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
27993 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
27995 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
27997 * tree-data-ref.c (conflict_fn): Assert that the number of affine
27998 relations in the conflict function is valid.
28000 2007-01-27 Ian Lance Taylor <iant@google.com>
28002 * common.opt: Add fstrict-overflow.
28003 * opts.c (decode_options): Set flag_strict_overflow if -O2.
28004 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
28005 (TYPE_OVERFLOW_UNDEFINED): Define.
28006 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
28008 * tree.h (TYPE_TRAP_SIGNED): Don't define.
28009 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
28010 (fold_negate_expr): Likewise.
28011 (make_range): Likewise.
28012 (extract_muldiv_1): Likewise.
28013 (maybe_canonicalize_comparison): Likewise.
28014 (fold_comparison): Likewise.
28015 (fold_binary): Likewise.
28016 (tree_expr_nonnegative_p): Likewise.
28017 (tree_expr_nonzero_p): Likewise.
28018 * tree-vrp.c (compare_values): Likewise.
28019 (extract_range_from_binary_expr): Likewise.
28020 (extract_range_from_unary_expr): Likewise.
28021 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
28023 (nowrap_type_p): Likewise.
28024 * tree-scalar-evolution.c (simple_iv): Likewise.
28025 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
28026 (build_range_check): Likewise.
28027 (extract_muldiv_1): Likewise.
28028 (fold_comparison): Likewise.
28029 * tree-vrp.c (vrp_int_const_binop): Likewise.
28030 (extract_range_from_unary_expr): Likewise.
28031 * convert.c (convert_to_integer): Likewise.
28032 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
28033 (fold_comparison): Likewise.
28034 (fold_binary): Likewise.
28035 * optabs.c (optab_for_tree_code): Likewise.
28036 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
28037 * simplify-rtx.c (simplify_const_relational_operation): Check
28038 flag_strict_overflow and flag_trapv.
28039 (simplify_const_relational_operation): Likewise.
28040 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
28041 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
28044 2007-01-27 Roger Sayle <roger@eyesopen.com>
28046 * tree.c (tree_fold_gcd): Delete.
28047 * tree.h (tree_fold_gcd): Remove prototype.
28048 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
28049 test whether one constant integer is a multiple of another. Instead
28050 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
28051 * fold-const.c (multiple_of_p): We've determined both TOP and
28052 BOTTOM are integer constants so we can call int_const_binop directly
28053 instead of the more generic const_binop.
28055 2007-01-27 Roger Sayle <roger@eyesopen.com>
28057 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
28058 1*X check that the constant hasn't overflowed, to preserve the
28060 (round_up): Provide an efficient implementation when rouding-up an
28061 INTEGER_CST to a power-of-two.
28063 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28065 * doc/sourcebuild.texi: Add comma for clarity.
28066 * doc/extend.texi: Fix some typos.
28067 * doc/passes.texi: Likewise.
28068 * doc/cppinternals.texi: Likewise.
28069 * doc/c-tree.texi: Likewise.
28070 * doc/tree-ssa.texi: Likewise.
28071 * doc/install.texi: Likewise.
28073 2007-01-27 Jan Hubicka <jh@suse.cz>
28075 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
28076 (pass_sra): Do not require alias information.
28077 * passes.c (init_optimization_passes): Add SRA
28079 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
28081 * tracer.c (rest_of_handle_tracer): We already cleaned
28082 up the CFG in tracer() so don't do it here again.
28083 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
28084 cleanup_cfg here, either. And don't call renumber_insns.
28086 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
28087 and BB_HEAD are in the insn stream here. Instead make sure
28088 that BB_INSN is valid on all insns. Also, do check here that
28089 there are no pending branch predictions...
28090 (rtl_verify_flow_info): ...instead of doing it here. Checks
28091 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
28094 2007-01-26 Roger Sayle <roger@eyesopen.com>
28096 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
28097 function to simplify/factorize operand order canonicalization.
28098 (ix86_fixup_binary_operands): Reorganize using the above function.
28099 (ix86_binary_operator_ok): Likewise.
28101 2007-01-27 Jakub Jelinek <jakub@redhat.com>
28103 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
28104 file scope from optimize_attrs.
28105 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
28107 (optimize_attrs): Clear insn_code_values after freeing it.
28109 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
28111 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
28112 a parts.base assignment.
28114 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
28116 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
28117 (compute_subscript_distance, initialize_data_dependence_relation,
28118 finalize_ddr_dependent, analyze_ziv_subscript,
28119 analyze_siv_subscript_cst_affine,
28120 compute_overlap_steps_for_affine_univar,
28121 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
28122 analyze_siv_subscript, analyze_miv_subscript,
28123 analyze_overlapping_iterations, subscript_dependence_tester_1,
28124 compute_self_dependence, free_dependence_relation): Work
28125 with affine_fn instead of chrecs.
28126 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
28127 common_affine_function, affine_function_base,
28128 affine_function_constant_p, affine_fn_op, affine_fn_plus,
28129 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
28130 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
28131 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
28132 (all_chrecs_equal_p): Removed.
28133 * tree-data-ref.h (affine_fn, conflict_function): New types.
28134 (struct subscript): Change type of conflicting_iterations_in_a
28135 and conflicting_iterations_in_b.
28137 2007-01-26 Steve Ellcey <sje@cup.hp.com>
28140 * config/pa/pa.h (TARGET_HPUX_11): New.
28141 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
28142 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
28144 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
28145 Richard Guenther <rguenther@suse.de>
28147 * tree-ssa-structalias.c (solve_graph): Handle case
28148 we merged the variable to another.
28150 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28152 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
28155 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
28156 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
28158 2007-01-25 DJ Delorie <dj@redhat.com>
28160 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
28161 allow changes to modes which don't fit in those registers.
28163 * reload1.c (choose_reload_regs): Check for invalid subregs before
28164 computing their locations, not after.
28166 2007-01-25 Geoffrey Keating <geoffk@apple.com>
28169 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
28170 save Altivec registers in an eh_return function.
28171 (compute_vrsave_mask): Likewise.
28172 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
28173 for saving Altivec registers.
28174 (rs6000_emit_prologue): Don't allocate stack twice in
28175 eh_return function. Correct expected value of altivec_save_offset
28176 when using save_world. Describe save of R0 to stack when using
28177 save_world. Describe stack pointer adjustment when using
28178 save_world. Remove duplicated eh_return parameter register saving.
28179 Update sp_offset variable after save_world.
28180 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
28182 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
28183 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
28186 2007-01-25 Steve Ellcey <sje@cup.hp.com>
28188 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
28190 2007-01-25 Steve Ellcey <sje@cup.hp.com>
28193 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
28194 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
28196 2007-01-25 Richard Guenther <rguenther@suse.de>
28198 * doc/invoke.texi (-Wcoverage-mismatch): Document.
28199 * common.opt (-Wcoverage-mismatch): New warning option.
28200 * coverage.c (get_coverage_counts): Ignore coverage mismatch
28201 if -Wcoverage-mismatch is given.
28203 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
28205 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
28206 (ipcp_driver): Change to static definition.
28207 Add dumping of the ifunctions.
28208 (constant_val_insert): Remove unused parameter. Support for SSA.
28209 (ipcp_propagate_const): Support for SSA.
28210 (ipcp_profile_bb_print): Print only analyzed nodes.
28211 (ipcp_replace_map_create): Remove support for Fortran constant
28213 * ipa-prop.c (ipa_method_modify_stmt,
28214 ipa_callsite_compute_param): Support for SSA.
28215 * ipa-prop.h (ipcp_driver): Remove declaration.
28216 (IS_VALID_TREE_MAP_INDEX): Add define.
28218 2007-01-24 Geoffrey Keating <geoffk@apple.com>
28220 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
28222 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28224 PR middle-end/30447
28225 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
28226 constant argument to cabs and do it without checking for
28227 -funsafe-math-optimizations.
28229 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
28231 * c-common.h (RID_FIRST_CXX0X): New.
28232 (RID_LAST_CXX0X): New.
28233 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
28235 * c.opt (Wc++0x-compat): New.
28236 * doc/invoke.texi (-Wc++0x-compat): Document.
28238 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28240 * builtins.c (fold_builtin_carg): New.
28241 (fold_builtin_1): Use it.
28243 2007-01-24 Jan Hubicka <jh@suse.cz>
28245 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
28247 * ipa-inline.c (initial_insns, max_insns): Delete.
28248 (compute_max_insns): New function.
28249 (cgraph_decide_inlining_of_small_function): Use it; take minimal
28250 amount of insns as base for code growth.
28251 (cgraph_decide_inlining): Make initial_insns local; do not compute
28253 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
28254 * doc/invoke.texi (inline-unit-growth): Update docs.
28256 2007-01-24 Jakub Jelinek <jakub@redhat.com>
28258 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
28259 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
28260 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
28261 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
28262 for CPUs that have PTA_CX16 set.
28264 PR middle-end/27416
28265 * gimplify.c (omp_check_private): New function.
28266 (gimplify_scan_omp_clauses): Use it for
28267 firstprivate/lastprivate/reduction.
28269 PR middle-end/30494
28270 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
28271 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
28273 PR middle-end/30421
28274 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
28275 If lower_lastprivate_clauses emits some statements, append them
28276 to dlist rather than body_p and to body_p append an initializer.
28277 (lower_omp_for): Adjust caller.
28279 2007-01-24 Steve Ellcey <sje@cup.hp.com>
28281 * target.h (globalize_decl_name): New.
28282 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
28283 * output.h (default_globalize_decl_name): New.
28284 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
28286 (globalize_decl): Ditto.
28287 (default_globalize_decl_name): New.
28288 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
28289 (ia64_handle_version_id_attribute): New.
28290 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
28291 (ia64_asm_output_external): Use globalize_decl_name instead
28292 of globalize_label.
28293 * doc/extend.texi (version_id): New pragma.
28294 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
28296 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
28298 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
28299 _uleb128_t and _Unwind_SWord with _sleb128_t.
28300 * unwind-dw2.c (extract_cie_info, execute_stack_op,
28301 execute_cfa_program, uw_frame_state_for, uw_update_context_1):
28303 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
28304 * unwind-pe.h (read_uleb128, read_sleb128,
28305 read_encoded_value_with_base): Likewise.
28306 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
28308 2007-01-24 Richard Guenther <rguenther@suse.de>
28310 * builtins.c (expand_builtin_cexpi): Get the fndecl
28311 for cexp in the correct way.
28313 2007-01-24 Jan Hubicka <jh@suse.cz>
28315 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
28318 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
28320 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
28321 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
28322 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
28323 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
28324 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
28325 __SIZEOF_PTRDIFF_T__.
28326 * doc/cpp.texi: Documentation for the new builtin macros added.
28328 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
28330 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
28331 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
28332 instead of operands[2] to avoid access past the end of array.
28334 2007-01-24 Richard Sandiford <richard@codesourcery.com>
28336 * reload1.c (emit_reload_insns): Pass the reload register
28337 for a non-spill output reload through forget_old_reloads_1.
28339 2007-01-23 Joseph Myers <joseph@codesourcery.com>
28341 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
28342 _SOFT_DOUBLE if doubles use software floating-point.
28343 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
28344 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
28345 * config/rs6000/darwin-ldouble.c: Also compile functions for
28346 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
28347 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
28348 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
28349 commented-out long double override.
28350 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
28351 * config/rs6000/eabispe.h: Likewise.
28352 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
28353 long double for non-SPE.
28354 (rs6000_handle_option): Likewise.
28355 (invalid_e500_subreg): Disallow more subregs involding DImode,
28356 DFmode, TImode or TFmode.
28357 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
28359 (legitimate_lo_sum_address_p): Also check for TFmode for E500
28361 (rs6000_legitimize_address): Also handle TFmode for E500 double.
28362 (rs6000_legitimize_reload_address): Also handle TFmode for E500
28364 (rs6000_legitimate_address): Also check for TFmode for E500
28366 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
28367 (spe_build_register_parallel): Handle TFmode and TCmode.
28368 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
28370 (function_arg): Handle TFmode and TCmode for E500 double.
28371 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
28373 (print_operand): Handle TFmode and TImode for %y.
28374 (rs6000_generate_compare): Handle TFmode comparisons for E500
28376 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
28377 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
28378 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
28379 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
28380 TFmode for E500 double.
28381 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
28382 (floatsidf2): Enable for E500 double.
28383 (movtf_softfloat): Use rs6000_nonimmediate_operand.
28384 (extenddftf2): Change to extenddftf2_fprs.
28385 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
28386 depending on TARGET_E500_DOUBLE.
28387 (extendsftf2): Enable for E500 double.
28388 (trunctfdf2): Enable for E500 double.
28389 (trunctfsf2): Change to trunctfsf2_fprs.
28390 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
28391 depending on TARGET_E500_DOUBLE.
28392 (floatsitf2): Enable for E500 double.
28393 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
28394 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
28395 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
28396 (negtf2): Change to negtf2_internal.
28397 (negtf2): New expander.
28398 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
28399 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
28400 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
28401 (movdi_internal32): Use rs6000_nonimmediate_operand.
28402 (unnamed splitter): Likewise.
28403 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
28404 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
28405 (SPE64TF, DITI): New mode macros.
28406 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
28409 (frob_<mode>_di_2): New.
28410 (frob_tf_di_8_2): New.
28411 (frob_di_df): Change to frob_di_<mode>; allow more modes.
28413 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
28415 (frob_ti_<mode>_8_2): New.
28416 (frob_ti_tf_2): New.
28417 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
28418 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
28420 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
28421 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
28422 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
28423 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
28424 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
28425 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
28428 2007-01-23 Ian Lance Taylor <iant@google.com>
28430 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
28432 (OBJS-archive): Reformat, alphabetize.
28433 (OBJS): Change out_object_file to OBJS-md.
28435 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
28437 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
28438 JUMP_P and CALL_P predicates where applicable.
28439 * config/i386/i386.c: Ditto.
28440 * config/i386/i386.md: Ditto.
28441 * config/i386/mmx.md: Ditto.
28442 * config/i386/predicates.md: Ditto.
28444 2007-01-22 Andreas Schwab <schwab@suse.de>
28446 * config/m68k/m68k.h: Fix comment.
28448 2007-01-22 Jan Hubicka <jh@suse.cz>
28450 * passes.c (init_optimization_passes): Do not rerun
28451 pass_early_warn_uninitialized.
28453 2007-01-22 Richard Guenther <rguenther@suse.de>
28455 PR tree-optimization/30038
28456 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
28458 (execute_cse_sincos_1): Likewise.
28459 (execute_cse_sincos): Likewise.
28460 (gate_cse_sincos): Likewise.
28461 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
28462 the cexpi() canonicalization of sincos().
28463 * tree-pass.h (pass_cse_sincos): Declare.
28464 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
28466 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
28468 PR rtl-optimization/29329
28469 * combine.c (replaced_rhs_insn): Rename to i2mod.
28470 (replaced_rhs_value): Rename to i2mod_new_rhs.
28471 (i2mod_old_rhs): New global variable.
28472 (combine_instructions): Adjust for above change. Save a copy of
28473 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
28474 note are substituted in the second instruction.
28475 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
28476 ditch the note if it pertains to the second eliminated register
28477 and this register is mentioned in i2mod_old_rhs.
28480 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
28482 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
28483 the insn to which the note was originally attached.
28485 2007-01-21 Jan Hubicka <jh@suse.cz>
28487 * ipa-inline.c (inlining_mode): Comment, move up.
28488 (cgraph_decide_inlining_incrementally): Do not perform inlining
28489 itself; fix handling of flattening of self recursive functions.
28490 (cgraph_find_cycles): Remove.
28491 (cgraph_flatten_node): Remove.
28492 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
28493 (try_inline): New function.
28494 (cgraph_early_inlining): Update call of
28495 cgraph_decide_inlining_incrementally. Apply inlining here.
28496 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
28498 2007-01-21 Dirk Mueller <dmueller@suse.de>
28501 * tree-vrp.c (check_array_bounds): do not warn
28502 about ADDR_EXPR's of ARRAY_REF's which are immediately
28503 used in binary expressions.
28505 2007-01-21 Ira Rosen <irar@il.ibm.com>
28507 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
28508 read_write_dep and macros for its access.
28509 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
28510 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
28511 argument, call vect_check_interleaving for every independent pair of
28512 data-refs. Mark loads that access the same memory location as a store
28514 (vect_check_dependences): Remove.
28515 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
28516 call, fix the call to vect_analyze_data_ref_dependence.
28517 (vect_analyze_data_ref_access): For statements that access the same
28518 data-ref, check that they are not stores; for loads, check that there
28519 is no store that access the same location.
28521 2007-01-20 Roger Sayle <roger@eyesopen.com>
28522 Joseph Myers <joseph@codesourcery.com>
28524 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
28525 (-fdump-rtl-stack): Likewise.
28526 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
28527 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
28528 (-mpt-fixed): Use @minus{} for minus sign.
28529 (Using Precompiled Headers): Fix under/overfull hbox.
28531 2007-01-20 Jan Hubicka <jh@suse.cz>
28533 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
28534 place within annotation.
28536 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28538 * pa.c (output_move_double): Change array size of xoperands to 4.
28540 2007-01-20 Jan Hubicka <jh@suse.cz>
28542 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
28545 2007-01-19 Ian Lance Taylor <iant@google.com>
28547 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
28548 constant to unsigned HOST_WIDE_INT before negating.
28550 2007-01-19 Ian Lance Taylor <iant@google.com>
28552 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
28554 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
28555 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
28556 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
28557 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
28558 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
28559 (realloc_vdef, realloc_vuse): Change second parameter to
28561 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
28562 fields to unsigned.
28563 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
28564 unsigned. Change x and lim locals to unsigned.
28565 (realloc_vdef, realloc_vuse): Change num_elem parameter to
28567 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
28568 (copy_virtual_operands): Change i and n locals to unsigned.
28570 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28572 PR middle-end/29335
28573 * builtins.c (fold_builtin_1): Handle builtin fdim.
28575 2007-01-20 Jan Hubicka <jh@suse.cz>
28577 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
28578 * tree-ssa-structalias.c (compute_points_to_sets): Do call
28579 init_alias_heapvars.
28580 (init_alias_heapvars): Initialize only when not already initialized.
28581 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
28583 2007-01-19 Roger Sayle <roger@eyesopen.com>
28585 * common.opt (fsigned-zeros): New command line option.
28586 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
28587 of flag_unsafe_math_optimizations.
28588 * opts.c (set_fast_math_flags): The -ffast-math command line option
28589 implies -fno-signed-zeros.
28590 (fast_math_flags_set_p): Likewise.
28592 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
28593 the documentation of -ffast-math appropriately. Wrap long lines.
28595 2007-01-19 Steve Ellcey <sje@cup.hp.com>
28597 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
28598 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
28600 2007-01-19 Tomas Bily <tbily@suse.cz>
28602 * cgraphunit.c (cgraph_finalize_function): Updating of pid
28604 (tree_init_ic_make_global_vars): New function
28605 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
28606 (tree_gen_ic_profiler): New function
28607 (tree_gen_ic_func_profiler): New function
28608 (tree_profiling): Added calling of tree_gen_ic_func_profiler
28609 (tree_profile_hooks): Added hook for indirec/virtual calls
28610 * value-prof.c (tree_find_values_to_profile): New case for
28612 (tree_values_to_profile): Call for determining indirect/virtual
28614 (tree_indirect_call_to_profile): New function
28615 (tree_ic_transform): New function
28616 (tree_ic): New function
28617 (find_func_by_pid): New function
28618 (init_pid_map): New function
28619 (tree_value_profile_transformations): Added check for
28620 indirect/virtual call transformation
28621 * value-prof.h (enum hist_type): New counter type for
28622 indirect/virtual calls
28623 (profile_hooks): Added new hook for profiling indirect/virtual
28625 * profile.c (instrument_values): New case for indirect/virtual
28627 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
28628 (GCOV_COUNTER_V_INDIR): New counter type
28629 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
28630 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
28632 * cgraph.c: Definition of cgraph_max_pid
28633 (cgraph_create_node): Default init of pid attribute
28634 * cgraph.h: Declaration of cgraph_max_pid
28635 (struct cgraph_node): Added pid attribute
28636 * libgcov.c (__gcov_indirect_call_profiler): New function
28637 (__gcov_one_value_profiler_body): New function
28638 (__gcov_one_value_profiler): Body was moved to
28639 __gcov_one_value_profiler_body and calls it
28641 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
28643 * doc/gty.texi (Options): Document the mark_hook option to GTY.
28644 * gengtype.c (write_types_data, write_func_for_structure,
28645 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
28646 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
28647 (walk_type, write_func_for_structure): Generate the mark_hook if
28650 2007-01-19 Jan Hubicka <jh@suse.cz>
28652 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
28653 'early' argument take inlining mode argument specifying whether to
28654 inline for size/speeed or all functions; add support for flattening;
28656 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
28658 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
28661 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
28662 the name of the declared identifier.
28664 2007-01-19 Dirk Mueller <dmueller@suse.de>
28666 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
28667 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
28668 duplicate evaluation.
28670 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
28672 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
28673 Macroize expander using X87MODEF12 mode macro. Extend operand 1
28674 to XFMode, use acosxf2 and truncate result to requested mode.
28675 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
28676 (asin<mode>2): Similarly, with asin expanders.
28677 (*fscalexf4_i387): Rename from *fscalexf4.
28678 (expNcorexf3): New expander.
28679 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
28680 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
28681 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
28682 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
28683 patterns for SSE math.
28684 (exp10<mode>2): Similarly, with exp10 expanders.
28685 (exp2<mode>2): Similarly, with exp2 expanders.
28686 (expm1<mode>2): Similarly, with expm1 expanders.
28687 (ldexp<mode>3): Similarly, with ldexp expanders.
28688 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
28689 Use gen_truncxf<mode>2_i387_noop to truncate result.
28691 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28693 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
28694 for ColdFire targets.
28696 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
28697 Richard Sandiford <richard@codesourcery.com>
28699 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
28700 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
28701 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
28702 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
28703 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
28704 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
28706 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28708 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
28709 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
28710 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
28711 (*adddi_dilshr32_cf): New pattern.
28712 (adddi3, subdi3): Remove first alternatives.
28714 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28716 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
28717 implemented using move.l, do not use its cc result for floating-point
28720 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28722 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
28723 from accepting 's' constraints if flag_pic.
28725 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28727 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
28728 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
28729 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
28730 condition from TARGET_68881 to TARGET_HARD_FLOAT.
28732 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
28734 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
28735 ColdFire alternatives.
28736 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
28737 * config/m68k/m68k.md (clzsi2): Define for ColdFire
28738 architectures that support ff1 instruction.
28740 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28741 Julian Brown <julian@codesourcery.com>
28743 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
28744 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
28745 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
28748 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28750 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
28752 (output_move_const_into_data_reg, output_move_simode_const): Delete.
28753 * config/m68k/m68k.c (const_method, const_int_cost): Take a
28754 HOST_WIDE_INT instead of an rtx.
28755 (m68k_rtx_costs): Update call accordingly.
28756 (output_move_const_into_data_reg): Likewise. Fix formatting.
28757 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
28759 (output_move_simode_const): Update calls after above changes.
28760 Rework to use automatic variables and predicates like MEM_P.
28761 * config/m68k/m68k.md (pushexthisi_const): Update call to
28764 2007-01-19 Dirk Mueller <dmueller@suse.de>
28766 * tree-ssa-alias.c (perform_var_substitution): Fix typo
28767 in dump_flags test.
28769 2007-01-19 Richard Guenther <rguenther@suse.de>
28771 * builtins.c (expand_builtin_cexpi): Fall back to expanding
28772 via cexp in case sincos is not available.
28774 2007-01-19 Richard Guenther <rguenther@suse.de>
28776 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
28777 * defaults.h (TARGET_HAS_SINCOS): Default to off.
28778 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
28779 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
28780 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
28781 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
28782 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
28783 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
28785 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
28787 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
28789 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
28790 (atan2xf3): Directly generate RTL pattern.
28791 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
28792 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
28793 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
28794 disable patterns for SSE math.
28795 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
28796 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
28797 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
28798 disable patterns for SSE math.
28800 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
28802 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
28804 2007-01-18 Roger Sayle <roger@eyesopen.com>
28806 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
28807 VIEW_CONVERT_EXPR to the same type as it's operand.
28809 2007-01-18 David Edelsohn <edelsohn@gnu.org>
28811 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
28812 configured for long double 128.
28814 2007-01-18 Mike Stump <mrs@apple.com>
28816 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
28819 2007-01-18 Michael Meissner <michael.meissner@amd.com>
28821 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
28824 2007-01-18 Jan Hubicka <jh@suse.cz>
28826 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
28827 greater than NUM_VOP_FREE_BUCKETS.
28829 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
28831 * tree-ssa-structalias.c: Update comments.
28832 (ptabitmap_obstack): Removed.
28833 (pta_obstack): New.
28834 (oldpta_obstack): Ditto.
28835 (stats): Add a few members.
28836 (struct variable_info): Remove node, complex, address_taken, and
28837 indirect_target members. Add oldsolution member.
28838 (new_var_info): Do not initialize removed members.
28839 (constraint_expr_type): Remove INCLUDES.
28840 (constraint_graph): Add size, implicit_preds, rep,
28841 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
28842 (FIRST_REF_NODE): New macro.
28843 (LAST_REF_NODE): Ditto.
28844 (FIRST_ADDR_NODE): Ditto.
28845 (find): New function.
28847 (dump_constraint): Do not handle INCLUDES.
28848 (insert_into_complex): Do not insert duplicate constraints.
28849 (condense_varmap_nodes): Renamed and rewritten into ...
28850 (merge_node_constraints): This. Also fix bug in handling of
28851 offseted copy constraints.
28852 (clear_edges_for_node): No longer need to deal with preds at all,
28853 or removing associated preds/succs.
28854 (merge_graph_nodes): Deal with indirect_cycles.
28855 Don't deal with predecessors.
28856 (add_implicit_graph_edge): New function.
28857 (add_pred_graph_edge): Ditto.
28858 (add_graph_edge): Don't deal with predecessors.
28859 (build_constraint_graph): Removed.
28860 (build_pred_graph): New function.
28861 (build_succ_graph): Ditto.
28862 (struct scc_info): Removed in_component. Added roots, dfs, and
28863 node_mapping. Remove visited_index, unification_queue.
28864 (scc_visit): Deal with union-find we do now.
28865 Deal with cycles with REF nodes.
28866 (collapse_nodes): Renamed and rewritten to ...
28867 (unify_nodes): This.
28868 (process_unification_queue): Removed.
28869 (topo_visit): Cleanup
28870 (do_da_constraint): Use find.
28871 (do_sd_constraint): Ditto.
28872 (do_ds_constraint): Ditto.
28873 (do_complex_constraint): Ditto.
28874 (init_scc_info): Update for removed and added members.
28875 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
28876 (find_indirect_cycles): This.
28877 (equivalence_class): New variable.
28878 (label_visit): New function.
28879 (perform_variable_substitution): Rewritten.
28880 (free_var_substitution_info): New function.
28881 (find_equivalent_node): Ditto.
28882 (move_complex_constraints): Ditto.
28883 (eliminate_indirect_cycles): Ditto.
28884 (solve_graph): Only propagate changed bits.
28885 Use indirect cycle elimination.
28887 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
28888 (tree_id_eq): Renamed to ...
28889 (tree_vi_eq): This. Update for member change
28890 (insert_id_for_tree): Renamed and rewritten to ...
28891 (insert_vi_for_tree): This.
28892 (lookup_id_for_tree): Renamed and rewritten to ...
28893 (lookup_vi_for_tree): This.
28894 (get_id_for_tree): Renamed and rewritten to ...
28895 (get_vi_for_tree): Ditto.
28896 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
28897 (process_constraint): Don't handle INCLUDES.
28898 Remove special ADDRESSOF case.
28899 (find_func_aliases): Rewrite to use vi functions instead of id
28901 (create_function_info_for): Ditto.
28902 (create_variable_info_for): Ditto.
28903 (intra_create_variable_infos): Ditto.
28904 (merge_smts_into): Ditto.
28905 (find_what_p_points_to): Ditto.
28906 (init_base_vars): Ditto.
28907 (init_alias_vars): Ditto.
28908 (remove_preds_and_fake_succs): New function.
28909 (dump_sa_points_to_info): Dump new stats.
28910 (dump_solution_for_var): Use find.
28911 (set_used_smts): Fix formatting.
28912 (compute_points_to_sets): Updated for new functions.
28913 (ipa_pta_execute): Ditto.
28915 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
28916 Richard Sandiford <richard@codesourcery.com>
28918 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
28920 * calls.c (expand_call): If the return value is a PARALLEL,
28921 extract its first member.
28922 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
28923 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
28924 use FUNCTION_EXTRA_EPILOGUE.
28925 (m68k_function_value): Return a PARALLEL if the return value
28926 is of a pointer type.
28927 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
28928 (FUNCTION_EXTRA_EPILOGUE): Remove.
28929 * config/m68k/m68k.md (D0_REG): New constant.
28931 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
28933 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
28934 output a NOP for empty epilogues.
28936 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28938 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
28939 before function. Extend register save check to include all
28940 registers, not just integer ones.
28942 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
28944 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
28945 (m68k_use_return_insn): ...this.
28946 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
28947 * config/m68k/m68k.c (use_return_insn): Rename to...
28948 (m68k_use_return_insn): ...this.
28949 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
28950 of USE_RETURN_INSN.
28952 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
28954 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
28955 nearest even, fix denormal rounding overflow.
28957 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28959 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
28960 f%$smove and f%$move.
28961 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
28962 (extendsfdf2_cf): Use fdmove instead of f%&move.
28963 (truncdfsf2_cf): Use fsmove instead of f%$smove.
28964 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
28966 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28968 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
28971 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28973 * real.h (real_format): Add a canonical_nan_lsbs_set field.
28974 (coldfire_single_format): Declare.
28975 (coldfire_double_format): Likewise.
28976 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
28977 of qnan_msb_set to determine the lower bits of a canonical
28979 (encode_ieee_double): Likewise.
28980 (encode_ieee_quad): Likewise.
28981 (ieee_single_format): Initialize canonical_nan_lsbs_set.
28982 (mips_single_format): Likewise.
28983 (ieee_double_format): Likewise.
28984 (mips_double_format): Likewise.
28985 (ieee_extended_motorola_format): Likewise.
28986 (ieee_extended_intel_96_format): Likewise.
28987 (ieee_extended_intel_128_format): Likewise.
28988 (ieee_extended_intel_96_round_53_format): Likewise.
28989 (ibm_extended_format): Likewise.
28990 (mips_extended_format): Likewise.
28991 (ieee_quad_format): Likewise.
28992 (mips_quad_format): Likewise.
28993 (vax_f_format): Likewise.
28994 (vax_d_format): Likewise.
28995 (vax_g_format): Likewise.
28996 (i370_single_format): Likewise.
28997 (i370_double_format): Likewise.
28998 (decimal_single_format): Likewise.
28999 (decimal_double_format): Likewise.
29000 (decimal_quad_format): Likewise.
29001 (c4x_single_format): Likewise.
29002 (c4x_extended_format): Likewise.
29003 (real_internal_format): Likewise.
29004 (coldfire_single_format): New real_format.
29005 (coldfire_double_format): Likewise.
29006 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
29007 canonical_nan_lsbs_set.
29008 (pdp11_d_format): Likewise.
29009 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
29010 if TARGET_COLDFIRE_CPU.
29012 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29014 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
29015 (output_call, m68k_legitimize_call_address): Declare.
29016 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
29017 parenthesees. Add support for a 'W' constraint.
29018 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
29019 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
29020 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
29021 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
29023 (override_options): Initialize them. Do not set flag_no_function_cse
29024 for TARGET_ID_SHARED_LIBRARY.
29025 (m68k_output_pic_call): Delete.
29026 (m68k_legitimize_call_address): New function.
29027 (print_operand): Remove the %o prefix. Handle the %p prefix.
29028 (output_call): New function.
29029 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
29030 target address from the GOT if symbolic jumps are not allowed.
29031 * config/m68k/m68k.md (call, general_operand): Do not set
29032 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
29033 Merge separate flag_pic and !flag_pic define_insns into...
29034 (*call, *call_value): ...these new patterns. Match the address
29035 rather than the containing MEM and require it to be a call_operand.
29036 Use output_call to generate the asm template.
29037 * config/m68k/predicates.md (const_call_operand): New predicate.
29038 (call_operand): Likewise.
29040 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
29042 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
29043 (STACK_GROWS_DOWNWARD): Define to 1.
29044 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
29045 comments, emphasizing that these values are only defaults.
29046 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
29047 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
29049 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29051 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
29053 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
29054 Richard Sandiford <richard@codesourcery.com>
29056 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
29057 (FP_REGNO_P): New macros.
29058 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
29059 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
29060 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
29061 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
29063 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
29065 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
29066 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
29068 * config/m68k/t-floatlib: New file, extracting common code from...
29069 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
29070 * config/m68k/t-uclinux: Here.
29071 * config/m68k/fpgnulib.c: Do not compile extendeed precision
29072 routines on ColdFire targets.
29074 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
29076 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
29077 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
29078 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
29079 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
29080 explicitly set MOTOROLA to 1.
29081 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
29083 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29084 Nathan Sidwell <nathan@codesourcery.com>
29086 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
29087 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
29088 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
29089 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
29090 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
29091 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
29092 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
29093 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
29094 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
29095 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
29096 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
29097 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
29098 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
29099 (DBX_REGISTER_NUMBER): Delete.
29100 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
29101 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
29102 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
29104 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29106 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
29107 * config/flat.h: New file.
29108 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
29109 OBJECT_FORMAT_FLAT.
29110 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
29111 indirect references for -msep-data or -mid-shared-library.
29112 Do not use PC-relative code addresses either.
29113 * config/m68k/m68k.c (override_options): Restrict -fPIC error
29115 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
29116 for shared libraries and crt1.o for executables. Use crti.o and
29118 (ENDFILE_SPEC): Use crtend.o and crtn.o.
29119 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
29120 Do not add -elf2flt or -shared-lib-id options here.
29121 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
29122 Pass -shared-lib-id if -mid-shared-library, taking the library
29123 identifier from -mshared-library-id if given, otherwise
29125 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
29126 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
29127 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
29128 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
29129 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
29130 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
29132 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
29133 jump sequence for ISA A and ISA A+.
29134 (PICJUMP): Likewise.
29136 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29138 * config.gcc (m68k-*-uclinux*): Base the port on the common
29139 and m68k GNU/Linux files rather than on the generic ELF ones.
29140 * config/m68k/uclinux.h (TARGET_VERSION): Override.
29141 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
29143 2007-01-18 Julian Brown <julian@codesourcery.com>
29144 Richard Sandiford <richard@codesourcery.com>
29146 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
29147 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29148 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
29150 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
29151 80 unconditionally.
29152 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29154 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29156 * doc/install.texi: Document m68k-uclinuxoldabi.
29157 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
29158 * config/m68k/uclinux-oldabi.h: New file, copied from
29159 config/m68k/uclinux.h.
29161 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
29163 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
29164 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
29165 (m32r_compute_frame_size): Use unsigned for regno.
29166 (m32r_reload_lr): Use gen_frame_mem.
29168 (m32r_output_function_epilogue): Don't output the function epilogue
29170 (m32r_expand_epilogue): New.
29171 (direct_return): Return false if the function has the interrupt
29173 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
29174 * config/m32r/m32r.md (epilogue): New expander.
29175 (return_lr, return_rte): New insns.
29176 (return): Make it expander.
29177 (return_normal): New expander.
29179 2007-01-18 Josh Conner <jconner@apple.com>
29182 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
29183 support for UNLE, UNLT, UNGE, and UNGT.
29185 2007-01-18 Jan Hubicka <jh@suse.cz>
29187 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
29188 * tree-tailcall (add_virtual_phis): Likewise.
29189 (optimize_tail_call): Return TODOs.
29190 (execute_tail_calls): Return TODOs.
29191 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
29192 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
29194 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
29195 Cleanup cfg using TODO.
29196 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
29197 * passes.c (execute_function_todo): When cleanup did something, remove
29199 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
29200 (make_edges): Don't cleanup_cfg.
29202 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
29204 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
29205 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
29206 operate on the top of stack.
29207 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
29208 register handling of instructions that output to the second
29210 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
29211 (move_for_stack_reg): Special-case check for dead destination
29212 stack slot for constant load of 1.0 inside UNSPEC_TAN.
29214 * config/i386/i386.md (UNSPEC_TAN): New constant.
29215 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
29216 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
29217 to correctly model move of constant 1.0 to top stack slot.
29218 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
29219 (unnamed peephole2 pattern): Remove corresponding peephole2
29220 pattern that optimizes tan insn and loading of constant 1.0.
29221 (tanxf2): Use fptanxf4_i387.
29222 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
29223 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
29224 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
29225 disable patterns for SSE math.
29226 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
29227 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
29229 2007-01-18 Dirk Mueller <dmueller@suse.de>
29230 Richard Guenther <rguenther@suse.de>
29233 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
29234 * common.opt (Warray-bounds): Add new warning option.
29235 * c-opts.c (c_common_handle_option): Define -Warray-bounds
29237 * Makefile.in: make tree-vrp.o depend on toplev.h
29238 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
29240 (check_array_refs, check_array_bounds, check_array_ref): New.
29242 2007-01-18 Jan Hubicka <jh@suse.cz>
29244 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
29245 (execute_ssa_ccp): Return flags conditionally.
29246 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
29248 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
29250 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
29252 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
29253 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
29255 * Makefile.c (GTFILES): Add cfglayout.h.
29256 * gengtype.c (open_base_files): Likewise.
29257 * cfglayout.c (cfg_layout_function_footer,
29258 cfg_layout_function_header) Reindent to make gengtype happy.
29259 * cfglayout.h (cfg_layout_function_footer,
29260 cfg_layout_function_header): Add GTY(()) marker.
29262 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
29264 2007-01-18 Ben Elliston <bje@au.ibm.com>
29266 * genautomata.c (write_automata): Include xstrerror output in the
29267 error message if writing the DFA description file fails.
29269 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
29271 * config/mips/mips-protos.h (mips_output_external): Make it
29273 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
29274 * config/mips/mips.c (irix_output_external_libcall): Likewise.
29275 (extern_list): Likewise.
29276 (extern_head): Likewise.
29277 (TARGET_ASM_FILE_END): Likewise.
29278 (mips_file_end): Likewise.
29279 (mips_output_external): Rewritten.
29281 2007-01-18 Ben Elliston <bje@au.ibm.com>
29283 * genpreds.c (write_insn_preds_c): Only write out the function
29284 body for regclass_for_constraint if we have register constraints.
29286 2007-01-17 Tom Tromey <tromey@redhat.com>
29288 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
29289 * doc/install.texi (Testing): Use sourceware.org.
29290 (Binaries): Likewise.
29291 (Specific): Likewise.
29292 * doc/contrib.texi (Contributors): Use sourceware.org.
29294 2007-01-17 Anatoly Sokolov <aesok@post.ru>
29296 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
29297 (AVR_ENHANCED): Rename to ...
29298 (AVR_HAVE_MUL): ... new.
29299 (avr_enhanced_p): Rename to ...
29300 (avr_have_mul_p): ... new.
29301 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
29302 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
29303 * config/avr/avr.c (avr_enhanced_p): Rename to ...
29304 (avr_have_mul_p): ... new.
29305 (base_arch_s): Rename 'enhanced' to 'have_mul'.
29306 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
29307 'avr_enhanced_p' and 'enhanced'.
29308 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
29309 AVR_HAVE_MUL instead of AVR_ENHANCED.
29310 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
29311 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
29312 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
29313 instead of AVR_ENHANCED.
29314 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
29315 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
29316 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
29318 2007-01-17 Ian Lance Taylor <iant@google.com>
29320 * vec.h (VEC_reserve_exact): Define.
29321 (vec_gc_p_reserve_exact): Declare.
29322 (vec_gc_o_reserve_exact): Declare.
29323 (vec_heap_p_reserve_exact): Declare.
29324 (vec_heap_o_reserve_exact): Declare.
29325 (VEC_OP (T,A,reserve_exact)): New static inline function, three
29327 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
29328 negative parameter.
29329 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
29330 (VEC_OP (T,A,copy)) [all versions]: Likewise.
29331 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
29332 * vec.c (calculate_allocation): Add exact parameter. Change all
29334 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
29335 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
29336 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
29337 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
29338 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
29339 (vec_heap_p_reserve_exact): New function.
29340 (vec_heap_o_reserve_exact): New function.
29342 2007-01-17 Jan Hubicka <jh@suse.cz>
29344 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
29346 2007-01-17 Eric Christopher <echristo@apple.com>
29348 * config.gcc: Support core2 processor.
29350 2007-01-16 Jan Hubicka <jh@suse.cz>
29352 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
29353 the names, just unlink the chain so we don't crash on dangling
29357 2007-01-16 Jan Hubicka <jh@suse.cz>
29359 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
29360 * tree-pass.h: Reorder to make IPA passes appear toegher.
29361 (pass_early_inline, pass_inline_parameters, pass_apply_inline):
29363 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
29364 parameters, do not call early inliner.
29365 * ipa-inline.c: Update comments. Include tree-flow.h
29366 (cgraph_decide_inlining): Do not compute inlining parameters.
29367 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
29368 be called with function context set up.
29369 (pass_ipa_inline): Remove unreachable functions before pass.
29370 (cgraph_early_inlining): Simplify assuming to be called from the
29372 (pass_early_inline): New pass.
29373 (cgraph_gate_ipa_early_inlining): New gate.
29374 (pass_ipa_early_inline): Turn into simple wrapper.
29375 (compute_inline_parameters): New function.
29376 (gate_inline_passes): New gate.
29377 (pass_inline_parameters): New pass.
29378 (apply_inline): Move here from tree-optimize.c
29379 (pass_apply_inline): New pass.
29380 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
29382 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
29383 doing them by hand.
29384 (tree_function_versioning): Do not allocate dummy struct function.
29385 * tree-inline.h (optimize_inline_calls): Update prototype.
29386 * tree-optimize.c (execute_fixup_cfg): Export.
29387 (pass_fixup_cfg): Remove
29388 (tree_rest_of_compilation): Do not apply inlines.
29389 * tree-flow.h (execute_fixup_cfg): Declare.
29390 * Makefile.in (gt-passes.c): New.
29391 * passes.c: Include gt-passes.h
29392 (init_optimization_passes): New passes.
29393 (nnodes, order): New static vars.
29394 (do_per_function_toporder): New function.
29395 (execute_one_pass): Dump current pass here.
29396 (execute_ipa_pass_list): Don't dump current pass here.
29398 2007-01-16 Janis Johnson <janis187@us.ibm.com>
29400 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
29401 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
29403 2007-01-16 David Edelsohn <edelsohn@gnu.org>
29405 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
29406 (strong_alias): Define.
29407 (__gcc_qmul): Provide non-FMA for soft-float.
29408 (__gcc_qdiv): Same.
29413 (__gcc_qunord): New.
29423 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
29424 soft-float functions.
29425 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
29426 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
29427 about long double soft float.
29429 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
29430 Tehila Meyzels <tehila@il.ibm.com>
29432 * tree-vectorizer.h (is_pattern_stmt_p): New.
29433 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
29434 formatting (tabs instead of spaces). Cleanup and clarify setting
29435 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
29436 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
29437 (vectorizable_type_demotion): Check that types are integral.
29438 (vectorizable_type_promotion): Likewise.
29439 (vectorizable_store): Fix typo. Eliminate new-line at end of
29442 2007-01-16 Jan Hubicka <jh@suse.cz>
29444 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
29447 2007-01-15 Eric Christopher <echristo@apple.com>
29449 * ifcvt.c: Include vec.h, vecprim.h.
29450 (check_cond_move_block): New argument regs.
29451 Reorganize. Add registers used to regs.
29452 (cond_move_process_if_block): Use regs set above as
29455 2007-01-15 Eric Christopher <echristo@apple.com>
29457 * config/darwin.h: Update copyright.
29458 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
29459 (LINK_COMMAND_SPEC): Add -u.
29460 (LINK_SPEC): Fix umbrella for above.
29462 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
29464 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
29467 2007-01-15 Tom Tromey <tromey@redhat.com>
29469 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
29470 * doc/install.texi (Testing): Don't mention jacks.
29471 (Configuration): Document --enable-java-maintainer-mode. Move
29472 --with-java-home to libgcj-specific section. Document
29474 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
29476 2007-01-15 Jan Hubicka <jh@suse.cz>
29478 * tree-ssa-dce.c (DCE_TODOs): New.
29479 (propagate_necessity): Return if something changed.
29480 (eliminate_unnecessary_stmts): Likewise.
29481 (perform_tree_ssa_dce): Return TODO flags when needed.
29482 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
29484 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
29486 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
29487 (fyl2x_extend<mode>xf3_i387): New insn pattern.
29488 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
29489 patterns using X87MODEF12 mode macro. Extend operand 1
29490 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
29491 (log10<mode>2): Ditto.
29492 (log2<mode>2): Ditto.
29493 (log1p<mode>2): Ditto.
29494 (logb<mode>2): Ditto.
29495 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
29496 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
29497 (*fxtractxf3_i387): Rename from *fxtractxf3.
29498 (fxtract_extend<mode>xf3_i387): New insn pattern.
29499 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
29500 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
29501 and gen_fyl2xxf3_i387().
29503 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
29505 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
29506 * cfgloopmanip.c (fix_loop_placement): Made static. Use
29507 get_loop_exit_edges. Changed return type to bool.
29508 * cfgloop.h (fix_loop_placement): Declaration removed.
29510 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
29512 * param.h (MIN_VECT_LOOP_BOUND): New.
29513 * params.def (MIN_VECT_LOOP_BOUND): New.
29514 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
29515 argument - minimum threshold for number of iterations.
29516 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
29517 argument to declaration.
29518 * tree-vect-analyze.c (vect_analyze_operations): Check value of
29519 MIN_VECT_LOOP_BOUND.
29520 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
29521 slpeel_tree_peel_loop_to_edge with additional argument.
29522 (vect_do_peeling_for_alignment): Likewise.
29523 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
29525 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
29528 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
29529 operands of size 1.
29531 2007-01-14 Jan Hubicka <jh@suse.cz>
29533 * tree-dfa.c (remove_referenced_var): New function.
29534 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
29535 prune referenced vars list too.
29536 * tree-flow.h (remove_referenced_var): Declare.
29538 2007-01-14 Jan Hubicka <jh@suse.cz>
29540 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
29542 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
29543 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
29544 * except.h (verify_eh_throw_table_statements): Kill prototype.
29545 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
29546 into call exrepssions.
29547 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
29549 * tree-cfg.c: Include pointer-set.h.
29550 (verify_node_sharing): Work on pointer set.
29551 (verify_eh_throw_stmt_node): New.
29552 (verify_stmts): Use pointers sets, verify throw_stmt.
29554 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
29556 * ipa-reference.c (analyze_function): Consider also addresses taken
29559 2007-01-12 Roger Sayle <roger@eyesopen.com>
29561 * c-typeck.c (null_pointer_constant_p): Replace use of
29562 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29563 (build_c_cast): Likewise.
29565 2007-01-12 Roger Sayle <roger@eyesopen.com>
29567 * tree.h (force_fit_type_double): Remove unused final argument.
29568 * c-common.c (constant_expression_warning): Replace use of
29569 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29570 (convert_and_check): Likewise.
29571 (shorten_compare): Update call to force_fit_type_double.
29572 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
29573 * convert.c (convert_to_pointer): Update call to
29574 force_fit_type_double.
29575 * fold-const.c (force_fit_type_double): Remove overflowed_const
29577 (int_const_binop, fold_convert_const_int_from_int,
29578 fold_convert_const_int_from_real, fold_div_compare,
29579 fold_sign_changed_comparison, fold_unary, fold_negate_const,
29580 fold_abs_const, fold_not_const): Remove the final argument from
29581 calls to force_fit_type_double.
29583 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
29585 * configure.ac: Set insn to "nop" for spu-*-* also.
29586 * configure: Regenerate.
29588 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
29590 * builtins.def : Add BUILT_IN_FREE.
29592 2007-01-12 Jan Hubicka <jh@suse.cz>
29594 PR tree-optimization/30443
29595 * tree-inline.c (tree_function_versioning): Do not optimize when
29596 cloning for inlining.
29598 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
29600 * doc/loop.texi: Document recording of loop exits.
29601 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
29602 (update_single_exits_after_duplication,
29603 update_single_exit_for_duplicated_loop,
29604 update_single_exit_for_duplicated_loops): Removed.
29605 (duplicate_loop_to_header_edge): Do not call
29606 update_single_exits_after_duplication and
29607 update_single_exit_for_duplicated_loops.
29608 (loop_version): Do not update single_exit information.
29609 (fix_loop_structure): Use record_loop_exits instead of
29610 mark_single_exit_loops.
29611 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
29612 the lists of loop exits.
29613 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
29614 split_edge, merge_blocks): Update the lists of loop exits.
29615 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
29616 loop_optimizer_init.
29617 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
29618 of mark_single_exit_loops.
29619 (loop_optimizer_finalize): Call release_recorded_exits.
29620 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
29621 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
29622 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
29623 update single exit information.
29624 * lambda-code.c (perfect_nestify): Ditto.
29625 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
29626 (mark_single_exit_loops): Removed.
29627 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
29628 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
29629 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
29631 (get_loop_exit_edges, single_exit): Use recorded exit lists.
29632 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
29633 (verify_loop_structure): Verify consistency of the exit lists.
29634 (flow_loops_find): Use alloc_loop. Initialize exits hash.
29635 (set_single_exit): Removed.
29636 * cfgloop.h (struct loop_exit): New function.
29637 (struct loop): single_exit_ field replaced by exits field.
29638 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
29639 LOOPS_HAVE_RECORDED_EXITS.
29640 (struct loops): Added exits hash.
29641 (mark_single_exit_loops, set_single_exit): Declaration removed.
29642 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
29644 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29646 * doc/invoke.texi: Avoid use of @headitem.
29648 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29650 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
29652 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29654 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
29657 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29658 Richard Sandiford <richard@codesourcery.com>
29660 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
29661 * config/m68k/m68k.opt: Resort options.
29662 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
29664 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29665 Richard Sandiford <richard@codesourcery.com>
29667 * doc/invoke.texi: Document the macros that are defined by
29668 m68k's -mtune and -mhard-float options.
29669 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
29670 (m68k_cpp_cpu_family): Likewise.
29671 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
29672 of __ucfv*__ macros. Define __mcffpu__ if generating code for
29673 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
29674 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
29675 (m68k_cpp_cpu_family): Likewise.
29677 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29679 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
29680 macros besides mc68000 as tuning macros. Use a switch statement
29681 to set them and mcpu32.
29683 2007-01-12 Julian Brown <julian@codesourcery.com>
29685 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
29686 (TARGET_68040_ONLY): Rename to...
29687 (TARGET_68040): ...this.
29688 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
29689 * config/m68k/m68k.md: Likewise.
29691 2007-01-12 Julian Brown <julian@codesourcery.com>
29692 Nathan Sidwell <nathan@codesourcery.com>
29693 Richard Sandiford <richard@codesourcery.com>
29695 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
29696 the -mcpu= argument associated with the --with-cpu setting.
29697 Define M68K_DEFAULT_TUNE to the default -mtune= option,
29698 if different from the one implied by the -mcpu setting.
29699 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
29700 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
29701 * doc/invoke.texi: Mention ColdFire in the introduction to the
29702 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
29703 -mno-div and -mhard-float options. Make -m68881 a synonym for
29704 -mhard-float. Document the previously-undocumented -m5206e,
29705 -m528x, -m5307 and -m5407 options. Tweak the existing option
29706 documentation for consistency.
29707 * doc/install.texi: Mention new --with-cpu arguments.
29708 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
29709 default CPU if neither -mcpu nor -march are specified.
29710 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
29711 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
29712 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
29713 using m68k_tune to decide between families that implement the
29714 same ISA. Use m68k_tune to set __mcfv4e__.
29715 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
29716 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
29717 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
29718 (FL_ISA_C, FL_ISA_MMU): New macros.
29719 (MASK_COLDFIRE): Delete.
29720 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
29721 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
29722 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
29723 (TARGET_HARD_FLOAT): Do not define here.
29724 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
29725 (TUNE_68000): New macro.
29726 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
29727 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
29728 (TUNE_CFV2): Redefine in terms of m68k_tune.
29729 (uarch_type, target_device, fpu_type): New enums.
29730 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
29731 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
29732 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
29733 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
29734 (FL_FOR_isa_c): New macros.
29735 (m68k_isa): New enum.
29736 (m68k_target_selection): New structure.
29737 (all_devices, all_isas, all_microarchs): New tables.
29738 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
29739 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
29740 (MASK_ALL_CPU_BITS): Delete.
29741 (m68k_find_selection): New function.
29742 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
29743 Map the legacy target options to a combination of the new ones.
29744 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
29745 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
29746 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
29748 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
29749 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
29751 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
29752 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
29753 * config/m68k/m68k-devices.def: New file.
29755 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29756 Nathan Sidwell <nathan@codesourcery.com>
29758 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
29759 (SUBTARGET_EXTRA_SPECS): New macros.
29760 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
29761 use %(asm_cpu_spec) instead.
29762 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
29763 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29764 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29765 (EXTRA_SPECS): Rename to...
29766 (SUBTARGET_EXTRA_SPECS): ...this.
29768 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29769 Richard Sandiford <richard@codesourcery.com>
29770 Julian Brown <julian@codesourcery.com>
29772 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
29773 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
29774 to the configuration's default CPU.
29775 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
29776 Remove default masks.
29777 (m680[012]0-*-*): Set the default with_cpu to the first part of
29779 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
29780 (m68k*-*-linux): Extend the --with-cpu handling to...
29781 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
29782 and m68010. Don't set target_cpu_default2.
29783 * doc/install.texi: Document --with-cpu for m68k.
29784 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
29785 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
29786 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
29787 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
29788 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
29789 (ASM_SPEC): Remove use of %(asm_cpu_default).
29790 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
29791 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
29792 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
29793 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
29794 __HAVE_FPU__ if TARGET_HARD_FLOAT.
29795 (TARGET_DEFAULT): Delete.
29796 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
29797 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
29798 (CPP_CPU_SPEC): Delete.
29799 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
29800 the appropriate string.
29801 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
29802 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
29803 (ASM_SPEC): Don't use %(asm_default_spec).
29804 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
29805 TARGET_DEFAULT and add MASK_68881.
29806 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
29808 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29810 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
29811 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
29812 MASK_68010 alongside MASK_68020.
29813 * doc/invoke.texi: Document -m68010.
29814 * config/m68k/m68k.opt (m68010): New.
29815 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
29817 (TUNE_68010): New macro.
29818 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
29819 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
29820 (M68K_CPU_m68332): Add MASK_68010.
29821 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
29822 fallback definition.
29823 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
29825 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
29826 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
29827 to all entries that use MASK_68020.
29828 (output_move_simode_const, output_move_himode, output_move_qimode)
29829 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
29830 instead of TARGET_68020 to select clr behavior. Remove comment
29831 about there being no TARGET_68010.
29832 * config/m68k/m68k.md: Likewise throughout.
29834 2007-01-12 Julian Brown <julian@codesourcery.com>
29836 * config/m68k/m68k.h (TARGET_ISAB): New macro.
29837 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
29838 * config/m68k/m68k.md: Likewise.
29840 2007-01-12 Julian Brown <julian@codesourcery.com>
29842 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
29843 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
29845 2007-01-12 Julian Brown <julian@codesourcery.com>
29847 * config/m68k/m68k.h (TUNE_68040_60): New macro.
29848 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
29849 * config/m68k/m68k.md: Likewise.
29851 2007-01-12 Julian Brown <julian@codesourcery.com>
29852 Richard Sandiford <richard@codesourcery.com>
29854 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
29855 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
29856 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
29858 (TARGET_CPU32): Rename to...
29859 (TUNE_CPU32): ...this.
29860 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
29861 (TUNE_CFV2): New macros.
29862 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
29863 remove conditions that are implied by TARGET_68020.
29864 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
29865 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
29866 (m68k_output_function_epilogue): Likewise.
29867 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
29868 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
29869 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
29870 non-68000 timings. Refactor multiplication and division costs.
29871 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
29872 TUNE_CPU32 instead of TARGET_CPU32.
29873 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
29874 and TUNE_68060 instead of TARGET_68060.
29875 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
29876 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
29878 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
29879 && !TARGET_COLDFIRE" to choose between moveq and clr.
29880 Likewise in the unnamed movsf pattern.
29881 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
29882 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
29885 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29887 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
29888 of tabbing before backslashes.
29890 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29892 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
29893 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
29894 (ASM_OUTPUT_INTERNAL_LABEL): Define.
29896 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
29898 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
29899 find_interesting_uses_cond.
29900 (find_interesting_uses_cond): Use extract_cond_operands.
29901 (rewrite_use_compare): Use extract_cond_operands and
29902 force_gimple_operand_bsi. Do not call update_stmt.
29903 (determine_use_iv_cost_condition): Use extract_cond_operands.
29904 Return cheaper of using original bound and changing the exit bound.
29906 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
29908 PR tree-optimization/29516
29909 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
29910 most_expensive_mult_to_index, addr_to_parts,
29911 create_mem_ref, maybe_fold_tmr): Make the type of
29912 fields of TARGET_MEM_REF sizetype.
29913 (move_fixed_address_to_symbol, move_pointer_to_base):
29915 * tree.def (TARGET_MEM_REF): Add comment on types of
29918 2007-01-11 Joseph Myers <joseph@codesourcery.com>
29920 * c-common.c (vector_types_convertible_p): Treat opaque types as
29921 always convertible if they have the same size, but not otherwise.
29923 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
29925 * ifcvt.c (struct noce_if_info): Add comments to the fields.
29926 Remove the b_unconditional field.
29927 (noce_try_sign_mask): Do not look at b_unconditional.
29928 (noce_process_if_block): Do not use merge_if_blocks. Update
29929 the CFG here. Do not set b_unconditional.
29930 (cond_move_process_if_block): Likewise.
29931 (find_cond_trap): Likewise.
29932 (check_cond_move_block): Require simple jump insns at the end
29933 of the basic block.
29935 2007-01-11 Jan Hubicka <jh@suse.cz>
29937 PR tree-optimization/1046
29938 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
29939 when alias info is not ready.
29940 (pass_tail_recursion): Do not require aliasing.
29941 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
29942 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
29943 * tree-ssa-copy.c (pass_copy_prop): Likewise.
29944 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
29945 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
29946 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
29947 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
29949 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
29950 When aliasing is not build, mark statement as volatile.
29952 2007-01-11 Tom Tromey <tromey@redhat.com>
29954 PR preprocessor/15185, PR preprocessor/20989:
29955 * doc/cppopts.texi <-MT>: Update description of algorithm for
29956 computing default target.
29957 <-M, -MD>: Reword "basename" text.
29959 2007-01-11 Roger Sayle <roger@eyesopen.com>
29961 * builtins.c (expand_builtin_pow, expand_builtin_powi,
29962 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
29963 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
29964 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
29965 fold_builtin_bswap, real_constp, fold_builtin_pow,
29966 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
29967 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
29968 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29969 * convert.c (convert_to_pointer): Likewise.
29970 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
29971 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
29972 const_binop, fold_convert_const_int_from_int,
29973 fold_convert_const_int_from_real,
29974 fold_convert_const_real_from_real, sign_bit_p,
29975 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
29976 fold_sign_changed_comparison, fold_unary, fold_comparison,
29977 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
29978 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
29979 * print-tree.c (print_node_brief, print_node): Likewise.
29980 * stor-layout.c (place_field, layout_type): Likewise.
29981 * tree-chrec.c (keep_cast): Likewise.
29982 * tree.c (build_vector, build_real, build_real_from_int_cst,
29983 build_complex): Likewise.
29985 2007-01-11 Roger Sayle <roger@eyesopen.com>
29987 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
29988 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
29990 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
29992 * configure.ac (strict1_warn): Rename to strict_warn.
29993 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
29994 cc_set_by_configure, quoted_cc_set_by_configure,
29995 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
29996 all_boot_languages, all_stagestuff): Remove.
29997 (target_list): Remove bootstrap targets.
29998 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
29999 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
30000 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
30001 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
30002 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
30003 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
30004 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
30005 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
30006 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
30007 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
30008 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
30009 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
30010 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
30011 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
30012 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
30013 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
30014 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
30015 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
30016 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
30017 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
30018 (mostlyclean): Adjust.
30019 (clean, distclean): Don't mention bootstrap stuff.
30020 * configure: Regenerate.
30021 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
30022 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
30023 treelang/config-lang.in (stagestuff): Remove.
30024 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
30025 stageprofile, stagefeedback, stagestuff): Remove mention.
30027 2007-01-11 Nick Clifton <nickc@redhat.com>
30029 * config/mcore/predicates.md (mcore_general_movesrc_operand):
30031 (mcore_general_movdst_operand): Do not accept CONST_INTs.
30032 (mcore_arith_K_S_operand): Run the test for the S constraint not
30033 the test for the M constraint.
30034 (mcore_addsub_operand): Do not accept integer values that are
30035 larger than 32 bits.
30036 * config/mcore/mcore.md: Remove unused constraints from split.
30037 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
30038 (addsi3): Likewise.
30039 (allocate_stack): Likewise.
30040 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
30041 operands to 32 bits.
30042 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
30044 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
30045 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
30046 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
30047 mcore_output_bclri, mcore_output_andn, output_inline_const,
30048 mcore_output_move, mcore_output_movedouble): Likewise.
30049 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
30050 (output_inline_const): Likewise.
30051 (output_inline_const): Fix format strings used in sprintf
30053 * config/mcore/mcore-protos.h: Update prototypes for changed
30054 functions in mcore.c.
30055 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
30056 HOST_WIDE_INT and not int.
30057 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
30058 CONST_OK_FOR_N): Likewise.
30059 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
30060 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
30063 2007-01-10 Jan Hubicka <jh@suse.cz>
30065 * tree-vrp.c (remove_range_assertions): Release defs.
30066 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
30067 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
30069 2007-01-10 Paul Brook <paul@codesourcery.com>
30071 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
30072 * config/arm/arm.md (mulsi3subsi): New insn.
30074 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
30076 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
30077 (tree_transform_and_unroll_loop): New.
30078 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
30081 2007-01-10 Robert Kennedy <jimbob@google.com>
30083 * fold-const.c (fold_comparison): Fold comparisons like (x *
30084 1000 < 0) to (x < 0).
30086 2007-01-10 Ian Lance Taylor <iant@google.com>
30088 * tree-pretty-print.c (dump_generic_node): Print parentheses when
30089 operands have the same priority.
30091 2007-01-10 Tom Tromey <tromey@redhat.com>
30093 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
30094 (fold_binary): Likewise.
30095 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
30096 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
30097 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
30098 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
30099 * langhooks.h (struct lang_hooks): Removed field
30100 'can_use_bit_fields_p'.
30102 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
30104 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
30106 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
30108 * function.c (get_last_funcdef_no): New function.
30109 * function.h (get_last_funcdef_no): Declare.
30110 * tree-inline.c (initialize_cfun): Add initialization.
30111 (tree_function_versioning): Cleanup.
30113 2007-01-10 Jan Hubicka <jh@suse.cz>
30115 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
30118 2007-01-10 Sa Liu <saliu@de.ibm.com>
30119 Ben Elliston <bje@au.ibm.com>
30121 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
30122 for SAVE_NONLOCAL and Pmode for any other save level.
30123 * spu-protos.h (spu_restore_stack_block): Declare.
30124 * spu.md (save_stack_block): Remove.
30125 (restore_stack_block): Call spu_restore_stack_block.
30126 * spu.c (spu_restore_stack_block): New function.
30127 (spu_expand_epilogue): Remove old comment.
30129 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
30131 PR tree-optimization/30322
30132 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
30133 (cand_value_at): Return the value as aff_tree.
30134 (may_eliminate_iv): Convert the bound from aff_tree to tree.
30135 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
30136 aff_combination_mult): New functions.
30137 (aff_combination_add): Use aff_combination_add_cst.
30138 (aff_combination_convert): Allow conversions to a wider type.
30139 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
30140 * tree-affine.h (aff_combination_mult): Declare.
30142 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
30144 * doc/tm.texi: Update documentation to reflect reality of exec
30145 and start file search behaviours. Update copyright year.
30146 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
30147 header file directories.
30149 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
30151 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
30152 (*cosxf2): Rename to cosxf2_i387.
30153 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
30154 using X87MODEF12 mode macro. Rename patterns to
30155 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
30157 (*cosdf2, *cossf2): Ditto.
30158 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
30159 to match extended input operands.
30160 (sincos<mode>3): New expander.
30161 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
30162 insn patterns and corresponding splitters.
30164 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
30166 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
30167 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
30169 2007-01-09 Nicolas Pitre <nico@cam.org>
30172 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
30174 2007-01-08 Geoffrey Keating <geoffk@apple.com>
30176 * target.h (struct gcc_target): New field library_rtti_comdat.
30177 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
30178 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
30179 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
30180 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
30182 2007-01-08 Geoffrey Keating <geoffk@apple.com>
30184 * doc/invoke.texi (Optimize Options): Correct description of -O0.
30186 2007-01-08 Richard Guenther <rguenther@suse.de>
30188 * tree.h (force_fit_type_double): Export.
30189 (force_fit_type): Remove.
30190 * fold-const.c (force_fit_type_double): New function.
30191 (force_fit_type): Remove.
30192 (int_const_binop): Use it.
30193 (fold_convert_const_int_from_int): Likewise.
30194 (fold_convert_const_int_from_real): Likewise.
30195 (fold_div_compare): Likewise.
30196 (fold_sign_changed_comparison): Likewise.
30197 (fold_unary): Likewise.
30198 (fold_negate_const): Likewise.
30199 (fold_abs_const): Likewise.
30200 (fold_not_const): Likewise.
30201 * c-common.c (shorten_compare): Use force_fit_type_double.
30202 * convert.c (convert_to_pointer): Likewise.
30204 2007-01-08 Richard Guenther <rguenther@suse.de>
30206 * tree.h (build_int_cst_wide_type): Export.
30207 * tree.c (build_int_cst_wide_type): New function.
30208 (build_int_cst_wide): Fix comment.
30209 * builtins.c (fold_builtin_object_size): Use build_int_cst
30210 to build -1 or 0 of the correct type. Use fit_double_type
30211 to check for overflow.
30212 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
30214 (decode_field_reference): Likewise.
30215 (all_ones_mask_p): Likewise.
30216 (native_interpret_int): Use build_int_cst_wide_type.
30217 (fold_binary): Use build_int_cst_type to build an all-ones
30219 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
30221 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
30223 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
30225 2007-01-09 Ben Elliston <bje@au.ibm.com>
30227 * genautomata.c (STATS_OPTION): New option.
30228 (stats_flag): New flag.
30229 (gen_automata_option): Handle it.
30230 (initiate_automaton_gen): Ditto.
30231 (write_automata): Output statistics only if stats_flag is
30232 set. Likewise, output time statistics only if time_flag is set.
30233 * doc/md.texi (Processor pipeline description): Document new flag.
30235 2007-01-08 Richard Guenther <rguenther@suse.de>
30237 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
30238 * tree.c (build_int_cst_type): Likewise.
30239 (size_in_bytes): Don't call force_fit_type on the result.
30240 (int_fits_type_p): Use fit_double_type.
30241 * fold-const.c (fit_double_type): New function.
30242 (force_fit_type): Use it.
30243 * tree.h (fit_double_type): Export.
30245 2007-01-08 Jan Hubicka <jh@suse.cz>
30247 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
30248 * ipa.c (function_and_variable_visibility): Fix return type.
30250 2007-01-08 Richard Guenther <rguenther@suse.de>
30252 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
30253 of offset to build the index.
30254 * tree-pretty-print.c (dump_generic_node): Don't build negated
30255 const just for printing.
30256 * c-pretty-print.c (pp_c_integer_constant): Likewise.
30257 * builtins.c (fold_builtin_int_roundingfn): Check if result
30258 fits the type by using force_fit_type and comparing the result.
30259 * predict.c (predict_loops): Use compare_tree_int for comparison.
30260 * tree.c (build_int_cst): Fall back to integer_type_node for
30262 (build_int_cst_wide): Assert type is non-null.
30264 2007-01-08 Roberto Costa <roberto.costa@st.com>
30266 * tree-vrp.c (extract_range_from_cond_expr): New.
30267 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
30268 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
30270 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
30271 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
30272 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
30273 used as expressions.
30274 * tree-object-size.c (cond_expr_object_size): New.
30275 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
30277 2007-01-08 Jan Hubicka <jh@suse.cz>
30279 * tree-ssa-forwprop.c (forward_propagate_into_cond,
30280 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
30283 2007-01-08 Richard Guenther <rguenther@suse.de>
30285 PR tree-optimization/23603
30286 * tree-vrp.c (set_value_range_to_truthvalue): New function.
30287 (extract_range_from_binary): Fall back to truthvalue instead of
30288 varying for TRUTH_*_EXPR.
30289 (extract_range_from_comparison): Fall back to truthvalue instead of
30291 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
30292 if all visited PHI values were constant.
30294 2007-01-08 Jan Hubicka <jh@suse.cz>
30296 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
30297 (cgraph_analyze_function): break out from ...
30298 (cgraph_finalize_compilation_unit): ... here.
30299 (cgraph_expand_function): Remove forgoten commented out line.
30300 (cgraph_optimize): Analyze functions.
30302 2007-01-08 Jan Hubicka <jh@suse.cz>
30304 * tree-pas.h (TODO_remove_function): New flag.
30305 (TODO_update*): Renumber.
30306 (pass_ipa_increase_alignment,
30307 pass_ipa_function_and_variable_visibility): New passes.
30308 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
30309 (cgraph_function_and_variable_visibility): Move to ipa.c
30310 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
30311 cgraph_increase_alignment.
30312 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
30313 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
30314 calling tree-inline.
30315 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
30316 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
30317 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
30318 (gate_increase_alignment): New function.
30319 (pass_ipa_increase_alignment): New pass.
30320 * ipa.c: Inline tree-pass.h and timevar.h
30321 (function_and_variable_visibility): Move here from cgraphunit.c
30322 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
30323 * passes.c (init_optimization_passes): Add the two new passes.
30324 (execute_todo): Handle cgraph_remove_functions.
30326 2007-01-08 Nick Clifton <nickc@redhat.com>
30328 * config/frv/predicates.md (reg_or_0_operand): Accept
30331 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
30333 * config/bfin/rtems.h, config/bfin/t-rtems: New.
30334 * config.gcc: Add bfin*-rtems*.
30336 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
30338 * c.opt: Add -flax-vector-conversions.
30339 * c-typeck.c (convert_for_assignment): Pass flag to
30340 vector_types_convertible_p to allow emission of note.
30341 (digest_init): Likewise.
30342 * c-opts.c: Handle -flax-vector-conversions.
30343 * c-common.c (flag_lax_vector_conversions): New.
30344 (vector_types_convertible_p): Unless -flax-vector conversions
30345 has been passed, disallow conversions between vectors with
30346 differing numbers of subparts and/or element types. If such
30347 a conversion is disallowed, possibly emit a note on the first
30348 occasion only to inform the user of -flax-vector-conversions.
30349 The new last argument specifies this.
30350 * c-common.h (flag_lax_vector_conversions): New.
30351 (vector_types_convertible_p): Add extra argument.
30352 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
30353 char_type_node for V*QI type vectors.
30354 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
30355 Update to satisfy new typechecking rules.
30356 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
30357 C and C++ variants.
30358 * doc/invoke.texi (C Dialect Options): Document
30359 -flax-vector-conversions.
30361 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
30363 PR tree-optimization/29877
30364 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
30365 a register variable on the RHS to not be replaceable.
30367 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
30368 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
30369 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
30370 const_simm15, const_pow2, const_npow2): Added.
30371 * config/score/misc.md (insv, extv, extzv, movmemsi,
30372 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
30373 * config/score/score.c (score_address_cost, score_select_cc_mode):
30375 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
30376 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
30377 Update score_print_operand.
30378 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
30379 Adjust register allocate order and update some macro define.
30380 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
30381 mdx_block_move_straight, mdx_block_move_loop_head,
30382 mdx_block_move_loop_body, mdx_block_move_loop_foot,
30383 mdx_block_move_loop, mdx_block_move): Added.
30384 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
30385 mdp_limm): Updated and fix some bug and typo.
30386 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
30387 (movsf, movdf, doloop_end): Added.
30389 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
30391 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
30392 config/arm/thumb2.md: Fix comment typos.
30393 * doc/extend.texi: Fix a typo.
30395 2007-01-07 Eric Christopher <echristo@apple.com>
30397 * configure.ac: Check for __stack_chk_fail for darwin.
30398 * configure: Regenerate.
30400 2007-01-07 Richard Guenther <rguenther@suse.de>
30402 * tree-vrp.c (extract_range_from_assert): CSE calls to
30403 compare_values where possible.
30404 (extract_range_from_unary_expr): Likewise.
30406 2007-01-07 Anatoly Sokolov <aesok@post.ru>
30408 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
30409 * config/avr/avr.c (call_insn_operand): Delete function.
30410 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
30411 instead of register number. Use predicates.
30412 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
30413 call_insn_operand): Add.
30415 2007-01-06 Jan Hubicka <jh@suse.cz>
30417 * tree-pass.h (pass_build_cgraph_edges): Declare.
30418 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
30419 (visited_nodes): Remove.
30420 (cgraph_create_edges): Move to cgraphbuild.c; rename to
30421 build_cgrpah_edges; make visited_nodes local.
30422 (cgraph_process_new_functions): DO not call initialize_inline_failed.
30423 (record_references_in_initializer): Move to cgraphbuild.c
30424 (initialize_inline_failed, rebuild_cgraph_edges,
30425 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
30426 (verify_cgraph_node): Make visited_nodes local.
30427 (cgraph_analyze_function): Do not call cgraph_create_edges and
30428 initialize_inline_failed.
30429 (cgraph_expand_function): Do not call cgraph_lower_function;
30430 assert that function is already lowered.
30431 * Makefile.in (cgraphbuild.o): New.
30432 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
30433 at the end of lowering passes.
30435 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
30437 * ifcvt.c (cond_move_convert_if_block): New function, code
30438 factored out from...
30439 (cond_move_process_if_block): ...here. Call the new function
30440 on the THEN and ELSE blocks.
30441 (merge_if_block): Do not copy global_live_at_end, merge_blocks
30442 already takes care of this.
30444 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30447 * tree.h (TREE_OVERFLOW_P): New.
30448 * c-typeck.c (parser_build_unary_op): Warn only if result
30449 overflowed and operands did not.
30450 (parser_build_binary_op): Likewise.
30451 (convert_for_assignment): Remove redundant overflow_warning.
30452 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
30454 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30456 * c-typeck.c (store_init_value): Split over two lines to follow
30457 the GNU coding style.
30459 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
30461 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
30462 __GXX_EXPERIMENTAL_CXX0X__.
30463 * doc/cpp.texi: Same.
30465 2007-01-05 Richard Guenther <rguenther@suse.de>
30467 PR middle-end/27826
30468 * tree.c (get_narrower): Do not construct COMPONENT_REFs
30469 with mismatched types. Instead explicitly build a
30470 conversion NOP_EXPR.
30472 2007-01-05 Ian Lance Taylor <iant@google.com>
30474 * c-common.c (decl_with_nonnull_addr_p): New function.
30475 (c_common_truthvalue_conversion): Call it.
30476 * c-typeck.c (build_binary_op): Likewise.
30477 * c-common.h (decl_with_nonnull_addr_p): Declare.
30479 2007-01-05 Jakub Jelinek <jakub@redhat.com>
30482 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
30485 2007-01-05 Joel Brobecker <brobecker@adacore.com>
30487 * doc/install.texi (Final install): Document the fact that
30488 the GNAT runtime should not be stripped.
30490 2007-01-04 Jan Hubicka <jh@suse.cz>
30492 * tree-inline.c (fold_marked_statements): Update operand caches
30493 and EH after folding
30495 2007-01-04 Ian Lance Taylor <iant@google.com>
30497 * c-common.c (check_function_nonnull): Whitespace fix.
30499 2007-01-04 Jan Hubicka <jh@suse.cz>
30501 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
30502 comitted older version of patch.
30503 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
30504 function, celanup cfg and collect garbage.
30506 2007-01-04 Mike Stump <mrs@apple.com>
30508 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
30511 2007-01-04 Eric Christopher <echristo@apple.com>
30513 * libgcc2.c (__bswapsi2): Use SItype.
30514 (__bswapdi2): Use DItype.
30515 * libgcc2.h: Update for above.
30517 2007-01-04 Paul Brook <paul@codesourcery.com>
30519 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
30520 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
30521 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
30522 umulsidi3, umulsidi3adddi, smulsi3_highpart,
30523 umulsi3_highpart): Make conditional on !arm_arch6.
30524 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
30525 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
30526 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
30527 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
30528 umulsi3_highpart_v6): New insns.
30530 2007-01-04 Roger Sayle <roger@eyesopen.com>
30532 * fold-const.c (fold_convert): When casting an expression to void,
30533 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
30534 have a type. Instead of attempting to build a NOP_EXPR, return
30535 these "special" trees directly.
30537 2007-01-04 Joseph Myers <joseph@codesourcery.com>
30539 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
30540 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
30541 rs6000_cost->fp not 0 as adjustment for outer NEG.
30543 2007-01-04 Jan Hubicka <jh@suse.cz>
30545 * cgraph.c (cgraph_release_function_body): New function.
30546 (cgraph_remove_node): Use it.
30547 * cgraph.h (cgraph_release_function_body): Declare.
30548 * cgraphunit.c (cgraph_expand_function): Use it.
30549 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
30550 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
30551 is initialized and while compilation of other function is running.
30552 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
30553 statement CFG annotations from here to ...
30554 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
30556 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
30558 * cfgloop.h (enum li_flags): Make the constants powers of two.
30560 2007-01-04 Jan Hubicka <jh@suse.cz>
30562 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
30564 (fold_marked_statements): New function.
30565 (optimize_inline_calls, tree_function_versioning): Fold new statements.
30566 * tree-inline.h (copy_body_data): Add statements_to_fold.
30568 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
30570 * config.gcc: Mention libgcc/config.host.
30571 * Makefile.in: Update comments mentioning libgcc.
30572 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
30573 (all.cross, start.encap, rest.encap, rest.cross): Update
30574 dependencies for libgcc move.
30575 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
30576 (clean-target, clean-target-libgcc): Delete.
30577 (srcdirify, GCC_EXTRA_PARTS): New macros.
30578 (libgcc-support, libgcc.mvars): New rules.
30579 (distclean): Remove mention of mklibgcc.
30580 (install): Don't reference INSTALL_LIBGCC.
30581 (install-common): Don't reference EXTRA_PARTS.
30582 (install-libgcc, install-multilib): Delete rules.
30583 * mklibgcc.in: Delete file.
30584 * doc/configfiles.texi: Don't mention mklibgcc.
30586 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
30587 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
30588 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
30589 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
30590 (mklibgcc, ldblspecs): Likewise.
30592 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
30593 (posixpre.def): Use $(T).
30594 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
30595 (SHLIB_SRC, SHLIB_INSTALL): Delete.
30596 (SHLIB_LINK): Make dummy.
30597 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
30599 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
30601 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
30602 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
30603 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
30604 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
30606 * configure.ac (all_outputs): Remove mklibgcc.
30607 * configure: Regenerated.
30609 2007-01-03 Josh Conner <jconner@apple.com>
30611 PR middle-end/29683
30612 * calls.c (compute_argument_addresses): Set stack and stack_slot
30613 for partial args, too.
30614 (store_one_arg): Use locate.size.constant for the size when
30615 generating a save_area.
30617 2007-01-03 Robert Kennedy <jimbob@google.com>
30619 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
30620 whose definitions are deleted due to basic block merging.
30622 2007-01-03 Paul Brook <paul@codesourcery.com>
30625 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
30627 (use_return_insn): Return 0 for Thumb interrupt functions.
30628 (print_multi_reg): Add rfe argument for IRQ returns.
30629 (arm_output_epilogue): Pop interrupt return address directly into PC.
30630 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
30632 2007-01-03 Paul Brook <paul@codesourcery.com>
30634 Merge from sourcerygxx-4_1.
30635 * config/arm/thumb2.md: New file.
30636 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
30638 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
30639 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
30640 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
30641 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
30643 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
30644 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
30646 * config/arm/ieee754-sf.S: Ditto.
30647 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
30648 (thumb1_base_register_rtx_p): ... to this.
30649 (thumb_index_register_rtx_p): Rename...
30650 (thumb1_index_register_rtx_p): ... to this.
30651 (thumb_output_function_prologue): Rename...
30652 (thumb1_output_function_prologue): ... to this.
30653 (thumb_legitimate_address_p): Rename...
30654 (thumb1_legitimate_address_p): ... to this.
30655 (thumb_rtx_costs): Rename...
30656 (thumb1_rtx_costs): ... to this.
30657 (thumb_compute_save_reg_mask): Rename...
30658 (thumb1_compute_save_reg_mask): ... to this.
30659 (thumb_final_prescan_insn): Rename...
30660 (thumb1_final_prescan_insn): ... to this.
30661 (thumb_expand_epilogue): Rename...
30662 (thumb1_expand_epilogue): ... to this.
30663 (arm_unwind_emit_stm): Rename...
30664 (arm_unwind_emit_sequence): ... to this.
30665 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
30666 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
30667 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
30668 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
30669 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
30670 thumb2_output_casesi): New functions.
30671 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
30672 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
30673 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
30674 THUMB2_WORK_REGS): Define.
30675 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
30676 arm_condexec_mask, arm_condexec_masklen)): New variables.
30677 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
30678 (arm_override_options): Check new CPU capabilities.
30679 Set new architecture flag variables.
30680 (arm_isr_value): Handle v7m interrupt functions.
30681 (user_return_insn): Return 0 for v7m interrupt functions. Handle
30683 (const_ok_for_arm): Handle Thumb-2 constants.
30684 (arm_gen_constant): Ditto. Use movw when available.
30685 (arm_function_ok_for_sibcall): Return false for v7m interrupt
30687 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
30688 (thumb_find_work_register, arm_load_pic_register,
30689 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
30690 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
30691 print_multi_reg, output_mov_long_double_fpa_from_arm,
30692 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
30693 output_mov_double_fpa_from_arm, output_move_double,
30694 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
30695 output_return_instruction, arm_output_function_prologue,
30696 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
30697 arm_output_mi_thunk, thumb_set_return_address): Ditto.
30698 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
30699 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
30700 (arithmetic_instr, shift_op): Use arm_shift_nmem.
30701 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
30703 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
30704 (thumb_expand_prologue): Use thumb_set_frame_pointer.
30705 (arm_file_start): Output directive for unified syntax.
30706 (arm_unwind_emit_set): Handle stack alignment instruction.
30707 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
30708 Add v6t2, v7, v7a, v7r and v7m.
30709 (RETLDM): Add Thumb-2 code.
30710 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
30711 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
30712 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
30713 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
30714 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
30715 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
30716 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
30717 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
30718 ADJUST_INSN_LENGTH): Define.
30719 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
30720 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
30721 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
30722 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
30723 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
30724 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
30725 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
30726 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
30727 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
30728 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
30729 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
30730 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
30731 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
30732 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
30733 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
30734 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
30735 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
30737 * config/arm/arm-tune.md: Regenerate.
30738 * config/arm/arm-protos.h: Update prototypes.
30739 * config/arm/vfp.md: Enable patterns for Thumb-2.
30740 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
30741 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
30742 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
30743 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
30744 * config/arm/libunwind.S: Add Thumb-2 code.
30745 * config/arm/constraints.md: Update include Thumb-2.
30746 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
30747 * config/arm/ieee754-df.S: Ditto.
30748 * config/arm/bpabi.S: Ditto.
30749 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
30750 * config/arm/predicates.md (low_register_operand,
30751 low_reg_or_int_operand, thumb_16bit_operator): New.
30752 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
30753 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
30754 * config/arm/t-arm-elf: Add armv7 multilib.
30755 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
30757 (UNSPEC_STACK_ALIGN, ce_count): New.
30758 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
30759 arm_zero_extendsidi2, arm_zero_extendqidi2): New
30761 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
30762 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
30763 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
30764 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
30765 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
30766 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
30768 * doc/extend.texi: Document ARMv7-M interrupt functions.
30769 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
30771 2007-01-03 Jakub Jelinek <jakub@redhat.com>
30773 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
30774 (struct _Unwind_Context): Rename args_size to flags, remove
30775 signal_frame field, add a new args_size field and version field.
30776 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
30777 _Unwind_IsExtendedContext): New inline functions.
30778 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
30779 Assume by_value array is only present if _Unwind_IsExtendedContext.
30780 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
30781 _Unwind_IsSignalFrame.
30782 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
30783 (uw_update_context_1): Use _Unwind_SetSignalFrame.
30784 (uw_init_context_1): Initialize context->flags to
30785 EXTENDED_CONTEXT_BIT.
30786 * config/rs6000/linux-unwind.h (frob_update_context): Use
30787 _Unwind_SetSignalFrame.
30789 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
30791 PR middle-end/30353
30792 * gimplify.c (gimplify_modify_expr_complex_part): Move below
30793 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
30796 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
30798 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
30799 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
30800 RET, AT_SP): Remove.
30801 * config/i386/i386.md (*sse_prologue_save_insn): Use return
30804 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
30805 * cfgbuild.c (find_basic_blocks): Likewise.
30806 * cfgrtl.c (rtl_create_basic_block): Likewise.
30807 * function.c (temp_slots_at_level): Likewise.
30808 * reg-stack.c (stack_regs_mentioned): Likewise.
30809 * regclass.c (allocate_reg_info): Likewise.
30810 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
30811 set_bb_for_stmt, move_block_to_fn): Likewise.
30812 * tree-complex.c (tree_lower_complex): Likewise.
30813 * vec.h (VEC_safe_grow_cleared): New.
30815 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
30817 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
30819 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
30820 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
30822 * cfgloopmanip.c (scale_loop_frequencies): Export.
30823 (loopify): Scale the frequencies by prescribed coefficients.
30824 (set_zero_probability): New function.
30825 (duplicate_loop_to_header_edge): Improve updating of frequencies.
30826 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
30827 and frequencies according to arguments.
30828 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
30830 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
30831 * modulo-sched.c (sms_schedule): Set probabilities for entering
30832 versioned loop correctly.
30833 * tree-vect-transform.c (vect_transform_loop): Ditto.
30834 * cfgloop.h (loopify, loop_version): Declaration changed.
30835 (scale_loop_frequencies): Declared.
30837 2007-01-02 Jan Hubicka <jh@suse.cz>
30839 * cgraph.c: Include tree-flow.h
30840 (cgraph_add_new-function): Handle IPA_SSA mode; execute
30841 early_local_passes.
30842 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
30843 * tree-pass.h (pass_all_early_optimizations): Declare.
30844 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
30845 early_local_passes.
30846 (cgraph_analyze_function): Do early_local_passes.
30847 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
30848 Do not add referenced vars.
30849 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
30851 (gate_all_early_local_passes): New gate.
30852 (pass_early_local_passes): Use new gate.
30853 (execute_early_local_optimizations): New functions.
30854 (gate_all_early_optimizations): New gate.
30855 (pass_all_early_optimizations): New pass.
30856 (execute_free_datastructures): Free SSA only when initialized.
30857 (gate_init_datastructures): Init only when optimizing.
30858 (tree_lowering_passes): Do early local passes when called late.
30859 * tree-profile.c (do_tree_profiling): Don't profile functions added
30861 (do_early_tree_profiling, pass_early_tree_profile): Kill.
30862 * tree-cfg.c (update_modified_stmts): Do not update when operands are
30864 * passes.c (init_optimizations_passes): Reorder so we go into SSA
30865 during early_local_passes.
30866 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
30869 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
30871 * Makefile.in: Update copyright year.
30873 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
30875 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
30876 in $(lang_checks) and check-consistency targets.
30878 2007-01-02 Jan Hubicka <jh@suse.cz>
30880 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
30881 Do not add referenced vars.
30882 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
30884 * passes.c (init_optimization_passes): Put mudflap_2 after
30885 free_datastructures.
30887 2007-01-02 Jan Hubicka <jh@suse.cz>
30889 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
30890 Set NOTHROW flag on call statements proved to be nothrow.
30891 Update statement of local calls so new pure/const functions are
30892 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
30894 (tree_rest_of_compilation): Register hooks and initialize bitmap
30895 early. Do not set after_inlining flag.
30897 2007-01-02 Steve Ellcey <sje@cup.hp.com>
30899 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
30900 HOST_BITS_PER_LONGLONG
30902 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30905 * c-typeck.c (store_init_value): Don't emit pedantic overflow
30906 warning for non-static initializers.
30908 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
30910 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
30911 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
30912 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
30913 Always use set_unique_reg_note to add REG_EQUAL notes.
30915 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
30918 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
30920 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
30921 * cfgbuild.c (find_basic_blocks): Likewise.
30922 * cfgrtl.c (rtl_create_basic_block): Likewise.
30923 * function.c (temp_slots_at_level): Likewise.
30924 * reg-stack.c (stack_regs_mentioned): Likewise.
30925 * regclass.c (allocate_reg_info): Likewise.
30926 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
30927 set_bb_for_stmt, move_block_to_fn): Likewise.
30928 * tree-complex.c (tree_lower_complex): Likewise.
30929 * vec.h (VEC_safe_grow_cleared): New.
30931 2007-01-02 Ian Lance Taylor <iant@google.com>
30933 * c-common.c (c_common_truthvalue_conversion): When warning about
30934 using an assignment as a truth value, set TREE_NO_WARNING.
30936 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30939 * c.opt (Wold-style-declaration): New.
30940 * doc/invoke.texi (C-only Warning Options): New.
30941 (Wold-style-declaration): Document it.
30942 (Wextra): Enabled by -Wextra.
30943 * c-opts.c (c_common_post_options): Enabled by -Wextra.
30944 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
30945 -Wold-style-declaration.
30947 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
30949 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
30950 * cfgbuild.c (find_basic_blocks): Likewise.
30951 * cfgrtl.c (rtl_create_basic_block): Likewise.
30952 * function.c (temp_slots_at_level): Likewise.
30953 * reg-stack.c (stack_regs_mentioned): Likewise.
30954 * regclass.c (allocate_reg_info): Likewise.
30955 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
30956 set_bb_for_stmt, move_block_to_fn): Likewise.
30957 * tree-complex.c (tree_lower_complex): Likewise.
30958 * vec.h (VEC_safe_grow_cleared): New.
30960 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
30962 * c-common.c (c_common_nodes_and_builtins): Since variants of
30963 void_type_node get built before it is given a name, we need to
30964 give those variants the name, too.
30965 (complete_array_type): We need to work with the canonical main
30966 type of the array, from which we will build the qualified version.
30967 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
30968 * print-tree.c (print_node): Display canonical type information
30970 * stor-layout.c (layout_type): When we don't know the
30971 alignment of a type for which we're building an array, we end up
30972 guessing wrong, so make the type require structural equality.
30973 * tree.c (make_node_stat): When we build a new type, it is its
30974 own canonical type.
30975 (build_type_attribute_qual_variant): When building an attribute
30976 variant, its canonical type is the non-attribute variant. However,
30977 if the attributes are target-dependent and they differ, we need to
30978 use structural equality checks for this type.
30979 (build_qualified_type): A qualified type is not equivalent to its
30980 unqualified variant; set the canonical type appropriately.
30981 (build_distinct_type_copy): When building a distinct type from
30982 another type, the new type is its own canonical type.
30983 (build_variant_type_copy): When building a new type variant, we
30984 assume that it is equivalent to the original type.
30985 (build_pointer_type_for_mode): When building a pointer type, also
30986 build a canonical type pointer.
30987 (build_reference_type_for_mode): When building a reference type,
30988 also build a canonical type reference.
30989 (build_index_type): When we can't hash an index type (e.g.,
30990 because its maximum value is negative), the index type requires
30991 structural equality tests.
30992 (build_array_type): Build the canonical form of an array type.
30993 (build_function_type): Function types require structural equality,
30994 because they contain default arguments, attributes, etc.
30995 (build_method_type_directly): Ditto for method types.
30996 (build_offset_type): Build the canonical offset type.
30997 (build_complex_type): Build the canonical vector type.
30998 (make_vector_type): Build the canonical vector type.
30999 * tree.h (TYPE_CANONICAL): New.
31000 (TYPE_STRUCTURAL_EQUALITY_P): New.
31001 (SET_TYPE_STRUCTURAL_EQUALITY): New.
31002 (struct tree_type): Added "canonical" field.
31003 * params.h (VERIFY_CANONICAL_TYPES): New.
31004 * doc/c-tree.texi (TYPE_CANONICAL): Document.
31005 (TYPE_STRUCTURAL_EQUALITY_P): Document.
31006 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
31007 * doc/invoke.texi (verify-canonical-types): Document --param
31008 parameter for verifying canonical types.
31010 2007-01-02 Joseph Myers <joseph@codesourcery.com>
31012 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
31013 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
31014 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
31015 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
31017 * config/rs6000/e500.h: New.
31018 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
31019 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
31021 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
31022 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
31023 TARGET_E500_DOUBLE): Remove.
31024 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
31025 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
31026 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
31027 * config/rs6000/rs6000.c (rs6000_override_options): Use
31028 CHECK_E500_OPTIONS.
31030 2007-01-02 Joseph Myers <joseph@codesourcery.com>
31032 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
31033 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
31034 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
31035 rs6000_emit_cmove): Don't check TARGET_E500.
31036 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
31037 sordered): Don't check TARGET_E500.
31039 2007-01-01 Eric Christopher <echristo@apple.com>
31041 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
31042 HARD_REGISTER_NUM_P.
31044 2007-01-01 Roger Sayle <roger@eyesopen.com>
31046 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
31047 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
31048 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
31051 2007-01-01 Mike Stump <mrs@apple.com>
31053 * configure.ac: Remove support for building with Apple's gcc-3.1.
31055 2007-01-02 Joseph Myers <joseph@codesourcery.com>
31057 PR middle-end/30311
31058 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
31059 REG is a hard register. Do not modify REG before calling
31061 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
31062 multiple of the size of YMODE for certain lowpart cases.
31064 2007-01-01 Andrew Pinski <pinskia@gmail.com>
31066 PR middle-end/30253
31067 * gimplify (voidify_wrapper_expr): Update for
31068 GIMPLE_MODIFY_STMT.
31070 2007-01-01 Andreas Schwab <schwab@suse.de>
31073 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
31074 save of BR0 in extra_spill_size instead of spill_size.
31075 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
31077 (ia64_expand_epilogue): Restore BR0 from its new location.
31079 2007-01-01 Andrew Pinski <pinskia@gmail.com>
31081 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
31082 Use a temporary variable if the left hand side is not a gimple
31085 2007-01-01 Andrew Pinski <pinskia@gmail.com>
31087 * gimplify.c (gimplify_return_expr): Make the temporary variable
31088 for the return expression, a gimple register variable.
31090 2007-01-01 Jan Hubicka <jh@suse.cz>
31092 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
31095 2007-01-01 Mike Stump <mrs@apple.com>
31097 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
31099 * config/darwin.c (machopic_select_rtx_section): Use
31100 HAVE_GAS_LITERAL16.
31101 (darwin_mergeable_constant_section): Likewise.
31102 * configure: Regenerate.
31103 * config.in: Regenerate.
31105 2007-01-01 Jan Hubicka <jh@suse.cz>
31106 Andrew Pinski <pinskia@gmail.com>
31108 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
31109 before starting IPA passes.