re PR tree-optimization/33866 (ICE in vect_get_vec_def_for_stmt_copy, at tree-vect...
[gcc.git] / gcc / ChangeLog
1 2007-10-25 Ira Rosen <irar@il.ibm.com>
2
3 PR tree-optimization/33866
4 * tree-vect-transform.c (vectorizable_store): Check operands of all the
5 stmts in the group of strided accesses. Get def stmt type for each store
6 in the group and pass it to vect_get_vec_def_for_stmt_copy ().
7
8 2007-10-25 Uros Bizjak <ubizjak@gmail.com>
9
10 * config/i386/constraints.md (Y0): Rename register constraint to Yz.
11 (Yt): Rename register constraint to Y2.
12 * config/i386/sse.md: Use renamed register constraints.
13 * config/i386/mmx.md: Ditto.
14 * config/i386/i386.md: Ditto.
15
16 2007-10-25 Rask Ingemann Lambertsen <rask@sygehus.dk>
17
18 * config/i386/i386.md (*dummy_extendsfdf2): Fix operand 1 constraint.
19
20 2007-10-24 Chao-ying Fu <fu@mips.com>
21
22 * dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or
23 DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.
24
25 2007-10-24 Samuel Tardieu <sam@rfc1149.net>
26 Olga Golovanevsky <olga@il.ibm.com>
27
28 * ipa-struct-reorg.c (replace_field_acc): Make it clear to
29 the compiler that wr.wrap and wr.domain are initialized in
30 any case.
31
32 2007-10-24 Samuel Tardieu <sam@rfc1149.net>
33
34 * ipa-struct-reorg.c (sum_counts): Use HOST_WIDEST_PRINT_DEC
35 to print gcov_type values.
36
37 2007-10-24 Eric B. Weddington <eweddington@cso.atmel.com>
38
39 * config/avr/avr.h: Do not include progmem_section definition when
40 building with IN_TARGET_LIBS.
41
42 2007-10-24 Richard Sandiford <rsandifo@nildram.co.uk>
43
44 PR target/33755
45 * config/mips/mips.c (mips_lo_sum_offset): New structure.
46 (mips_hash_base, mips_lo_sum_offset_hash, mips_lo_sum_offset_eq)
47 (mips_lo_sum_offset_lookup, mips_record_lo_sum)
48 (mips_orphaned_high_part_p: New functions.
49 (mips_avoid_hazard): Don't check INSN_P here.
50 (mips_avoid_hazards): Rename to...
51 (mips_reorg_process_insns): ...this. Cope with
52 !TARGET_EXPLICIT_RELOCS. Delete orphaned high-part relocations,
53 or turn them into nops.
54 (mips_reorg): Remove TARGET_EXPLICIT_RELOCS check from calls to
55 dbr_schedule and mips_avoid_hazards/mips_reorg_process_insns.
56 (mips_set_mips16_mode): Don't set flag_delayed_branch here.
57 (mips_override_options): Set flag_delayed_branch to 0.
58
59 2007-10-24 Richard Sandiford <rsandifo@nildram.co.uk>
60
61 * config/mips/mips.h (MOVE_MAX): Use UNITS_PER_WORD and describe
62 MIPS-specific implementation details.
63 (MIPS_MAX_MOVE_BYTES_PER_LOOP_ITER): New macro.
64 (MIPS_MAX_MOVE_BYTES_STRAIGHT): Likewise.
65 (MOVE_RATIO): Define to MIPS_MAX_MOVE_BYTES_STRAIGHT / UNITS_PER_WORD
66 for targets with movmemsi.
67 (MOVE_BY_PIECES_P): Define.
68 * config/mips/mips.c (MAX_MOVE_REGS, MAX_MOVE_BYTES): Delete.
69 (mips_block_move_loop): Add a bytes_per_iter argument.
70 (mips_expand_block_move): Use MIPS_MAX_MOVE_BYTES_STRAIGHT.
71 Update call to mips_block_move_loop.
72
73 2007-10-24 Michael Matz <matz@suse.de>
74
75 PR debug/33868
76 * var-tracking.c (variable_union): Don't break after one loop iteration
77 but only when a difference is found.
78 (dump_variable): Also print DECL_UID.
79
80 2007-10-24 Olga Golovanevsky <olga@il.ibm.com>
81
82 * ipa-type-escape.h: Expose function
83 is_array_access_through_pointer_and_index.
84 * ipa-type-escape.c
85 (is_array_access_through_pointer_and_index):
86 Add three new parameters. Add support of
87 POINTER_PLUS_EXPR tree code.
88
89 2007-10-24 Olga Golovanevsky <olga@il.ibm.com>
90
91 * ipa-struct-reorg.c, ipa-struct-reorg.h: New files.
92 * tree-pass.h: Add pass_ipa_struct_reorg.
93 * common.opt: Add ipa-struct-reorg flag.
94 * Makefile.in: Add ipa-strcut-reorg.o compilation.
95 * passes.c: Add pass pass_ipa_struct_reorg.
96 * params.h: Add STRUCT_REORG_COLD_STRUCT_RATIO.
97 * params.def: Add PARAM_STRUCT_REORG_COLD_STRUCT_RATIO.
98
99 2007-10-24 Ira Rosen <irar@il.ibm.com>
100
101 PR tree-optimization/33804
102 * tree-vect-transform.c (vectorizable_operation): Remove the
103 checks that the vectorization is worthwhile from the transformation
104 phase.
105
106 2007-10-24 Ira Rosen <irar@il.ibm.com>
107
108 * tree-vect-analyze.c (vect_build_slp_tree): Return false if
109 vectype cannot be determined for the scalar type.
110 (vect_analyze_slp_instance): Likewise.
111 * tree-vect-transform.c (vect_model_reduction_cost): Change the
112 return type to bool. Return false if vectype cannot be determined
113 for the scalar type.
114 (vect_get_constant_vectors): Return false if vectype cannot be
115 determined for the scalar type.
116 (get_initial_def_for_induction, vect_get_vec_def_for_operand,
117 get_initial_def_for_reduction, vect_create_epilog_for_reduction,
118 vectorizable_reduction): Likewise.
119
120 2007-10-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
121
122 * config.gcc: For a FreeBSD target, parse the value of ${target}
123 to determine the value of FBSD_MAJOR, instead of adding an
124 explicit check for every possible FreeBSD major version.
125
126 2007-10-23 Uros Bizjak <ubizjak@gmail.com>
127
128 PR rtl-optimization/33846
129 * combine.c (simplify_shift_const_1) [NOT]: Skip vector modes.
130
131 2007-10-23 Dorit Nuzman <dorit@il.ibm.com>
132
133 PR tree-optimization/33860
134 * tree-vect-transform.c (vect_analyze_data_ref_access): Don't allow
135 interleaved accesses in case the dr is inside the inner-loop during
136 outer-loop vectorization.
137
138 2007-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
139
140 * doc/rtl.texi (Flags): Fix MEM_SCALAR_P entry.
141 Document MEM_POINTER. Replace mentions of "integrated"
142 field with "return_val". Delete outdated stuff.
143
144 2007-10-23 David Edelsohn <edelsohn@gnu.org>
145
146 * config/rs6000/rs6000.c (rs6000_override_options): Set
147 rs6000_altivec_abi on AIX.
148 (conditional_register_usage): Set VR20:31 fixed on AIX.
149
150 2007-10-23 Richard Guenther <rguenther@suse.de>
151
152 * alias.c (get_alias_set): For INDIRECT_REFs, deal with
153 SSA_NAME pointers.
154
155 2007-10-22 Seongbae Park <seongbae.park@gmail.com>
156 David S. Miller <davem@davemloft.net>
157
158 * df-scan.c (df_get_call_refs): Mark global registers as both a
159 DF_REF_REG_USE and a non-clobber DF_REF_REG_DEF.
160
161 2007-10-22 Dorit Nuzman <dorit@il.ibm.com>
162
163 PR tree-optimization/33834
164 PR tree-optimization/33835
165 * tree-vect-analyze.c (vect_analyze_operations): RELEVANT and LIVE
166 stmts need to be checked for success seperately.
167 * tree-vect-transform.c (vectorizable_call, vectorizable_conversion):
168 Remove the check that stmt is not LIVE.
169 (vectorizable_assignment, vectorizable_induction): Likewise.
170 (vectorizable_operation, vectorizable_type_demotion): Likewise.
171 (vectorizable_type_promotion, vectorizable_load, vectorizable_store):
172 Likewise.
173 (vectorizable_live_operation): Check that op is not NULL.
174
175 2007-10-22 Janis Johnson <janis187@us.ibm.com>
176
177 * doc/invoke.texi (Optimization Options): In the summary, show
178 that the value for options -falign-jumps, -falign-labels,
179 -falign-loops, -falign-functions, -fsched-stalled-insns, and
180 -fsched-stalled-insns-dep is optional. In the summary, show that
181 -fsched-stalled-insns takes an optional argument and that
182 -fparallelize-loops takes an argument. Add opindex for several
183 optimization options, and fix typos in the opindex commands for
184 several others. In the descriptions for -fsched-stalled-insns
185 and -fsched-stalled-insns-dep, show the options with and without
186 values.
187
188 2007-10-22 Eric B. Weddington <eweddington@cso.atmel.com>
189
190 * config/avr/avr.c (avr_mcu_types): Remove ATmega603 which was never
191 produced.
192 * config/avr/avr.h (LINK_SPEC): Likewise.
193 (CRT_BINUTILS_SPECS): Likewsie.
194 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
195
196 2007-10-22 Eric Botcazou <ebotcazou@libertysurf.fr>
197
198 PR rtl-optimization/33644
199 * cfgcleanup.c: Do not include dce.h.
200 * cfgrtl.c (delete_insn_chain_and_edges): Resurrect.
201 * combine.c (distribute_notes): Delete REG_LIBCALL_ID case.
202 * dce.c (something_changed): Delete.
203 (libcall_dead_p): New predicate.
204 (delete_unmarked_insns): Use it to delete dead libcalls.
205 Deal with REG_LIBCALL and REG_RETVAL notes.
206 (prescan_libcall_for_dce): New function.
207 (prescan_insns_for_dce): Use it to deal with libcalls.
208 (mark_reg_dependencies): Do nothing special for libcalls.
209 (dce_process_block): Likewise.
210 (fast_dce): Delete unused local variable.
211 (run_fast_dce): Do not return a value.
212 * dce.h (struct df): Delete.
213 (run_fast_dce): Adjust prototype.
214 * optabs.c (libcall_id): Delete.
215 (maybe_encapsulate_block): Do not emit REG_LIBCALL_ID notes.
216 (emit_no_conflict_block): Do not look for REG_LIBCALL_ID notes.
217 * reload1.c (reload): Delete REG_LIBCALL_ID case.
218 * rtl.h (delete_insn_chain_and_edges): Resurrect prototype.
219 * see.c (see_update_relevancy): Look for REG_LIBCALL and REG_RETVAL
220 notes instead of REG_LIBCALL_ID notes.
221 * reg-notes.def (LIBCALL_ID): Delete.
222 * Makefile.in (see.o): Add dce.h dependency.
223 (cfgcleanup.o): Remove dce.h dependency.
224
225 2007-10-22 Michael Matz <matz@suse.de>
226
227 PR tree-optimization/33855
228 * tree-ssa-phiopt.c (cond_store_replacement): Handle COMPLEX_TYPE
229 and VECTOR_TYPE.
230
231 2007-10-22 Ira Rosen <irar@il.ibm.com>
232
233 PR tree-optimization/33854
234 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
235 FLOAT_EXPR to the list of promotion operations.
236
237 2007-10-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
238
239 PR target/29473
240 PR target/29493
241 * config/i386/i386.c (output_pic_addr_const): Support Intel asm syntax.
242 (print_reg): Print register prefix only with AT&T asm syntax.
243 Support pc_rtx for RIP register.
244 (print_operand_address): Use print_reg()'s pc_rtx support for RIP
245 relative addressing. Always print segment register prefix with AT&T
246 asm syntax and never with Intel asm syntax.
247 (print_operand): Suppress 'XXX PTR' prefix for BLKmode operands.
248 Fix prefix for 16-byte XFmode operands.
249 (output_addr_const_extra): Support Intel asm syntax.
250 (x86_file_start): Don't use register prefix with Intel asm syntax.
251 * config/i386/i386.md ("*zero_extendqihi2_movzbl"): Fix typo.
252 ("return_internal_long"): Fix Intel asm syntax output.
253 ("set_got_rex64"): Support Intel asm syntax.
254 ("set_rip_rex64"): Likewise.
255 ("set_got_offset_rex64"): Likewise.
256 ("*sibcall_1_rex64_v"): Print register prefix only with AT&T asm
257 syntax.
258 ("*tls_global_dynamic_64"): Likewise.
259 ("*tls_local_dynamic_base_64"): Likewise.
260 ("*load_tp_si")("*load_tp_di"): Likewise.
261 ("*add_tp_si")("*add_tp_di"): Likewise.
262 ("*tls_dynamic_lea_64"): Likewise.
263 ("*sibcall_value_1_rex64_v"): Likewise.
264 ("stack_tls_protect_set_si"): Likewise.
265 ("stack_tls_protect_set_di"): Likewise.
266 ("stack_tls_protect_test_si"): Likewise.
267 ("stack_tls_protect_test_di"): Likewise.
268 * config/i386/mmx.md ("*mov<mode>_internal_rex64"): Fix Intel asm
269 syntax output.
270 ("*movv2sf_internal_rex64"): Likewise.
271 * config/i386/cpuid.h (__cpuid): Support Intel asm syntax.
272 (__get_cpuid_max): Likewise.
273
274 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
275
276 * config/mips/mips-protos.h (mips_regno_mode_ok_for_base_p): Give
277 the STRICT_P argument type "bool" rather than "int".
278 (mips_legitimate_address_p): Likewise.
279 (fp_register_operand, lo_operand): Delete.
280 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
281 (mips_emit_scc): Rename to...
282 (mips_expand_scc): ...this.
283 (gen_conditional_branch): Rename to...
284 (mips_expand_conditional_branch): ...this.
285 (gen_conditional_move): Rename to...
286 (mips_expand_conditional_move): ...this.
287 (mips_gen_conditional_trap): Rename to...
288 (mips_expand_conditional_trap): ...this and take an rtx code instead
289 of an operands array.
290 (mips_expand_call): Give the SIBCALL_P argument type "bool"
291 rather than "int".
292 (mips_emit_fcc_reload): Rename to...
293 (mips_expand_fcc_reload): ...this.
294 (init_cumulative_args): Rename to...
295 (mips_init_cumulative_args): ...this and remove the libname argument.
296 (function_arg_advance): Rename to...
297 (mips_function_arg_advance): ...this.
298 (function_arg): Rename to...
299 (mips_function_arg): ...this and use "rtx" instead of
300 "struct rtx_def *".
301 (function_arg_boundary): Rename to...
302 (mips_function_arg_boundary): ...this.
303 (mips_expand_unaligned_load): Rename to...
304 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
305 and BITPOS arguments type "HOST_WIDE_INT".
306 (mips_expand_unaligned_store): Rename to...
307 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
308 and BITPOS arguments type "HOST_WIDE_INT".
309 (override_options): Rename to...
310 (mips_override_options): ...this.
311 (print_operand): Rename to...
312 (mips_print_operand): ...this.
313 (print_operand_address): Rename to...
314 (mips_print_operand_address): ...this.
315 (mips_output_ascii): Remove the PREFIX argument.
316 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
317 rather than "int".
318 (mips_can_use_return_insn): Return a "bool" rather than an "int".
319 (mips_function_value): Remove the FUNC argument. Use "rtx" instead
320 of "struct rtx_def *".
321 (mips_secondary_reload_class): Give the IN_P argument type "bool"
322 rather than "int".
323 (build_mips16_call_stub): Delete.
324 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
325 (mips_use_ins_ext_p): Give the second and third arguments type
326 "HOST_WIDE_INT" rather than "rtx".
327 * config/mips/mips.h: Update after the above changes. Tweak comments
328 and formatting.
329 (SECONDARY_INPUT_RELOAD_CLASS): Pass a boolean IN_P argument.
330 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
331 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
332 element type from "char" to "bool".
333 (mips_section_threshold, sym_lineno, set_noat, mips_branch_likely)
334 (mips_cpu_info_table): Delete.
335 * config/mips/mips.md: Update after the above changes. Tweak some
336 formatting.
337 * config/mips/mips-ps-3d.md: Likewise.
338 * config/mips/mips.c: Tweak comments and formatting.
339 Use NULL-like macros rather than 0 in various places.
340 (mips_section_threshold): Rename to...
341 (mips_small_data_threshold): ...this and give it an unsigned type.
342 (num_source_filenames): Remove explicit initialization.
343 (sdb_label_count): Likewise.
344 (sym_lineno): Delete.
345 (set_noat): Make static.
346 (mips_branch_likely): Likewise, and give it type "bool".
347 (mips_isa_info): Rename to...
348 (mips_isa_option_info): ...this.
349 (mips_flag_delayed_branch): Rename to...
350 (mips_base_delayed_branch): ...this.
351 (mips_split_addresses): Delete.
352 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
353 element type from "char" to "bool".
354 (mips_regno_to_class): Add an explicit array size.
355 (mips16_flipper): Change from type "int" to type "bool".
356 (mips_comp_type_attributes): Remove redundant FUNCTION_TYPE check.
357 (mips_tls_operand_p): Rename to...
358 (mips_tls_symbol_p): ...this.
359 (mips_global_symbol_p): Remove redundant "const".
360 (mips_offset_within_alignment_p): Simplify.
361 (mips_regno_mode_ok_for_base_p): Change the name of the last argument
362 to STRICT_P and give it type bool.
363 (mips_valid_base_register_p): Likewise.
364 (mips_classify_address): Likewise.
365 (mips_legitimate_address_p): Likewise.
366 (mips16_unextended_reference_p): Take the offset as an
367 "unsigned HOST_WIDE_INT" rather than an "rtx". Simplify.
368 (mips_const_insns): Use IN_RANGE.
369 (mips_force_temporary): Remove an unnecessary copy_rtx.
370 (mips16_gp_pseudo_reg): Simplify.
371 (mips_split_symbol): Remove an unnecessary copy_rtx.
372 (mips_legitimize_tls_address): Only create registers if we need them.
373 (mips_legitimize_address): Use mips_split_plus.
374 (mips_move_integer): Swap DEST and TEMP arguments. Rename local
375 variable COST to NUM_OPS.
376 (mips_legitimize_move): Use gen_lowpart.
377 (mips_rewrite_small_data): Rename the OP parameter to PATTERN.
378 (m16_check_op): Use IN_RANGE.
379 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
380 (mips_split_doubleword_move): Pass booleans to mips_subword.
381 (mips_output_move): Store the mode in a local variable.
382 Explicitly assert that this function does not deal with
383 MFLO and MFHI. Use SMALL_OPERAND_UNSIGNED. Make order of
384 cases more consistent.
385 (mips_relational_operand_ok_p): Rename to...
386 (mips_int_order_operand_ok_p): ...this.
387 (mips_canonicalize_comparison): Rename to...
388 (mips_canonicalize_int_order_test): ...this.
389 (mips_emit_int_relational): Rename to...
390 (mips_emit_int_order_test): ...this. Store the mode in a local
391 variable.
392 (mips_reverse_fp_cond_p): Rename to...
393 (mips_reversed_fp_cond): ...this.
394 (mips_emit_compare): Make the order of the statements more consistent.
395 (mips_emit_scc): Rename to...
396 (mips_expand_scc): ...this.
397 (gen_conditional_branch): Rename to...
398 (mips_expand_conditional_branch): ...this.
399 (gen_conditional_move): Rename to...
400 (mips_expand_conditional_move): ...this. Build the condition
401 separately from the main pattern.
402 (mips_gen_conditional_trap): Rename to...
403 (mips_expand_conditional_trap): ...this and take an rtx code instead
404 of an operands array. Simplify.
405 (init_cumulative_args): Rename to...
406 (mips_init_cumulative_args): ...this. Use memset rather than a
407 copy from a zeroed static. Use prototype_p and stdarg_p.
408 (mips_arg_info): Rename to...
409 (mips_get_arg_info): ...this and put the INFO argument first.
410 (function_arg): Rename to...
411 (mips_function_arg): ...this and use "rtx" instead of
412 "struct rtx_def *". Only split structures into chunks if
413 TARGET_HARD_FLOAT, rather than checking !TARGET_SOFT_FLOAT on
414 a chunk-by-chunk basis. Use SCALAR_FLOAT_TYPE_P instead of a
415 comparison with REAL_TYPE. Rename local variable REG to REGNO
416 and make it unsigned.
417 (function_arg_advance): Rename to...
418 (mips_function_arg_advance): ...this.
419 (function_arg_boundary): Rename to...
420 (mips_function_arg_boundary): ...this.
421 (mips_pad_arg_upward): Use SCALAR_INT_MODE_P instead of a comparison
422 with MODE_INT.
423 (mips_fpr_return_fields): Use SCALAR_FLOAT_TYPE_P instead of a
424 comparison with REAL_TYPE.
425 (mips_function_value): Remove the FUNC argument. Rename local
426 variable UNSIGNEDP to UNSIGNED_P.
427 (mips_return_in_memory): Use IN_RANGE.
428 (mips_setup_incoming_varargs): Pass a boolean rather than an int
429 to FUNCTION_ARG_ADVANCE.
430 (mips_gimplify_va_arg_expr): Rename local variable INDIRECT
431 to INDIRECT_P. Remove a redundant mips_abi check. Only calculate
432 SIZE and RSIZE if needed.
433 (mips16_stub): Rename FPRET to FP_RET_P and give it type "bool"
434 rather than "int".
435 (build_mips16_function_stub): Rename to...
436 (mips16_build_function_stub): ...this.
437 (build_mips16_call_stub): Rename to...
438 (mips16_build_call_stub): ...this. Make static, and return a
439 "bool" rather than an "int". Rename the ARG_SIZE argument to
440 ARGS_SIZE. Rename the local variable FPRET to FP_RET_P and give
441 it type "bool". Use "jr" rather than "j". Use XNEW. Simplify.
442 (mips_load_call_address): Give the SIBCALL_P argument type "bool"
443 rather than "int".
444 (mips_expand_call): Likewise. Assert that MIPS16 calls via stubs
445 are not sibling ones.
446 (mips_emit_fcc_reload): Rename to...
447 (mips_expand_fcc_reload): ...this.
448 (mips_get_unaligned_mem): Give the WIDTH and BITPOS arguments type
449 "HOST_WIDE_INT".
450 (mips_expand_unaligned_load): Rename to...
451 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
452 and BITPOS arguments type "HOST_WIDE_INT". Remove redundant
453 SUBREG_BYTE check.
454 (mips_expand_unaligned_store): Rename to...
455 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
456 and BITPOS arguments type "HOST_WIDE_INT".
457 (mips_use_ins_ext_p): Rename second and third arguments to WIDTH
458 and BITPOS and give them type "HOST_WIDE_INT" rather than "rtx".
459 Use IN_RANGE.
460 (mips_init_split_addresses): Replace with...
461 (mips_split_addresses_p): ...this new function.
462 (mips_init_relocs): Check mips_split_addresses_p () rather than
463 mips_split_addresses. Always initialize mips_split_p with booleans.
464 (print_operand_reloc): Rename to...
465 (mips_print_operand_reloc): ...this. Use a gcc_assert rather than
466 a fatal_error.
467 (print_operand): Rename to...
468 (mips_print_operand): ...this.
469 (print_operand_address): Rename to...
470 (mips_print_operand_address): ...this. Use GP_REG_FIRST.
471 (mips_in_small_data_p): Simplify.
472 (mips_output_ascii): Remove the PREFIX argument and "register"
473 keywords. Use the STRING parameter directly and cast to
474 "unsigned char".
475 (mips16e_collect_argument_save_p): Use IN_RANGE.
476 (mips_function_has_gp_insn): Simplify.
477 (mips_set_return_address): Use BITSET_P.
478 (mips_restore_gp): Use a separate statement to pick the base
479 register.
480 (mips_output_function_prologue): Use a local FRAME variable.
481 (mips_save_reg): Pass booleans to mips_subword.
482 (mips_expand_prologue): Use a local FRAME variable. Use
483 cprestore_size to detect when .cprestore is needed.
484 (mips_restore_reg): Use GP_REG_FIRST.
485 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
486 rather than "int". Use local FRAME and REGNO variables.
487 (mips_can_use_return_insn): Return a "bool" rather than an "int".
488 (mips_secondary_reload_class): Give the IN_P argument type "bool"
489 rather than "int".
490 (mips_linked_madd_p): Rename arguments to OUT_INSN and IN_INSN.
491 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
492 (vr4130_swap_insns_p): Rename local variables to DEP1_P and DEP2_P.
493 (mips_74k_agen_init): Assume INSN satisfies USEFUL_INSN_P.
494 (mips_variable_issue): Do nothing unless INSN satisfies USEFUL_INSN_P.
495 (builtin_description): Rename to...
496 (mips_builtin_description): ...this.
497 (mips_bdesc): Rename to...
498 (mips_ps_bdesc): ...this.
499 (sb1_bdesc): Rename to...
500 (mips_sb1_bdesc): ...this.
501 (dsp_bdesc): Rename to...
502 (mips_dsp_bdesc): ...this.
503 (dsp_32only_bdesc): Rename to...
504 (mips_dsp_32only_bdesc): ...this.
505 (bdesc_map): Rename to...
506 (mips_bdesc_map): ...this.
507 (bdesc_arrays): Rename to...
508 (mips_bdesc_arrays): ...this.
509 (mips_prepare_builtin_arg): Rename OP to OPNO and ARGNUM to ARGNO.
510 Tweak error message.
511 (mips_expand_builtin_direct): Rename HAS_TARGET to HAS_TARGET_P.
512 Rename local variables I and J to OPNO and ARGNO respectively.
513 Assert that the number of arguments is no more than the number of
514 input operands.
515 (mips_expand_builtin_compare): Use an array of arguments rather
516 than an array of operands. Assert that the number of operands is
517 as expected.
518 (add_constant): Rename to...
519 (mips16_add_constant): ...this. Use XNEW.
520 (dump_constants_1): Rename to...
521 (mips16_emit_constants_1): ...this. Use ALL_SCALAR_FIXED_POINT_MODE_P.
522 (dump_constants): Rename to...
523 (mips16_emit_constants): ...this.
524 (mips_sim_wait_reg, mips_sim_record_set): Use END_REGNO.
525 (mips_set_mips16_mode): Don't call mips_init_split_addresses.
526 Assign mips16_p to was_mips16_p.
527 (mips_parse_cpu): Tweak warning message.
528 (override_options): Rename to...
529 (mips_override_options): ...this. Move the mips_cost initialization
530 out of the "shared with GAS" block. Quote option names in error
531 messages.
532 (mips_conditional_register_usage): Make local variable REGNO unsigned.
533 (mips_order_regs_for_local_alloc): Remove register keyword.
534
535 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
536
537 * system.h (IN_RANGE): Cast each argument individually.
538
539 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
540
541 * config/mips/mips.c (mips_set_mips16_mode) Say sorry for hard-float
542 MIPS16 code unless using o32 or o64.
543
544 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
545
546 * config/mips/mips.c (mips_cannot_change_mode_class): Don't check
547 for modes smaller than 4 bytes.
548 * config/mips/mips.md (*movhi_internal, *movqi_internal): Remove
549 FPR alternatives.
550
551 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
552
553 * config/mips/mips-protos.h (mips_output_aligned_bss): Delete.
554 * config/mips/linux.h (BSS_SECTION_ASM_OP): Delete.
555 (ASM_OUTPUT_ALIGNED_BSS): Delete.
556 * config/mips/mips.c (mips_output_aligned_bss): Delete.
557
558 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
559
560 * config/mips/mips.c (mips_function_ok_for_sibcall): Only forbid
561 sibling calls to "mips16" functions if the function satisfies
562 const_call_insn_operand.
563
564 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
565
566 * config/mips/mips.c (mips_va_start): Fix types in calls
567 to build_int_cst.
568
569 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
570
571 * config/mips/mips.c (mips_rtx_costs): Only recognize reciprocals
572 if ISA_HAS_FP4.
573
574 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
575
576 * config/mips/mips.h (ISA_HAS_LDC1_SDC1): New macro.
577 * config/mips/mips.c (mips_split_64bit_move_p): Use ISA_HAS_LDC1_SDC1
578 instead of checking mips_isa.
579
580 2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
581
582 * doc/invoke.texi (-mpaired-single): Don't say that the option
583 requires 64-bit code.
584 * config/mips/mips-protos.h (mips_modes_tieable_p): Declare.
585 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): New macro.
586 (ISA_HAS_NMADD_NMSUB): Add a mode argument. Return true for
587 V2SF if ISA_MIPS32R2.
588 (MODES_TIEABLE_P): Use mips_modes_tieable_p.
589 * config/mips/mips.c (mips_rtx_costs): Pass a mode argument
590 to ISA_HAS_NMADD_NMSUB.
591 (mips_split_doubleword_move): Handle V2SF.
592 (mips_modes_tieable_p): New function.
593 (override_options): Report a warning rather than an error when
594 -mpaired-single is used on ISAs that don't support it; use
595 ISA_HAS_PAIRED_SINGLE to check that case.
596 * config/mips/mips.md (MOVE64): New mode iterator. Replace DI
597 and DF move splitters with a single MOVE64 splitter, thereby adding
598 a V2SF splitter too.
599 (SPLITF): Add TARGET_DOUBLE_FLOAT conditions to DI and DF.
600 Add a TARGET_FLOAT64 condition to TF. Add V2SF to the iterator.
601 (HALFMODE): Add V2SF.
602 (*nmadd<mode>, *nmadd<mode>_fastmath, *nmsub<mode>)
603 (*nmsub<mode>_fastmath): Add a mode argument to ISA_HAS_NMADD_NMSUB.
604 (movv2sf_hardfloat_64bit): Tweak ordering of conditions.
605 (movv2sf_hardfloat_32bit): New pattern.
606 (load_low<mode>, load_high<mode>, store_word<mode>): Remove
607 TARGET_DOUBLE_FLOAT conditions.
608
609 2007-10-20 Jakub Jelinek <jakub@redhat.com>
610
611 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Point
612 saved CR2 offset to low 32 bits of regs->ccr rather than the whole
613 64-bit register in 64-bit libgcc.
614
615 2007-10-20 Eric B. Weddington <eweddington@cso.atmel.com>
616
617 * config/avr/avr.c (avr_mcu_types): Add at90pwm2b, at90pwm3b.
618 * config/avr/avr.h (LINK_SPEC): Likewise.
619 (CRT_BINUTILS_SPECS): Likewsie.
620 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
621
622 2007-10-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
623
624 * doc/invoke.texi (Warning Options): Move -w, -Werror, -Werror=
625 and -Wfatal-errors together.
626
627 2007-10-20 Alan Modra <amodra@bigpond.net.au>
628
629 PR target/33812
630 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Revert 2007-05-16
631 change for vrsave, ie restore after frame pop.
632
633 2007-10-19 David S. Miller <davem@davemloft.net>
634
635 * config/sparc/niagara2.md: Fix copyright notice.
636
637 2007-10-19 Sebastian Pop <sebastian.pop@amd.com>
638
639 PR tree-optimization/23820
640 PR tree-optimization/24309
641 PR tree-optimization/33766
642 * testsuite/gcc.dg/tree-ssa/pr23820.c: New.
643 * testsuite/gcc.dg/tree-ssa/pr24309.c: New.
644 * testsuite/gcc.dg/tree-ssa/pr33766.c: New.
645 * testsuite/gcc.dg/tree-ssa/ltrans-3.c: XFAILed.
646 * tree-loop-linear.c (perfect_loop_nest_depth): New.
647 (linear_transform_loops): Use perfect_loop_nest_depth.
648 * lambda-code.c (perfect_nest_p): Outer loops in perfect nests
649 should have a single condition: their exit.
650
651 2007-10-19 Richard Guenther <rguenther@suse.de>
652
653 PR middle-end/33816
654 PR middle-end/32921
655 * stor-layout.c (layout_type): Assert that aggregates do not
656 have their alias sets set.
657 * alias.c (get_alias_set): Return alias set zero for incomplete
658 types, return the alias set of the element for incomplete array
659 types, but do not remember these.
660
661 2007-10-19 Richard Guenther <rguenther@suse.de>
662
663 Revert
664 2007-10-19 Richard Guenther <rguenther@suse.de>
665
666 PR middle-end/32921
667 * tree.c (build_array_type): Do not re-layout unbound array
668 types.
669
670 2007-10-19 Richard Guenther <rguenther@suse.de>
671
672 PR middle-end/32921
673 * tree.c (build_array_type): Do not re-layout unbound array
674 types.
675
676 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
677
678 * config/mips/mips.c (mips_canonicalize_comparison): Check
679 mips_relational_operand_ok_p before trying to rewrite the test.
680 Only calculate PLUS_ONE if needed.
681 (mips_emit_int_relational): Don't call mips_relational_operand_ok_p
682 here.
683
684 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
685
686 * config/mips/mips.c (mips16e_build_save_restore): Fix *OFFSET_PTR
687 calculation.
688
689 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
690
691 * config/mips/mips.c (mips_call_tls_get_addr): Don't claim that
692 the call uses the incoming value of $2.
693
694 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
695
696 * config/mips/mips.c (mips_call_tls_get_addr): Use gen_const_mem
697 rather then gen_rtx_MEM.
698 (mips_setup_incoming_varargs): Use gen_frame_mem rather than
699 gen_rtx_MEM.
700 (mips_set_return_address): Likewise.
701 (mips_restore_gp): Likewise.
702
703 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
704
705 * config/mips/mips.c (gpr_mode): Delete.
706 (mips16e_build_save_restore): Use word_mode and UNITS_PER_WORD
707 instead of gpr_mode.
708 (mips_for_each_saved_reg): Likewise.
709 (mips_expand_prologue, mips_expand_epilogue): Likewise.
710 (override_options): Don't initialize gpr_mode.
711 * config/mips/mips.md (eh_return): Use word_mode instead of gpr_mode.
712
713 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
714
715 * config/mips/mips.c (mips_hard_regno_nregs): Put the UNITS_PER_WORD
716 case last.
717 (mips_class_max_nregs): Calculate the smallest consituent register
718 size and use that to determine an upper bound on the number of
719 registers.
720
721 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
722
723 * config/mips/mips.c (mips16_copy_fpr_return_value): New function,
724 split out from...
725 (mips_expand_epilogue): ...here.
726 (mips_mdebug_abi_name): New function, split out from...
727 (mips_file_start): ...here.
728 (mips_hard_regno_mode_ok_p): New function, split out from...
729 (override_options): ...here.
730 (mips_expand_builtin_1): New function, split out from...
731 (mips_expand_buitin): ...here. Abort if we don't recognize
732 the function.
733
734 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
735
736 * config/mips/mips.c (build_mips16_function_stub): Load the
737 target address into $1 before transfering the arguments.
738 Don't use ".set noreorder".
739 (build_mips16_call_stub): Likewise.
740
741 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
742
743 * config/mips/mips.c (mips_output_32bit_xfer): New function.
744 (mips_output_64bit_xfer): Likewise.
745 (mips16_fp_args): Rename to...
746 (mips_output_args_xfer): ...this and replace the FROM_FP_P argument
747 with a DIRECTION argument. Use mips_output_32bit_xfer and
748 mips_output_64bit_xfer.
749 (build_mips16_function_stub): Update accordingly.
750 (mips16_fpret_double): Delete.
751 (build_mips16_call_stub): Update after above changes.
752 Use mips_output_32bit_xfer. Use mips_output_64bit_xfer instead
753 of mips16_fpret_double. Use GP_REG_RETURN.
754
755 2007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
756
757 * config/mips/mips.c (mips16_fp_args): Remove the FILE argument and
758 use asm_out_file instead.
759 (build_mips16_function_stub): Likewise.
760 (build_mips16_call_stub, mips_output_function_prologue): Update
761 accordingly.
762
763 2007-10-18 David S. Miller <davem@davemloft.net>
764
765 Add Niagara-2 support.
766 * doc/invoke.texi: Document -m{cpu,tune}=niagara2.
767 * config.gcc: Add niagara2 to cpu and tune lists for sparc.
768 * config/sparc/sparc.md (sparc_cpu_attr): Add niagara2.
769 (include): Add inclusion of niagara2.md
770 * config/sparc/sparc.c (niagara2_costs): New.
771 (sparc_override_options): Add niagara2 entry to cpu_default[]
772 and cpu_table[]. Set align_functions to 32 on Niagara2. Use
773 niagara2_costs when PROCESSOR_NIAGARA2. Handle Niagara2 for
774 PARAM_SIMULTANEOUS_PREFETCHES and PARAM_L1_CACHE_LINE_SIZE.
775 (sparc_initialize_trampoline): Handle niagara2 like niagara.
776 (sparc64_initialize_trampoline): Likewise.
777 (sparc_use_sched_lookahead): Likewise.
778 (sparc_issue_rate): Likewise.
779 * config/sparc/sol2-bi.h: Handle TARGET_CPU_niagara2 and
780 mcpu=niagara2
781 * config/sparc/sparc.h (TARGET_CPU_niagara2): Define.
782 ({CPP,ASM}_CPU64_DEFAULT_SPEC): Set appropriately for
783 TARGET_CPU_niagara2.
784 (PROCESSOR_NIAGARA2): New.
785 (REGISTER_MOVE_COST): Handle PROCESSOR_NIAGARA2.
786 (BRANCH_COST): Likewise.
787 * config/sparc/linux64.h: Handle TARGET_CPU_niagara2.
788 * config/sparc/sol2.h: Likewise.
789 * config/sparc/niagara2.md: New file.
790
791 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
792
793 * config/mips/mips.c (mips_frame_info): Remove gp_reg_size and
794 and fp_reg_size.
795 (mips_compute_frame_info): Remove associated code.
796 (mips16e_build_save_restore): Check num_fp instead of fp_reg_size.
797
798 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
799
800 * config/mips/mips-protos.h (compute_frame_size): Delete.
801 * config/mips/mips.h: Update comments.
802 * config/mips/mips.c (mips_frame_info): Remove initialized.
803 (compute_frame_size): Rename to...
804 (mips_compute_frame_info): ...this and make static. Remove the
805 SIZE argument and return no value. Remove the setting of initialized.
806 Update rest of file accordingly.
807 (mips_set_return_address): Don't call compute_frame_size.
808 (mips_can_use_return_insn): Don't check df_regs_ever_live_p (31).
809 Don't call compute_frame_size.
810
811 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
812
813 * config/mips/mips-protos.h (mips_frame_pointer_required): Declare.
814 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Use
815 mips_hard_frame_pointer_required.
816 (CAN_ELIMINATE): Rely on FRAME_POINTER_REQUIRED to check for
817 large MIPS16 frames.
818 * config/mips/mips.c (mips_frame_pointer_required): New function.
819
820 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
821
822 * config/mips/mips.c (mips_frame_info): Add arg_pointer_offset
823 and hard_frame_pointer_offset.
824 (mips_debugger_offset): Use hard_frame_pointer_offset.
825 (mips16e_collect_argument_save_p): Likewise.
826 (compute_frame_size): Initialize arg_pointer_offset and
827 hard_frame_pointer_offset.
828 (mips_initial_elimination_offset): Use them.
829 (mips_output_function_prologue): Use hard_frame_pointer_offset.
830 (mips_expand_prologue, mips_expand_epilogue): Likewise.
831
832 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
833
834 * config/mips/mips.h (STARTING_FRAME_OFFSET): Remove rtl
835 profiling code.
836 * config/mips/mips.c (mips_frame_info): Give num_gp and num_fp type
837 "unsigned int" rather than "int" and put them with the other
838 register-related fields. Put expanded comments above fields
839 rather than to their right.
840 (mips16e_mask_registers): Replace the GP_REG_SIZE_PTR argument
841 with a NUM_REGS_PTR argument.
842 (mips16e_save_restore_pattern_p): Update accordingly.
843 (compute_frame_size): Clarify frame diagram. Rewrite.
844
845 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
846
847 * config/mips/mips-ftypes.def: New file.
848 * config/mips/mips.c (MIPS_FTYPE_NAME1, MIPS_FTYPE_NAME2)
849 (MIPS_FTYPE_NAME3, MIPS_FTYPE_NAME4): New macros.
850 (mips_function_type): Redefine using mips-ftypes.def.
851 (dsp_bdesc): Use POINTER rather than PTR in the MIPS_*_FTYPE_* names.
852 (mips_builtin_vector_type): New function.
853 (MIPS_ATYPE_VOID, MIPS_ATYPE_INT, MIPS_ATYPE_POINTER, MIPS_ATYPE_SI)
854 (MIPS_ATYPE_USI, MIPS_ATYPE_DI, MIPS_ATYPE_SF, MIPS_ATYPE_DF)
855 (MIPS_ATYPE_V2SF, MIPS_ATYPE_V2HI, MIPS_ATYPE_V4QI, MIPS_FTYPE_ATYPES1)
856 (MIPS_FTYPE_ATYPES2, MIPS_FTYPE_ATYPES3, MIPS_FTYPE_ATYPES4): New
857 macros.
858 (mips_build_function_type): New function.
859 (mips_init_builtins): Use it to create types lazily.
860
861 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
862
863 * config/mips/mips.h (set_volatile): Delete.
864 * config/mips/mips.c (set_volatile): Delete.
865 (mips_print_operand_punctuation): New function, split out from
866 print_operand. Remove '%{', '%}', '%~', '%&' and '%!'.
867 Use the same character ordering in the code and the comments.
868 Use a recursive call to handle '*'. Abort on unknown characters.
869 (mips_init_print_operand_punct): New function, split out from
870 override_options.
871 (mips_print_int_branch_condition): New function, split out from
872 print_operand. Use GET_RTX_NAME. Use output_operand_lossage
873 to report unexpected codes.
874 (mips_print_float_branch_condition): New function, split out from
875 print_operand. Use output_operand_lossage to report unexpected codes.
876 (print_operand): Rework to use a case statement. Use the
877 same letter ordering in the code and the comments. Use
878 output_operand_lossage to report unexpected codes and
879 reverse_condition to handle inverted branch conditions.
880 (override_options): Use mips_init_print_operand_punct.
881
882 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
883
884 * config/mips/mips.h: Move variable declarations to end of file and
885 enclose them all in #ifndef USED_FOR_TARGET.
886 * config/mips/mips.c: Reorder functions into more logical groups,
887 and so that callees appear before callers. Put the targetm
888 initializer at the end of the file. Remove forward static
889 declarations where possible.
890 (mips_init_builtins): Add "static" to definition.
891 (mips_expand_builtin, mips_mode_rep_extended): Likewise.
892
893 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
894
895 * config/mips/mips.c (TARGET_MIN_ANCHOR_OFFSET): Delete.
896 (TARGET_MAX_ANCHOR_OFFSET): Delete.
897 (mips_cannot_force_const_mem): Don't check TARGET_HAVE_TLS.
898 (mips_set_mips16_mode): Initialize min_anchor_offset and
899 max_anchor_offset directly to constants.
900
901 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
902
903 * config/mips/mips.c: Delete trailing whitespace.
904
905 2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
906
907 * config/mips/mips.c (mips_expand_call): Use FAKE_CALL_REGNO.
908 (mips_avoid_hazard): Allow multiple sets for HAZARD_DELAY,
909 and pick the first.
910 * config/mips/mips.md (load_call<mode>): Don't make the unspec
911 depend on FAKE_CALL_REGNO. Set FAKE_CALL_REGNO.
912
913 2007-10-18 David Daney <ddaney@avtrex.com>
914
915 * config/mips/linux-unwind.h (mips_fallback_frame_state): Use new
916 reg_offset variable to calculate register locations.
917
918 2007-10-18 Richard Guenther <rguenther@suse.de>
919
920 * tree-ssa.c (uid_ssaname_map_eq): New function.
921 (uid_ssaname_map_has): Likewise.
922 (init_tree_ssa): Allocate default_defs as uid_ssaname map.
923 * tree-flow.h (struct gimple_df): Make default_defs a
924 uid_ssaname map.
925 * tree-dfa.c (gimple_default_def): Deal with it.
926 (set_default_def): Likewise.
927
928 2007-10-18 Richard Guenther <rguenther@suse.de>
929
930 * tree-flow.h (struct gimple_df): Make referenced_vars
931 a uid_decl_map.
932 (uid_decl_map_eq): Declare.
933 (uid_decl_map_hash): Likewise.
934 * tree-ssa.c (uid_decl_map_eq): New function.
935 (uid_decl_map_hash): Likewise.
936 (init_tree_ssa): Make referenced_vars a uid_decl_map.
937 * tree-flow-inline.h (first_referenced_var): Deal with
938 the referenced_vars representation change.
939 (next_referenced_var): Likewise.
940 * tree-dfa.c (referenced_var_lookup): Likewise.
941 (referenced_var_check_and_insert): Likewise.
942 (remove_referenced_var): Likewise.
943
944 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
945
946 * config/mips/mips.c (mips_dwarf_register_span): New.
947 (TARGET_DWARF_REGISTER_SPAN): Define.
948
949 2007-10-18 Chen Liqin <liqin@sunnorth.com.cn>
950
951 * config.gcc : update score-*-elf(extra_objs).
952 * config/score/mac.md : Remove.
953 * config/score/misc.md : Remove.
954 * config/score/score7.md : Remove.
955 * config/score/score-mdaux.h : Remove.
956 * config/score/score-mdaux.c : Remove.
957 * config/score/score-version.h : Remove.
958 * config/score/score-generic.md : New.
959 * config/score/score3.h : New.
960 * config/score/score3.c : New.
961 * config/score/score7.h : New.
962 * config/score/score7.c : New.
963 * config/score/mul-div.S : add flush_cache score3 support.
964 * config/score/elf.h : Fix some typos.
965 * config/score/score.md : merge score3 and score7 pattern.
966 * config/score/score.c : use to seperate which target it used.
967 * config/score/score.h : use to seperate the target macro.
968 * config/score/score.opt : remove -mmac option , add -mscore3,
969 -mscore3d and -march OPTION support.
970
971 2007-10-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
972
973 * cfgexpand.c (expand_stack_vars): Add checking to make sure
974 that the offset of a variable is not greater than the size
975 of the paritition.
976
977 2007-10-17 Anatoly Sokolov <aesok@post.ru>
978
979 * config/avr/avr.c (avr_mcu_types): Add support for atmega48p,
980 atmega88p, atmega168p and atmega328p devices.
981 * config/avr/avr.h (LINK_SPEC): (Ditto.).
982 (CRT_BINUTILS_SPECS): (Ditto.).
983 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
984
985 2007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
986
987 * sched-ebb.c: Surround code with '#ifdef INSN_SCHEDULING'.
988 * ddg.c: Ditto.
989 * sched-deps.c: Ditto. Remove nested #ifdef's INSN_SCHEDULING.
990 * sched-int.h: Surround declarations with '#ifdef INSN_SCHEDULING'.
991 (print_insn): Move declaration to ...
992 * rtl.h (print_insn): ... here.
993
994 2007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
995
996 * config/m68k/m68k.h (m68k_sched_cpu, m68k_sched_attr_opx_type,
997 m68k_sched_attr_opy_type, m68k_sched_attr_size, m68k_sched_attr_op_mem,
998 m68k_sched_branch_type): Move declarations to ...
999 * config/m68/m68k-protos.h: ... here.
1000
1001 2007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
1002
1003 * genattrtab.c (main): Rearrange output of insn-attrtab.c headers.
1004
1005 2007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
1006
1007 * config/avr/avr.c (avr_mcu_types): Add attiny48.
1008 * config/avr/avr.h (LINK_SPEC): Likewise.
1009 (CRT_BINUTILS_SPECS): Likewsie.
1010 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1011
1012 2007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
1013
1014 * config/avr/avr.c (avr_mcu_types): Add attiny43u.
1015 * config/avr/avr.h (CRT_BINUTILS_SPECS): Likewsie.
1016 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1017
1018 2007-10-17 Uros Bizjak <ubizjak@gmail.com>
1019
1020 PR middle-end/33794
1021 * reg-stack.c (move_for_stack_reg): Swap input argument of
1022 UNSPEC_TAN insn to the top of the stack.
1023
1024 2007-10-17 Uros Bizjak <ubizjak@gmail.com>
1025
1026 PR target/32961
1027 * config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLLWI128,
1028 IX86_BUILTIN_PSLLDI128, BUILTIN_PSLLQI128, IX86_BUILTIN_PSRAWI128,
1029 IX86_BUILTIN_PSRADI128, IX86_BUILTIN_PSRLWI128,
1030 IX86_BUILTIN_PSRLDI128, IX86_BUILTIN_PSRLQI128]: Do not require
1031 immediate shift value.
1032 * config/i386/emmintrin.h (_mm_slli_epi16, _mm_slli_epi32,
1033 _mm_slli_epi64, _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16,
1034 _mm_srli_epi32, _mm_srli_epi64): Remove 'const' from count argument.
1035 Remove macros for !__OPTIMIZE__ case.
1036
1037 2007-10-17 Daniel Berlin <dberlin@dberlin.org>
1038
1039 * tree-ssa-structalias.c (rewrite_constraints): Don't test for
1040 directness anymore.
1041 (perform_var_substitution): Only DFS from real nodes. Don't test
1042 for directness.
1043 (unite_pointer_equivalences): Fix broken test.
1044
1045 2007-10-17 Alan Modra <amodra@bigpond.net.au>
1046
1047 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Correct
1048 altivec sp_offset. Rearrange sp_offset assignments to
1049 correspond to stack adjustments. Use frame_reg_rtx for
1050 SPE register restores. Correct SPE stack adjustment.
1051
1052 2007-10-17 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1053
1054 * builtins.c (gimplify_va_arg_expr): Use inform for help message.
1055 * toplev.c (check_global_declaration_1): Use appropriate warning
1056 option instead of unnamed warning.
1057 * stor-layout.c (layout_decl): Likewise.
1058 * c-typeck.c (build_conditional_expr): Likewise.
1059 (build_compound_expr): Fix wrong comment.
1060 (build_binary_op): Use appropriate warning option instead of
1061 unnamed warning.
1062 * cfgexpand.c (tree_expand_cfg): Likewise.
1063 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1064 * tree-cfg.c (remove_useless_stmts_warn_notreached): Likewise.
1065 (execute_warn_function_return): Likewise.
1066 * stmt.c (warn_if_unused_value): Likewise.
1067
1068 2007-10-16 Eric B. Weddington <eweddington@cso.atmel.com>
1069
1070 * config/avr/avr.c (avr_mcu_types): Add at90pwm216, at90pwm316.
1071 * config/avr/avr.h (LINK_SPEC): Likewise and remove regex for
1072 similar devices.
1073 (CRT_BINUTILS_SPECS): Likewsie.
1074 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1075
1076 2007-10-16 Amruth Laxman <amruth.laxman@nsn.com>
1077
1078 PR target/33594
1079 * config/sparc/sparc.h (LOCAL_ALIGNMENT): Define.
1080
1081 2007-10-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1082
1083 * dce.c (init_dce): Only initialize the obstacks for the fast pass.
1084 (fini_dce): Only release them for the fast pass.
1085 (end_ud_dce): Delete.
1086 (rest_of_handle_ud_dce): Do not modify df_in_progress.
1087 Call fini_dce instead of end_ud_dce.
1088 (rest_of_handle_fast_dce): Do not modify df_in_progress.
1089 (run_fast_df_dce): Reset df_in_progress to false on exit.
1090
1091 2007-10-16 Paolo Bonzini <bonzini@gnu.org>
1092 Maxim Kuvyrkov <maxim@codesourcery.com>
1093
1094 * target.h (unspec_may_trap_p): New target hook.
1095 * target-def.h (TARGET_UNSPEC_MAY_TRAP_P): New macro.
1096 * targhooks.c (default_unspec_may_trap_p): Default implementation of
1097 the hook.
1098 * targhooks.h (default_unspec_may_trap_p): Declare it.
1099 * doc/tm.texi (TARGET_UNSPEC_MAY_TRAP_P): Document new hook.
1100 * rtlanal.c (may_trap_p_1): Use new hook. Make global.
1101 * rtl.h (may_trap_p_1): Declare.
1102
1103 * config/ia64/ia64.c (ia64_unspec_may_trap_p): New function to
1104 override default hook implementation.
1105 (TARGET_UNSPEC_MAY_TRAP_P): Override default implementation of the
1106 hook.
1107
1108 2007-10-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1109
1110 * doc/invoke.texi (Wextra): Move it just after Wall, list the
1111 options enabled by Wextra and mention Wuninitialized.
1112
1113 2007-10-15 Nigel Stephens <nigel@mips.com>
1114
1115 * config/mips/mips.h (LOCAL_ALIGNMENT): Define.
1116
1117 2007-10-15 Jakub Jelinek <jakub@redhat.com>
1118
1119 PR tree-optimization/33136
1120 * opts.c (decode_options): Don't enable flag_ipa_type_escape.
1121
1122 2007-10-15 Alexandre Oliva <aoliva@redhat.com>
1123
1124 PR tree-optimization/33735
1125 PR tree-optimization/33572
1126 * tree-inline.c (update_ssa_across_abnormal_edges): Revert
1127 2007-10-09's change.
1128 * except.c (duplicate_eh_regions): Don't look for prev_try
1129 beyond ERT_ALLOWED_EXCEPTIONS with an empty list.
1130
1131 2007-10-15 Alexandre Oliva <aoliva@redhat.com>
1132
1133 PR middle-end/33706
1134 * tree-inline.c (copy_bb): Use bsi_replace to replace a
1135 __builtin_va_arg_pack-containing call stmt.
1136
1137 2007-10-15 Razya Ladelsky <razya@il.ibm.com>
1138
1139 * matrix-reorg.c (gate_matrix_reorg): Don't comment out whole
1140 program flag.
1141
1142 2007-10-15 Jakub Jelinek <jakub@redhat.com>
1143
1144 PR tree-optimization/33619
1145 * tree-ssa-ter.c (is_replaceable_p): Return false for all
1146 calls.
1147
1148 2007-10-15 David Edelsohn <edelsohn@gnu.org>
1149
1150 * config.gcc (powerpc-ibm-aix5*): Install altivec.h.
1151
1152 2007-10-15 Richard Guenther <rguenther@suse.de>
1153
1154 * fold-const.c (extract_array_ref): Remove.
1155 (fold_comparison): Handle POINTER_PLUS_EXPR with the
1156 generic address expression comparison folding. Remove
1157 the folding that used extract_array_ref.
1158
1159 2007-10-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1160
1161 PR target/33133
1162 * haifa-sched.c (process_insn_forw_deps_be_in_spec): Check if
1163 speculation type of insn can be changed before trying to do that.
1164
1165 2007-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1166
1167 * dse.c (struct insn_info): Add 'frame_read' field.
1168 (scan_insn): For the call to a const function, set frame_read if
1169 reload has been run.
1170 If the insn reads the frame, kill the frame related stores.
1171 (scan_reads_nospill): Likewise.
1172
1173 2007-10-14 Jason Merrill <jason@redhat.com>
1174
1175 * tree-eh.c (optimize_double_finally): Don't assume that the
1176 cleanup we're duplicating is only one statement.
1177
1178 2007-10-14 Kazu Hirata <kazu@codesourcery.com>
1179
1180 * config/fixed-bit.c, config/i386/cpuid.h, config/i386/i386.c,
1181 config/i386/i386.md, config/i386/sse.md, function.c, jump.c,
1182 modulo-sched.c, ra-conflict.c, toplev.c, tree-eh.c, tree-sra.c,
1183 tree-ssa-dse.c, tree-vect-analyze.c, tree-vect-patterns.c,
1184 tree-vect-transform.c: Fix comment typos.
1185 * doc/extend.texi: Fix a typo.
1186
1187 * c-common.h: Remove the prototype for c_expand_body.
1188 * c-tree.h: Remove the prototype for c_disregard_inline_limits.
1189 * tree.h: Remove the prototype for fold_build_call_expr.
1190
1191 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN):
1192 Remove.
1193 * c-tree.h: Remove the prototype for c_cannot_inline_tree_fn.
1194
1195 2007-10-13 David Edelsohn <edelsohn@gnu.org>
1196
1197 * config/rs6000/aix53.h: New file.
1198 * config/rs6000/aix{41,43,51,52}.h (TARGET_ALTIVEC): Define to 0.
1199 (TARGET_ALTIVEC_ABI): Same.
1200 * config/rs6000/aix.h (TARGET_ALTIVEC): Delete.
1201 (TARGET_ALTIVEC_ABI): Delete.
1202 * config.gcc (powerpc-ibm-aix5*): Rename to aix5.2. Add new
1203 stanza defaulting to aix5.3.
1204
1205 2007-10-12 Nathan Froyd <froydnj@codesourcery.com>
1206
1207 * config/i386/i386.md (SI_REG, DI_REG): New constants.
1208 (strmov): Use defined constants.
1209 (cmpstrnsi): Likewise.
1210 * config/i386/i386.c (decide_alg): Use defined constants.
1211 (ix86_expand_strlen): Likewise.
1212
1213 2007-10-12 Richard Sandiford <rsandifo@nildram.co.uk>
1214
1215 * dse.c (find_shift_sequence): Reinstate "<= UNITS_PER_WORD" condition.
1216 * var-tracking.c (micro_operation_def): Update comment on u.loc.
1217 (mode_for_reg_attrs, var_lowpart): New functions.
1218 (add_uses): Consider recording a lowpart of LOC for MO_USE.
1219 (add_stores): Likewise MO_SET and MO_COPY. If the source of a set
1220 or copy is known, set LOC to the SET that performs the set, instead
1221 of the destination.
1222 (find_src_status, find_src_set_src): Remove LOC parameter.
1223 Replace INSN with the source value.
1224 (compute_bb_dataflow, emit_notes_in_bb): Check for a SET u.loc when
1225 handling MO_SET and MO_COPY. Update the calls to find_src_status
1226 and find_src_set_src.
1227
1228 2007-10-12 Nathan Froyd <froydnj@codesourcery.com>
1229
1230 PR 11001
1231 * config/i386/i386.md (strmov): Check for esi and edi usage.
1232 * config/i386/i386.c (decide_alg): Check whether we can use a
1233 rep prefix and adjust algorithm choice accordingly.
1234 (ix86_expand_strlen): Check for eax, ecx, and edi usage.
1235
1236 2007-10-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1237
1238 * config/c4x/c4x.md (mulqi3, mulhi3): Use optab_libfunc.
1239
1240 2007-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
1241
1242 * global.c (build_insn_chain): Formatting fixes.
1243
1244 2007-10-12 Richard Guenther <rguenther@suse.de>
1245
1246 * tree-ssa-forwprop.c (forward_propagate_into_cond): For
1247 combining both operands require either both have single uses
1248 or combining to a constant.
1249
1250 2007-10-12 Richard Guenther <rguenther@suse.de>
1251
1252 PR middle-end/26198
1253 * tree-ssa-forwprop.c (can_propagate_from): Do not propagate from
1254 a rhs with side-effects or which is a load.
1255 (forward_propagate_into_cond): Also try combining both operands.
1256
1257 2007-10-12 Uros Bizjak <ubizjak@gmail.com>
1258
1259 PR tree-optimization/33742
1260 * tree-vect-transform.c (vectorizable_operation): Return false
1261 if get_vectype_for_scalar_type for scalar_dest can't be determined.
1262 (vectorizable_call): Same for rhs_type and lhs_type.
1263
1264 2007-10-12 Jakub Jelinek <jakub@redhat.com>
1265
1266 PR tree-optimization/33645
1267 * tree-ssa-live.c (mark_all_vars_used): Add data argument,
1268 pass it to walk_tree.
1269 (mark_all_vars_used_1): Pass data through to mark_all_vars_used.
1270 When calling set_is_used on a VAR_DECL, if data is not NULL and
1271 its DECL_UID is in the bitmap, call mark_all_vars_used on its
1272 DECL_INITIAL after clearing the bit in bitmap.
1273 (remove_unused_locals): Adjust mark_all_vars_used callers.
1274 Instead of removing unused global vars from unexpanded_var_list
1275 immediately record them in bitmap, call mark_all_vars_used on
1276 all used global vars from unexpanded_var_list and only purge
1277 global vars that weren't found used even during that step.
1278
1279 2007-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1280
1281 * gthr-posix.h (__gthread_active_init): Create detached instead of
1282 joinable thread when testing whether threads are active on hppa-hpux.
1283 * gthr-posix95.h (__gthread_active_init): Likewise.
1284
1285 2007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
1286
1287 PR middle-end/33676
1288 * global.c (build_insn_chain): Include insn that occur between
1289 basic blocks.
1290
1291 2007-10-11 Tom Tromey <tromey@redhat.com>
1292
1293 * gengtype-yacc.y: Delete.
1294
1295 2007-10-11 Uros Bizjak <ubizjak@gmail.com>
1296
1297 * config/i386/i386.md (AX_REG, DX_REG, CX_REG): New constants.
1298 * config/i386/i386.c (ix86_function_arg_regno_p, function_arg_32,
1299 function_value_32, function_value_64, function_value_ms_64,
1300 setup_incoming_varargs_64, ix86_expand_prologue, ix86_expand_call,
1301 legitimize_tls_address, x86_this_parameter, x86_output_mi_thunk):
1302 Use new constants.
1303
1304 2007-10-11 Richard Guenther <rguenther@suse.de>
1305
1306 * gcse.c (hash_scan_set): If the next nonnote insn is in
1307 a different basic block insert the set.
1308
1309 2007-10-11 Richard Guenther <rguenther@suse.de>
1310
1311 PR middle-end/33724
1312 * tree-cfg.c (one_pointer_to_useless_type_conversion_p): New function.
1313 (verify_gimple_expr): Use it to verify pointer-to types for
1314 ADDR_EXPRs.
1315
1316 2007-10-11 Richard Guenther <rguenther@suse.de>
1317
1318 PR c/33726
1319 * c-typeck.c (build_array_ref): Do not strip qualifiers from
1320 the array element type.
1321
1322 2007-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1323
1324 PR rtl-optimization/33638
1325 * dse.c (struct insn_info): Remove 'stack_read' field,
1326 add 'stack_pointer_based' field.
1327 (record_store): For a store with non-constant base, record
1328 whether it is stack pointer based.
1329 (scan_insn): For the call to a const function, remove stack
1330 pointer based stores from the list of local active stores.
1331 (scan_reads_nospill): Delete code dealing with const functions.
1332
1333 2007-10-10 Peter Bergner <bergner@vnet.ibm.com>
1334
1335 * ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables
1336 to HOST_WIDE_INT.
1337 (conflict_p, set_conflict, set_conflicts): Likewise.
1338 * global.c (global_alloc): Likewise.
1339 * ra.h: Update prototypes.
1340
1341 2007-10-10 Wolfgang Gellerich <gellerich@de.ibm.com>
1342
1343 * opth-gen.awk: Fixed generation of comment stating the origin
1344 of options.h
1345
1346 2007-10-10 Kazu Hirata <kazu@codesourcery.com>
1347
1348 Revert:
1349 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1350 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
1351 and '%}', respectively.
1352
1353 Revert:
1354 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1355 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
1356 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
1357 and '}'.
1358 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
1359 meant to be output.
1360
1361 Revert:
1362 2007-10-07 Kazu Hirata <kazu@codesourcery.com>
1363 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
1364 syntax for ASSEMBLER_DIALECT.
1365 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
1366
1367 2007-10-10 Revital Eres <eres@il.ibm.com>
1368
1369 * modulo-sched.c (check_nodes_order): Dump the final order of
1370 the nodes.
1371 (get_sched_window): Add dump info.
1372 (calculate_order_params): Dump order params of the nodes.
1373
1374 2007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1375
1376 PR middle-end/33669
1377 * ra-conflict.c (record_one_conflict_between_regnos,
1378 set_conflicts_for_earlyclobber, global_conflicts): Improved logging.
1379 (global_conflicts): Enhanced incorrect check.
1380
1381 2007-10-09 Geoffrey Keating <geoffk@apple.com>
1382
1383 * dwarf2out.c (output_call_frame_info): FDEs are always emitted
1384 if flag_exceptions is not set.
1385 * config/darwin.c (darwin_emit_unwind_label): Rewrite to use
1386 assemble_name rather than incorrectly emulating it.
1387
1388 * doc/extend.texi (Deprecated Features): Mention that <? and >? and
1389 friends are removed from G++.
1390
1391 2007-10-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1392
1393 * c-opts.c (c_common_handle_option): -Wnontemplate-friend,
1394 -Wwrite-strings and -Wmultichar are enabled by default, so Wall
1395 enabling them is redundant. Don't check two times for
1396 c_dialect_cxx.
1397
1398 2007-10-09 H.J. Lu <hongjiu.lu@intel.com>
1399
1400 * ra-conflict.c (record_one_conflict_between_regnos): Revert
1401 the last change.
1402 (set_conflicts_for_earlyclobber): Likewise.
1403 (global_conflicts): Likewise.
1404
1405 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1406
1407 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
1408 and '%}', respectively.
1409
1410 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1411
1412 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
1413 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
1414 and '}'.
1415 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
1416 meant to be output.
1417
1418 2007-10-09 Richard Guenther <rguenther@suse.de>
1419
1420 PR middle-end/33692
1421 * gimplify.c (canonicalize_component_ref): Honor qualifiers
1422 of referenced structure and component.
1423
1424 2007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1425
1426 PR middle-end/33669
1427 * ra-conflict.c (record_one_conflict_between_regnos,
1428 set_conflicts_for_earlyclobber, global_conflicts): Improved
1429 logging.
1430 (global_conflicts): Removed incorrect check.
1431
1432 2007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
1433
1434 PR tree-optimization/33615
1435 * tree-ssa-pre.c (compute_avail): Don't call make_values_for_stmt
1436 if the statement might throw. Fix formatting.
1437
1438 2007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
1439
1440 PR tree-optimization/33615
1441 * tree-ssa-loop-im.c (movement_possibility): Return MOVE_IMPOSSIBLE
1442 if the rhs might throw.
1443
1444 2007-10-09 Jan Hubicka <jh@suse.cz>
1445
1446 * invoke.texi (align-threshold, align-loop-iterations): Document.
1447 * final.c: Include cfgloop.h, params.h
1448 (compute_alignments): Dump decisions and compare them with loop
1449 structure; honor given parameters.
1450 (pass_compute_alignments): New dump file.
1451 * params.def (PARAM_ALIGN_THRESHOLD, PARAM_ALIGN_LOOP_ITERATIONS): New.
1452 * Makefile.in (final.o): Add dependency on cfgloop.h and params.h
1453
1454 2007-10-09 James E. Wilson <wilson@specifix.com>
1455
1456 PR tree-optimization/33655
1457 PR middle-end/22156
1458 * tree-sra.c (bitfield_overlaps_p): When fld->element is INTEGER_CST,
1459 convert it to bitsizetype before size_binop call.
1460
1461 2007-10-09 Alexandre Oliva <aoliva@redhat.com>
1462
1463 PR tree-optimization/33572
1464 * tree-inline.c (update_ssa_across_abnormal_edges): Tolerate
1465 the absence of a corresponding edge from the exit block.
1466
1467 2007-10-09 Alexandre Oliva <aoliva@redhat.com>
1468
1469 PR middle-end/22156
1470 * tree-sra.c (instantiate_element): Use BYTES_BIG_ENDIAN for
1471 bit-field layout.
1472 (sra_build_assignment): Likewise. Set up mask depending on
1473 precision, not type.
1474 (sra_build_bf_assignment): Use BYTES_BIG_ENDIAN. Don't overflow
1475 computing bit masks.
1476 (sra_build_elt_assignment): Don't view-convert from signed to
1477 unsigned.
1478 (sra_explode_bitfield_assignment): Use bit-field type if
1479 possible. Use BYTES_BIG_ENDIAN.
1480
1481 2007-10-08 Alexandre Oliva <aoliva@redhat.com>
1482
1483 PR middle-end/22156
1484 * tree-sra.c (scalarize_lsdt): Fix thinko in testing whether
1485 the original stmt can throw.
1486 (sra_build_bf_assignment): Fix type mismatch when applying negated
1487 mask.
1488
1489 2007-10-08 Geoffrey Keating <geoffk@apple.com>
1490
1491 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register
1492 '#pragma mark' to be executed at preprocessing time.
1493
1494 2007-10-08 Ollie Wild <aaw@google.com>
1495
1496 * varasm.c (compare_constant): Removed call to
1497 lang_hooks.expand_constant.
1498 (copy_constants): Removed call to lang_hooks.expand_constant.
1499 (compute_reloc_for_constant): Removed call to
1500 lang_hooks.expand_constant.
1501 (output_addressed_constants): Removed call to
1502 lang_hooks.expand_constant.
1503 (constructor_static_from_elts_p): Removed call to
1504 lang_hooks.expand_constant.
1505 (output_constant): Removed calls to lang_hooks.expand_constant.
1506 * langhooks.h (struct lang_hooks): Removed field expand_constant.
1507 * langhooks-def.h (lhd_return_tree): Removed.
1508 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
1509 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
1510 * langhooks.c (lhd_return_tree): Removed.
1511
1512 2007-10-08 Mark Shinwell <shinwell@codesourcery.com>
1513
1514 * combine.c (setup_incoming_promotions): Ensure that
1515 arguments that have not undergone mode promotions do not
1516 incorrectly get marked as being sign- or zero-extended.
1517
1518 2007-10-08 Richard Guenther <rguenther@suse.de>
1519
1520 PR middle-end/33693
1521 PR middle-end/33695
1522 PR middle-end/33697
1523 * fold-const.c (fold_binary): Use correct types in folding
1524 of a * (1 << b) to (a << b). Likewise for ~A & ~B to ~(A | B)
1525 and building of RROTATE_EXPR.
1526
1527 2007-10-08 Richard Guenther <rguenther@suse.de>
1528
1529 PR middle-end/33691
1530 PR middle-end/33694
1531 PR middle-end/33696
1532 * fold-const.c (fold_binary): Use the correct types when
1533 folding (A | CST1) & CST2 to (A & CST2) | (CST1 & CST2).
1534 (fold_binary): Use the correct types when folding
1535 (-A) - B to (-B) - A.
1536 (fold_unary): Use the correct types when folding ~(X).
1537
1538 2007-10-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1539
1540 * doc/invoke.texi (Wall): fix formatting issues.
1541
1542 2007-10-07 Richard Sandiford <rsandifo@nildram.co.uk>
1543
1544 * simplify-rtx.c (simplify_binary_operation_1): Canonicalize
1545 truncated shift counts.
1546
1547 2007-10-07 Kazu Hirata <kazu@codesourcery.com>
1548
1549 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
1550 syntax for ASSEMBLER_DIALECT.
1551 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
1552
1553 2007-10-06 Eric Botcazou <ebotcazou@adacore.com>
1554 Nathan Froyd <froydnj@codesourcery.com>
1555
1556 * dwarf2out.c (dwarf2out_frame_init): Check for DWARF2_FRAME_INFO
1557 when determining whether to record INCOMING_RETURN_ADDR_RTX.
1558
1559 2007-10-06 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 Revert:
1562 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
1563
1564 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
1565 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
1566 the function, temporarily point the debug interface to the null one.
1567
1568 2007-10-06 Alexandre Oliva <aoliva@redhat.com>
1569
1570 PR tree-optimization/33655
1571 PR middle-end/22156
1572 * tree-sra.c (bitfield_overlaps_p): Handle array and complex
1573 elements.
1574
1575 2007-10-06 Alexandre Oliva <aoliva@redhat.com>
1576
1577 PR tree-optimization/33572
1578 * tree-cfg.c (verify_stmts): Check for missing PHI defs.
1579 * tree-inline.c (update_ssa_across_eh_edges): Renamed to...
1580 (update_ssa_across_abnormal_edges): ... this. Set slots in the
1581 return PHI node.
1582 (copy_edges_for_bb): Handle nonlocal label edges.
1583 (make_nonlocal_label_edges): Deleted.
1584 (optimize_inline_calls): Don't call it.
1585
1586 2007-10-05 Hans-Peter Nilsson <hp@axis.com>
1587
1588 * gthr-single.h: Revert last change.
1589
1590 2007-10-05 Michael Matz <matz@suse.de>
1591
1592 PR middle-end/33667
1593 * lower-subreg.c (decompose_multiword_subregs): Use
1594 validate_unshare_change().
1595
1596 2007-10-05 Peter Bergner <bergner@vnet.ibm.com>
1597
1598 * ra-conflict.c: Include "sparseset.h".
1599 (conflicts): Change to HOST_WIDEST_FAST_INT.
1600 (allocnos_live): Redefine variable as a sparseset.
1601 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, GET_ALLOCNO_LIVE): Delete macros.
1602 (allocno_row_words): Removed global variable.
1603 (partial_bitnum, max_bitnum, adjacency_pool, adjacency): New variables.
1604 (CONFLICT_BITNUM, CONFLICT_BITNUM_FAST): New defines.
1605 (conflict_p, set_conflict_p, set_conflicts_p): New functions.
1606 (record_one_conflict_between_regnos): Cache allocno values and reuse.
1607 Use set_conflict_p.
1608 (record_one_conflict): Update uses of allocnos_live to use
1609 the sparseset routines. Use set_conflicts_p.
1610 (mark_reg_store): Likewise.
1611 (set_reg_in_live): Likewise.
1612 (global_conflicts): Update uses of allocnos_live.
1613 Use the new adjacency list to visit an allocno's neighbors
1614 rather than iterating over all possible allocnos.
1615 Call set_conflicts_p to setup conflicts rather than adding
1616 them manually.
1617 * global.c: Comments updated.
1618 (CONFLICTP): Delete define.
1619 (regno_compare): New function. Add prototype.
1620 (global_alloc): Sort the allocno to regno mapping according to
1621 which basic blocks the regnos are referenced in. Modify the
1622 conflict bit matrix to a compressed triangular bitmatrix.
1623 Only allocate the conflict bit matrix and adjacency lists if
1624 we are actually going to allocate something.
1625 (expand_preferences): Use conflict_p. Update uses of allocnos_live.
1626 (prune_preferences): Use the FOR_EACH_CONFLICT macro to visit an
1627 allocno's neighbors rather than iterating over all possible allocnos.
1628 (mirror_conflicts): Removed function.
1629 (dump_conflicts): Iterate over regnos rather than allocnos so
1630 that all dump output will be sorted by regno number.
1631 Use the FOR_EACH_CONFLICT macro.
1632 * ra.h: Comments updated.
1633 (conflicts): Update prototype to HOST_WIDEST_FAST_INT.
1634 (partial_bitnum, max_bitnum, adjacency, adjacency_pool): Add prototypes.
1635 (ADJACENCY_VEC_LENGTH, FOR_EACH_CONFLICT): New defines.
1636 (adjacency_list_d, adjacency_iterator_d): New types.
1637 (add_neighbor, adjacency_iter_init, adjacency_iter_done,
1638 adjacency_iter_next, regno_basic_block): New static inline functions.
1639 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Removed define.
1640 (conflict_p): Add function prototype.
1641 * sparseset.h, sparseset.c: New files.
1642 * Makefile.in (OBJS-common): Add sparseset.o.
1643 (sparseset.o): New rule.
1644
1645 2007-10-05 Richard Guenther <rguenther@suse.de>
1646
1647 PR middle-end/33666
1648 * fold-const.c (fold_unary): Do not fold (long long)(int)ptr
1649 to (long long)ptr.
1650
1651 2007-10-05 Michael Matz <matz@suse.de>
1652
1653 PR inline-asm/33600
1654 * function.c (match_asm_constraints_1): Check for input
1655 being used in the outputs.
1656
1657 2007-10-05 Richard Guenther <rguenther@suse.de>
1658
1659 * tree-cfg.c (verify_gimple_expr): Accept OBJ_TYPE_REF.
1660
1661 2007-10-05 Richard Sandiford <rsandifo@nildram.co.uk>
1662
1663 PR target/33635
1664 * config/mips/mips.c (mips_register_move_cost): Rewrite to use
1665 subset checks. Make the cost of FPR -> FPR moves depend on
1666 mips_mode_ok_for_mov_fmt_p.
1667
1668 2007-10-04 Doug Kwan <dougkwan@google.com>
1669
1670 * gthr-posix.h (__gthread_cond_broadcast, __gthread_cond_wait,
1671 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1672 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
1673 support of conditional variables.
1674 * gthr-posix95.h (__gthread_cond_broadcast, __gthread_cond_wait,
1675 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1676 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
1677 support of conditional variables.
1678 * gthr-single.h (__gthread_cond_broadcast, __gthread_cond_wait,
1679 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1680 conditional variables.
1681 * gthr.h: Update comments to document new interface.
1682
1683 2007-10-04 Geoffrey Keating <geoffk@apple.com>
1684
1685 * cgraphunit.c (cgraph_build_static_cdtor): Don't set
1686 DECL_IGNORED_P.
1687
1688 2007-10-04 Anatoly Sokolov <aesok@post.ru>
1689
1690 * config/avr/avr.c (expand_epilogue): Don't set RTX_FRAME_RELATED_P.
1691
1692 2007-10-04 Richard Guenther <rguenther@suse.de>
1693
1694 PR middle-end/33641
1695 * tree-cfg.c (verify_gimple_expr): Operand one of POINTER_PLUS_EXPR
1696 does not need to be of INTEGER_TYPE.
1697 (verify_gimple_2): New function split out from ...
1698 (verify_gimple_1): ... here. ICE if there was an error during
1699 verification.
1700
1701 2007-10-04 Michael Matz <matz@suse.de>
1702
1703 PR rtl-optimization/33653
1704 * dce.c (deletable_insn_p_1): Use volatile_refs_p().
1705 * dse.c (scan_insn): Same.
1706
1707 2007-10-04 Kazu Hirata <kazu@codesourcery.com>
1708
1709 * config.gcc: Remove USE_GAS for m68k targets.
1710
1711 2007-10-04 Richard Guenther <rguenther@suse.de>
1712
1713 PR tree-optimization/33627
1714 * tree-gimple.h (canonicalize_cond_expr_cond): Declare.
1715 * tree-gimple.c (canonicalize_cond_expr_cond): New function,
1716 split out from ...
1717 * tree-ssa-forwprop.c (combine_cond_expr_cond): ... here.
1718 * tree-ssa-ifcombine.c (ifcombine_iforif): Use it.
1719
1720 2007-10-04 Anatoly Sokolov <aesok@post.ru>
1721
1722 * config/avr/avr.c (commands_in_file, commands_in_prologues,
1723 commands_in_epilogues): Remove variables.
1724 (avr_file_start): Remove unneded initializations of commands_in_file,
1725 commands_in_prologues and commands_in_epilogues variables.
1726 (avr_file_end): Remove dead code.
1727
1728 2007-10-04 Kazu Hirata <kazu@codesourcery.com>
1729
1730 * config/m68k/m68k.c (m68k_output_movem): Use the MOTOROLA if
1731 MOTOROLA is to true.
1732
1733 2007-10-03 Richard Sandiford <rsandifo@nildram.co.uk>
1734
1735 PR target/33635
1736 * config/mips/mips-protos.h (mips_split_64bit_move): Rename to...
1737 (mips_split_doubleword_move): ...this.
1738 * config/mips/mips.c (mips_subword): Extend to handle 64-bit words;
1739 use natural endianness for multi-format FPR values.
1740 (mips_split_64bit_move): Rename to...
1741 (mips_split_doubleword_move): ...this and extend to 64-bit words.
1742 Use move_doubleword_fpr* patterns for moves involving FPRs.
1743 (mips_save_reg): Update the call to mips_split_64bit_move.
1744 (mips_secondary_reload_class): Return NO_REGS for any reload of a
1745 nonzero constant into an FPR if the constant can be forced to memory.
1746 * config/mips/mips.md: Update the splitter calls to
1747 mips_split_64bit_move.
1748 (UNSPEC_LOAD_DF_LOW): Rename to...
1749 (UNSPEC_LOAD_LOW): ...this.
1750 (UNSPEC_LOAD_DF_HIGH): Rename to...
1751 (UNSPEC_LOAD_HIGH): ...this.
1752 (UNSPEC_STORE_DF_HIGH): Rename to...
1753 (UNSPEC_STORE_WORD): ...this.
1754 (SPLITF): New mode iterator.
1755 (HALFMODE): New mode attribute.
1756 (movtf): New expander.
1757 (*movtf_internal): New define_insn_and_split.
1758 (move_doubleword_fpr<mode>): New expander.
1759 (load_df_low, load_df_high, store_df_high, mthc1, mfhc1): Replace
1760 with...
1761 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1762 (mfhc1<mode>): ...these more general patterns.
1763
1764 2007-10-03 Alexandre Oliva <aoliva@redhat.com>
1765
1766 * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
1767
1768 2007-10-03 Alexandre Oliva <aoliva@redhat.com>
1769
1770 * gcse.c (hash_scan_set): Insert set in insn before note at
1771 the end of basic block.
1772
1773 2007-10-03 Sebastian Pop <sebastian.pop@amd.com>
1774
1775 PR tree-optimization/33576
1776 * testsuite/gcc.dg/tree-ssa/pr33576.c: New.
1777 * tree-loop-linear.c (linear_transform_loops): Call remove_iv.
1778 * lambda.h (lambda_loopnest_to_gcc_loopnest): New parameter.
1779 (remove_iv): Declared.
1780 * lambda-code.c (remove_iv): Not static.
1781 (lambda_loopnest_to_gcc_loopnest): New parameter remove_ivs.
1782 Don't remove ivs there, save ivs in the buffer.
1783
1784 2007-10-03 Jason Merrill <jason@redhat.com>
1785
1786 PR c++/15764
1787 * tree-eh.c (same_handler_p): New fn.
1788 (optimize_double_finally): New fn.
1789 (refactor_eh_r): New fn.
1790 (refactor_eh): New fn.
1791 (pass_refactor_eh): New pass.
1792 * tree-pass.h: Declare it.
1793 * passes.c (init_optimization_passes): Add it.
1794
1795 2007-10-03 Doug Kwan <dougkwan@google.com>
1796 Richard Guenther <rguenther@suse.de>
1797
1798 PR debug/31899
1799 * dwarf2out.c (reference_to_unused): Disable sanity checking,
1800 be conservative instead.
1801
1802 2007-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1803
1804 PR fortran/26682
1805 * doc/invoke.texi (-fwhole-program): Document that Fortran
1806 doesn't support this option.
1807
1808 2007-10-02 Richard Sandiford <rsandifo@nildram.co.uk>
1809
1810 PR middle-end/33617
1811 * expr.c (expand_expr_addr_expr_1): Pass CONSTRUCTORs to
1812 expand_expr.
1813
1814 2007-10-02 David Daney <ddaney@avtrex.com>
1815
1816 * config/mips/mips.md (sync_compare_and_swap<mode>): Handle compare
1817 against constant zero.
1818 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Handle constant zero
1819 operand.
1820
1821 2007-09-02 Kenneth Zadeck <zadeck@naturalbridge.com>
1822
1823 * ra-conflict.c: New file.
1824 * ra.h: New file.
1825 * reload.c (push_reload, find_dummy_reload): Change DF_RA_LIVE
1826 usage to DF_LIVE usage.
1827 (reload): Remove reference to df_get_live_top.
1828 * rtlanal.c (subreg_nregs_with_regno): New function.
1829 * df-scan.c (df_def_record_1, df_uses_record): Add code to set
1830 DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, and DF_REF_SUBREG flags.
1831 (df_has_eh_preds): Removed.
1832 (df_bb_refs_collect, df_bb_refs_collect, df_bb_refs_collect,
1833 df_exit_block_uses_collect): Changed call from df_has_eh_preds to
1834 bb_has_eh_pred.
1835 * global.c (allocno, max_allocno, conflicts, allocno_row_words,
1836 reg_allocno, EXECUTE_IF_SET_IN_ALLOCNO_SET): Moved to ra.h
1837 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Moved to ra-conflicts.c.
1838 (regs_set, record_one_conflict, record_conflicts, mark_reg_store,
1839 mark_reg_clobber, mark_reg_conflicts, mark_reg_death): Deleted.
1840 (global_alloc): Turn off rescanning insns after call to
1841 global_conflicts and added call to set_preferences.
1842 (global_conflicts): Moved to ra-alloc.c.
1843 (set_preferences_1, set_preferences): New function.
1844 (mirror_conflicts): Changed types for various variables.
1845 (mark_elimination): Change DF_RA_LIVE
1846 usage to DF_LIVE usage.
1847 (build_insn_chain): Rewritten from scratch and made local.
1848 (print_insn_chain, print_insn_chains): New functions.
1849 (dump_conflicts): Do not print conflicts for fixed_regs.
1850 (rest_of_handle_global_alloc): Turn off insn rescanning.
1851 * hard-reg-set.h: Fixed comment.
1852 * local-alloc.c (update_equiv_regs): Change DF_RA_LIVE
1853 usage to DF_LIVE usage and delete refs to TOP sets.
1854 (block_alloc): Mark regs as live if they are in the artificial
1855 defs at top of block.
1856 (find_stack_regs): New function.
1857 (rest_of_handle_local_alloc): Changed urec problem to live
1858 problem and do not turn off df rescanning.
1859 * df.h (DF_UREC, DF_UREC_BB_INFO, DF_LIVE_TOP, DF_RA_LIVE_IN,
1860 DF_RA_LIVE_TOP, DF_RA_LIVE_OUT, df_urec_bb_info, df_urec,
1861 df_urec_add_problem, df_urec_get_bb_info, df_has_eh_preds): Removed.
1862 (DF_CHAIN, DF_NOTE, DF_CHAIN): Renumbered.
1863 (DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, DF_REF_SUBREG): New
1864 fields in df_ref_flags. The rest have been renumbered.
1865 * init-regs.c (initialize_uninitialized_regs): Enhanced debugging
1866 at -O1.
1867 * rtl.h (subreg_nregs_with_regno): New function.
1868 * df-problems.c: (df_get_live_out, df_get_live_in,
1869 df_get_live_top): Removed reference to DF_RA_LIVE.
1870 (df_lr_reset, df_lr_transfer_function, df_live_free_bb_info,
1871 df_live_alloc, df_live_reset, df_live_local_finalize,
1872 df_live_free): Make top set only if different from in set.
1873 (df_lr_top_dump, df_live_top_dump): Only print top set if
1874 different from in set.
1875 (df_lr_bb_local_compute): Removed unnecessary check.
1876 (df_urec_problem_data, df_urec_set_bb_info, df_urec_free_bb_info,
1877 df_urec_alloc, df_urec_mark_reg_change, earlyclobber_regclass,
1878 df_urec_check_earlyclobber, df_urec_mark_reg_use_for_earlyclobber,
1879 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
1880 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
1881 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
1882 df_urec_top_dump, df_urec_bottom_dump, problem_UREC,
1883 df_urec_add_problem): Removed.
1884 (df_simulate_fixup_sets): Changed call from df_has_eh_preds to
1885 bb_has_eh_pred.
1886 * Makefile.in (ra-conflict.o, ra.h): New dependencies.
1887 * basic_block.h (bb_has_abnormal_pred): New function.
1888 * reload1.c (compute_use_by_pseudos): Change DF_RA_LIVE
1889 usage to DF_LIVE usage.
1890
1891 2007-10-02 Revital Eres <eres@il.ibm.com>
1892
1893 * config/rs6000/predicates.md (easy_vector_constant): Return false
1894 for 750CL paired vectors.
1895 * config/rs6000/paired.md (movv2sf_paired): Fix move of easy
1896 vector constant.
1897 (vec_initv2sf): Add new description.
1898 (vconcatsf): Likewise.
1899 * config/rs6000/rs6000-protos.h: Declare paired_expand_vector_init.
1900 * config/rs6000/rs6000.c (paired_expand_vector_init): New function.
1901
1902 2007-10-01 Alexandre Oliva <aoliva@redhat.com>
1903
1904 * tree-ssa-sink.c (sink_code_in_bb): Don't stop sinking after
1905 sinking the last stmt in a BB.
1906
1907 2007-10-01 Alexandre Oliva <aoliva@redhat.com>
1908
1909 PR middle-end/22156
1910 * tree-sra.c (struct sra_elt): Add in_bitfld_block.
1911 (sra_hash_tree): Handle BIT_FIELD_REFs.
1912 (sra_elt_hash): Don't hash bitfld blocks.
1913 (sra_elt_eq): Skip them in parent compares as well. Handle
1914 BIT_FIELD_REFs.
1915 (build_element_name_1): Handle BIT_FIELD_REFs.
1916 (instantiate_element): Propagate nowarn from parents. Create
1917 BIT_FIELD_REF for variables that are widened by scalarization.
1918 Gimple-zero-initialize all bit-field variables that are not
1919 part of parameters that are going to be scalarized on entry.
1920 (instantiate_missing_elements_1): Return the sra_elt.
1921 (canon_type_for_field): New.
1922 (try_instantiate_multiple_fields): New. Infer widest possible
1923 access mode from decl or member type, but clip it at word
1924 size, and only widen it if a field crosses an alignment
1925 boundary.
1926 (instantiate_missing_elements): Use them.
1927 (generate_one_element_ref): Handle BIT_FIELD_REFs.
1928 (scalar_bitfield_p): New.
1929 (sra_build_assignment): Optimize assignments from scalarizable
1930 BIT_FIELD_REFs. Use BITS_BIG_ENDIAN to determine shift
1931 counts.
1932 (REPLDUP): New.
1933 (sra_build_bf_assignment): New. Optimize assignments to
1934 scalarizable BIT_FIELD_REFs.
1935 (sra_build_elt_assignment): New. Optimize BIT_FIELD_REF
1936 assignments to full variables.
1937 (generate_copy_inout): Use the new macros and functions.
1938 (generate_element_copy): Likewise. Handle bitfld differences.
1939 (generate_element_zero): Don't recurse for blocks. Use
1940 sra_build_elt_assignment.
1941 (generate_one_element_init): Take elt instead of var. Use
1942 sra_build_elt_assignment.
1943 (generate_element_init_1): Adjust.
1944 (bitfield_overlap_info): New struct.
1945 (bitfield_overlaps_p): New.
1946 (sra_explode_bitfield_assignment): New. Adjust widened
1947 variables to account for endianness.
1948 (sra_sync_for_bitfield_assignment): New.
1949 (scalarize_use): Re-expand assignment to/from scalarized
1950 BIT_FIELD_REFs. Explode or sync needed members for
1951 BIT_FIELD_REFs accesses or assignments. Use REPLDUP.
1952 (scalarize_copy): Use REPLDUP.
1953 (scalarize_ldst): Move assert before dereference. Adjust EH
1954 handling.
1955 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
1956
1957 2007-10-01 Paolo Bonzini <bonzini@gnu.org>
1958
1959 * simplify-rtx.c (comparison_result, simplify_relational_operation_1):
1960 Rename CR_* constants to CMP_*. Fix spacing.
1961
1962 2007-10-01 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1963
1964 PR other/33585
1965 * Makefile.in (build_html_dir/gccinstall): gccinstall.texi needs
1966 to be processed with the special script doc/install.texi2html.
1967
1968 2007-09-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1969
1970 * doc/invoke.texi (Wall): List the options enabled by Wall.
1971 (Wstrict-aliasing): Add missing @option.
1972
1973 2007-09-30 Richard Sandiford <rsandifo@nildram.co.uk>
1974
1975 * config/mips/mips.c (mips_split_64bit_move): Use gen_rtx_REG_offset
1976 rather than gen_lowpart to change a register from DImode to DFmode.
1977 (mips_cannot_change_mode_class): Only allow FPRs to change mode if
1978 both FROM and TO are integer modes that are no bigger than 4 bytes.
1979 (mips_mode_ok_for_mov_fmt_p): New function.
1980 (mips_preferred_reload_class): Use it instead of FLOAT_MODE_P.
1981 (mips_secondary_reload_class): Tweak formatting and comments.
1982 Use reg_class_subset_p instead of direct comparisons with
1983 classes. Only allow direct FPR<->FPR moves for modes that
1984 satisfy mips_mode_ok_for_mov_fmt_p. Only allow loads and stores
1985 for 4- and 8-byte types. Handle reloads in which X is an FPR.
1986 * config/mips/mips.md (*movdi_gp32_fp64): Remove f<-f alternative.
1987 (*movdi_64bit): Likewise.
1988 (*movsi_internal): Likewise.
1989 (*movhi_internal): Likewise.
1990 (*movqi_internal): Likewise.
1991
1992 2007-09-30 Diego Novillo <dnovillo@google.com>
1993
1994 PR 33593
1995 * tree-ssa-ter.c (is_replaceable_p): Return false if STMT may
1996 throw an exception.
1997
1998 2007-09-30 Uros Bizjak <ubizjak@gmail.com>
1999
2000 PR tree-optimization/33597
2001 * tree-vect-analyze.c (vect_build_slp_tree): Check if optab handler
2002 for LSHIFT_EXPR and RSHIFT_EXPR is available for vec_mode.
2003
2004 2007-09-28 Uros Bizjak <ubizjak@gmail.com>
2005
2006 * config/i386/i386.c (ix86_expand_move): Use can_create_pseudo_p ()
2007 instead of variants of (!reload_in_progress && !reload_completed).
2008 (x86_expand_vector_move): Ditto.
2009
2010 2007-09-28 Ollie Wild <aaw@google.com>
2011
2012 Revert
2013 2007-09-27 Ollie Wild <aaw@google.com>
2014
2015 * varasm.c (compare_constant): Removed call to
2016 lang_hooks.expand_constant.
2017 (copy_constants): Removed call to lang_hooks.expand_constant.
2018 (compute_reloc_for_constant): Removed call to
2019 lang_hooks.expand_constant.
2020 (output_addressed_constants): Removed call to
2021 lang_hooks.expand_constant.
2022 (constructor_static_from_elts_p): Removed call to
2023 lang_hooks.expand_constant.
2024 (output_constant): Removed calls to lang_hooks.expand_constant.
2025 * langhooks.h (struct lang_hooks): Removed field expand_constant.
2026 * langhooks-def.h (lhd_return_tree): Removed.
2027 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
2028 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
2029 * langhooks.c (lhd_return_tree): Removed.
2030
2031 2007-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2032
2033 PR target/33347
2034 * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
2035 argument to gen_selb.
2036
2037 2007-09-28 Chao-ying Fu <fu@mips.com>
2038
2039 * libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.
2040 * doc/libgcc.texi (Fixed-point fractional library routines):
2041 Fix typos for neg and cmp functions.
2042
2043 2007-09-28 Michael Matz <matz@suse.de>
2044
2045 PR rtl-optimization/33552
2046 * function.c (match_asm_constraints_1): Check for overlap in
2047 inputs and replace all occurences.
2048
2049 2007-09-28 Richard Sandiford <rsandifo@nildram.co.uk>
2050
2051 * config/mips/mips.c (override_options): Fix comment typo.
2052
2053 2007-09-28 Jie Zhang <jie.zhang@analog.com>
2054
2055 * config.gcc (bfin*-linux-uclibc*): Set extra_parts
2056 to "crtbegin.o crtbeginS.o crtend.o crtendS.o".
2057 * config/bfin/t-bfin-linux (crti.o): Don't build.
2058 (crtn.o): Likewise.
2059 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
2060 * config/bfin/t-bfin-uclinux (crti.o): Don't build.
2061 (crtn.o): Likewise.
2062 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
2063
2064 2007-09-27 Ollie Wild <aaw@google.com>
2065
2066 * varasm.c (compare_constant): Removed call to
2067 lang_hooks.expand_constant.
2068 (copy_constants): Removed call to lang_hooks.expand_constant.
2069 (compute_reloc_for_constant): Removed call to
2070 lang_hooks.expand_constant.
2071 (output_addressed_constants): Removed call to
2072 lang_hooks.expand_constant.
2073 (constructor_static_from_elts_p): Removed call to
2074 lang_hooks.expand_constant.
2075 (output_constant): Removed calls to lang_hooks.expand_constant.
2076 * langhooks.h (struct lang_hooks): Removed field expand_constant.
2077 * langhooks-def.h (lhd_return_tree): Removed.
2078 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
2079 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
2080 * langhooks.c (lhd_return_tree): Removed.
2081
2082 2007-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2083
2084 PR middle-end/33436
2085 * expr.c (emit_group_load_1): Split constant double when destination
2086 length is half source length.
2087
2088 2007-09-27 Richard Sandiford <rsandifo@nildram.co.uk>
2089
2090 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): New macro.
2091 (mips_cpu_info): Add tune_flags.
2092 (GENERATE_BRANCHLIKELY): Remove TARGET_SR71K check.
2093 * config/mips/mips.c (mips_cpu_info_table): Add tune_flags fields.
2094 Remove end marker.
2095 (override_options): Remove deprecation code. Use branch-likely
2096 instructions for optimize_size or if the tuning flags do not
2097 suggest otherwise. Tweak warning.
2098 (mips_matching_cpu_name_p, mips_parse_cpu): Use ARRAY_SIZE.
2099
2100 2007-09-27 Matthias Klose <doko@ubuntu.com>
2101
2102 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
2103 multilib osdirname if it exists.
2104 * config/rs6000/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
2105
2106 2007-09-27 Ian Lance Taylor <iant@google.com>
2107
2108 PR tree-optimization/33565
2109 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING on
2110 assignments of comparisons.
2111 * tree-ssa-sccvn.c (simplify_binary_expression): Add stmt
2112 parameter. Change caller. Defer overflow warnings around call to
2113 fold_binary.
2114 * fold-const.c (fold_undefer_overflow_warnings): Don't warn if
2115 TREE_NO_WARNING is set on the statement.
2116 * tree-ssa-forwprop.c
2117 (tree_ssa_forward_propagate_single_use_vars): Don't test
2118 TREE_NO_WARNING when calling fold_undefer_overflow_warnings.
2119 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2120
2121 2007-09-27 Joseph Myers <joseph@codesourcery.com>
2122
2123 * config/rs6000/rs6000.c (rs6000_legitimize_address): Do not
2124 reduce offset by units of 0x10000 for SPE vector modes or modes
2125 used with E500 double instructions.
2126
2127 2007-09-04 Paolo Bonzini <bonzini@gnu.org>
2128
2129 * simplify-rtx.c (comparison_result): New.
2130 (simplify_const_relational_operation): Use it instead of the five
2131 "equal|op[01]ltu?" variables; consequently remove redundant "else"s.
2132 Improve bounds-checking optimizations; remove subsumed POPCOUNT
2133 optimizations. Extract nonzero_address_p optimizations into a
2134 separate "if" together with optimizations where op1 is const0_rtx.
2135 Optimize comparing an IOR with zero. Simplify op0 RELOP op0 for
2136 floating-point arguments too when appropriate. Hoist test for ABS
2137 outside the final switch statement.
2138 * cse.c (fold_rtx): Don't look for an IOR equivalent of
2139 folded_arg0 if we found a constant equivalent. Remove
2140 transformations done in simplify-rtx.c for "op0 RELOP op0".
2141
2142 2007-09-27 Jakub Jelinek <jakub@redhat.com>
2143
2144 * builtins.c (expand_builtin, expand_builtin_object_size,
2145 expand_builtin_memory_chk, maybe_emit_chk_warning,
2146 maybe_emit_sprintf_chk_warning): Use new %K format string specifier
2147 for diagnostics.
2148 * expr.c (expand_expr_real_1): Likewise.
2149 * langhooks-def.h (struct diagnostic_info): Add forward decl.
2150 (lhd_print_error_function): Add third argument.
2151 * langhooks.h (struct diagnostic_info): Add forward decl.
2152 (struct lang_hooks): Add third argument to print_error_function.
2153 * diagnostic.h (diagnostic_info): Add abstract_origin field.
2154 (diagnostic_last_function_changed, diagnostic_set_last_function): Add
2155 second argument.
2156 (diagnostic_report_current_function): Likewise.
2157 * toplev.c (announce_function): Pass NULL as second argument to
2158 diagnostic_set_last_function.
2159 * diagnostic.c (diagnostic_report_current_function): Add second
2160 argument, pass it as third argument to lang_hooks.print_error_function.
2161 (default_diagnostic_starter): Pass DIAGNOSTIC as second argument
2162 to diagnostic_report_current_function.
2163 (diagnostic_report_diagnostic): Initialize diagnostic->abstract_origin
2164 and message.abstract_origin.
2165 (verbatim): Initialize abstract_origin.
2166 * pretty-print.h (text_info): Add abstract_origin field.
2167 * pretty-print.c (pp_base_format): Handle %K.
2168 * langhooks.c (lhd_print_error_function): Add third argument. If
2169 diagnostic->abstract_origin, print virtual backtrace.
2170 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2171 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Support %K.
2172 (init_dynamic_diag_info): Likewise.
2173
2174 2007-09-26 David Daney <ddaney@avtrex.com>
2175
2176 PR target/33479
2177 * config/mips/mips.md (sync_compare_and_swap<mode>, sync_old_add<mode>,
2178 sync_new_add<mode>, sync_old_<optab><mode>, sync_new_<optab><mode>,
2179 sync_old_nand<mode>, sync_new_nand<mode>,
2180 sync_lock_test_and_set<mode>): Fix '&' constraint modifiers.
2181 Update length attributes.
2182 (sync_add<mode>, sync_sub<mode>, sync_old_sub<mode>,
2183 sync_new_sub<mode>, sync_<optab><mode>, sync_nand<mode>): Update
2184 length attributes.
2185 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP,
2186 MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND,
2187 MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Add
2188 post-loop sync.
2189
2190 2007-09-26 Richard Guenther <rguenther@suse.de>
2191
2192 PR tree-optimization/33563
2193 * tree-ssa-dse.c (get_use_of_stmt_lhs): Rename to ...
2194 (get_kill_of_stmt_lhs): ... this. Re-structure. Handle
2195 aggregate stores.
2196 (dse_optimize_stmt): Call get_kill_of_stmt_lhs instead of
2197 get_use_of_stmt_lhs.
2198
2199 2007-09-26 Joseph Myers <joseph@codesourcery.com>
2200
2201 PR c/25309
2202 * c-common.c (complete_array_type): Diagnose too-large arrays and
2203 set type to error_mark_node.
2204
2205 2007-09-26 Richard Guenther <rguenther@suse.de>
2206
2207 PR tree-optimization/30375
2208 PR tree-optimization/33560
2209 * tree-ssa-dse.c (get_use_of_stmt_lhs): Give up on uses
2210 with calls.
2211
2212 Revert
2213 2006-05-22 Aldy Hernandez <aldyh@redhat.com>
2214
2215 * tree-ssa-dse.c (aggregate_vardecl_d): New.
2216 (dse_global_data): Add aggregate_vardecl field.
2217 (dse_possible_dead_store_p): New.
2218 Add prev_defvar variable.
2219 Allow immediate uses and previous immediate uses to differ
2220 if they are setting different parts of the whole.
2221 (get_aggregate_vardecl): New.
2222 (dse_record_partial_aggregate_store): New.
2223 (dse_whole_aggregate_clobbered_p): New.
2224 (dse_partial_kill_p): New.
2225 Call dse_maybe_record_aggregate_store().
2226 When checking whether a STMT and its USE_STMT refer to the
2227 same memory address, check also for partial kills that clobber
2228 the whole.
2229 Move some variable definitions to the block where they are used.
2230 (aggregate_vardecl_hash): New.
2231 (aggregate_vardecl_eq): New.
2232 (aggregate_vardecl_free): New.
2233 (aggregate_whole_store_p): New.
2234 (tree_ssa_dse): Initialize and free aggregate_vardecl.
2235 Mark which aggregate stores we care about.
2236
2237 2007-09-25 DJ Delorie <dj@redhat.com>
2238
2239 PR target/33551
2240 * config/m32c/m32c.c (m32c_immd_dbl_mov): Use INTVAL instead of
2241 XINT.
2242
2243 2007-09-25 Michael Meissner <michael.meissner@amd.com>
2244
2245 PR target/33524
2246 * config/i386/i386.c (ix86_expand_sse5_unpack): Change to call
2247 gen_sse5_pperm_sign_v4si_v2di and gen_sse5_pperm_zero_v4si_v2di
2248 for vector int32 -> int64 conversions. Don't write beyond the end
2249 of the allocated vector for int32 -> int64 conversions.
2250
2251 2007-09-25 Revital Eres <eres@il.ibm.com>
2252
2253 * config/rs6000/paired.h (paired_sel): New.
2254 * config/rs6000/rs6000.c (bdesc_3arg): Add selv2sf4.
2255 (rs6000_expand_ternop_builtin): Pass zero const_double operand
2256 when expanding selv2sf.
2257 * config/rs6000/rs6000.h (rs6000_builtins): Add
2258 PAIRED_BUILTIN_SELV2SF4.
2259
2260 2007-09-25 Joseph Myers <joseph@codesourcery.com>
2261
2262 PR c/32295
2263 * c-typeck.c (default_conversion): Call require_complete_type
2264 before perform_integral_promotions.
2265 (build_unary_op): Call require_complete_type except for ADDR_EXPR.
2266 (build_c_cast): Call require_complete_type except for casts to
2267 void types.
2268 (convert_for_assignment): Call require_complete_type.
2269
2270 2007-09-25 Revital Eres <eres@il.ibm.com>
2271
2272 * config/spu/spu.md: Fix doloop pattern.
2273
2274 2007-09-25 Bernd Schmidt <bernd.schmidt@analog.com>
2275
2276 * config/bfin/bfin.c (expand_prologue_reg_save,
2277 expand_epilogue_reg_restore): Code to save and restore I/M/B/L regs and
2278 ASTAT moved here...
2279 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
2280 ... from here. New argument ALL; callers changed.
2281 (n_regs_saved_by_prologue): Count ASTAT for plain saveall functions.
2282 (bfin_expand_prologue, bfin_expand_epilogue): Deal with functions that
2283 have the "saveall" attribute.
2284
2285 2007-09-25 Hans-Peter Nilsson <hp@bitrange.com>
2286
2287 * config/mmix/mmix.h (FUNCTION_INCOMING_ARG_REGNO_P): Don't define
2288 bogus target macro.
2289 (INCOMING_REGNO, OUTGOING_REGNO): Define.
2290 * config/mmix/mmix.c (mmix_opposite_regno): New function.
2291 * config/mmix/mmix-protos.h (mmix_opposite_regno): Prototype.
2292
2293 * config/mmix/mmix.md ("*cmpcc_folded"): In condition, gate
2294 with REG_P tests before REGNO access.
2295
2296 2007-09-24 DJ Delorie <dj@redhat.com>
2297
2298 PR target/31482
2299 * config/m32c/cond.md (stzx_reversed_<mode>): Add an output
2300 constraint.
2301 (movqicc_<code>_<mode>): Likewise.
2302 (movhicc_<code>_<mode>): Likewise.
2303
2304 2007-09-24 Rask Ingemann Lambertsen <rask@sygehus.dk>
2305
2306 PR target/33184
2307 * config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
2308 register for reload.
2309
2310 2007-09-24 Danny Smith <dannysmith@user.sourceforge.net>
2311
2312 PR c++/14688
2313 * config/i386/i386.c (ix86_comp_type_attributes): Check
2314 METHOD_TYPE too.
2315
2316 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2317
2318 * config/m68k/m68k.h (ASM_OUTPUT_ALIGN_WITH_NOP): New, use
2319 "move.l %a4,%a4" to produce nops.
2320 * config/m68k/m68k.c (override_options): Reset align options,
2321 if neccessary align macro isn't avaible.
2322
2323 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2324
2325 config/m68k/linux.h (PREFERRED_STACK_BOUNDARY): New.
2326
2327 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2328
2329 * config/m68k/m68k.c (strict_low_part_peephole_ok): Don't leave
2330 the basic block.
2331 * config/m68k/m68k.md (movsi_m68k): Allow certain constant when
2332 reload is completed.
2333 (peephole pattern): Convert most of them to RTL peephole pattern.
2334
2335 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2336
2337 * config/m68k/m68k.c (notice_update_cc): Recognize fp compare
2338 (moved from fp compare patterns).
2339 * config/m68k/m68k.md (cmp<mode>, cmp<mode>_68881, cmp<mode>_cf):
2340 Cleanup predicates to relieve reload.
2341 (conditional_trap): Reject conditional trap with fp condition.
2342 * gcc/config/m68k/predicates.md (fp_src_operand): New, reject
2343 certain constants early.
2344
2345 2007-09-24 Roman Zippel <zippel@linux-m68k.org>
2346
2347 * gcc/final.c (final_scan_insn): Remove accidentally duplicated code.
2348
2349 2007-09-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2350
2351 * config.gcc (powerpc*-*-*): --with-cpu=cell is a 64bit CPU.
2352 Allow --with-tune=cell and --with-cpu=cell.
2353
2354 2007-09-24 David Edelsohn <edelsohn@gnu.org>
2355
2356 * config/rs6000/rs6000-protos.h (rs6000_emit_swrsqrtsf): Declare.
2357 * config/rs6000/rs6000.opt (swdiv): Change option to ...
2358 (recip): this.
2359 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): New
2360 function.
2361 (TARGET_BUILTIN_RECIPROCAL): Use it.
2362 (rs6000_builtin_expand): Expand recip, recipf, and rsqrtf.
2363 (rs6000_init_builtins): Initialize recip, recipf, and rsqrtf.
2364 (rs6000_emit_swrsqrtsf): New.
2365 * config/rs6000/rs6000.h (rs6000_builtins): Add recip, recipf, and
2366 rsqrtf.
2367 * config/rs6000/rs6000.md (UNSPEC_RSQRT): Define.
2368 (divsf3): Remove swdiv support.
2369 (recipsf3): New.
2370 (rsqrtsf2): New.
2371 (rsqrt_internal1): New.
2372 (divdf3): Remove swdiv support.
2373 (reciptdf3): New.
2374
2375 2007-09-24 Jakub Jelinek <jakub@redhat.com>
2376
2377 PR c++/33506
2378 * langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
2379 field.
2380 * langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
2381 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
2382 * tree.c (type_hash_eq): For FUNCTION_TYPE use
2383 lang_hooks.type.type_hash_eq in addition to generic tests.
2384
2385 2007-09-24 Pranav Bhandarkar <pranav.bhandarkar@celunite.com>
2386 Ramana Radhakrishnan <ramana@hercules.pun.celunite.com>
2387
2388 * tree-inline.h (eni_weights): Add field target_builtin_cost to
2389 reflect the cost per call to a target specific builtin.
2390 * tree-inline.c (estimate_num_insns_1): If it is a CALL_EXPR for a
2391 call to a target specific builtin, then use target_builtin_call_cost.
2392 (init_inline_once): Initialize target_builtin_call_cost field.
2393
2394 2007-09-24 Kai Tietz <kai.tietz@onevision.com>
2395
2396 PR middle-end/33472
2397 * config/i386/i386.c (return_in_memory_ms_64): Handle return types for
2398 complex types.
2399
2400 2007-09-23 H.J. Lu <hongjiu.lu@intel.com>
2401
2402 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
2403 * configure: Regenerated.
2404
2405 2007-09-23 Ollie Wild <aaw@google.com>
2406
2407 * fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer
2408 operand.
2409 (get_pointer_modulus_and_residue): New function.
2410
2411 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2412
2413 * config/mips/mips.c (build_mips16_call_stub): On 64-bit targets,
2414 combine an SC return value into a single register.
2415
2416 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2417
2418 * opth-gen.awk (target_flags_explicit): Declare.
2419 * toplev.h (target_flags_explicit): Delete declaration.
2420 * toplev.c (target_flags): Likewise.
2421 * config/mips/mips.h (mips_llsc_setting, mips_llsc): Delete.
2422 (GENERATE_SYNC, GENERATE_LL_SC): Redefine using target_explicit_flags.
2423 Never return true for TARGET_MIPS16.
2424 * config/mips/mips.c (mips_llsc): Delete.
2425 (mips_handle_option): Remove -mllsc handling.
2426 (mips_strip_unspec_address): Tweak comment.
2427 * config/mips/mips.opt (mllsc): Use a target mask.
2428
2429 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2430
2431 * doc/tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to
2432 word_mode as well as Pmode.
2433
2434 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2435
2436 * function.c (assign_parm_setup_block): Explicitly convert BLKmode
2437 parameters from word_mode to the subword type if such a truncation
2438 is not a no-op.
2439
2440 2007-09-23 Jakub Jelinek <jakub@redhat.com>
2441
2442 * configure.ac (MAKEINFO): Handle makeinfo version 4.10 and above.
2443 * configure: Regenerated.
2444
2445 2007-09-23 Jan Hubicka <jh@suse.cz>
2446
2447 * params.def (INLINE_CALL_COST): Set to 12.
2448 * invoke.texi (inline-call-cost): Update default value.
2449
2450 2007-09-23 Eric Botcazou <ebotcazou@adacore.com>
2451
2452 * config/alpha/alpha.md (movti): Use operand_subword for the split.
2453
2454 2007-09-23 Ayal Zaks <zaks@il.ibm.com>
2455 Revital Eres <eres@il.ibm.com>
2456
2457 * modulo-sched.c (doloop_register_get): Rewrite the loop which
2458 checks whether the count_reg is found outside the control part.
2459
2460 2007-09-23 Jakub Jelinek <jakub@redhat.com>
2461
2462 * expr.c (expand_expr_real_1) <case CALL_EXPR>: Use get_callee_fndecl
2463 instead of checking CALL_EXPR_FN directly to test for builtins.
2464 If error or warning attributes are present, print
2465 error resp. warning.
2466 * c-common.c (handle_error_attribute): New function.
2467 (c_common_attribute_table): Add error and warning
2468 attributes.
2469 * doc/extend.texi: Document error and warning attributes.
2470
2471 * tree.h (block_nonartificial_location): New prototype.
2472 * tree.c (block_nonartificial_location): New function.
2473 * dwarf2out.c (gen_subprogram_die): Add DW_AT_artificial
2474 if artificial attribute is present on abstract inline decl.
2475 * c-common.c (handle_artificial_attribute): New function.
2476 (c_common_attribute_table): Add artificial attribute.
2477 * final.c (override_filename, override_linenum): New variables.
2478 (final_scan_insn): For DBX_DEBUG or SDB_DEBUG, set override_filename
2479 and override_linenum if inside of a block inlined from
2480 __attribute__((__artificial__)) function.
2481 (notice_source_line): Honor override_filename and override_linenum.
2482 * doc/extend.texi: Document __attribute__((__artificial__)).
2483 * config/i386/emmintrin.h: Add __artificial__ attribute to
2484 all __always_inline__ functions.
2485 * config/i386/mmintrin.h: Likewise.
2486 * config/i386/tmmintrin.h: Likewise.
2487 * config/i386/mm3dnow.h: Likewise.
2488 * config/i386/pmmintrin.h: Likewise.
2489 * config/i386/ammintrin.h: Likewise.
2490 * config/i386/xmmintrin.h: Likewise.
2491 * config/i386/smmintrin.h: Likewise.
2492 * config/i386/bmmintrin.h: Likewise.
2493 * config/i386/mmintrin-common.h: Likewise.
2494
2495 PR middle-end/28755
2496 * expr.c (expand_constructor): New function.
2497 (expand_expr_real_1) <case CONSTRUCTOR>: Call it.
2498 (expand_expr_real_1) <case ARRAY_REF>: Call it if VALUE is
2499 CONSTRUCTOR.
2500
2501 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2502
2503 * config/mips/mips.c (dump_constants_1): Generalize to include
2504 fractional and accumulator modes.
2505
2506 2007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2507
2508 * config/mips/mips.h (ISA_HAS_DSP, ISA_HAS_DSPR2): New macros.
2509 * config/mips/mips.c (mips_set_mips16_mode): Don't clear the DSP
2510 flags for MIPS16.
2511 (override_options): Check TARGET_HARD_FLOAT_ABI instead of
2512 TARGET_HARD_FLOAT when testing whether -mpaired-single is
2513 supported.
2514 (mips_conditional_register_usage): Check ISA_HAS_DSP instead of
2515 TARGET_DSP.
2516 * config/mips/constraints.md (ka): Check ISA_HAS_DSPR2 instead of
2517 TARGET_DSPR2.
2518 * config/mips/mips.md (ANYF): Require TARGET_HARD_FLOAT for V2SF.
2519 (mulv2sf3, movv2sf, movv2sf_hardfloat_64bit): Require
2520 TARGET_HARD_FLOAT.
2521 (<u>mulsidi3_32bit_internal, <u>msubsidi4, <u>maddsidi4): Check
2522 ISA_HAS_DSPR2 instead of TARGET_HAS_DSPR2.
2523 * config/mips/mips-dsp.md: Use ISA_HAS_DSP instead of TARGET_HAS_DSP
2524 throughout.
2525 * config/mips/mips-dspr2.md: Likewise ISA_HAS_DSPR2 and
2526 TARGET_HAS_DSPR2.
2527 * config/mips/mips-fixed.md: Use ISA_HAS_DSP and ISA_HAS_DSPR2
2528 instead of TARGET_HAS_DSP and TARGET_HAS_DSPR2.
2529 * config/mips/mips-ps-3d.md: Add TARGET_HARD_FLOAT to V2SF patterns.
2530
2531 2007-09-22 Jason Merrill <jason@redhat.com>
2532
2533 PR c++/19407
2534 * attribs.c (lookup_attribute_spec): Split out...
2535 (decl_attributes): From here.
2536 * tree.h: Declare it.
2537
2538 2007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
2539
2540 * doc/sourcebuild.texi: Document dg-add-options mips16_attribute.
2541
2542 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2543
2544 * tree-inline.c (remap_type_1): Correctly chain variants.
2545
2546 2007-09-22 Richard Guenther <rguenther@suse.de>
2547
2548 PR tree-optimization/33146
2549 * fold-const.c (fold_binary): Use the original tree
2550 for negating.
2551 * tree.h (STRIP_SIGN_NOPS): Converting from or to pointer
2552 also changes "sign".
2553
2554 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2555
2556 PR target/32325
2557 * except.c (finish_eh_generation): Call commit_edge_insertions if
2558 there are insns queued on the entry edge.
2559 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns on
2560 the entry edge.
2561
2562 2007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
2563
2564 * doc/sourcebuild.texi (dg-add-c99-runtime-options): Document.
2565
2566 2007-09-19 Michael Meissner <michael.meissner@amd.com>
2567
2568 * gcc/config/i386/i386.c: Delete trailing whitespace.
2569 * gcc/config/i386/i386.h: Ditto.
2570 * gcc/config/i386/bmmintrin.h: Ditto.
2571 * gcc/config/i386/sync.md: Ditto.
2572 * gcc/config/i386/ppro.md: Ditto.
2573 * gcc/config/i386/mmx.md: Ditto.
2574 * gcc/config/i386/constraints.md: Ditto.
2575 * gcc/config/i386/sse.md: Ditto.
2576 * gcc/config/i386/athlon.md: Ditto.
2577 * gcc/config/i386/i386.md: Ditto.
2578
2579 2007-09-21 Richard Guenther <rguenther@suse.de>
2580
2581 PR tree-optimization/33508
2582 * tree-ssa-alias.c (mark_aliases_call_clobbered): Avoid
2583 quadratic loop by keeping a bitmap of variables we have
2584 to clobber all subvariables for.
2585 (set_initial_properties): Likewise.
2586
2587 2007-09-21 Richard Sandiford <rsandifo@nildram.co.uk>
2588
2589 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Delete.
2590
2591 2007-09-20 Nigel Stephens <nigel@mips.com>
2592 Chao-ying Fu <fu@mips.com>
2593
2594 * c-decl.c (finish_declspecs): When _Sat is used without
2595 _Fract or _Accum, set the default type to cts_fract.
2596 This avoids a warning of "type defaults to int".
2597
2598 2007-09-20 Joseph Myers <joseph@codesourcery.com>
2599
2600 * c-decl.c (check_bitfield_type_and_width): Don't allow _Bool
2601 bit-fields wider than one bit.
2602
2603 2007-09-20 Jakub Jelinek <jakub@redhat.com>
2604
2605 PR debug/33316
2606 * dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
2607 DECL_NAME.
2608 * dbxout.c (dbxout_type): Likewise.
2609
2610 PR c/33238
2611 PR c/27301
2612 * gimplify.c (gimplify_vla_decl): New function.
2613 (gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
2614 Call it.
2615 (gimplify_target_expr): Handle variable length TARGET_EXPRs.
2616
2617 2007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
2618
2619 * doc/invoke.texi (-minterlink-mips16): Document.
2620 * config/mips/mips.opt (minterlink-mips16): New option.
2621 * config/mips/mips.c (mips_function_ok_for_sibcall): Handle
2622 -minterlink-mips16
2623
2624 2007-09-20 Joseph Myers <joseph@codesourcery.com>
2625
2626 * doc/extend.texi (Attribute Syntax): Remove old speculative
2627 future direction.
2628
2629 2007-09-20 Mark Shinwell <shinwell@codesourcery.com>
2630
2631 * combine.c: Include cgraph.h.
2632 (setup_incoming_promotions): Rework to allow more aggressive
2633 elimination of sign extensions when all call sites of the
2634 current function are known to lie within the current unit.
2635
2636 2007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
2637
2638 * dse.c (find_shift_sequence): No-op rework of control flow.
2639
2640 2007-09-19 Richard Sandiford <rsandifo@nildram.co.uk>
2641
2642 * config/mips/mips.c (build_mips16_call_stub): Tidy. Fix second
2643 GPR for DCmode on 64-bit targets. Remove redundant fallback.
2644
2645 2007-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
2646
2647 * cfgexpand.c (dump_stack_var_partition): Use the correct
2648 index for the offset.
2649
2650 2007-09-19 Joseph Myers <joseph@codesourcery.com>
2651
2652 * config/mips/sde.h: Switch to GPLv3.
2653
2654 2007-09-19 Eric Botcazou <ebotcazou@adacore.com>
2655
2656 * tree-sra.c (decide_block_copy): Decide if there are groups.
2657
2658 2007-09-19 Roman Zippel <zippel@linux-m68k.org>
2659
2660 * config/m68k/m68k.c (output_move_himode): Remove jump table
2661 recognition.
2662 config/m68k/m68k.md (lea): Likewise.
2663 * config/m68k/m68k.c (print_operand_address): Use simple pc
2664 relative addressing.
2665
2666 2007-09-19 Bernd Schmidt <bernd.schmidt@analog.com>
2667
2668 * doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.
2669 * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument
2670 default definition.
2671 (asm_insn_count): Pass template as second argument to it.
2672 * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2673 * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2674 * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2675 * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2676 * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2677 (sh_insn_length_adjustment): Pass template as second argument to it.
2678 * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro.
2679
2680 * config/bfin/bfin.md (define_asm_attributes): New.
2681
2682 2007-09-19 Jie Zhang <jie.zhang@analog.com>
2683
2684 * config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h
2685 to tm_file.
2686 * config/bfin/print-sysroot-suffix.sh: New.
2687 * config/bfin/t-bfin-elf (EXTRA_PARTS): Remove.
2688 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2689 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2690 * config/bfin/t-bfin-uclinux (EXTRA_PARTS): Remove.
2691 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2692 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2693 * config/bfin/t-bfin-linux (EXTRA_PARTS): Remove.
2694 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2695 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2696 (linux-sysroot-suffix.h): New target.
2697 * config/bfin/bfin.opt (mcsync-anomaly): Use Var instead of Mask.
2698 (mspecld-anomaly): Likewise.
2699 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Renamed from
2700 (enum bfin_cpu): ... this. Add BFIN_CPU_BF522, BFIN_CPU_BF525,
2701 BFIN_CPU_BF527, BFIN_CPU_BF538, BFIN_CPU_BF539, BFIN_CPU_BF542,
2702 BFIN_CPU_BF544, BFIN_CPU_BF548, and BFIN_CPU_BF549.
2703 (bfin_si_revision): Declare.
2704 (bfin_workarounds): Declare.
2705 (WA_SPECULATIVE_LOADS): Define.
2706 (ENABLE_WA_SPECULATIVE_LOADS): Define.
2707 (WA_SPECULATIVE_SYNCS): Define.
2708 (ENABLE_WA_SPECULATIVE_SYNCS): Define.
2709 * config/bfin/elf.h (STARTFILE_SPEC): Rename crt532.o to basiccrt.o.
2710 (LIB_SPEC): Add %s to the linker scripts.
2711 Use proper linker script for bf522, bf525, bf527,
2712 bf538, bf539, bf542, bf544, bf548, and bf549.
2713 * config/bfin/bfin.c (bfin_si_revision): Define.
2714 (bfin_workarounds): Define.
2715 (struct bfin_cpu): New.
2716 (bfin_cpus): New.
2717 (bfin_handle_option): Handle silicon revision part of -mcpu option.
2718 (override_options): Set bfin_workarounds.
2719 (length_for_loop): Replace TARGET_CSYNC_ANOMALY with
2720 ENABLE_WA_SPECULATIVE_SYNCS, TARGET_SPECLD_ANOMALY with
2721 ENABLE_WA_SPECULATIVE_LOADS.
2722 (bfin_reorg): Likewise.
2723 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2724 macros for bf522, bf525, bf527, bf538, bf539,
2725 bf542, bf544, bf548, and bf549.
2726 Define __SILICON_REVISION__ and __WORKAROUND_* macros if needed.
2727 Don't define __ID_SHARED_LIB__ when -msep-data.
2728 (TARGET_DEFAULT): Define as 0.
2729 (DRIVER_SELF_SPECS): Add -mcpu=bf532 if no -mcpu option.
2730 * doc/invoke.texi (Blackfin Options): Document silicon
2731 revision part of -mcpu option and it now accepts bf522, bf525,
2732 bf527, bf538, bf539, bf542, bf544, bf548, and bf549.
2733
2734 2007-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2735
2736 * alias.c (memory_modified_1): Deconstify.
2737 (memory_modified_in_insn_p): Don't use const_note_stores.
2738 * rtl.h (const_note_stores): Delete.
2739 * rtlanal.c (const_note_stores): Likewise.
2740
2741 2007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2742
2743 * dse.c (find_shift_sequence): Temporarily revert to forbidding
2744 word shifts.
2745
2746 2007-09-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
2747
2748 PR target/33388
2749 PR target/33397
2750 * config/fr30/fr30.md (addsi3): Check REG_P() before calling REGNO().
2751 (addsi_small_int): Likewise.
2752 (addsi_big_int): Use rtx_equal_p() instead of REGNO() comparison.
2753 (one_cmplsi2): Likewise.
2754 (negsi2): Delete.
2755 (enter_func): Expand insn using hard_frame_pointer_rtx and
2756 stack_pointer_rtx.
2757 (*enter_func): New.
2758 * config/fr30/fr30.c (fr30_expand_prologue): Check for
2759 hard_frame_pointer_rtx instead of using REGNO() check.
2760 Properly sign extend GEN_INT() argument.
2761
2762 2007-09-18 Roman Zippel <zippel@linux-m68k.org>
2763
2764 * config/m68k/m68k.c (override_options): Remove USE_GAS,
2765 use %. syntax.
2766 (output_dbcc_and_branch, output_scc_di): Replace all jbcc
2767 alternatives with just jcc.
2768 * config/m68k/m68k.md (addsi_lshrsi_31, beq0_di, bne0_di,
2769 bge0_di, blt0_di, bgtu, bltu, bgeu, bleu, bgtu_rev,
2770 bltu_rev, bgeu_rev, bleu_rev, jump, dbne_hi, dbne_si,
2771 dbge_hi, dbge_si): Likewise.
2772
2773 2007-09-18 Roman Zippel <zippel@linux-m68k.org>
2774
2775 * config/m68k/m68k.md (beq, bne, bgt, blt, bge, ble, bordered,
2776 bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt, beq_rev,
2777 bne_rev, bgt_rev, blt_rev, bge_rev, ble_rev, bordered_rev,
2778 bunordered_rev, buneq_rev, bunge_rev, bungt_rev, bunle_rev,
2779 bunlt_rev, bltgt_rev): Replace all fbcc with fjcc.
2780
2781 2007-09-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2782
2783 * config/m68k/m68k-devices.def (51qe): New device.
2784 * config/m68k/m68k.c (FL_FOR_isa_c): Remove division unit. Add it
2785 to all uses of FL_FOR_isa_c for compatibility.
2786 (all_microarchs): Add cfv1 microarchitecture.
2787 (m68k_handle_option): Handle m51qe option.
2788 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Handle 51QE.
2789 (TUNE_CFV1): New macro.
2790 (enum uarch_type): Add ucfv1.
2791 * doc/invoke.texi: Document 51qe device and cfv1 microarchitecture.
2792
2793 2007-09-18 Richard Guenther <rguenther@suse.de>
2794
2795 PR tree-optimization/31863
2796 * tree-ssa-structalias.c (create_variable_info_for): Always
2797 free the fieldstack.
2798
2799 2007-09-18 Dorit Nuzman <dorit@il.ibm.com>
2800
2801 * opts.c (decode_options): Enable vectorization under -O3.
2802
2803 2007-09-18 Richard Guenther <rguenther@suse.de>
2804
2805 PR tree-optimization/33340
2806 * tree-ssa-sccvn.c (set_ssa_val_to): Do not set values to
2807 SSA_NAMEs that occur in abnormal PHI nodes.
2808
2809 2007-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2810
2811 * tree-cfg.c (is_ctrl_altering_stmt, tree_block_ends_with_call_p):
2812 Don't use const_get_call_expr_in.
2813 * tree-gimple.c (const_get_call_expr_in): Delete.
2814 * tree-gimple.h (const_get_call_expr_in): Likewise.
2815
2816 2007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2817
2818 * df-scan.c (df_notes_rescan): Do nothing if the instruction does
2819 not yet have a basic block.
2820 * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN.
2821
2822 2007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2823
2824 * config/mips/mips.c (mips_file_start): Add ".previous" directives
2825 to both ".section"s.
2826
2827 2007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
2828
2829 * config/mips/mips.c (mips_output_mi_thunk): Use
2830 mips_function_ok_for_sibcall and const_call_insn_operand
2831 to determine if a direct sibcall is allowed. Use
2832 mips_classify_symbol to determine a global pointer is needed.
2833
2834 2007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
2835
2836 * config/mips/mips.md (*clear_upper32): Use "W" as the memory operand.
2837
2838 2007-09-17 Chao-ying Fu <fu@mips.com>
2839 Nigel Stephens <nigel@mips.com>
2840
2841 * config/fixed-bit.h: New file.
2842 * config/fixed-bit.c: New file.
2843 * doc/libgcc.texi (Fixed-point fractional library routines): New node.
2844
2845 2007-09-18 Jakub Jelinek <jakub@redhat.com>
2846
2847 * c-format.h (format_kind_info): Add alloc_char field.
2848 * c-format.c (scanf_flag_specs): Add 'm'.
2849 (scanf_flag_pairs): Add 'a', 'm' pair.
2850 (scan_char_table): Allow 'm' modifier for c, s, [, C and S.
2851 (format_types_orig): Add alloc_char fields.
2852 (check_format_info_main): Rename aflag to alloc_flag.
2853 Handle fki->alloc_char. modifier after width and before length
2854 modifiers. Move FMT_FLAG_SCANF_A_KLUDGE handling before
2855 length modifiers as well.
2856 * config/sol2-c.c (solaris_format_types): Add alloc_char field.
2857
2858 PR middle-end/33423
2859 * builtins.c (expand_builtin_memory_chk): Handle COMPOUND_EXPRs
2860 returned by build_call_expr.
2861
2862 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2863
2864 * tree-sra.c (maybe_lookup_element_for_expr) <COMPONENT_REF>: Return
2865 NULL for variable-sized records too.
2866 (sra_walk_expr) <COMPONENT_REF>: Stop at variable-sized records too.
2867
2868 2007-09-17 Tom Tromey <tromey@redhat.com>
2869
2870 * c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
2871 (c_builtin_function): Likewise.
2872 (grokdeclarator): Likewise.
2873
2874 2007-09-17 Zdenek Dvorak <ook@ucw.cz>
2875
2876 PR rtl-optimization/26449
2877 * loop-invariant.c (move_invariant_reg): Do not use force_operand.
2878 (seq_insns_valid_p): Removed.
2879
2880 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2881
2882 * tree-nomudflap.c (gate_mudflap): New static function.
2883 (pass_mudflap_1): Use it as gate function.
2884 (pass_mudflap_2): Likewise.
2885
2886 2007-09-17 Jan Hubicka <jh@suse.cz>
2887
2888 PR middle-end/33348
2889 PR target/33406
2890 * loop-invariant.c (move_invariant_reg): Unshare sequence.
2891
2892 2007-09-17 Victor Kaplansky <victork@il.ibm.com>
2893
2894 PR tree-optimization/33319
2895 * tree-vect-analyze.c (vect_same_range_drs): New.
2896 (vect_vfa_range_equal): New.
2897 (vect_is_duplicate_ddr): Removed.
2898 (vect_mark_for_runtime_alias_test): Do not perform marking when
2899 optimizing for size or max_param for alias checking is zero.
2900 Move the function before vect_analyze_data_ref_dependence.
2901 (vect_analyze_data_ref_dependence): Add call to
2902 vect_mark_for_runtime_alias_test in two cases when dependence
2903 is not clear.
2904 (vect_analyze_data_ref_dependences): Do not call to
2905 vect_mark_for_runtime_alias_test.
2906 (vect_prune_runtime_alias_test_list): New.
2907 (vect_analyze_loop): Add call to vect_prune_runtime_alias_test_list.
2908 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2909 Update vec_outside_cost.
2910 (vect_vfa_segment_size): More compact code, use TYPE_SIZE_UNIT.
2911 (vect_create_cond_for_alias_checks): Build the base address of data
2912 reference from DR_GROUP_FIRST_DR.
2913 (vect_loop_versioning): New.
2914 (vect_transform_loop): Add a call to vect_loop_versioning.
2915 Remove factored out code.
2916
2917 2007-09-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2918
2919 PR middle-end/33273
2920 * expr.c (store_expr): Call adjust_address to change mode of dest_mem
2921 to BLKmode.
2922
2923 2007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2924
2925 * dse.c (find_shift_sequence): Allow word as well as subword shifts.
2926 Do the tentative shift expansion with the DF_NO_INSN_RESCAN flag set.
2927 Fix the call to insn_rtx_cost. Skip access sizes that require a
2928 real truncation of the store register. Use convert_move instead
2929 of gen_lowpart when narrowing the result.
2930 (replace_read): Use convert_move instead of gen_lowpart when
2931 narrowing the store rhs.
2932
2933 2007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2934
2935 * config/mips/mips.md (SHORT): Fix long line.
2936 (SUBDI): New mode iterator. Extend the shift-and-truncate insns
2937 to QImode and HImode.
2938
2939 2007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2940
2941 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Define.
2942
2943 2007-09-15 Zdenek Dvorak <ook@ucw.cz>
2944
2945 * tree-parloops.c: New file.
2946 * tree-ssa-operands.h (free_stmt_operands): Declare.
2947 * tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new basic
2948 block.
2949 * tree-pass.h (pass_parallelize_loops): Declare.
2950 * omp-low.c (expand_omp_parallel, expand_omp_for): Update SSA form for
2951 virtual operands.
2952 (build_omp_regions_1): Allow analysing just a single OMP region and
2953 its subregions.
2954 ( build_omp_regions_root, omp_expand_local): New functions.
2955 (build_omp_regions): Add argument to build_omp_regions_1 call.
2956 * builtins.def (DEF_GOMP_BUILTIN): Initialize OMP builtins when
2957 autoparallelization is run.
2958 * timevar.def (TV_TREE_PARALLELIZE_LOOPS): New.
2959 * tree-ssa-loop.c (gate_tree_parallelize_loops, tree_parallelize_loops,
2960 pass_parallelize_loops): New.
2961 * common.opt (ftree-parallelize-loops): New.
2962 * tree-flow.h (omp_expand_local, tree_duplicate_sese_tail,
2963 parallelize_loops): Declare.
2964 (add_phi_args_after_copy, split_loop_exit_edge): Declaration changed.
2965 * Makefile.in (tree-parloops.o): Added.
2966 * tree-cfg.c (add_phi_args_after_copy_edge, tree_duplicate_sese_tail):
2967 New functions.
2968 (add_phi_args_after_copy_bb): Use add_phi_args_after_copy_edge.
2969 (add_phi_args_after_copy): Call add_phi_args_after_copy_edge for
2970 one extra edge as well.
2971 (tree_duplicate_sese_region): Add argument to add_phi_args_after_copy.
2972 Use VEC_free to free doms vector.
2973 (move_block_to_fn): Update loop info. Remove phi nodes for virtual
2974 operands. Recompute operand caches in the new function.
2975 (move_sese_region_to_fn): Update loop info.
2976 * passes.c (init_optimization_passes): Add pass_parallelize_loops.
2977 * tree-ssa-operands.c (free_stmt_operands): New function.
2978
2979 * doc/passes.texi: Document autoparallelization.
2980 * doc/invoke.texi (-ftree-parallelize-loops): New option.
2981
2982 2007-09-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2983
2984 PR target/33062
2985 * pa.c (function_value): Use GET_MODE_BITSIZE instead of
2986 TYPE_PRECISION.
2987
2988 2007-09-15 Dorit Nuzman <dorit@il.ibm.com>
2989
2990 * tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if
2991 the VEC is not NULL.
2992 (vectorizable_type_demotion, vectorizable_type_promotion): Check that
2993 get_vectype_for_scalar_type succeeded.
2994 (vectorizable_conversion): Likewise.
2995
2996 2007-09-14 Jan Hubicka <jh@suse.cz>
2997
2998 * config/i386/i386.md (*floatdi<mode>2_i387): Guard against
2999 TARGET_64BIT.
3000
3001 2007-09-14 Uros Bizjak <ubizjak@gmail.com>
3002
3003 PR target/33438
3004 * config/i386/i386.md (fmodxf3): Copy operands[2] to temporary
3005 register when operands[2] equals operands[1].
3006 (remainderxf3): Ditto.
3007
3008 2007-09-14 Sandra Loosemore <sandra@codesourcery.com>
3009 Nigel Stephens <nigel@mips.com>
3010
3011 * doc/tm.texi (LIBGCC2_UNWIND_ATTRIBUTE): Document.
3012 * unwind-generic.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
3013 (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE to
3014 declaration.
3015 (_Unwind_ForcedUnwind): Likewise.
3016 (_Unwind_Resume): Likewise.
3017 (_Unwind_Resume_or_Rethrow): Likewise.
3018 (_Unwind_Backtrace): Likewise.
3019 (_Unwind_SjLj_RaiseException): Likewise.
3020 (_Unwind_SjLj_ForcedUnwind): Likewise.
3021 (_Unwind_SjLj_Resume): Likewise.
3022 (_Unwind_SjLj_Resume_or_Rethrow): Likewise.
3023 * unwind.inc (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE
3024 to definition.
3025 (_Unwind_ForcedUnwind): Likewise.
3026 (_Unwind_Resume): Likewise.
3027 (_Unwind_Resume_or_Rethrow): Likewise.
3028 (_Unwind_Backtrace): Likewise.
3029 * unwind-compat.c (_Unwind_Backtrace): Likewise.
3030 (_Unwind_ForcedUnwind): Likewise.
3031 (_Unwind_RaiseException): Likewise.
3032 (_Unwind_Resume): Likewise.
3033 (_Unwind_Resume_or_Rethrow): Likewise.
3034
3035 * config/mips/mips.h (LIBGCC2_UNWIND_ATTRIBUTE): Define to force
3036 nomips16 mode when IN_LIBGCC2 with hard float.
3037
3038 2007-09-14 Richard Sandiford <rsandifo@nildram.co.uk>
3039
3040 * config/mips/sdemtk.opt: Update to GPLv3.
3041 * config/mips/sdemtk.h: Likewise.
3042
3043 2007-09-14 Nigel Stephens <nigel@mips.com>
3044
3045 * config.gcc (mips*-*-linux*): Recognise mipsisa32r2 and set
3046 MIPS_ISA_DEFAULT appropriately. Don't make soft-float the default
3047 for mipsisa32-*-linux*.
3048
3049 2007-09-14 Nigel Stephens <nigel@mips.com>
3050 David Ung <davidu@mips.com>
3051 Thiemo Seufer <ths@mips.com>
3052 Richard Sandiford <richard@codesourcery.com>
3053
3054 * config.gcc (mips*-sde-elf*): Add support for the SDE C libraries.
3055 * configure.ac: Add a mipssde threading type.
3056 * configure: Regenerate.
3057 * config/mips/sdemtk.h: New file.
3058 * config/mips/t-sdemtk: Likewise.
3059 * config/mips/sdemtk.opt: Likewise.
3060 * gthr-mipssde.h: Likewise.
3061 * config/mips/sde.h (FUNCTION_PROFILER): Move to config/mips/sdemtk.h.
3062 * config/mips/mips.h (MIPS_SAVE_REG_FOR_PROFILING_P): New macro.
3063 (MIPS_ICACHE_SYNC): New macro, split from ...
3064 * config/mips/mips.md (clear_cache): ...here.
3065 * config/mips/mips.c (mips_save_reg_p): Check
3066 MIPS_SAVE_REG_FOR_PROFILING_P on profiled functions.
3067 (build_mips16_function_stub): Use targetm.strip_name_encoding.
3068 (build_mips16_call_stub): Likewise.
3069
3070 2007-09-14 Richard Sandiford <richard@codesourcery.com>
3071
3072 * Makefile.in (stmp-int-hdrs): Depend on fixinc_list.
3073
3074 2007-09-14 Jakub Jelinek <jakub@redhat.com>
3075
3076 PR target/32337
3077 * config/ia64/ia64.c (find_gr_spill): Don't decrement
3078 current_frame_info.n_local_regs. Don't return emitted local
3079 regs.
3080 (ia64_compute_frame_size): Improve unwind hack to put
3081 RP, PFS, FP in that order by allowing some of the registers
3082 been already emitted, as long as they are emitted to the
3083 desired register.
3084
3085 2007-09-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3086
3087 * config/spu/vmx2spu.h (vec_extract, vec_insert, vec_lvlx,
3088 vec_lvlxl, vec_lvrx, vec_lvrxl, vec_promote, vec_splats,
3089 vec_stvlx, vec_stvlxl, vec_stvrx, vec_stvrxl): New intrinsics.
3090
3091 2007-09-13 Eric Christopher <echristo@apple.com>
3092 Kenneth Zadeck <zadeck@naturalbridge.com>
3093
3094 * dse.c (find_shift_sequence): New function.
3095 (replace_read): Add case to remove read if it requires shift.
3096 * config/i386/i386.c (ix86_expand_prologue): Fixed typo in comment.
3097
3098 2007-09-13 Tom Tromey <tromey@redhat.com>
3099
3100 * c-common.c (fname_as_string): Update.
3101 * c-parser.c (c_parser) <lex_untranslated_string>: New field.
3102 (c_lex_one_token): Update. Add 'parser' argument.
3103 (c_parser_simple_asm_expr): Update.
3104 (c_parser_attributes): Update.
3105 (c_parser_asm_statement): Update.
3106 (c_parser_asm_operands): Update.
3107 (c_parser_peek_token): Update.
3108 (c_parser_peek_2nd_token): Update.
3109 * c-lex.c (c_lex_string_translate): Remove.
3110 (c_lex_return_raw_strings): Likewise.
3111 (c_lex_with_flags): Added 'lex_flags' argument.
3112 (lex_string): Added 'translate' argument.
3113 * c-pragma.h (c_lex_with_flags): Update.
3114 (c_lex_string_translate, c_lex_return_raw_strings): Remove.
3115 (C_LEX_STRING_NO_TRANSLATE): New define.
3116 (C_LEX_RAW_STRINGS): Likewise.
3117
3118 2007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
3119
3120 From Jie Zhang:
3121 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_ONES,
3122 BFIN_BUILTIN_CPLX_MUL_16_S40, BFIN_BUILTIN_CPLX_MAC_16_S40,
3123 BFIN_BUILTIN_CPLX_MSU_16_S40, and BFIN_BUILTIN_CPLX_SQU.
3124 (bfin_init_builtins): Initialize __builtin_bfin_ones,
3125 __builtin_bfin_min_fr1x16, __builtin_bfin_max_fr1x16,
3126 __builtin_bfin_min_fr1x32, __builtin_bfin_max_fr1x32,
3127 __builtin_bfin_cmplx_add, __builtin_bfin_cmplx_sub,
3128 __builtin_bfin_cmplx_mul_s40, __builtin_bfin_cmplx_mac_s40,
3129 __builtin_bfin_cmplx_msu_s40 and __builtin_bfin_csqu_fr16.
3130 (bdesc_1arg): Add __builtin_bfin_ones.
3131 (bfin_expand_builtin): Expand __builtin_bfin_cmplx_mul_s40,
3132 __builtin_bfin_cmplx_mac_s40, __builtin_bfin_cmplx_msu_s40,
3133 and __builtin_bfin_csqu_fr16.
3134 * config/bfin/bfin.md (UNSPEC_ONES): New constant.
3135 (ones): New define_insn.
3136 (ssaddhi3_parts): New define_insn.
3137 (sssubhi3_parts): New define_insn.
3138 (flag_mulhi_parts): New define_insn.
3139
3140 2007-09-13 Seongbae Park <seongbae.park@gmail.com>
3141
3142 * common.opt (femit-class-debug-always): Turn off by default.
3143
3144 2007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
3145
3146 * config/bfin/bfin.md (reload_outpdi, reload_inpdi): New patterns.
3147 * config/bfin/bfin.c (bfin_secondary_reload): Make sure we use them.
3148
3149 2007-09-13 James E. Wilson <wilson@specifix.com>
3150
3151 PR tree-optimization/33389
3152 * tree-ssa-operands.c (append_vuse): If ann->in_vdef_list true,
3153 then set build_loads before returning.
3154
3155 2007-09-13 Sandra Loosemore <sandra@codesourcery.com>
3156 David Ung <davidu@mips.com>
3157
3158 * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with
3159 {d}addiu and a negative immediate such that it works with MIPS16
3160 instructions.
3161
3162 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3163
3164 PR bootstrap/33418
3165 * configure.ac (ld_vers): Support Linux linker.
3166 * configure: Regenerated.
3167
3168 2007-09-13 Richard Sandiford <richard@codesourcery.com>
3169 Sandra Loosemore <sandra@codesourcery.com>
3170
3171 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Delete.
3172 (SYMBOL_REF_MIPS16_FUNC_P): Delete.
3173 * config/mips/mips.c (mips_attribute_table): Turn mips16 and
3174 nomips16 into decl attributes.
3175 (TARGET_INSERT_ATTRIBUTES): Override.
3176 (TARGET_MERGE_DECL_ATTRIBUTES): Likewise.
3177 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Always return true.
3178 (mips_mips16_type_p, mips_nomips16_type_p): Delete in favor of...
3179 (mips_mips16_decl_p, mips_nomips16_decl_p): ...these new functions.
3180 (mips_comp_type_attributes): Remove mips16 and nomips16 handling.
3181 (mips_use_mips16_mode_p): Reimplement as a function that takes
3182 a decl and considers only decl attributes. If the decl is nested
3183 function, use its parent attributes.
3184 (mips_function_ok_for_sibcall): Use mips_use_mips16_mode_p
3185 instead of SYMBOL_REF_MIPS16_FUNC_P.
3186 (mips_set_mips16_mode): Move call to sorry here from old
3187 mips_use_mips16_mode_p.
3188 (mflip_mips16_entry): New structure.
3189 (mflip_mips16_htab): New variable.
3190 (mflip_mips16_htab_hash, mflip_mips16_htab_eq): New functions.
3191 (mflip_mips16_use_mips16_p, mips_insert_attributes): Likewise.
3192 (mips_merge_decl_attributes): New function.
3193 (mips_set_current_function): Reinstate call to mips_set_mips16_mode.
3194 Use mips_use_mips16_mode_p.
3195 (mips_output_mi_thunk): Use mips_use_mips16_mode_p instead of
3196 SYMBOL_REF_MIPS16_FUNC_P.
3197 (mips_encode_section_info): Don't set SYMBOL_FLAG_MIPS16_FUNC.
3198
3199 2007-09-13 Richard Sandiford <richard@codesourcery.com>
3200
3201 * c-parser.c (c_parser_struct_declaration): Check for a null return.
3202
3203 2007-09-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3204
3205 PR driver/33309
3206 * gcc.c (xputenv): Make argument const, and use CONST_CAST.
3207
3208 2007-09-12 Michael Meissner <michael.meissner@amd.com>
3209 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3210 Tony Linthicum <tony.linthicum@amd.com>
3211
3212 * tree.h (function_args_iterator): New type to iterate over
3213 function arguments.
3214 (FOREACH_FUNCTION_ARGS_PTR): Iterator macros for iterating over
3215 function arguments providing a pointer to the argument.
3216 (FOREACH_FUNCTION_ARGS): Iterator macros for iterating over
3217 function arguments providing the argument.
3218 (function_args_iter_init): Inline function to initialize
3219 function_args_iterator.
3220 (function_args_iter_cond_ptr): Inline function to return the next
3221 pointer to hold the argument.
3222 (function_args_iter_cond): Inline function to return the next
3223 argument.
3224 (function_args_iter_cond_next): Advance the function args
3225 iterator.
3226 (stdarg_p): New function, return true if variable argument
3227 function.
3228 (prototype_p): New function, return true if function is
3229 prototyped.
3230 (function_args_count): New function, count the number of arguments
3231 of a function.
3232
3233 * tree.c (stdarg_p): New function, return true if variable
3234 argument function.
3235 (prototype_p): New function, return true if function is
3236 prototyped.
3237
3238 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
3239 (TARGET_ROUND): New macro for the round/ptest instructions which
3240 are shared between SSE4.1 and SSE5.
3241 (OPTION_MASK_ISA_ROUND): Ditto.
3242 (OPTION_ISA_ROUND): Ditto.
3243 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
3244 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
3245
3246 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
3247 (-mfused-madd): New switch to give users control over whether the
3248 compiler optimizes to use the multiply/add SSE5 instructions.
3249
3250 * config/i386/i386.c (m_AMD_MULTIPLE): Rename from
3251 m_ATHLON_K8_AMDFAM10, and change all uses.
3252 (enum pta_flags): Add PTA_SSE5.
3253 (ix86_handle_option): Turn off 3dnow if -msse5.
3254 (override_options): Add SSE5 support.
3255 (print_operand): %Y prints comparison codes for SSE5 com/pcom
3256 instructions.
3257 (ix86_expand_sse_movcc): Add SSE5 support.
3258 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
3259 vector type to the next largest size.
3260 (ix86_expand_sse5_pack): New function to use pperm to pack a
3261 vector type to the next smallest size.
3262 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
3263 (IX86_BUILTIN_FMADDSD): Ditto.
3264 (IX86_BUILTIN_FMADDPS): Ditto.
3265 (IX86_BUILTIN_FMADDPD): Ditto.
3266 (IX86_BUILTIN_FMSUBSS): Ditto.
3267 (IX86_BUILTIN_FMSUBSD): Ditto.
3268 (IX86_BUILTIN_FMSUBPS): Ditto.
3269 (IX86_BUILTIN_FMSUBPD): Ditto.
3270 (IX86_BUILTIN_FNMADDSS): Ditto.
3271 (IX86_BUILTIN_FNMADDSD): Ditto.
3272 (IX86_BUILTIN_FNMADDPS): Ditto.
3273 (IX86_BUILTIN_FNMADDPD): Ditto.
3274 (IX86_BUILTIN_FNMSUBSS): Ditto.
3275 (IX86_BUILTIN_FNMSUBSD): Ditto.
3276 (IX86_BUILTIN_FNMSUBPS): Ditto.
3277 (IX86_BUILTIN_FNMSUBPD): Ditto.
3278 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
3279 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
3280 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
3281 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
3282 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
3283 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
3284 (IX86_BUILTIN_PPERM): Ditto.
3285 (IX86_BUILTIN_PERMPS): Ditto.
3286 (IX86_BUILTIN_PERMPD): Ditto.
3287 (IX86_BUILTIN_PMACSSWW): Ditto.
3288 (IX86_BUILTIN_PMACSWW): Ditto.
3289 (IX86_BUILTIN_PMACSSWD): Ditto.
3290 (IX86_BUILTIN_PMACSWD): Ditto.
3291 (IX86_BUILTIN_PMACSSDD): Ditto.
3292 (IX86_BUILTIN_PMACSDD): Ditto.
3293 (IX86_BUILTIN_PMACSSDQL): Ditto.
3294 (IX86_BUILTIN_PMACSSDQH): Ditto.
3295 (IX86_BUILTIN_PMACSDQL): Ditto.
3296 (IX86_BUILTIN_PMACSDQH): Ditto.
3297 (IX86_BUILTIN_PMADCSSWD): Ditto.
3298 (IX86_BUILTIN_PMADCSWD): Ditto.
3299 (IX86_BUILTIN_PHADDBW): Ditto.
3300 (IX86_BUILTIN_PHADDBD): Ditto.
3301 (IX86_BUILTIN_PHADDBQ): Ditto.
3302 (IX86_BUILTIN_PHADDWD): Ditto.
3303 (IX86_BUILTIN_PHADDWQ): Ditto.
3304 (IX86_BUILTIN_PHADDDQ): Ditto.
3305 (IX86_BUILTIN_PHADDUBW): Ditto.
3306 (IX86_BUILTIN_PHADDUBD): Ditto.
3307 (IX86_BUILTIN_PHADDUBQ): Ditto.
3308 (IX86_BUILTIN_PHADDUWD): Ditto.
3309 (IX86_BUILTIN_PHADDUWQ): Ditto.
3310 (IX86_BUILTIN_PHADDUDQ): Ditto.
3311 (IX86_BUILTIN_PHSUBBW): Ditto.
3312 (IX86_BUILTIN_PHSUBWD): Ditto.
3313 (IX86_BUILTIN_PHSUBDQ): Ditto.
3314 (IX86_BUILTIN_PROTB): Ditto.
3315 (IX86_BUILTIN_PROTW): Ditto.
3316 (IX86_BUILTIN_PROTD): Ditto.
3317 (IX86_BUILTIN_PROTQ): Ditto.
3318 (IX86_BUILTIN_PROTB_IMM): Ditto.
3319 (IX86_BUILTIN_PROTW_IMM): Ditto.
3320 (IX86_BUILTIN_PROTD_IMM): Ditto.
3321 (IX86_BUILTIN_PROTQ_IMM): Ditto.
3322 (IX86_BUILTIN_PSHLB): Ditto.
3323 (IX86_BUILTIN_PSHLW): Ditto.
3324 (IX86_BUILTIN_PSHLD): Ditto.
3325 (IX86_BUILTIN_PSHLQ): Ditto.
3326 (IX86_BUILTIN_PSHAB): Ditto.
3327 (IX86_BUILTIN_PSHAW): Ditto.
3328 (IX86_BUILTIN_PSHAD): Ditto.
3329 (IX86_BUILTIN_PSHAQ): Ditto.
3330 (IX86_BUILTIN_FRCZSS): Ditto.
3331 (IX86_BUILTIN_FRCZSD): Ditto.
3332 (IX86_BUILTIN_FRCZPS): Ditto.
3333 (IX86_BUILTIN_FRCZPD): Ditto.
3334 (IX86_BUILTIN_CVTPH2PS): Ditto.
3335 (IX86_BUILTIN_CVTPS2PH): Ditto.
3336 (IX86_BUILTIN_COMEQSS): Ditto.
3337 (IX86_BUILTIN_COMNESS): Ditto.
3338 (IX86_BUILTIN_COMLTSS): Ditto.
3339 (IX86_BUILTIN_COMLESS): Ditto.
3340 (IX86_BUILTIN_COMGTSS): Ditto.
3341 (IX86_BUILTIN_COMGESS): Ditto.
3342 (IX86_BUILTIN_COMUEQSS): Ditto.
3343 (IX86_BUILTIN_COMUNESS): Ditto.
3344 (IX86_BUILTIN_COMULTSS): Ditto.
3345 (IX86_BUILTIN_COMULESS): Ditto.
3346 (IX86_BUILTIN_COMUGTSS): Ditto.
3347 (IX86_BUILTIN_COMUGESS): Ditto.
3348 (IX86_BUILTIN_COMORDSS): Ditto.
3349 (IX86_BUILTIN_COMUNORDSS): Ditto.
3350 (IX86_BUILTIN_COMFALSESS): Ditto.
3351 (IX86_BUILTIN_COMTRUESS): Ditto.
3352 (IX86_BUILTIN_COMEQSD): Ditto.
3353 (IX86_BUILTIN_COMNESD): Ditto.
3354 (IX86_BUILTIN_COMLTSD): Ditto.
3355 (IX86_BUILTIN_COMLESD): Ditto.
3356 (IX86_BUILTIN_COMGTSD): Ditto.
3357 (IX86_BUILTIN_COMGESD): Ditto.
3358 (IX86_BUILTIN_COMUEQSD): Ditto.
3359 (IX86_BUILTIN_COMUNESD): Ditto.
3360 (IX86_BUILTIN_COMULTSD): Ditto.
3361 (IX86_BUILTIN_COMULESD): Ditto.
3362 (IX86_BUILTIN_COMUGTSD): Ditto.
3363 (IX86_BUILTIN_COMUGESD): Ditto.
3364 (IX86_BUILTIN_COMORDSD): Ditto.
3365 (IX86_BUILTIN_COMUNORDSD): Ditto.
3366 (IX86_BUILTIN_COMFALSESD): Ditto.
3367 (IX86_BUILTIN_COMTRUESD): Ditto.
3368 (IX86_BUILTIN_COMEQPS): Ditto.
3369 (IX86_BUILTIN_COMNEPS): Ditto.
3370 (IX86_BUILTIN_COMLTPS): Ditto.
3371 (IX86_BUILTIN_COMLEPS): Ditto.
3372 (IX86_BUILTIN_COMGTPS): Ditto.
3373 (IX86_BUILTIN_COMGEPS): Ditto.
3374 (IX86_BUILTIN_COMUEQPS): Ditto.
3375 (IX86_BUILTIN_COMUNEPS): Ditto.
3376 (IX86_BUILTIN_COMULTPS): Ditto.
3377 (IX86_BUILTIN_COMULEPS): Ditto.
3378 (IX86_BUILTIN_COMUGTPS): Ditto.
3379 (IX86_BUILTIN_COMUGEPS): Ditto.
3380 (IX86_BUILTIN_COMORDPS): Ditto.
3381 (IX86_BUILTIN_COMUNORDPS): Ditto.
3382 (IX86_BUILTIN_COMFALSEPS): Ditto.
3383 (IX86_BUILTIN_COMTRUEPS): Ditto.
3384 (IX86_BUILTIN_COMEQPD): Ditto.
3385 (IX86_BUILTIN_COMNEPD): Ditto.
3386 (IX86_BUILTIN_COMLTPD): Ditto.
3387 (IX86_BUILTIN_COMLEPD): Ditto.
3388 (IX86_BUILTIN_COMGTPD): Ditto.
3389 (IX86_BUILTIN_COMGEPD): Ditto.
3390 (IX86_BUILTIN_COMUEQPD): Ditto.
3391 (IX86_BUILTIN_COMUNEPD): Ditto.
3392 (IX86_BUILTIN_COMULTPD): Ditto.
3393 (IX86_BUILTIN_COMULEPD): Ditto.
3394 (IX86_BUILTIN_COMUGTPD): Ditto.
3395 (IX86_BUILTIN_COMUGEPD): Ditto.
3396 (IX86_BUILTIN_COMORDPD): Ditto.
3397 (IX86_BUILTIN_COMUNORDPD): Ditto.
3398 (IX86_BUILTIN_COMFALSEPD): Ditto.
3399 (IX86_BUILTIN_COMTRUEPD): Ditto.
3400 (IX86_BUILTIN_PCOMEQUB): Ditto.
3401 (IX86_BUILTIN_PCOMNEUB): Ditto.
3402 (IX86_BUILTIN_PCOMLTUB): Ditto.
3403 (IX86_BUILTIN_PCOMLEUB): Ditto.
3404 (IX86_BUILTIN_PCOMGTUB): Ditto.
3405 (IX86_BUILTIN_PCOMGEUB): Ditto.
3406 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
3407 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
3408 (IX86_BUILTIN_PCOMEQUW): Ditto.
3409 (IX86_BUILTIN_PCOMNEUW): Ditto.
3410 (IX86_BUILTIN_PCOMLTUW): Ditto.
3411 (IX86_BUILTIN_PCOMLEUW): Ditto.
3412 (IX86_BUILTIN_PCOMGTUW): Ditto.
3413 (IX86_BUILTIN_PCOMGEUW): Ditto.
3414 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
3415 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
3416 (IX86_BUILTIN_PCOMEQUD): Ditto.
3417 (IX86_BUILTIN_PCOMNEUD): Ditto.
3418 (IX86_BUILTIN_PCOMLTUD): Ditto.
3419 (IX86_BUILTIN_PCOMLEUD): Ditto.
3420 (IX86_BUILTIN_PCOMGTUD): Ditto.
3421 (IX86_BUILTIN_PCOMGEUD): Ditto.
3422 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
3423 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
3424 (IX86_BUILTIN_PCOMEQUQ): Ditto.
3425 (IX86_BUILTIN_PCOMNEUQ): Ditto.
3426 (IX86_BUILTIN_PCOMLTUQ): Ditto.
3427 (IX86_BUILTIN_PCOMLEUQ): Ditto.
3428 (IX86_BUILTIN_PCOMGTUQ): Ditto.
3429 (IX86_BUILTIN_PCOMGEUQ): Ditto.
3430 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
3431 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
3432 (IX86_BUILTIN_PCOMEQB): Ditto.
3433 (IX86_BUILTIN_PCOMNEB): Ditto.
3434 (IX86_BUILTIN_PCOMLTB): Ditto.
3435 (IX86_BUILTIN_PCOMLEB): Ditto.
3436 (IX86_BUILTIN_PCOMGTB): Ditto.
3437 (IX86_BUILTIN_PCOMGEB): Ditto.
3438 (IX86_BUILTIN_PCOMFALSEB): Ditto.
3439 (IX86_BUILTIN_PCOMTRUEB): Ditto.
3440 (IX86_BUILTIN_PCOMEQW): Ditto.
3441 (IX86_BUILTIN_PCOMNEW): Ditto.
3442 (IX86_BUILTIN_PCOMLTW): Ditto.
3443 (IX86_BUILTIN_PCOMLEW): Ditto.
3444 (IX86_BUILTIN_PCOMGTW): Ditto.
3445 (IX86_BUILTIN_PCOMGEW): Ditto.
3446 (IX86_BUILTIN_PCOMFALSEW): Ditto.
3447 (IX86_BUILTIN_PCOMTRUEW): Ditto.
3448 (IX86_BUILTIN_PCOMEQD): Ditto.
3449 (IX86_BUILTIN_PCOMNED): Ditto.
3450 (IX86_BUILTIN_PCOMLTD): Ditto.
3451 (IX86_BUILTIN_PCOMLED): Ditto.
3452 (IX86_BUILTIN_PCOMGTD): Ditto.
3453 (IX86_BUILTIN_PCOMGED): Ditto.
3454 (IX86_BUILTIN_PCOMFALSED): Ditto.
3455 (IX86_BUILTIN_PCOMTRUED): Ditto.
3456 (IX86_BUILTIN_PCOMEQQ): Ditto.
3457 (IX86_BUILTIN_PCOMNEQ): Ditto.
3458 (IX86_BUILTIN_PCOMLTQ): Ditto.
3459 (IX86_BUILTIN_PCOMLEQ): Ditto.
3460 (IX86_BUILTIN_PCOMGTQ): Ditto.
3461 (IX86_BUILTIN_PCOMGEQ): Ditto.
3462 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
3463 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
3464 (bdesc_ptest): Change OPTION_MASK_ISA_SSE4_1 to
3465 OPTION_MASK_ISA_ROUND for instructions that are shared between
3466 SSE4.1 and SSE5.
3467 (bdesc_2arg): Ditto.
3468 (bdesc_sse_3arg): Ditto.
3469 (enum multi_arg_type): New enum for describing the various SSE5
3470 intrinsic argument types.
3471 (bdesc_multi_arg): New table for SSE5 intrinsics.
3472 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
3473 (ix86_expand_multi_arg_builtin): New function for creating SSE5
3474 intrinsics.
3475 (ix86_expand_builtin): Add SSE5 intrinsic support.
3476 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
3477 operand instructions.
3478 (ix86_expand_sse5_multiple_memory): New function to split the
3479 second memory reference from SSE5 instructions.
3480 (type_has_variadic_args_p): Delete in favor of stdarg_p.
3481 (ix86_return_pops_args): Use stdarg_p to determine if the function
3482 has variable arguments.
3483 (ix86_setup_incoming_varargs): Ditto.
3484 (x86_this_parameter): Ditto.
3485
3486 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
3487 declaration.
3488 (ix86_expand_sse5_pack): Ditto.
3489 (ix86_sse5_valid_op_p): Ditto.
3490 (ix86_expand_sse5_multiple_memory): Ditto.
3491
3492 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
3493 constant for SSE5 support.
3494 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
3495 (UNSPEC_SSE5_TRUEFALSE): Ditto.
3496 (UNSPEC_SSE5_PERMUTE): Ditto.
3497 (UNSPEC_SSE5_ASHIFT): Ditto.
3498 (UNSPEC_SSE5_LSHIFT): Ditto.
3499 (UNSPEC_FRCZ): Ditto.
3500 (UNSPEC_CVTPH2PS): Ditto.
3501 (UNSPEC_CVTPS2PH): Ditto.
3502 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
3503 (PCOM_TRUE): Ditto.
3504 (COM_FALSE_S): Ditto.
3505 (COM_FALSE_P): Ditto.
3506 (COM_TRUE_S): Ditto.
3507 (COM_TRUE_P): Ditto.
3508 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
3509 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
3510 types.
3511 (memory attribute): Ditto.
3512 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3513 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
3514 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3515 (floor<mode>2): Ditto.
3516 (ceil<mode>2): Ditto.
3517 (btrunc<mode>2): Ditto.
3518 (nearbyintdf2): Ditto.
3519 (nearbyintsf2): Ditto.
3520 (sse_setccsf): Disable if SSE5.
3521 (sse_setccdf): Ditto.
3522 (sse5_setcc<mode>): New support for SSE5 conditional move.
3523 (sse5_pcmov_<mode>): Ditto.
3524
3525 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
3526 (SSEMODEF4): Ditto.
3527 (SSEMODEF2P): Ditto.
3528 (ssemodesuffixf4): New mode attribute for SSE5.
3529 (ssemodesuffixf2s): Ditto.
3530 (ssemodesuffixf2c): Ditto.
3531 (sserotatemax): Ditto.
3532 (ssescalarmode): Ditto.
3533 (sse_maskcmpv4sf3): Disable if SSE5.
3534 (sse_maskcmpv2df3): Ditto.
3535 (sse_vmmaskcmpv4sf3): Ditto.
3536 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add
3537 instructions.
3538 (sse5_vmfmadd<mode>4): Ditto.
3539 (sse5_fmsub<mode>4): Ditto.
3540 (sse5_vmfmsub<mode>4): Ditto.
3541 (sse5_fnmadd<mode>4): Ditto.
3542 (sse5_vmfnmadd<mode>4): Ditto.
3543 (sse5_fnmsub<mode>4): Ditto.
3544 (sse5_vmfnmsub<mode>4): Ditto.
3545 (sse5i_fmadd<mode>4): Ditto.
3546 (sse5i_fmsub<mode>4): Ditto.
3547 (sse5i_fnmadd<mode>4): Ditto.
3548 (sse5i_fnmsub<mode>4): Ditto.
3549 (sse5i_vmfmadd<mode>4): Ditto.
3550 (sse5i_vmfmsub<mode>4): Ditto.
3551 (sse5i_vmfnmadd<mode>4): Ditto.
3552 (sse5i_vmfnmsub<mode>4): Ditto.
3553 (mulv16qi3): Add SSE5 support.
3554 (mulv4si3): Ditto.
3555 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
3556 (sse2_mulv4si3): Disable if SSE5.
3557 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
3558 (sse4_1_roundps): Ditto.
3559 (sse4_1_roundsd): Ditto.
3560 (sse4_1_roundss): Ditto.
3561 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
3562 be generated.
3563 (sse_maskcmpsf3): Ditto.
3564 (sse_vmmaskcmpv4sf3): Ditto.
3565 (sse2_maskcmpv2df3): Ditto.
3566 (sse2_maskcmpdf3): Ditto.
3567 (sse2_vmmaskcmpv2df3): Ditto.
3568 (sse2_eq<mode>3): Ditto.
3569 (sse2_gt<mode>3): Ditto.
3570 (sse5_pcmov_<mode>): Add SSE5 support.
3571 (vec_unpacku_hi_v16qi): Ditto.
3572 (vec_unpacks_hi_v16qi): Ditto.
3573 (vec_unpacku_lo_v16qi): Ditto.
3574 (vec_unpacks_lo_v16qi): Ditto.
3575 (vec_unpacku_hi_v8hi): Ditto.
3576 (vec_unpacks_hi_v8hi): Ditto.
3577 (vec_unpacku_lo_v8hi): Ditto.
3578 (vec_unpacks_lo_v8hi): Ditto.
3579 (vec_unpacku_hi_v4si): Ditto.
3580 (vec_unpacks_hi_v4si): Ditto.
3581 (vec_unpacku_lo_v4si): Ditto.
3582 (vec_unpacks_lo_v4si): Ditto.
3583 (sse5_pmacsww): New SSE5 intrinsic insn.
3584 (sse5_pmacssww): Ditto.
3585 (sse5_pmacsdd): Ditto.
3586 (sse5_pmacssdd): Ditto.
3587 (sse5_pmacssdql): Ditto.
3588 (sse5_pmacssdqh): Ditto.
3589 (sse5_pmacsdqh): Ditto.
3590 (sse5_pmacsswd): Ditto.
3591 (sse5_pmacswd): Ditto.
3592 (sse5_pmadcsswd): Ditto.
3593 (sse5_pmadcswd): Ditto.
3594 (sse5_pcmov_<move>): Conditional move support on SSE5.
3595 (sse5_phaddbw): New SSE5 intrinsic insn.
3596 (sse5_phaddbd): Ditto.
3597 (sse5_phaddbq): Ditto.
3598 (sse5_phaddwd): Ditto.
3599 (sse5_phaddwq): Ditto.
3600 (sse5_phadddq): Ditto.
3601 (sse5_phaddubw): Ditto.
3602 (sse5_phaddubd): Ditto.
3603 (sse5_phaddubq): Ditto.
3604 (sse5_phadduwd): Ditto.
3605 (sse5_phadduwq): Ditto.
3606 (sse5_phaddudq): Ditto.
3607 (sse5_phsubbw): Ditto.
3608 (sse5_phsubwd): Ditto.
3609 (sse5_phsubdq): Ditto.
3610 (sse5_pperm): Ditto.
3611 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
3612 (sse5_pperm_zero_v16qi_v8hi): Ditto.
3613 (sse5_pperm_sign_v8hi_v4si): Ditto.
3614 (sse5_pperm_zero_v8hi_v4si): Ditto.
3615 (sse5_pperm_sign_v4si_v2di): Ditto.
3616 (sse5_pperm_sign_v4si_v2di): Ditto.
3617 (sse5_pperm_pack_v2di_v4si): Ditto.
3618 (sse5_pperm_pack_v4si_v8hi): Ditto.
3619 (sse5_pperm_pack_v8hi_v16qi): Ditto.
3620 (sse5_perm<mode>): New SSE5 intrinsic insn.
3621 (rotl<mode>3): Ditto.
3622 (sse5_rotl<mode>3): Ditto.
3623 (sse5_ashl<mode>3): Ditto.
3624 (sse5_lshl<mode>3): Ditto.
3625 (sse5_frcz<mode>2): Ditto.
3626 (sse5s_frcz<mode>2): Ditto.
3627 (sse5_cvtph2ps): Ditto.
3628 (sse5_cvtps2ph): Ditto.
3629 (sse5_vmmaskcmp<mode>3): Ditto.
3630 (sse5_com_tf<mode>3): Ditto.
3631 (sse5_maskcmp<mode>3): Ditto.
3632 (sse5_maskcmp_uns<mode>3): Ditto.
3633 (sse5_maskcmp_uns2<mode>3): Ditto.
3634 (sse5_pcom_tf<mode>3): Ditto.
3635
3636 * config/i386/predicates.md (const_0_to_31_operand): New predicate
3637 to match 0..31.
3638 (sse5_comparison_float_operator): New predicate to match the
3639 comparison operators supported by the SSE5 com instruction.
3640 (ix86_comparison_int_operator): New predicate to match just the
3641 signed int comparisons.
3642 (ix86_comparison_uns_operator): New predicate to match just the
3643 unsigned int comparisons.
3644
3645 * doc/invoke.texi (-msse5): Add documentation.
3646 (-mfused-madd): Ditto.
3647
3648 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
3649
3650 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
3651 mmintrin-common.h.
3652 (x86_64-*-*): Ditto.
3653
3654 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
3655
3656 * config/i386/bmmintrin.h: New file, provide common x86 compiler
3657 intrinisics for SSE5.
3658
3659 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
3660 mmintrin-common.h.
3661
3662 * config/i386/mmintrin-common.h: New file, to contain common
3663 instructions between SSE4.1 and SSE5.
3664
3665 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
3666 FOREACH_FUNCTION_ARGS to iterate over the argument list.
3667 (gen_regparm_prefix): Ditto.
3668
3669 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
3670 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
3671 prototype_p to determine if a function is prototyped.
3672
3673 2007-09-12 Janis Johnson <janis187@us.ibm.com>
3674
3675 * config/dfp-bit.c (dfp_conversion_exception): New function.
3676 (DFP_TO_DFP) Add new variants to use direct conversions in decNumber.
3677 (DFP_TO_INT): Ditto.
3678 (INT_TO_DFP): Ditto.
3679 * config/dfp-bit.h (DEC_FLOAT_FROM_INT, DEC_FLOAT_TO_INT): New.
3680
3681 2007-09-12 Jakub Jelinek <jakub@redhat.com>
3682
3683 PR target/32338
3684 * config/ia64/ia64.c (ia64_expand_epilogue): Emit blockage
3685 before sp restoration even when total_size is 0, but
3686 frame_pointer_needed.
3687
3688 2007-09-12 Bob Wilson <bob.wilson@acm.org>
3689
3690 * config/xtensa/xtensa.c (machine_function): Add vararg_a7_copy.
3691 (xtensa_copy_incoming_a7): Use start_sequence instead of
3692 push_to_sequence. Stash insns in vararg_a7_copy for builtin_saveregs.
3693 (xtensa_builtin_saveregs): Place code from vararg_a7_copy at the start
3694 of the saveregs sequence.
3695
3696 2007-09-12 Richard Sandiford <richard@codesourcery.com>
3697
3698 * c-tree.h (grokfield): Add a "tree *" argument.
3699 * c-decl.c (grokdeclarator): Take a pointer to the decl's attributes.
3700 Chain nested decl attributes to it. Don't call decl_attributes here.
3701 (groktypename): Pass grokdeclarator a pointer to the attribute list.
3702 (start_decl, grokparm, push_parm_decl, start_function): Likewise.
3703 (grokfield): Take a pointer to the decl's attributes and pass
3704 it to grokdeclarator.
3705 * c-parser.c (c_parser_struct_declaration): Update the calls to
3706 grokfield. Call decl_attributes for anonymous struct and union
3707 fields.
3708
3709 2007-09-12 Jan Hubicka <jh@suse.cz>
3710
3711 * c-objc-common.h (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
3712
3713 2007-09-12 Ira Rosen <irar@il.ibm.com>
3714
3715 PR tree-optimization/32377
3716 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Distinguish
3717 between positive and negative dependence distance using DDR_REVERSED_P.
3718
3719 2007-09-12 Dorit Nuzman <dorit@il.ibm.com>
3720
3721 PR tree-optimization/33373
3722 * tree-vect-analyze (vect_determine_vectorization_factor): Call
3723 TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT.
3724
3725 2007-09-12 Jan Hubicka <jh@suse.cz>
3726
3727 PR target/33393
3728 * i386.md (floatsisf2_mixed_memory, floatsisf2_sse_memory): Disable
3729 for !SSE_MATH
3730
3731 2007-09-12 Christian Bruel <christian.bruel@st.com>
3732
3733 * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
3734 * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed.
3735
3736 2007-09-12 Ira Rosen <irar@il.ibm.com>
3737
3738 * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
3739 for oprnd1 if not required.
3740 (vectorizable_operation): Use scalar operand in SLP in case of
3741 shift with scalar argument.
3742
3743 2007-09-12 Ira Rosen <irar@il.ibm.com>
3744
3745 * params.def (PARAM_MIN_VECT_LOOP_BOUND): Change default and minimum
3746 to 1.
3747
3748 2007-09-11 James E. Wilson <wilson@specifix.com>
3749
3750 * defaults.h (DWARF2_UNWIND_INFO): Don't define if
3751 TARGET_UNWIND_INFO is defined.
3752 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
3753 after definition.
3754
3755 2007-09-12 Kaz Kojima <kkojima@gcc.gnu.org>
3756
3757 * config/sh/sh.c (calc_live_regs): Use
3758 current_function_saves_all_registers instead of
3759 current_function_has_nonlocal_label.
3760 (sh_allocate_initial_value): Likewise.
3761 (sh_get_pr_initial_val): Likewise.
3762 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Likewise.
3763 * config/sh/sh.md (load_ra): Likewise.
3764
3765 2007-09-12 Hans-Peter Nilsson <hp@axis.com>
3766
3767 * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.
3768
3769 PR target/33360
3770 * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
3771 GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
3772
3773 2007-09-12 Sa Liu <saliu@de.ibm.com>
3774
3775 * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
3776 operands to DFmode GE or LE compares.
3777
3778 2007-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
3779
3780 * config/bfin/bfin.h (enum reg_class, REG_CLASS_CONTENTS,
3781 REG_CLASS_NAMES): Add P0REGS.
3782 (REGNO_REG_CLASS): Return it where appropriate.
3783 (REG_CLASS_FROM_CONSTRAINT): Add 'qA'.
3784 (CLASS_LIKELY_SPILLED_P): P0REGS is likely_spilled.
3785 * doc/md.texi (Blackfin family): Document 'q' constraints.
3786
3787 2007-09-11 Steve Kenton <skenton@ou.edu>
3788
3789 * pa/linux-unwind.h: Guard with inhibit_libc.
3790 * pa/hpux-unwind.h: Likewise.
3791
3792 2007-09-11 David Daney <ddaney@avtrex.com>
3793
3794 * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
3795 * doc/install.texi: Document new --with-llsc and --without-llsc
3796 options.
3797 * config.gcc: Handle --with-llsc and --without-llsc configure options.
3798 * config/mips/mips.md (sync, memory_barrier): Wrap sync instrunction
3799 in %| and %- operand codes. Depend on GENERATE_SYNC instead of
3800 ISA_HAS_SYNC.
3801 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
3802 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
3803 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
3804 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3805 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Depend on
3806 GENERATE_LL_SC instead of ISA_HAS_LL_SC.
3807 * config/mips/mips.opt (mllsc): New option.
3808 * config/mips/mips.c (mips_llsc): Define variable.
3809 (mips_handle_option): Handle mllsc option.
3810 (override_options): Set mips_print_operand_punct for '|' and '-'.
3811 (print_operand): Add new %| and %- operand codes.
3812 * config/mips/mips.h (mips_llsc_setting): New enum type.
3813 (mips_llsc): Declare.
3814 (OPTION_DEFAULT_SPECS): Add llsc handling.
3815 (GENERATE_SYNC): New macro.
3816 (GENERATE_LL_SC): New macro.
3817 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
3818 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
3819 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Wrap instructions
3820 in %| and %- operand codes.
3821
3822 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
3823
3824 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Deal with
3825 TYPE_NONALIASED_COMPONENT like with DECL_NONADDRESSABLE_P.
3826
3827 2007-09-11 Jason Merrill <jason@redhat.com>
3828
3829 PR middle-end/27945
3830 * stor-layout.c (layout_decl): Do pack variable size fields.
3831
3832 2007-09-11 Maxim Kuvyrkov <maxim@codesourcery.com>
3833
3834 * config/m68k/predicates.md (movsi_const0_operand,
3835 non_symbolic_call_operand): New predicates.
3836
3837 * config/m68k/constraints.md (Cs, Ci, C0, Cj, CQ, CW, CZ, CS, Ap, Ac):
3838 New constraints.
3839 * doc/md.texi (Constraints for Particular Machines: Motorola 680x0):
3840 Document constraints N, O, P, R, S, T, Q, U, W, Cs, Ci, C0, Cj, CQ,
3841 CW, CZ, CS, Ap and Ac.
3842
3843 * config/m68k/m68k.md (UNSPEC_IB): New constant.
3844 (constraints.md): New include.
3845 (cpu, type, type1, opx, opy, opx_type, opy_type, size, opx_access,
3846 opx_mem, opy_mem, op_mem, guess, split): New attributes.
3847 (movdf_internal): Name pattern. Fix to use alternatives. Add split.
3848 Specify attributes.
3849 (pushdi): Add split.
3850 (tstsi_internal): Name pattern. Fix to use alternatives. Specify
3851 attributes. Split tstsi_internal_68020_cf from it.
3852 (tstsi_internal_68020_cf): New pattern.
3853 (tsthi_internal, tstqi_internal): Name pattern. Specify attributes.
3854 (tst<mode>_cf): Specify attributea.
3855 (cmpsi_cf): Name pattern. Specify attributes.
3856 (cmp<mode>_68881, cmp<mode>_cf): Specify type attribute.
3857 (pushexthisi_const): Fix to use alternatives. Specify
3858 attributes.
3859 (movsi_const0): Split movsi_const0_68000_10 and movsi_const0_68040_60
3860 from it. Fix to use alternatives. Specify attributes.
3861 (movsi_const0_68040_10, movsi_const0_68040_60): New patterns.
3862 (movsi_cf, movstrictqi_cf): Fix to use alternatives. Specify
3863 attributes.
3864 (movsf_cf_soft): Specify attributes.
3865 (movdf_cf_soft): Add split.
3866 (pushasi, zero_extendhisi2_cf, zero_extendqisi2_cfv4,
3867 cfv4_extendhisi2, 68k_extendhisi2, extendqihi2, cfv4_extendqisi2,
3868 68k_extendqisi2, truncdfsf2_cf): Specify attributes.
3869 (truncdfsf2_68881): Name pattern. Specify attributes.
3870 (floatsi<mode>2_cf, floathi<mode>2_68881, floathi<mode>2_cf,
3871 floatqi<mode>2_68881, floatqi<mode>2_cf, ftrunc<mode>2_cf,
3872 fix<mode>qi2_cf, fix<mode>hi2_cf, fix<mode>si2_cf, adddi_dishl32):
3873 Specify attributes.
3874 (addsi3_5200): Fix to use alternatives. Specify attributes.
3875 Add splits.
3876 (add<mode>3_cf, subdi_dishl32): Specify attributes.
3877 (subsi3): Add alternative for subq.l. Specify attributes.
3878 (sub<mode>3_cf, mulhi3, mulhisi3): Specify attributes.
3879 (mulhisisi3_s, mulsi3_68020, mulsi3_cf): Name pattern. Specify
3880 attributes.
3881 (umulhisi3): Specify attributes.
3882 (mulhisisi3_z): Name pattern. Specify attributes.
3883 (fmul<mode>3_cf, div<mode>3_cf, negsi2_internal, negsi2_5200,
3884 sqrt<mode>2_68881, clzsi2, one_cmplsi2_5200, subreghi1ashrdi_const32,
3885 subregsi1ashrdi_const32, ashrsi3, subreg1lshrdi_const32, lshrsi3,
3886 bsetmemqi): Specify attributes.
3887 (bsetmemqi_ext): Name pattern. Specify attributes.
3888 (bclrmemqi): Specify attributes.
3889 (bclrmemqi_ext, scc, sls): Name pattern. Specify attributes.
3890 (beq, bne, bgt, bgtu, blt, bltu, bge, bgeu, ble, bleu): Specify
3891 attributes.
3892 (beq2, bne2, bgt2, bgtu2, blt2, bltu2, bge2, bgeu2, ble2, bleu2): Name
3893 pattern. Specify attributes.
3894 (jump): Specify attributes.
3895 (tablejump_internal): Name pattern. Specify attributes.
3896 (call_value): Split into non_symbolic_call_value,
3897 symbolic_call_value_jsr, symbolic_call_value_bsr. Fix to use
3898 alternatives. Specify attributes.
3899 (non_symbolic_call_value, symbolic_call_value_jsr,
3900 symbolic_call_value_bsr): New patterns.
3901 (nop, return, unlink, indirect_jump): Specify attributes.
3902 (trap): Fix condition. Specify attributes.
3903 (ib): New pattern.
3904
3905 * config/m68k/m68k.c (m68k_symbolic_call_var): New variable.
3906 (override_options): Initialize it. Initialize m68k_sched_cpu.
3907 (CONST_METHOD): Rename to M68K_CONST_METHOD, move to m68k.h.
3908 (const_method): Make global, rename to m68k_const_method.
3909 (const_int_cost, output_move_const_into_data_reg): Update.
3910 (output_move_double): Parametrize to emit rtl code, rename to
3911 handle_move_double.
3912 (output_reg_adjust, emit_reg_adjust, output_compadr, output_movsi,
3913 emit_movsi): New static functions.
3914 (output_move_double): New function with semantics of old
3915 output_move_double.
3916 (m68k_emit_move_double): New function.
3917 (m68k_sched_cpu): New variable.
3918 (attr_op_type): New enum.
3919 (sched_guess_p): New variable.
3920 (sched_address_type, sched_operand_type, sched_attr_op_type):
3921 New static functions.
3922 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
3923 m68k_sched_attr_size, m68k_sched_attr_op_mem): New functions.
3924 (sched_branch_type): New static variable.
3925 (m68k_sched_branch_type): New function.
3926 * config/m68k/m68k.h (M68K_SYMBOLIC_CALL): New enum.
3927 (m68k_symbolic_call_var): Declare.
3928 (M68K_CONST_METHOD): Rename from CONST_METHOD. Move here from m68k.c.
3929 (m68k_const_method, m68k_emit_move_double, m68k_sched_cpu,
3930 m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
3931 m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type):
3932 Declare.
3933
3934 2007-09-11 Jakub Jelinek <jakub@redhat.com>
3935
3936 * builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
3937 * builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
3938 error if __builtin_va_arg_pack_len () wasn't optimized out during
3939 inlining.
3940 * tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
3941 with the number of inline's anonymous arguments.
3942 * doc/extend.texi: Document __builtin_va_arg_pack_len ().
3943
3944 2007-09-11 Zdenek Dvorak <ook@ucw.cz>
3945
3946 * fold-const.c (extract_muldiv_1): Do not simplify
3947 var * c * c to var.
3948
3949 2007-09-11 Jan Hubicka <jh@suse.cz>
3950
3951 * i386.h (ix86_tune_indices): Add X86_TUNE_INTER_UNIT_CONVERSIONS.
3952 (TARGET_INTER_UNIT_CONVERSIONS): New.
3953 * i386.md (floatsi expanders): Remove redundant check for SImode
3954 source; offload to memory when asked for.
3955 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse
3956 floatdisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
3957 Update conditions;
3958 (floatsisf2_mixed_memory, floatsisf2_sse_memory,
3959 floatsidf2_mixed_memory, floatsidf2_sse_memory
3960 floatdisf2_mixed_memory, floatsisf2_sse_memory,
3961 floatsidf2_mixed_memory, floatsidf2_sse_memory): New.
3962
3963 2007-09-11 Jan Hubicka <jh@suse.cz>
3964
3965 * toplev.c (process_options): all frontends now do unit-at-a-time.
3966 * cgraphunit.c: update comments.
3967 (cgraph_expand_function): call passmanager dirrectly; emit thunks.
3968 * c-decl.c (finish_function): use cgraph_add_new_function.
3969 * function.c (expand_function_end): We are always unit-at-a-time.
3970
3971 2007-09-11 Richard Sandiford <richard@codesourcery.com>
3972
3973 * config/mips/mips.c (mips_set_mips16_mode): Use separate anchor
3974 settings for MIPS16.
3975 (mips_use_anchors_for_symbol_p): Use default_use_anchors_for_symbol_p.
3976
3977 2007-09-11 Richard Sandiford <richard@codesourcery.com>
3978
3979 * config/mips/mips.c (mips_symbol_insns_1): Allow LEAs of
3980 SYMBOL_FORCE_TO_MEM constants.
3981 (mips_rtx_costs): Give a cost of 1 to force_to_mem_operands.
3982 (mips16_rewrite_pool_refs_info): New structure.
3983 (mips16_rewrite_pool_constant): New function, split out from...
3984 (mips16_rewrite_pool_refs): ...here. Take a pointer to a
3985 mips16_rewrite_pool_refs_info structure rather than a pointer
3986 to a constant pool. Force force_to_mem_operands into memory.
3987 (mips16_lay_out_constants): Update call to mips16_rewrite_pool_refs.
3988 * config/mips/predicates.md (force_to_mem_operand): New predicate.
3989 * config/mips/constraints.md (kf): New constraint.
3990 * config/mips/mips.md (*movdi_64bit_mips16): Add a d <- kf alternative.
3991 (*movsi_mips16): Likewise.
3992
3993 2007-09-11 Richard Sandiford <richard@codesourcery.com>
3994 Nigel Stephens <nigel@mips.com>
3995 David Ung <davidu@mips.com>
3996
3997 * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
3998 * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
3999 (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
4000 (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
4001 (mips_zero_extend_cost): New functions.
4002 (mips_rtx_costs): Treat COMPARE constants as having zero cost.
4003 Use the new functions. Tweak many cost estimates, both here
4004 and in the new subroutines. Return false when the cost of the
4005 operands has not been calculated. Check for *clear_upper32.
4006 Check for floating-point multiply-add, reciprocal and rsqrt
4007 patterns. Handle comparison and rotation codes.
4008
4009 2007-09-11 Danny Smith <dannysmith@users.sourceforge.net>
4010
4011 * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
4012 override default.
4013 * config/i386/i386.c (get_dllimport_decl): Don't strip
4014 FASTCALL_PREFIX.
4015
4016 2007-09-10 Janis Johnson <janis187@us.ibm.com>
4017
4018 PR c/30013
4019 * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
4020 declarations to top.
4021 (DFP_TO_BFP): Use for either XFmode or TFmode.
4022 (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
4023 of BFP_VIA_TYPE.
4024 * config/dfp-bit.h: Include float.h.
4025 (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
4026 double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
4027 which doesn't mean the same thing.
4028 (BFP_KIND): Use 4 to mean TFmode.
4029 (BFP_FMT): Specify the number of decimal digits based on the
4030 number of mantissa digits.
4031 (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
4032 (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
4033 (STR_TO_BFP): Use strtold for XFmode or TFmode.
4034 (TFtype): Define if TFmode is supported.
4035 * doc/libgcc.texi (Decimal float library routines): Document
4036 TF conversion functions.
4037
4038 2007-09-10 Chao-ying Fu <fu@mips.com>
4039
4040 * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
4041 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4042 (mips_emit_compare): Process fixed-point modes.
4043 (mips_pad_arg_upward): Support fixed-point types.
4044 (override_options): Allow fixed-point modes in accumulators.
4045 (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
4046 (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
4047 V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
4048 (mips_scalar_mode_supported_p): New function to accept fixed-point
4049 modes if the width is not greater than two BITS_PER_WORD.
4050 * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
4051 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
4052 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
4053 LONG_LONG_ACCUM_TYPE_SIZE): Define.
4054 * config/mips/mips.md ("d"): Update mode attribute for fixed-point
4055 modes.
4056 ("IMODE"): New mode attribute.
4057 (mips-fixed.md): Include.
4058 * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
4059 ACCUM, UACCUM.
4060 * config/mips/mips-fixed.md: New file.
4061
4062 2007-09-11 Ben Elliston <bje@au.ibm.com>
4063
4064 * config/spu/spu.md: Formatting fixes.
4065
4066 2007-09-10 Janis Johnson <janis187@us.ibm.com>
4067
4068 * config/dfp-bit.c (dfp_unary_func): Delete.
4069 (dfp_unary_op): Delete.
4070 (dfp_binary_op): Use decFloat functions instead of decNumber
4071 functions for binary operations.
4072 (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
4073 (dnn_binary_op): Call dfp_binary_op with decFloat rather than
4074 DFP_C_TYPE.
4075 (dfp_compare_op): Use decFloat functions insteadof decNumber
4076 functions for comparisons.
4077 (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
4078 (dnn_binary_op): Call dfp_compare_op with decFloat rather than
4079 DFP_C_TYPE.
4080 (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
4081 call to dxx_binary_op and decFloat function.
4082 (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
4083 calls to dxx_binary_op and decFloat function.
4084 * config/dfp-bit.h: Include decFloat header files.
4085 (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
4086 DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
4087 DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
4088 DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
4089
4090 2007-09-10 Harsha Jagasia <harsha.jagasia@amd.com>
4091 Jan Sjodin <jan.sjodin@amd.com>
4092
4093 * tree-vect-analyze.c (vect_analyze_operations): Change
4094 comparison of loop iterations with threshold to less than
4095 or equal to instead of less than. Reduce
4096 min_scalar_loop_bound by one.
4097 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
4098 Change prologue and epilogue iterations estimate to vf/2,
4099 when unknown at compile-time. Change versioning guard
4100 cost to taken_branch_cost. If peeling for alignment is
4101 unknown at compile-time, change peel guard costs to one
4102 taken branch and one not-taken branch per peeled loop.
4103 If peeling for alignment is known but number of scalar loop
4104 iterations is unknown at compile-time, change peel guard
4105 costs to one taken branch per peeled loop. Change the cost
4106 model equation to consider vector iterations as the loop
4107 iterations less the prologue and epilogue iterations.
4108 Change outside vector cost check to less than or equal to
4109 zero instead of equal to zero.
4110 (vect_do_peeling_for_loop_bound): Reduce
4111 min_scalar_loop_bound by one.
4112 * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
4113 TARG_COND_NOT_TAKEN_BRANCH_COST.
4114 * config/i386/i386.h (processor_costs): Add
4115 scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
4116 vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
4117 vec_align_load_cost, vect_unalign_load_cost,
4118 vec_store_cost, cond_taken_branch_cost,
4119 cond_not_taken_branch_cost.
4120 Define macros for x86 costs.
4121 * config/i386/i386.c:
4122 (size_cost): Set scalar_stmt_cost, scalar_load_cost,
4123 scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
4124 scalar_to_vec_cost, vec_align_load_cost,
4125 vect_unalign_load_cost, vec_store_cost,
4126 cond_taken_branch_cost, cond_not_taken_branch_cost to one.
4127 (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
4128 geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost,
4129 core2_cost, generic64_cost, generic32_cost): Set to default
4130 untuned costs.
4131 (k8_cost, amdfam10_cost): Costs for vectorization tuned.
4132 (x86_builtin_vectorization_cost): New.
4133
4134 2007-09-10 Janis Johnson <janis187@us.ibm.com>
4135 Ben Elliston <bje@au.ibm.com>
4136
4137 * dfp.c: Include decimal128Local.h;
4138 (dfp_byte_swap): Remove.
4139 (encode_decimal32, decode_decimal32): Don't handle endianness.
4140 (encode_decimal64, decode_decimal64): Ditto.
4141 (encode_decimal128, decode_decimal128): Ditto.
4142 * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
4143 (__swap64): Remove.
4144 (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
4145 (__swap128): Remove
4146 (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
4147 * Makefile.in (DECNUM_H): Add decimal128Local.h.
4148
4149 2007-09-10 David Daney <ddaney@avtrex.com>
4150
4151 * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
4152 define_constants.
4153 (memory_barrier): Rewrote as an insn that clobbers memory.
4154
4155 2007-09-10 Richard Sandiford <richard@codesourcery.com>
4156
4157 * config/mips/mips.c (mips_global_pointer): Check
4158 call_really_used_regs instead of call_used_regs.
4159 (mips_save_reg_p): Likewise. Save all call-saved registers
4160 if current_function_saves_all_registers. Fix indentation.
4161 No longer treat $18 as a special case.
4162 (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
4163
4164 2007-09-10 Richard Sandiford <richard@codesourcery.com>
4165
4166 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
4167 * config/mips/mips.c (mips_cpu_info_table): Mention it in the
4168 the introductory comment.
4169 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
4170 (override_options): Don't test for it.
4171 * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
4172 (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
4173 * config/mips/vr.h: As for config/mips/sde.h.
4174
4175 2007-09-10 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4176 Revital Eres <eres@il.ibm.com>
4177
4178 * target.h (struct gcc_target.sched): New field: sms_res_mii.
4179 (struct ddg): Define.
4180 * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
4181 (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
4182 * config/spu/spu.c: Include ddg.h.
4183 (TARGET_SCHED_SMS_RES_MII): Define.
4184 (spu_sms_res_mii): New function to calculate mii.
4185 * modulo-sched (res_MII): Use it.
4186 * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
4187
4188 2007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
4189
4190 * config/s390/s390.c (s390_dump_pool): Create copy of constant
4191 pool entries since they might hold values that must not be shared.
4192
4193 2007-09-10 Uros Bizjak <ubizjak@gmail.com>
4194
4195 PR target/33369
4196 * gcc/config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
4197 Use 'N' operand constraint for op2.
4198 (lshr<mode>3): Ditto.
4199 (ashl<mode>3): Ditto.
4200 (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
4201 (vec_shr_<mode>): Ditto.
4202 * gcc/config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
4203 IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
4204
4205 2007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
4206
4207 * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
4208 Change mode macro in the last real_2expN parameter to uppercase.
4209
4210 2007-09-10 Michael Matz <matz@suse.de>
4211
4212 * tree-pass.h (pass_cselim): Declare new pass.
4213 * passes.c (init_optimization_passes): Link in pass_cselim.
4214 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
4215 tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
4216 cond_store_replacement.
4217 (condstoretemp): New static variable.
4218 (cond_store_replacement): New function.
4219 (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
4220 tree_ssa_phiopt_worker.
4221 (struct name_to_bb): New.
4222 (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
4223 nt_init_block, nt_fini_block): New static functions.
4224 (seen_ssa_names, nontrap_set): New static variables.
4225 (gate_cselim, pass_cselim): Define new pass.
4226 * common.opt (ftree-cselim): New flag.
4227 * toplev.c (process_options): Set flag_tree_cselim if required.
4228
4229 2007-09-10 Hans-Peter Nilsson <hp@axis.com>
4230
4231 * simplify-rtx.c (simplify_relational_operation_1): For recent
4232 canonicalization, don't recurse if op1 equals both PLUS arguments.
4233
4234 2007-09-09 David Daney <ddaney@avtrex.com>
4235
4236 * optabs.c (expand_sync_operation): Use plus insn if minus
4237 CONST_INT_P(val).
4238 (expand_sync_fetch_operation): Ditto.
4239
4240 2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
4241
4242 * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
4243 of cvtpq2ps.
4244 (*floatsisf2_sse_vector): Likewise.
4245
4246 2007-09-09 Krister Walfridsson <cato@df.lth.se>
4247
4248 * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
4249
4250 2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
4251
4252 * config/i386/i386.h (ix86_tune_indices): Rename
4253 X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
4254 (TARGET_USE_VECTOR_CONVERTS): Updated.
4255 * config/i386/i386.c: Likewise.
4256
4257 2007-09-09 Sandra Loosemore <sandra@codesourcery.com>
4258 Nigel Stephens <nigel@mips.com>
4259
4260 * doc/invoke.texi (Overall Options): Add .sx file extension
4261 as a synonym for .S.
4262 * cppspec.c (known_suffixes): Likewise.
4263 * gcc.c (default_compilers): Likewise.
4264
4265 2007-09-09 Rask Ingemann Lambertsen <rask@sygehus.dk>
4266
4267 PR target/30315
4268 * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
4269 * simplify-rtx.c (simplify_relational_operation_1): Add the
4270 canonicalization from i386.h.
4271 * doc/md.texi (Canonicalization of Instructions): Document it.
4272
4273 2007-09-09 Jan Hubicka <jh@suse.cz>
4274 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4275
4276 * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
4277 (TARGET_USE_VECTOR_CONVERTS): New.
4278 * i386.md: New post-reload splitters for converting SF to DF and DF to
4279 SF.
4280 (floatsi* expander): Special case vector conversions.
4281 (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
4282 floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
4283 floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
4284 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
4285 Disable when doing vector converts.
4286 (floatsi<mode>2_i387): Disable when
4287 * sse.md (vec_dupv2df): Export.
4288 * i386.c (ix86_tune_features): Enable SSE conversions.
4289
4290 2007-09-09 Richard Guenther <rguenther@suse.de>
4291
4292 * tree-ssa-operands.c (add_virtual_operand): Only mark
4293 stores as has_volatile_ops if alias information is not available.
4294
4295 2007-09-09 Revital Eres <eres@il.ibm.com>
4296
4297 * doc/contrib.texi: Add myself.
4298
4299 2007-09-09 Ira Rosen <irar@il.ibm.com>
4300
4301 * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
4302 stmt_vinfo_set_outside_of_loop_cost): New functions.
4303 * tree-vect-transform.c (vect_get_cost_fields): Remove.
4304 (vect_model_simple_cost): Call
4305 stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
4306 field instead of calling vect_get_cost_fields.
4307 (vect_model_store_cost, vect_model_load_cost): Likewise.
4308
4309 2007-09-09 Revital Eres <eres@il.ibm.com>
4310
4311 * config/rs6000/rs6000.c (paired_init_builtins): Add const
4312 declaration to bdesc_paired_preds variable.
4313 (paired_expand_builtin): Likewise.
4314
4315 2007-09-09 Revital Eres <eres@il.ibm.com>
4316
4317 * dbgcnt.def (sms_sched_loop): New counter.
4318 * modulo-sched.c: Use sms_sched_loop instead of
4319 MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
4320 perform swing modulo scheduling on. Include dbgcnt.h.
4321 * Makefile.in: Add DBGCNT_H to modulo-sched.o.
4322 * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
4323
4324 2007-09-09 Uros Bizjak <ubizjak@gmail.com>
4325
4326 * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
4327 Substitute all uses with ...
4328 (MODEF): New mode iterator.
4329
4330 (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
4331 from pre-regalloc define_insn_and_split splitter pattern.
4332 (*fix_trunc<mode>_i387_1): Ditto.
4333 (*fistdi2_1): Ditto.
4334 (*fist<mode>2_1): Ditto.
4335 (frndintxf2_floor): Ditto.
4336 (*fist<mode>2_floor_1): Ditto.
4337 (frndintxf2_ceil): Ditto.
4338 (*fist<mode>2_ceil_1): Ditto.
4339 (frndintxf2_trunc): Ditto.
4340 (frndintxf2_mask_pm): Ditto.
4341
4342 (prologue): Use (const_int 0) as never generated filler insn.
4343 (epilogue): Ditto.
4344 (sibcall_epilogue): Ditto.
4345 (eh_return_si): Ditto.
4346 (eh_return_di): Ditto.
4347
4348 (add<mode>3): Rename from adddf3 and addsf3. Macroize expander
4349 using MODEF mode iterator.
4350 (sub<mode>3): Rename from subdf3 and subsf3. Macroize expander
4351 using MODEF mode iterator.
4352 (mul<mode>3): Rename from muldf3 and mulsf3. Macroize expander
4353 using MODEF mode iterator.
4354 (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
4355 Macroize expander using MODEF mode iterator.
4356
4357 (zero_extendsidi2): Remove operand constraints from expander.
4358 (smuldi3_highpart): Ditto.
4359 (indirect_jump): Ditto.
4360 (tablejump): Ditto.
4361 (rsqrtsf2): Ditto.
4362 * config/i386/sse.md (storentv4sf): Ditto.
4363 (storentv2df): Ditto.
4364 (storentv2di): Ditto.
4365 (storentsi): Ditto.
4366 (sse2_cvtpd2ps): Ditto.
4367 (vec_interleave_highv16qi): Ditto.
4368 (vec_interleave_lowv16qi): Ditto.
4369 (vec_interleave_highv8hi): Ditto.
4370 (vec_interleave_lowv8hi): Ditto.
4371 (vec_interleave_highv4si): Ditto.
4372 (vec_interleave_lowv4si): Ditto.
4373 (vec_interleave_highv2di): Ditto.
4374 (vec_interleave_lowv2di): Ditto.
4375 (sse2_maskmovdqu): Ditto.
4376 * config/i386/mmx.md (mmx_maskmovq): Ditto.
4377
4378 2007-09-09 Ira Rosen <irar@il.ibm.com>
4379
4380 * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
4381 (struct _slp_tree, struct _slp_instance): Define new data structures
4382 along macros for their access.
4383 (struct _loop_vec_info): Define new fields: strided_stores,
4384 slp_instances, and slp_unrolling_factor along macros for their access.
4385 (enum slp_vect_type): New.
4386 (struct _stmt_vec_info): Define new field, slp_type, and macros for
4387 its access.
4388 (STMT_VINFO_STRIDED_ACCESS): New macro.
4389 (vect_free_slp_tree): Declare.
4390 (vectorizable_load): Add an argument of type slp_tree.
4391 (vectorizable_store, vectorizable_operation, vectorizable_conversion,
4392 vectorizable_assignment): Likewise.
4393 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
4394 Declare (make extern).
4395 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
4396 (new_loop_vec_info): Likewise.
4397 (destroy_loop_vec_info): Free memory allocated for SLP structures.
4398 * tree-vect-analyze.c: Include recog.h.
4399 (vect_update_slp_costs_according_to_vf): New.
4400 (vect_analyze_operations): Add argument for calls to vectorizable_ ()
4401 functions. For not pure SLP stmts with strided access check that the
4402 group size is power of 2. Update the vectorization factor according to
4403 SLP. Call vect_update_slp_costs_according_to_vf.
4404 (vect_analyze_group_access): New.
4405 (vect_analyze_data_ref_access): Call vect_analyze_group_access.
4406 (vect_free_slp_tree): New functions.
4407 (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
4408 vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
4409 vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
4410 vect_detect_hybrid_slp): Likewise.
4411 (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
4412 and vect_detect_hybrid_slp.
4413 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
4414 SLP costs into account.
4415 (vect_get_cost_fields): New function.
4416 (vect_model_simple_cost): Make extern, add SLP parameter and handle
4417 SLP.
4418 (vect_model_store_cost, vect_model_load_cost): Likewise.
4419 (vect_get_constant_vectors): New function.
4420 (vect_get_slp_vect_defs, vect_get_slp_defs,
4421 vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
4422 vect_get_vec_defs): Likewise.
4423 (vectorizable_reduction): Don't handle SLP for now.
4424 (vectorizable_call): Don't handle SLP for now. Add argument to
4425 vect_model_simple_cost.
4426 (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
4427 get SLPed and vectorized defs). Fix indentation and spacing.
4428 (vectorizable_assignment): Handle SLP.
4429 (vectorizable_induction): Don't handle SLP for now.
4430 (vectorizable_operation): Likewise.
4431 (vectorizable_type_demotion): Add argument to
4432 vect_model_simple_cost.
4433 (vectorizable_type_promotion): Likewise.
4434 (vectorizable_store, vectorizable_load): Handle SLP.
4435 (vectorizable_condition): Don't handle SLP for now.
4436 (vect_transform_stmt): Add a new argument for SLP. Check that there is
4437 no SLP transformation required for unsupported cases. Add SLP
4438 argument for supported cases.
4439 (vect_remove_stores): New function.
4440 (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
4441 (vect_transform_loop): Schedule SLP instances.
4442 * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
4443
4444 2007-09-09 Andrew Haley <aph@redhat.com>
4445
4446 * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the fake
4447 signed optab.
4448
4449 2007-09-09 Hans-Peter Nilsson <hp@axis.com>
4450
4451 Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
4452 * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
4453 Similar for what label_refs can go in the JUMP_TARGET field. Split
4454 REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
4455 * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
4456 REG_LABEL when replacing an operand with a LABEL_REF for a
4457 non-jump insn.
4458 (subst_reloads): When replacing a LABEL_REG with a register,
4459 instead of generating a REG_LABEL note, assert that there already
4460 is one or that the label is a known target for the insn.
4461 * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
4462 note, check the JUMP_LABEL field. Remove "else" after return.
4463 * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
4464 cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
4465 (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
4466 REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
4467 insns. Iterate over all notes; don't assume there's only one.
4468 * cse.c (recorded_label_ref): Adjust comment to refer to
4469 REG_LABEL_OPERAND.
4470 (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
4471 insns, not just NONJUMP_INSN_P.
4472 (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
4473 isn't a jump target.
4474 * jump.c (rebuild_jump_labels): Adjust head comment.
4475 (init_label_info): Ditto. Remove REG_LABEL_OPERAND notes only;
4476 don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
4477 (mark_all_labels): For JUMP_P insns without a target, check if the
4478 the target is noted on the previous nonjump insn.
4479 (mark_jump_label_1): New function, guts from mark_jump_label.
4480 <case IF_THEN_ELSE>: Handle first operand as a non-target when
4481 marking jump target labels.
4482 <case LABEL_REF>: Adjust for whether to generate a
4483 REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
4484 For 'E' format rtl, iterate in descending element order.
4485 (delete_related_insns): Handle both REG_LABEL_TARGET and
4486 REG_LABEL_OPERAND notes. For JUMP_P insns with labels with zero
4487 reference count, delete and fallthrough. Move finding-next-
4488 non-deleted insn last in the function. Look at all INSN_P insns
4489 for REG_LABEL_OPERAND notes.
4490 (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
4491 JUMP.
4492 * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
4493 JUMP_LABEL, output the INSN_UID of it.
4494 * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
4495 and/or REG_LABEL_TARGET.
4496 (add_label_notes): Only add REG_LABEL_OPERAND notes. Put in line
4497 with jump.c copy by only adding notes for labels actually
4498 referenced in the insn.
4499 * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
4500 usage count increment; handle all INSN_P trial insns.
4501 (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
4502 notes.
4503 * rtl.h (struct rtx_def) <volatil>: Adjust to mention
4504 REG_LABEL_TARGET and REG_LABEL_OPERAND.
4505 (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
4506 REG_LABEL_OPERAND.
4507 * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
4508 JUMP_P insns and REG_LABEL_OPERAND everywhere.
4509 * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
4510 on all INSN_P insns.
4511 * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
4512 * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
4513 REG_LABEL_OPERAND notes.
4514 * reload1.c (calculate_needs_all_insns): Adjust comments.
4515 (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
4516 * config/alpha/alpha.md (split for load of an address into a
4517 four-insn sequence on Unicos/Mk): Adjust to use
4518 REG_LABEL_OPERAND.
4519 * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
4520
4521 2007-09-09 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4522
4523 Revert:
4524 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4525 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
4526 FOR_BB_INSNS_SAFE instead of for loop.
4527 * cse.c (cse_extended_basic_block): Likewise.
4528 * postreload.c (reload_cse_regs_1): New variable next. Make sure
4529 that the for loop does not invoke NEXT_INSN on a deleted insn.
4530 * function.c (instantiate_virtual_regs): Likewise.
4531 * lower-subreg.c (remove_retval_note): Likewise.
4532 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
4533 FOR_BB_INSNS.
4534 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
4535 a deleted insn.
4536 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
4537 insn, if it's a jump.
4538 (try_redirect_by_replacing_jump): New variable jump_p. Call
4539 tablejump_p before delete_insn_chain.
4540 * reload1.c (reload): New variable next. Make sure that the for
4541 loop does not invoke NEXT_INSN on a deleted insn.
4542 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
4543 (delete_output_reload): New variable prev. Make sure the the for
4544 loops do not invoke PREV_INSN on a deleted insn.
4545
4546 2007-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4547
4548 * pa/constraints.md: Remove 'X' from unused letters comment.
4549
4550 2007-09-08 Richard Guenther <rguenther@suse.de>
4551
4552 * tree-tailcall.c (find_tail_calls): If we don't have aliases
4553 computed check stmt_ann->references_memory instead of counting
4554 virtual operands.
4555
4556 2007-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4557
4558 * cse.c (fold_rtx): Use validate_unshare_change() instead of
4559 validate_change() in one more case.
4560
4561 2007-09-08 Zdenek Dvorak <ook@ucw.cz>
4562
4563 PR tree-optimization/32283
4564 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
4565 estimated_loop_iterations.
4566 (determine_use_iv_cost_condition): Decrease cost of expressions
4567 used in iv elimination.
4568
4569 2007-09-08 Richard Guenther <rguenther@suse.de>
4570
4571 * tree-cfg.c (verify_gimple_expr): Avoid building new
4572 pointer types, use TYPE_POINTER_TO if available instead.
4573
4574 2007-09-08 Uros Bizjak <ubizjak@gmail.com>
4575
4576 PR target/33329
4577 PR rtl-optimization/26449
4578 * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
4579 (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
4580 split1 pass.
4581 (mulv16qi3): Implement as define_insn_and_split pattern instead of
4582 define_expand. Split insn in split1 pass.
4583 (mulv2di3): Ditto.
4584
4585 2007-09-08 Dorit Nuzman <dorit@il.ibm.com>
4586
4587 PR tree-optimization/33301
4588 * tree-vect-analyze (analyze_operations): Look at the type of the rhs
4589 when relevant.
4590
4591 2007-09-07 Zdenek Dvorak <ook@ucw.cz>
4592
4593 PR tree-optimization/32183
4594 * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
4595
4596 * tree-ssa-reassoc.c: Include cfgloop.h.
4597 (is_reassociable_op): Add a loop argument and return true only
4598 for inside loop.
4599 (linearize_expr): Updated.
4600 (should_break_up_subtract): Likewise.
4601 (linearize_expr_tree): Likewise.
4602 (init_reassoc): Call loop_optimizer_init with
4603 AVOID_CFG_MODIFICATIONS. Remove calculate_dominance_info call
4604 with CDI_DOMINATORS.
4605 (fini_reassoc): Call loop_optimizer_finalize.
4606
4607 2007-09-07 Sterling Augustine <sterling@tensilica.com>
4608
4609 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
4610 if there is no i-cache.
4611
4612 2007-09-07 Richard Guenther <rguenther@suse.de>
4613
4614 Reapply
4615 2007-09-06 Richard Guenther <rguenther@suse.de>
4616
4617 PR tree-optimization/32586
4618 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
4619 folding if nothing changed.
4620 (simplify_unary_expression): New function. Do tree combining
4621 on conversion like codes.
4622 (try_to_simplify): Call it.
4623
4624 2007-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4625
4626 PR target/33286
4627 * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
4628 (__gthread_active,__gthread_start, __gthread_active_init): New.
4629 * gthr-posix95.h: Likewise.
4630
4631 2007-09-07 Roman Zippel <zippel@linux-m68k.org>
4632
4633 * function.h (struct function): Rename calls_unwind_init
4634 to saves_all_registers.
4635 (current_function_saves_all_registers): Renamed from
4636 current_function_calls_unwind_init.
4637 * reload1.c (reload): Set current_function_saves_all_registers.
4638 * except.c (expand_builtin_unwind_init): Likewise.
4639 * config/m68k/m68k.c (m68k_save_reg): Use
4640 current_function_saves_all_registers to save pic register.
4641
4642 2007-09-07 Janis Johnson <janis187@us.ibm.com>
4643
4644 config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
4645 config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
4646
4647 Reapply reverted changes:
4648
4649 2007-09-06 Jan Hubicka <jh@suse.cz>
4650
4651 * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call
4652 of real_2expN.
4653
4654 2007-09-06 Richard Sandiford <richard@codesourcery.com>
4655
4656 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4657 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
4658
4659 2007-09-05 Janis Johnson <janis187@us.ibm.com>
4660
4661 * optabs.c (expand_float): Convert unsigned integer as signed only
4662 if it provides sufficient accuracy; add mode argument to real_2expN.
4663 (expand_fix): Fix comment typos; extend binary float into mode
4664 wider than destination for converion to unsigned integer; add mode
4665 argument to real_2expN.
4666 * real.c (real_2expN): Add mode argument to special-case decimal
4667 float values.
4668 * real.h (real_2expN): Ditto.
4669 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
4670 real_2expN.
4671 (fixed_from_string): Ditto.
4672 (fixed_to_decimal): Ditto.
4673 (fixed_convert_from_real): Ditto.
4674 (real_convert_from_fixed): Ditto.
4675 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
4676 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
4677 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
4678 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
4679
4680 2007-09-07 Diego Novillo <dnovillo@google.com>
4681
4682 * tree-flow.h (const_block_stmt_iterator): Remove.
4683 Update all users to use block_stmt_iterator.
4684 * tree-iterator.h (const_tree_stmt_iterator): Remove.
4685 Update all users to use tree_stmt_iterator.
4686
4687 2007-09-07 Sandra Loosemore <sandra@codesourcery.com>
4688
4689 * config/mips/mips.c (mips_set_current_function): Temporarily
4690 make this a no-op to fix bootstrap errors, pending rewrite.
4691
4692 2007-09-07 Jan Hubicka <jh@suse.cz>
4693
4694 * reorg.c (dbr_schedule): Move code removing placeholder USEs later
4695 in the pass.
4696
4697 2007-09-07 Dorit Nuzman <dorit@il.ibm.com>
4698
4699 PR tree-optimization/33299
4700 * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
4701 uses for all relevant loop-exit phis, not just the first.
4702
4703 2007-09-07 Richard Guenther <rguenther@suse.de>
4704
4705 PR middle-end/33330
4706 * tree-ssa-operands.c (access_can_touch_variable): An access
4707 of the form (*p)[0] can touch a variable of same size.
4708
4709 2007-09-07 Jan Hubicka <jh@suse.cz>
4710
4711 * passes.c (init_optimization_passes): Add simple dce and addressable
4712 passes.
4713 * tree-ssa.c (execute_update_addresses_taken): New function.
4714 (pass_update_address_taken): New.
4715 * tree-ssa-dse.c (execute_simple_dse): New function.
4716 (pass_simple_dse): New.
4717 * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
4718
4719 2007-09-07 Tobias Burnus <burnus@net-b.de>
4720
4721 PR middle-end/33321
4722 * doc/invoke.texi: Fix -Wstrict-overflow= table.
4723
4724 2007-09-07 Richard Guenther <rguenther@suse.de>
4725
4726 Revert
4727 2007-09-06 Richard Guenther <rguenther@suse.de>
4728
4729 PR tree-optimization/32586
4730 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
4731 folding if nothing changed.
4732 (simplify_unary_expression): New function. Do tree combining
4733 on conversion like codes.
4734 (try_to_simplify): Call it.
4735
4736 2007-09-07 Richard Guenther <rguenther@suse.de>
4737 Uros Bizjak <ubizjak@gmail.com>
4738
4739 PR tree-optimization/32821
4740 * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
4741 NULL in the call to set_bb_stmt_list.
4742
4743 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4744
4745 * config/mips/mips.c (build_mips16_call_stub): Emit all direct
4746 float calls here, rather than leaving some to the caller.
4747 Use call_internal_direct and call_value_internal_direct.
4748 * config/mips/mips.md (call_internal_direct): New pattern.
4749 (call_value_internal_direct): Likewise.
4750
4751 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4752
4753 * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
4754 (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
4755 to 0 for MIPS16.
4756 (override_options): Set mips_base_move_loop_invariants.
4757
4758 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4759
4760 * config/mips/mips.opt (mcode-readable=): Move to keep list
4761 alphabetical.
4762
4763 2007-09-07 Richard Sandiford <richard@codesourcery.com>
4764
4765 * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
4766 and -mgpopt options. Adjust the -G documentation to match.
4767 * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
4768 * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
4769 function, split out from mips_classify_symbol. Return false for
4770 !TARGET_LOCAL_SDATA.
4771 (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
4772 Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
4773 (override_options): Check whether the -mgpopt setting is consistent
4774 with the other flags.
4775 (symbolic_expression_p): Delete.
4776 (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
4777 and default_elf_select_rtx_section.
4778 (mips_in_small_data_p): Honor section attributes for MIPS16 too.
4779 Return false for local data unless TARGET_LOCAL_SDATA. Likewise
4780 external data and TARGET_EXTERN_SDATA.
4781
4782 2007-09-07 Tobias Burnus <burnus@net-b.de>
4783
4784 PR fortran/33303
4785 * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
4786
4787 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4788
4789 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
4790 FOR_BB_INSNS_SAFE instead of for loop.
4791 * cse.c (cse_extended_basic_block): Likewise.
4792 * postreload.c (reload_cse_regs_1): New variable next. Make sure
4793 that the for loop does not invoke NEXT_INSN on a deleted insn.
4794 * function.c (instantiate_virtual_regs): Likewise.
4795 * lower-subreg.c (remove_retval_note): Likewise.
4796 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
4797 FOR_BB_INSNS.
4798 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
4799 a deleted insn.
4800 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
4801 insn, if it's a jump.
4802 (try_redirect_by_replacing_jump): New variable jump_p. Call
4803 tablejump_p before delete_insn_chain.
4804 * reload1.c (reload): New variable next. Make sure that the for
4805 loop does not invoke NEXT_INSN on a deleted insn.
4806 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
4807 (delete_output_reload): New variable prev. Make sure the the for
4808 loops do not invoke PREV_INSN on a deleted insn.
4809
4810 2007-09-06 Zdenek Dvorak <ook@ucw.cz>
4811
4812 * cgraphbuild.c (rebuild_cgraph_edges): Export.
4813 * cgraph.h (rebuild_cgraph_edges): Declare.
4814 * tree-pass.h (pass_expand_omp_ssa): New.
4815 * omp-low.c (find_omp_clause): Export.
4816 (copy_var_decl): Split from omp_copy_decl_2.
4817 (build_omp_barrier): Return the call to emit instead of emitting
4818 it directly.
4819 (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
4820 build_omp_barrier.
4821 (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
4822 expand_omp_for_generic, expand_omp_for_static_nochunk,
4823 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
4824 Adapted to work on SSA form.
4825 (execute_expand_omp): Do not invalidate dominance information.
4826 (gate_expand_omp): Do not run with -fopenmp-ssa flag.
4827 (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
4828 * gimplify.c (gimplify_omp_for): Ensure that the control variable is
4829 a gimple_reg.
4830 (force_gimple_operand): Allow gimplifying code expressions without
4831 value.
4832 * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
4833 * common.opt (fopenmp-ssa): New.
4834 * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
4835 * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
4836 * tree-cfg.c: Include tree-inline.h.
4837 (struct move_stmt_d): Replace vars_to_remove by vars_map field.
4838 (replace_by_duplicate_decl, replace_ssa_name,
4839 mark_virtual_ops_in_region): New functions.
4840 (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
4841 to work on SSA form.
4842 * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
4843 * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
4844 constructs.
4845
4846 2007-09-06 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4847
4848 * tree-loop-linear.c: Include obstack.h.
4849 (linear_transform_loops): New obstack lambda_obstack.
4850 Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
4851 lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
4852 and free afterwards.
4853 * lambda.h (struct obstack): New forward declaration.
4854 (lambda_linear_expression_new): New parameter of type struct
4855 obstack *.
4856 (lambda_loopnest_new): Likewise.
4857 (lambda_loopnest_transform): Likewise.
4858 (lambda_body_vector_new): Likewise.
4859 (lambda_body_vector_compute_new): Likewise.
4860 (gcc_loopnest_to_lambda_loopnest): Likewise.
4861 (lambda_loopnest_to_gcc_loopnest): Likewise.
4862 * lambda-code.c: Include obstack.h.
4863 (lambda_lattice_new): New parameter lambda_obstack. Use it for
4864 allocation of ret.
4865 (lambda_body_vector_new): Likewise.
4866 (lambda_linear_expression_new): Likewise.
4867 (lambda_lattice_new): Likewise.
4868 (lambda_loopnest_new): Likewise. Additionally use obstack to
4869 allocate LN_LOOPS(ret).
4870 (lambda_lattice_compute_base): New parameter lambda_obstack. Pass
4871 it to lambda_lattice_new.
4872 (lambda_body_vector_compute_new): New parameter lambda_obstack.
4873 Pass it to lambda_body_vector_new.
4874 (lambda_lattice_compute_base): New paramater lambda_obstack. Pass
4875 it to lambda_lattice_new.
4876 (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
4877 Pass it to lambda_loopnest_new, lambda_linear_expression_new.
4878 (lambda_compute_target_space): Likewise.
4879 (lambda_compute_auxillary_space): New parameter lambda_obstack.
4880 Pass it to lambda_lattice_compute_base and
4881 compute_nest_using_fourieer_motzkin.
4882 (lambda_loopnest_transform): New parameter lambda_obstack. Pass
4883 it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
4884 and lambda_lattice_compute_target_space.
4885 (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
4886 Pass it to lambda_linear_expression_new.
4887 (gcc_loop_to_lambda_loop): New parameter lambda_obstack. Pass it
4888 to gcc_tree_to_linear_expression.
4889 (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
4890 Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
4891 (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
4892 Pass it to lambda_body_vector_new and
4893 lambda_body_vector_compute_new.
4894 * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
4895 (lambda-code.o): Likewise.
4896
4897 2007-09-06 Chao-ying Fu <fu@mips.com>
4898
4899 * ginclude/stdfix.h: New file.
4900 * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
4901 (convert.o): Add dependence on fixed-value.h.
4902 * c-convert.c (convert): Support FIXED_POINT_TYPE.
4903 * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
4904 to define fixed-point constants.
4905 (c_cpp_builtins): Define fixed-point constants.
4906 * convert.c (fixed-value.h): New include.
4907 (convert_to_real): Update comment to include fixed-point.
4908 Support FIXED_POINT_TYPE.
4909 (convert_to_integer): Update comment to include fixed-point.
4910 Support FIXED_POINT_TYPE.
4911 (convert_to_complex): Support FIXED_POINT_TYPE.
4912 (convert_to_fixed): New function.
4913 * convert.h (convert_to_fixed): Declare.
4914 * genopinit.c: Add comment about $Q for only fixed-point modes.
4915 (optabs): Add fract_optab, fractuns_optab, satfract_optab,
4916 satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
4917 sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
4918 ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
4919 usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
4920 usneg_optab for fixed-point modes.
4921 (gen_insn): Add force_fixed to track the $Q format for all fixed-point
4922 modes.
4923 * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
4924 PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
4925 unsigned saturation optabs, when type is saturating.
4926 (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
4927 (expand_fixed_convert): New function.
4928 (gen_fixed_libfunc, gen_signed_fixed_libfunc,
4929 gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
4930 gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
4931 gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
4932 gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
4933 gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
4934 functions.
4935 (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
4936 ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
4937 usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
4938 ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
4939 usneg_optab, fract_optab, fractuns_optab, satfract_optab,
4940 satfractuns_optab.
4941 Initialize fixed-point libraries, including add, ssadd, usadd, sub,
4942 sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
4943 ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
4944 fractuns, satfractuns.
4945 * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
4946 OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
4947 OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
4948 OTI_ssmsub_widen, OTI_usmsub_widen.
4949 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
4950 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
4951 ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
4952 umsub_widen_optab, usmsub_widen_optab): Define.
4953 (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
4954 COI_satfractuns.
4955 (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
4956 Define.
4957 (expand_fixed_convert): Declare.
4958 * expr.c (convert_move): Support the move of fixed-point modes.
4959 (emit_move_insn_1): Handle fixed-point mode to move via integer.
4960 (categorize_ctor_elements_1): Handle FIXED_CST.
4961 (count_type_elements): Handle FIXED_POINT_TYPE.
4962 (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
4963 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
4964 Support FIXED_CST.
4965 For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
4966 multiply and add/subtract for fixed-point types.
4967 For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
4968 mode, we jump to binop directly.
4969 Support FIXED_CONVERT_EXPR.
4970 (do_store_flag): Check FIXED_CST to put a constant second.
4971 (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
4972 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
4973 (const_vector_from_tree): Support FIXED_CST.
4974 * doc/extend.texi (Fixed-Point): New node.
4975 * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
4976 ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
4977 satfract, fractuns, satfractuns): Document them.
4978
4979 2007-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4980
4981 * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
4982 addresses into I registers.
4983
4984 2007-09-06 Jan Hubicka <jh@suse.cz>
4985 Andreas Tobler <a.tobler@schweiz.org>
4986
4987 * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
4988 sharing.
4989 (machopic_legitimize_pic_address): Likewise.
4990
4991 2007-09-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
4992 Jan Hubicka <jh@suse.cz>
4993
4994 * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
4995 instead of ufloat_optab->handlers directly.
4996 (floatdidf2): Likewise.
4997
4998 2007-09-06 Sandra Loosemore <sandra@codesourcery.com>
4999
5000 * config/mips/mips.c: Include diagnostic.h.
5001 (mips_set_current_function): Check errorcount and sorrycount
5002 before generating RTL.
5003
5004 2007-09-06 Richard Sandiford <richard@codesourcery.com>
5005
5006 PR target/33256
5007 * config/mips/mips.c (mips_classify_symbolic_expression): New function.
5008 (mips_classify_address): Use it instead of mips_symbolic_constant_p.
5009 (print_operand_reloc): Likewise.
5010
5011 2007-09-06 Janis Johnson <janis187@us.ibm.com>
5012
5013 Revert:
5014
5015 2007-09-06 Jan Hubicka <jh@suse.cz>
5016
5017 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
5018 real_2expN.
5019
5020 2007-09-06 Richard Sandiford <richard@codesourcery.com>
5021
5022 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5023 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
5024
5025 2007-09-05 Janis Johnson <janis187@us.ibm.com>
5026
5027 * optabs.c (expand_float): Convert unsigned integer as signed only
5028 if it provides sufficient accuracy; add mode argument to real_2expN.
5029 (expand_fix): Fix comment typos; extend binary float into mode
5030 wider than destination for converion to unsigned integer; add mode
5031 argument to real_2expN.
5032 * real.c (real_2expN): Add mode argument to special-case decimal
5033 float values.
5034 * real.h (real_2expN): Ditto.
5035 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
5036 real_2expN.
5037 (fixed_from_string): Ditto.
5038 (fixed_to_decimal): Ditto.
5039 (fixed_convert_from_real): Ditto.
5040 (real_convert_from_fixed): Ditto.
5041 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
5042 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
5043 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
5044 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
5045
5046 2007-09-06 Tom Tromey <tromey@redhat.com>
5047
5048 * tree-cfg.c (remove_bb): Only warn if line is non-zero.
5049 * c-pch.c (c_common_read_pch): Restore current location after
5050 reading PCH file.
5051 * tree.c (expand_location): Update.
5052 (expr_filename): Changed return type. Unified the two cases.
5053 (expr_lineno): Likewise.
5054 (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
5055 as lvalues.
5056 * toplev.c (line_table): Changed type.
5057 (general_init): Update.
5058 (realloc_for_line_map): New function.
5059 (general_init): Allocate line_table using GC.
5060 * fix-header.c (line_table): Changed type.
5061 (read_scan_file): Update.
5062 (read_scan_file): Update.
5063 * c-ppoutput.c (maybe_print_line): Update.
5064 (print_line): Update.
5065 (cb_line_change): Update.
5066 (cb_define): Update.
5067 (pp_file_change): Update.
5068 * c-opts.c (c_common_init_options): Update.
5069 (finish_options): Update.
5070 (push_command_line_include): Update.
5071 * c-lex.c (cb_line_change): Update.
5072 (cb_def_pragma): Update.
5073 (cb_define): Update.
5074 (cb_undef): Update.
5075 (c_lex_with_flags): Use cpp_get_token_with_location.
5076 * input.h (line_table): Changed type.
5077 (location_from_locus): New macro.
5078 * tree.h (EXPR_FILENAME): No longer an lvalue.
5079 (EXPR_LINENO): Likewise.
5080 (expr_locus, set_expr_locus): Declare separately for
5081 USE_MAPPED_LOCATION.
5082 (expr_filename, expr_lineno): Changed return type.
5083 * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
5084 * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
5085 (expand_gimple_basic_block): Likewise.
5086 * final.c (final_scan_insn): Use expanded_location.
5087
5088 2007-09-06 Richard Guenther <rguenther@suse.de>
5089
5090 PR tree-optimization/32586
5091 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
5092 folding if nothing changed.
5093 (simplify_unary_expression): New function. Do tree combining
5094 on conversion like codes.
5095 (try_to_simplify): Call it.
5096 * builtins.c (fold_builtin_cexp): Fold the built expressions.
5097 * fold-const.c (fold_unary): Test result of get_callee_fndecl().
5098
5099 2007-09-06 Jan Hubicka <jh@suse.cz>
5100
5101 PR target/33318
5102 * cse.c (fold_rtx): Avoid invalid sharing.
5103
5104 2007-09-06 Richard Sandiford <richard@codesourcery.com>
5105
5106 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5107 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
5108
5109 2007-09-06 Revital Eres <eres@il.ibm.com>
5110
5111 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
5112 Fix offsettable memory reference for 750CL.
5113
5114 2007-09-06 Pat Haugen <pthaugen@us.ibm.com>
5115
5116 * reload.c (find_reloads_address_1): Try to preserve original
5117 base/index regclass of operands.
5118 * regrename.c (scan_rtx_address): Likewise.
5119 (replace_oldest_value_addr): Likewise.
5120
5121 2007-09-06 Richard Guenther <rguenther@suse.de>
5122
5123 PR tree-optimization/33302
5124 * domwalk.c (walk_dominator_tree): The exit block is
5125 interesting even if it is not reachable.
5126
5127 2007-09-06 Richard Sandiford <richard@codesourcery.com>
5128
5129 PR middle-end/33306
5130 * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
5131
5132 2007-09-06 Basile Starynkevitch <basile@starynkevitch.net>
5133
5134 * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for
5135 robustness.
5136
5137 2007-09-05 Ian Lance Taylor <iant@google.com>
5138
5139 * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
5140 when printing.
5141 (dump_generic_node): Likewise.
5142 * print-rtl.c (print_decl_name): Likewise.
5143 * print-tree.c (print_node_brief): Likewise.
5144 (print_node): Likewise.
5145 * Makefile.in (RTL_BASE_H): Add alias.h.
5146 (TREE_H): Likewise.
5147
5148 2007-09-06 Jesper Nilsson <jesper.nilsson@axis.com>
5149
5150 * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
5151 Defined.
5152 * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
5153 * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
5154
5155 2007-09-06 Jie Zhang <jie.zhang@analog.com>
5156
5157 * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
5158 (tm_defines): Define UCLIBC_DEFAULT to 1.
5159 (extra_options): Add linux.opt.
5160 * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
5161 (CRT_CALL_STATIC_FUNCTION): Likewise.
5162 (NO_IMPLICIT_EXTERN_C): Likewise.
5163 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
5164 * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
5165 * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
5166 (ENDFILE_SPEC): Don't define.
5167 (LIB_SPEC): Likewise.
5168 (CRT_CALL_STATIC_FUNCTION): Likewise.
5169 (NO_IMPLICIT_EXTERN_C): Likewise.
5170 (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
5171 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
5172
5173 2007-09-06 Jan Hubicka <jh@suse.cz>
5174
5175 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
5176 real_2expN.
5177
5178 2007-09-06 Jan Hubicka <jh@suse.cz>
5179
5180 * opts.c (common_handle_option): Enable inlining functions for
5181 -fprofile-generate.
5182
5183 2007-09-06 Jakub Jelinek <jakub@redhat.com>
5184
5185 * builtin-attrs.def (ATTR_NONNULL_3): New.
5186 (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
5187 ATTR_NOTHROW_NONNULL_##FA.
5188 (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
5189 (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
5190 ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
5191 ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
5192 ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
5193 ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
5194 ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
5195 New.
5196 (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
5197 ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
5198 ATTR_FORMAT_NOTHROW_3_4): Remove.
5199 * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
5200 vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
5201 __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
5202 instead of ATTR_FORMAT_*_*.
5203
5204 2007-09-06 Hans-Peter Nilsson <hp@axis.com>
5205
5206 * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
5207 parts re-used for REG_FRAME_RELATED_EXPR.
5208
5209 2007-09-05 Janis Johnson <janis187@us.ibm.com>
5210
5211 * optabs.c (expand_float): Convert unsigned integer as signed only
5212 if it provides sufficient accuracy; add mode argument to real_2expN.
5213 (expand_fix): Fix comment typos; extend binary float into mode
5214 wider than destination for converion to unsigned integer; add mode
5215 argument to real_2expN.
5216 * real.c (real_2expN): Add mode argument to special-case decimal
5217 float values.
5218 * real.h (real_2expN): Ditto.
5219 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
5220 real_2expN.
5221 (fixed_from_string): Ditto.
5222 (fixed_to_decimal): Ditto.
5223 (fixed_convert_from_real): Ditto.
5224 (real_convert_from_fixed): Ditto.
5225 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
5226 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
5227 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
5228 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
5229
5230 2007-09-05 Ian Lance Taylor <iant@google.com>
5231
5232 * init-regs.c (initialize_uninitialized_regs): Call
5233 emit_insn_before rather than add_insn_before.
5234
5235 2007-09-05 Jakub Jelinek <jakub@redhat.com>
5236
5237 * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
5238 * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
5239 * tree-inline.h (copy_body_data): Add call_expr field.
5240 * tree-inline.c (expand_call_inline): Initialize call_expr.
5241 (copy_bb): Append anonymous inline fn arguments to arguments
5242 when inlining a CALL_EXPR_VA_ARG_PACK call.
5243 * builtins.c (expand_builtin): Issue an error if
5244 BUILT_IN_VA_ARG_PACK is seen during expand.
5245 (fold_call_expr, fold_builtin_call_array): Don't fold
5246 CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
5247 __builtin_va_arg_pack () call as last argument.
5248 * gimplify.c (gimplify_call_expr): If last argument to a vararg
5249 function is __builtin_va_arg_pack (), decrease number of call
5250 arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
5251 * expr.c (expand_expr_real_1): Issue an error if
5252 CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
5253 * tree-pretty-print.c (dump_generic_node): Handle printing
5254 CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
5255 * doc/extend.texi (__builtin_va_arg_pack): Document.
5256
5257 2007-09-05 Adam Nemet <anemet@caviumnetworks.com>
5258
5259 PR tree-optimization/21513
5260 * builtins.c (build_builtin_expect_predicate): New function.
5261 (fold_builtin_expect): Add argument for expected value.
5262 Distribute __builtin_expect over short-circuiting operations.
5263 Fold nested builtin_expects.
5264 (fold_builtin_2): Adjust call to fold_builtin_expect.
5265
5266 2007-09-05 Rask Ingemann Lambertsen <rask@sygehus.dk>
5267
5268 PR web/32965
5269 PR tree-optimization/13756
5270 * doc/invoke.texi (Options That Control Optimization): Document
5271 -ftree-dse.
5272
5273 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
5274
5275 * gcc/config/i386/cpuid.h: New file.
5276 * gcc/config/i386/driver-i386.c: Include cpuid.h.
5277 (describe_cache): Shrink size and line strings to 100 bytes.
5278 (detect_caches_amd): Return "" for unsupported max_ext_level.
5279 Use __cpuid function.
5280 (detect_caches_intel): Return "" for unsupported max_level.
5281 Use __cpuid function.
5282 (host_detect_local_cpu): Change feature flag variables to
5283 unsigned int. Initialize only extended feature flag variables.
5284 Use __get_cpuid_max to determine max supported cpuid level.
5285 Use __cpuid function to determine supported features. Fix
5286 calculation of family id. Remove is_amd and check signature
5287 directly. Check for Geode signature. Handle family 4 id.
5288 [PROCESSOR_GENERIC32]: New default for unknown family id. Move
5289 cpu discovery code to lower part of the function.
5290 [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
5291 for sub-architecture.
5292 [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
5293 [PROCESSOR_K8]: Add k8-sse3 architecture.
5294 [PROCESSOR_NOCONA]: Remove.
5295 [PROCESSOR_GENERIC64]: Ditto.
5296 * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
5297 * gcc/config/i386/crtfastmath.c: Include cpuid.h. Use __get_cpuid
5298 to check for SSE and FXSAVE support.
5299 * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
5300 Add -minline-all-stringops.
5301 * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
5302 (x86_64-*-*): Ditto.
5303
5304 2007-09-05 Jie Zhang <jie.zhang@analog.com>
5305
5306 * config/bfin/linux-unwind.h: New file.
5307 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
5308 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
5309
5310 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5311
5312 * Makefile.in (stmt.o): Add alloc-pool.h dependency.
5313 * stmt.c: Include alloc-pool.h.
5314 (struct case_node): Remove GTY marker.
5315 (add_case_node): New parameter case_node_pool. Use it for
5316 allocation of r.
5317 (expand_case): New allocation pool case_node_pool. Initialize it,
5318 pass to add_case_node and free it.
5319
5320 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5321 David Ung <davidu@mips.com>
5322 Nigel Stephens <nigel@mips.com>
5323
5324 Add mips16/nomips16 function attributes and -mflip-mips16 option
5325 for testing mixed-mode compilation.
5326
5327 * config/mips/mips.opt (mflip-mips16): New.
5328
5329 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
5330 (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
5331
5332 * config/mips/mips.c (mips_base_target_flags): New.
5333 (mips_base_mips16): New.
5334 (mips_base_schedule_insns): New.
5335 (mips_base_reorder_blocks_and_partition): New.
5336 (mips_base_align_loops): New.
5337 (mips_base_align_jumps): New.
5338 (mips_base_align_functions): New.
5339 (mips16_flipper): New.
5340 (mips_attribute_table): Add "mips16" and "nomips16" entries.
5341 (TARGET_SET_CURRENT_FUNCTION): Define.
5342 (mips_mips16_type_p, mips_nomips16_type_p): New.
5343 (mips_comp_type_attributes): Check mips16/nomips16 attributes.
5344 (mips_function_ok_for_sibcall): Make it deal with functions with
5345 mips16 attributes.
5346 (mips_init_split_addresses): New, split out from override_options.
5347 (mips_init_relocs): New, split out from override_options.
5348 (was_mips16_p): New.
5349 (mips_set_mips16_mode): New, split out from override_options.
5350 (mips_set_current_function): New.
5351 (override_options): Add sorry for unsupported mips16/pic
5352 combination. Remove error for mips16/dsp combination. Save
5353 base option settings.
5354 (mips_file_start): Move mips16 mode setting output from here....
5355 (mips_output_function_prologue): ....to here.
5356 (mips_output_mi_thunk): Check for mips16 function.
5357 (build_mips16_function_stub): Don't set .mips16 here.
5358 (build_mips16_call_stub): Likewise.
5359 (mips_expand_builtin): Error in mips16 mode.
5360 (mips_use_mips16_mode_p): New.
5361 (mips_encode_section_info): Check for mips16 function, and set
5362 SYMBOL_REF_FLAGS accordingly.
5363
5364 * doc/extend.texi (Function Attributes): Document new
5365 mips16/nomips16 attributes.
5366 * doc/invoke.texi (Option Summary): Add -mflip-mips16.
5367 (MIPS Options): Document -mflip-mips16.
5368
5369 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5370
5371 * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
5372 if we encounter TLS address in MIPS16 mode.
5373 (mips_legitimize_const_move): Check cannot_force_const_mem for
5374 the (const (plus symbol offset)) case; this forces invalid TLS
5375 address in MIPS16 mode to be caught by the above call to sorry.
5376 (override_options): Don't reset targetm.have_tls in MIPS16 mode,
5377 because that now enables emutls, which is not ABI compatible
5378 with native TLS in non-MIPS16 mode.
5379
5380 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5381
5382 Add target hook invoked when cfun changes.
5383
5384 * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
5385 * target.h (struct gcc_target): Add set_current_function.
5386 * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
5387 (TARGET_INITIALIZER): Add initializer for set_current_function.
5388 * tree.h (push_struct_function): New.
5389 * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
5390 * function.h: Here.
5391 (set_cfun): Declare.
5392 * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
5393 * function.c: Here.
5394 (push_function_context_to): Use allocate_struct_function
5395 to create null context, not init_dummy_function_start. Use set_cfun.
5396 (pop_function_context_from): Use set_cfun.
5397 (in_dummy_function): New.
5398 (invoke_set_current_function_hook): New.
5399 (set_cfun): New.
5400 (push_cfun, pop_cfun): Use set_cfun.
5401 (push_struct_function): New.
5402 (allocate_struct_function): Call invoke_set_current_function_hook
5403 before returning.
5404 (prepare_function_start): Don't set cfun here. Remove unused
5405 argument; fix all callers.
5406 (init_dummy_function_start): Fiddle with in_dummy_function. Call
5407 push_struct_function.
5408 (init_function_start): Set cfun here.
5409 (expand_dummy_function_end): Fiddle with in_dummy_function. Pop cfun.
5410 * omp-low.c (create_omp_child_function): Use push_struct_function
5411 and pop_cfun to save/restore state.
5412 (expand_omp_parallel): Remove unused saved_cfun variable.
5413 * cgraphunit.c (ipa_passes): Use set_cfun.
5414 * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
5415 * dwarf2out.c (dwarf2out_abstract_function): Likewise.
5416 * matrix-reorg.c (transform_allocation_sites): Likewise.
5417 (matrix_reorg): Use set_cfun.
5418 * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
5419 * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
5420 assignment to cfun; use set_cfun for the other.
5421 * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
5422 (dump_function_to_file): Use push_cfun/pop_cfun here.
5423 * c-decl.c (finish_function): Use set_cfun.
5424
5425 2007-09-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5426
5427 * regrename.c (rerename_optimize): Use deferred rescanning and
5428 insert explicit calls to rescan insns when changed.
5429
5430 2007-09-05 Jan Hubicka <jh@suse.cz>
5431
5432 * optabs.c (libfunc_entry): Change optab to integer.
5433 (hash_libfunc, convert_optab_libfunc, optab_libfunc,
5434 set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
5435 of pointers for hashing.
5436
5437 2007-09-05 Jan Hubicka <jh@suse.cz>
5438
5439 * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
5440 verifier.
5441 * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
5442 * see.c (pass_see): Likewise.
5443 * tracer.c (pass_tracer): Likewise.
5444 * postreload-gcse.c (pass_gcse2): Likewise.
5445 * postreload.c (pass_postreload_cse): Likewise.
5446 * mode-switching.c (pass_mode_switching): Likewise.
5447 * modulo-sched.c (pass_sms): Likewise.
5448 * cse.c (cse_insn): Likewise.
5449 * web.c (pass_web): Likweise.
5450 * combine-stack-adj.c (pass_stack_adjustments): Likewise.
5451 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
5452 * loop-init.c (pass_rtl_loop_init): Likewise.
5453 (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
5454 pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
5455 * global.c (pass_global_alloc): Likewise.
5456 * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
5457 pass_if_after_reload): Likewise.
5458 * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
5459 * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
5460 * regmove.c (pass_regmove): Likewise.
5461 * function.c (pass_thread_prologugues_epilogues): Likewise.
5462 * gcse.c (pass_gcse): Likewise.
5463 * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
5464 * lower-subreg.c (pass_lower_subreg2): Likewise.
5465 * bt-load.c (pass_branch_target_load): Likewise.
5466 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
5467 * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
5468 * combine.c (pass_combine): Likewise.
5469 * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
5470 (pass_partition_blocks): Likewise.
5471 * var-tracking.c (pass_variable_track): Likewise.
5472 * reg-stack.c (pass_stack_regs_run): Likewise.
5473 * sched-rgn.c (pass_sched, pass_sched2): Likewise.
5474 * passes.c (pass_postreload): Likewise.
5475 (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
5476 * tree-pass.h (TODO_verify_rtl_sharing): New.
5477 (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
5478 TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
5479 TODO_set_props, TODO_df_finish, TODO_df_verify,
5480 TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
5481
5482 2007-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5483
5484 * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
5485 fold_real_zero_addition_p, reorder_operands_p,
5486 div_if_zero_remainder, fold_undefer_overflow_warnings,
5487 int_binop_types_match_p, fold_convert_const_int_from_int,
5488 fold_convert_const_int_from_real,
5489 fold_convert_const_int_from_fixed,
5490 fold_convert_const_real_from_real,
5491 fold_convert_const_real_from_fixed,
5492 fold_convert_const_fixed_from_fixed,
5493 fold_convert_const_fixed_from_int,
5494 fold_convert_const_fixed_from_real, maybe_lvalue_p,
5495 fold_checksum_tree, fold_check_failed, print_fold_checksum,
5496 debug_fold_checksum, multiple_of_p): Constify.
5497 * tree-flow-inline.h (get_lineno): Likewise.
5498 * tree-flow.h (get_lineno): Likewise.
5499 * tree-object-size.c (compute_object_offset, addr_object_size,
5500 alloc_object_size, pass_through_call): Likewise.
5501 * tree-pretty-print.c (op_symbol, print_call_name,
5502 print_struct_decl, do_niy): Likewise.
5503 * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
5504 debug_fold_checksum): Likewise.
5505
5506 2007-09-04 Steven Bosscher <steven@gcc.gnu.org>
5507
5508 PR middle-end/33029
5509 * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
5510 note, remove the associated REG_RETVAL note.
5511
5512 2007-09-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
5513
5514 * config.gcc (powerpc*-*-*): Install
5515 spu2vmx.h, vec_types.h, and si2vmx.h headers.
5516 * config/rs6000/spu2vmx.h: New header.
5517 * config/rs6000/si2vmx.h: New header.
5518 * config/rs6000/vec_types.h: New header.
5519
5520 2007-09-05 Ben Elliston <bje@au.ibm.com>
5521
5522 * varasm.c (initializer_constant_valid_p): Fix comment typo.
5523
5524 2007-09-05 Ben Elliston <bje@au.ibm.com>
5525
5526 * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
5527 not `m' for *ptrp.
5528 (__stdcx): Make asm volatile.
5529 (__stwcx, __stdcx): Return only 0 or 1.
5530
5531 2007-09-05 Jan Hubicka <jh@suse.cz>
5532
5533 Revert:
5534
5535 2007-09-04 Jan Hubicka <jh@suse.cz>
5536 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
5537
5538 2007-09-04 Richard Guenther <rguenther@suse.de>
5539 * tree-ssa-operands.c (add_virtual_operand): Only mark
5540 stores as has_volatile_ops if alias information is not available.
5541
5542 2007-09-05 Jakub Jelinek <jakub@redhat.com>
5543
5544 * config/rs6000/tramp.asm: Include config.h.
5545 Check __PIC__ or __pic__ macro instead of SHARED.
5546
5547 PR rtl-optimization/32300
5548 * see.c (see_copy_insn): New function.
5549 (see_def_extension_not_merged, see_merge_one_use_extension,
5550 see_merge_one_def_extension): Use it. Avoid changing
5551 PREV_INSN/NEXT_INSN chains directly, insted emit insns
5552 into sequences. Call df_insn_delete on temporary insns
5553 that won't be emitted into the insn stream.
5554 (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
5555 and run df_process_deferred_rescans () before run_fast_dce.
5556
5557 PR tree-optimization/33017
5558 * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
5559 recurse for pure or const function calls.
5560
5561 2007-09-04 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5562
5563 * c-format.c: Include alloc-pool.h.
5564 (check_format_info_main): New argument fwt_alloc. Use allocation
5565 pool instead of GC. Remove GC deallocation code.
5566 (check_format_arg): Create allocation pool, pass it to
5567 check_format_info_main and free it afterwards.
5568 * Makefile.in (c-format.o): Add alloc-pool.h dependency.
5569
5570 2007-09-05 Ben Elliston <bje@au.ibm.com>
5571
5572 * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
5573 Rename count macro arugment for clarity.
5574 (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
5575 (__protected_stream_set): Likewise, pass 0.
5576
5577 2007-09-04 Jan Hubicka <jh@suse.cz>
5578
5579 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
5580
5581 2007-09-04 Jan Hubicka <jh@suse.cz>
5582
5583 * invoke.texi (-finline-small-functions): Document.
5584 * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
5585 when deciding what is inlinable.
5586 (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
5587 (cgraph_decide_inlining_of_small_function): Handle new flags.
5588 (cgraph_decide_inlining_incrementally): Likewise.
5589 * opts.c (decode_options): Enable flag_inline_small_functions at -O2
5590 * common.opt (finline-small-functions): New.
5591 * Makefile.in (build/gengtype.o-warn): Work around PR29478
5592
5593 2007-09-04 Richard Guenther <rguenther@suse.de>
5594
5595 * tree-ssa-operands.c (add_virtual_operand): Only mark
5596 stores as has_volatile_ops if alias information is not available.
5597
5598 2007-09-04 Andrew Haley <aph@redhat.com>
5599
5600 * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
5601
5602 2007-09-04 Andrew Haley <aph@redhat.com>
5603
5604 * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
5605 * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
5606 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
5607
5608 2007-09-04 Emmanuel Thome <Emmanuel.Thome@inria.fr>
5609
5610 PR c++/14178
5611 * common.opt: Mention ABI version 2 in comment.
5612
5613 2007-09-04 Jan Hubicka <jh@suse.cz>
5614
5615 * optabs.c (debug_optab_libfunc): Update; make available to gdb.
5616 (libfunc_entry): New structure.
5617 (libfunc_hash): New hashtable.
5618 (hash_libfunc): New function.
5619 (eq_libfunc): New function.
5620 (convert_optab_libfunc): New function.
5621 (optab_libfunc): New function.
5622 (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
5623 expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
5624 expand_float, expand_fix, new_optab, new_convert_optab):
5625 Update for new libfunc API.
5626 (init_libfunc, init_integral_libfuncs,
5627 init_floating_libfuncs, init_interclass_conv_libfuncs
5628 init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
5629 (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
5630 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
5631 gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
5632 gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
5633 gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
5634 gen_extend_conv_libfunc): New.
5635 (init_one_libfunc): Revamp for hashtables.
5636 (set_conv_libfunc): Likewise.
5637 (init_optabs): Initialize hashtable; use lazy initialization where
5638 possible.
5639 * optabs.h (optab_handlers): Move out of GGC.
5640 (optab, convert_optab): Move out of GGC; add lazy gen info.
5641 (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
5642 (optab_libfunc, convert_optab_libfunc): New.
5643 * builtins.c (expand_builtin_powi): Update for new API.
5644 * expr.c (convert_move): Likewise.
5645 * expmed.c (expand_divmod): Likewise.
5646
5647 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
5648
5649 * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
5650 GOT pointer only if there is a constant pool. Use the allocated space
5651 for SPE also.
5652
5653 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
5654
5655 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
5656 typo for AltiVec.
5657
5658 2007-09-04 Revital Eres <eres@il.ibm.com>
5659 Richard Guenther <rguenther@suse.de>
5660 R. Clint Whaley <whaley@cs.utsa.edu>
5661
5662 * doc/invoke.texi (-fassociative-math, -freciprocal-math):
5663 Document new flags.
5664 * tree-tailcall.c (process_assignment): Use -fassociative-math
5665 when reodering operands of floating-point type.
5666 * fold-const.c (fold_comparison, fold_binary): Use
5667 -fassociative-math and -freciprocal-math instead of
5668 -funsafe-math-optimization flag.
5669 * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
5670 * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
5671 -freciprocal-math instead of -funsafe-math-optimizations.
5672 * opts.c (set_fast_math_flags): Set -freciprocal-math and
5673 -fassociative-math when -ffast-math is set.
5674 (set_unsafe_math_optimizations_flags): New Function
5675 to set -freciprocal-math and -fassociative-math when
5676 -funsafe-math-optimizations is set.
5677 (common_handle_option): Call it.
5678 * tree-vectorizer.c (vect_is_simple_reduction): Use
5679 -fassociative-math when doing reduction on floats.
5680 * loop-unroll.c (analyze_insn_to_expand_var): Use
5681 -fassociative-math when expanding an accumulator of type float.
5682 * simplify-rtx.c (simplify_binary_operation_1): Use
5683 -fassociative-math and -freciprocal-math when reordeing operands
5684 of floating-point type.
5685 * combine.c (combine_simplify_rtx): Likewise.
5686 * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
5687 Likewise.
5688 * common.opt (-fassociative-math, -freciprocal-math): New flags.
5689
5690 2007-09-04 Paolo Carlini <pcarlini@suse.de>
5691
5692 PR c++/18608
5693 * doc/install.texi (--enable-__cxa_atexit): Fix typo.
5694
5695 2007-09-04 Jan Hubicka <jh@suse.cz>
5696
5697 * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
5698
5699 2007-09-04 Jan Hubicka <jh@suse.cz>
5700
5701 * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
5702 and corresponding MATCH_DUP.
5703
5704 2007-09-04 Uros Bizjak <ubizjak@gmail.com>
5705
5706 PR middle-end/33187
5707 * combine.c (subst): Do not try to simplify X if it represents load
5708 of FP constant from the constant pool via float extension.
5709
5710 2007-09-04 Ben Elliston <bje@au.ibm.com>
5711
5712 * c-opts.c: Include "tm_p.h".
5713 * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
5714
5715 2007-09-04 Richard Guenther <rguenther@suse.de>
5716
5717 PR tree-optimization/33291
5718 * tree-pretty-print.c (dump_generic_node): Dump all
5719 qualifiers for pointer types, not only first. Dump
5720 qualifiers for aggregate types as well.
5721 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
5722 use the canonical type for building ARRAY_REFs.
5723 * gimplify.c (canonicalize_addr_expr): Clean up. The
5724 correct validness check is compatibility of the pointer
5725 types. Always use the canonical type for building
5726 ARRAY_REFs and ADDR_EXPRs.
5727 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
5728 change that disabled propagation of ADDR_EXPRs into statements
5729 with volatile ops.
5730
5731 2007-09-03 Zack Weinberg <zack@codesourcery.com>
5732
5733 * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
5734 (umulsi3_highpart): Make into expanders; existing insns are
5735 now named *[insn]_nov6. Add stars to existing [insn]_v6
5736 counterparts' names.
5737
5738 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
5739
5740 * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
5741 (unprotoize.o): Remove SHLIB_MULTILIB.
5742
5743 2007-09-03 Eric Weddington <eweddington@cso.atmel.com>
5744
5745 * doc/extend.texi: Document progmem attribute for AVR.
5746
5747 2007-09-03 Anatoly Sokolov <aesok@post.ru>
5748
5749 PR target/28902
5750 * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
5751
5752 2007-09-03 Zack Weinberg <zack@codesourcery.com>
5753
5754 * optabs.c (expand_ffs): Initialize val and defined_at_zero
5755 to avoid warnings.
5756
5757 * optabs.c: Remove unnecessary forward declarations.
5758 (expand_unop_direct): New, broken out of expand_unop.
5759 (expand_doubleword_clz): New.
5760 (expand_ctz): Move above expand_ffs. Use
5761 start_sequence, end_sequence, add_equal_note, and
5762 expand_unop_direct. Add more commentary.
5763 (expand_ffs): Try both ctz optab and expand_ctz.
5764 Generate a test and branch if the hardware doesn't give us
5765 a useful value for input zero. Style improvements similar to
5766 expand_ctz.
5767
5768 * config/arm/arm.md (ffssi2, ctzsi2): Delete.
5769
5770 2007-09-03 Zack Weinberg <zack@codesourcery.com>
5771
5772 * config.gcc: Delete stanza for arm-semi-aof and
5773 armel-semi-aof targets.
5774 * config/arm/arm-protos.h
5775 * config/arm/arm.c
5776 * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
5777 make all #ifndef AOF_ASSEMBLER blocks unconditional. Also
5778 delete aof_pic_label and remove mention of AOF in comments.
5779 * config/arm/arm.md: Delete patterns used only for AOF assembly.
5780 * config/arm/aof.h
5781 * config/arm/semiaof.h
5782 * config/arm/t-semi: Delete file.
5783
5784 2007-09-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5785
5786 * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
5787 CONST_CAST_BB): New macros for type-specific casts.
5788 (CONST_CAST): Add a TYPE parameter and define it in terms of
5789 CONST_CAST2.
5790
5791 * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
5792 * c-lex.c (cb_ident, lex_string): Likewise,
5793 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
5794 * config/i386/i386.c (ix86_function_regparm,
5795 ix86_function_sseregparm): Use CONST_CAST_TREE.
5796 * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
5797 CONST_CAST.
5798 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
5799 give_switch, set_multilib_dir): Likewise,
5800 * gengtype-parse.c (string_seq, typedef_name): Likewise,
5801 * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
5802 * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
5803 * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
5804 * prefix.c (update_path): Likewise,
5805 * pretty-print.c (pp_base_destroy_prefix): Likewise,
5806 * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
5807 * tree-cfg.c (tree_can_merge_blocks_p,
5808 tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
5809 * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
5810 * tree.c (build_string): Supply a TYPE for CONST_CAST.
5811 (attribute_list_contained): Use CONST_CAST_TREE.
5812
5813 2007-09-03 Krister Walfridsson <cato@df.lth.se>
5814
5815 * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
5816
5817 2007-09-03 Richard Sandiford <richard@codesourcery.com>
5818
5819 PR middle-end/33290
5820 * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
5821 before forcing them into a register.
5822
5823 2007-09-03 Richard Sandiford <richard@codesourcery.com>
5824
5825 * config/mips/mips.md (fetchop_bit): Use define_code_iterator
5826 rather than define_code_macro.
5827
5828 2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5829
5830 * gcc.c (xputenv): New function.
5831 (putenv_from_prefixes): Use xputenv instead of putenv.
5832 (process_command): Use xputenv instead of putenv.
5833 (set_collect_gcc_options): Use xputenv instead of putenv.
5834 (main): Use xputenv instead of putenv.
5835
5836 2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
5837
5838 * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
5839 availability of swap instruction.
5840 * config/cris/cris.md (bswapsi2): Implement using swap instruction.
5841
5842 2007-09-03 Revital Eres <eres@il.ibm.com>
5843
5844 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
5845 Documentation.
5846
5847 2007-09-03 Vladimir Yanovsky <yanov@il.ibm.com>
5848 Ayal Zaks <zaks@il.ibm.com>
5849 Revital Eres <eres@il.ibm.com>
5850
5851 * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
5852 compute_split_row): New functions.
5853 (ps_unschedule_node): Remove.
5854 (normalize_sched_times): Iterate over the already scheduled
5855 insns instead of the number of nodes.
5856 (MAX_SPLIT_NUM): New definition.
5857 (sms_schedule_by_order): Change the scheduling heuristic to
5858 avoid useless increases of initiation interval ii.
5859 (get_sched_window): Add dump printouts.
5860
5861 2007-09-02 David Daney <ddaney@avtrex.com>
5862
5863 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
5864 UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
5865 (optab, insn): Add more attributes.
5866 (fetchop_bit): New code macro.
5867 (immediate_insn): New code macro attribute.
5868 (sync): Change condition to ISA_HAS_SYNC.
5869 (rdhwr): Change predicate for operand 0 to register_operand.
5870 (memory_barrier): New expand.
5871 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
5872 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
5873 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
5874 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5875 sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
5876 * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
5877 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
5878 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
5879 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
5880
5881 2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
5882 Hans-Peter Nilsson <hp@axis.com>
5883
5884 * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
5885 Defined to describe availability and behavior of CLZ.
5886 * config/cris/cris.md (clzsi2): Implement using lz instruction.
5887 * config/cris/cris.opt: Tweak comment for "-metrax4".
5888 * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
5889 * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
5890 (count_leading_zeros): Define.
5891
5892 2007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5893
5894 * ggc-page.c (ggc_pch_read): Call validate_free_objects.
5895
5896 2007-09-02 Joseph Myers <joseph@codesourcery.com>
5897
5898 PR middle-end/33272
5899 * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
5900 decayed from array.
5901
5902 2007-09-01 Kazu Hirata <kazu@codesourcery.com>
5903
5904 * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
5905 config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
5906 ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
5907 sched-deps.c, sched-int.h, system.h, target.h,
5908 tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
5909 tree.def: Fix comment typos.
5910
5911 2007-09-01 Kazu Hirata <kazu@codesourcery.com>
5912
5913 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
5914 (override_options): Turn on -mstrict-align on non-ColdFire
5915 targets.
5916 * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
5917
5918 2007-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5919
5920 * c-common.c (const_strip_array_types): Delete.
5921 * c-common.h (const_strip_array_types): Likewise.
5922 * emit-rtl.c (const_next_insn, const_previous_insn,
5923 const_next_nonnote_insn, const_prev_nonnote_insn,
5924 const_next_real_insn, const_prev_real_insn,
5925 const_next_active_insn, const_prev_active_insn, const_next_label,
5926 const_prev_label): Delete.
5927 * gimple-low.c (block_may_fallthru): Use expr_last.
5928 * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
5929 * rtl.h (const_previous_insn, const_next_insn,
5930 const_prev_nonnote_insn, const_next_nonnote_insn,
5931 const_prev_real_insn, const_next_real_insn,
5932 const_prev_active_insn, const_next_active_insn, const_prev_label,
5933 const_next_label): Delete.
5934 * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
5935 * system.h (CONST_CAST): Update comment.
5936 * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
5937 (const_first_stmt, const_last_stmt): Delete.
5938 (tree_block_ends_with_condjump_p): Use last_stmt.
5939 * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
5940 * tree-iterator.c (const_expr_first, const_expr_last,
5941 const_expr_only): Delete.
5942 * tree.c (const_lookup_attribute): Likewise.
5943 (attribute_list_contained): Use lookup_attribute.
5944 * tree.h (const_lookup_attribute, const_expr_first,
5945 const_expr_last, const_expr_only): Delete.
5946
5947 2007-09-01 Richard Guenther <rguenther@suse.de>
5948
5949 * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
5950 instead of TREE_THIS_VOLATILE.
5951 * tree-ssa-operands.c (add_virtual_operand): Do not set
5952 has_volatile_ops. Do not check s_ann for NULL.
5953 (get_indirect_ref_operands): Likewise.
5954 (get_expr_operands): Likewise. For all reference trees
5955 set has_volatile_ops based on TREE_THIS_VOLATILE. Also
5956 check base of reference for TREE_THIS_VOLATILE.
5957
5958 2007-09-01 Richard Guenther <rguenther@suse.de>
5959
5960 * tree-cfg.c (verify_gimple_expr): Fix check for conversions
5961 between integral types. Also allow conversions between
5962 pointer types.
5963
5964 2007-08-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
5965
5966 * optabs.c (prepare_float_lib_cmp): Use
5967 libgcc_cmp_return_mode instead of word_mode.
5968 * config/dfp-bit.h: Likewise.
5969 * config/fp-bit.h: Likewise.
5970 * config/spu/spu.c (spu_libgcc_cmp_return_mode):
5971 New function.
5972 (spu_libgcc_shift_count_mode): New function.
5973 (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
5974 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
5975
5976 2007-08-31 Joseph Myers <joseph@codesourcery.com>
5977
5978 * tree-pretty-print.c: Include output.h.
5979 (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
5980 HOST_WIDE_INT_PRINT_DEC.
5981 * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
5982
5983 2007-08-31 Zdenek Dvorak <ook@ucw.cz>
5984
5985 PR rtl-optimization/33224
5986 * loop-iv.c (latch_dominating_def): Check that the definition belongs
5987 to the analysed region.
5988
5989 2007-08-31 Richard Guenther <rguenther@suse.de>
5990
5991 * function.c (allocate_struct_function): Do not set
5992 current_function_returns_pointer.
5993 * function.h (struct var_refs_queue): Remove.
5994 (struct simple_obstack_stack): Likewise.
5995 (struct function): Remove fixup_var_refs_queue member.
5996 Remove returns_pointer flag.
5997 (current_function_returns_pointer): Remove define.
5998
5999 2007-08-31 Nick Clifton <nickc@redhat.com>
6000
6001 * tree-ssa-coalesce.c (compare_pairs): Use the elements as
6002 secondary keys in order to obtain a stable sort.
6003
6004 2007-08-31 Nick Clifton <nickc@redhat.com>
6005
6006 PR target/33132
6007 * config/m32r/constraints.md: Add W constraint for integer zero.
6008 * config/m32r/m32r.md (get_pc): Use W and i constraints.
6009 Fix length calculation by using alternatives.
6010
6011 2007-08-31 Richard Sandiford <richard@codesourcery.com>
6012
6013 * optabs.c (shift_optab_p, commutative_optab_p): New functions,
6014 split out from expand_binop.
6015 (avoid_expensive_constant): New function.
6016 (expand_binop_directly): Remove commutative_op argument and
6017 (expand_binop_directly): Remove commutative_op argument and
6018 call cummutative_optab_p instead. Do not change op0 or op1
6019 when swapping xop0 and xop1. Apply avoid_expensive_constant
6020 to each argument after potential swapping. Enforce the
6021 canonical order of commutative operands.
6022 (expand_binop): Use shift_optab_p and commutative_optab_p.
6023 Update the calls to expand_binop_directly. Only force constants
6024 into registers when widening an operation. Only swap operands
6025 once a direct expansion has been rejected.
6026 (expand_twoval_binop): Only force constants into registers when
6027 using a direct expansion.
6028
6029 2007-08-31 Maxim Kuvyrkov <maxim@codesourcery.com>
6030
6031 * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
6032 (sched_analyze_insn): Don't postprocess speculative dependencies when
6033 target has no scheduling.
6034 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
6035 'uninitialized' warning.
6036
6037 2007-08-31 Richard Guenther <rguenther@suse.de>
6038
6039 * tree.c (build_complex_type): Always set TYPE_NAME for
6040 comples types.
6041
6042 2007-08-31 Olivier Hainque <hainque@adacore.com>
6043
6044 * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
6045 internal macro. Default alignment factor for csect directives, chosen
6046 to match what BIGGEST_ALIGNMENT allows.
6047 (DATA_SECTION_ASM_OP): Use it.
6048 * config/rs6000/rs6000.c
6049 (rs6000_xcoff_output_readonly_section_asm_op):
6050 Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
6051 (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
6052
6053 2007-08-31 Olivier Hainque <hainque@adacore.com>
6054
6055 * dbxout.c (dbxout_block): Move declaration within the first
6056 #if defined (DBX_DEBUGGING_INFO) block. Rearrange another such
6057 block to include the definition, together with the associated
6058 helpers.
6059
6060 2007-08-31 David Edelsohn <edelsohn@gnu.org>
6061 Revital Eres <eres@il.ibm.com>
6062
6063 * doc/invoke.texi (-mpaired): Document flag.
6064 * config.gcc: Include paired.h in powerpc extra_headers and
6065 750cl.h in powerpc-*-linux*paired*.
6066 * config/rs6000/rs6000.opt (-mpaired): New flag.
6067 * config/rs6000/rs6000.c (paired_init_builtins,
6068 paired_expand_builtin, paired_expand_lv_builtin,
6069 paired_expand_stv_builtin, paired_expand_predicate_builtin):
6070 New functions to support the paired single builtin functions.
6071 (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
6072 (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
6073 single builtins.
6074 (bdesc_paired_preds): New structure for paired predicate
6075 instructions.
6076 (rs6000_expand_builtin): Expand paired single builtins.
6077 (rs6000_init_builtins): Init paired single builtins.
6078 (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
6079 Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
6080 and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf. Add new types
6081 v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
6082 (rs6000_vector_mode_supported_p): Support paired vector mode.
6083 * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
6084 PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
6085 New.
6086 (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
6087 (DATA_ALIGNMENT): Likewise.
6088 (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
6089 (rs6000_builtins): Add PAIRED builtins.
6090 * config/rs6000/rs6000.md: Include paired.md.
6091 * config/rs6000/paired.h: New.
6092 * config/rs6000/paired.md: New.
6093 * config/rs6000/750cl.h: New.
6094 * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
6095
6096 2007-08-30 Ollie Wild <aaw@google.com>
6097
6098 * c-opts.c (c_common_handle_option): Support -fno-directives-only.
6099 * gcc.c (default_compilers): Add -fno-directives-only to
6100 @assembler-with-cpp.
6101
6102 2007-08-30 Sandra Loosemore <sandra@codesourcery.com>
6103
6104 PR middle-end/33211
6105
6106 * regclass.c (initial_fixed_regs): Revert previous change and make
6107 it const again.
6108 (initial_call_used_regs): Likewise.
6109 (initial_call_really_used_regs): Delete, reverting previous addition.
6110 (initial_reg_names): Likewise.
6111 (init_reg_sets): Revert previous change.
6112 (saved_fixed_regs): New.
6113 (saved_call_used_regs): New.
6114 (saved_call_really_used_regs): New.
6115 (saved_reg_names): New.
6116 (save_register_info): New.
6117 (restore_register_info): New.
6118 (init_reg_sets_1): Replace reset of register info with call to
6119 restore_register_info.
6120 * rtl.h (save_register_info): Declare.
6121 * toplev.c (backend_init): Call save_register_info.
6122
6123 2007-08-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6124
6125 * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
6126 from the original statement.
6127
6128 2007-08-30 Chao-ying Fu <fu@mips.com>
6129
6130 * c-lex.c (interpret_fixed): Declare.
6131 (interpret_float): Process _Fract and _Accum.
6132 (interpret_fixed): New function.
6133 * final.c (output_addr_const): Process CONST_FIXED.
6134 * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
6135 (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
6136 SS_DIV, US_DIV.
6137 (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
6138 US_DIV, US_ASHIFT.
6139 (simplify_immed_subreg): Support CONST_FIXED.
6140 Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
6141 (simplify_subreg): Support CONST_FIXED.
6142
6143 2007-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
6144
6145 * config/rs6000/ppu_intrinsics.h: New file.
6146 * config.gcc (powerpc*-*-* <extra_headers>): Install
6147 ppu_intrinsics.h.
6148
6149 2007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
6150
6151 * cfg.c (dump_flow_info): Change to also print entry and exit
6152 block info.
6153 * print-rtl.c (print_rtl_single): Allow to print rtl with
6154 -fdump-unnumbered.
6155
6156 2007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
6157
6158 * df-core.h (df_dump_region): New function.
6159 * df.h (df_dump_region): New function.
6160 * loop-invariant.c (find_defs): Add call to df_dump_region.
6161 * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
6162 df_dump_region.
6163
6164 2007-08-30 Jakub Jelinek <jakub@redhat.com>
6165
6166 PR target/33168
6167 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
6168 true if any of the compare_section_name calls returned true,
6169 rather than if any returned false.
6170
6171 2007-08-30 Richard Guenther <rguenther@suse.de>
6172
6173 PR tree-optimization/33199
6174 * tree-ssa-structalias.c (handle_lhs_call): New function.
6175 (find_func_aliases): In non-IPA mode make sure that for
6176 calls that return a pointer we add a constraint for the
6177 result to point to anything.
6178
6179 2007-08-30 Richard Guenther <rguenther@suse.de>
6180
6181 * doc/invoke.texi (-mveclibabi): Document new target option.
6182 * config/i386/i386.opt (-mveclibabi): New target option.
6183 * config/i386/i386.c (ix86_veclib_handler): Handler for
6184 vectorization library support.
6185 (override_options): Handle the -mveclibabi option, initialize
6186 the vectorization library handler.
6187 (ix86_builtin_vectorized_function): As fallback call the
6188 vectorization library handler, if set.
6189 (ix86_veclibabi_acml): New static function for ACML ABI style
6190 vectorization support.
6191
6192 2007-08-30 Jakub Jelinek <jakub@redhat.com>
6193
6194 * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
6195 used_m, even if it is 32-bit aligned, adjust used_m MEM to have
6196 SImode and update m. Don't run gen_lowpart_common on arbitrary
6197 memory address, force it to register first.
6198
6199 PR middle-end/32758
6200 * dce.c (dce_process_block): Don't delete setters of
6201 artificially used registers.
6202
6203 2007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6204
6205 * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
6206 "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
6207 "*add<mode>3_alc_carry2_cconly"): New insn definitions.
6208
6209 2007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6210
6211 * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
6212 pattern.
6213 * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
6214 "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
6215
6216 2007-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6217
6218 * system.h: Activate -Wcast-qual as warning-only.
6219
6220 2007-08-29 Paolo Bonzini <bonzini@gnu.org>
6221
6222 PR target/33168
6223 * config/rs6000/rs6000.c (compare_section_name): New function.
6224 (rs6000_elf_in_small_data_p): Compare section prefixes instead
6225 of full name.
6226
6227 2007-08-29 Olivier Hainque <hainque@adacore.com>
6228
6229 * xcoffout.c: #include debug.h.
6230 * Makefile.in (xcoffout.o): Add debug.h dependency.
6231
6232 2007-08-29 Uros Bizjak <ubizjak@gmail.com>
6233
6234 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
6235 Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
6236
6237 2007-08-29 Richard Guenther <rguenther@suse.de>
6238
6239 * tree-pretty-print.c (dump_generic_node): Print
6240 label DECL_UID as D.%u.
6241 * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
6242
6243 2007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6244
6245 * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
6246 * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
6247
6248 2007-08-29 Douglas Gregor <doug.gregor@gmail.com>
6249
6250 PR c++/33194
6251 * tree.c (build_type_attribute_qual_variant): Set canonical types
6252 on the final, unqualified attribute variant before building the
6253 qualified version.
6254
6255 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6256
6257 * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
6258 order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
6259
6260 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6261
6262 Revert
6263 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6264 * config/bfin/bfin.md (composev2hi): Put operands into vector
6265 with correct order.
6266
6267 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6268
6269 * config/bfin/bfin.md (composev2hi): Put operands into vector
6270 with correct order.
6271
6272 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6273
6274 * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
6275 attribute when appropriate.
6276 (bfin_handle_l1_text_attribute): New.
6277 (bfin_handle_l1_data_attribute): New.
6278 (bfin_attribute_table): Add attributes: l1_text, l1_data,
6279 l1_data_A and l1_data_B.
6280 * doc/extend.texi (node Function Attributes): Document l1_text
6281 function attribute.
6282 (Variable Attributes): Add Blackfin subsection. Document l1_data,
6283 l1_data_A and l1_data_B variable attributes.
6284
6285 2007-08-28 Jie Zhang <jie.zhang@analog.com>
6286
6287 * config/bfin/bfin.opt (minline-plt): Add.
6288 * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
6289 call to global functions.
6290 * doc/invoke.texi (Option Summary): Mention -minline-plt.
6291 (Blackfin Options): Document -minline-plt.
6292
6293 2007-08-28 Nathan Sidwell <nathan@codesourcery.com>
6294
6295 * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
6296 given a non-function.
6297 (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
6298
6299 2007-08-28 DJ Delorie <dj@redhat.com>
6300
6301 * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
6302
6303 2007-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6304
6305 * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
6306
6307 2007-08-28 Richard Guenther <rguenther@suse.de>
6308
6309 * tree.h (struct tree_function_decl): Increase size of
6310 function_code bitfield.
6311
6312 2007-08-28 Nathan Sidwell <nathan@codesourcery.com>
6313 Kazu Hirata <kazu@codesourcery.com>
6314
6315 * gcc/config/m68k/linux.h
6316 (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
6317 * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
6318 (m68k_return_in_memory): New.
6319 * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
6320 New.
6321
6322 2007-08-28 Uros Bizjak <ubizjak@gmail.com>
6323
6324 PR target/32661
6325 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
6326 Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
6327 operand) when top VEC_SELECT extracts scalar element.
6328 * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
6329 (*vec_extract_v4sf_mem): Ditto.
6330
6331 2007-08-28 Jakub Jelinek <jakub@redhat.com>
6332
6333 PR middle-end/32370
6334 * passes.c (init_optimization_passes): Move pass_df_finish
6335 after pass_postreload sublist.
6336
6337 PR rtl-optimization/33148
6338 * simplify-rtx.c (simplify_unary_operation_1): Only optimize
6339 (neg (lt X 0)) if X has scalar int mode.
6340
6341 PR debug/32914
6342 * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
6343 initializer, use build_vector_from_ctor if possible to create
6344 VECTOR_CST out of it. If vector initializer is not VECTOR_CST
6345 even after this, return NULL.
6346
6347 2007-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
6348
6349 * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
6350
6351 2007-08-28 Richard Guenther <rguenther@suse.de>
6352
6353 * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
6354 (struct tree_function_decl): Make function_code a bitfield.
6355 Add disregard_inline_limits flag.
6356 * cgraphunit.c (cgraph_process_new_functions): Check
6357 DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
6358 (cgraph_preserve_function_body_p): Likewise.
6359 * ipa-inline.c (compute_inline_parameters): Likewise.
6360 * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
6361 for GNU C extern inline functions.
6362 (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
6363 * tree-inline.c (disregard_inline_limits_p): Remove.
6364 * tree-inline.h (disregard_inline_limits_p): Likewise.
6365 * c-common.c (handle_always_inline_attribute): Set
6366 DECL_DISREGARD_INLINE_LIMITS.
6367 * langhooks.c (add_builtin_function): Verify the function code
6368 fits in the bitfield.
6369
6370 2007-08-28 Mircea Namolaru <namolaru@il.ibm.com>
6371 Vladimir Yanovsky <yanov@il.ibm.com>
6372 Revital Eres <eres@il.ibm.com>
6373 Andrey Belevantsev <abel@ispras.ru>
6374
6375 * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
6376 is set.
6377 * modulo-sched.c: Add documentation regarding do-loop.
6378 (doloop_register_get): Change number of arguments to support
6379 the new do-loop pattern and check whether COUNT_REG has no other
6380 occurences in the loop besides in the control part.
6381 (duplicate_insns_of_cycles): Do not duplicate the insn which
6382 changes count_reg as it is already adjusted.
6383 (generate_prolog_epilog): New argument to support the new
6384 do-loop pattern. Change the subtract instruction to use
6385 expand_simple_binop. Call duplicate_insns_of_cycles with new
6386 argument.
6387 (sms_schedule): Call doloop_register_get and
6388 generate_prolog_epilog with new argument. Do not handle loops
6389 with single sets insns with subreg in their lhs.
6390 * loop-doloop.c (doloop_optimize): Support for another do-loop
6391 pattern.
6392 (doloop_condition_get): Gets an instruction instead of a pattern
6393 and change the return condition when the do-loop pattern is
6394 not parallel.
6395 * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
6396 deps when considering to not create edges.
6397
6398 2007-08-27 Alexandre Oliva <aoliva@redhat.com>
6399
6400 * doc/extend.texi (gnu_inline funtion attribute): Document C++
6401 behavior.
6402
6403 2007-08-27 Jason Merrill <jason@redhat.com>
6404
6405 PR c++/31337
6406 * gimplify.c (gimplify_modify_expr): Discard the assignment of
6407 zero-sized types after calling gimplify_modify_expr_rhs.
6408
6409 2007-08-27 Sandra Loosemore <sandra@codesourcery.com>
6410
6411 * regclass.c (init_reg_autoinc): Fix typo.
6412
6413 2007-08-27 Daniel Berlin <dberlin@dberlin.org>
6414
6415 Fix PR tree-optimization/33173
6416 * tree-ssa-alias.c (find_used_portions): Fix reversed test.
6417
6418 2007-08-27 H.J. Lu <hongjiu.lu@intel.com>
6419
6420 PR target/31385
6421 * config/i386/i386.h (VALID_DFP_MODE_P): New.
6422 * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
6423 GPR.
6424
6425 2007-08-27 Sandra Loosemore <sandra@codesourcery.com>
6426 David Ung <davidu@mips.com>
6427 Nigel Stephens <nigel@mips.com>
6428
6429 Separate target-specific initialization from general
6430 back-end initialization.
6431
6432 * toplev.c (init_alignments): New, split out from...
6433 (process_options): ...here.
6434 (backend_init_target): New, split out from...
6435 (backend_init): ...here.
6436 (lang_dependent_init_target): New, split out from...
6437 (lang_dependent_init): ...here.
6438 (target_reinit): New.
6439 * toplev.h (target_reinit): Declare.
6440 * expr.c (init_expr_target): Renamed from init_expr_once, since it
6441 now can be called more than once. Update comments.
6442 * expr.h (init_expr_target): Likewise.
6443 * alias.c (init_alias_target): Renamed from init_alias_once, since it
6444 now can be called more than once. Explicitly zero
6445 static_reg_base_value.
6446 * emit-rtl.c (init_emit_regs): New, split out from...
6447 (init_emit_once): Here.
6448 * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
6449 non-const, so that changes from command-line arguments can overwrite
6450 values provided by the static initializers.
6451 (initial_call_really_used_regs): New, used similarly to the above.
6452 (initial_reg_names): Likewise.
6453 (last_mode_for_init_move_cost): Promoted function-local static to
6454 file-scope static to make it accessible outside init_move_cost.
6455 (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
6456 Do not initialize inv_reg_alloc_order yet, either. Do initialize
6457 reg_names since it is needed for parsing command-line options.
6458 (init_move_cost): Use last_mode_for_init_move_cost instead of
6459 function-local static.
6460 (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
6461 call_really_used_regs now. Reinitialize reg_names. Also
6462 initialize inv_reg_alloc_order. Zero reg_class_subunion and
6463 reg_class_superunion. Clear losing_caller_save_reg_set.
6464 Preserve global registers if called more than once. Reset
6465 move cost, may_move_in_cost, may_move_out_cost, and
6466 last_mode_for_init_move_cost.
6467 (init_reg_modes_target): Renamed from init_reg_modes_once, since it
6468 can now be invoked more than once. Update comments.
6469 (init_regs): Update comments.
6470 (fix_register): Update initial_fixed_regs, initial_call_used_regs,
6471 and initial_call_really_used_regs, instead of the non-initial
6472 variables. This allows us to save the command-line register settings
6473 after target reinitialization.
6474 (init_reg_autoinc): Zero forbidden_inc_dec_classes.
6475 * rtl.h (init_emit_regs): Declare.
6476 (init_reg_modes_target, init_alias_target): Renamed as described
6477 above.
6478 * reload1.c (init_reload): Update comments.
6479 * optabs.c (init_optabs): Likewise.
6480 * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
6481
6482 2007-08-26 Chao-ying Fu <fu@mips.com>
6483
6484 * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
6485 __typeof().
6486
6487 2007-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6488
6489 * alias.c (memory_modified_1, memory_modified_in_insn_p):
6490 Constify.
6491 * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
6492 Likewise.
6493 * bb-reorder.c (copy_bb_p): Likewise.
6494 * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
6495 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
6496 block_ends_with_condjump_p): Likewise.
6497 * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
6498 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
6499 block_ends_with_condjump_p): Likewise.
6500 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
6501 * cfgrtl.c (can_delete_note_p, can_delete_label_p,
6502 rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
6503 rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
6504 need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
6505 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
6506 debug_true_const_tree instad of debug_true_tree.
6507 * debug.c (do_nothing_debug_hooks): Likewise.
6508 * debug.h (ignore_block, debug_true_const_tree): Constify.
6509 * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
6510 dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
6511 decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
6512 same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
6513 dbx_reg_number, is_based_loc, field_type,
6514 simple_type_align_in_bits, simple_decl_align_in_bits,
6515 simple_type_size_in_bits, field_byte_offset, insert_float,
6516 type_tag, member_declared_type, is_redundant_typedef,
6517 secname_for_decl, is_inlined_entry_point): Likewise.
6518 * emit-rtl.c (const_next_insn, const_previous_insn,
6519 const_next_nonnote_insn, const_prev_nonnote_insn,
6520 const_next_real_insn, const_prev_real_insn,
6521 const_next_active_insn, const_prev_active_insn, const_next_label,
6522 const_prev_label): Likewise.
6523 * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
6524 Likewise.
6525 * haifa-sched.c (may_trap_exp, haifa_classify_insn,
6526 find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
6527 sched_insn_is_legitimate_for_speculation_p): Likewise.
6528 * jump.c (reversed_comparison_code_parts,
6529 reversed_comparison_code, reversed_comparison, condjump_label):
6530 Likewise.
6531 * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
6532 * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
6533 Likewise.
6534 * rtl.h (const_previous_insn, const_next_insn,
6535 const_prev_nonnote_insn, const_next_nonnote_insn,
6536 const_prev_real_insn, const_next_real_insn,
6537 const_prev_active_insn, const_next_active_insn, const_prev_label,
6538 const_next_label, modified_between_p, modified_in_p,
6539 const_note_storeskeep_with_call_p, condjump_label,
6540 reversed_comparison, reversed_comparison_code,
6541 reversed_comparison_code_parts, memory_modified_in_insn_p,
6542 stack_regs_mentioned): Likewise.
6543 * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
6544 keep_with_call_p): Likewise.
6545 * sched-deps.c (deps_may_trap_p, sched_get_condition,
6546 conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
6547 sd_lists_size, sd_lists_empty_p): Likewise.
6548 * sched-int.h (sched_insns_conditions_mutex_p,
6549 haifa_classify_insn, no_real_insns_p,
6550 sched_insn_is_legitimate_for_speculation_p, sd_next_list,
6551 sd_lists_size, sd_lists_empty_p): Likewise.
6552 * sdbout.c (sdb_debug_hooks): Likewise.
6553 * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
6554 stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
6555 -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
6556 Likewise.
6557 * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
6558 tree_can_throw_internal): Likewise.
6559 * tree-flow-inline.h (phi_nodes): Likewise.
6560 * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
6561 tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
6562 * tree-gimple.c (const_get_call_expr_in): Likewise.
6563 * tree-gimple.h (const_get_call_expr_in): Likewise.
6564 * tree.c (const_lookup_attribute, attribute_list_equal,
6565 attribute_list_contained): Likewise.
6566 * tree.h (attribute_list_equal, attribute_list_contained,
6567 const_lookup_attribute): Likewise.
6568 * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
6569
6570 2007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
6571
6572 * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
6573 tree-ssa-pre.c: Remove unnecessary trailing whitespace.
6574
6575 2007-08-26 H.J. Lu <hongjiu.lu@intel.com>
6576
6577 PR target/32991
6578 * config/alpha/constraints.md: Delete "svn:mime-type" property
6579 with svn propdel "svn:mime-type".
6580
6581 2007-08-26 H.J. Lu <hongjiu.lu@intel.com>
6582
6583 PR middle-end/33181
6584 * ifcvt.c (noce_get_alt_condition): Make sure that the previous
6585 non NOTE insn doesn't cross basic block.
6586 (noce_try_abs): Likewise.
6587 (noce_process_if_block): Likewise.
6588
6589 2007-08-26 David Edelsohn <edelsohn@gnu.org>
6590
6591 PR target/33151
6592 * config/rs6000/predicates.md (offsettable_mem_operand): Memory
6593 operand without auto-inc-dec.
6594 * config/rs6000/rs6000.md (floatsidf2_internal): Use
6595 offsettable_mem_operand.
6596 (floatunssidf2_internal): Same.
6597 (fix_truncdfsi2_internal): Same.
6598 (floatsidf_ppc64): Same.
6599 (floatunssidf_ppc64): Same.
6600 (fix_trunctfsi2_internal): Same.
6601
6602 2007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
6603
6604 PR bootstrap/30620
6605 * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
6606 pass defines needed for version.c.
6607
6608 2007-08-25 Joseph Myers <joseph@codesourcery.com>
6609
6610 * configure.ac (--debug-prefix-map check): Change assembler
6611 version presumed to have feature to 2.18.
6612 * configure: Regenerate.
6613
6614 2007-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6615
6616 * c-common.c (vector_types_convertible_p,
6617 decl_with_nonnull_addr_p, c_promoting_integer_type_p,
6618 self_promoting_args_p): Constify.
6619 * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
6620 c_promoting_integer_type_p, self_promoting_args_p,
6621 anon_aggr_type_p, vector_types_convertible_p): Likewise.
6622 * c-decl.c (anon_aggr_type_p): Likewise.
6623 * * c-dump.c (dump_stmt): Likewise.
6624 * c-objc-common.c (has_c_linkage): Likewise.
6625 * c-tree.h (same_translation_unit_p): Likewise.
6626 * c-typeck.c (null_pointer_constant_p,
6627 tagged_types_tu_compatible_p, function_types_compatible_p,
6628 type_lists_compatible_p, lvalue_or_else, lvalue_p,
6629 comptypes_internal, struct tagged_tu_seen_cache,
6630 same_translation_unit_p, alloc_tagged_tu_seen_cache,
6631 c_size_in_bytes): Likewise.
6632 * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
6633 hash_ptr, eq_ptr): Likewise.
6634 * langhooks-def.h (lhd_decl_ok_for_sibcall,
6635 LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
6636 * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
6637 * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
6638 Likewise.
6639 * optabs.c (optab_for_tree_code): Likewise.
6640 * optabs.h (optab_for_tree_code): Likewise.
6641 * rtl.h (simplify_rtx): Likewise.
6642 * simplify-rtx.c (simplify_rtx): Likewise.
6643 * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
6644 dump_flag, dump_node): Likewise.
6645 * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
6646 queue_and_dump_type, dump_flag): Likewise.
6647 * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
6648 * tree-pass.h (dump_node): Likewise.
6649 * tree-vectorizer.c (vect_can_force_dr_alignment_p,
6650 supportable_narrowing_operation): Likewise.
6651 * tree-vectorizer.h (vect_can_force_dr_alignment_p,
6652 supportable_narrowing_operation): Likewise.
6653 * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
6654 is_negative_overflow_infinity, is_positive_overflow_infinity,
6655 is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
6656 nonnull_arg_p, get_value_range, vrp_operand_equal_p,
6657 update_value_range, add_equivalence, ssa_name_nonnegative_p,
6658 ssa_name_nonzero_p, fp_predicate): Likewise.
6659 * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
6660 * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
6661 ssa_name_nonnegative_p): Likewise.
6662
6663 2007-08-25 Hans Kester <hans.kester@ellips.nl>
6664
6665 * config.gcc : Add x86_64-elf target.
6666
6667 2007-08-25 Jakub Jelinek <jakub@redhat.com>
6668
6669 * expr.c (store_expr): Fix order of store_by_pieces arguments.
6670
6671 2007-08-24 Sandra Loosemore <sandra@codesourcery.com>
6672 Nigel Stephens <nigel@mips.com>
6673
6674 PR target/11787
6675
6676 * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
6677 (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
6678 * expr.c (SET_BY_PIECES_P): Define.
6679 (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
6680 it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
6681 (store_expr): Pass MEMSETP argument to can_store_by_pieces and
6682 store_by_pieces.
6683 * expr.h (SET_RATIO): Define.
6684 (can_store_by_pieces, store_by_pieces): Update prototypes.
6685 * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
6686 can_store_by_pieces/store_by_pieces.
6687 (expand_builtin_memcpy_args): Likewise.
6688 (expand_builtin_strncpy): Likewise.
6689 (expand_builtin_memset_args): Likewise. Also remove special case
6690 for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
6691 decide what to do instead.
6692 * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
6693 to can_store_by_pieces.
6694
6695 * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
6696 * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
6697
6698 * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
6699 * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
6700 * config/mips/mips.h (MIPS_CALL_RATIO): Define.
6701 (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
6702 (STORE_BY_PIECES_P): Define.
6703
6704 2007-08-24 Tom Tromey <tromey@redhat.com>
6705
6706 * varpool.c (varpool_last_needed_node): Fix comment typo.
6707 * c-decl.c (duplicate_decls): Fix comment typo.
6708 (clone_underlying_type): Update comment.
6709
6710 2007-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6711
6712 * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
6713 alpha_in_small_data_p, alpha_split_complex_arg,
6714 alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6715 Constify.
6716 * config/arm/arm-protos.h (arm_mangle_type): Likewise.
6717 * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
6718 Likewise.
6719 * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
6720 TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6721 * config/darwin-protos.h (darwin_binds_local_p): Likewise.
6722 * config/darwin.c (darwin_binds_local_p): Likewise.
6723 * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
6724 Likewise.
6725 * config/i386/i386-protos.h (i386_pe_binds_local_p,
6726 i386_pe_valid_dllimport_attribute_p): Likewise.
6727 * config/i386/i386.c (ix86_function_regparm,
6728 ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
6729 x86_can_output_mi_thunk, ix86_mangle_type,
6730 TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
6731 * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
6732 i386_pe_binds_local_p): Likewise.
6733 * config/ia64/ia64.c
6734 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
6735 ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
6736 ia64_invalid_conversion, ia64_invalid_unary_op,
6737 ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6738 Likewise.
6739 * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
6740 * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
6741 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6742 * config/mips/mips.c (mips_use_blocks_for_constant_p,
6743 mips_in_small_data_p, mips_use_anchors_for_symbol_p,
6744 mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6745 mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
6746 mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
6747 * config/pa/pa.c (pa_commutative_p): Likewise.
6748 * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
6749 Likewise.
6750 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
6751 rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
6752 rs6000_use_blocks_for_constant_p,
6753 rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
6754 invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6755 TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
6756 * config/s390/s390.c (s390_mangle_type,
6757 TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
6758 Likewise.
6759 * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6760 th_in_small_data_p): Likewise.
6761 * config/sh/sh.c (sh_ms_bitfield_layout_p,
6762 sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6763 Likewise.
6764 * config/sparc/sparc.c (sparc_can_output_mi_thunk,
6765 sparc_mangle_type): Likewise.
6766 * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
6767 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
6768 * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
6769 Likewise.
6770 * hooks.c (hook_bool_mode_const_rtx_false,
6771 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 (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
6781 hook_bool_tree_hwi_hwi_tree_false,
6782 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
6783 hook_int_tree_tree_1, hook_constcharptr_tree_null,
6784 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
6785 hook_constcharptr_int_tree_null,
6786 hook_constcharptr_int_tree_tree_null): Delete.
6787 (default_can_output_mi_thunk_no_vcall): Constify.
6788 * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
6789 hook_bool_tree_hwi_hwi_tree_false,
6790 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
6791 hook_int_tree_tree_1, hook_constcharptr_tree_null,
6792 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
6793 hook_constcharptr_int_tree_null,
6794 hook_constcharptr_int_tree_tree_null): Delete.
6795 (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
6796 hook_bool_const_tree_hwi_hwi_const_tree_false,
6797 hook_bool_const_tree_hwi_hwi_const_tree_true,
6798 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
6799 hook_constcharptr_const_tree_null,
6800 hook_constcharptr_const_rtx_null,
6801 hook_constcharptr_const_tree_const_tree_null,
6802 hook_constcharptr_int_const_tree_null,
6803 hook_constcharptr_int_const_tree_const_tree_null): New.
6804 (default_can_output_mi_thunk_no_vcall): Constify.
6805 * integrate.c (function_attribute_inlinable_p): Likewise.
6806 * integrate.h (function_attribute_inlinable_p): Likewise.
6807 * jump.c (rtx_renumbered_equal_p): Likewise.
6808 * output.h (decl_readonly_section, categorize_decl_for_section,
6809 default_use_anchors_for_symbol_p, default_binds_local_p,
6810 default_binds_local_p_1): Likewise.
6811 * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
6812 Likewise.
6813 * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6814 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
6815 TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
6816 TARGET_COMP_TYPE_ATTRIBUTES,
6817 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
6818 TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
6819 TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
6820 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
6821 TARGET_DWARF_CALLING_CONVENTION): Likewise.
6822 * target.h (can_output_mi_thunk, needs_block_p,
6823 first_cycle_multipass_dfa_lookahead_guard_spec,
6824 vector_alignment_reachable, comp_type_attributes,
6825 function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
6826 commutative_p, use_blocks_for_constant_p,
6827 use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
6828 vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
6829 invalid_within_doloop, valid_dllimport_attribute_p,
6830 split_complex_arg, invalid_arg_for_unprototyped_fn,
6831 invalid_conversion, invalid_unary_op, invalid_binary_op):
6832 Likewise.
6833 * targhooks.c (default_invalid_within_doloop,
6834 hook_invalid_arg_for_unprototyped_fn,
6835 default_builtin_vector_alignment_reachable): Likewise.
6836 (hook_bool_rtx_commutative_p): Delete.
6837 (hook_bool_const_rtx_commutative_p): New.
6838 * targhooks.h (default_invalid_within_doloop,
6839 default_builtin_vector_alignment_reachable,
6840 hook_invalid_arg_for_unprototyped_fn): Constify.
6841 (hook_bool_rtx_commutative_p): Delete.
6842 (hook_bool_const_rtx_commutative_p): New.
6843 * varasm.c (bss_initializer_p, decl_default_tls_model,
6844 categorize_decl_for_section, decl_readonly_section,
6845 default_use_anchors_for_symbol_p, default_binds_local_p,
6846 default_binds_local_p_1): Constify.
6847
6848 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6849
6850 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6851 __NO_BUILTIN if -fno-builtin.
6852
6853 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6854
6855 * config/bfin/bfin.c (print_operand): Report error instead of
6856 ICE for wrong operand.
6857
6858 2007-08-24 Michael Matz <matz@suse.de>
6859
6860 * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
6861
6862 2007-08-24 Richard Guenther <rguenther@suse.de>
6863
6864 PR middle-end/33166
6865 * tree-ssa.c (useless_type_conversion_p): Split into a
6866 recursive and a non-recursive part.
6867 (useless_type_conversion_p_1): New function.
6868 * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
6869 from maybe_fold_offset_to_reference is trivially convertible
6870 to the desired type before doing the simplification.
6871
6872 2007-08-24 Jakub Jelinek <jakub@redhat.com>
6873
6874 * expr.c (store_expr): Optimize initialization of an array
6875 with STRING_CST.
6876 * expr.h (builtin_strncpy_read_str): New prototype.
6877 * builtins.c (builtin_strncpy_read_str): Remove prototype.
6878 No longer static.
6879
6880 2007-08-24 Uros Bizjak <ubizjak@gmail.com>
6881
6882 PR middle-end/33157
6883 * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
6884 field when initializing if_info structure.
6885
6886 2007-08-24 Richard Guenther <rguenther@suse.de>
6887
6888 * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
6889 dependencies.
6890 * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
6891 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
6892 * tree-inline.c (inlinable_function_p): Fold in common parts of
6893 the cannot_inline_tree_fn langhook.
6894 * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
6895 (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
6896 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
6897 cannot_inline_tree_fn langhook.
6898 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
6899 cannot_inline_tree_fn member.
6900
6901 2007-08-24 Richard Guenther <rguenther@suse.de>
6902
6903 * expr.c (get_inner_reference): Do computation of bitoffset
6904 from offset in a way we can detect overflow reliably.
6905
6906 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6907
6908 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
6909
6910 2007-08-24 Jie Zhang <jie.zhang@analog.com>
6911
6912 * config/bfin/bfin.opt (mfast-fp): Add.
6913 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
6914 libbffastfp override libgcc if -mfast-fp.
6915 * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6916 * doc/invoke.texi (Option Summary): Mention -mfast-fp.
6917 (Blackfin Options): Document -mfast-fp.
6918
6919 2007-08-24 Jakub Jelinek <jakub@redhat.com>
6920
6921 PR tree-optimization/32573
6922 PR middle-end/32946
6923 * tree-data-ref.c (initialize_data_dependence_relation): Clear
6924 DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
6925 (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
6926 (build_classic_dist_vector): Return false rather than true if
6927 DDR_ARE_DEPENDENT is non-NULL at the beginning. Return false
6928 if either subscript_dependence_tester_1 or build_classic_dist_vector_1
6929 returned false. Don't call save_dist_v before calling
6930 build_classic_dist_vector_1.
6931 (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
6932 with NULL DDR_ARE_DEPENDENT. Also free DDR_DIST_VECTS and/or
6933 DDR_DIR_VECTS vectors.
6934
6935 2007-08-23 Brian Sidebotham <brian.sidebotham@gmail.com>
6936
6937 * configure.ac (leb128): Modify sed statement to work with any
6938 binutils version string.
6939 * configure: Regenerate
6940
6941 2007-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6942
6943 * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
6944 Wrap in RTX_CODE macro guard.
6945 * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
6946 arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
6947 arm_mark_dllimport, arm_pe_encode_section_info,
6948 arm_pe_unique_section): Use ISO-C function declarations.
6949 * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
6950 c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
6951 c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
6952 Likewise.
6953 * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
6954 * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
6955 defining.
6956 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
6957 warnings.
6958 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
6959 * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
6960 (register_move_cost): Use ISO-C function declarations.
6961 * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
6962 * config/score/score-protos.h (score_declare_object): Add
6963 ATTRIBUTE_PRINTF_4.
6964 * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
6965 warnings.
6966 * final.c (profile_function): Avoid empty if-bodies.
6967
6968
6969 * calls.c (must_pass_in_stack_var_size,
6970 must_pass_in_stack_var_size_or_pad): Constify.
6971 * config/alpha/alpha-protos.h (function_value): Likewise.
6972 * config/alpha/alpha.c (alpha_return_in_memory,
6973 alpha_pass_by_reference, function_value,
6974 unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
6975 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
6976 Likewise.
6977 * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
6978 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6979 TARGET_PROMOTE_PROTOTYPES): Likewise.
6980 * config/arm/arm-protos.h (arm_return_in_memory,
6981 arm_pad_arg_upward, arm_function_value): Likewise.
6982 * config/arm/arm.c (arm_pass_by_reference,
6983 arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
6984 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6985 arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
6986 Likewise.
6987 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
6988 * config/avr/avr-protos.h (avr_function_value): Likewise.
6989 * config/avr/avr.c (avr_return_in_memory,
6990 gas_output_limited_string, gas_output_ascii, avr_function_value,
6991 avr_return_in_memory): Likewise.
6992 * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
6993 * config/bfin/bfin.c (bfin_pass_by_reference,
6994 bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
6995 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
6996 Likewise.
6997 * config/cris/cris.c (cris_pass_by_reference,
6998 TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
6999 * config/crx/crx.c (crx_return_in_memory): Likewise.
7000 * config/darwin.c (function_base, machopic_function_base_name):
7001 Likewise.
7002 * config/fr30/fr30.c (fr30_must_pass_in_stack,
7003 TARGET_PROMOTE_PROTOTYPES): Likewise.
7004 * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
7005 * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
7006 * config/i386/i386-protos.h (ix86_return_in_memory,
7007 ix86_sol10_return_in_memory): Likewise.
7008 * config/i386/i386.c (ix86_function_value,
7009 ix86_function_sseregparm, ix86_must_pass_in_stack,
7010 type_natural_mode, classify_argument, examine_argument,
7011 construct_container, ix86_pass_by_reference, function_value_32,
7012 function_value_64, ix86_function_value_1, return_in_memory_32,
7013 return_in_memory_64, return_in_memory_ms_64,
7014 ix86_return_in_memory, ix86_sol10_return_in_memory,
7015 TARGET_PROMOTE_PROTOTYPES): Likewise.
7016 * config/ia64/ia64-protos.h (ia64_function_value,
7017 ia64_hpux_function_arg_padding): Likewise.
7018 * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
7019 ia64_function_value, bundle_state_hash, bundle_state_eq_p,
7020 ia64_hpux_function_arg_padding): Likewise.
7021 * config/iq2000/iq2000-protos.h (function_arg,
7022 iq2000_function_value): Likewise.
7023 * config/iq2000/iq2000.c (iq2000_return_in_memory,
7024 iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
7025 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7026 function_arg, iq2000_function_value): Likewise.
7027 * config/m32c/m32c-protos.h (m32c_function_value,
7028 m32c_promote_function_return): Likewise.
7029 * config/m32c/m32c.c (m32c_pass_by_reference,
7030 m32c_promote_prototypes, m32c_promote_function_return,
7031 m32c_function_value): Likewise.
7032 * config/m32r/m32r.c (m32r_return_in_memory,
7033 m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
7034 m32r_in_small_data_p): Likewise.
7035 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
7036 Likewise.
7037 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
7038 m68hc11_function_arg_padding): Likewise.
7039 * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
7040 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
7041 m68k_function_value): Likewise.
7042 * config/mcore/mcore-protos.h (mcore_num_arg_regs,
7043 mcore_function_value): Likewise.
7044 * config/mcore/mcore.c (handle_structs_in_regs,
7045 mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
7046 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7047 mcore_num_arg_regs, mcore_function_value): Likewise.
7048 * config/mips/mips-protos.h (mips_pad_arg_upward,
7049 mips_function_value): Likewise.
7050 * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
7051 mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
7052 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7053 TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
7054 mips_function_value): Likewise.
7055 * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
7056 Likewise.
7057 * config/mmix/mmix.c (mmix_pass_by_reference,
7058 TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
7059 mmix_encode_section_info): Likewise.
7060 * config/mn10300/mn10300-protos.h (mn10300_function_value):
7061 Likewise.
7062 * config/mn10300/mn10300.c (mn10300_return_in_memory,
7063 mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
7064 mn10300_function_value): Likewise.
7065 * config/mt/mt-protos.h (mt_function_value): Likewise.
7066 * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
7067 mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
7068 * config/pa/pa-protos.h (function_arg_padding, function_value,
7069 pa_return_in_memory): Likewise.
7070 * config/pa/pa.c (pa_pass_by_reference,
7071 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7072 function_arg_padding, function_value, pa_return_in_memory):
7073 Likewise.
7074 * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
7075 * config/rs6000/rs6000-protos.h (rs6000_function_value,
7076 function_arg_padding): Likewise.
7077 * config/rs6000/rs6000.c (rs6000_return_in_memory,
7078 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
7079 rs6000_pass_by_reference, rs6000_must_pass_in_stack,
7080 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7081 function_arg_padding, altivec_expand_dst_builtin,
7082 altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
7083 altivec_init_builtins, rs6000_common_init_builtins,
7084 rs6000_function_value): Likewise.
7085 * s390/s390-protos.h (s390_function_value): Likewise.
7086 * config/s390/s390.c (s390_function_arg_size,
7087 s390_pass_by_reference, s390_return_in_memory,
7088 s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
7089 TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7090 * config/score/score-protos.h (score_function_value): Likewise.
7091 * config/score/score.c (score_arg_partial_bytes,
7092 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7093 TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
7094 score_pass_by_reference, score_add_offset, score_function_value):
7095 Likewise.
7096 * config/sh/sh-protos.h (sh_attr_renesas_p,
7097 sh_promote_prototypes): Likewise.
7098 * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
7099 sh_callee_copies, sh_promote_prototypes, shcompact_byref,
7100 sh_attr_renesas_p): Likewise.
7101 * config/sparc/sparc-protos.h (function_value,
7102 function_arg_padding): Likewise.
7103 * config/sparc/sparc.c (sparc_promote_prototypes,
7104 sparc_return_in_memory, sparc_pass_by_reference,
7105 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
7106 function_arg_record_value_2, function_arg_record_value_1,
7107 function_arg_record_value, function_arg_record_value,
7108 function_arg_padding, function_value): Likewise.
7109 * config/spu/spu-protos.h (spu_function_value): Likewise.
7110 * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
7111 spu_function_value): Likewise.
7112 * config/stormy16/stormy16-protos.h (xstormy16_function_value):
7113 Likewise.
7114 * config/stormy16/stormy16.c (xstormy16_return_in_memory,
7115 xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
7116 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
7117 Likewise.
7118 * config/v850/v850.c (v850_return_in_memory,
7119 v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
7120 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
7121 * config/xtensa/xtensa.c (xtensa_return_in_msb,
7122 xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
7123 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
7124 Likewise.
7125 * explow.c (promote_mode, hard_function_value): Likewise.
7126 * expr.h (hard_function_value, promote_mode): Likewise.
7127 * function.c (aggregate_value_p): Likewise.
7128 * hooks.c (hook_bool_const_tree_true): New.
7129 * hooks.h (hook_bool_const_tree_true): New.
7130 * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
7131 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
7132 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7133 TARGET_RETURN_IN_MSB): Likewise.
7134 * target.h (promote_function_args, promote_function_return,
7135 promote_prototypes, return_in_memory, return_in_msb,
7136 pass_by_reference, must_pass_in_stack, callee_copies,
7137 function_value): Likewise.
7138 * targhooks.c (default_return_in_memory,
7139 hook_pass_by_reference_must_pass_in_stack,
7140 hook_callee_copies_named,
7141 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
7142 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
7143 default_function_value): Likewise.
7144 * targhooks.h (default_return_in_memory,
7145 hook_pass_by_reference_must_pass_in_stack,
7146 hook_callee_copies_named,
7147 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
7148 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
7149 default_function_value): Likewise.
7150 * tree-ssa-structalias.c (const_equiv_class_label_t): New.
7151 (equiv_class_label_hash, equiv_class_label_eq): Constify.
7152 * tree-vectorizer.c (bb_in_loop_p): Likewise.
7153 * tree.c (needs_to_live_in_memory): Likewise.
7154 * tree.h (struct tree_type, needs_to_live_in_memory,
7155 aggregate_value_p, must_pass_in_stack_var_size,
7156 must_pass_in_stack_var_size_or_pad): Likewise.
7157 * vmsdbgout.c (write_debug_addr, write_debug_delta4,
7158 write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
7159 lookup_filename): Likewise.
7160
7161 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
7162
7163 PR target/17390
7164 * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
7165 fake fcomi i387 instruction for !TARGET_CMOVE.
7166 (ix86_expand_branch): Expand natural sequence with one jump for
7167 all targets, not only TARGET_CMOVE.
7168 * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
7169 pattern to implement fake fcomi sequence. Split instruction after
7170 reload to correct compare sequences.
7171 (*cmpfp_xf_cc): Ditto.
7172 (*cmpfp_<mode>_cc): Ditto.
7173 (*cmpfp_u_cc): Ditto.
7174 (*cmpfp_<mode>_cc): Ditto.
7175
7176 2007-08-23 Richard Guenther <rguenther@suse.de>
7177
7178 * tree-pretty-print.c (dump_generic_node): Annotate
7179 GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
7180
7181 2007-08-23 Richard Guenther <rguenther@suse.de>
7182
7183 * builtins.c (expand_builtin_mathfn): Wrap argument in
7184 save_expr directly instead of re-building the call.
7185 (expand_builtin_mathfn_2): Likewise.
7186 (expand_builtin_mathfn_3): Likewise.
7187 (expand_builtin_interclass_mathfn): Likewise.
7188 (expand_builtin_int_roundingfn): Set arg.
7189 (expand_builtin_int_roundingfn_2): Likewise.
7190
7191 2007-08-23 Paolo Bonzini <bonzini@gnu.org>
7192
7193 * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
7194 *sse_nand<mode>3, *sse_xor<mode>3): New.
7195
7196 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
7197
7198 * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
7199 * config/i386/i386.c (print_operand): Handle ';' code. Output
7200 semicolon for TARGET_MACHO.
7201 * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
7202 emit semicolon after 'lock' prefix.
7203 (sync_double_compare_and_swap<mode>): Ditto.
7204 (*sync_double_compare_and_swapdi_pic): Ditto.
7205 (*sync_compare_and_swap_cc<mode>): Ditto.
7206 (sync_double_compare_and_swap_cc<mode>): Ditto.
7207 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
7208 (sync_old_add<mode>): Ditto.
7209 (sync_add<mode>): Ditto.
7210 (sync_sub<mode>): Ditto.
7211 (sync_ior<mode>): Ditto.
7212 (sync_and<mode>): Ditto.
7213 (sync_xor<mode>): Ditto.
7214
7215 2007-08-22 Chao-ying Fu <fu@mips.com>
7216
7217 * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
7218 in DEF_RTL_EXPR.
7219 (copy_rtx): Handle CONST_FIXED.
7220 (rtx_equal_p): Likewise.
7221 * rtl.h (fixed_value.h): New include.
7222 (rtx_def): Add a new field of fixed_value to u.
7223 (XCNMPFV): Define for accessing fixed_value.
7224 (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
7225 Define.
7226 * rtl.def (CONST_FIXED): New constant.
7227 (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
7228 UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
7229 US_ASHIFT): New codes.
7230 * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
7231 us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
7232 unsigned_fract_convert, unsigned_sat_fract): Document them.
7233 * varasm.c (assemble_integer): Extend to support fixed-point constants
7234 by using different machine classes.
7235 (decode_addr_const): Handle FIXED_CST.
7236 (const_hash_1): Likewise.
7237 (compare_constant): Likewise.
7238 (copy_constant): Likewise.
7239 (const_rtx_hash_1): Handle CONST_FIXED.
7240 (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
7241 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
7242 MODE_VECTOR_UACCUM.
7243 (initializer_constant_valid_p): Handle FIXED_CST.
7244 (output_constant): Support FIXED_POINT_TYPE.
7245 * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
7246 * cse.c (hash_rtx): Support CONST_FIXED.
7247 (exp_equiv_p): Likewise.
7248 (cannon_reg): Likewise.
7249 (fold_rtx): Likewise.
7250 (equiv_constant): Likewise.
7251 (cse_process_notes_1): Likewise.
7252 (count_reg_usage): Likewise.
7253 * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
7254 (rtx_equal_for_cselib_p): Handle CONST_FIXED.
7255 (wrap_constant): Check CONST_FIXED.
7256 (cselib_hash_rtx): Support CONST_FIXED.
7257 (cselib_subst_to_values): Likewise.
7258 * df-scan.c (df_uses_record): Likewise.
7259 * gcse.c (want_to_gcse_p): Likewise.
7260 (oprs_unchanged_p): Likewise.
7261 (oprs_not_set_p): Likewise.
7262 (compute_transp): Likewise.
7263 (extract_mentioned_regs_helper): Likewise.
7264 * genemit.c (gen_exp): Likewise.
7265 * local-alloc.c (equiv_init_varies_p): Likewise.
7266 (contains_replace_regs): Likewise.
7267 (memref_referenced_p): Likewise.
7268 * loop-invariant.c (check_maybe_invariant): Likewise.
7269 (hash_invariant_expr_1): Likewise.
7270 (invariant_expr_equal_p): Likewise.
7271 * postreload-gcse.c (oprs_unchanged_p): Likewise.
7272 * regclass.c (reg_scan_mark_refs): Likewise.
7273 * regrename.c (scan_rtx): Likewise.
7274 * resource.c (mark_referenced_resources): Likewise.
7275 (mark_set_resources): Likewise.
7276 * rtlanal.c (rtx_unstable_p): Likewise.
7277 (rtx_varies_p): Likewise.
7278 (count_occurrences): Likewise.
7279 (reg_mentioned_p): Likewise.
7280 (modified_between_p): Likewise.
7281 (modified_in_p): Likewise.
7282 (volatile_insn_p): Likewise.
7283 (volatile_refs_p): Likewise.
7284 (side_effects_p): Likewise.
7285 (may_trap_p_1): Likewise.
7286 (inequality_comparisons_p): Likewise.
7287 (computed_jump_p_1): Likewise.
7288 (commutative_operand_precedence): Likewise.
7289 * sched-deps.c (sched_analyze_2): Likewise.
7290 * sched-vis.c (print_value): Likewise.
7291 * reload.c (operands_match_p): Likewise.
7292 (subst_reg_equivs): Likewise.
7293 * reload1.c (eliminate_regs_1): Likewise.
7294 (elimination_effects): Likewise.
7295 (scan_paradoxical_subregs): Likewise.
7296 * alias.c (rtx_equal_for_memref_p): Likewise.
7297 * Makefile.in (RTL_BASE_H): Add fixed-value.h.
7298 * emit-rtl.c (const_fixed_htab): New hash table.
7299 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
7300 Declare.
7301 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
7302 const_fixed_from_fixed_value): New functions.
7303 (verify_rtx_sharing): Handle CONST_FIXED.
7304 (copy_rtx_if_shared_1): Likewise.
7305 (reset_used_flags): Likewise.
7306 (set_used_flags): Likewise.
7307 (copy_insn_1): Likewise.
7308 (init_emit_once): Create const_fixed_htab.
7309 Store fixed-point scalar and vector zero and one to const_tiny_rtx.
7310
7311 2007-08-22 Zdenek Dvorak <ook@ucw.cz>
7312
7313 PR tree-optimization/32949
7314 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
7315 before failing for ivs with non-constant step.
7316
7317 2007-08-22 Hans-Peter Nilsson <hp@axis.com>
7318
7319 * doc/md.texi (Iterators): Renamed from Macros. All contents
7320 changed to reflect rename of respectively define_code_macro and
7321 define_mode_macro to define_code_iterator and define_mode_iterator.
7322 (Mode Iterators, Code Iterators): Similar.
7323 * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
7324 (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
7325 (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
7326 (initialize_iterators, find_iterator, check_code_iterator)
7327 (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
7328 (read_mapping, read_rtx_1): Similar.
7329 * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
7330 config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
7331 config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
7332 config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
7333 config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
7334 config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
7335 config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
7336 config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
7337 config/rs6000/sync.md, config/rs6000/rs6000.md,
7338 config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
7339 config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
7340 config/vax/vax.md, config/bfin/bfin.md: Similar.
7341
7342 2007-08-22 David Daney <ddaney@avtrex.com>
7343
7344 * doc/install.texi (Testing): Mention testing on a simulator.
7345
7346 2007-08-22 Janis Johnson <janis187@us.ibm.com>
7347
7348 * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
7349
7350 * doc/libgcc.texi (Decimal float library routines): Fix formatting
7351 and rearrange floating point conversion functions into different
7352 categories.
7353
7354 2007-08-22 Maxim Kuvyrkov <maxim@codesourcery.com>
7355
7356 * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
7357 dfa_post_advance_cycle): New scheduler hooks.
7358 * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
7359 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
7360 new hooks.
7361 (TARGET_SCHED): Use them.
7362 * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
7363 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
7364 * haifa-sched.c (advance_one_cycle): Invoke new hooks.
7365
7366 * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
7367 function to facilitate debugging.
7368 (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
7369 (output_insn_has_dfa_reservation_p): New static function to output
7370 insn_has_dfa_reservation_p ().
7371 (write_automata): Use it.
7372 * genattr.c (main): Output declaration for
7373 insn_has_dfa_reservation_p ().
7374
7375 2007-08-22 Christian Bruel <christian.bruel@st.com>
7376 Richard Guenther <rguenther@suse.de>
7377
7378 * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
7379 * simplify_rtx (simplify_binary_operation_1): Likewise.
7380
7381 2007-08-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
7382
7383 PR rtl-optimization/32557
7384 * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
7385 of REGNO (mws->mw_reg).
7386
7387 2007-08-22 Richard Guenther <rguenther@suse.de>
7388
7389 PR middle-end/33007
7390 * builtins.c (expand_builtin_int_roundingfn): Replace call
7391 argument wrapped with SAVE_EXPR directly.
7392 (expand_builtin_int_roundingfn_2): Likewise.
7393
7394 2007-08-22 Richard Guenther <rguenther@suse.de>
7395
7396 * tree-inline.c (inlinable_function_p): Restore disregarding
7397 inline limits for GNU extern inline functions.
7398
7399 2007-08-22 Richard Guenther <rguenther@suse.de>
7400
7401 PR middle-end/32563
7402 * tree.c (host_integerp): Treat sizetype as signed as it is
7403 sign-extended.
7404
7405 2007-08-21 Ian Lance Taylor <iant@google.com>
7406
7407 PR tree-optimization/33134
7408 * tree-vrp.c (adjust_range_with_scev): Call
7409 set_value_range_to_value.
7410
7411 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
7412
7413 * value-prof.h (gimple_remove_histogram_value): Remove duplicate
7414 prototype.
7415
7416 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
7417
7418 * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
7419 whitespace.
7420
7421 2007-08-21 Nathan Froyd <froydnj@codesourcery.com>
7422
7423 * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
7424 cases to set eight bytes at a time.
7425 (expand_block_move): Likewise.
7426
7427 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7428
7429 PR debug/32610
7430 * dwarf2out.c (gen_decl_die): Don't call
7431 gen_tagged_type_instantiation_die if decl doesn't have tagged type.
7432
7433 2007-08-21 Paul Brook <paul@codesourcery.com>
7434 Nathan Sidwell <nathan@codesourcery.com>
7435 Mark Mitchell <mark@codesourcery.com>
7436 Joseph Myers <joseph@codesourcery.com>
7437
7438 * configure.ac: Add --with-pkgversion and --with-bugurl.
7439 * configure: Regenerate.
7440 * doc/install.texi: Document them.
7441 * version.c (version_string): Remove VERSUFFIX.
7442 (VERSUFFIX): Remove.
7443 (pkgversion_string): New.
7444 (bug_report_url): Do not hard-code initializer.
7445 * version.h (pkgversion_string): Declare.
7446 * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
7447 Define.
7448 (version.o): Define PKGVERSION and BUGURL.
7449 (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
7450 (%.pod): Define BUGURL.
7451 * gcc.c (process_command, main): Use pkgversion_string.
7452 * toplev.c (compile_file, print_version): Likewise.
7453 * protoize.c (main): Likewise.
7454 * gcov.c (print_version): Likewise. Update copyright date.
7455 * gcov-dump.c (print_version): Likewise. Update copyright date.
7456 * mips-tdump.c (main): Likewise. Update copyright date.
7457 * mips-tfile.c (main): Likewise. Update copyright date.
7458 * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
7459 * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
7460 shorten description.
7461 * doc/gcc.texi: Include VERSION_PACKAGE in version description.
7462 * doc/gccint.texi: Likewise.
7463 * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
7464 Update copyright date.
7465
7466 2007-08-21 Uros Bizjak <ubizjak@gmail.com>
7467
7468 * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
7469 (ix86_expand_strlensi_unroll_1): Ditto.
7470 (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
7471 (ix86_expand_carry_flag_compare): Update comment.
7472
7473 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7474
7475 PR middle-end/32912
7476 * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
7477 (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
7478
7479 2007-08-21 Richard Guenther <rguenther@suse.de>
7480
7481 * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
7482
7483 2007-08-21 Richard Guenther <rguenther@suse.de>
7484
7485 PR middle-end/33122
7486 * fold-const.c (fold_binary): Remove index +p PTR folding.
7487 Fix types of POINTER_PLUS_EXPR generated by folding of
7488 (PTR +p B) +p A.
7489
7490 2007-08-20 Chao-ying Fu <fu@mips.com>
7491
7492 * c-common.h (enum rid): Add new enumeration values of RID_SAT,
7493 RID_FRACT, and RID_ACCUM. RID_SAT needs to be inserted before
7494 RID_ONEWAY, so that it can be checked in declspecs_add_type.
7495 (c_common_fixed_point_type_for_size): Declare.
7496 * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
7497 (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
7498 (c_token_starts_declspecs): Likewise.
7499 (c_parser_declspecs): Likewise.
7500 (c_parser_attributes): Likewise.
7501 * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
7502 (c_declspecs): Add saturating_p.
7503 * c-decl.c (build_null_declspecs): Initialize saturating_p.
7504 (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
7505 _Sat. Handle RID_SAT.
7506 Avoid using void, bool, char, int, float, double, _Decimal32,
7507 _Decimal64, _Decimal128, and complex with _Sat.
7508 Handle RID_FRACT and RID_ACCUM.
7509 Make sure _Sat is used with _Fract or _Accum.
7510 (finish_declspecs): Handle cts_fract and cts_accum.
7511 * c-common.c (fixed-value.h): New include.
7512 (constant_expression_warning): Handle FIXED_CST.
7513 (overflow_warning): Likewise.
7514 (warnings_for_convert_and_check): Likewise.
7515 (c_common_fixed_point_type_for_size): New.
7516 (c_common_type_for_mode): Handle fixed-point modes to
7517 return various saturating/non-saturating, signed/unsigned types.
7518 (c_common_signed_or_unsigned_type): Support fixed-point types.
7519 (shorten_compare): Check fixed-point zero.
7520 Handle FIXED_POINT_TYPE.
7521 (c_common_truthvalue_conversion): Handle FIXED_CST.
7522 Handle FIXED_POINT_TYPE.
7523 (c_common_nodes_and_builtins): Record builtin types for fixed-point
7524 types.
7525 (handle_mode_attribute): Handle fixed-point modes. Need to check
7526 if the signness of base type and fixed-point modes are consistent.
7527 (handle_vector_size_attribute): Handle fixed-point modes.
7528 (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
7529 (warn_for_div_by_zero): Check fixed-point zero.
7530 * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE. Build
7531 a common fixed-point type based on fbit, ibit, sign, and saturation.
7532 (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
7533 NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
7534 PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
7535 (convert_for_assignment): Support FIXED_POINT_TYPE.
7536 (digest_init): Handle FIXED_POINT_TYPE.
7537 (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
7538 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
7539 TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
7540 GE_EXPR, LT_EXPR, GT_EXPR.
7541 * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
7542 (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
7543 * target.h (gcc_target): Add fixed_point_supported_p.
7544 * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
7545 MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
7546 (default_fixed_point_supported_p): Define.
7547 * targhooks.h (default_fixed_point_supported_p): Declare.
7548 * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
7549 * doc/install.texi (Configuration): Add --enable-fixed-point.
7550 * configure.ac (--enable-fixed-point): New to enable fixed-point
7551 arithmetic extension to C. For mips targets, we enable it by default.
7552 * configure, config.in: Regenerate.
7553
7554 2007-08-20 Pawel Sikora <pluto@pld-linux.org>
7555
7556 * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
7557
7558 2007-08-20 David Edelsohn <edelsohn@gnu.org>
7559
7560 * dwarf2out.c (text_section_used): Move declaration outside ifdef
7561 DWARF2_DEBUGGING_INFO.
7562 (cold_text_section_used): Same.
7563 (cold_text_section): Same.
7564
7565 2007-08-20 Richard Guenther <rguenther@suse.de>
7566
7567 * c-typeck.c (convert_for_assignment): Use the type of
7568 the member for the initialization.
7569
7570 2007-08-20 Richard Guenther <rguenther@suse.de>
7571
7572 * c-objc-common.c (c_disregard_inline_limits): Remove.
7573 * c-objc-common.h (c_disregard_inline_limits): Likewise.
7574 * cgraphunit.c (cgraph_process_new_functions): Call
7575 disregard_inline_limits_p.
7576 (cgraph_preserve_function_body_p): Likewise.
7577 * ipa-inline.c (compute_inline_parameters): Likewise.
7578 * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
7579 Remove.
7580 (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
7581 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
7582 disregard_inline_limits langhook.
7583 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7584 Remove.
7585 * langhooks.h (lang_hooks_for_tree_inlining): Remove
7586 disregard_inline_limits langhook.
7587 * tree-inline.c (disregard_inline_limits_p): New function.
7588 * tree-inline.h (disregard_inline_limits_p): Declare.
7589
7590 2007-08-20 Richard Guenther <rguenther@suse.de>
7591
7592 * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
7593 (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
7594 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
7595 auto_var_in_fn_p langhook.
7596 * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
7597 move ...
7598 * tree.c (auto_var_in_fn_p): ... here.
7599 (find_var_from_fn): Call auto_var_in_fn_p directly.
7600 * langhooks.h (lang_hooks_for_tree_inlining): Remove
7601 auto_var_in_fn_p langhook.
7602 * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
7603 (copy_body_r): Likewise.
7604 (self_inlining_addr_expr): Likewise.
7605 * tree.h (auto_var_in_fn_p): Declare.
7606
7607 2007-08-20 Richard Guenther <rguenther@suse.de>
7608
7609 * tree.c (WALK_SUBTREE): Call walk_tree_1.
7610 (walk_type_fields): Take lh parameter.
7611 (walk_tree): Rename to ...
7612 (walk_tree_1): ... this. Do not call the walk_subtrees
7613 langhook but the now passed callback. Pass lh on recursion.
7614 (walk_tree_without_duplicates): Rename to ...
7615 (walk_tree_without_duplicates_1): ... this. Take lh parameter
7616 and call walk_tree_1.
7617 * tree.h (walk_tree_lh): New typedef.
7618 (walk_tree_1): Declare.
7619 (walk_tree_without_duplicates_1): Likewise.
7620 (walk_tree): New define to walk_tree_1 with NULL lh parameter.
7621 (walk_tree_without_duplicates): New define to
7622 walk_tree_without_duplicates_1 with NULL lh parameter.
7623 * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
7624 * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
7625 langhook.
7626 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
7627 (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
7628 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
7629 initializer.
7630
7631 2007-08-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7632
7633 PR middle-end/30564
7634 * tree-inline.c (optimize_inline_calls): Move the cgraph checking
7635 code in front of the compacting of basic blocks.
7636 Move the folding of statements inbetween the cgraph checking
7637 and compacting of basic blocks.
7638
7639 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
7640 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7641
7642 PR target/32522
7643 * config/alpha/alpha.c (va_list_skip_additions): Check for
7644 POINTER_PLUS_EXPR in addition to PLUS_EXPR.
7645 (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
7646 PLUS_EXPR when checking ap.__base.
7647 (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
7648 when doing addition on pointer types. Use size_int instead of
7649 build_int_cst.
7650 (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
7651 ptr_type in the second operand.
7652
7653 2007-08-19 Andrew Pinski <pinskia@gmail.com>
7654
7655 PR target/33115
7656 * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
7657
7658 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
7659
7660 PR middle-end/32940
7661 * cfgexpand.c (expand_one_register_var): Mark pointer
7662 DECL_ARTIFICIAL as REG_POINTER also.
7663 * stmt.c (expand_decl): Likewise.
7664
7665 2007-08-19 Daniel Berlin <dberlin@dberlin.org>
7666
7667 Fix PR 32772
7668 Fix PR 32716
7669 Fix PR 32328
7670 Fix PR 32303
7671
7672 * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
7673 * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
7674 on_worklist argument and avoid adding things to worklist multiple
7675 times.
7676 (add_to_worklist): Ditto.
7677 (mark_aliases_call_clobbered): Mark entire structure clobbered if
7678 single SFT is clobbered.
7679 (set_initial_properties): Ditto.
7680 (compute_call_clobbered): Update for changes to function
7681 arguments.
7682 (create_overlap_variables_for): Always create SFT for offset 0.
7683 (create_structure_vars): Handle PHI's, since we are in SSA form at
7684 this point.
7685 * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
7686 * tree-ssa-operands.c (access_can_touch_variable): Don't handle
7687 TARGET_MEM_REF.
7688 (add_vars_for_offset): Figure out aliases from access + points-to.
7689 (add_virtual_operand): Use add_vars-for_offset.
7690 (get_tmr_operands): Update for NMT changes, rewrite to be correct.
7691 (add_call_clobber_ops): Remove makes_clobbering_call set.
7692 (get_expr_operands): Always pass through the INDIRECT_REF
7693 reference.
7694 * tree-ssa-structalias.c (struct constraint_graph): Remove
7695 variables member.
7696 Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
7697 address_taken, pt_used, number_incoming.
7698 (FIRST_ADDR_NODE): Removed.
7699 (merge_graph_nodes): Remove broken code for the moment.
7700 (init_graph): New function.
7701 (build_pred_graph): Remove code to init_graph.
7702 Add location equivalence support.
7703 (struct scc_info): Rename roots to deleted.
7704 (scc_visit): Ditto.
7705 (init_scc_info): Ditto
7706 (init_topo_info): Use graph->size.
7707 (compute_topo_order): Ditto.
7708 (do_da_constraint): Removed.
7709 (do_sd_constraint): Remove calls to find().
7710 set_union_with_increment should always get 0 as last arg here.
7711 (do_complex_constraint): Replace do_da_constraint with assert.
7712 Stop calling find.
7713 (struct equiv_class_label): New.
7714 (pointer_equiv_class_table): Ditto.
7715 (location_equiv_class_table): Ditto.
7716 (equiv_class_label_hash): Ditto.
7717 (equiv_class_label_eq): Ditto
7718 (equiv_class_lookup): Ditto.
7719 (equiv_class_ladd): Ditto.
7720 (pointer_equiv_class): Ditto.
7721 (location_equiv_class): Ditto.
7722 (condense_visit): Rename and rewrite from label_visit to do only
7723 SCC related stuff for HU.
7724 (label_visit): Do HU work for HU.
7725 (perform_var_substitution): Update to do HU and location
7726 equivalence.
7727 (free_var_substitution_info): Update to free HU and location
7728 equivalence structures. */
7729 (find_equivalent_node): Update for pointer but not location
7730 equivalence.
7731 (unite_pointer_equivalences): New function.
7732 (move_complex_constraints): Rewrite to only do moving.
7733 (rewrite_constraints): Split out of move_complex_constraints.
7734 (solve_graph): Use graph->size.
7735 (process_constraint_1): Add from_call argument, use it.
7736 Split *a = &b into two constraints.
7737 (process_constraint): Use new process_constraint_1.
7738 (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
7739 (get_constraint_for): Handle non-pointer integers properly.
7740 Remove code that used to handle structures.
7741 (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
7742 with unknown addends.
7743 (handle_rhs_call): New function.
7744 (find_func_aliases): Use handle_rhs_call.
7745 (set_uids_in_ptset): Add an assert.
7746 (set_used_smts): Fix bug in not considering unified vars.
7747 (compute_tbaa_pruning): Stop initing useless iteration_obstack.
7748 (compute_points_to_sets): Update for other function changes.
7749 (delete_points_to_sets): Ditto.
7750 (ipa_pta_execute): Ditto.
7751 (pass_ipa_pta): We need to update SSA after ipa_pta.
7752
7753 2007-08-19 Jan Hubicka <jh@suse.cz>
7754
7755 * i386.md: Replace "rim" and "mri" constraints by "g".
7756
7757 2007-08-19 Joseph Myers <joseph@codesourcery.com>
7758
7759 * dwarf2out.c (text_section_used, cold_text_section_used,
7760 cold_text_section, dwarf2out_note_section_used): New.
7761 (dwarf2out_init): Initialize cold_text_section.
7762 (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
7763 dwarf2out_note_section_used.
7764 (size_of_aranges): Only count entry for text section if it was
7765 used. Count entry for cold text section if it was used.
7766 (output_aranges): Only output entries for text section and cold
7767 text section if they were used.
7768
7769 2007-08-19 Andrew Pinski <pinskia@gmail.com>
7770
7771 * tree-pretty-print.c (debug_generic_expr): Add a comment about
7772 the function.
7773 (debug_generic_stmt): Likewise.
7774 (debug_tree_chain): Likewise.
7775
7776 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
7777
7778 * tree-data-refs.c (split_constant_offset): Expose.
7779 * tree-data-refs.h (split_constant_offset): Add declaration.
7780
7781 * tree-vectorizer.h (dr_alignment_support): Renamed
7782 dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
7783 Added a new value dr_explicit_realign.
7784 (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
7785 dr_offset, dr_step, and dr_aligned_to, along with new access
7786 functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
7787 STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
7788 STMT_VINFO_DR_ALIGNED_TO.
7789
7790 * tree-vectorizer.c (vect_supportable_dr_alignment): Add
7791 documentation.
7792 In case of outer-loop vectorization with non-fixed misalignment - use
7793 the dr_explicit_realign scheme instead of the optimized realignment
7794 scheme.
7795 (new_stmt_vec_info): Initialize new fields.
7796
7797 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
7798 'nested_in_vect_loop' case. Change verbosity level.
7799 (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
7800 Don't fail on zero step in the outer-loop for loads.
7801 (vect_analyze_data_refs): Call split_constant_offset to calculate
7802 base, offset and init relative to the outer-loop.
7803
7804 * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
7805 BSI function argument with a new function argument - at_loop.
7806 Simplify the condition that determines STEP. Takes additional argument
7807 INV_P. Support outer-loop vectorization (handle the
7808 nested_in_vect_loop case), including zero step in the outer-loop. Call
7809 vect_create_addr_base_for_vector_ref with additional argument.
7810 (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
7811 Updated function documentation. Handle the 'nested_in_vect_loop' case.
7812 Fixed and simplified calculation of step.
7813 (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
7814 of bsi, and with additional argument. Call bump_vector_ptr with
7815 additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
7816 (vect_setup_realignment): Takes additional arguments INIT_ADDR and
7817 DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
7818 when the realignment setup needs to take place inside the loop.
7819 Support the dr_explicit_realign scheme. Allow generating the optimized
7820 realignment scheme for outer-loop vectorization. Added documentation.
7821 (vectorizable_load): Support the dr_explicit_realign scheme. Handle
7822 the 'nested_in_vect_loop' case, including loads that are invariant in
7823 the outer-loop and the realignment schemes. Handle the case when the
7824 realignment setup needs to take place inside the loop. Call
7825 vect_setup_realignment with additional arguments. Call
7826 vect_create_data_ref_ptr with additional argument and with loop instead
7827 of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
7828 (vect_gen_niters_for_prolog_loop): Call
7829 vect_create_addr_base_for_vector_ref with additional arguments.
7830 (vect_create_cond_for_align_checks): Likewise.
7831 (bump_vector_ptr): Updated to support the new dr_explicit_realign
7832 scheme: takes additional argument bump; argument ptr_incr is now
7833 optional; updated documentation.
7834 (vect_init_vector): Takes additional argument (bsi). Use it, if
7835 available, to insert the vector initialization.
7836 (get_initial_def_for_induction): Pass additional argument in call to
7837 vect_init_vector.
7838 (vect_get_vec_def_for_operand): Likewise.
7839 (vect_setup_realignment): Likewise.
7840 (vectorizable_load): Likewise.
7841
7842 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
7843
7844 * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
7845 as argument instead of struct loop.
7846 (nested_in_vect_loop_p): New function.
7847 (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
7848 vect_used_in_outer.
7849 (is_loop_header_bb_p): New. Used to differentiate loop-header phis
7850 from other phis in the loop.
7851 (destroy_loop_vec_info): Add additional argument to declaration.
7852
7853 * tree-vectorizer.c (supportable_widening_operation): Also check if
7854 nested_in_vect_loop_p (don't allow changing the order in this case).
7855 (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
7856 of struct loop. Call nested_in_vect_loop_p and don't require
7857 flag_unsafe_math_optimizations if it returns true.
7858 (new_stmt_vec_info): When setting def_type for phis differentiate
7859 loop-header phis from other phis.
7860 (bb_in_loop_p): New function.
7861 (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
7862 just update their loop_vinfo. Order of BB traversal now matters -
7863 call dfs_enumerate_from with bb_in_loop_p.
7864 (destroy_loop_vec_info): Takes additional argument to control whether
7865 stmt_vinfo of the loop stmts should be destroyed as well.
7866 (vect_is_simple_reduction): Allow the "non-reduction" use of a
7867 reduction stmt to be defines by a non loop-header phi.
7868 (vectorize_loops): Call destroy_loop_vec_info with additional argument.
7869
7870 * tree-vect-transform.c (vectorizable_reduction): Call
7871 nested_in_vect_loop_p. Check for multitypes in the inner-loop.
7872 (vectorizable_call): Likewise.
7873 (vectorizable_conversion): Likewise.
7874 (vectorizable_operation): Likewise.
7875 (vectorizable_type_promotion): Likewise.
7876 (vectorizable_type_demotion): Likewise.
7877 (vectorizable_store): Likewise.
7878 (vectorizable_live_operation): Likewise.
7879 (vectorizable_reduction): Likewise. Also pass loop_info to
7880 vect_is_simple_reduction instead of loop.
7881 (vect_init_vector): Call nested_in_vect_loop_p.
7882 (get_initial_def_for_reduction): Likewise.
7883 (vect_create_epilog_for_reduction): Likewise.
7884 (vect_init_vector): Check which loop to work with, in case there's an
7885 inner-loop.
7886 (get_initial_def_for_inducion): Extend to handle outer-loop
7887 vectorization. Fix indentation.
7888 (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
7889 In the case vect_induction_def get the vector def from the induction
7890 phi node, instead of calling get_initial_def_for_inducion.
7891 (get_initial_def_for_reduction): Extend to handle outer-loop
7892 vectorization.
7893 (vect_create_epilog_for_reduction): Extend to handle outer-loop
7894 vectorization.
7895 (vect_transform_loop): Change assert to just skip this case. Add a
7896 dump printout.
7897 (vect_finish_stmt_generation): Add a couple asserts.
7898
7899 (vect_estimate_min_profitable_iters): Multiply
7900 cost of inner-loop stmts (in outer-loop vectorization) by estimated
7901 inner-loop bound.
7902 (vect_model_reduction_cost): Don't add reduction epilogue cost in case
7903 this is an inner-loop reduction in outer-loop vectorization.
7904
7905 * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
7906 Same code as what used to be vect_analyze_scalar_cycles, only with
7907 additional argument loop, and loop_info passed to
7908 vect_is_simple_reduction instead of loop.
7909 (vect_analyze_scalar_cycles): Code factored out into
7910 vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
7911 Updated documentation.
7912 (analyze_operations): Check for inner-loop loop-closed exit-phis during
7913 outer-loop vectorization that are live or not used in the outerloop,
7914 cause this requires special handling.
7915 (vect_enhance_data_refs_alignment): Don't consider versioning for
7916 nested-loops.
7917 (vect_analyze_data_refs): Check that there are no datarefs in the
7918 inner-loop.
7919 (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
7920 and vect_used_in_outer_by_reduction cases.
7921 (process_use): Also consider the case of outer-loop stmt defining an
7922 inner-loop stmt and vice versa.
7923 (vect_analyze_loop_1): New function.
7924 (vect_analyze_loop_form): Extend, to allow a restricted form of nested
7925 loops. Call vect_analyze_loop_1.
7926 (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
7927 been vectorized. Call destroy_loop_vec_info with additional argument.
7928
7929 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
7930 in the inner-loop when doing outer-loop vectorization. Add
7931 documentation and printout.
7932 (vect_recog_dot_prod_pattern): Likewise. Also add check for
7933 GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
7934
7935 2007-08-18 Andrew Pinski <pinskia@gmail.com>
7936
7937 * tree-affine.h (print_aff): New prototype.
7938 (debug_aff): Likewise.
7939 * tree-affine.c (print_aff): New function.
7940 (debug_aff): Likewise.
7941
7942 2007-08-18 Paul Brook <paul@codesourcery.com>
7943 Joseph Myers <joseph@codesourcery.com>
7944
7945 * common.opt (-fdebug-prefix-map=): New option.
7946 * opts.c: Include debug.h.
7947 (common_handle_option): Handle -fdebug-prefix-map.
7948 * final.c: Include ggc.h.
7949 (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
7950 remap_debug_filename): New.
7951 * Makefile.in (final.o, opts.o): Update dependencies.
7952 * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
7953 * configure.ac: Check for assembler --debug-prefix-map support.
7954 * configure, config.in: Regenerate.
7955 * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
7956 (ASM_DEBUG_SPEC): Include ASM_MAP.
7957 * doc/install.texi (--with-debug-prefix-map): Document.
7958 * doc/invoke.texi (-fdebug-prefix-map): Document.
7959 * dbxout.c (dbxout_init, dbxout_start_source_file,
7960 dbxout_source_file): Call remap_debug_filename.
7961 * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
7962 dwarf2out_start_source_file, dwarf2out_finish): Call
7963 remap_debug_filename.
7964 (file_table_relative_p): Do not check d->emitted_number.
7965 * toplev.c (output_file_directive): Call remap_debug_filename.
7966 * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
7967 * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
7968
7969 2007-08-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7970
7971 * loop-invariant.c (find_invariants_to_move): Add missing macro
7972 argument.
7973
7974 2007-08-17 Tom Tromey <tromey@redhat.com>
7975
7976 * tree.h (struct tree_label_decl): Removed old "java" fields.
7977
7978 2007-08-17 Richard Sandiford <richard@codesourcery.com>
7979 Nigel Stephens <nigel@mips.com>
7980
7981 * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
7982 Treat -mno-data-in-code and -mcode-xonly as aliases for
7983 -mcode-readable=no and -mcode-readable=pcrel respectively.
7984 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
7985 (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
7986 (MULTILIB_DIRNAMES): Update accordingly.
7987
7988 2007-08-17 H.J. Lu <hongjiu.lu@intel.com>
7989
7990 * Makefile.in (version.o): Depend on $(REVISION) only if
7991 REVISION_s is defined.
7992
7993 2007-08-17 Sa Liu <saliu@de.ibm.com>
7994 Ulrich Weigand <uweigand@de.ibm.com>
7995
7996 PR middle-end/32970
7997 * tree.c (reconstruct_complex_type): For a pointer to a vector,
7998 use build_qualified_type to retain qualifiers of the base type.
7999
8000 2007-08-17 Chen Liqin <liqin@sunnorth.com.cn>
8001
8002 * config/score/score.md : Update pattern tablejump.
8003 * config/score/score.c : Update score_initialize_trampoline
8004 function.
8005 * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
8006 (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
8007 * doc/contrib.texi: Add my entry.
8008
8009 2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
8010
8011 * Makefile.in (REVISION): New.
8012 (REVISION_c): New.
8013 (REVISION_s): New.
8014 (version.o): Also depend on $(REVISION). Add
8015 -DREVISION=$(REVISION_s).
8016
8017 * version.c (version_string): Add REVISION.
8018
8019 2007-08-16 Seongbae Park <seongbae.park@gmail.com>
8020
8021 * tree-eh.c (lower_try_finally_onedest): Reset the locus
8022 of GOTO that's relocated to a different block.
8023
8024 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8025
8026 * c-common.c (const_strip_array_types): New.
8027 * c-common.h (lang_missing_noreturn_ok_p): Delete.
8028 (const_strip_array_types): New.
8029 * c-objc-common.c (c_disregard_inline_limits,
8030 c_warn_unused_global_decl): Constify.
8031 * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
8032 c_vla_type_p, c_incomplete_type_error): Likewise.
8033 * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
8034 * hooks.c (hook_bool_const_tree_false): New.
8035 * hooks.h (hook_bool_const_tree_false): Likewise.
8036 * langhooks-def.h (lhd_warn_unused_global_decl,
8037 lhd_incomplete_type_error, lhd_expr_size,
8038 lhd_tree_inlining_disregard_inline_limits,
8039 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
8040 LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
8041 * langhooks.c (lhd_warn_unused_global_decl,
8042 lhd_incomplete_type_error,
8043 lhd_tree_inlining_disregard_inline_limits,
8044 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
8045 lhd_expr_size): Likewise.
8046 * langhooks.h (lang_hooks_for_tree_inlining,
8047 lang_hooks_for_tree_dump, lang_hooks_for_types,
8048 lang_hooks_for_decls, lang_hooks): Likewise.
8049 * pointer-set.c (pointer_set_t, pointer_set_create,
8050 pointer_set_contains, insert_aux, pointer_set_insert,
8051 pointer_set_traverse, pointer_map_t, pointer_map_create,
8052 pointer_map_contains, pointer_map_insert, pointer_map_traverse):
8053 Likewise.
8054 * pointer-set.h (pointer_set_contains, pointer_set_insert,
8055 pointer_set_traverse, pointer_map_contains, pointer_map_insert,
8056 pointer_map_traverse): Likewise.
8057 * predict.c (assert_is_empty): Likewise.
8058 * tree-affine.c (free_name_expansion): Likewise.
8059 * tree-cfg.c (edge_to_cases_cleanup): Likewise.
8060 * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
8061 * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
8062
8063 2007-08-16 Victor Kaplansky <victork@il.ibm.com>
8064
8065 * tree-vectorizer.c (new_loop_vec_info): Initialize new
8066 field.
8067 (destroy_loop_vec_info): Add call to VEC_free.
8068 * tree-vectorizer.h (may_alias_ddrs): Define.
8069 (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
8070 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
8071 Change reporting to dump.
8072 (vect_is_duplicate_ddr): New.
8073 (vect_mark_for_runtime_alias_test): New.
8074 (vect_analyze_data_ref_dependences) Add call to
8075 vect_mark_for_runtime_alias_test.
8076 (vect_enhance_data_refs_alignment): Define local variable
8077 vect_versioning_for_alias_required, don't perform
8078 peeling for alignment if versioning for alias is
8079 required.
8080 (vect_enhance_data_refs_alignment): Use
8081 PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
8082 PARAM_VECT_MAX_VERSION_CHECKS.
8083 * tree-vect-transform.c
8084 (vect_create_cond_for_alias_checks): New.
8085 (vect_transform_loop): Add call to
8086 vect_create_cond_for_alias_checks.
8087 (vect_vfa_segment_size): New.
8088 * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
8089 Rename.
8090 (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
8091 * gcc/doc/invoke.texi
8092 (vect-max-version-for-alignment-checks): Document.
8093 (vect-max-version-for-alias-checks): Document.
8094 (vect-max-version-checks): Remove.
8095
8096 2007-08-16 Uros Bizjak <ubizjak@gmail.com>
8097
8098 * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
8099 the same line as the instruction for all asm dialects.
8100 (*rep_movsi): Ditto.
8101 (*rep_movsi_rex64): Ditto.
8102 (*rep_movqi): Ditto.
8103 (*rep_movqi_rex64): Ditto.
8104 (*rep_stosdi_rex64): Ditto.
8105 (*rep_stossi): Ditto.
8106 (*rep_stossi_rex64): Ditto.
8107 (*rep_stosqi): Ditto.
8108 (*rep_stosqi_rex64): Ditto.
8109 (*cmpstrnqi_nz_1): Ditto.
8110 (*cmpstrnqi_nz_rex_1): Ditto.
8111 (*cmpstrnqi_1): Ditto.
8112 (*cmpstrnqi_rex_1): Ditto.
8113 (*strlenqi_1): Ditto.
8114 (*strlenqi_rex_1): Ditto.
8115 * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
8116 prefix on the same line as the instruction for all asm dialects.
8117 (sync_double_compare_and_swap<mode>): Ditto.
8118 (*sync_double_compare_and_swapdi_pic): Ditto.
8119 (*sync_compare_and_swap_cc<mode>): Ditto.
8120 (sync_double_compare_and_swap_cc<mode>): Ditto.
8121 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
8122 (sync_old_add<mode>): Ditto.
8123 (sync_add<mode>): Ditto.
8124 (sync_sub<mode>): Ditto.
8125 (sync_ior<mode>): Ditto.
8126 (sync_and<mode>): Ditto.
8127 (sync_xor<mode>): Ditto.
8128
8129 2007-08-16 Richard Sandiford <richard@codesourcery.com>
8130
8131 PR middle-end/32897
8132 * reload.c (find_reloads): Check that the memory returned by
8133 find_reloads_toplev was not the result of forcing a constant
8134 to memory.
8135 (find_reloads_toplev): Always use simplify_gen_subreg to get
8136 the subreg of a constant. If the result is also a constant,
8137 but not a legitimate one, force it into the constant pool
8138 and reload its address.
8139
8140 2007-08-15 David Edelsohn <edelsohn@gnu.org>
8141
8142 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
8143 POPCOUNT.
8144
8145 2007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
8146
8147 * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
8148 directive for the current vector ABI.
8149
8150 2007-08-15 Steve Ellcey <sje@cup.hp.com>
8151
8152 PR target/32963
8153 * caller-save.c (reg_save_code): Set invalide status on restore code.
8154
8155 2007-08-15 Diego Novillo <dnovillo@google.com>
8156
8157 * tree-ssa-alias.c (compute_memory_partitions): Use
8158 alias_bitmap_obstack to allocate bitmaps.
8159 (reset_alias_info): Factor out of init_alias_info.
8160 Mark all name tags not associated to an SSA name for renaming.
8161 (init_alias_info): Call it.
8162 (create_name_tags): Tidy. Add comments.
8163 (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
8164
8165 2007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8166
8167 * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
8168 scheduler dependencies.
8169
8170 2007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
8171
8172 * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
8173 "register_operand".
8174 (*iorsi_1_zext): Likewise.
8175 (*iorsi_1_zext_imm): Likewise.
8176 * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
8177 with "rm"/"xm" constraint.
8178 (sse2_vmsqrtv2df2): Likewise.
8179
8180 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8181
8182 PR middle-end/33074
8183 * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
8184 REG_LIBCALL note.
8185
8186 2007-08-14 Daniel Berlin <dberlin@dberlin.org>
8187
8188 * tree-pass.h (PROP_pta): Removed.
8189 (TODO_rebuild_alias): New.
8190 (pass_may_alias): Removed.
8191 * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
8192 aliasing if we changed something.
8193 * tree-ssa-alias.c (compute_may_aliases): Make non-static. Update
8194 SSA internally.
8195 (pass_may_alias): Removed.
8196 (create_structure_vars): Return TODO_rebuild_alias.
8197 * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
8198 * tree-sra.c (tree_sra): Only rebuild aliasing if something
8199 changed.
8200 (tree_sra_early): We never affect aliasing right now.
8201 * tree-flow.h (compute_may_aliases): New prototype.
8202 * passes.c: Remove pass_may_alias from the passes.
8203 (execute_function_todo): Support TODO_rebuild_alias.
8204
8205 2007-08-14 Kai Tietz <kai.tietz@onevision.com>
8206
8207 * i386.c: (legitimize_address): Move dllimported variable check
8208 infront of legitimizing pic address of CONST symbols.
8209
8210 2007-08-14 Steve Ellcey <sje@cup.hp.com>
8211
8212 PR tree-optimization/32941
8213 * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
8214 (goto_queue_cmp): Remove.
8215 (find_goto_replacement): Change search method.
8216 (maybe_record_in_goto_queue): Add assert.
8217 (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
8218 * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
8219
8220 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8221
8222 * alias.c (component_uses_parent_alias_set): Constify.
8223 * alias.h (component_uses_parent_alias_set): Likewise.
8224 * cfgrtl.c (print_rtl_with_bb): Likewise.
8225 * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
8226 mpz_get_double_int): Likewise.
8227 * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
8228 mpz_get_double_int): Likewise.
8229 * expr.c (is_aligning_offset, undefined_operand_subword_p,
8230 mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
8231 Likewise.
8232 * expr.h (safe_from_p): Likewise.
8233 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
8234 Likewise.
8235 * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
8236 zero_sized_type, goa_lhs_expr_p): Likewise.
8237 * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
8238 * rtl.h (print_rtl_with_bb): Likewise.
8239 * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
8240 * tree-cfg.c (const_first_stmt, const_last_stmt): New.
8241 * tree-flow-inline.h (bb_stmt_list): Constify.
8242 (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
8243 cbsi_stmt): New.
8244 * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
8245 const_first_stmt, const_last_stmt): New.
8246 (block_may_fallthru, empty_block_p): Constify.
8247 * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
8248 EXPR_ONLY_BODY): New.
8249 (expr_first, expr_last, expr_only): Use macro for body.
8250 (const_expr_first, const_expr_last, const_expr_only): New.
8251 * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
8252 ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
8253 ctsi_prev, ctsi_stmt): New.
8254 * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
8255 * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
8256 * tree-ssa-loop-niter.c (loop_only_exit_p,
8257 derive_constant_upper_bound): Likewise.
8258 * tree-ssa-phiopt.c (empty_block_p): Likewise.
8259 * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
8260 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
8261 * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
8262 * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
8263 * tree.c (get_type_static_bounds): Likewise.
8264 * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
8265 (get_type_static_bounds): Constify.
8266
8267 2007-08-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
8268
8269 PR target/30315
8270 * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
8271 * config/i386/i386.md (plusminus)(addsub)(SWI): New.
8272 (*<addsub><mode>3_cc_overflow): New.
8273 (*add<mode>3_cconly_overflow): New.
8274 (*sub<mode>3_cconly_overflow): New.
8275 (*<addsub>si3_zext_cc_overflow): New.
8276 * config/i386/predicates.md (fcmov_comparison_operator): Accept
8277 CCCmode for LTU, GTU, LEU and GEU.
8278 (ix86_comparison_operator): Likewise.
8279 (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
8280 * config/i386/i386.c (put_condition_code): Support CCCmode.
8281 (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
8282 or MINUS expressions.
8283
8284 2007-08-14 Andrew Pinski <pinskia@gmail.com>
8285
8286 PR c/30428
8287 * c-typeck.c (build_binary_op): Disallow vector float types with
8288 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
8289
8290 2007-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
8291
8292 * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
8293 (DEP_KIND): Rename to DEP_TYPE. Update all uses.
8294 (dep_def): New typedef.
8295 (init_dep_1, sd_debug_dep): Declare functions.
8296 (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
8297 (debug_dep_links): Remove.
8298 (struct _deps_list): New field 'n_links'.
8299 (DEPS_LIST_N_LINKS): New macro.
8300 (FOR_EACH_DEP_LINK): Remove.
8301 (create_deps_list, free_deps_list, delete_deps_list): Remove
8302 declaration.
8303 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
8304 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
8305 (copy_deps_list_change_con, move_dep_link): Ditto.
8306 (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
8307 and 'spec_back_deps'. New field 'resolved_forw_deps'. Remove field
8308 'dep_count'.
8309 (INSN_BACK_DEPS): Remove.
8310 (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
8311 New macros.
8312 (INSN_DEP_COUNT): Remove.
8313 (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP. Fix comments.
8314 (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
8315 Declare global variables.
8316 (deps_pools_are_empty_p, sched_free_deps): Declare functions.
8317 (add_forw_dep, compute_forward_dependences): Remove declarations.
8318 (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
8319 (add_back_forw_dep, delete_back_forw_dep): Ditto.
8320 (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
8321 functions.
8322 (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
8323 New constants.
8324 (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
8325 (sd_list_types_def): New typedef.
8326 (sd_next_list): Declare function.
8327 (struct _sd_iterator): New type.
8328 (sd_iterator_def): New typedef.
8329 (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
8330 functions.
8331 (FOR_EACH_DEP): New cycle wrapper.
8332 (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
8333 Declare functions.
8334 (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
8335 (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
8336 Ditto.
8337
8338 * sched-deps.c (init_dep_1): Make global.
8339 (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
8340 constants.
8341 (dump_dep): New static function.
8342 (dump_dep_flags): New static variable.
8343 (sd_debug_dep): New function.
8344 (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
8345 the list.
8346 (move_dep_link): Use remove_from_deps_list (), instead of
8347 detach_dep_link ().
8348 (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
8349 (dep_link_is_detached_p): New static function.
8350 (deps_obstack, dl_obstack, dn_obstack): Remove. Use dn_pool, dl_pool
8351 instead.
8352 (dn_pool, dl_pool): New alloc_pools.
8353 (dn_pool_diff, dl_pool_diff): New static variables.
8354 (create_dep_node, delete_dep_node): New static function.
8355 (create_deps_list): Make it static. Use alloc_pool 'dl_pool'.
8356 (deps_list_empty_p): Make it static. Use 'n_links' field.
8357 (deps_pools_are_empty_p): New static function.
8358 (alloc_deps_list, delete_deps_list): Remove.
8359 (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
8360 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
8361 (copy_deps_list_change_con): Remove. Use sd_copy_back_deps () instead.
8362 (forward_dependency_cache): Remove.
8363 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
8364 'back' from the names. Change signature to use dep_t instead of
8365 equivalent quad.
8366 (add_back_dep): Ditto. Make global.
8367 (check_dep_status): Rename to check_dep ().
8368 (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
8369 New functions.
8370 (sd_finish_insn): Ditto.
8371 (sd_find_dep_between_no_cache): New static function.
8372 (sd_find_dep_between): New function.
8373 (ask_dependency_caches, set_dependency_caches): New static functions.
8374 (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
8375 (add_or_update_dep_1): Separate pieces of functionality into
8376 ask_dependency_caches (), update_dependency_caches (),
8377 change_spec_dep_to_hard (), update_dep ().
8378 (get_back_and_forw_lists): New static function.
8379 (sd_add_dep): Separate setting of dependency caches into
8380 set_dependency_caches ().
8381 (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
8382 New functions.
8383 (sd_delete_dep): Ditto.
8384 (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
8385 (dump_lists): New static function.
8386 (sd_debug_lists): New debug function.
8387 (delete_all_dependences, fixup_sched_groups): Update to use
8388 sd_* infrastructure.
8389 (sched_analyze_2): Create data-speculative dependency only if
8390 data-speculation is enabled.
8391 (sched_analyze_insn): If insn cannot be speculative, make all its
8392 dependencies non-speculative.
8393 (sched_analyze): Use sd_init_insn ().
8394 (add_forw_dep, compute_forward_dependencies): Remove.
8395 (delete_dep_nodes_in_back_deps): New static function.
8396 (sched_free_deps): New function.
8397 (init_dependency_caches): Init alloc_pools.
8398 (extend_depedency_caches): Update after removing of
8399 forward_dependency_cache.
8400 (free_dependency_caches): Ditto. Free alloc_pools.
8401 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
8402 (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
8403 Ditto.
8404 (add_back_forw_dep, delete_back_forw_dep): Ditto.
8405 (add_dependence): Use init_dep ().
8406 (get_dep_weak_1): New static function.
8407 (get_dep_weak): Move logic to get_dep_weak_1 ().
8408 (dump_ds): New static function moved from haifa-sched.c:
8409 debug_spec_status ().
8410 (debug_ds): New debug function.
8411 (check_dep_status): Rename to check_dep (). Update to check whole
8412 dependencies.
8413
8414 * haifa-sched.c (spec_info): Make global.
8415 (added_recovery_block_p): Rename to
8416 'haifa_recovery_block_was_added_during_current_schedule_block_p'.
8417 (haifa_recovery_block_was_added_during_scheduling_p): New variable.
8418 (dep_cost, priority, rank_for_schedule, schedule_insn): Update
8419 to use new interfaces.
8420 (ok_for_early_queue_removal): Ditto.
8421 (schedule_block): Initialize logical uids of insns emitted by the
8422 target.
8423 (sched_init): Initialize new variable.
8424 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
8425 interfaces.
8426 (extend_global): Initialize insn data.
8427 (init_h_i_d): Remove code that is now handled in sd_init_insn ().
8428 (process_insn_forw_deps_be_in_spec): Change signature. Update to use
8429 new interfaces.
8430 (add_to_speculative_block): Update to use new interfaces.
8431 (create_recovery_block): Set new variables.
8432 (create_check_block_twin, fix_recovery_deps): Update to use new
8433 interfaces.
8434 (sched_insn_is_legitimate_for_speculation_p): New function.
8435 (speculate_insn): Move checking logic to
8436 sched_insn_is_legitimate_for_speculation_p ().
8437 (sched_remove_insn): Finalize sched-deps information of instruction.
8438 (clear_priorities, add_jump_dependencies): Update to use new
8439 interfaces.
8440 (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
8441
8442 * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
8443 to use new interfaces.
8444 (is_conditionally_protected, is_pfree, is_prisky) Ditto.
8445 (new_ready): Try to use control speculation only if it is available.
8446 (add_branch_dependences): Update to use new interfaces.
8447 (compute_block_backward_dependences): Rename to
8448 compute_block_dependences (). Call
8449 targetm.sched.dependencies_evaluation_hook ().
8450 (free_block_dependencies): New static function.
8451 (debug_dependencies): Update to use new interfaces.
8452 (schedule_region): Remove separate computation of forward dependencies.
8453 Move call of targetm.sched.dependencies_evaluation_hook () to
8454 compute_block_dependences (). Free dependencies at the end of
8455 scheduling the region.
8456
8457 * sched-ebb.c (earliest_block_with_similiar_load): Update to use
8458 new interfaces.
8459 (add_deps_for_risky_insns): Ditto.
8460 (schedule_ebb): Remove separate computation of forward dependencies.
8461 Free dependencies at the end of scheduling the ebb.
8462
8463 * ddg.c (create_ddg_dependence): Update to use new interfaces.
8464 (build_intra_loop_deps): Ditto. Remove separate computation of
8465 forward dependencies. Free sched-deps dependencies.
8466
8467 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
8468 to use new interfaces.
8469 (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
8470
8471 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
8472 new interfaces.
8473 (is_costly_group): Ditto.
8474
8475 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8476
8477 * alias.c (rtx_equal_for_memref_p): Constify.
8478 * basic-block.h (const_edge, const_basic_block): New.
8479 (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
8480 single_pred_p, single_succ_edge, single_pred_edge, single_succ,
8481 single_pred, maybe_hot_bb_p, probably_cold_bb_p,
8482 probably_never_executed_bb_p, edge_probability_reliable_p,
8483 br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
8484 inside_basic_block_p, control_flow_insn_p, dominated_by_p):
8485 Likewise.
8486 * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
8487 * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
8488 Likewise.
8489 * cfganal.c (flow_active_insn_p, forwarder_block_p,
8490 flow_nodes_print, dfs_enumerate_from): Likewise.
8491 * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
8492 control_flow_insn_p, count_basic_blocks): Likewise.
8493 * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
8494 get_loop_body_with_size, loop_exit_edge_p): Likewise.
8495 * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
8496 average_num_loop_insns, loop_exit_edge_p,
8497 just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
8498 * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
8499 average_num_loop_insns, seq_cost): Likewise.
8500 * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
8501 * dominance.c (dominated_by_p): Likewise.
8502 * emit-rtl.c (validate_subreg): Likewise.
8503 * except.c (can_throw_internal, can_throw_external): Likewise.
8504 * except.h (can_throw_internal, can_throw_external): Likewise.
8505 * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
8506 oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
8507 compute_transp, load_killed_in_block_p, reg_killed_on_edge,
8508 simple_mem, store_ops_ok, load_kills_store, find_loads,
8509 store_killed_in_insn, store_killed_after, store_killed_before,
8510 gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
8511 Likewise.
8512 * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
8513 noce_mem_write_may_trap_or_fault_p): Likewise.
8514 * pointer-set.c (pointer_set_contains, pointer_map_contains):
8515 Likewise.
8516 * pointer-set.h (pointer_set_contains, pointer_map_contains):
8517 Likewise.
8518 * predict.c (can_predict_insn_p, maybe_hot_bb_p,
8519 probably_cold_bb_p, probably_never_executed_bb_p,
8520 edge_probability_reliable_p, br_prob_note_reliable_p,
8521 can_predict_insn_p): Likewise.
8522 * regclass.c (reg_set_to_hard_reg_set): Likewise.
8523 * resource.c (return_insn_p): Likewise.
8524 * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
8525 Likewise.
8526 * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
8527 * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
8528 * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
8529 verify_gimple_modify_stmt): Likewise.
8530 * tree-chrec.c (is_not_constant_evolution,
8531 is_multivariate_chrec_rec, is_multivariate_chrec,
8532 chrec_contains_symbols, chrec_contains_undetermined,
8533 tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
8534 evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
8535 eq_evolutions_p, scev_direction): Likewise.
8536 * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
8537 eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
8538 chrec_contains_symbols_defined_in_loop,
8539 chrec_contains_undetermined, tree_contains_chrecs,
8540 evolution_function_is_affine_multivariate_p,
8541 evolution_function_is_univariate_p, chrec_zerop,
8542 evolution_function_is_constant_p, evolution_function_is_affine_p,
8543 evolution_function_is_affine_or_constant_p,
8544 tree_does_not_contain_chrecs, chrec_type): Likewise.
8545 * tree-data-ref.c (tree_fold_divides_p,
8546 object_address_invariant_in_loop_p, dr_may_alias_p,
8547 ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
8548 same_access_functions, constant_access_functions,
8549 access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
8550 Likewise.
8551 * tree-flow.h (scev_direction): Likewise.
8552 * tree-gimple.c (is_gimple_stmt): Likewise.
8553 * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
8554 Likewise.
8555 * tree-pretty-print.c (op_prio): Likewise.
8556 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
8557 analyzable_condition, backedge_phi_arg_p): Likewise.
8558 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
8559 * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
8560 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
8561 Likewise.
8562
8563 2007-08-13 Dan Hipschman <dsh@google.com>
8564
8565 PR c/32953
8566 * c-format.c (check_format_arg): Move check for zero-length
8567 format strings below the check for unterminated strings.
8568
8569 2007-08-13 Andrew Pinski <pinskia@gmail.com>
8570
8571 PR C/30427
8572 * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
8573 types.
8574
8575 2007-08-13 Nick Clifton <nickc@redhat.com>
8576
8577 * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
8578
8579 2007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8580
8581 PR fortran/32860
8582 * c-format.c (gcc_gfc_length_specs): New array.
8583 (gcc_gfc_char_table): Add unsigned specifier, and references to
8584 the l length modifier.
8585 (format_types_orig): Use the new gcc_gfc_length_specs.
8586
8587 2007-08-12 Sa Liu <saliu@de.ibm.com>
8588
8589 * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
8590 and with REG_RETVAL note after split.
8591
8592 2007-08-11 David Daney <ddaney@avtrex.com>
8593
8594 * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
8595 as ATTRIBUTE_UNUSED.
8596
8597 2007-08-11 David Edelsohn <edelsohn@gnu.org>
8598 Segher Boessenkool <segher@kernel.crashing.org>
8599
8600 * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
8601 HAVE_LOCAL_CPU_DETECT not defined.
8602
8603 2007-08-11 Jan Hubicka <jh@suse.cz>
8604
8605 * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
8606 (cgraph_process_new_functions): Honor previous value of
8607 disregard_inline_limits.
8608 * ipa-inline.c (compute_inline_parameters): Likewise.
8609
8610 2007-08-11 Ian Lance Taylor <iant@google.com>
8611
8612 * alias.h (alias_set_type): Define new type.
8613 (ALIAS_SET_MEMORY_BARRIER): Use it.
8614 * rtl.h: Include alias.h.
8615 (struct mem_attrs): Use alias_set_type.
8616 * tree.h: Include alias.h
8617 (struct tree_type): Use alias_set_type.
8618 (struct tree_struct_field_tag): Likewise.
8619 (struct tree_decl_common): Likewise.
8620 * alias.c (struct alias_set_entry): Use alias_set_type.
8621 (get_alias_set_entry, alias_set_subset_of): Likewise.
8622 (alias_sets_conflict_p): Likewise.
8623 (alias_sets_must_conflict_p): Likewise.
8624 (objects_must_conflict_p): Likewise.
8625 (get_alias_set, new_alias_set): Likewise.
8626 (record_alias_subset, record_component_aliases): Likewise.
8627 (varargs_set, frame_set): Change to alias_set_type.
8628 (get_varargs_alias_set): Use alias_set_type.
8629 (get_frame_alias_set): Likewise.
8630 * builtins.c (setjmp_alias_set): Change to alias_set_type.
8631 * dse.c (struct store_info): Use alias_set_type.
8632 (struct read_info, struct clear_alias_mode_holder): Likewise.
8633 (clear_alias_set_lookup, canon_address): Likewise.
8634 (record_store, check_mem_read_rtx): Likewise.
8635 (dse_record_singleton_alias_set): Likewise.
8636 (dse_invalidate_singleton_alias_set): Likewise.
8637 * emit-rtl.c (get_mem_attrs): Likewise.
8638 (set_mem_attributes_minus_bitpos): Likewise.
8639 (set_mem_alias_set): Likewise.
8640 * expr.c (store_constructor_field, store_field): Likewise.
8641 * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
8642 * langhooks.c (lhd_get_alias_set): Likewise.
8643 * langhooks-def.h (lhd_get_alias_set): Likewise.
8644 * reload1.c (alter_reg): Likewise.
8645 * tree-flow.h (struct fieldoff): Likewise.
8646 * tree-ssa-alias.c (struct alias_map_d): Likewise.
8647 (may_alias_p, get_smt_for, create_sft): Likewise.
8648 * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
8649 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
8650 (merge_smts_into): Likewise.
8651 * varasm.c (const_alias_set): Likewise.
8652 * c-common.c (strict_aliasing_warning): Likewise.
8653 (c_common_get_alias_set): Likewise.
8654 * dse.h (dse_record_singleton_alias_set): Update declaration.
8655 (dse_invalidate_singleton_alias_set): Likewise.
8656 * emit-rtl.h (set_mem_alias_set): Likewise.
8657 * c-common.h (c_common_get_alias_set): Likewise.
8658 * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
8659 * print-tree.c (print_node): Likewise.
8660 * config/alpha/alpha.c (alpha_sr_alias_set): Change to
8661 alias_set_type.
8662 (alpha_setup_incoming_varargs): Use alias_set_type.
8663 * config/i386/i386.c (setup_incoming_varargs_64): Use
8664 alias_set_type.
8665 (setup_incoming_varargs_ms_64): Likewise.
8666 (ix86_GOT_alias_set): Likewise.
8667 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
8668 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
8669 (set): Change to alias_set_type.
8670 (get_TOC_alias_set): Use alias_set_type.
8671 * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
8672 declaration.
8673 * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
8674 * config/sparc/sparc.c (sparc_sr_alias_set): Change to
8675 alias_set_type.
8676 (struct_value_alias_set): Likewise.
8677 * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
8678
8679 2007-08-11 Richard Sandiford <richard@codesourcery.com>
8680
8681 * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
8682 * config/vxworks.h (TARGET_VXWORKS): Override.
8683 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
8684 "mips" if TARGET_VXWORKS.
8685
8686 2007-08-11 Richard Sandiford <richard@codesourcery.com>
8687
8688 * calls.c (avoid_likely_spilled_reg): New function.
8689 (expand_call): Use it.
8690
8691 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8692
8693 * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
8694
8695 2007-08-10 Adam Nemet <anemet@caviumnetworks.com>
8696
8697 * config/mips/predicates.md (const_call_insn_operand): Invoke
8698 SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
8699
8700 2007-08-10 David Edelsohn <edelsohn@gnu.org>
8701
8702 PR target/33042
8703 * config/rs6000/driver-rs6000.c: Include link.h.
8704 Use ElfW instead of wordsize-specif typedef.
8705
8706 2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8707
8708 * system.h (CONST_CAST): New.
8709 * c-decl.c (c_make_fname_decl): Use it.
8710 * c-lex.c (cb_ident, lex_string): Likewise.
8711 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
8712 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
8713 give_switch, set_multilib_dir): Likewise.
8714 * gengtype-parse.c (string_seq, typedef_name): Likewise.
8715 * passes.c (execute_one_pass): Likewise.
8716 * prefix.c (update_path): Likewise.
8717 * pretty-print.c (pp_base_destroy_prefix): Likewise.
8718 * tree.c (build_string): Likewise.
8719
8720 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
8721
8722 * tree-flow-inline.h (is_exec_stmt): Remove.
8723 (is_label_stmt): Remove.
8724 * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
8725 is_label_stmt.
8726
8727 2007-08-10 Andreas Krebbel <krebbel1@de.ibm.com>
8728
8729 * lower-subreg.c (resolve_shift_zext): Don't adjust
8730 src_reg_num for wordmode operands.
8731
8732 2007-08-10 Sandra Loosemore <sandra@codesourcery.com>
8733 David Ung <davidu@mips.com>
8734
8735 * config/mips/mips.c (TARGET_SCHED_INIT): Define.
8736 (TARGET_SCHED_REORDER2): Define.
8737 (mips_maybe_swap_ready): New.
8738 (mips_last_74k_agen_insn): New.
8739 (mips_74k_agen_init): New.
8740 (mips_74k_agen_reorder): New function to group loads and stores
8741 in the ready queue.
8742 (mips_sched_init): New.
8743 (mips_sched_reorder): Don't do initialization here. Call
8744 mips_74k_agen_reorder.
8745 (mips_variable_issue): Call mips_74k_agen_init.
8746
8747 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
8748
8749 * tree-flow-inline.h (get_filename): Remove.
8750
8751 2007-08-10 Richard Sandiford <richard@codesourcery.com>
8752
8753 * config/mips/mips-protos.h (mips_address_insns): Add a boolean
8754 argument.
8755 (mips_fetch_insns): Delete in favor of...
8756 (mips_load_store_insns): ...this new function.
8757 * config/mips/mips.c (mips_address_insns): Add a boolean argument
8758 to say whether multiword moves _might_ be split.
8759 (mips_fetch_insns): Delete in favor of...
8760 (mips_load_store_insns): ...this new function.
8761 (mips_rtx_costs): Update the call to mips_address_insns.
8762 (mips_address_cost): Likewise.
8763 * config/mips/mips.md (length): Use mips_load_store_insns instead
8764 of mips_fetch_insns.
8765 * config/mips/constraints.md (R): Use mips_address_insns rather
8766 than mips_fetch_insns. Assume that the move never needs to be split.
8767
8768 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
8769
8770 * config/mips/mips.opt (mhard-float, msoft-float): Make these
8771 control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
8772 than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.
8773 * config/mips/mips.h (mips16_hard_float): Delete.
8774 (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
8775 definitions, and replace with....
8776 (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
8777 * config/mips/mips.c (mips16_hard_float): Delete. Replace
8778 all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
8779 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
8780 (override_options): Replace MASK_SOFT_FLOAT references with
8781 MASK_SOFT_FLOAT_ABI. Delete twiddling with MASK_SOFT_FLOAT
8782 and mips16_hard_float when TARGET_MIPS16.
8783
8784 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
8785
8786 PR c/32796
8787 * c-typeck.c (build_binary_op): Check for non pointer types before
8788 calling int_fits_type_p.
8789
8790 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
8791
8792 PR middle-end/32813
8793 * fold-const.c (omit_one_operand): Return only the ommitted expression
8794 if the result is an empty statement.
8795 (pedantic_omit_one_operand): Likewise.
8796
8797 2007-08-09 Daniel Berlin <dberlin@dberlin.org>
8798
8799 * c-typeck.c (readonly_error): Improve error for assignment.
8800
8801 * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
8802 expression.
8803 (pp_c_expression): Ditto.
8804
8805 2007-08-09 Simon Baldwin <simonb@google.com>
8806
8807 * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
8808 break that was preventing simplify_associative_operation() for xor.
8809
8810 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
8811 Nigel Stephens <nigel@mips.com>
8812
8813 * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
8814 Document change in interpretation of value from boolean to
8815 tri-state integer.
8816 * optabs.c (expand_ffs, expand_ctz): New functions to compute
8817 ffs and ctz using clz.
8818 (expand_unop): Call them.
8819 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
8820 result value.
8821 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
8822 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
8823 enable the new ffs expansion on this target.
8824
8825 2007-08-09 Jan Hubicka <jh@suse.cz>
8826
8827 * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
8828 (expand_ternary_op): Likewise.
8829 (expand_vec_shift_expr): Likewise.
8830 (expand_binop_directly): Likewise.
8831 (expand_binop): Likewise.
8832 (sign_expand_binop): Likewise.
8833 (expand_twoval_unop): Likewise.
8834 (expand_twoval_binop): Likewise.
8835 (expand_twoval_binop_libfunc): Likewise.
8836 (widen_clz): Likewise.
8837 (widen_bswap): Likewise.
8838 (expand_parity): Likewise.
8839 (expand_unop): Likewise.
8840 (expand_abs_nojump): Likewise.
8841 (expand_copysign): Likewise.
8842 (emit_no_conflict_block): Likewise.
8843 (emit_libcall_block): Likewise.
8844 (can_compare_p): Likewise.
8845 (prepare_cmp_insn): Likewise.
8846 (emit_cmp_and_jump_insn_1): Likewise.
8847 (prepare_float_lib_cmp): Likewise.
8848 (emit_conditional_add): Likewise.
8849 (gen_add2_insn): Likewise.
8850 (have_add2_insn): Likewise.
8851 (gen_sub2_insn): Likewise.
8852 (have_sub2_insn): Likewise.
8853 (can_extend_p): Likewise.
8854 (can_fix_p): Likewise.
8855 (can_float_p): Likewise.
8856 (expand_float): Likewise.
8857 (expand_fix): Likewise.
8858 (expand_sfix_optab): Likewise.
8859 (new_optab): Likewise.
8860 (new_convert_optab): Likewise.
8861 (init_libfuncs): Likewise.
8862 (init_interclass_conv_libfuncs): Likewise.
8863 (init_intraclass_conv_libfuncs): Likewise.
8864 (set_conv_libfunc): Likewise.
8865 (init_optabs): Likewise.
8866 (debug_optab_libfuncs): Likewise.
8867 (gen_cond_trap): Likewise.
8868 * optabs.h (optab_handler, convert_optab_hanlder): New.
8869 * genopinit.c: Update optabs generation table.
8870 * reload.c (find_reloads_address_1): Use optabs accestors.
8871 * builtins.c (expand_builtin_mathfn): Likewise.
8872 (expand_builtin_mathfn_2): Likewise.
8873 (expand_builtin_mathfn_3): Likewise.
8874 (expand_builtin_interclass_mathfn): Likewise.
8875 (expand_builtin_sincos): Likewise.
8876 (expand_builtin_cexpi): Likewise.
8877 (expand_builtin_powi): Likewise.
8878 (expand_builtin_strlen): Likewise.
8879 * dojump.c (do_jump): Likewise.
8880 * expr.c (convert_move): Likewise.
8881 (move_by_pieces): Likewise.
8882 (move_by_pieces_ninsns): Likewise.
8883 (can_store_by_pieces): Likewise.
8884 (store_by_pieces_1): Likewise.
8885 (emit_move_via_integer): Likewise.
8886 (emit_move_complex): Likewise.
8887 (emit_move_ccmode): Likewise.
8888 (emit_move_insn_1): Likewise.
8889 (emit_single_push_insn): Likewise.
8890 (store_constructor): Likewise.
8891 (expand_expr_real_1): Likewise.
8892 (do_store_flag): Likewise.
8893 * ada/misc.c (gnat_compute_largest_alignment): Likewise.
8894 (enumerate_modes): Likewise.
8895 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
8896 (supportable_widening_operation): Likewise.
8897 (supportable_narrowing_operation): Likewise.
8898 * expmed.c (store_bit_field_1): Likewise.
8899 (extract_bit_field_1): Likewise.
8900 (expand_mult_highpart_optab): Likewise.
8901 (expand_smod_pow2): Likewise.
8902 (expand_divmod): Likewise.
8903 (emit_store_flag): Likewise.
8904 * tree-vect-patterns.c
8905 (vect_pattern_recog_1): Likewise.
8906 * tree-ssa-loop-prefetch.c
8907 (nontemporal_store_p): Likewise.
8908 * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
8909 (vect_create_epilog_for_reduction): Likewise.
8910 (vectorizable_reduction): Likewise.
8911 (vectorizable_operation): Likewise.
8912 (vect_strided_store_supported): Likewise.
8913 (vectorizable_store): Likewise.
8914 (vect_strided_load_supported): Likewise.
8915 (vectorizable_load): Likewise.
8916 * combine.c (simplify_comparison): Likewise.
8917 * tree-vect-generic.c
8918 (type_for_widest_vector_mode): Likewise.
8919 (expand_vector_operations_1): Likewise.
8920 * config/spu/spu.c (spu_expand_mov): Likewise.
8921 (spu_emit_vector_compare): Likewise.
8922 * config/rs6000/rs6000.c
8923 (rs6000_emit_vector_compare): Likewise.
8924 * stmt.c (add_case_node): Likewise.
8925 * reload1.c (gen_reload):
8926
8927 2007-08-09 Michael Matz <matz@suse.de>
8928
8929 * tree.h (fixed_zerop): Declare as taking a const_tree.
8930 * tree.c (fixed_zerop): Take a const_tree.
8931
8932 2007-08-09 Ira Rosen <irar@il.ibm.com>
8933
8934 * tree-vect-transform.c (vectorizable_store): Remove call to
8935 copy_virtual_operands() and call mark_symbols_for_renaming() for
8936 the created vector store.
8937 (vect_setup_realignment): Don't call copy_virtual_operands() and
8938 update_vuses_to_preheader().
8939 (vectorizable_load): Don't call copy_virtual_operands().
8940 (update_vuses_to_preheader): Remove.
8941
8942 2007-08-08 Chao-ying Fu <fu@mips.com>
8943
8944 * tree.def (FIXED_POINT_TYPE): New type.
8945 (FIXED_CST): New constant.
8946 (FIXED_CONVERT_EXPR): New expr.
8947 * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
8948 (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
8949 * tree.h (struct tree_base): Add saturating_flag.
8950 Remove one bit of spare for saturating_flag.
8951 (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
8952 (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
8953 FIXED_POINT_TYPE_P): Define.
8954 (TYPE_SATURATING): Define.
8955 (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
8956 (struct tree_fixed_cst): New.
8957 (TYPE_IBIT, TYPE_FBIT): Define.
8958 (tree_node): Add fixed_cst.
8959 (enum tree_index): Add new enumeration values of
8960 TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
8961 TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
8962 TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
8963 TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
8964 TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
8965 TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
8966 TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
8967 TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
8968 TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
8969 TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
8970 TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
8971 TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
8972 TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
8973 TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
8974 TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
8975 TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
8976 TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
8977 TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
8978 (sat_short_fract_type_node, sat_fract_type_node,
8979 sat_long_fract_type_node, sat_long_long_fract_type_node,
8980 sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
8981 sat_unsigned_long_fract_type_node,
8982 sat_unsigned_long_long_fract_type_node, short_fract_type_node,
8983 fract_type_node, long_fract_type_node, long_long_fract_type_node,
8984 unsigned_short_fract_type_node, unsigned_fract_type_node,
8985 unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
8986 sat_short_accum_type_node, sat_accum_type_node,
8987 sat_long_accum_type_node, sat_long_long_accum_type_node,
8988 sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
8989 sat_unsigned_long_accum_type_node,
8990 sat_unsigned_long_long_accum_type_node, short_accum_type_node,
8991 accum_type_node, long_accum_type_node, long_long_accum_type_node,
8992 unsigned_short_accum_type_node, unsigned_accum_type_node,
8993 unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
8994 qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
8995 uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
8996 utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
8997 sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
8998 sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
8999 sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
9000 ta_type_node, uha_type_node, usa_type_node, uda_type_node,
9001 uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
9002 sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
9003 sat_uda_type_node, sat_uta_type_node): New macro.
9004 (make_fract_type, make_accum_type): Declare.
9005 (make_signed_fract_type, make_unsigned_fract_type,
9006 make_sat_signed_fract_type, make_sat_unsigned_fract_type,
9007 make_signed_accum_type, make_unsigned_accum_type,
9008 make_sat_signed_accum_type, make_sat_unsigned_accum_type,
9009 make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
9010 make_or_reuse_sat_signed_fract_type,
9011 make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
9012 make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
9013 make_or_reuse_sat_unsigned_accum_type): New macro.
9014 (fixed_zerop): Declare.
9015 * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
9016 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
9017 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
9018 LONG_LONG_ACCUM_TYPE_SIZE): Define.
9019 * treestruct.def: Add TS_FIXED_CST.
9020 * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
9021 (tree.o): Likewise.
9022 (tree-dump.o): Likewise.
9023 (print-tree.o): Likewise.
9024 (tree-pretty-print.o): Likewise.
9025 (fold-const.o): Likewise.
9026 * tree-complex.c (some_nonzerop): Handle FIXED_CST.
9027 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
9028 (is_gimple_min_invariant): Handle FIXED_CST.
9029 * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
9030 MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
9031 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
9032 (layout_type): Handle FIXED_POINT_TYPE.
9033 (make_fract_type, make_accum_type): New functions.
9034 * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
9035 * tree-dump.c (fixed-value.h): New include.
9036 (dump_fixed): New function.
9037 (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
9038 * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
9039 (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
9040 * tree-pretty-print.c (fixed-value.h): New include.
9041 (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
9042 FIXED_CONVERT_EXPR.
9043 * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
9044 * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
9045 * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
9046 * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
9047 for non-saturating fixed-point types.
9048 (reassociate_bb): Likewise.
9049 * emit-rtl.c (fixed-value.h): New include.
9050 (fconst0, fconst1): New array.
9051 (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
9052 * tree-vect-generic.c expand_vector_operation): Support
9053 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
9054 MODE_VECTOR_UACCUM.
9055 (type_for_widest_vector_mode): Add one parameter for the
9056 saturating flag.
9057 Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
9058 vector mode.
9059 Pass the satp parameter to type_for_mode for fixed-point types.
9060 (expand_vector_operations_1): Pass the saturating flag to
9061 type_for_widest_vector_mode.
9062 Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
9063 and MODE_VECTOR_UACCUM.
9064 * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
9065 (vectorizable_condition): Likewise.
9066 * tree.c (fixed-value.h): New include.
9067 (tree_code_size): Support FIXED_CST.
9068 (build_fixed): New function.
9069 (build_one_cst): Support FIXED_POINT_TYPE for accum types.
9070 (fixed_zerop): New function.
9071 (tree_node_structure): Support FIXED_CST.
9072 (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
9073 (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
9074 (type_hash_eq): Handle FIXED_POINT_TYPE.
9075 (simple_cst_equal): Support FIXED_CST.
9076 (iterative_hash_expr): Handle FIXED_CST.
9077 (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
9078 (get_narrower): Likewise.
9079 (variably_modified_type_p): Handle FIXED_POINT_TYPE.
9080 (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
9081 (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
9082 MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
9083 nodes.
9084 (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
9085 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
9086 (initializer_zerop): Support FIXED_CST.
9087 (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
9088 * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
9089 DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
9090 (is_base_type): Handle FIXED_POINT_TYPE.
9091 (add_type_attribute): Handle FIXED_POINT_TYPE.
9092 (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
9093 * print-tree.c (fixed-value.h): New include.
9094 (print_node_brief): Support FIXED_CST.
9095 (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
9096 * c-pretty-print.c (fixed-value.h): New include.
9097 (pp_c_type_specifier): Handle FIXED_POINT_TYPE. Need to pass
9098 TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
9099 (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
9100 Support fixed-point types for inner items in VECTOR_TYPE.
9101 (pp_c_direct_declarator): Likewise.
9102 (pp_c_declarator): Likewise.
9103 (pp_c_fixed_constant): New function.
9104 (pp_c_constant): Handle FIXED_CST.
9105 (pp_c_primary_expression): Likewise.
9106 (pp_c_expression): Likewise.
9107 * fold-const.c (fixed-value.h): New include.
9108 (negate_expr_p): Return true for FIXED_CST.
9109 (fold_negate_expr): Support FIXED_CST.
9110 (split_tree): Support FIXED_CST.
9111 (const_binop): Support FIXED_CST.
9112 (fold_convert_const_int_from_fixed): New function to convert from
9113 fixed to int.
9114 (fold_convert_const_real_from_fixed): New function to convert from
9115 fixed to real.
9116 (fold_convert_const_fixed_from_fixed): New function to convert from
9117 fixed to another fixed.
9118 (fold_convert_const_fixed_from_int): New function to convert from
9119 int to fixed.
9120 (fold_convert_const_fixed_from_real): New function to convert from
9121 real to fixed.
9122 (fold_convert_const): Support conversions from fixed to int, from
9123 fixed to real, from fixed to fixed, from int to fixed, and from real
9124 to fixed.
9125 (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
9126 (operand_equal_p): Support FIXED_CST.
9127 (make_range): For fixed-point modes, we need to pass the
9128 saturating flag as the 2nd parameter.
9129 (tree_swap_operands_p): Handle FIXED_CST.
9130 (fold_plusminus_mult_expr): For fract modes, we cannot generate
9131 constant 1.
9132 (fold_unary): Support FIXED_CONVERT_EXPR.
9133 (fold_binary): Handle FIXED_CST.
9134 Make sure the type is not saturating, before associating operations.
9135 Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
9136 (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
9137 (fold_negate_const): Support FIXED_CST.
9138 (fold_relational_const): Support FIXED_CST.
9139 * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
9140 (gimplify_expr): Handle FIXED_CST.
9141 (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
9142 * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
9143 * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
9144 * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
9145 FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
9146 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
9147 LONG_LONG_ACCUM_TYPE_SIZE.
9148 * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
9149 * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
9150 * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
9151 * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
9152 MODE_ACCUM, and MODE_UACCUM.
9153 * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
9154 fixed-point types to disable reduction.
9155 * explow.c (promote_mode): Support FIXED_POINT_TYPE.
9156
9157 2007-08-08 David Edelsohn <edelsohn@gnu.org>
9158
9159 * config/rs6000/x-rs6000: New file.
9160 * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
9161 * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
9162 (EXTRA_SPEC_FUNCTIONS): Define.
9163 (HAVE_LOCAL_CPU_DETECT): Define.
9164 (CC1_CPU_SPEC): Define.
9165 * config/rs6000/driver-rs6000.c: New file.
9166 * config/rs6000/aix.h (CC1_SPEC): Define.
9167 * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
9168 * config.host: Add x-rs6000 to host_xmake_file if host and target
9169 are rs6000 or powerpc.
9170
9171 2007-08-08 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
9172
9173 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
9174
9175 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9176 Sandra Loosemore <sandra@codesourcery.com>
9177 Chao-ying Fu <fu@mips.com>
9178 Nigel Stephens <nigel@mips.com>
9179 David Ung <davidu@mips.com>
9180
9181 * doc/invoke.texi (-mcode-readable): Document.
9182 * config/mips/mips.opt (mcode-readable): New option.
9183 * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
9184 * config/mips/mips.h (mips_code_readable_setting): New enum.
9185 (mips_code_readable): Declare.
9186 (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
9187 (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
9188 (JUMP_TABLES_IN_TEXT_SECTION): Use it.
9189 (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise. Remove
9190 boiler-plate comments.
9191 (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
9192 * config/mips/mips.c (mips_code_readable): New variable.
9193 (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
9194 MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES. Use both the
9195 context and -mcode-readable setting to restrict the use of
9196 SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
9197 Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
9198 (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
9199 (mips_blocks_for_constant_p): Only return false for
9200 TARGET_MIPS16_PCREL_LOADS.
9201 (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
9202 for MIPS16. Handle SYMBOL_32_HIGH.
9203 (mips_const_insns): Allow HIGHs for MIPS16 too.
9204 (mips_unspec_address_offset): New function, split out from...
9205 (mips_unspec_address): ...here.
9206 (mips_output_move): Handle MIPS16 HIGH moves. Use "li" to load
9207 16-bit symbolic constants. Assert approropiate conditions for
9208 using the "la" and "dla" macros.
9209 (mips_handle_option): Handle -mcode-readable=.
9210 (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
9211 Set up mips_lo_relocs[SYMBOL_32_HIGH].
9212 (mips_strip_unspec_address): New function, split out from...
9213 (print_operand_reloc): ...here.
9214 (print_operand): Pass constants through mips_strip_unspec_address.
9215 (print_operand_address): Likewise.
9216 (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
9217 (mips_select_rtx_section): Remove MIPS16 handling.
9218 (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
9219 (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
9220 (mips16_lay_out_constants): Do nothing unless
9221 TARGET_MIPS16_PCREL_LOADS.
9222 (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
9223 * config/mips/mips.md: Split HIGHs for MIPS16.
9224 (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
9225
9226 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9227
9228 * config/mips/mips-protos.h (mips_emit_move): Declare.
9229 * config/mips/mips.c (mips_emit_move): New function.
9230 (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
9231 (mips_legitimize_const_move): Likewise.
9232 (mips_legitimize_move): Likewise.
9233 (mips_split_64bit_move): Likewise.
9234 (mips_restore_gp): Likewise.
9235 (mips_load_call_address): Likewise.
9236 (mips_emit_fcc_reload): Likewise.
9237 (mips_set_return_address): Likewise.
9238 (mips_block_move_straight): Likewise.
9239 (mips_block_move_loop): Likewise.
9240 (mips_setup_incoming_varargs): Likewise.
9241 (mips_save_reg): Likewise.
9242 (mips_expand_prologue): Likewise.
9243 (mips_restore_reg): Likewise.
9244 (mips_expand_epilogue): Likewise.
9245 (mips_output_mi_thunk): Likewise.
9246 (build_mips16_call_stub): Likewise.
9247 (mips_builtin_branch_and_move): Likewise.
9248 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
9249 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
9250 (fixuns_truncdfdi2): Likewise.
9251 (fixuns_truncsfsi2): Likewise.
9252 (fixuns_truncsfdi2): Likewise.
9253 (loadgp_absolute): Likewise.
9254 (builtin_setjmp_setup): Likewise.
9255 (builtin_longjmp): Likewise.
9256 (untyped_call): Likewise.
9257
9258 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9259
9260 * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
9261 an "rtx *" argument. Return a bool.
9262 * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
9263 values and return true if they can be split. Take the same kind of
9264 mode argument as mips_symbol_insns. Add a "lo_sum_out" parameter
9265 and store the lo_sum there if nonnull. Use the symbol type to
9266 determine whether a $gp or HIGH is needed.
9267 (mips_legitimize_address): Update call to mips_split_symbol and
9268 simplify accordingly.
9269 (mips_legitimize_const_move): Likewise.
9270 * config/mips/mips.md: In the combine define_split,
9271 check mips_split_symbol instead of splittable_symbolic_operand.
9272 Update use of mips_split_symbol in the generator code.
9273 * config/mips/predicates.md (splittable_symbolic_operand): Delete.
9274
9275 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9276
9277 * config/mips/mips.c (mips_symbolic_address_p): Delete.
9278 (mips_symbol_insns_1): New function, split out from...
9279 (mips_symbol_insns): ...here. Take a mode argument. Treat loads
9280 and stores separately from load addresses.
9281 (mips_classify_address): Replace uses of mips_symbolic_address_p
9282 with uses of mips_symbol_insns.
9283 (mips_address_insns): Update calls to mips_symbol_insns.
9284 (mips_const_insns): Likewise.
9285 (mips_legitimize_address): Likewise.
9286
9287 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9288
9289 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
9290 * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
9291 block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
9292 Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
9293 non-call contexts if TARGET_MIPS16.
9294 (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
9295 (mips_symbolic_address_p): Likewise. Remove special TARGET_MIPS16
9296 code for SYMBOL_ABSOLUTE.
9297 (mips_symbol_insns): Likewise.
9298
9299 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9300
9301 * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
9302 * config/mips/mips.c (mips_classify_symbol): Take a context argument.
9303 (mips_symbolic_constant_p): Likewise. Update the call to
9304 mips_classify_symbol.
9305 (mips_classify_address): Update the calls to mips_symbolic_constant_p.
9306 (mips_const_insns): Likewise. Update the call to mips_classify_symbol.
9307 (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
9308 (print_operand_reloc): Add a context argument. Update the call to
9309 mips_symbolic_constant_p.
9310 (print_operand): Update the calls to print_operand_reloc.
9311 (print_operand_address): Use print_operand_reloc rather than
9312 print_operand.
9313 (mips_rewrite_small_data_p): Add a context argument. Update the call
9314 to mips_symbolic_constant_p.
9315 (mips_small_data_pattern_1): Make DATA the containing mem.
9316 Update the call to mips_rewrite_small_data_p.
9317 (mips_rewrite_small_data_1): Likewise.
9318 (mips_use_anchors_for_symbol_p): Update the call to
9319 mips_symbolic_constant_p.
9320 * config/mips/predicates.md (const_call_insn_operand): Likewise.
9321 (splittable_symbolic_operand): Likewise.
9322 (move_operand): Likewise.
9323 (absolute_symbolic_operand): Likewise.
9324 (got_disp_operand): Likewise.
9325 (got_page_ofst_operand): Likewise.
9326
9327 2007-08-08 Richard Sandiford <richard@codesourcery.com>
9328
9329 * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
9330 (SYMBOL_ABSOLUTE): ...this.
9331 (SYMBOL_SMALL_DATA): Rename to...
9332 (SYMBOL_GP_RELATIVE): ...this.
9333 (SYMBOL_CONSTANT_POOL): Rename to...
9334 (SYMBOL_PC_RELATIVE): ...this.
9335 * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
9336 (mips_symbolic_address_p, mips_symbol_insns, override_options)
9337 (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
9338 after above changes.
9339 * config/mips/predicates.md (const_call_insn_operand): Likewise.
9340 (general_symbolic_operand): Rename to...
9341 (absolute_symbolic_operand): ...this.
9342 * config/mips/mips.md: Update after above changes.
9343
9344 2007-08-08 Vladimir Yanovsky <yanov@il.ibm.com>
9345 Revital Eres <eres@il.ibm.com>
9346
9347 * ddg.c (print_ddg): Add dump information.
9348 * modulo-sched.c (print_node_sched_params): Add parameter and
9349 verbosity.
9350 (calculate_maxii): Remove function.
9351 (undo_generate_reg_moves): Likewise.
9352 (undo_permute_partial_schedule): Likewise.
9353 (kernel_number_of_cycles): Likewise.
9354 (MAXII_FACTOR): New definition to calculate the upper bound of II.
9355 (sms_schedule): Use it. Remove profitability checks.
9356 (sms_schedule_by_order): Fix order of nodes within the cycle.
9357
9358 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9359
9360 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
9361 -profile option, add pie support.
9362 (ENDFILE_SPEC): New spec.
9363 * config/gnu.h (LIB_SPEC): Add -profile option.
9364
9365 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9366
9367 * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
9368 * config/gnu.h (LIB_SPEC): Likewise.
9369
9370 2007-08-07 Yaz Saito <saito@google.com>
9371 Ian Lance Taylor <iant@google.com>
9372
9373 * common.opt (finstrument-functions-exclude-function-list): New
9374 option.
9375 (finstrument-functions-exclude-file-list): New option.
9376 * opts.c (char_p): Define and DEF_VEC.
9377 (flag_instrument_functions_exclude_functions): New static
9378 variable.
9379 (flag_instrument_functions_exclude_files): New static variable.
9380 (add_instrument_functions_exclude_list): New static function.
9381 (flag_instrument_functions_exclude_p): New function.
9382 (common_handle_option): Handle new options.
9383 * flags.h (flag_instrument_functions_exclude_p): Declare.
9384 * gimplify.c (gimplify_function_tree): Call
9385 flag_instrument_functions_exclude_p.
9386 * doc/invoke.texi (Option Summary): Mention new options.
9387 (Code Gen Options): Document new options.
9388
9389 2007-08-07 Ian Lance Taylor <iant@google.com>
9390
9391 PR rtl-optimization/32776
9392 * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
9393 (resolve_use): Likewise.
9394 (decompose_multiword_subregs): Remove "changed" local variable.
9395
9396 2007-08-07 Carlos O'Donell <carlos@codesourcery.com>
9397
9398 * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
9399 * configure: Regenerate.
9400 * config.in: Regenerate.
9401 * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
9402 spec string.
9403
9404 2007-08-07 Ian Lance Taylor <iant@google.com>
9405
9406 * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
9407 note, just delete the insn.
9408
9409 2007-08-07 Andreas Schwab <schwab@suse.de>
9410
9411 PR bootstrap/32973
9412 * gengtype-lex.l: Ignore backslash/newline pair while scanning a
9413 struct definition.
9414
9415 2007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
9416
9417 * lower-subreg.c (resolve_subreg_use): Remove assertion.
9418 (find_decomposable_shift_zext, resolve_shift_zext): New functions.
9419 (decompose_multiword_subregs): Use the functions above to decompose
9420 multiword shifts and zero-extends.
9421
9422 2007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
9423
9424 * doc/sourcebuild.texi (Test Directives): Fix "compile" and
9425 "assemble" descriptions which were swapped.
9426
9427 2007-08-06 Chao-ying Fu <fu@mips.com>
9428
9429 * fixed-value.h: New file.
9430 * fixed-value.c: New file.
9431 * Makefile.in (OBJS-common): Add fixed-value.o.
9432 (fixed-value.o): New rule.
9433 (GTFILES): Add fixed-value.h.
9434 * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
9435 to compare a.low and b.low.
9436 * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
9437
9438 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
9439 Daniel Jacobowitz <dan@codesourcery.com>
9440
9441 PR target/31868
9442 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
9443 tmake_file.
9444 (x86_64-*-netbsd*): Likewise.
9445 (x86_64-*-linux*): Likewise.
9446 (x86_64-*-kfreebsd*-gnu): Likewise.
9447 (x86_64-*-knetbsd*-gnu): Likewise.
9448 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
9449
9450 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
9451
9452 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
9453 Add -fno-asynchronous-unwind-tables.
9454
9455 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
9456 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
9457 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
9458 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
9459 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
9460
9461 2007-08-06 Steve Ellcey <sje@cup.hp.com>
9462
9463 * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
9464 (TARGET_C_MODE_FOR_SUFFIX): New.
9465
9466 2007-08-06 Steve Ellcey <sje@cup.hp.com>
9467
9468 * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
9469
9470 2007-08-06 Steve Ellcey <sje@cup.hp.com>
9471
9472 * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
9473
9474 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
9475
9476 * config/i386/i386.md: Check TARGET_ macros and optimize_size
9477 before checking function returns in conditional expressions.
9478
9479 2007-08-06 Alfred Minarik <a.minarik@aon.at>
9480
9481 PR pch/13676
9482 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
9483
9484 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9485
9486 PR middle-end/32988
9487 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
9488 for INTEGRAL_TYPE_P.
9489
9490 2008-08-05 Paolo Bonzini <bonzini@gnu.org>
9491
9492 * configure.ac: Remove --enable-checking=df from default settings.
9493 * tree-pass.h (TODO_df_verify): New. Shift TODO_mark_first_instance.
9494 * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
9495 if the parameter is true.
9496 (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
9497 DF_VERIFY_SCHEDULED flag is true.
9498 * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
9499 (df_finish_pass): Adjust prototype.
9500 * passes.c (execute_todo): Schedule verification if TODO_df_verify is
9501 true.
9502
9503 * see.c (pass_see): Add TODO_df_verify.
9504 * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
9505 * global.c (rest_of_handle_global_alloc): Schedule verification
9506 after the pass.
9507 * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
9508 before the pass.
9509 * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
9510 * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
9511 * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
9512
9513 * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
9514 * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
9515 * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
9516
9517 2007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
9518 Revital Eres <eres@il.ibm.com>
9519
9520 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
9521 flag.
9522 * ddg.c (create_ddg_dependence): Rename to...
9523 (create_ddg_dep_from_intra_loop_link): This. Do not check
9524 for interloop edges. Do not create anti dependence edge when
9525 a true dependence edge exists in the opposite direction and
9526 -fmodulo-sched-allow-regmoves is set.
9527 (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
9528 (add_cross_iteration_register_deps): Create anti dependence edge
9529 when -fno-modulo-sched-allow-regmoves is set.
9530 * common.opt (-fmodulo-sched-allow-regmoves): New flag.
9531
9532 2007-08-04 Richard Sandiford <richard@codesourcery.com>
9533
9534 * config/arm/arm.md (movsi): Add braces.
9535
9536 2007-08-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
9537
9538 PR middle-end/32780
9539 * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
9540 operands for the folding of "A - (A & B)" into "~B & A"; cast them
9541 to type.
9542
9543 2007-08-03 Zdenek Dvorak <ook@ucw.cz>
9544
9545 * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
9546 state accessor functions.
9547 * cfgloopmanip.c (remove_path, create_preheaders,
9548 force_single_succ_latches, fix_loop_structure): Ditto.
9549 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9550 tree_duplicate_loop_to_header_edge): Ditto.
9551 * cfgloopanal.c (mark_irreducible_loops): Ditto.
9552 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
9553 Ditto.
9554 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
9555 cleanup_tree_cfg): Ditto.
9556 * tree-cfg.c (tree_merge_blocks): Ditto.
9557 * cfgloop.c (rescan_loop_exit, record_loop_exits,
9558 release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
9559 loop_preheader_edge, single_exit): Ditto.
9560 (flow_loops_find): Do not clear loops->state.
9561 * cfgloop.h (loops_state_satisfies_p, loops_state_set,
9562 loops_state_clear): New functions.
9563
9564 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9565
9566 PR middle-end/32399
9567 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
9568 when adding to the base and convert ELT to sizetype instead of type.
9569
9570 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9571
9572 PR middle-end/32304
9573 * ipa-reference.c (has_proper_scope_for_analysis): Return false when
9574 the decl's type has TYPE_NEEDS_CONSTRUCTING set.
9575
9576 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9577
9578 PR middle-end/32935
9579 * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
9580 correct type the negate expression.
9581
9582 2007-08-03 Jan Hubicka <jh@suse.cz>
9583
9584 * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
9585 stack boundary.
9586
9587 2007-08-03 David Edelsohn <edelsohn@gnu.org>
9588
9589 * config/rs6000/rs6000.c (struct processor_cost): Change
9590 l1_cache_lines to l1_cache_size. Add l2_cache_size.
9591 (*_cost): Convert l1 cache information to kilobytes. Add l2 cache
9592 information.
9593 (rios1_costs, rios2_cost): Correct cache line size.
9594 (rs6000_override_options): Set l2-cache-size parameter.
9595
9596 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9597 Diego Novillo <dnovillo@google.com>
9598
9599 PR 31521
9600 * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
9601 if the range includes 0.
9602
9603 2007-08-03 Ben Elliston <bje@au.ibm.com>
9604
9605 * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
9606 mode to unspec expressions to silence a warning from the generator
9607 programs.
9608
9609 2007-08-02 Steve Ellcey <sje@cup.hp.com>
9610
9611 * config/ia64/constraints.md ("U"): Make constraint vector only.
9612
9613 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
9614
9615 PR middle-end/25446
9616 * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
9617 always_inline attribute on the function decl.
9618
9619 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
9620
9621 PR middle-end/25445
9622 * varasm.c (default_binds_local_p_1): Consult flag_whole_program
9623 if we are compiling with -fPIC.
9624
9625 2007-08-02 Sandra Loosemore <sandra@codesourcery.com>
9626 Nigel Stephens <nigel@mips.com>
9627
9628 * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
9629 Define for MIPS32 and MIPS64.
9630
9631 2007-08-02 Nick Clifton <nickc@redhat.com>
9632
9633 * config/host-hpux.c: Change copyright header to refer to version
9634 3 of the GNU General Public License and to point readers at the
9635 COPYING3 file and the FSF's license web page.
9636 * config/alpha/predicates.md, config/alpha/vms-ld.c,
9637 config/alpha/linux.h, config/alpha/alpha.opt,
9638 config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
9639 config/alpha/vms-unwind.h, config/alpha/ev4.md,
9640 config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
9641 config/alpha/alpha.h, config/alpha/sync.md,
9642 config/alpha/openbsd.h, config/alpha/alpha.md,
9643 config/alpha/alpha-modes.def, config/alpha/ev5.md,
9644 config/alpha/alpha-protos.h, config/alpha/freebsd.h,
9645 config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
9646 config/alpha/constraints.md, config/alpha/osf.h,
9647 config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
9648 config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
9649 config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
9650 config/frv/frv-asm.h, config/frv/frv-protos.h,
9651 config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
9652 config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
9653 config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
9654 config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
9655 config/s390/s390.opt, config/s390/s390-modes.def,
9656 config/s390/fixdfdi.h, config/s390/constraints.md,
9657 config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
9658 config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
9659 config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
9660 config/m32c/m32c-pragma.c, config/m32c/m32c.h,
9661 config/m32c/prologue.md, config/m32c/m32c.abi,
9662 config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
9663 config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
9664 config/m32c/t-m32c, config/m32c/m32c-modes.def,
9665 config/m32c/jump.md, config/m32c/shift.md,
9666 config/m32c/m32c-protos.h, config/libgloss.h,
9667 config/spu/spu-protos.h, config/spu/predicates.md,
9668 config/spu/spu-builtins.h, config/spu/spu.c,
9669 config/spu/spu-builtins.def, config/spu/spu-builtins.md,
9670 config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
9671 config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
9672 config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
9673 config/sparc/hypersparc.md, config/sparc/predicates.md,
9674 config/sparc/linux.h, config/sparc/sp64-elf.h,
9675 config/sparc/supersparc.md, config/sparc/cypress.md,
9676 config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
9677 config/sparc/niagara.md, config/sparc/sparc.md,
9678 config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
9679 config/sparc/sparc.opt, config/sparc/sync.md,
9680 config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
9681 config/sparc/ultra1_2.md, config/sparc/biarch64.h,
9682 config/sparc/sparc.c, config/sparc/little-endian.opt,
9683 config/sparc/sysv4-only.h, config/sparc/sparc.h,
9684 config/sparc/linux64.h, config/sparc/freebsd.h,
9685 config/sparc/sol2.h, config/sparc/rtemself.h,
9686 config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
9687 config/sparc/sparc-modes.def, config/sparc/sparclet.md,
9688 config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
9689 config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
9690 config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
9691 config/m32r/linux.h, config/m32r/constraints.md,
9692 config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
9693 config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
9694 config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
9695 config/i386/i386.md, config/i386/netware-crt0.c,
9696 config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
9697 config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
9698 config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
9699 config/i386/sol2.h, config/i386/constraints.md,
9700 config/i386/netware-libgcc.c, config/i386/sysv5.h,
9701 config/i386/predicates.md, config/i386/geode.md,
9702 config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
9703 config/i386/freebsd64.h, config/i386/vxworksae.h,
9704 config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
9705 config/i386/rtemself.h, config/i386/netbsd-elf.h,
9706 config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
9707 config/i386/netware.h, config/i386/i386-modes.def,
9708 config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
9709 config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
9710 config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
9711 config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
9712 config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
9713 config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
9714 config/i386/xm-mingw32.h, config/i386/linux64.h,
9715 config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
9716 config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
9717 config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
9718 config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
9719 config/i386/cygwin2.c, config/i386/i386-protos.h,
9720 config/i386/sync.md, config/i386/openbsd.h,
9721 config/i386/host-mingw32.c, config/i386/i386-aout.h,
9722 config/i386/nto.h, config/i386/biarch64.h,
9723 config/i386/i386-coff.h, config/i386/freebsd.h,
9724 config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
9725 config/i386/host-i386-darwin.c, config/i386/vxworks.h,
9726 config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
9727 config/darwin-protos.h, config/linux.opt, config/sol2.c,
9728 config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
9729 config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
9730 config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
9731 config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
9732 config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
9733 config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
9734 config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
9735 config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
9736 config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
9737 config/sh/superh64.h, config/sh/rtemself.h,
9738 config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
9739 config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
9740 config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
9741 config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
9742 config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
9743 config/avr/predicates.md, config/avr/constraints.md,
9744 config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
9745 config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
9746 config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
9747 config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
9748 config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
9749 config/c4x/c4x-modes.def, config/c4x/rtems.h,
9750 config/c4x/predicates.md, config/c4x/c4x.h,
9751 config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
9752 config/xtensa/predicates.md, config/xtensa/xtensa.c,
9753 config/xtensa/linux.h, config/xtensa/xtensa.h,
9754 config/xtensa/elf.h, config/xtensa/xtensa.md,
9755 config/xtensa/xtensa.opt, config/xtensa/constraints.md,
9756 config/xtensa/xtensa-protos.h, config/dbx.h,
9757 config/stormy16/predicates.md, config/stormy16/stormy16.md,
9758 config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
9759 config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
9760 config/host-solaris.c, config/fr30/fr30.h,
9761 config/fr30/predicates.md, config/fr30/fr30-protos.h,
9762 config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
9763 config/vxworksae.h, config/sol2-c.c, config/lynx.h,
9764 config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
9765 config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
9766 config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
9767 config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
9768 config/host-linux.c, config/interix3.h, config/cris/cris.c,
9769 config/cris/predicates.md, config/cris/linux.h,
9770 config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
9771 config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
9772 config/cris/aout.opt, config/cris/cris-protos.h,
9773 config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
9774 config/iq2000/iq2000.h, config/iq2000/predicates.md,
9775 config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
9776 config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
9777 config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
9778 config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
9779 config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
9780 config/chorus.h, config/mn10300/mn10300.c,
9781 config/mn10300/mn10300.opt, config/mn10300/predicates.md,
9782 config/mn10300/mn10300.h, config/mn10300/linux.h,
9783 config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
9784 config/mn10300/mn10300.md, config/ia64/predicates.md,
9785 config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
9786 config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
9787 config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
9788 config/ia64/freebsd.h, config/ia64/ia64.md,
9789 config/ia64/ia64-modes.def, config/ia64/constraints.md,
9790 config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
9791 config/gofast.h, config/rtems.h, config/sol2-10.h,
9792 config/m68k/predicates.md, config/m68k/m68k.md,
9793 config/m68k/linux.h, config/m68k/m68k-modes.def,
9794 config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
9795 config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
9796 config/m68k/openbsd.h, config/m68k/m68k-aout.h,
9797 config/m68k/m68k.opt, config/m68k/m68020-elf.h,
9798 config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
9799 config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
9800 config/m68k/constraints.md, config/m68k/rtemself.h,
9801 config/m68k/netbsd-elf.h, config/m68k/m68k.h,
9802 config/m68k/uclinux.h, config/rs6000/power4.md,
9803 config/rs6000/host-darwin.c, config/rs6000/6xx.md,
9804 config/rs6000/linux.h, config/rs6000/eabi.h,
9805 config/rs6000/aix41.opt, config/rs6000/xcoff.h,
9806 config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
9807 config/rs6000/eabialtivec.h, config/rs6000/8540.md,
9808 config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
9809 config/rs6000/windiss.h, config/rs6000/603.md,
9810 config/rs6000/aix41.h, config/rs6000/cell.md,
9811 config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
9812 config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
9813 config/rs6000/darwin.md, config/rs6000/darwin64.h,
9814 config/rs6000/default64.h, config/rs6000/7xx.md,
9815 config/rs6000/darwin.opt, config/rs6000/spe.md,
9816 config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
9817 config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
9818 config/rs6000/7450.md, config/rs6000/linux64.h,
9819 config/rs6000/constraints.md, config/rs6000/440.md,
9820 config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
9821 config/rs6000/rs6000.c, config/rs6000/aix52.h,
9822 config/rs6000/rs6000.h, config/rs6000/power6.md,
9823 config/rs6000/predicates.md, config/rs6000/altivec.md,
9824 config/rs6000/aix64.opt, config/rs6000/rios1.md,
9825 config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
9826 config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
9827 config/rs6000/darwin7.h, config/rs6000/dfp.md,
9828 config/rs6000/linux64.opt, config/rs6000/sync.md,
9829 config/rs6000/vxworksae.h, config/rs6000/power5.md,
9830 config/rs6000/lynx.h, config/rs6000/biarch64.h,
9831 config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
9832 config/rs6000/eabispe.h, config/rs6000/e500.h,
9833 config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
9834 config/rs6000/netbsd.h, config/rs6000/e500-double.h,
9835 config/rs6000/aix.h, config/rs6000/vxworks.h,
9836 config/rs6000/40x.md, config/rs6000/aix51.h,
9837 config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
9838 config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
9839 config/arc/arc.h, config/mcore/mcore-elf.h,
9840 config/mcore/mcore-protos.h, config/mcore/predicates.md,
9841 config/mcore/mcore.md, config/mcore/mcore.c,
9842 config/mcore/mcore.opt, config/mcore/mcore.h,
9843 config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
9844 config/score/predicates.md, config/score/score-version.h,
9845 config/score/score-protos.h, config/score/misc.md,
9846 config/score/elf.h, config/score/score.c, config/score/mac.md,
9847 config/score/score7.md, config/score/score.h,
9848 config/score/score-conv.h, config/score/score-mdaux.c,
9849 config/score/score.md, config/score/score.opt,
9850 config/score/score-modes.def, config/score/score-mdaux.h,
9851 config/score/mul-div.S, config/arm/uclinux-elf.h,
9852 config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
9853 config/arm/symbian.h, config/arm/linux-elf.h,
9854 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
9855 config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
9856 config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
9857 config/arm/strongarm-pe.h, config/arm/arm.h,
9858 config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
9859 config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
9860 config/arm/arm-modes.def, config/arm/linux-eabi.h,
9861 config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
9862 config/arm/arm-cores.def, config/arm/arm-protos.h,
9863 config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
9864 config/arm/wince-pe.h, config/arm/neon.md,
9865 config/arm/constraints.md, config/arm/neon.ml,
9866 config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
9867 config/arm/arm.opt, config/arm/arm926ejs.md,
9868 config/arm/predicates.md, config/arm/iwmmxt.md,
9869 config/arm/arm_neon.h, config/arm/unknown-elf.h,
9870 config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
9871 config/arm/neon-testgen.ml, config/arm/arm.md,
9872 config/arm/xscale-coff.h, config/arm/pe.c,
9873 config/arm/arm-generic.md, config/arm/pe.h,
9874 config/arm/kaos-strongarm.h, config/arm/freebsd.h,
9875 config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
9876 config/arm/strongarm-elf.h, config/arm/cirrus.md,
9877 config/arm/netbsd-elf.h, config/arm/vxworks.h,
9878 config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
9879 config/pa/predicates.md, config/pa/pa64-hpux.h,
9880 config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
9881 config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
9882 config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
9883 config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
9884 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
9885 config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
9886 config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
9887 config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
9888 config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
9889 config/pa/pa64-regs.h, config/pa/pa-modes.def,
9890 config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
9891 config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
9892 config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
9893 config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
9894 config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
9895 config/mips/linux64.h, config/mips/elforion.h,
9896 config/mips/constraints.md, config/mips/generic.md,
9897 config/mips/predicates.md, config/mips/4300.md,
9898 config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
9899 config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
9900 config/mips/5k.md, config/mips/vr4120-div.S,
9901 config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
9902 config/mips/mips-protos.h, config/mips/6000.md,
9903 config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
9904 config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
9905 config/mips/mips-modes.def, config/mips/vr.h,
9906 config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
9907 config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
9908 config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
9909 config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
9910 config/vax/openbsd1.h, config/vax/netbsd.h,
9911 config/vax/vax-protos.h, config/vax/netbsd-elf.h,
9912 config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
9913 config/h8300/rtems.h, config/h8300/predicates.md,
9914 config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
9915 config/h8300/h8300.md, config/h8300/h8300.opt,
9916 config/h8300/coff.h, config/h8300/h8300-protos.h,
9917 config/v850/v850.md, config/v850/predicates.md,
9918 config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
9919 config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
9920 config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
9921 config/mmix/mmix.h, config/mmix/predicates.md,
9922 config/mmix/mmix-protos.h, config/mmix/mmix.md,
9923 config/mmix/mmix.c, config/mmix/mmix.opt,
9924 config/mmix/mmix-modes.def, config/bfin/bfin.opt,
9925 config/bfin/rtems.h, config/bfin/bfin-modes.def,
9926 config/bfin/predicates.md, config/bfin/bfin-protos.h,
9927 config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
9928 Likewise.
9929
9930 2007-08-02 Richard Sandiford <richard@codesourcery.com>
9931
9932 * emit-rtl.c (reset_used_decls): Rename to...
9933 (set_used_decls): ...this. Set the used flag rather than clearing it.
9934 (unshare_all_rtl_again): Update accordingly. Set flags on argument
9935 DECL_RTLs rather than resetting them.
9936
9937 2007-08-02 Andreas Krebbel <krebbel1@de.ibm.com>
9938
9939 * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
9940
9941 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
9942
9943 * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
9944 argument to find_reloads_address.
9945
9946 2007-08-01 Daniel Jacobowitz <dan@codesourcery.com>
9947
9948 PR tree-optimization/32919
9949 * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
9950 * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
9951 (coalesce_ssa_name): Call it.
9952
9953 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
9954 David Ung <davidu@mips.com>
9955
9956 * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
9957 (__mips16_unorddf2, __mips16_floatunsidf): New.
9958 * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
9959 above functions.
9960 * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
9961
9962 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
9963
9964 * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
9965 Display new operands of OMP_SECTIONS and OMP_CONTINUE.
9966 * tree.h (OMP_SECTIONS_CONTROL): New macro.
9967 (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
9968 * omp-low.c (get_ws_args_for, determine_parallel_type,
9969 expand_omp_for_generic, expand_omp_for_static_nochunk,
9970 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
9971 Work with more precise CFG.
9972 (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
9973 (lower_omp_sections): Emit OMP_SECTIONS_SWITCH. Add arguments to
9974 OMP_CONTINUE.
9975 * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
9976 * gimple-low.c (lower_stmt): Ditto.
9977 * tree-inline.c (estimate_num_insns_1): Ditto.
9978 * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
9979 (OMP_SECTIONS_SWITCH): New.
9980 * tree-cfgcleanup.c (cleanup_omp_return): New.
9981 (cleanup_tree_cfg_bb): Call cleanup_omp_return.
9982 * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
9983 and exit edge for OMP_FOR. Handle OMP_SECTIONS_SWITCH.
9984 (tree_redirect_edge_and_branch): Handle omp constructs.
9985
9986 * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
9987 with three arguments.
9988
9989 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
9990
9991 * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
9992 in loop closed ssa.
9993
9994 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
9995
9996 * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
9997 the loop structures may need fixing.
9998 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9999 New functions.
10000 (cleanup_tree_cfg_loop): Removed.
10001 (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
10002 * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
10003 instead of running cleanup_tree_cfg_loop.
10004 * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
10005 * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
10006 (tree_predictive_commoning): Declaration changed.
10007 * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
10008
10009 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
10010
10011 * doc/invoke.texi (l1-cache-size): Update documentation.
10012 (l2-cache-size): Document.
10013 * params.h (L2_CACHE_SIZE): New macro.
10014 * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
10015 that L1_CACHE_SIZE is in kB now.
10016 (L2_CACHE_SIZE_BYTES): New macro.
10017 (tree_ssa_prefetch_arrays): Show size in kB.
10018 * config/i386/i386.h (struct processor_costs): Add l1_cache_size
10019 and l2_cache_size fields.
10020 * config/i386/driver-i386.c (describe_cache): Detect cache size
10021 in kB.
10022 * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
10023 pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
10024 amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
10025 generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
10026 (override_options): Set l1-cache-size and l2-cache-size to default
10027 values if not specified otherwise.
10028 * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
10029 (PARAM_L2_CACHE_SIZE): New.
10030
10031 2007-08-01 Nigel Stephens <nigel@mips.com>
10032 David Ung <davidu@mips.com>
10033 Thiemo Seufer <ths@mips.com>
10034 Chris Dearman <chris@mips.com>
10035 Richard Sandiford <richard@codesourcery.com>
10036
10037 * config.gcc (mips*-sde-elf*): New stanza.
10038 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
10039 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
10040 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
10041 (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
10042 (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
10043 (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
10044 to tmake_file.
10045 * config/mips/sde.h: New file.
10046 * config/mips/t-libgcc-mips16: Likewise.
10047 * config/mips/t-sde: Likewise.
10048 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
10049 of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
10050 _MIPS_FPSET and _MIPS_SZINT.
10051 * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
10052 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
10053 insertion of a default -mips option. Use MIPS_32BIT_OPTION_SPEC.
10054 * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
10055 * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10056 * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10057 * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
10058 _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
10059 _MIPS_SZPTR and _MIPS_FPSET.
10060 (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
10061 architecture is specified.
10062 (MIPS_32BIT_OPTION_SPEC): New macro.
10063
10064 2007-07-31 Dan Hipschman <dsh@google.com>
10065
10066 * gcc.c (end_going_arg): New function.
10067 (do_spec_2): Use it.
10068 (do_spec_1): Use it.
10069
10070 2007-07-31 H.J. Lu <hongjiu.lu@intel.com>
10071
10072 * ddg.c (add_cross_iteration_register_deps): Declare bb_info
10073 only if ENABLE_CHECKING is defined.
10074
10075 2007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
10076
10077 * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
10078 df_ru_add_problem, df_ru_get_bb_info): Removed.
10079 (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
10080 * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
10081 df_ru_free_bb_info, df_ru_alloc,
10082 df_ru_bb_local_compute_process_def,
10083 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
10084 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
10085 df_ru_transfer_function, df_ru_free, df_ru_start_dump,
10086 df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
10087 df_ru_add_problem): Removed.
10088
10089 2007-07-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10090
10091 PR target/32847
10092 * pa.md (casesi32): Use match_scratch. Revise insn condition.
10093 (casesi32p, casesi64p): Likewise.
10094 (casesi): Adjust for above.
10095
10096 2007-07-31 Richard Sandiford <richard@codesourcery.com>
10097
10098 * mode-switching.c (create_pre_exit): Don't search past calls.
10099
10100 2007-07-31 Sandra Loosemore <sandra@codesourcery.com>
10101
10102 * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
10103
10104 2007-07-31 Revital Eres <eres@il.ibm.com>
10105
10106 * ddg.c (add_deps_for_def): Rename to...
10107 (add_cross_iteration_register_deps): This. Change implementation
10108 to use only reaching def and def-use chains to construct the
10109 inter loop dependencies.
10110 (add_deps_for_use): Remove function.
10111 (build_inter_loop_deps): Call add_cross_iteration_register_deps
10112 function to build the inter loop dependencies.
10113 * modulo-sched.c (sms_schedule): Build only
10114 reaching def and def-use chains for the propose of the ddg
10115 construction.
10116
10117 2007-07-31 Julian Brown <julian@codesourcery.com>
10118
10119 * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
10120 New define_insns. Use correct RTL.
10121 (vec_set<mode>): Write as expander.
10122
10123 2007-07-31 Razya Ladelsky <razya@il.ibm.com>
10124
10125 * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
10126 to an unallocated space.
10127
10128 2007-07-30 Jan Sjodin <jan.sjodin@amd.com>
10129
10130 * tree-data-ref.c
10131 (split_constant_offset): Enable split_constant_offset to extract
10132 constants from other statements.
10133 * tree-vect-transform.c
10134 (vect_create_addr_base_for_vector_ref): Generate data_ref_base
10135 to a temp var. Force base_offset to be simple.
10136
10137 2007-07-30 Seongbae Park <seongbae.park@gmail.com>
10138
10139 * df-scan.c (df_scan_verify): Remove artificial limit on
10140 the number of blocks for verification.
10141 * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
10142 df_simulate_defs): Avoid unnecessary insn checking for defs.
10143
10144 2007-07-29 Mark Mitchell <mark@codesourcery.com>
10145
10146 * config/m68k/lb1sf68.asm (FUNC): New macro.
10147 (__mulsi3): Use it.
10148 (__udivsi3): Likewise.
10149 (__divsi3): Likewise.
10150 (__umodsi3): Likewise.
10151 (__modsi3): Likewise.
10152 (__subdf3): Likewise.
10153 (__adddf3): Likewise.
10154 (__muldf3): Likewise.
10155 (__divdf3): Likewise.
10156 (__negdf2): Likewise.
10157 (__cmpdf2): Likewise.
10158 (__subsf3): Likewise.
10159 (__addsf3): Likewise.
10160 (__mulsf3): Likewise.
10161 (__divsf3): Likewise.
10162 (__negsf2): Likewise.
10163 (__cmpsf2): Likewise.
10164 (__eqdf2): Likewise.
10165 (__nedf2): Likewise.
10166 (__gtdf2): Likewise.
10167 (__gedf2): Likewise.
10168 (__ltdf2): Likewise.
10169 (__ledf2): Likewise.
10170 (__eqsf2): Likewise.
10171 (__nesf2): Likewise.
10172 (__gtsf2): Likewise.
10173 (__gesf2): Likewise.
10174 (__ltsf2): Likewise.
10175 (__lesf2): Likewise.
10176
10177 2007-07-30 Ollie Wild <aaw@google.com>
10178
10179 * c-ppoutput.c (print_lines_directives_only): New function.
10180 (scan_translation_unit_directives_only): New function.
10181 (preprocess_file): Add call to scan_translation_unit_directives_only.
10182 * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
10183 (sanitize_cpp_opts): Add default flag_dump_macros setting for
10184 -fdirectives-only. Add errors for -fdirectives-only conflict with
10185 -Wunused-macros and -traditional.
10186 (finish_options): Add builtin macro initialization for
10187 -fdirectives-only + -fpreprocessed.
10188 * c.opt (fdirectives-only): New.
10189 * doc/cppopts.texi (fdirectives-only): New.
10190
10191 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10192
10193 * alias.c (record_set, memory_modified_1): Constify.
10194 * bt-load.c (note_btr_set): Likewise.
10195 * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
10196 * combine.c (set_nonzero_bits_and_sign_copies,
10197 expand_field_assignment, record_dead_and_set_regs_1,
10198 use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
10199 likely_spilled_retval_1): Likewise.
10200 * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
10201 frv_io_handle_set): Likewise.
10202 * config/mips/mips.c (mips_sim_record_set,
10203 vr4130_true_reg_dependence_p_1): Likewise.
10204 * config/mt/mt.c (insn_dependent_p_1): Likewise.
10205 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
10206 * config/sh/sh.c (flow_dependent_p_1): Likewise.
10207 * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
10208 * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
10209 * ddg.c (mark_mem_store): Likewise.
10210 * df-problems.c (df_urec_mark_reg_change): Likewise.
10211 * function.c (update_epilogue_consts): Likewise.
10212 * gcse.c (record_set_info, record_last_set_info,
10213 mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
10214 reg_clear_last_set): Likewise.
10215 * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
10216 Likewise.
10217 * jump.c (reversed_comparison_code_parts): Likewise.
10218 * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
10219 reg_is_set): Likewise.
10220 * loop-iv.c (mark_altered): Likewise.
10221 * mode-switching.c (reg_becomes_live): Likewise.
10222 * optabs.c (no_conflict_move_test): Likewise.
10223 * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
10224 Likewise.
10225 * postreload.c (reload_combine_note_store, move2add_note_store):
10226 Likewise.
10227 * regmove.c (flags_set_1): Likewise.
10228 * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
10229 Likewise.
10230 * reload1.c (mark_not_eliminable, forget_old_reloads_1):
10231 Likewise.
10232 * resource.c (update_live_status): Likewise.
10233 * rtl.h (set_of, note_stores): Likewise.
10234 * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
10235 note_stores, parms_set): Likewise.
10236 * sched-rgn.c (sets_likely_spilled_1): Likewise.
10237 * stack-ptr-mod.c (notice_stack_pointer_modification_1):
10238 Likewise.
10239 * var-tracking.c (count_stores, add_stores): Likewise.
10240
10241 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10242
10243 * alias.c (mems_in_disjoint_alias_sets_p,
10244 fixed_scalar_and_varying_struct_p, aliases_everything_p,
10245 nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
10246 write_dependence_p, mems_in_disjoint_alias_sets_p,
10247 read_dependence, true_dependence, canon_true_dependence,
10248 anti_dependence, output_dependence): Constify.
10249 * combine.c (extended_count): Likewise.
10250 * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
10251 * cselib.c (get_value_hash, references_value_p,
10252 cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
10253 * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
10254 * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
10255 * function.c (contains, prologue_epilogue_contains,
10256 sibcall_epilogue_contains): Likewise.
10257 * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
10258 pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
10259 only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
10260 reg_or_subregno): Likewise.
10261 * recog.c (asm_noperands): Likewise.
10262 * reload1.c (function_invariant_p): Likewise.
10263 * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
10264 rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
10265 condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
10266 simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
10267 true_regnum, reg_or_subregno, condjump_in_parallel_p,
10268 extended_count, prologue_epilogue_contains,
10269 sibcall_epilogue_contains, function_invariant_p, true_dependence,
10270 canon_true_dependence, read_dependence, anti_dependence,
10271 output_dependence): Likewise.
10272 * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
10273
10274 2007-07-30 Julian Brown <julian@codesourcery.com>
10275
10276 * config/arm/neon.md (V_ext): New mode attribute.
10277 (neon_vget_lane<mode>): Replace with define_expand.
10278 (neon_vget_lane<mode>_sext_internal)
10279 (neon_vget_lane<mode>_zext_internal): New define_insns for double
10280 and quad precision vectors.
10281 (neon_vget_lanedi): Add bounds check. Remove dead comment.
10282 * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
10283 have typeless 32-bit result.
10284
10285 2007-07-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
10286
10287 PR tree-opt/32527
10288 * tree-affine.h (aff_tree): The type of rest is sizetype for types
10289 of pointers.
10290 * tree-affine.c (aff_combination_scale): If type is a pointer type,
10291 use sizetype for rest.
10292 (aff_combination_add_elt): Likewise. Don't specialize pointer types.
10293 (aff_combination_convert): Don't convert rest for pointer types.
10294
10295 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
10296
10297 * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
10298
10299 * tree-ssa-alias.c: Add alloc-pool.h.
10300 (init_alias_info): Free alias_bitmap_obstack.
10301 (delete_alias_info): Call delete_mem_ref_stats.
10302 (get_mem_sym_stats_for): Use alloc_pool.
10303 (init_mem_ref_stats): Do not delete mem_ref_stats here.
10304 (delete_mem_sym_stats): Removed.
10305
10306 2007-07-29 Sebastian Pop <sebpop@gmail.com>
10307
10308 * tree-data-ref.c (add_multivariate_self_dist): Parametric access
10309 functions cannot be represented as classical distance vectors.
10310
10311 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10312
10313 * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
10314 * builtins.c (validate_arg, builtin_mathfn_code,
10315 validate_arglist): Likewise.
10316 * calls.c (call_expr_flags): Likewise.
10317 * combine.c (reg_nonzero_bits_for_combine,
10318 reg_num_sign_bit_copies_for_combine, get_last_value,
10319 reg_truncated_to_mode): Likewise.
10320 * emit-rtl.c (subreg_lowpart_p): Likewise.
10321 * expr.c (highest_pow2_factor_for_target,
10322 categorize_ctor_elements_1, categorize_ctor_elements,
10323 count_type_elements, contains_packed_reference,
10324 highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
10325 * fold-const.c (may_negate_without_overflow_p, int_const_binop,
10326 fold_convertible_p, operand_equal_p, tree_swap_operands_p,
10327 native_encode_int, native_encode_real, native_encode_complex,
10328 native_encode_vector, native_encode_expr, native_interpret_int,
10329 native_interpret_real, native_interpret_complex,
10330 native_interpret_vector, native_interpret_expr): Likewise.
10331 * function.c (use_register_for_decl): Likewise.
10332 * gimplify.c (get_name): Likewise.
10333 * langhooks-def.h (lhd_return_null_const_tree): New.
10334 (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
10335 * langhooks.c (lhd_return_null_const_tree): New.
10336 * langhooks.h (lang_get_callee_fndecl): Constify.
10337 * output.h (constructor_static_from_elts_p): Likewise.
10338 * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
10339 * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
10340 subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
10341 * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
10342 cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
10343 nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
10344 * rtlhooks-def.h (reg_nonzero_bits_general,
10345 reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
10346 Likewise.
10347 * rtlhooks.c (reg_num_sign_bit_copies_general,
10348 reg_nonzero_bits_general, reg_truncated_to_mode_general):
10349 Likewise.
10350 * stmt.c (warn_if_unused_value, is_body_block): Likewise.
10351 * stor-layout.c (mode_for_size_tree): Likewise.
10352 * tree-ssa-loop-im.c (memref_eq): Likewise.
10353 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
10354 * tree.c (contains_placeholder_p, type_list_equal,
10355 simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
10356 Likewise.
10357 * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
10358 mode_for_size_tree, categorize_ctor_elements, count_type_elements,
10359 contains_placeholder_p, contains_packed_reference,
10360 get_callee_fndecl, operand_equal_for_phi_arg_p,
10361 warn_if_unused_value, is_body_block, native_encode_expr,
10362 native_interpret_expr, fold_convertible_p, operand_equal_p,
10363 int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
10364 validate_arglist, simple_cst_equal, type_list_equal,
10365 use_register_for_decl, call_expr_flags, get_name,
10366 highest_pow2_factor): Likewise.
10367 (const_call_expr_arg_iterator_d,
10368 init_const_call_expr_arg_iterator, next_const_call_expr_arg,
10369 first_const_call_expr_arg, more_const_call_expr_args_p,
10370 FOR_EACH_CONST_CALL_EXPR_ARG): New.
10371 * varasm.c (constructor_static_from_elts_p): Constify.
10372
10373 2007-07-28 Kazu Hirata <kazu@codesourcery.com>
10374
10375 * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
10376 config/arm/neon-schedgen.ml, config/arm/neon.ml,
10377 config/arm/vec-common.md, config/ia64/div.md, cselib.c,
10378 df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
10379 regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
10380 tree-vect-transform.c, tree.def: Fix comment typos. Follow
10381 spelling conventions.
10382 * doc/invoke.texi: Follow spelling conventions.
10383
10384 2007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
10385 Revital Eres <eres@il.ibm.com>
10386
10387 * modulo-sched.c (sms_schedule): Avoid loops which includes
10388 auto-increment instructions.
10389
10390 2007-07-28 Richard Guenther <rguenther@suse.de>
10391
10392 PR middle-end/32920
10393 * fold-const.c (fold_cond_expr_with_comparison): Convert
10394 operand zero of MIN/MAX_EXPR to correct type.
10395
10396 2007-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10397
10398 * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
10399 flags_from_decl_or_type): Constify.
10400 * gcc.c (do_spec_1): Likewise.
10401 * print-tree.c (dump_addr, print_node_brief): Likewise.
10402 * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
10403 simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
10404 tree_purge_all_dead_eh_edges): Likewise.
10405 * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
10406 tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
10407 Likewise.
10408 * tree.c (expr_location, expr_has_location, expr_locus,
10409 expr_filename, expr_lineno, get_inner_array_type,
10410 fields_compatible_p): Likewise.
10411 * tree.h (get_inner_array_type, fields_compatible_p,
10412 expr_location, expr_has_location, expr_locus, expr_filename,
10413 expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
10414 setjmp_call_p, alloca_call_p): Likewise.
10415
10416 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
10417
10418 * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
10419 TV_FLOW_INSENSITIVE.
10420
10421 * tree-ssa-alias.c (compute_call_clobbered): Push/pop
10422 TV_CALL_CLOBBER.
10423 (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
10424 (compute_flow_insensitive_aliasing): Ditto for
10425 TV_FLOW_INSENSITIVE.
10426
10427 2007-07-27 Jan Hubicka <jh@suse.cz>
10428
10429 * config/i386/i386.c (register_move_cost): Remove accidentally
10430 comitted #if 0 block.
10431
10432 * attribs.c: Include hashtab.h
10433 (attribute_hash): New.
10434 (substring): New structure.
10435 (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
10436 New function.
10437 (init_attributes): Initialize attribute hash.
10438 (decl_attributes): Use attribute hash.
10439 * Makefile.in (attribs.c): Depend on hashtab.h.
10440
10441 2007-07-27 Steve Ellcey <sje@cup.hp.com>
10442
10443 * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
10444
10445 2007-07-27 Richard Sandiford <richard@codesourcery.com>
10446
10447 * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
10448 __mips_dspr2 and __mips_dsp_rev macros.
10449 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
10450
10451 2007-07-27 Douglas Gregor <doug.gregor@gmail.com>
10452
10453 * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
10454
10455 2007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
10456
10457 PR middle-end/32749
10458
10459 * df-problems.c (df_create_unused_note): Removed do_not_gen parm
10460 and the updating of the live and do_not_gen sets.
10461 (df_note_bb_compute): Added updating of live and do_not_gen sets
10462 for regular defs so that the case of clobber inside conditional
10463 call is processed correctly.
10464
10465 2007-07-27 Zdenek Dvorak <dvorakz@suse.cz>
10466
10467 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
10468 operands with compatible type.
10469
10470 2007-07-27 Richard Sandiford <richard@codesourcery.com>
10471
10472 * expr.h (store_bit_field): Don't return a value.
10473 * expmed.c (check_predicate_volatile_ok): New function.
10474 (store_bit_field_1): New function, extracted from store_bit_field.
10475 Take a fallback_p argument and return true if the operation succeeded.
10476 Only use store_fixed_bit_field if fallback_p. Don't recompute
10477 mode_for_extraction; use op_mode instead. Try forcing memories
10478 into registers if the insv expander fails.
10479 (store_bit_field): Use store_bit_field_1 with fallback_p true.
10480 Don't return a value.
10481 (convert_extracted_bit_field): New function, extracted from
10482 store_bit_field.
10483 (extract_bit_field_1): Likewise. Take a fallback_p argument
10484 and return NULL if the operation succeeded. Only use
10485 extract_fixed_bit_field if fallback_p. Only calculate one
10486 extraction mode. Combine code for extv and extzv. Try forcing
10487 memories into registers if the ext(z)v expander fails.
10488 (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
10489
10490 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
10491
10492 * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
10493 into bitfields.
10494 (df_ref): Likewise. Put regno with other integer fields.
10495
10496 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
10497
10498 * df.h (df_mw_hardreg): Remove "loc" field.
10499 * df-scan.c (df_ref_record): Don't set it. Remove redundant
10500 local variable.
10501 * df-problems.c (df_whole_mw_reg_unused_p): New function,
10502 split out from df_set_unused_notes_for_mw. Return false for
10503 partial references. Assert that mw_reg is a REG when returning true.
10504 (df_set_unused_notes_for_mw): Use it. Use mw_reg instead of *loc.
10505 (df_whole_mw_reg_dead_p): New function, split out from
10506 df_set_dead_notes_for_mw. Return false for partial references.
10507 Assert that mw_reg is a REG when returning true.
10508 (df_set_dead_notes_for_mw): Use it. Use mw_reg instead of *loc.
10509 Remove redundant bitmap check.
10510
10511 2007-07-26 H.J. Lu <hongjiu.lu@intel.com>
10512
10513 * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
10514 ($(T)crtend.o): Likwise.
10515 ($(T)crtbeginS.o): Likwise.
10516 ($(T)crtendS.o): Likwise.
10517 ($(T)crtfastmath.o): Likwise.
10518
10519 2007-07-26 Zdenek Dvorak <dvorakz@suse.cz>
10520
10521 * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
10522 * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
10523 * basic-block.h (struct control_flow_graph): Added x_dom_computed
10524 and x_n_bbs_in_dom_tree fields.
10525
10526 2007-07-26 Steve Ellcey <sje@cup.hp.com>
10527
10528 PR tree-optimization/32087
10529 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10530 Do not call scale_bbs_frequencies_int with prob of zero.
10531
10532 2007-07-26 Julian Brown <julian@codesourcery.com>
10533
10534 * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
10535 (neon_element_bits): Add prototypes.
10536 * config/arm/arm.c (bounds_check, neon_lane_bounds)
10537 (neon_const_bounds, neon_element_bits): New functions.
10538 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
10539 (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
10540 (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
10541 (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
10542 (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
10543 (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
10544 (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
10545 (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
10546 (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
10547 (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
10548 (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
10549 (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
10550 (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
10551
10552 2007-07-26 Nathan Froyd <froydnj@codesourcery.com>
10553
10554 * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
10555 (HAVE_AS_GNU_ATTRIBUTE): Undefine.
10556
10557 2007-07-26 Mark Shinwell <shinwell@codesourcery.com>
10558 Julian Brown <julian@codesourcery.com>
10559
10560 * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
10561 * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
10562 * config/arm/cortex-a8.md: New.
10563 * config/arm/cortex-a8-neon.md: New.
10564 * config/arm/neon-schedgen.ml: New.
10565 * config/arm/neon.md (vqh_mnem): New.
10566 (neon_type): New.
10567 (Is_float_mode): New.
10568 (Scalar_mul_8_16): New.
10569 (Is_d_reg): New.
10570 (V_mode_nunits): New.
10571 (All instruction patterns): Annotate with neon_type attribute
10572 values.
10573 * config/arm/arm.md: Include cortex-a8.md.
10574 (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
10575 values.
10576 Annotate instruction patterns accordingly.
10577 (generic_sched): Do not use generic scheduling for Cortex-A8.
10578 (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
10579
10580 2007-07-26 Daniel Jacobowitz <dan@codesourcery.com>
10581
10582 * fold-const.c (fold_read_from_constant_string): Use
10583 build_int_cst_type.
10584 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10585
10586 2007-07-26 Nick Clifton <nickc@redhat.com>
10587
10588 * tree-ssa-operands.h: Change copyright header to refer to version
10589 3 of the GNU General Public License and to point readers at the
10590 COPYING3 file and the FSF's license web page.
10591 * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
10592 sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
10593 tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
10594 targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
10595 tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
10596 hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
10597 flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
10598 opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
10599 gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
10600 cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
10601 rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
10602 optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
10603 tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
10604 genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
10605 reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
10606 c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
10607 rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
10608 tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
10609 diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
10610 gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
10611 input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
10612 gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
10613 cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
10614 graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
10615 genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
10616 tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
10617 reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
10618 real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
10619 omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
10620 tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
10621 regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
10622 tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
10623 scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
10624 double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
10625 dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
10626 gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
10627 hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
10628 ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
10629 c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
10630 tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
10631 xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
10632 tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
10633 gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
10634 mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
10635 alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
10636 dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
10637 expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
10638 genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
10639 timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
10640 tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
10641 recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
10642 dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
10643 matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
10644 tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
10645 lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
10646 ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
10647 ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
10648 langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
10649 sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
10650 gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
10651 ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
10652 init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
10653 loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
10654 mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
10655 opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
10656 insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
10657 tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
10658 dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
10659 bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
10660 coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
10661 stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
10662 cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
10663 tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
10664 loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
10665 lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
10666 tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
10667 tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
10668 ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
10669 varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
10670 sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
10671 target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
10672 omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
10673 intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
10674 sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
10675 genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
10676 tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
10677 bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
10678 cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
10679 cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
10680 tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
10681 c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
10682 fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
10683 vecprim.h, basic-block.h, tree-ssa-structalias.c,
10684 tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
10685 passes.c, genconstants.c, c-incpath.c, c-incpath.h,
10686 struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
10687 varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
10688 reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
10689 stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
10690 params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
10691 tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
10692 convert.c, convert.h, langhooks-def.h, reload1.c,
10693 tree-ssa-operands.c: Likewise.
10694
10695 2007-07-26 Jan Hubicka <jh@suse.cz>
10696
10697 * tree-ssa-live.c: Include debug.h and flags.h.
10698 (mark_scope_block_unused): New function.
10699 (remove_unused_scope_block_p): New function.
10700 (remove_unused_locals): Remove unused blocks too.
10701
10702 2007-07-25 Ian Lance Taylor <iant@google.com>
10703
10704 * combine.c (combine_max_regno): Remove. Remove all uses.
10705 (struct reg_stat_struct): Rename from struct reg_stat.
10706 (reg_stat_type): Define, and declare VECs.
10707 (reg_stat): Change from pointer to VEC. Change all uses.
10708 (combine_split_insns): New static function.
10709 (try_combine, find_split_point): Call it instead of split_insns.
10710
10711 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10712
10713 * cfghooks.c (split_block): Fix the information about loop latch.
10714
10715 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10716
10717 * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
10718
10719 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10720
10721 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
10722 Scan the new edge for loop exit info.
10723
10724 2007-07-25 Andreas Tobler <a.tobler@schweiz.org>
10725
10726 * config/darwin.c: Include debug.h.
10727
10728 2007-07-25 Steve Ellcey <sje@cup.hp.com>
10729
10730 PR target/32218
10731 * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
10732
10733 2007-07-25 Steve Ellcey <sje@cup.hp.com>
10734
10735 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
10736 (HARD_REGNO_MODE_OK): Ditto.
10737 (MODES_TIEABLE_P): Ditto.
10738 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
10739 (CLASS_MAX_NREGS): Ditto.
10740 * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
10741 * config/ia64/ia64.md (divsf3_internal_thr): Removed.
10742 (divdf3_internal_thr): Removed.
10743 * config/ia64/div.md: New file.
10744 * config/ia64/constraints.md: Add H constraint.
10745
10746 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10747
10748 * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
10749 sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
10750 sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
10751 sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
10752 sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
10753 sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
10754 sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
10755 sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
10756 sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
10757 dump_sbitmap_file, debug_sbitmap, popcount_table,
10758 sbitmap_popcount): Constify.
10759 * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
10760 (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
10761 dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
10762 sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
10763 sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
10764 sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
10765 sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
10766 sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
10767 sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
10768 sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
10769 sbitmap_popcount, sbitmap_verify_popcount): Constify.
10770
10771 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10772
10773 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
10774 bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
10775 bitmap_first_set_bit, bitmap_and, bitmap_and_into,
10776 bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
10777 bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
10778 bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
10779 bitmap_intersect_p, bitmap_intersect_compl_p,
10780 bitmap_ior_and_compl, bitmap_ior_and_compl_into,
10781 debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
10782 Constify.
10783 * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
10784 bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
10785 bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
10786 bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
10787 bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
10788 debug_bitmap, debug_bitmap_file, bitmap_print,
10789 bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
10790 bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
10791
10792 2007-07-25 Daniel Berlin <dberlin@dberlin.org>
10793
10794 * config/darwin.c (darwin_override_options): Additional fix for
10795 debug info formats that don't support var tracking.
10796
10797 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10798
10799 * cselib.c (entry_and_rtx_equal_p): Constify.
10800 * gengtype.c (output_mangled_typename, write_types, write_local):
10801 Likewise.
10802 * gengtype.h (const_type_p): New.
10803 * see.c (eq_descriptor_extension, hash_descriptor_extension):
10804 Constify.
10805 * tlink.c (scan_linker_output): De-constify.
10806 * tree-ssa-loop-im.c (memref_eq): Constify.
10807 * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
10808 (shared_bitmap_hash, shared_bitmap_eq): Constify.
10809
10810 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10811
10812 * c-common.c (fname_as_string, c_type_hash): Constify.
10813 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
10814 * cgraph.c (edge_hash, edge_eq): Likewise.
10815 * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
10816 * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
10817 reg_attrs_htab_eq): Likewise.
10818 * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
10819 Likewise.
10820 * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
10821 const_decl_t, const_state_t, const_automata_list_el_t): New.
10822 (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
10823 DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
10824 automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
10825 insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
10826 reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
10827 automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
10828 compare_max_occ_cycle_nums, out_state_arcs_num,
10829 compare_transition_els_num, units_cmp, state_reservs_cmp):
10830 Constify.
10831 * genmodes.c (cmp_modes): Likewise.
10832 * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
10833 * gimplify.c (compare_case_labels): Likewise.
10834 * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
10835 * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
10836 * matrix-reorg.c (mtt_info_hash): Likewise.
10837 * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
10838 * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
10839 (htab_hash_bucket, htab_hash_elem): Constify.
10840 * tree-browser.c (TB_parent_eq): Likewise.
10841 * tree-scalar-evolution.c (hash_scev_info): Likewise.
10842 * tree-ssa-alias.c (sort_tags_by_id): Likewise.
10843 * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
10844 (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
10845 Constify.
10846 * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
10847 * tree-ssa-pre.c (const_expr_pred_trans_t): New.
10848 (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
10849 * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
10850 const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
10851 New.
10852 (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
10853 vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
10854 vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
10855 * tree-ssa-threadupdate.c (redirection_data_hash,
10856 redirection_data_eq): Likewise.
10857 * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
10858 * tree-ssa.c (var_ann_eq): Likewise.
10859 * tree-vrp.c (compare_case_labels): Likewise.
10860 * tree.c (int_cst_hash_hash, int_cst_hash_eq,
10861 tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
10862 tree_not_check_failed, tree_class_check_failed,
10863 tree_range_check_failed, tree_not_class_check_failed,
10864 omp_clause_check_failed, omp_clause_range_check_failed,
10865 tree_contains_struct_check_failed, tree_operand_check_failed):
10866 Likewise.
10867 * tree.h (tree_contains_struct_check_failed, tree_check_failed,
10868 tree_not_check_failed, tree_class_check_failed,
10869 tree_range_check_failed, tree_not_class_check_failed,
10870 tree_operand_check_failed, omp_clause_operand_check_failed,
10871 tree_operand_length): Likewise.
10872 * var-tracking.c (const_variable): New.
10873 (variable_htab_hash, variable_htab_eq): Constify.
10874 * varasm.c (const_desc_hash): Likewise.
10875
10876 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10877
10878 * expr.c (handled_component_p): Constify.
10879 * fold-const.c (fit_double_type): Likewise.
10880 * real.h (real_value_from_int_cst): Likewise.
10881 * tree-flow-inline.h (gimple_in_ssa_p,
10882 gimple_aliases_computed_p, gimple_addressable_vars,
10883 gimple_call_clobbered_vars, gimple_referenced_vars,
10884 gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
10885 end_htab_p, end_referenced_vars_p, var_ann, function_ann,
10886 may_aliases, end_readonly_imm_use_p, has_zero_uses,
10887 has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
10888 is_label_stmt, is_global_var, phi_ssa_name_p,
10889 factoring_name_p, is_call_clobbered, tree_common_ann,
10890 op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
10891 unmodifiable_var_p, array_ref_contains_indirect_ref,
10892 ref_contains_array_ref, lookup_subvars_for_var,
10893 var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
10894 gimple_mem_ref_stats): Likewise.
10895 * tree-flow.h (tree_common_ann, var_ann, function_ann,
10896 may_aliases, is_exec_stmt, is_label_stmt,
10897 ref_contains_array_ref, array_ref_contains_indirect_ref,
10898 var_can_have_subvars, overlap_subvar, is_call_clobbered,
10899 unmodifiable_var_p): Likewise.
10900 * tree-gimple.c (is_gimple_min_invariant): Likewise.
10901 * tree-gimple.h (is_gimple_min_invariant): Likewise.
10902 * tree.c (type_hash_list, attribute_hash_list, tree_size,
10903 cst_and_fits_in_hwi, real_value_from_int_cst,
10904 build_real_from_int_cst, integer_zerop, integer_onep,
10905 integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
10906 tree_floor_log2, real_zerop, real_onep, real_twop,
10907 real_minus_onep, really_constant_p, purpose_member, chain_member,
10908 list_length, fields_length, int_size_in_bytes, bit_position,
10909 int_bit_position, byte_position, int_byte_position, expr_align,
10910 array_type_nelts, tree_node_structure,
10911 type_contains_placeholder_1, iterative_hash_pointer,
10912 is_attribute_with_length_p, is_attribute_p, check_qualified_type,
10913 tree_map_base_eq, type_hash_list, type_hash_eq,
10914 attribute_hash_list, type_num_arguments, tree_int_cst_equal,
10915 tree_int_cst_lt, tree_int_cst_compare, host_integerp,
10916 tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
10917 simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
10918 int_fits_type_p, get_containing_scope, decl_function_context,
10919 decl_type_context, omp_clause_operand_check_failed,
10920 initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
10921 * tree.h (omp_clause_operand_check_failed, tree_size,
10922 build_real_from_int_cst, array_type_nelts, purpose_member,
10923 tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
10924 host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
10925 is_attribute_p, check_qualified_type, expr_align,
10926 int_size_in_bytes, bit_position, int_bit_position, byte_position,
10927 int_byte_position, list_length, fields_length, initializer_zerop,
10928 integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
10929 integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
10930 tree_node_structure, handled_component_p, get_containing_scope,
10931 decl_function_context, decl_type_context, real_zerop,
10932 type_num_arguments, fit_double_type, really_constant_p,
10933 int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
10934 compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
10935 real_twop, real_minus_onep, int_cst_value): Likewise.
10936
10937 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10938
10939 * cfglayout.c (insn_scope, insn_line): Constify.
10940 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
10941 const_double_htab_hash, const_double_htab_eq,
10942 mem_attrs_htab_hash): Likewise.
10943 * loop-iv.c (biv_eq): Likewise.
10944 * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
10945 print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
10946 debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
10947 Likewise.
10948 * rtl-error.c (location_for_asm, diagnostic_for_asm,
10949 error_for_asm, warning_for_asm, _fatal_insn,
10950 _fatal_insn_not_found): Likewise.
10951 * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
10952 rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
10953 rtl_check_failed_type2, rtl_check_failed_code1,
10954 rtl_check_failed_code2, rtl_check_failed_code_mode,
10955 rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
10956 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
10957 rtl_check_failed_type2, rtl_check_failed_code1,
10958 rtl_check_failed_code2, rtl_check_failed_code_mode,
10959 rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
10960 SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
10961 shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
10962 get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
10963 mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
10964 rtx_unstable_p, get_integer_term, get_related_value,
10965 offset_within_block_p, reg_mentioned_p, count_occurrences,
10966 reg_referenced_p, reg_used_between_p, no_labels_between_p,
10967 single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
10968 reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
10969 find_reg_note, find_regno_note, find_reg_equal_equiv_note,
10970 find_constant_src, find_reg_fusage, find_regno_fusage,
10971 pure_call_p, remove_note, side_effects_p, volatile_refs_p,
10972 volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
10973 may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
10974 computed_jump_p, auto_inc_p, in_expr_list_p,
10975 remove_node_from_expr_list, loc_mentioned_in_p,
10976 label_is_jump_target_p, reversed_comparison_code_parts,
10977 debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
10978 print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
10979 print_inline_rtx): Likewise.
10980 * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
10981 computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
10982 rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
10983 get_integer_term, get_related_value, offset_within_block_p,
10984 count_occurrences, reg_mentioned_p, no_labels_between_p,
10985 reg_used_between_p, reg_referenced_p, single_set_2,
10986 multiple_sets, set_noop_p, refers_to_regno_p,
10987 reg_overlap_mentioned_p, dead_or_set_p,
10988 covers_regno_no_parallel_p, covers_regno_p,
10989 dead_or_set_regno_p, find_reg_note, find_regno_note,
10990 find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
10991 find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
10992 remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
10993 side_effects_p, may_trap_p_1, may_trap_p,
10994 may_trap_after_code_motion_p, may_trap_or_fault_p,
10995 inequality_comparisons_p, tablejump_p, computed_jump_p_1,
10996 computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
10997 subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
10998 * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
10999 mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
11000 Likewise.
11001 * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
11002 warning_for_asm): Likewise.
11003 * tree.h (print_rtl): Likewise.
11004 * varasm.c (get_pool_mode): Likewise.
11005
11006 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11007
11008 * c-lex.c (c_lex_with_flags, lex_string): Constify.
11009 * c-ppoutput.c (print_line, pp_dir_change): Likewise.
11010 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
11011 * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
11012 * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
11013 * ddg.c (compare_sccs): Likewise.
11014 * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
11015 * dfp.c (decimal_real_from_string, decimal_to_decnumber,
11016 decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
11017 decimal_do_fix_trunc, decimal_real_to_integer,
11018 decimal_real_to_integer2, decimal_real_maxval): Likewise.
11019 * dse.c (const_group_info_t): New.
11020 (invariant_group_base_eq, invariant_group_base_hash): Constify.
11021 * dwarf2out.c (const_dw_die_ref): New.
11022 (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
11023 * tree-browser.c (TB_parent_eq): Likewise.
11024 * unwind-dw2-fde.c (__register_frame_info_bases,
11025 __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
11026 add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
11027 Likewise.
11028 * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
11029 * unwind-dw2.c (uw_frame_state_for): Likewise.
11030 * value-prof.c (histogram_hash, histogram_eq): Likewise.
11031 * value-prof.h (const_histogram_value): New.
11032
11033 2007-07-25 Richard Sandiford <richard@codesourcery.com>
11034
11035 * config/mips/mips.c (machine_function): Add
11036 initialized_mips16_gp_pseudo_p.
11037 (mips16_gp_pseudo_reg): Do not emit the initialization of
11038 mips16_gp_pseudo_rtx when being called from the gimple cost-
11039 calculation routines; emit it on the first use outside those
11040 routines.
11041
11042 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11043
11044 * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
11045 New.
11046
11047 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11048 RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
11049 RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
11050 RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
11051 RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
11052 Preserve const-ness of parameters through use of __typeof(),
11053 also constify and tidy.
11054
11055 * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
11056 TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
11057 NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
11058 CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
11059 OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
11060 GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
11061 PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
11062 TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
11063 TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
11064
11065 2007-07-25 Julian Brown <julian@codesourcery.com>
11066 Mark Shinwell <shinwell@codesourcery.com>
11067
11068 * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
11069 (alpha_mangle_type): This.
11070 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11071 (TARGET_MANGLE_TYPE): Define this instead.
11072 * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
11073 * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
11074 (arm_init_neon_builtins): Fix comment.
11075 (arm_mangle_map_entry): New.
11076 (arm_mangle_map): New.
11077 (arm_mangle_type): New.
11078 * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
11079 (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
11080 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
11081 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11082 (TARGET_MANGLE_TYPE): Define this instead.
11083 * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
11084 (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
11085 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
11086 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11087 (TARGET_MANGLE_TYPE): Define this instead.
11088 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
11089 to...
11090 (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
11091 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11092 (TARGET_MANGLE_TYPE): Define this instead.
11093 * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
11094 (s390_mangle_type): This.
11095 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11096 (TARGET_MANGLE_TYPE): Define this instead.
11097 * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
11098 (sparc_mangle_type): This.
11099 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
11100 (TARGET_MANGLE_TYPE): Define this instead.
11101 * cp/mangle.c (write_type): Call mangle_type target hook on all
11102 types before mangling. Use original type, not main variant, as
11103 argument.
11104 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
11105 (TARGET_MANGLE_TYPE): This.
11106 * target.h (gcc_target): Rename mangle_fundamental_type to
11107 mangle_type.
11108 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
11109 (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
11110
11111 2007-07-25 Julian Brown <julian@codesourcery.com>
11112 Paul Brook <paul@codesourcery.com>
11113 Joseph Myers <joseph@codesourcery.com>
11114 Mark Shinwell <shinwell@codesourcery.com>
11115
11116 * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
11117 * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
11118 (with_fpu): Allow --with-fpu=neon.
11119 * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
11120 * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
11121 * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
11122 * config/arm/arm-protos.h (neon_immediate_valid_for_move)
11123 (neon_immediate_valid_for_logic, neon_output_logic_immediate)
11124 (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
11125 (neon_emit_pair_result_insn, neon_disambiguate_copy)
11126 (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
11127 (output_move_neon): Add prototypes.
11128 * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
11129 (all_fpus): Add FPUTYPE_NEON.
11130 (fp_model_for_fpu): Add NEON field.
11131 (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
11132 (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
11133 in registers.
11134 (arm_legitimate_address_p): Don't support fancy addressing for NEON
11135 structure moves.
11136 (thumb2_legitimate_address_p): Likewise.
11137 (neon_valid_immediate): Recognize and prepare constants suitable for
11138 NEON instructions.
11139 (neon_immediate_valid_for_move): New function. Recognize and prepare
11140 immediates for NEON move instructions.
11141 (neon_immediate_valid_for_logic): New function. Recognize and
11142 prepare immediates for NEON logic instructions.
11143 (neon_output_logic_immediate): New function. Create asm string
11144 suitable for outputting immediate logic instructions.
11145 (neon_pairwise_reduce): New function. Implement reduction using
11146 pairwise operations.
11147 (neon_expand_vector_init): New function. Expand a (possibly
11148 non-constant) vector initialization.
11149 (neon_vector_mem_operand): New function. Memory operands supported
11150 for quad-word loads/stores to/from ARM or NEON registers. Don't
11151 allow base+offset addressing for core regs.
11152 (neon_struct_mem_operand): New function. Valid mems for NEON
11153 structure moves.
11154 (coproc_secondary_reload_class): Enable NEON registers to be loaded
11155 from neon_vector_mem_operand addresses without a secondary register.
11156 (add_minipool_forward_ref): Handle >8-byte minipool entries.
11157 (add_minipool_backward_ref): Likewise.
11158 (dump_minipool): Likewise.
11159 (push_minipool_fix): Likewise.
11160 (output_move_quad): New function. Output quad-word moves, loads and
11161 stores using ARM registers.
11162 (output_move_vfp): Add support for vectors in VFP (NEON) D
11163 registers.
11164 (output_move_neon): Output a NEON load/store to/from a quadword
11165 register.
11166 (arm_print_operand): Implement new codes:
11167 - 'c' for unadorned integers (without a # sign).
11168 - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
11169 mode.
11170 - 'e', 'f' for the low and high D parts of a NEON Q register.
11171 - 'q' outputs a NEON Q register.
11172 - 'h' outputs ranges of D registers for VLDM/VSTM etc.
11173 - 'T' prints NEON opcode features from a coded bitmask.
11174 - 'F' is similar to T, but signed/unsigned codes both print as
11175 'i'.
11176 - 't' is similar to T, but 'u' is printed instead of 'p'.
11177 - 'O' prints 'r' if NEON instruction should perform rounding (as
11178 specified by bitmask), else prints nothing.
11179 - '#' is a punctuation character to stop operand numbers from
11180 running together with following digits in the assembler
11181 strings for instructions (when using mode attributes).
11182 (arm_assemble_integer): Handle extra NEON vector modes. Permute
11183 constant vectors in big-endian mode, where necessary.
11184 (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
11185 Handle EI, OI, CI, XI modes.
11186 (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
11187 (ashrv2si3): Rename IWMMXT2_BUILTINs to...
11188 (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
11189 (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
11190 (neon_builtin_type_bits): Add enumeration, one bit for each vector
11191 type.
11192 (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
11193 (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
11194 to turn v8qi, etc. into bits defined above.
11195 (neon_itype): New enumeration. Classifications of NEON builtins.
11196 (neon_builtin_datum): Define struct. Contains information about
11197 a single builtin (with multiple modes).
11198 (CF): Define helper macro for...
11199 (VAR1...VAR10): Define builtins with a type, name and 1-10 different
11200 modes.
11201 (neon_builtin_data): New array. Define information about builtins
11202 for use during initialization/expansion.
11203 (arm_init_neon_builtins): New function.
11204 (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
11205 true.
11206 (neon_builtin_compare): New function.
11207 (locate_neon_builtin_icode): New function. Find an insn code for a
11208 builtin given a function code for that builtin. Also return type of
11209 builtin (NEON_BINOP, NEON_UNOP etc.).
11210 (builtin_arg): New enumeration. Types of arguments for builtins.
11211 (arm_expand_neon_args): New function. Expand a generic NEON builtin.
11212 Takes a variable argument list of builtin_arg types, terminated by
11213 NEON_ARG_STOP.
11214 (arm_expand_neon_builtin): New function. Expand a NEON builtin.
11215 (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
11216 (neon_emit_pair_result_insn): New function. Support returning pairs
11217 of vectors via a pointer.
11218 (neon_disambiguate_copy): New function. Set up operands for a
11219 multi-word copy such that registers do not get clobbered.
11220 (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
11221 ARM_BUILTIN_NEON_BASE.
11222 (arm_file_start): Set float-abi attribute for NEON.
11223 (arm_vector_mode_supported_p): Enable NEON vector modes.
11224 (arm_mangle_map_entry): New.
11225 (arm_mangle_map): New.
11226 (arm_mangle_vector_type): New.
11227 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
11228 when appropriate.
11229 (TARGET_NEON): New macro. Target supports NEON.
11230 (fputype): Add FPUTYPE_NEON.
11231 (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
11232 for vectorization based on command-line arg.
11233 (NEON_REGNO_OK_FOR_NREGS): Define.
11234 (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
11235 (VALID_NEON_STRUCT_MODE): Define.
11236 (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
11237 (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
11238 * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
11239 (consttable_16): Add pattern for outputting 16-byte minipool
11240 entries.
11241 (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
11242 vec-common.md).
11243 (vec-common.md, neon.md): Include md files.
11244 * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
11245 * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
11246 (memory_constraint "Ut", "Un", "Us"): Define.
11247 * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
11248 (MMX_char): New mode attribute.
11249 (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
11250 (*add<mode>3_iwmmxt): New insn pattern.
11251 (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
11252 (*sub<mode>3_iwmmxt): New insn pattern.
11253 (mulv4hi3): Rename to...
11254 (*mulv4hi3_iwmmxt): This.
11255 (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
11256 (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
11257 (uminv4hi3, uminv2si3): Remove. Replace with...
11258 (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
11259 (*umin<mode>3_iwmmxt): These.
11260 (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
11261 (ashr<mode>3_iwmmxt): This new pattern.
11262 (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
11263 (lshr<mode>3_iwmmxt): This new pattern.
11264 (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
11265 (ashl<mode>3_iwmmxt): This new pattern.
11266 * config/arm/neon-docgen.ml: New file. Generate documentation for
11267 intrinsics.
11268 * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
11269 * config/arm/arm_neon.h: New (autogenerated).
11270 * config/arm/neon-testgen.ml: New file. Generate NEON tests
11271 automatically.
11272 * config/arm/neon.md: New file. Define NEON instructions.
11273 * config/arm/neon.ml: New file. Abstract description of NEON
11274 instructions, used to generate arm_neon.h header, documentation and
11275 tests.
11276 * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
11277 * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
11278 support.
11279 * doc/extend.texi (ARM Built-in Functions): Rename and remove
11280 extraneous comma.
11281 (ARM NEON Intrinsics): New subsection.
11282 * doc/arm-neon-intrinsics.texi: New (autogenerated).
11283
11284 2007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
11285
11286 * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
11287 prototype.
11288
11289 2007-07-24 Jan Hubicka <jh@suse.cz>
11290
11291 * regclass.c (move_table): New type.
11292 (move_cost, may_move_in_cost, may_move_out_cost): Use it.
11293 (init_move_cost): Break out from ...
11294 (init_reg_sets_1): ... here; simplify computation of
11295 have_regs-of_mode and contains_reg_of_mode.
11296 (record_reg_classes): Unswitch internal loops.
11297 (copy_cost): Trigger lazy initialization of move cost
11298 (record_address_regs): Likewise.
11299
11300 2007-07-24 Daniel Berlin <dberlin@dberlin.org>
11301
11302 * config/darwin.c (darwin_override_options): Don't force on
11303 flag_var_tracking_uninit when no debug info is requested.
11304
11305 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
11306
11307 * cfgloop.c (init_loops_structure): New function.
11308 (flow_loops_find): Create root of the loop tree unconditionally.
11309
11310 2007-07-24 Daniel Jacobowitz <dan@codesourcery.com>
11311
11312 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
11313
11314 2007-07-24 Jan Hubicka <jh@suse.cz>
11315
11316 * caller-save.c: Include ggc.h, gt-caller-save.h
11317 (reg_save_code, reg_restore_code): Rename to ...
11318 (cached_reg_save_code, cached_reg_restore_code): ... those.
11319 (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
11320 (reg_save_code, reg_restore_code): New functions.
11321 (init_caller_save): Do not intialize
11322 reg_save_code/reg_restore_code tables.
11323 * Makefile.in: (gt-caller-save.h): New.
11324
11325 2007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
11326
11327 * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
11328 with the mode of the original operand instead of
11329 integer_one_node.
11330
11331 2007-07-23 Jan Hubicka <jH@suse.cz>
11332
11333 * i386.c (ix86_secondary_memory_needed): Break out to...
11334 (inline_secondary_memory_needed): ... here.
11335 (ix86_memory_move_cost): Break out to ...
11336 (inline_memory_move_cost): ... here; add support for IN value of 2 for
11337 maximum of input and output; fix handling of Q_REGS on 64bit.
11338 (ix86_secondary_memory_needed): Microoptimize.
11339
11340 2007-07-23 Sebastian Pop <sebpop@gmail.com>
11341
11342 * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
11343 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
11344 stmts_from_loop, known_dependences_p, build_rdg): New.
11345 * tree-data-ref.h: Depends on graphds.h.
11346 (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
11347 (build_rdg): Declared.
11348 * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
11349
11350 2007-07-23 Daniel Berlin <dberlin@dberlin.org>
11351
11352 * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
11353 ccp_min_invariant.
11354
11355 2007-07-23 Peter Bergner <bergner@vnet.ibm.com>
11356 Jakub Jelinek <jakub@redhat.com>
11357
11358 PR middle-end/PR28690
11359 * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
11360 EQ compares.
11361 * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
11362 and MEM_POINTER operands over REG and MEM operands.
11363 (swap_commutative_operands_p): Change return value to bool.
11364 * rtl.h: Update the corresponding prototype.
11365 * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
11366 instead of gen_rtx_PLUS.
11367 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
11368 value to bool. Change function arguments to rtx's and update code
11369 to match.
11370 (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
11371 calls to match the new declaration.
11372 * simplify-rtx.c (simplify_associative_operation): Don't
11373 reorder simplify_binary_operation arguments.
11374
11375 2007-07-23 Richard Sandiford <richard@codesourcery.com>
11376
11377 * config/mips/mips.c (override_options): Use mips_costs to derive
11378 the default branch cost.
11379 * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
11380 than mips_costs.
11381 * config/mips/mips.opt (mbranch-cost=): New option.
11382 * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
11383
11384 2007-07-23 Richard Sandiford <richard@codesourcery.com>
11385
11386 * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
11387 (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
11388 * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
11389 instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
11390
11391 2007-07-23 Richard Sandiford <richard@codesourcery.com>
11392
11393 * config/mips/constraints.md (ks): New constraint.
11394 * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
11395 (*add<mode>3_mips16): ...here.
11396
11397 2007-07-21 Uros Bizjak <ubizjak@gmail.com>
11398
11399 * optabs.h (enum optab_index): Add new OTI_signbit.
11400 (signbit_optab): Define corresponding macro.
11401 (enum insn_code signbit_optab[]): Remove array.
11402 * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
11403 (expand_copysign_absneg): If back end provides signbit insn, use it
11404 instead of bit operations on floating point argument.
11405 * builtins.c (enum insn_code signbit_optab[]): Remove array.
11406 (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
11407 for availability of signbit insn.
11408
11409 * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
11410 signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
11411 SSE mode is not active.
11412 (isinf<mode>2): Disable for mfpmath=sse,387.
11413
11414 2007-07-22 Ben Elliston <bje@au.ibm.com>
11415
11416 * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
11417 `class' parameter.
11418 * struct-equiv.c (note_local_live): Likewise for `y_regno'.
11419
11420 2007-07-20 Richard Guenther <rguenther@suse.de>
11421
11422 * tree-cfg.c (verify_expr): COND_EXPRs can have any
11423 integral typed condition.
11424 * tree-ssa.c (useless_type_conversion_p): Do not preserve
11425 booleanness. Only preserve conversions from a non-base
11426 type to a base type, not in general between types with
11427 different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
11428 * tree.def (COND_EXPR): Document that the condition
11429 can be of any integral type.
11430
11431 2007-07-20 Nigel Stephens <nigel@mips.com>
11432 Richard Sandiford <richard@codesourcery.com>
11433
11434 * config/mips/mips.h (mips_dwarf_regno): Declare.
11435 (DBX_REGISTER_NUMBER): Remove redundant brackets.
11436 (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
11437 (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
11438 (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
11439 (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
11440 (REG_CLASS_NAMES): Update accordingly.
11441 * config/mips/mips.c (mips_dwarf_regno): New array.
11442 (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
11443 (mips_subword): Remove special handling for accumulator registers.
11444 (override_options): Initiailize mips_dwarf_regno. Remove use
11445 of ACC_HI_REG_P.
11446 (mips_swap_registers): New function.
11447 (mips_conditional_register_usage): Swap accumulator registers
11448 around if TARGET_LITTLE_ENDIAN.
11449 (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
11450 * config/mips/constraints.md (h, l): Use the endianness to choose
11451 between MD0_REG and MD1_REG.
11452 * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
11453 alternative-dependent template.
11454
11455 2007-07-20 Richard Sandiford <richard@codesourcery.com>
11456
11457 * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
11458 no_new_pseudos.
11459
11460 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
11461
11462 * function.c (thread_prologue_and_epilogue_insns): Fix exit
11463 predecessor fallthru flags.
11464
11465 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
11466
11467 * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
11468 of compare to the same type.
11469 * cfgloopmanip.c (add_loop): Update information about loop exits.
11470 (loop_version): Remove the innermost loop requirement.
11471 * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
11472 to sizetype for pointers.
11473
11474 2007-07-18 H.J. Lu <hongjiu.lu@intel.com>
11475
11476 * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
11477 (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
11478 (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
11479
11480 * config/dfp-bit.c: Empty for TFmode conversions.
11481
11482 2007-07-18 Caroline Tice <ctice@apple.com>
11483
11484 * var-tracking.c (find_src_status): Check for COND_EXEC insns
11485 and handle them correctly; check that src is not NULL before
11486 trying to use it.
11487 (find_src_set_src): Likewise.
11488
11489 2007-07-18 Bob Wilson <bob.wilson@acm.org>
11490
11491 * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
11492 (struct alignment_context, init_alignment_context): New.
11493 (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
11494 * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
11495 (XCHAL_HAVE_S32C1I): Likewise.
11496 (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
11497 * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
11498 (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
11499 (ATOMIC, HQI): New macros.
11500 (memory_barrier, *memory_barrier): New.
11501 (sync_lock_releasesi): New.
11502 (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
11503 (sync_lock_test_and_set<mode>): New.
11504 (sync_<atomic><mode>): New.
11505 (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
11506 * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
11507 (xtensa_expand_atomic): New.
11508
11509 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11510
11511 PR target/30652
11512
11513 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
11514 transformation for builtin ISNORMAL.
11515 (expand_builtin): Handle BUILT_IN_ISNORMAL.
11516 * builtins.def (BUILT_IN_ISNORMAL): New.
11517 * doc/extend.texi: Document isnormal.
11518
11519 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11520
11521 PR target/30652
11522
11523 * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
11524 optabs infrastructure. Provide generic implementation for
11525 FINITE/ISFINITE.
11526 (expand_builtin): Handle FINITE/ISFINITE.
11527 (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
11528 (fold_builtin_1): Likewise.
11529
11530 * builtins.def (BUILT_IN_ISFINITE): New.
11531
11532 * doc/extend.texi: Document isfinite.
11533
11534 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11535
11536 PR target/30652
11537 PR middle-end/20558
11538
11539 * builtins.c (expand_builtin_interclass_mathfn): Provide a
11540 generic fallback for isinf.
11541 * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
11542 calculation code ...
11543 * real.c (get_max_float): ... to here.
11544 * real.h (get_max_float): New.
11545
11546 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11547
11548 PR middle-end/32668
11549
11550 * builtin-attrs.def (ATTR_TYPEGENERIC,
11551 ATTR_CONST_NOTHROW_TYPEGENERIC): New.
11552
11553 * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
11554 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
11555 BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
11556 BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
11557
11558 * c-common.c (handle_type_generic_attribute): New.
11559 (c_common_attribute_table): Add "type generic".
11560
11561 * c-typeck.c (convert_arguments): Handle "type generic" functions.
11562
11563 2007-07-18 Daniel Berlin <dberlin@dberlin.org>
11564
11565 * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
11566 * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
11567 properly.
11568
11569 2007-07-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
11570
11571 PR target/32808
11572 * config/cris/cris.c (cris_print_index): Don't use XEXP before
11573 checking that the operand is an expression.
11574
11575 2007-07-19 Christoph von Wittich <Christoph_vW@reactos.org>
11576 Danny Smith <dannysmith@users.sourceforge.net>
11577
11578 PR/other 30335
11579 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
11580 file mapping object in local namespace if Windows version later
11581 than NT4
11582
11583 2007-07-18 Richard Sandiford <richard@codesourcery.com>
11584
11585 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
11586 * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
11587 arm_cannot_force_const_mem.
11588 (arm_cannot_force_const_mem): New function.
11589 * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
11590 (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
11591 of arm_tls_referenced_p.
11592 * config/arm/arm.md (movsi): Split out-of-section constants when
11593 ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
11594 * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
11595
11596 2007-07-18 Richard Sandiford <richard@codesourcery.com>
11597
11598 * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
11599
11600 2007-07-18 Richard Sandiford <richard@codesourcery.com>
11601
11602 * config/mips/mips.md (*extendqihi2): Convert the destination
11603 to SImode.
11604
11605 2007-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11606
11607 * config/pa/fptr.c: Update license header.
11608 * config/pa/milli64.S: Likewise.
11609
11610 2007-07-17 Nick Clifton <nickc@redhat.com>
11611
11612 * COPYING_v3: New file. Contains version 3 of the GNU General
11613 Public License.
11614 * COPYING.LIB_v3: New file. Contains version 3 of the GNU
11615 Lesser General Public License.
11616 * doc/include/gpl_v3.texi: New file. Contains version 3 of
11617 the GNU General Public License.
11618
11619 2007-07-17 Zdenek Dvorak <dvorakz@suse.cz>
11620
11621 PR rtl-optimization/32773
11622 * cfglayout.c (force_one_exit_fallthru): New function.
11623 (cfg_layout_finalize): Use it.
11624
11625 2007-07-16 Richard Guenther <rguenther@suse.de>
11626 Uros Bizjak <ubizjak@gmail.com>
11627
11628 * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
11629 before forcing it to gimple operand.
11630
11631 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
11632 David Ung <davidu@mips.com>
11633
11634 * config/mips/mips.h (TUNE_24K): Define.
11635 (TUNE_MACC_CHAINS): Add TUNE_24K.
11636 * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
11637 imadd.
11638 * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
11639 (r74k_int_madd): .. this new reservation.
11640 (define_bypass): Fixed bypasses for r74k_int_madd to use
11641 mips_linked_madd_p.
11642 * config/mips/24k.md (define_bypass): Define new
11643 r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
11644
11645 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
11646 Nigel Stephens <nigel@mips.com>
11647
11648 * config/mips/mips.md: Include 20kc.md.
11649 * config/mips/20kc.md: New file.
11650 * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
11651 (mips_adjust_cost): Tweak for 20Kc.
11652 (mips_issue_rate): Likewise.
11653 * config/mips/mips.h (TUNE_20KC): Define.
11654
11655 2007-07-16 David Edelsohn <edelsohn@gnu.og>
11656
11657 * config/rs6000/rs6000.c (struct processor_cost): Add
11658 cache_line_size, l1_cache_lines, and simultaneous_prefetches
11659 fields.
11660 (*_cost): Add cache information.
11661 (rs6000_override_options): Set cache parameters.
11662
11663 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11664
11665 PR bootstrap/3456
11666 * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
11667 * doc/install.texi (mips-sgi-irix6): pthread support works now.
11668
11669 2007-07-16 Paul Brook <paul@codesourcery.com>
11670
11671 PR target/32753
11672 * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
11673 (cirrus_thumb2_movsi_insn): Ditto.
11674
11675 2007-07-15 Geoffrey Keating <geoffk@apple.com>
11676
11677 * config/rs6000/darwin-fallback.c (interpret_libc): Change
11678 CR2_REGNO to R_CR2.
11679
11680 2007-07-15 Andrew Haley <aph@redhat.com>
11681
11682 * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
11683 before looking in the context.
11684
11685 2007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11686
11687 PR middle-end/32398
11688 PR middle-end/32769
11689 * pa-protos.h (pa_eh_return_handler_rtx): Declare.
11690 * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
11691 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11692 (pa_output_function_prologue): Use rp_saved and
11693 current_function_is_leaf to generate .CALLINFO statement.
11694 (hppa_expand_prologue): Set rp_saved.
11695 (hppa_expand_epilogue): Use rp_saved.
11696 (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
11697 * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
11698
11699 2007-07-14 Dirk Mueller <dmueller@suse.de>
11700
11701 * omega.c (coalesce): Fix memory leak on early exit.
11702 * matrix-reorg.c (check_allocation_function): Likewise.
11703 * tree-vect-transform.c (vect_get_new_vect_var): free result
11704 of concat().
11705 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11706 pass pointer to edge vector
11707 (partition_hot_cold_basic_blocks): Fix memory leak.
11708 * collect2.c (prefix_from_string): Free temporary storage.
11709 * reload1.c (fixup_abnormal_edges): Free sbitmap.
11710
11711 2007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
11712
11713 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
11714 (DO_GLOBAL_DTORS_BODY): Likewise.
11715
11716 2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
11717 Nigel Stephens <nigel@mips.com>
11718
11719 * config/mips/mips.c (mips_classify_symbol): Don't return
11720 SYMBOL_SMALL_DATA for constant pool addresses if
11721 TARGET_EMBEDDED_DATA is true.
11722
11723 2007-07-14 Uros Bizjak <ubizjak@gmail.com>
11724
11725 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
11726 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
11727 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
11728 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
11729 __builtin_ia32_storehps, __builtin_ia32_storelps,
11730 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
11731 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
11732 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
11733 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
11734 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
11735 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
11736 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
11737 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
11738 using def_builtin_const.
11739
11740 2007-07-14 Eric Botcazou <ebotcazou@adacore.com>
11741
11742 PR tree-optimization/32705
11743 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
11744 (simplify_binary_expression): Use SSA_VAL consistently.
11745
11746 2007-07-13 David Edelsohn <edelsohn@gnu.org>
11747
11748 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
11749 (SPEFSCR_REGNO): Delete definition.
11750 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
11751 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11752 * config/rs6000/rs6000.h: Do not define *_REGNO.
11753 LINK_REGISTER_REGNUM -> LR_REGNO.
11754 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11755 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
11756 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11757 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
11758 R_VRSAVE, R_VSCR. Use them.
11759 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
11760 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
11761 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
11762 * config/rs6000/aix.h: Define R_LR. Use it.
11763
11764 2007-07-13 Caroline Tice <ctice@apple.com>
11765
11766 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
11767 flag_var_tracking is explicitly turned off (i.e. when variable
11768 tracking is not feasible); otherwise, turn flag_var_tracking on when
11769 flag_var_tracking_uninit is on.
11770 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
11771 note definitions, to allow recording of initialization status in the
11772 notes.
11773 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
11774 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
11775 determine if two note locations are equal.
11776 (output_loc_list): Don't output list entries whose start & end labels
11777 are the same.
11778 (reg_loc_descriptor): Add parameter for initialization status; pass it
11779 to other loc descriptor functions.
11780 (one_reg_loc_descriptor): Add parameter for initialization status;
11781 check its value and add DW_OP_GNU_uninit to returned loc descr if
11782 appropriate.
11783 (multiple_reg_loc_descriptor): Add parameter for initialization
11784 status;
11785 pass init status argument to other loc descriptor functions; check
11786 value of intialization parameter and add DW_OP_GNU_uninit to returned
11787 loc descr if appropriate.
11788 (based_loc_descr): Add parameter for initialization status; add new
11789 variable for return value; check value of initialization parameter and
11790 add DW_OP_GNU_uninit to returned loc descr if appropriate.
11791 (concatn_mem_loc_descriptor): Add parameter for initialization status;
11792 pass init status argument to other loc descriptor functions; check
11793 value of intialization parameter and add DW_OP_GNU_uninit to returned
11794 loc descr if appropriate.
11795 (mem_loc_descriptor): Likewise.
11796 (concat_loc_descriptor): Likewise.
11797 (concatn_loc_descriptor): Likewise.
11798 (loc_descriptor): Add parameter for initialization status; pass it as
11799 argument to other loc descriptor function calls.
11800 (loc_descriptor_from_tree_1): Add appropriate initialization status
11801 to loc descriptor function calls.
11802 (add_location_or_const_value_attribute): Get initialization status
11803 from VAR_LOCATION note; add initialization status to loc descriptor
11804 function calls.
11805 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
11806 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
11807 status is uninitialized, add "[uninint]" to output.
11808 * common.opt (fvar-tracking-uninit): New option, similar to
11809 fvar-tracking, to turn on tracking of uninitialized variables; creates
11810 a new global flag, flag_var_tracking_uninit.
11811 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
11812 (enum var_init_status): New type, for var initialization status field.
11813 * var-tracking.c (struct location_chain_def): Two new fields, init,
11814 for initialization status, and set_src for the assignment value expr.
11815 (unshare_variable): New parameter for initialization status;
11816 initialize new init and set_src fields.
11817 (var_reg_set): New parameters for initialization status and value;
11818 pass them to set_variable_part.
11819 (var_mem_set): Likewise.
11820 (get_init_value): New function.
11821 (var_reg_delete_and_set): New initialization status & value
11822 parameters; add call to get_init_value if status is unknown; pass new
11823 parameters to clobber_variable_part and var_reg_set.
11824 (var_mem_delete_and_set): Likewise.
11825 (var_reg_delete): Pass null set_src value to clobber_variable_part.
11826 (var_mem_delete): Likewise.
11827 (variable_union): Pass status to unshare_variable; initialize new init
11828 and set_src fields. If flag_var_tracking_uninit is not set, force
11829 status to initialized.
11830 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
11831 used later to get the set_src value.
11832 (find_src_status): New function.
11833 (find_src_set_src): New function.
11834 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
11835 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
11836 MO_SET, get set_src value and pass it to var_reg_delete_and_set
11837 and var_mem_delete_and_set.
11838 (dump_variable): Print out "[uninit]" if appropriate.
11839 (set_variable_part): Add new initialization and set_src parameters;
11840 pass status to unshare_variable; set node->init and node- >set_src
11841 fields and modify slot in hash table appropriately; save the init and
11842 set_src values if appropriate and assign to the new node.
11843 (clobber_variable_part): New set_src parameter; if two nodes have
11844 same variable and same location but different set_src (assignment)
11845 values, clobber old node.
11846 (delete_variable_part): Pass init status to unshare_variable.
11847 (emit_note_insn_var_location): Add initialized var; assign var's init
11848 status to new 'initialized'; pass new init status field to calls to
11849 gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
11850 status to initialized.
11851 (emit_notes_in_bb): Pass initialization status to calls to
11852 var_reg_set, var_mem_set, var_reg_delete_and_set and
11853 var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
11854 var_reg_delete_and_set and var_mem_delete_and_set; call
11855 emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
11856 make up for change in add_stores.
11857 (vt_add_function_parameters): Add status to calls to
11858 set_variable_part.
11859 * config/darwin.c (darwin_override_options): Turn on uninitialized
11860 tracking automatically, if var_tracking is on and the system is
11861 10.5 or higher.
11862
11863 2007-07-13 Sa Liu <saliu@de.ibm.com>
11864
11865 * config.gcc: Add options for arch and tune on SPU.
11866 * config/spu/predicates.md: Add constant operands 0 and 1.
11867 * config/spu/spu-builtins.def: Add builtins for double precision
11868 floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt,
11869 si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
11870 spu_testsv.
11871 * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with
11872 a CELLEDP target.
11873 * config/spu/spu-protos.h: Add new function prototypes.
11874 * config/spu/spu.c (spu_override_options): Check options -march and
11875 -mtune.
11876 (spu_comp_icode): Add comparison code for DFmode and vector mode.
11877 (spu_emit_branch_or_set): Use the new code for DFmode and vector
11878 mode comparison.
11879 (spu_const_from_int): New. Create a vector constant from 4 ints.
11880 (get_vec_cmp_insn): New. Get insn index of vector compare instruction.
11881 (spu_emit_vector_compare): New. Emit vector compare.
11882 (spu_emit_vector_cond_expr): New. Emit vector conditional expression.
11883 * config/spu/spu.h: Add options -march and -mtune. Define processor
11884 types PROCESSOR_CELL and PROCESSOR_CELLEDP. Define macro
11885 CANONICALIZE_COMPARISON.
11886 * config/spu/spu.md: Add new insns for double precision compare
11887 and double precision vector compare. Add vcond and smax/smin patterns
11888 to enable DFmode vector conditional expression.
11889 * config/spu/spu.opt: Add options -march and -mtune.
11890 * config/spu/spu_internals.h: Add builtins for CELLEDP target:
11891 si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv. Add builtin for
11892 both CELL and CELLEDP targets: spu_testsv.
11893 * config/spu/spu_intrinsics.h: Add flag mnemonics for test special
11894 values.
11895
11896 2007-07-13 Richard Guenther <rguenther@suse.de>
11897
11898 PR tree-optimization/32721
11899 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
11900 TREE_THIS_VOLATILE on the folded reference.
11901 * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
11902 if the array reference has TREE_THIS_VOLATILE set.
11903
11904 2007-07-13 H.J. Lu <hongjiu.lu@intel.com>
11905
11906 PR other/32188
11907 * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
11908
11909 2007-07-13 Andreas Schwab <schwab@suse.de>
11910
11911 * gengtype-lex.l: Allow declarations to be indented.
11912
11913 2007-07-12 Geoffrey Keating <geoffk@apple.com>
11914
11915 * ginclude/tgmath.h: New.
11916 * config.gcc: Use GCC's tgmath.h on non-glibc systems.
11917 * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
11918 * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
11919 * configure: Regenerate.
11920
11921 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11922
11923 * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
11924 correct index when setting register save state for xd
11925 registers.
11926
11927 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11928
11929 * config/sh/sh.c (mark_use): Remove.
11930
11931 2007-07-12 Paul Brook <paul@codesourcery.com>
11932
11933 * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
11934 reg does not overlap return value.
11935
11936 2007-07-12 Daniel Berlin <dberlin@dberlin.org>
11937
11938 * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
11939 (set_expression_vuses): Ditto.
11940 (init_pre): Initialize expression_vuses.
11941
11942 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11943
11944 * config/i386/sse.md (storentdf, storentsf): New.
11945
11946 2007-07-12 Geoffrey Keating <geoffk@apple.com>
11947
11948 * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
11949 FUNCTION_DECL.
11950 * tree.c (build_decl_stat): Move code from here...
11951 (make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
11952 (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
11953 about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
11954 * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
11955 * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
11956 FUNCTION_BOUNDARY.
11957
11958 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
11959 Devang Patel <dpatel@apple.com>
11960
11961 PR tree-optimization/25413
11962 * targhooks.c (default_builtin_vector_alignment_reachable): New.
11963 * targhooks.h (default_builtin_vector_alignment_reachable): New.
11964 * tree.h (contains_packed_reference): New.
11965 * expr.c (contains_packed_reference): New.
11966 * tree-vect-analyze.c (vector_alignment_reachable_p): New.
11967 (vect_enhance_data_refs_alignment): Call
11968 vector_alignment_reachable_p.
11969 * target.h (vector_alignment_reachable): New builtin.
11970 * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
11971 * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
11972 (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
11973
11974 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
11975
11976 * target.h (builtin_vectorization_cost): Add new target builtin.
11977 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
11978 * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
11979 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
11980 * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
11981 uninitialized variables.
11982 * tree-vect-transform.c (cost_for_stmt): New function.
11983 (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
11984 using cost 1 for all scalar stmts. Be less conservative when
11985 estimating the number of prologue/epulogue iterations. Call
11986 targetm.vectorize.builtin_vectorization_cost. Return
11987 min_profitable_iters-1.
11988 (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
11989 initialization cost instead of TARG_VEC_STMT_COST. Use
11990 TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
11991 epilogue code. Fix epilogue cost computation.
11992 * config/spu/spu.c (spu_builtin_vectorization_cost): New.
11993 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
11994 * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
11995 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
11996 (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
11997 (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
11998
11999 2007-07-12 Richard Guenther <rguenther@suse.de>
12000
12001 * gimplify.c (gimplify_conversion): Make sure that the result
12002 from maybe_fold_offset_to_reference is trivially convertible
12003 to the desired type before doing the simplification.
12004 (gimplify_expr): Likewise.
12005 * fold-const.c (fold_binary): Use the correct types for
12006 building the simplified expression.
12007
12008 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
12009
12010 PR rtl-optimization/32729
12011 * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
12012 that fallthru to exit.
12013
12014 2007-07-12 Kaz Kojima <kkojima@gcc.gnu.org>
12015
12016 * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
12017 (symDTPOFF2reg): Likewise.
12018
12019 2007-07-11 Daniel Berlin <dberlin@dberlin.org>
12020
12021 PR tree-optimization/32663
12022
12023 * tree.h (VALUE_HANDLE_VUSES): Remove.
12024 (struct tree_value_handle): Remove vuses.
12025
12026 * tree-vn.c (create_value_handle_for_expr): Don't set
12027 VALUE_HANDLE_VUSES.
12028
12029 * tree-ssa-pre.c (expression_vuses): New.
12030 (alloc_expression_id): Set up expression_vuses.
12031 (get_expression_vuses): New.
12032 (set_expression_vuses): Ditto.
12033 (clear_expression_ids): Modify for expression_vuses.
12034 (phi_translate_1): Ditto.
12035 (phi_translate_set): Ditto.
12036 (value_dies_in_block_x): Ditto
12037 (valid_in_sets): Ditto.
12038 (add_to_sets): Ditto.
12039 (find_existing_value_expr): Ditto.
12040 (create_value_handle_for_expr): Ditto.
12041 (make_values_for_stmt): Ditto.
12042 (vuse_equiv): Remove.
12043
12044 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
12045
12046 * Makefile.in (mostlyclean): Remove object files.
12047
12048 2007-07-11 Kenneth Zadeck <zadeck@naturalbridge.com>
12049
12050 * toplev.c (no_new_pseudos): Deleted.
12051 * rtl.h (no_new_pseudos): Deleted.
12052 * tree-pass.h (pass_no_new_pseudos): Deleted.
12053 * passes.c (pass_no_new_pseudos): Deleted.
12054 * final.c (rest_of_clean_state): Removed no_new_pseudos.
12055 (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
12056 * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with
12057 reload_completed.
12058 * cfgcleanup.c (try_crossjump_to_edge): Ditto.
12059 * rtlhooks.c (gen_lowpart_general): Ditto.
12060 * optabs.c (prepare_operand): Ditto.
12061 * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
12062 no_new_pseudos.
12063 * modulo-sched.c (rest_of_handle_sms): Ditto.
12064 * see.c (rest_of_handle_see): Ditto.
12065 * ifcvt.c (if_convert): Ditto.
12066 (gate_handle_if_after_combine): Replaced no_new_pseudos with
12067 reload_completed.
12068 * init-regs.c (gate_initialize_regs): Deleted set of
12069 no_new_pseudos.
12070 * lower-subreg.c (decompose_multiword_subregs): Ditto.
12071 * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
12072 * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
12073
12074 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
12075
12076 PR target/32661
12077 * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
12078 (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
12079 (*vec_extractv2di_1_rex64): New insn pattern.
12080
12081 2007-07-11 David Daney <ddaney@avtrex.com>
12082
12083 * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
12084 return address calculation. Substitute DWARF_ALT_FRAME_RETURN_COLUMN
12085 for SIGNAL_UNWIND_RETURN_COLUMN.
12086 * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
12087 (DWARF_FRAME_REGNUM): Rewrite.
12088 (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
12089
12090 2007-07-11 Nick Clifton <nickc@redhat.com>
12091
12092 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
12093 delta and use gen_int_mode in place of GET_INT instead.
12094
12095 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
12096
12097 * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
12098 and letter field.
12099
12100 2007-07-11 Douglas Gregor <doug.gregor@gmail.com>
12101
12102 * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
12103 (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical
12104 types or not.
12105 * params.h (VERIFY_CANONICAL_TYPES): Remove.
12106 (USE_CANONICAL_TYPES): New.
12107 * doc/invoke.texi (verify-canonical-types): Remove.
12108 (use-canonical-types): Add.
12109
12110 2007-07-11 Ulrich Weigand <uweigand@de.ibm.com>
12111
12112 * config/spu/spu.c (spu_optimization_options): Remove setting of
12113 parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
12114 (spu_override_options): Move it here.
12115
12116 2007-07-11 Richard Sandiford <richard@codesourcery.com>
12117
12118 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
12119 * config/mips/mips.c (mips_cpu_info_table): Mention
12120 MIPS_ISA_LEVEL_SPEC in the comment.
12121
12122 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
12123
12124 PR tree-optimization/32713
12125 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
12126
12127 2007-07-11 Paolo Carlini <pcarlini@suse.de>
12128
12129 PR middle-end/30482
12130 * c-opts.c (c_common_post_options): Do not change flag_complex_method
12131 conditional to flag_isoc99.
12132 (c_common_init_options): Do it here, unconditionally.
12133
12134 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
12135
12136 PR tree-optimization/32589
12137 * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
12138 * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
12139 * tree-ssa-propagate.c (valid_gimple_expression_p): New
12140 predicate, extracted from...
12141 (set_rhs): ...here. Call it for the expression on entry.
12142 * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
12143 * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
12144 (simplify_binary_expression): Use valid_gimple_expression_p
12145 to validate the simplification.
12146 * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
12147
12148 2007-07-11 Danny Smith <dannysmith@users.sourceforge.net>
12149
12150 * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
12151 DWARF2_DEBUG on 32 bit target too.
12152 (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition.
12153
12154 2007-07-11 Nick Clifton <nickc@redhat.com>
12155
12156 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
12157 version for 64-bit hosts.
12158
12159 2007-07-10 David Daney <ddaney@avtrex.com>
12160
12161 * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
12162 predicate.
12163 (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of library
12164 call.
12165 * config/mips/mips.c (mips_expand_synci_loop): New function.
12166 * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
12167 (UNSPEC_RDHWR): Same.
12168 (UNSPEC_SYNCI): Same.
12169 (UNSPEC_SYNC): Same.
12170 (clear_cache): New expand.
12171 (sync): New insn.
12172 (synci): Same.
12173 (rdhwr): Same.
12174 (clear_hazard): Same.
12175 * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
12176 function.
12177 * testsuite/gcc.target/mips/clear-cache-1.c: New test.
12178 * testsuite/gcc.target/mips/clear-cache-2.c: New test.
12179
12180 2007-07-10 Ian Lance Taylor <iant@google.com>
12181
12182 * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
12183 no_new_pseudos.
12184
12185 2007-07-10 David Daney <ddaney@avtrex.com>
12186
12187 * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
12188 * builtins.c (expand_builtin___clear_cache): New function.
12189 (expand_builtin): Call expand_builtin___clear_cache for
12190 BUILT_IN_CLEAR_CACHE case.
12191 * doc/extend.texi (__builtin___clear_cache): Document new builtin.
12192 * doc/md.texi (clear_cache): Document new instruction pattern.
12193 * testsuite/gcc.dg/builtins-64.c: New test.
12194
12195 2007-07-11 Hans-Peter Nilsson <hp@axis.com>
12196
12197 * config/cris/cris.md ("movsi"): Fix typo in last change.
12198
12199 2007-07-09 Geoffrey Keating <geoffk@apple.com>
12200
12201 PR 32617
12202 * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
12203 FUNCTION_DECLs.
12204 (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
12205 * varasm.c (assemble_start_function): Honor DECL_ALIGN
12206 for FUNCTION_DECLs. Don't use align_functions_log if
12207 DECL_USER_ALIGN.
12208 * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
12209 even for FUNCTION_DECLs.
12210 * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
12211 FUNCTION_DECLs.
12212 * tree.h (DECL_ALIGN): Update for new location of 'align'.
12213 (DECL_FUNCTION_CODE): Update for new location and name of
12214 'function_code'.
12215 (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
12216 (struct tree_decl_common): Move 'align' and 'off_align' out
12217 of union, ensure they're still on a 32-bit boundary. Remove
12218 other fields in union 'u1'.
12219 (struct tree_function_decl): Add field 'function_code' replacing
12220 'u1.f' in tree_decl_common.
12221 * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
12222 * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
12223 (Variable Attributes): Cross-reference 'aligned' attribute
12224 to Function Attributes.
12225 * flags.h (force_align_functions_log): Delete.
12226 * toplev.c (force_align_functions_log): Delete.
12227
12228 2007-07-10 Uros Bizjak <ubizjak@gmail.com>
12229
12230 PR target/32708
12231 * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
12232 (*vec_concatv2di_rex): New insn pattern.
12233
12234 2007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12235
12236 PR target/32538
12237 * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
12238
12239 2007-07-10 Ian Lance Taylor <iant@google.com>
12240
12241 Replace no_new_pseudos in backends.
12242 * rtl.h (can_create_pseudo_p): Define.
12243 * config/darwin.c (machopic_indirect_data_reference): Use
12244 can_create_pseudo_p () instead of no_new_pseudos.
12245 (machopic_indirect_data_reference): Likewise.
12246 (machopic_legitimize_pic_address): Likewise.
12247 * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
12248 (alpha_emit_set_const_1): Likewise.
12249 (alpha_emit_set_const): Likewise.
12250 (alpha_emit_conditional_move): Likewise.
12251 (alpha_split_conditional_move): Likewise.
12252 * config/alpha/alpha.md (various splitters): Likewise.
12253 (movti): Likewise.
12254 * config/arm/arm.c (legitimize_pic_address): Likewise.
12255 (arm_load_pic_register): Likewise.
12256 * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
12257 (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
12258 * config/bfin/bfin.c (legitimize_pic_address): Likewise.
12259 * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
12260 * config/cris/cris.md (movsi): Likewise.
12261 * config/frv/frv.md (symGOT2reg_hilo): Likewise.
12262 (symGOTOFF2reg_hilo): Likewise.
12263 (symGPREL2reg, symGPREL2reg_hilo): Likewise.
12264 * config/h8300/h8300.md (insv, extzv): Likewise.
12265 * config/i386/i386.c (ix86_expand_move): Likewise.
12266 (ix86_expand_vector_move): Likewise.
12267 (ix86_prepare_fp_compare_args): Likewise.
12268 (ix86_expand_carry_flag_compare): Likewise.
12269 * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
12270 (tls_dynamic_gnu2_combine_32): Likewise.
12271 (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
12272 * config/ia64/ia64.c (ia64_expand_move): Likewise.
12273 (ia64_expand_movxf_movrf): Likewise.
12274 * config/m32c/m32c.c (m32c_prepare_move): Likewise.
12275 (m32c_split_move): Likewise.
12276 (m32c_expand_insv): Likewise.
12277 * config/m68k/m68k.md (movsi): Likewise.
12278 * config/mips/mips.c (mips_force_temporary): Likewise.
12279 (mips_split_symbol): Likewise.
12280 (mips_move_integer): Likewise.
12281 (mips_legitimize_const_move): Likewise.
12282 * config/mn10300/mn10300.md (movsi): Likewise.
12283 * config/pa/pa.c (emit_move_sequence): Likewise.
12284 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12285 (rs6000_got_register): Likewise.
12286 (create_TOC_reference): Likewise.
12287 (rs6000_machopic_legitimize_pic_address): Likewise.
12288 * config/rs6000/rs6000.md (add<mode>3): Likewise.
12289 (various splitters): Likewise.
12290 (iorsi3, xorsi3, iordi3, xordi3): Likewise.
12291 (movsi_got): Likewise.
12292 * config/s390/s390.c (emit_symbolic_move): Likewise.
12293 * config/s390/s390.md (movhi, movqi): Likewise.
12294 (load_multiple, store_multiple): Likewise.
12295 * config/score/score.c (score_force_temporary): Likewise.
12296 * config/sh/sh.c (prepare_move_operands): Likewise.
12297 (prepare_cbranch_operands): Likewise.
12298 (emit_fpu_switch): Likewise.
12299 (fpscr_set_from_mem): Likewise.
12300 * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
12301 (adddi3, subsi3): Likewise.
12302 (various splitters): Likewise.
12303 (divsi_inv_fp_combine): Likewise.
12304 (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
12305 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
12306 (sne): Likewise.
12307 * config/sh/predicates.md (xor_operand): Likewise.
12308 * config/sparc/sparc.c (legitimize_tls_address): Likewise.
12309 * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
12310 (movdi_pic_label_ref): Likewise.
12311 * config/spu/spu.c (spu_split_immediate): Likewise.
12312 * config/alpha/alpha.md (various splitters): Remove test
12313 !no_new_pseudos || reload_completed.
12314 * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
12315 no_new_pseudos.
12316 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12317 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12318 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12319 * config/score/score.c (th_output_mi_thunk): Likewise.
12320 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12321 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12322
12323 2007-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
12324
12325 PR rtl-optimization/32664
12326 * mode-switching.c (create_pre_exit): Skip barrier insns.
12327
12328 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
12329
12330 * tree-scalar-evolution.c (scev_const_prop): Add arguments to
12331 force_gimple_operand_bsi.
12332 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
12333 rewrite_use_compare): Ditto.
12334 * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
12335 Ditto.
12336 * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
12337 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
12338 * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
12339 * tree-profile.c (prepare_instrumented_value,
12340 tree_gen_interval_profiler, tree_gen_pow2_profiler,
12341 tree_gen_one_value_profiler, tree_gen_ic_profiler,
12342 tree_gen_ic_func_profiler, tree_gen_average_profiler,
12343 tree_gen_ior_profiler): Ditto.
12344 * tree-ssa-reassoc.c (negate_value): Ditto.
12345 * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
12346 Use force_gimple_operand_bsi.
12347 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
12348 * tree-if-conv.c (add_to_dst_predicate_list,
12349 find_phi_replacement_condition): Ditto.
12350 * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
12351 Call mark_symbols_for_renaming for new statements.
12352 * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
12353
12354 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
12355
12356 * cfghooks.c (remove_edge): New function.
12357 (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
12358 loop exit rescans.
12359 * cfghooks.h (remove_edge): Declare.
12360 * cfg.c (remove_edge): Renamed to remove_edge_raw.
12361 * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
12362
12363 2007-07-09 Wolfgang Gellerich <gellerich@de.ibm.com>
12364
12365 * optabs.h: Added declaration for signbit_optab.
12366 * optabs.c: (init_optabs): Added initialization for signbit_optab.
12367 * genoptinit.c (optabs): Added entry for signbit insns.
12368 * builtins.c (expand_builtin_signbit): Added code to use a signbit
12369 insn, if available.
12370 * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.
12371 * config/s390/s390.md (signbit<mode>2): New expander.
12372
12373 2007-07-09 Richard Guenther <rguenther@suse.de>
12374
12375 PR middle-end/32698
12376 * fold-const.c (fold_plusminus_mult_expr): Move constant
12377 arguments second to allow decomposing.
12378
12379 2007-07-09 Alexandre Oliva <aoliva@oliva.athome.lsd.ic.unicamp.br>
12380
12381 Revert:
12382 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
12383 PR debug/23551
12384 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12385 Disregard DECL_FROM_INLINE.
12386
12387 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
12388
12389 PR target/27855
12390 * doc/invoke.texi: Add ftree-reassoc flag.
12391 * common.opt (ftree-reassoc): New flag.
12392 * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
12393 (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
12394
12395 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
12396
12397 PR tree-optimization/32681
12398 * tree-if-conv.c (find_phi_replacement_condition): Use the condition
12399 saved in second_edge->aux when first_bb is a loop header.
12400
12401 2007-07-09 Jan HUbicka <jh@suse.cz>
12402
12403 * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
12404
12405 2007-07-09 Richard Guenther <rguenther@suse.de>
12406
12407 * c-decl.c (start_function): Do not promote return type.
12408
12409 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
12410
12411 * function.c (do_warn_unused_parameter): Do not warn if
12412 TREE_NO_WARNING is set.
12413
12414 2007-07-08 Andreas Schwab <schwab@suse.de>
12415
12416 * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
12417
12418 2007-07-08 Sandra Loosemore <sandra@codesourcery.com>
12419
12420 Revert this patch:
12421 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
12422
12423 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
12424 apply to assembly language, too.
12425 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
12426
12427 2007-07-07 Daniel Berlin <dberlin@dberlin.org>
12428
12429 Revert (note the sccvn portions are *not* reverted)
12430 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
12431
12432 Fix PR tree-optimization/23488
12433
12434 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
12435 handles.
12436 * tree-flow-inline.h (get_value_handle): Ditto.
12437 * tree-ssa-pre.c (decl_vh_map): New.
12438 (decl_node_pool): New.
12439 (can_value_number_operation): Support DECL_P.
12440 (can_PRE_operation): Ditto.
12441 (create_expression_by_pieces): Ditto.
12442 (find_existing_value_expr): Modify to differnetiate between
12443 addressing and top level.
12444 (create_value_handle_for_expr): Handle DECL's.
12445 (poolify_tree): Ditto.
12446 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
12447 (make_values_for_stmt): Handle DECL's properly.
12448 (init_pre): Reorg to not init useless things during FRE.
12449 (fini_pre): Ditto.
12450 * tree-flow.h: Include pointer-set.h.
12451 (decl_vh_map): Declare.
12452 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
12453
12454 2007-07-07 Eric Weddington <eweddington@cso.atmel.com>
12455
12456 * config/avr/constraints.md (define_memory_constraint "Q"): Fix
12457 the constraint description.
12458 * doc/md.texi: Update documentation of AVR constraints.
12459
12460 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
12461
12462 * auto-inc-dec.c, config/arm/arm.c,
12463 config/m32r/constraints.md, config/mips/mips.md,
12464 config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
12465 df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
12466 tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
12467 typos. Follow spelling conventions.
12468 * doc/invoke.texi, doc/rtl.texi: Fix typos.
12469
12470 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
12471 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
12472
12473 * tree-ssa-operands.c (realloc_vop, realloc_vdef,
12474 realloc_vuse): Remove.
12475 * tree-ssa-operands.h: Remove the prototype for realloc_vdef
12476 and realloc_vuse.
12477
12478 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
12479
12480 Fix PR tree-optimization/23488
12481
12482 * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
12483 (try_to_simplify): Ditto.
12484 (visit_use): Ditto.
12485 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
12486 handles.
12487 * tree-flow-inline.h (get_value_handle): Ditto.
12488 * tree-ssa-pre.c (decl_vh_map): New.
12489 (decl_node_pool): New.
12490 (can_value_number_operation): Support DECL_P.
12491 (can_PRE_operation): Ditto.
12492 (create_expression_by_pieces): Ditto.
12493 (find_existing_value_expr): Modify to differnetiate between
12494 addressing and top level.
12495 (create_value_handle_for_expr): Handle DECL's.
12496 (poolify_tree): Ditto.
12497 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
12498 (make_values_for_stmt): Handle DECL's properly.
12499 (init_pre): Reorg to not init useless things during FRE.
12500 (fini_pre): Ditto.
12501 * tree-flow.h: Include pointer-set.h.
12502 (decl_vh_map): Declare.
12503 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
12504
12505 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
12506
12507 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
12508 apply to assembly language, too.
12509 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
12510
12511 2007-07-06 Ian Lance Taylor <iant@google.com>
12512 Zack Weinberg <zackw@panix.com>
12513
12514 PR middle-end/32441
12515 * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
12516
12517 2007-07-06 Richard Sandiford <richard@codesourcery.com>
12518
12519 * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
12520 (prefetch): Likewise if "pref" would be used.
12521
12522 2007-07-06 Josh Conner <jconner@apple.com>
12523
12524 PR middle-end/32602
12525 PR middle-end/32603
12526 * calls.c (store_one_arg): Handle arguments which are partially
12527 on the stack when detecting argument overlap.
12528
12529 2007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
12530
12531 * reload1.c (choose_reload_regs): Set reload_spill_index for regs
12532 chosen during find_reloads.
12533
12534 2007-07-06 Richard Guenther <rguenther@suse.de>
12535
12536 * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
12537 TYPE_ARG_TYPES for verification of argument types. Use
12538 DECL_ARG_TYPE instead of the PARM_DECL type. Take excess
12539 parameters as variable arguments.
12540
12541 2007-07-06 Andreas Krebbel <krebbel1@de.ibm.com>
12542
12543 * libgcc2.h (word_type): Type definition removed.
12544 (cmp_return_type, shift_count_type): Type definitions added.
12545 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
12546 replaced with shift_count_type.
12547 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
12548 cmp_return_type.
12549 * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
12550 changed from word_type to Wtype.
12551 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
12552 replaced with shift_count_type.
12553 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
12554 cmp_return_type.
12555 * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
12556 and libgcc_shift_count attribute added.
12557 * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
12558 TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
12559 (TARGET_INITIALIZER): New target hooks added.
12560 * targhooks.c (default_libgcc_cmp_return_mode,
12561 default_libgcc_shift_count_mode): Default implementations for the new
12562 target hooks added.
12563 * targhooks.h (default_libgcc_cmp_return_mode,
12564 default_libgcc_shift_count_mode): Function prototypes added.
12565 * target.h (struct gcc_target): Fields for the new target hooks added.
12566 * optabs.c (expand_binop): Use shift_count_mode when expanding shift
12567 as library call.
12568 (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
12569 library call.
12570
12571 * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
12572 TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
12573
12574 * config/s390/s390.c (s390_libgcc_cmp_return_mode,
12575 s390_libgcc_shift_count_mode): Functions added.
12576 (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
12577 Target hooks defined.
12578
12579 2007-07-06 Richard Sandiford <richard@codesourcery.com>
12580
12581 * config/mips/mips.c (compute_frame_size): Restore the original
12582 gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
12583 fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
12584 Document why the difference is needed.
12585
12586 2007-07-06 Richard Guenther <rguenther@suse.de>
12587
12588 * c-common.c (boolean_increment): Use correctly typed
12589 constant.
12590
12591 2007-07-06 Richard Sandiford <richard@codesourcery.com>
12592
12593 * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
12594 the topmost argument register is not also included in the save mask.
12595 (mips16e_collect_argument_save_p): Take a pointer to the argument
12596 register, rather than a pointer to the number of arguments.
12597 (mips16e_collect_argument_saves): Only include argument saves
12598 that aren't in the register mask.
12599
12600 2007-07-06 Uros Bizjak <ubizjak@gmail.com>
12601
12602 PR rtl-optimization/32450
12603 * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
12604 to ensure that instructions are not moved into the prologue when
12605 profiling is on. Remove unused prologue_end variable.
12606 (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
12607 as a scheduling barrier.
12608
12609 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
12610
12611 PR debug/23551
12612 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12613 Disregard DECL_FROM_INLINE.
12614
12615 2007-07-05 Adam Nemet <anemet@caviumnetworks.com>
12616
12617 * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
12618 IORing with a constant.
12619
12620 2007-07-05 Seongbae Park <seongbae.park@gmail.com>
12621
12622 PR rtl-optimization/32475
12623 * df-scan.c (df_def_record_1): Add a use of the stack pointer
12624 for every definition of the stack pointer.
12625
12626 2007-07-05 Richard Earnshaw <rearnsha@arm.com>
12627
12628 * arm.c (vfp3_const_double_index): Copy signed results of
12629 REAL_VALUE_TO_INT into unsigned vars.
12630
12631 2007-07-05 Richard Guenther <rguenther@suse.de>
12632
12633 PR middle-end/32639
12634 * alias.c (get_alias_set): Tread METHOD_TYPE the same as
12635 FUNCTION_TYPE.
12636 * tree-ssa.c (useless_type_conversion_p): Check canonical
12637 types early.
12638
12639 2007-07-05 Anatoly Sokolov <aesok@post.ru>
12640
12641 * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2,
12642 zero_extendhisi2): Change to define_insn_and_split.
12643 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
12644
12645 2007-07-05 Paolo Bonzini <bonzini@gnu.org>
12646
12647 * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
12648 pass_match_asm_constraints): New.
12649 * passes.c (init_optimization_passes): Add new pass.
12650 * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
12651 * function.h (struct function): Add has_asm_statement bit.
12652 (current_function_has_asm_statement): New.
12653 * tree-pass.h (pass_match_asm_constraints): New.
12654
12655 2007-07-05 Richard Sandiford <rsandifo@nildram.co.uk>
12656
12657 * config/mips/mips.c (mips_file_start): Avoid declaration
12658 after code.
12659
12660 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12661
12662 * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
12663
12664 2007-07-05 Uros Bizjak <ubizjak@gmail.com>
12665
12666 * rtl.def (NOTE): Change print format string to print
12667 operand 5 as a note insn name.
12668
12669 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12670 David Ung <davidu@mips.com>
12671
12672 * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
12673 * doc/invoke.texi: (MIPS Options): Document them.
12674
12675 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12676 David Ung <davidu@mips.com>
12677
12678 Add support for SmartMIPS ASE.
12679
12680 * optabs.c (expand_binop_directly): New, broken out from...
12681 (expand_binop): Here. Make it try rotating in the other
12682 direction even when the second operand isn't constant.
12683 * config/mips/mips.md (*lwxs): New.
12684 * config/mips/mips.opt (msmartmips): New.
12685 * config/mips/mips.c (mips_lwxs_address_p): New.
12686 (mips_rtx_costs): Make it recognize scaled indexed addressing.
12687 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
12688 __mips_smartmips when compiling for TARGET_SMARTMIPS.
12689 (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
12690 (ISA_HAS_LWXS): New.
12691 (ASM_SPEC): Add -msmartmips/-mno-smartmips.
12692 * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
12693 * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
12694 * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
12695 * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
12696 * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
12697 * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
12698
12699 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
12700
12701 * tree-vectorizer.c (new_loop_vec_info): Initialize
12702 LOOP_VINFO_COST_MODEL_MIN_ITERS.
12703 * tree-vectorizer.h (_loop_vec_info): Added new filed
12704 min_profitable_iters.
12705 (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
12706 (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
12707 * tree-vect-analyze.c (vect_analyze_operations): Set
12708 LOOP_VINFO_COST_MODEL_MIN_ITERS.
12709 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
12710 VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
12711 Fix calculation of peel_iters_prologue. Move consideration of epilogue
12712 and prologue cost to after they are computed.
12713 (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
12714 TARG_VEC_STMT_COST.
12715 (vect_model_simple_cost): Takes additional argument dt. Consider cost
12716 of creating vectors from scalars according to dt.
12717 (vect_model_store_cost): Likewise.
12718 (vectorizable_call): Use dt array instead of scalar dt. Call
12719 vect_model_simple_cost with additional argument dt.
12720 (vectorizable_assignment): Likewise.
12721 (vectorizable_operation): Likewise.
12722 (vectorizable_type_demotion): Likewise.
12723 (vectorizable_type_promotion): Likewise.
12724 (vectorizable_store): Use dt array instead of scalar dt. Call
12725 vect_model_store_cost with additional argument dt.
12726 (vect_do_peeling_for_loop_bound): Don't call
12727 vect_estimate_min_profitable_iters. Instead, lookup
12728 LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
12729 "may not be profitable".
12730
12731 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
12732
12733 PR testsuite/32014
12734 * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
12735 (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
12736 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
12737 (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns.
12738
12739 2007-07-05 Zdenek Dvorak <dvorakz@suse.cz>
12740
12741 * config/i386/i386.c (ix86_address_cost): Do not consider more complex
12742 addressing modes cheaper.
12743
12744 2007-07-05 Alexandre Oliva <aoliva@redhat.com>
12745
12746 * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
12747 (dw_ranges_struct): Rename block_num to num. Adjust.
12748 (dw_ranges_by_label_struct): New.
12749 (ranges_by_label, ranges_by_label_allocated,
12750 ranges_by_label_in_use): New variables.
12751 (add_ranges_num): Factored most of the code out of...
12752 (add_ranges): ... this one. Rewrite in terms of the former.
12753 (add_ranges_by_labels): New.
12754 (output_ranges): Output by-label ranges.
12755 (dwarf2out_finish): Output range for multiple-section
12756 compile_unit. Output standard DW_AT_low_pc in addition to
12757 unexpected DW_AT_entry_pc.
12758
12759 2007-07-04 Daniel Berlin <dberlin@dberlin.org>
12760
12761 PR tree-optimization/32604
12762 PR tree-optimization/32606
12763
12764 * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
12765 (compute_antic_safe): Removed.
12766 (ANTIC_SAFE_LOADS): Ditto.
12767 (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
12768 (execute_pre): Don't call compute_antic_safe.
12769 (vuse_equiv): New function.
12770 (make_values_for_stmt): Use it
12771 * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
12772 not always true.
12773
12774 2007-07-04 Anatoly Sokolov <aesok@post.ru>
12775
12776 PR target/31331
12777 * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
12778 rather than a decl.
12779 (avr_attribute_table): Make "naked" attribute apply to function types
12780 rather than to decls.
12781 (avr_handle_fntype_attribute): New function.
12782
12783 2007-07-04 Joseph Myers <joseph@codesourcery.com>
12784
12785 * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
12786 after \.
12787
12788 2007-07-04 David Ung <davidu@mips.com>
12789 Joseph Myers <joseph@codesourcery.com>
12790
12791 * config/mips/mips.md (type): Add logical, signext and move.
12792 (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
12793 *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
12794 *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
12795 combinations", *zero_extend<SHORT:mode><GPR:mode>2,
12796 *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
12797 *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
12798 *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
12799 *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
12800 *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
12801 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
12802 movv2sf_hardfloat_64bit): Use the new types.
12803 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
12804 *movdf_softfloat, *movdf_mips16): Use "multi".
12805 (extendqihi2): Replace with a define_expand.
12806 (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
12807 Based on extend<SHORT:mode><GPR:mode>2 patterns.
12808 * config/mips/74k.md (r74k_int_logical): New reservation and
12809 bypasses.
12810 (r74k_int_arith): Remove "slt".
12811 * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
12812 config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
12813 config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
12814 config/mips/sb1.md, config/mips/sr71k.md: Add new types to
12815 reservations for "arith".
12816
12817 2007-07-04 Richard Guenther <rguenther@suse.de>
12818
12819 * tree-ssa.c (useless_type_conversion_p): Add handling for
12820 scalar float and vector types. Only call the types_compatible_p
12821 langhook for aggregate types as last resort. Follow the
12822 rules.
12823
12824 2007-07-04 Richard Guenther <rguenther@suse.de>
12825
12826 * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
12827 the same as NOP_EXPR.
12828
12829 2007-07-04 Nick Clifton <nickc@redhat.com>
12830
12831 * target.h (struct gcc_target): Add target_help field.
12832 * target-def.h (TARGET_HELP): New.
12833 (TARGET_INITIALIZER): Use TARGET_HELP.
12834 * opts.c (command_handle_option): Invoke target_help function, if
12835 defined, when the user has specified --target-help on the command
12836 line.
12837 * doc/invoke.texi: Mention that --target-help might print
12838 additional information.
12839 * doc/tm.texi: Document TARGET_HELP hook.
12840
12841 * arm.c (TARGET_HELP): Override default definition.
12842 (arm_target_help): New - display a wrapped list of cores and
12843 architectures supported.
12844
12845 2007-07-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
12846
12847 * config/v850/v850.c (expand_prologue): Make sure
12848 GEN_INT() argument is sign extended rather than zero extended.
12849 (expand_epilogue): Likewise.
12850 (output_move_double): Delete.
12851 * config/v850/v850-protos.h (output_move_double): Delete.
12852 * config/v850/v850.md (movdi): Delete.
12853 (*movdi_internal): Delete.
12854 (movdf): Delete.
12855 (*movdf_internal): Delete.
12856
12857 2007-07-04 Richard Sandiford <richard@codesourcery.com>
12858
12859 * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
12860 unless compiling RTP PIC.
12861
12862 2007-07-04 Richard Guenther <rguenther@suse.de>
12863
12864 PR tree-optimization/32482
12865 * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
12866 original ssa name if we didn't find a shift expression.
12867 Fix shift constant for bit zero test.
12868
12869 2007-07-04 Richard Sandiford <richard@codesourcery.com>
12870
12871 * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
12872
12873 2007-07-04 Richard Sandiford <richard@codesourcery.com>
12874
12875 * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
12876 * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
12877 * config/arm/vxworks.h (ASM_SPEC): Delete.
12878 (SUBTARGET_EXTRA_ASM_SPEC): Define.
12879
12880 2007-07-04 Sebastian Pop <sebpop@gmail.com>
12881
12882 * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
12883 (DDR_REVERSED_P): New.
12884 * tree-data-ref.c (initialize_data_dependence_relation,
12885 build_classic_dist_vector): Set DDR_REVERSED_P.
12886
12887 2007-07-04 Sebastian Pop <sebpop@gmail.com>
12888
12889 PR middle-end/32457
12890 * tree-data-ref.c (analyze_siv_subscript_cst_affine,
12891 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
12892 init_omega_for_ddr_1): Use non conservative number of iterations
12893 estimations.
12894 (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
12895 (analyze_siv_subscript): Remove FIXME and reinitialization of
12896 last_conflicts to chrec_dont_know.
12897 * testsuite/gfortran.dg/vect/pr32457.f90: New.
12898
12899 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
12900
12901 * tree.c (maybe_canonicalize_argtypes): Improve description.
12902
12903 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
12904
12905 * tree.c (maybe_canonicalize_argtypes): New.
12906 (build_function_type): Set canonical type.
12907 (build_method_type_directly): Ditto.
12908 (reconstruct_complex_type): Rebuild the METHOD_TYPE node
12909 properly.
12910
12911 2007-07-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
12912
12913 * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
12914 like PLUS_EXPR.
12915 (rewrite_use_nonlinear_expr): Likewise.
12916
12917 2007-07-03 Seongbae Park <seongbae.park@gmail.com>
12918
12919 * rtl.def (UNSPEC, USE, CLOBBER): More comments.
12920
12921 2007-07-04 Ben Elliston <bje@au.ibm.com>
12922
12923 * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
12924 of this file.
12925
12926 * c-objc-common.c (c_types_compatible_p): Fix indentation.
12927
12928 * doc/tm.texi (Run-time Target): Capitalise "CPU".
12929 (Exception Handling): Likewise.
12930
12931 2007-07-03 Jan Hubicka <jh@suse.cz>
12932
12933 * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
12934
12935 2007-07-03 Eric Christopher <echristo@apple.com>
12936
12937 * doc/cppopts.texi: Add conflicting option note to -dM.
12938 * doc/invoke.texi: Add note about possible conflicts with
12939 -E for -dCHARS and note that -dM will not produce
12940 any results if there is no machine dependent reorg.
12941
12942 2007-07-03 Geoffrey Keating <geoffk@apple.com>
12943
12944 * tree.h (DECL_ALIGN): Back out previous change.
12945
12946 2007-07-03 Joseph Myers <joseph@codesourcery.com>
12947
12948 * configure.ac: Test for .dtprelword support on MIPS.
12949 * configure, config.in: Regenerate.
12950 * config/mips/mips.c (mips_output_dwarf_dtprel): New.
12951 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
12952
12953 2007-07-03 Julian Brown <julian@codesourcery.com>
12954
12955 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
12956 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
12957 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
12958 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
12959 capability.
12960 (all_fpus): Add FPUTYPE_VFP3.
12961 (fp_model_for_fpu): Add VFPv3 field.
12962 (arm_rtx_costs_1): Give cost to VFPv3 constants.
12963 (vfp3_const_double_index): New function. Return integer index of
12964 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
12965 isn't suitable.
12966 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
12967 and argument represents a valid RTX for a VFPv3 constant.
12968 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
12969 two instructions.
12970 (vfp_emit_fstmd): Similar, for fstmd.
12971 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
12972 constants, represented as integer indices.
12973 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
12974 VFP_REGNO_OK_FOR_DOUBLE macros.
12975 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
12976 (arm_file_start): Set float-abi attribute for VFPv3, and output
12977 correct ".fpu" assembler directive.
12978 (arm_dbx_register_numbering): Add FIXME.
12979 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
12980 (fputype): Add FPUTYPE_VFP3.
12981 (FIXED_REGISTERS): Add 32 registers for D16-D31.
12982 (CALL_USED_REGISTERS): Likewise.
12983 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
12984 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
12985 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
12986 (D7_VFP_REGNUM): New.
12987 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
12988 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
12989 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
12990 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
12991 (REG_ALLOC_ORDER): Adjust for VFPv3.
12992 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
12993 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
12994 VFP_LO_REGS, VFP_HI_REGS.
12995 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
12996 (IS_VFP_CLASS): Define macro.
12997 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
12998 IS_VFP_CLASS.
12999 (REGISTER_MOVE_COST): Likewise.
13000 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
13001 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
13002 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
13003 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
13004 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
13005 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
13006 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
13007 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
13008 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
13009 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
13010 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
13011 where appropriate for single-word registers.
13012 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
13013 As above. Fix type attributes.
13014 * config/arm/constraints.md (register_contraint "t"): Define.
13015 (register_constraint "w"): Change to D0-D15, or D0-D31 for
13016 VFPv3/NEON.
13017 (register_constraint "x"): Define.
13018 (constraint "Dv"): Define.
13019
13020 2007-07-03 Geoffrey Keating <geoffk@apple.com>
13021
13022 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
13023
13024 2007-07-03 Tom Tromey <tromey@redhat.com>
13025
13026 * c-parser.c (objc_pq_context): Removed.
13027 (objc_need_raw_identifier): Likewise.
13028 (c_parser) <objc_pq_context>: New field.
13029 <objc_need_raw_identifier>: Likewise.
13030 (OBJC_NEED_RAW_IDENTIFIER): Removed.
13031 (c_lex_one_token): Update.
13032 (c_parser_objc_protocol_definition): Update.
13033 (c_parser_objc_method_definition): Update.
13034 (c_parser_objc_methodproto): Update.
13035 (c_parser_declspecs): Update.
13036
13037 2007-07-03 David Ung <davidu@mips.com>
13038
13039 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
13040
13041 2007-07-03 David Ung <davidu@mips.com>
13042 Richard Sandiford <richard@codesourcery.com>
13043
13044 * doc/invoke.texi: Document -march=74kf3_2.
13045 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
13046 (TUNE_74K): Check for it.
13047 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
13048 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
13049 * config/mips/mips.md (cpu): Add 74kf3_2.
13050 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
13051 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
13052 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
13053 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
13054 74kf3_2 to the CPU list.
13055 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
13056 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
13057 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
13058 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
13059 (r74kf3_2_fxfer_from_c1): New insn reservations.
13060
13061 2007-07-03 Richard Sandiford <richard@codesourcery.com>
13062 David Ung <davidu@mips.com>
13063
13064 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
13065 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
13066 and 74k[fx]. Document aliases for the new options.
13067 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
13068 (PROCESSOR_24KF2_1): ...this.
13069 (PROCESSOR_24KX): Rename to...
13070 (PROCESSOR_24KF1_1): ...this.
13071 (PROCESSOR_74KF): Rename to...
13072 (PROCESSOR_74KF2_1): ...this.
13073 (PROCESSOR_74KX): Rename to...
13074 (PROCESSOR_74KF1_1): ...this.
13075 (TUNE_74K): Update PROCESSOR_* names.
13076 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
13077 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
13078 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
13079 (mips_rtx_cost_data): Update processor names in comments.
13080 (mips_issue_rate): Update PROCESSOR_* names.
13081 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
13082 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
13083 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
13084 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
13085 Update cpu attribute names.
13086 (r24k_fpu_iss): Rename this reservation to...
13087 (r24kf2_1_fpu_iss): ...this and update all uses.
13088 (r24kx_fpu_iss): Rename this reservation to...
13089 (r24kf1_1_fpu_iss): ...this and update all uses.
13090 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
13091 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
13092 Update cpu attribute names.
13093
13094 2007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
13095
13096 * config/m32r/constraints.md: New file.
13097 * config/m32r/m32r.c: Include tm-constrs.h.
13098 (small_data_operand): Use satisfies_constraint_* instead of macro.
13099 (addr24_operand, gen_compare): Likewise.
13100 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
13101 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
13102 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
13103 EXTRA_CONSTRAINT): Likewise.
13104 * config/m32r/m32r.md: Include constraints.md.
13105 (*movsi_insn): Use satisfies_constraint_* instead of macro.
13106 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
13107 * config/m32r/predicates.md (conditional_move_operand): Likewise.
13108 (two_insn_const_operand, int8_operand, uint16_operand,
13109 reg_or_int16_operand, reg_or_uint16_operand,
13110 reg_or_cmp_int16_operand, cmp_int16_operand,
13111 seth_add3_operand): Likewise.
13112
13113 2007-07-03 Eric Christopher <echristo@gmail.com>
13114
13115 * libgcc2.h: Conditionally declare __bswapsi2 and
13116 __bswapdi2.
13117
13118 2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
13119
13120 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
13121 defined.
13122
13123 2007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13124
13125 PR target/28307
13126 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
13127 (__gthrw_pragma): Provide default definition.
13128 (__gthrw2): Use it.
13129 * gthr-posix.c (__gthrw_pragma): Define.
13130
13131 2007-07-03 Daniel Berlin <dberlin@dberlin.org>
13132
13133 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
13134 before declaring inequality.
13135
13136 2007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
13137
13138 * combine.c (recog_for_combine): Log the success or failure of
13139 matching new insn patterns against the machine description in
13140 detailed dumps.
13141
13142 2007-07-03 Revital Eres <eres@il.ibm.com>
13143
13144 * ddg.c (print_sccs): New function.
13145 (check_sccs): New function.
13146 (create_ddg_all_sccs): Use it.
13147 * ddg.h (print_sccs): Declare.
13148 * modulo-sched.c (sms_order_nodes): Call print_sccs.
13149
13150 2007-07-03 Uros Bizjak <ubizjak@gmail.com>
13151
13152 * targhooks.h (default_mode_for_suffix): New function declaration.
13153 * targhooks.c (default_mode_for_suffix): New default target hook.
13154 * target.h (struct c): New structure in the targetm struct.
13155 (mode_for_suffix): New target hook as part of struct c.
13156 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
13157 default_mode_for_suffix.
13158 (TARGET_C): New define.
13159 * c-lex.c: Include "target.h".
13160 (interpret_float): Use targetm.c.mode_for_suffix to determine
13161 the mode for a given non-standard suffix.
13162 Makefile.in (c-lex.o): Depend on $(TARGET_H).
13163
13164 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
13165 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
13166
13167 * doc/extend.texi (Floating Types): New node. Document __float80 and
13168 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
13169
13170 2007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
13171
13172 PR target/32506
13173 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
13174 predicate instead of target_operand.
13175 (divsi3_i1_media, divsi3_media_2): Likewise.
13176
13177 2007-07-02 Eric Botcazou <ebotcazou@adacore.com>
13178
13179 * tree.h (alias_sets_might_conflict_p): Rename into
13180 alias_sets_must_conflict_p.
13181 * alias.c (alias_sets_might_conflict_p): Likewise.
13182 (alias_sets_conflict_p): Use it.
13183 (objects_must_conflict_p): Likewise.
13184 * c-common.c (strict_aliasing_warning): Adjust.
13185
13186 2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
13187
13188 * rtlhooks.c (gen_lowpart_if_possible): Check for
13189 invalid subreg before calling gen_lowpart_SUBREG.
13190
13191 2007-07-02 Geoffrey Keating <geoffk@apple.com>
13192
13193 * config/darwin9.h: Add copyright notice.
13194 (LINK_COMMAND_SPEC): Add comment.
13195 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
13196 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
13197 DARWIN_LIBSYSTEM_HAS_UNWIND.
13198
13199 2007-07-02 Jakub Jelinek <jakub@redhat.com>
13200
13201 PR libgomp/32468
13202 * omp-low.c (check_combined_parallel): New function.
13203 (lower_omp_parallel): Call it via walk_stmts, set
13204 OMP_PARALLEL_COMBINED if appropriate.
13205 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
13206 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
13207 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
13208 don't consider it as combined parallel.
13209
13210 2007-07-02 Richard Sandiford <richard@codesourcery.com>
13211
13212 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
13213 (gcc_tooldir): Likewise.
13214 * configure: Regenerate.
13215 * Makefile.in (libsubdir_to_prefix): New variable, based on the
13216 old configure.ac gcc_tooldir setting.
13217 (prefix_to_exec_prefix): New variable.
13218 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
13219 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
13220
13221 2007-07-02 Daniel Berlin <dberlin@dberlin.org>
13222
13223 Fix PR tree-optimization/32583
13224 Fix PR tree-optimization/32584
13225 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
13226 (phi_translate_set): Use phi_translate directly now.
13227 (make_values_for_stmt): Don't value number RHS if we already know
13228 it is constant.
13229
13230 2007-07-02 Steve Ellcey <sje@cup.hp.com>
13231 Jim Wilson <wilson@specifix.com>
13232
13233 PR target/31684
13234 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
13235 copy_insn.
13236
13237 2007-07-02 Sandra Loosemore <sandra@codesourcery.com>
13238 Richard Sandiford <richard@codesourcery.com>
13239 Nigel Stephens <nigel@mips.com>
13240
13241 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
13242 (mips16e_output_save_restore): Declare.
13243 (mips16e_save_restore_pattern_p): Likewise.
13244 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
13245 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
13246 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
13247 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
13248 (BITSET_P): New global macro, extracted from...
13249 (mips_for_each_saved_reg): ...here.
13250 (mips16e_save_restore_info): New struct.
13251 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
13252 (mips16e_save_restore_regs): New variable.
13253 (mips_split_plus, mips16e_find_first_register): New functions.
13254 (mips16e_mask_registers): New function.
13255 (compute_frame_size): Expand the commentary before the function.
13256 Enforce the MIPS16e save and restore register range restrictions.
13257 Pad the general register save area at the low end.
13258 (mips16e_save_restore_reg, mips16e_build_save_restore)
13259 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
13260 (mips16e_output_save_restore, mips16e_collect_propagate_value)
13261 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
13262 New functions.
13263 (mips_expand_prologue, mips_expand_epilogue): Handle
13264 GENERATE_MIPS16E_SAVE_RESTORE.
13265 * config/mips/mips.md (*mips16e_save_restore): New pattern.
13266
13267 2007-07-02 Uros Bizjak <ubizjak@gmail.com>
13268
13269 PR tree-optimization/31966
13270 PR tree-optimization/32533
13271 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
13272 "basic_block" description as its third argument. Update function
13273 calls to get destination bb from "edge" argument. Save "cond" into
13274 aux field of the edge. Update prototype for changed arguments.
13275 (if_convertible_loop_p): Clear aux field of incoming edges if bb
13276 contains phi node.
13277 (find_phi_replacement_condition): Operate on incoming edges, not
13278 on predecessor blocks. If there is a condition saved in the
13279 incoming edge aux field, AND it with incoming bb predicate.
13280 Return source bb of the first edge.
13281 (clean_predicate_lists): Clean aux field of outgoing node edges.
13282 (tree_if_conversion): Do not initialize cond variable. Move
13283 variable declaration into the loop.
13284 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
13285 initializations of new_stmt, arg0 and arg1 variables.
13286
13287 2007-07-02 Jakub Jelinek <jakub@redhat.com>
13288
13289 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
13290 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
13291
13292 2007-07-02 Richard Guenther <rguenther@suse.de>
13293
13294 * tree-ssa.c (useless_type_conversion_p): Document
13295 future intent as defining the middle-end type system.
13296 Re-structure to call langhook last, group by type class,
13297 mark questionable parts.
13298
13299 2007-07-02 Richard Guenther <rguenther@suse.de>
13300
13301 * tree-flow.h (types_compatible_p): Declare.
13302 * tree-ssa.c (types_compatible_p): New function.
13303 * ipa-type-escape.c (discover_unique_type): Use
13304 types_compatible_p instead of lang_hooks.types_compatible_p.
13305 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13306 * tree-vn.c (expressions_equal_p): Likewise.
13307 * tree.c (fields_compatible_p): Likewise.
13308 * tree-ssa-dom.c (avail_expr_eq): Likewise.
13309 (cprop_operand): Use useless_type_conversion_p instead of
13310 lang_hooks.types_compatible_p.
13311 * tree-inline.c (setup_one_parameter): Likewise.
13312 (declare_return_variable): Likewise.
13313 * tree-nrv.c (tree_nrv): Likewise.
13314 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
13315 (maybe_fold_offset_to_component_ref): Likewise.
13316 (maybe_fold_offset_to_reference): Likewise.
13317 * tree-ssa-copy.c (may_propagate_copy): Likewise.
13318 (merge_alias_info): Likewise.
13319 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13320 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13321 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13322 * tree-tailcall.c (find_tail_calls): Likewise.
13323 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13324 * gimplify.c (canonicalize_addr_expr): Likewise.
13325 (fold_indirect_ref_rhs): Likewise.
13326 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
13327 (cpt_same_type): Likewise.
13328 (check_pointer_types_r): Swap parameters to cpt_same_type
13329 where appropriate.
13330 * fold-const.c (fold_convert): Revert fix for PR15988.
13331 * tree-inline.c (setup_one_parameter): Instead fix it here by
13332 using fold_build1 instead of fold_convert and checking for
13333 error_mark_node. Convert only if the conversion is necessary.
13334
13335 2007-07-02 Joseph Myers <joseph@codesourcery.com>
13336
13337 * configure.ac: Check for .gnu_attribute on Power.
13338 * configure: Regenerate.
13339 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
13340 attribute for floating-point ABI.
13341
13342 2007-07-02 Ira Rosen <irar@il.ibm.com>
13343
13344 PR tree-optimization/32230
13345 PR tree-optimization/32477
13346 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
13347 address is a constant.
13348
13349 2007-07-02 Richard Sandiford <richard@codesourcery.com>
13350
13351 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
13352 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
13353 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
13354 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
13355 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
13356 64-bit targets. Add support for *-elfoabi*.
13357 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
13358 different settings if $(tm_defines) does not select the EABI.
13359 (MULTILIB_EXCLUSIONS): Define in those circumstances.
13360 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
13361 (MIPS_ARCH_OPTION_SPEC): Likewise.
13362 (MIPS_ISA_LEVEL_SPEC): Likewise.
13363 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
13364 * config/mips/elfoabi.h: New file.
13365
13366 2007-07-02 Richard Guenther <rguenther@suse.de>
13367
13368 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
13369 (useless_type_conversion_p): ... this.
13370 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
13371 (useless_type_conversion_p): ... this.
13372 * builtins.c (fold_builtin_memory_op): Rename
13373 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
13374 * tree-cfg.c (verify_expr): Likewise.
13375 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
13376 * tree-ssa-ccp.c (ccp_fold): Likewise.
13377 * tree-ssa-copy.c (may_propagate_copy): Likewise.
13378 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
13379 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13380 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
13381 * tree-ssa-pre.c (eliminate): Likewise.
13382 * tree-ssa.c (delete_tree_ssa): Likewise.
13383 (tree_ssa_useless_type_conversion): Likewise.
13384 * tree.c (build2_stat): Likewise.
13385
13386 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
13387
13388 Fix PR tree-optimization/32571
13389 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
13390 simplifying them.
13391
13392 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
13393
13394 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
13395 and other expected operations explicitly, change default to
13396 gcc_unreachable.
13397
13398 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
13399
13400 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
13401 PARALLEL.
13402 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
13403 (tls_load_dot_plus_eight): Move the label number into the unspec.
13404 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
13405
13406 2007-07-01 Andreas Schwab <schwab@suse.de>
13407
13408 * dwarf2out.c (initial_return_save): Define only if used.
13409
13410 2007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
13411
13412 Unreverting Richard's Revert of:
13413
13414 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13415
13416 * dce.c (deletable_insn_p_1): New function, split out from...
13417 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13418 specially, not those inside PARALLELs. Remove BODY argument
13419 and adjust recursive call accordingly.
13420 (prescan_insns_for_dce): Update call to delete_insn_p.
13421
13422 2007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
13423 Revital Eres <eres@il.ibm.com>
13424
13425 * ddg.c (create_ddg_all_sccs): Fix missed
13426 initialization of scc_nodes.
13427
13428 2007-07-01 Uros Bizjak <ubizjak@gmail.com>
13429
13430 PR middle-end/32559
13431 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
13432 X + ~X to 1 only for INTEGRAL_TYPE_P type.
13433
13434 2007-06-30 Joseph Myers <joseph@codesourcery.com>
13435
13436 * configure.ac: Check for .gnu_attribute on MIPS.
13437 * configure, config.in: Regenerate.
13438 * config/mips/mips.c (mips_file_start): If supported, output
13439 attribute for floating-point ABI.
13440
13441 2007-06-30 Uros Bizjak <ubizjak@gmail.com>
13442
13443 PR target/32433
13444 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
13445 (ffs_cmove): New expander to expand using ctz pattern.
13446 (*ffs_cmove): Remove pattern.
13447 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
13448 (ffsdi2): Expand using ctz pattern.
13449 (*ffs_rex64): Remove pattern.
13450
13451 2007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13452
13453 PR rtl-optimization/32296
13454 * pa.md (return): Delete pattern.
13455 (return_internal): Remove "(const_int 1)" from pattern.
13456 (epilogue): Use return_internal pattern for trivial returns.
13457 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
13458 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
13459
13460 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
13461
13462 * tree-ssa-pre.c (is_exception_related): New function
13463 (can_value_number_operation): Use it.
13464
13465 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
13466
13467 Fix PR tree-optimization/32540
13468 Fix PR tree-optimization/31651
13469
13470 * tree-ssa-sccvn.c: New file.
13471
13472 * tree-ssa-sccvn.h: Ditto.
13473
13474 * tree-vn.c: Include tree-ssa-sccvn.h
13475 (val_expr_paid_d): Removed.
13476 (value_table): Ditto.
13477 (vn_compute): Ditto.
13478 (val_expr_pair_hash): Ditto.
13479 (val_expr_pair_expr_eq): Ditto.
13480 (copy_vuses_from_stmt): Ditto.
13481 (vn_delete): Ditto.
13482 (vn_init): Ditto.
13483 (shared_vuses_from_stmt): Ditto.
13484 (print_creation_to_file): Moved up.
13485 (sort_vuses): Ditto.
13486 (sort_vuses_heap): Ditto.
13487 (set_value_handle): Make non-static.
13488 (make_value_handle): Ditto.
13489 (vn_add): Rewritten to use sccvn lookups.
13490 (vn_add_with_vuses): Ditto.
13491 (vn_lookup): Ditto (and second argument removed).
13492 (vn_lookup_with_vuses): Ditto.
13493 (vn_lookup_or_add): Ditto (and second argument removed);
13494 (vn_lookup_or_add_with_vuses): Ditto.
13495 (vn_lookup_with_stmt): New.
13496 (vn_lookup_or_add_with_stmt): Ditto.
13497 (create_value_handle_for_expr): Ditto.
13498
13499 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
13500 (seen_during_translate): New function.
13501 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
13502 (phi_trans_add): Ditto.
13503 (constant_expr_p): FIELD_DECL is always constant.
13504 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
13505 Use constant_expr_p.
13506 Avoid infinite recursion on mutually valued expressions.
13507 Change callers of vn_lookup_or_add.
13508 (phi_translate): New function.
13509 (compute_antic_safe): Allow phi nodes.
13510 (create_component_ref_by_pieces): Update for FIELD_DECL change.
13511 (find_or_generate_expression): Rewrite slightly.
13512 (create_expression_by_pieces): Updated for vn_lookup_or_add
13513 change.
13514 Update VN_INFO for new names.
13515 (insert_into_preds_of_block): Update for new names.
13516 (add_to_exp_gen): New function.
13517 (add_to_sets): Use vn_lookup_or_add_with_stmt.
13518 (find_existing_value_expr): Rewrite to changed vn_lookup.
13519 (create_value_expr_from): Ditto, and use add_to_exp_gen.
13520 (try_look_through_load): Removed.
13521 (try_combine_conversion): Ditto.
13522 (get_sccvn_value): New function.
13523 (make_values_for_phi): Ditto.
13524 (make_values_for_stmt): Ditto.
13525 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
13526 SCCVN.
13527 (init_pre): Update for SCCVN changes.
13528 (fini_pre): Ditto.
13529 (execute_pre): Ditto.
13530
13531 * tree-flow.h (make_value_handle): Declare.
13532 (set_value_handle): Ditto.
13533 (sort_vuses_heap): Ditto.
13534 (vn_lookup_or_add_with_stmt): Ditto.
13535 (vn_lookup_with_stmt): Ditto.
13536 (vn_compute): Remove.
13537 (vn_init): Ditto.
13538 (vn_delete): Ditto.
13539 (vn_lookup): Update arguments.
13540
13541 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
13542 (tree-vn.o): Ditto.
13543 (tree-ssa-sccvn.o): New.
13544 (OBJS-common): Add tree-ssa-sccvn.o
13545
13546 2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13547
13548 PR c/4076
13549 * c-typeck.c (build_external_ref): Don't mark as used if called
13550 from itself.
13551 * calls.c (rtx_for_function_call): Likewise.
13552
13553 2007-06-30 Richard Sandiford <richard@codesourcery.com>
13554
13555 Revert:
13556
13557 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13558
13559 * dce.c (deletable_insn_p_1): New function, split out from...
13560 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13561 specially, not those inside PARALLELs. Remove BODY argument
13562 and adjust recursive call accordingly.
13563 (prescan_insns_for_dce): Update call to delete_insn_p.
13564
13565 2007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
13566
13567 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
13568 (try_combine): Move potential calls to undo_all() so they happen
13569 before we commit to using the combined insns.
13570
13571 2006-06-30 Jan Hubicka <jh@suse.cz>
13572
13573 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
13574 code.
13575
13576 2006-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
13577
13578 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
13579 (cgraph_remove_unreachable_nodes): Likewise.
13580 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
13581 * ipa-inline.c (update_caller_keys): Cast according to the coding
13582 conventions.
13583 (cgraph_decide_recursive_inlining): Likewise.
13584 (cgraph_decide_inlining_of_small_function): Likewise.
13585 (try_inline): Likewise.
13586 (cgraph_decide_inlining_incrementally): Likewise.
13587 * ipa-pure-const.c (get_function_state): Likewise.
13588 (scan_function): Likewise.
13589 (analyze_function): Likewise.
13590 (static_execute): Likewise.
13591 * ipa-reference.c (scan_for_static_refs): Likewise.
13592 (merge_callee_local_info): Likewise.
13593 (analyze_function): Use type safe memory macros.
13594 (static_execute): Likewise. Cast according to the coding conventions.
13595 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
13596 conventions.
13597 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
13598 names.
13599 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
13600 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
13601 variable names.
13602
13603 2007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
13604
13605 PR middle-end/30024
13606 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
13607 for complex modes (both int and real).
13608
13609 2007-06-29 Jan Hubicka <jh@suse.cz>
13610
13611 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
13612
13613 2007-06-29 Jan Hubicka <jh@suse.cz>
13614
13615 PR middle-end/32372
13616 * cse.c (cse_insn): Avoid invalid sharing in between register note and
13617 the insn pattern.
13618
13619 2007-06-29 Anatoly Sokolov <aesok@post.ru>
13620
13621 PR target/32335
13622 * config/avr/avr.c: Include dataflow header file.
13623 (expand_prologue): Adjust for prologue insn change.
13624 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
13625 inside a insn.
13626
13627 2007-06-29 Richard Guenther <rguenther@suse.de>
13628
13629 PR middle-end/32493
13630 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
13631 during type verification.
13632
13633 2007-06-29 Jan Hubicka <jh@suse.cz>
13634
13635 * recog.c (validate_change_rtx_1): Unshare TO argument.
13636
13637 2007-06-29 Uros Bizjak <ubizjak@gmail.com>
13638
13639 PR tree-optimization/24659
13640 * tree-vect-transform.c (vectorizable_call): Handle
13641 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
13642
13643 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
13644 * config/i386/i386.c (enum ix86_builtins)
13645 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
13646 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
13647 description.
13648 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
13649 const using def_builtin_const.
13650 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
13651 input operands in the same modes as the result.
13652 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
13653
13654 2007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
13655
13656 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
13657 (df_set_dead_notes_for_mw): Likewise.
13658
13659 2007-06-29 Eric Botcazou <ebotcazou@adacore.com>
13660
13661 * c-common.c (pointer_int_sum): Do the negation in sizetype.
13662
13663 2007-06-28 DJ Delorie <dj@redhat.com>
13664
13665 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
13666
13667 2007-06-28 Geoffrey Keating <geoffk@apple.com>
13668
13669 * doc/invoke.texi (C++ Dialect Options): Document
13670 fvisibility-ms-compat.
13671 * c.opt (fvisibility-ms-compat): New.
13672
13673 2007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
13674
13675 PR tree-opt/32417
13676 * tree-affine.c (aff_combination_add_elt): Handle
13677 pointer addition specially.
13678
13679 2007-06-28 Jakub Jelinek <jakub@redhat.com>
13680
13681 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
13682 decl is non-external for AIX ABI.
13683
13684 2007-06-28 David Edelsohn <edelsohn@gnu.org>
13685
13686 * config/rs6000/predicates.md (current_file_function_operand):
13687 Ensure the symbol is non-external for AIX ABI.
13688
13689 2007-06-28 Nick Clifton <nickc@redhat.com>
13690
13691 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
13692 (fdce, fdse, fpredictive-commoning): Likewise.
13693
13694 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13695
13696 PR other/31400
13697 * gcc.c (process_command): Recognize the new -static-libgfortran
13698 option.
13699
13700 2007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
13701
13702 PR target/32418
13703 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
13704 Use a call clobbered hard reg instead of a pseudo reg.
13705
13706 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
13707
13708 * config/sh/sh.md (load_gbr): Use correct operand constraint.
13709
13710 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
13711
13712 PR target/32479
13713 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
13714 REG_LIBCALL and REG_RETVAL notes.
13715 (divsi3, mulsi3): Likewise.
13716 (mulhisi3): Likewise. Use emit_libcall_block.
13717 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
13718
13719 2007-06-27 Seongbae Park <seongbae.park@gmail.com>
13720
13721 PR rtl-optimization/32481
13722 * combine.c (adjust_for_new_dest): Rescan the changed insn.
13723
13724 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13725
13726 * dce.c (deletable_insn_p_1): New function, split out from...
13727 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13728 specially, not those inside PARALLELs. Remove BODY argument
13729 and adjust recursive call accordingly.
13730 (prescan_insns_for_dce): Update call to delete_insn_p.
13731
13732 2007-06-27 Richard Guenther <rguenther@suse.de>
13733
13734 PR middle-end/32492
13735 * tree.h (fold_convertible_p): Declare.
13736 * fold-const.c (fold_convertible_p): New function.
13737 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
13738 instead of lang_hooks.types_compatible_p.
13739
13740 2007-06-26 Jan Hubicka <jh@suse.cz>
13741
13742 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
13743 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
13744 early use validate_unshare_change.
13745 (reload_combine): Likewise.
13746 * recog.c (change_t): New field unshare.
13747 (validate_change_1): Rename from validate_change; add argument unshare.
13748 (validate_change): Turn into wrapper of validate_change_1; update
13749 prototype for bools.
13750 (validate_unshare_change): New.
13751 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
13752 calls of df_insn_rescan.
13753 * recog.h (validate_change): Replace ints by bools.
13754 (validate_unshare_change): Declare.
13755
13756 2007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
13757
13758 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
13759
13760 2007-06-26 Steve Ellcey <sje@cup.hp.com>
13761
13762 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
13763
13764 2007-06-25 Jan Hubicka <jh@suse.cz>
13765
13766 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
13767 uninlinable call.
13768 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
13769 cgraph_decide_inlining_incrementally): Move uninlinability checks to
13770 places other call site specific checks are performed.
13771
13772 2007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13773
13774 PR tree-opt/32421
13775 * tree-vect-transform.c (vectorizable_operation): Convert
13776 POINTER_PLUS_EXPR over to PLUS_EXPR.
13777
13778 2007-06-25 Chao-ying Fu <fu@mips.com>
13779
13780 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
13781 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
13782 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
13783 Document GET_MODE_IBIT, and GET_MODE_FBIT.
13784
13785 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
13786 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
13787 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
13788 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
13789 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
13790 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
13791 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
13792 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
13793 ALL_FIXED_POINT_MODE_P): New define.
13794 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13795 MODE_UACCUM.
13796 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
13797
13798 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
13799 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
13800 MODE_VECTOR_UACCUM): New mode classes.
13801
13802 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
13803 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
13804 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
13805 USA, UDA, and UTA.
13806
13807 * genmodes.c (struct mode_data): Add ibit and fbit fields.
13808 (blank_mode): Initialize ibit and fbit.
13809 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
13810 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13811 MODE_UACCUM.
13812 (new_adjust): Change required_class to required_class_from and
13813 required_class_to for testing within a range.
13814 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13815 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
13816 MODE_VECTOR_UACCUM.
13817 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
13818 (make_fixed_point_mode): New.
13819 (_ADD_ADJUST): Change C to C1 and C2.
13820 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
13821 use a range for machine classes.
13822 (ADJUST_IBIT, ADJUST_FBIT): New.
13823 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
13824 CONST_MODE_FBIT.
13825 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
13826 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
13827 Emit adjustment for ibit and fbit.
13828 (emit_mode_ibit, emit_mode_fbit): New.
13829 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
13830
13831 2007-06-25 Nathan Froyd <froydnj@codesourcery.com>
13832
13833 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
13834 as the source of the set.
13835
13836 2007-06-25 Roman Zippel <zippel@linux-m68k.org>
13837
13838 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
13839 FP_REGNO_P): Use IN_RANGE.
13840 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
13841 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
13842 (DATA_REG_P): Use DATA_REGNO_P.
13843 (FP_REG_P): Use FP_REGNO_P.
13844 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
13845 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
13846 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
13847
13848 2007-06-24 Jan Hubicka <jh@suse.cz>
13849
13850 PR middle-end/30563
13851 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
13852
13853 2007-06-24 Sebastian Pop <sebpop@gmail.com>
13854
13855 PR middle-end/32461
13856 * fold-const.c (fold_binary): Strip nops of operand 0
13857 of BIT_NOT_EXPR before calling operand_equal_p.
13858 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
13859 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
13860
13861 2007-06-23 Mark Mitchell <mark@codesourcery.com>
13862
13863 * doc/extend.texi: Document that dllimport and dllexport imply
13864 default visibility.
13865 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
13866 imported or exported declaration, including type declarations.
13867 * c-common.c (handle_visibility_attribute): Check for conflicts
13868 with dllimport/dllexport.
13869 (c_determine_visibility): Handle dllimport/dllexport as an
13870 explicit visibility atttribute.
13871
13872 2007-06-23 Richard Guenther <rguenther@suse.de>
13873
13874 PR tree-optimization/16876
13875 PR middle-end/29478
13876 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
13877 for CALL_EXPRs.
13878 * tree-inline.c (initialize_inlined_parameters): Do not call
13879 lang_hooks.tree_inlining.convert_parm_for_inlining.
13880 * cgraphbuild.c (initialize_inline_failed): Set inline failed
13881 reason for mismatched types.
13882 * gimplify.c (gimplify_call_expr): Verify the call expression
13883 arguments match the called function type signature. Otherwise
13884 mark the call expression to be not considered for inlining
13885 using CALL_CANNOT_INLINE_P flag.
13886 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
13887 edges call expression.
13888 (cgraph_decide_inlining_of_small_function): Likewise.
13889 (cgraph_decide_inlining): Likewise.
13890 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13891 Remove define.
13892 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
13893 * c-typeck.c (c_convert_parm_for_inlining): Remove.
13894 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
13895 Remove declaration.
13896 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
13897 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
13898 Remove.
13899 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
13900 convert_parm_for_inlining member.
13901
13902 2007-06-23 Richard Earnshaw <rearnsha@arm.com>
13903
13904 PR target/31152
13905 * arm.md (negscc): Match the correct operand for optimized LT0 test.
13906 Remove optimization for GT.
13907
13908 2007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
13909
13910 PR middle-end/32437
13911 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
13912 is a PARALLEL.
13913 (prescan_insns_for_dce): Add extra parameter.
13914
13915 2007-06-23 Jan Hubicka <jh@suse.cz>
13916
13917 PR middle-end/31541
13918 * gimplify.c (mark_addressable): New function.
13919 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
13920
13921 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
13922
13923 PR middle-end/32374
13924 * expr.c (store_constructor): Do not clobber non-zeroed memory.
13925
13926 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
13927
13928 PR target/32413
13929 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
13930 moves between MMX/SSE registers to at least 8 units to prevent
13931 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
13932
13933 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
13934
13935 * config/i386/i386.c (override_options): Correct x86_sahf
13936 setting condition.
13937
13938 2007-06-21 David Daney <ddaney@avtrex.com>
13939
13940 PR target/32406
13941 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
13942 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
13943 (exception_receiver): Renamed to ...
13944 (nonlocal_goto_receiver): ... this.
13945
13946 2007-06-22 Roman Zippel <zippel@linux-m68k.org>
13947
13948 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
13949 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
13950 partial register accesses.
13951
13952 2007-06-21 Adam Nemet <anemet@caviumnetworks.com>
13953
13954 * fold-const.c (debug_fold_checksum): Move it under
13955 ENABLE_FOLD_CHECKING.
13956
13957 2007-06-21 Sebastian Pop <sebpop@gmail.com>
13958
13959 PR middle-end/20623
13960 * tree.h (debug_fold_checksum): Declared.
13961 * fold-const.c (build_fold_addr_expr_with_type_1): New.
13962 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
13963 build_fold_addr_expr_with_type_1.
13964 (fold_addr_expr, debug_fold_checksum): New.
13965 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
13966 (fold_unary, fold_comparison, split_address_to_core_and_offset):
13967 Use fold_addr_expr.
13968
13969 2007-06-21 Sebastian Pop <sebpop@gmail.com>
13970
13971 PR tree-optimization/19590
13972 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
13973 of scev is a constant.
13974
13975 2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
13976
13977 * df-problems.c (df_note_bb_compute): Made computation of live
13978 info consistent with df_lr.
13979
13980 2007-06-21 Richard Guenther <rguenther@suse.de>
13981
13982 PR tree-optimization/32453
13983 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
13984 for pointer anti-range.
13985
13986 2007-06-21 H.J. Lu <hongjiu.lu@intel.com>
13987
13988 * config/i386/i386.c (processor_target_table): Increase maximum
13989 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
13990 default 64bit.
13991
13992 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
13993 byte alignment if > 8 byte alignment is preferred.
13994 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13995
13996 2007-06-21 Jakub Jelinek <jakub@redhat.com>
13997
13998 PR tree-optimization/31866
13999 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
14000 if ASM_EXPR's input is not a SSA_NAME.
14001
14002 PR middle-end/32362
14003 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
14004 but decl is a global var, instead return decl.
14005 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
14006 even for is_global_var decls, if they are private in some outer
14007 context.
14008
14009 2007-06-21 Richard Guenther <rguenther@suse.de>
14010
14011 PR tree-optimization/32451
14012 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
14013
14014 2007-06-21 Christian Bruel <christian.bruel@st.com>
14015
14016 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
14017 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
14018 (push_regs): Changed saving order or banked registers.
14019 (sh_expand_epilogue): Likewise.
14020 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
14021 (FIRST_BANKED_REG): Likewise.
14022 (LAST_BANKED_REG): Likewise.
14023 * config/sh/sh.md (banked) New attribute.
14024 (in_delay_slot): Check banked attribute.
14025
14026 2007-06-20 Sebastian Pop <sebpop@gmail.com>
14027
14028 PR tree-optimization/32075
14029 * tree-data-ref.c (subscript_dependence_tester_1,
14030 analyze_miv_subscript, analyze_overlapping_iterations,
14031 add_distance_for_zero_overlaps, build_classic_dist_vector,
14032 subscript_dependence_tester_1, analyze_overlapping_iterations,
14033 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
14034 compute_affine_dependence, compute_all_dependences): Pass loop_nest
14035 to evolution_function_is_affine_multivariate_p.
14036
14037 2007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
14038
14039 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
14040
14041 2007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
14042
14043 PR target/32335
14044 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
14045 for TARGET_A16.
14046 * config/m32c/prologue.md (epilogue_exitd_16): New.
14047 (epilogue_reit_16): New.
14048 (epilogue_exitd): Rename to epilogue_exitd_24.
14049 (epilogue_reit): Rename to epilogue_reit_24.
14050
14051 2007-06-20 Seongbae Park <seongbae.park@gmail.com>
14052 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14053
14054 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
14055 New counters.
14056 * haifa-sched.c (queue_to_ready): Don't requeue next insn
14057 if dbg_cnt (sched_insn) reaches the limit.
14058 (choose_ready): New parameter INSN_PTR and new return value.
14059 (schedule_block): Handle dbg_cnt (sched_insn). Handle
14060 the new return value from choose_ready.
14061 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
14062 (rest_of_handle_global_alloc): New global_alloc_at_func.
14063
14064 2007-06-20 Adam Nemet <anemet@caviumnetworks.com>
14065
14066 PR tree-optimization/25737
14067 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
14068 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
14069 * tree-flow.h (struct fieldoff): Add new field alias_set.
14070 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
14071 argument addressable_type. Set alias_set of fieldoff.
14072 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
14073 (create_overlap_variables_for): Pass alias_set from fieldoff to
14074 create_sft.
14075 * alias.c (get_alias_set): Use alias_set from SFT if set.
14076
14077 2007-06-20 Hui-May Chang <hm.chang@apple.com>
14078
14079 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
14080 of a variable as an unsigned HOST_WIDE_INT integer.
14081
14082 2007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
14083
14084 PR rtl-optimization/32405
14085 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
14086
14087 2007-06-20 Jakub Jelinek <jakub@redhat.com>
14088
14089 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
14090
14091 PR middle-end/31959
14092 * builtins.c: Include diagnostic.h.
14093 (expand_builtin_expect): Make gcc_assert more permissive.
14094 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
14095
14096 PR inline-asm/32109
14097 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
14098 and !allows_mem.
14099
14100 PR middle-end/32285
14101 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
14102 if ACCUMULATE_OUTGOING_ARGS.
14103
14104 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
14105
14106 * config/m68hc11/m68hc11.c: Include dataflow header file.
14107 (m68hc11_reorg): Port to dataflow.
14108
14109 2007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
14110
14111 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
14112 (struct df_problem.free_blocks_on_set_blocks): New field.
14113 (struct dataflow.optional_p): New field.
14114 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
14115 (df_live_set_all_dirty): New function.
14116 * df-scan.c (df_scan_alloc): Initialize optional_p.
14117 (problem_SCAN): Initialize free_blocks_on_set_blocks.
14118 * df-core.c (df_set_blocks): Removed use of
14119 DF_FIRST_OPTIONAL_PROBLEM. Now uses
14120 df_problem.free_blocks_on_set_blocks to determine which blocks are
14121 recycled.
14122 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
14123 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
14124 uses dataflow.optional_p to determine if problem should be
14125 deleted.
14126 (rest_of_handle_df_initialize): Only start live problem if
14127 -02 or above.
14128 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
14129 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
14130 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
14131 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
14132 problem_NOTE): Initialize free_blocks_on_set_blocks.
14133 (df_lr_bb_local_compute): Recompute luids if df_live problem is
14134 not active.
14135 (df_live_set_all_dirty, df_note_alloc): New function.
14136 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
14137 df_get_live_*.
14138 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
14139 * postreload.c (reload_combine): Ditto.
14140 * cse.c (cse_extended_basic_block): Ditto.
14141 * regmove.c (mark_flags_life_zones): Ditto.
14142 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
14143 erase_matching_seqs): Ditto.
14144 * bt-load.c (compute_defs_uses_and_gen): Ditto.
14145 * integrate (allocate_initial_values): Ditto.
14146 * combine.c (reg_dead_at_p): Ditto.
14147 * resource.c (mark_target_live_regs): Ditto.
14148 * sched-rgn.c (check_live_1, update_live_1): Ditto.
14149 * config/sh/sh.c (find_r0_life_regions): Ditto.
14150 * global.c (rest_of_handle_global_alloc): Only add back df_live
14151 for -O > 1.
14152 * local-alloc.c (rest_of_handle_local_alloc): Only remove
14153 df_live for -O > 1.
14154 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
14155 df_get_live_*.
14156 (if_convert): Make sure df_live is there at -O == 1.
14157 (pass_if_after_combine): Cleanup flags.
14158 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
14159 is there at -O == 1.
14160
14161 2007-06-19 Seongbae Park <seongbae.park@gmail.com>
14162
14163 * config/arm/arm.c (arm_get_frame_offsets): Set
14164 offsets->locals_base to avoid negative stack size.
14165 (thumb1_expand_prologue): Assert on negative stack size.
14166
14167 2007-06-19 Sebastian Pop <sebpop@gmail.com>
14168
14169 PR tree-optimization/32367
14170 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
14171 of the chrec has no evolution in that loop.
14172 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
14173
14174 2007-06-19 Bob Wilson <bob.wilson@acm.org>
14175
14176 * config/xtensa/xtensa.c: Include "df.h".
14177 (xtensa_builtin_saveregs): Use adjust_address instead of
14178 change_address.
14179 (xtensa_va_start): Invoke make_tree with sizetype for
14180 expand_builtin_saveregs and then convert the result to a pointer.
14181 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
14182 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
14183 Subtract argument size from index value as integers and then use
14184 POINTER_PLUS_EXPR to add the result to the array address.
14185
14186 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
14187
14188 PR target/32335
14189 * config/m32c/m32c.c: Include dataflow header file.
14190 (m32c_emit_prologue): Adjust for prologue insn change.
14191 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
14192 once inside a PARALLEL. Assume frame size passed in operand 0
14193 includes space to save the fb register.
14194 (prologue_enter_24): Likewise.
14195 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
14196
14197 2007-06-19 David Daney <ddaney@avtrex.com
14198
14199 PR target/32313
14200 * config/mips/mips.md (cprestore): Mark $gp as used.
14201
14202 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
14203
14204 PR target/32369
14205 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
14206 (frv_ifcvt_modify_insn): Likewise.
14207
14208 2007-06-19 Richard Guenther <rguenther@suse.de>
14209
14210 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
14211 only handle positive offsets that fit in a HOST_WIDE_INT.
14212
14213 2007-06-19 Uros Bizjak <ubizjak@gmail.com>
14214
14215 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
14216 result of rsqrt insn for zero input argument to avoid NaN.
14217
14218 2007-06-19 Richard Guenther <rguenther@suse.de>
14219
14220 PR middle-end/31950
14221 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
14222
14223 2007-06-19 Jakub Jelinek <jakub@redhat.com>
14224
14225 PR tree-optimization/32353
14226 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
14227
14228 2007-06-19 Nick Clifton <nickc@redhat.com>
14229
14230 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
14231
14232 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
14233
14234 PR target/32389
14235 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
14236 * config/i386/i386.c (assign_386_stack_local): Assert that
14237 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
14238 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
14239 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
14240 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
14241
14242 2007-06-18 Steve Ellcey <sje@cup.hp.com>
14243
14244 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
14245
14246 2007-06-18 Seongbae Park <seongbae.park@gmail.com>
14247
14248 PR rtl-optimization/32321
14249 * gcse.c (replace_store_insn): Update the note before
14250 calling emit_insn_after.
14251
14252 2007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
14253
14254 PR middle-end/32355
14255 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
14256 cse_main.
14257 * df-problems.c (df_note_bb_compute): Fix dumping info.
14258
14259 2007-06-18 Kazu Hirata <kazu@codesourcery.com>
14260
14261 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
14262 insn with emit_jump_insn.
14263
14264 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
14265
14266 PR tree-optimization/32383
14267 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
14268 * targhooks.h (default_builtin_reciprocal): Update prototype.
14269 * target.h (struct gcc_target): Update builtin_reciprocal.
14270 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
14271 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
14272 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
14273 when fndecl is in BUILT_IN_MD class.
14274 (execute_convert_to_rsqrt): Ditto.
14275
14276 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
14277 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
14278 Convert BUILT_IN_SQRTF code only when md_fn is false.
14279
14280 2007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14281
14282 * bt-load.c (move_btr_def): Fix the order of arguments
14283 to validate_replace_rtx.
14284
14285 2007-06-18 Nathan Sidwell <nathan@codesourcery.com>
14286
14287 * config/m68k/m68k-devices.def: Add 54450..54455.
14288
14289 2007-06-17 Uros Bizjak <ubizjak@gmail.com>
14290
14291 PR rtl-optimization/32366
14292 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
14293 FLOAT_EXTEND]: Prevent non-scalar modes from entering
14294 significand_size.
14295
14296 2007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
14297
14298 PR middle-end/32349
14299 * modulo-sched (generate_reg_moves): Added rescan parameter and if
14300 this is true, rescan insn being modified.
14301 (sms_schedule): Added rescan parameter.
14302 (rest_of_handle_sms): Moved freeing of dominance info to before
14303 getting out of cfg_layout.
14304
14305 2007-06-17 Nathan Sidwell <nathan@codesourcery.com>
14306
14307 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
14308 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
14309 appropriate.
14310
14311 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
14312 FL_CF_EMAC from the entry for isac.
14313
14314 * config/m68k/predicates.md (const_call_operand): Adjust comment.
14315 (const_sibcall_operand): New.
14316 (sibcall_operand): Use it.
14317 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
14318 (m68k_isas): ISAC does not imply FPU or EMAC.
14319 (override_options): Add ISA_C logic for symbolic jump & call.
14320
14321 2007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
14322
14323 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
14324 return mode from the builtin itself.
14325 (sparc_fold_builtin): Fix cast of zero constant.
14326
14327 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
14328
14329 * targhooks.c (default_builtin_reciprocal): New default target hook.
14330 * targhooks.h (default_builtin_reciprocal): Add prototype.
14331 * hooks.c (hook_tree_tree_bool_null): Remove hook.
14332 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
14333 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
14334 default_builtin_reciprocal.
14335
14336 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
14337
14338 PR middle-end/31723
14339 * hooks.c (hook_tree_tree_bool_null): New hook.
14340 * hooks.h (hook_tree_tree_bool_null): Add prototype.
14341 * tree-pass.h (pass_convert_to_rsqrt): Declare.
14342 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
14343 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
14344 and convert it to reciprocal a*rfunc(b).
14345 (execute_convert_to_rsqrt): New function.
14346 (gate_convert_to_rsqrt): New function.
14347 (pass_convert_to_rsqrt): New pass definition.
14348 * target.h (struct gcc_target): Add builtin_reciprocal.
14349 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
14350 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
14351 TARGET_BUILTIN_RECIPROCAL.
14352 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
14353
14354 * config/i386/i386.h (TARGET_RECIP): New define.
14355 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
14356 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14357 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14358 and not optimizing for size.
14359 (*rcpsf2_sse): New insn pattern.
14360 (*rsqrtsf2_sse): Ditto.
14361 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
14362 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14363 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14364 and not optimizing for size.
14365 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
14366 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14367 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14368 and not optimizing for size.
14369 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
14370 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14371 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14372 and not optimizing for size.
14373 (*sse_rsqrtv4sf2): Do not export.
14374 (sqrtv4sf2): Ditto.
14375 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
14376 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14377 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14378 and not optimizing for size.
14379 (sqrtv4sf2): Ditto.
14380 * config/i386/i386.opt (mrecip): New option.
14381 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
14382 (ix86_emit_swsqrtsf): Ditto.
14383 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
14384 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
14385 builtin definition.
14386 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
14387 ix86_expand_unop1_builtin.
14388 (ix86_emit_swdivsf): New function.
14389 (ix86_emit_swsqrtsf): Ditto.
14390 (ix86_builtin_reciprocal): New function.
14391 (TARGET_BUILTIN_RECIPROCAL): Use it.
14392 (ix86_vectorize_builtin_conversion): Rename from
14393 ix86_builtin_conversion.
14394 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
14395 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
14396 "i386 and x86_64 Options" section.
14397 (Intel 386 and AMD x86_64 Options): Document -mrecip.
14398
14399 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
14400 Zdenek Dvorak <dvorakz@suse.cz>
14401 Richard Guenther <rguenther@suse.de>
14402 Kaz Kojima <kkojima@gcc.gnu.org>
14403
14404 * tree-vrp.c (compare_values_warnv): Convert val2 to
14405 the type of val1.
14406 (extract_range_from_assert): Create
14407 POINTER_PLUS_EXPR for pointer types.
14408 (extract_range_from_binary_expr): Handle
14409 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
14410 for pointer types.
14411 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
14412 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
14413 POINTER_PLUS_EXPR as PLUS_EXPR.
14414 (number_of_iterations_lt_to_ne):
14415 For pointer types, use sizetype when
14416 creating MINUS_EXPR/PLUS_EXPRs.
14417 (assert_loop_rolls_lt): For pointer types, use sizetype when
14418 creating MINUS_EXPR/PLUS_EXPRs.
14419 (number_of_iterations_le): Likewise.
14420 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
14421 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
14422 like PLUS_EXPR and MINUS_EXPR.
14423 * tree-pretty-print.c (dump_generic_node): Handle
14424 POINTER_PLUS_EXPR.
14425 (op_prio): Likewise.
14426 (op_symbol_1): Likewise.
14427 * optabs.c (optab_for_tree_code): Likewise.
14428 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
14429 specially.
14430 * tree-tailcall.c (process_assignment): Mention
14431 POINTER_PLUS_EXPR in a TODO comment.
14432 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
14433 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
14434 not used with a pointer and an integer type.
14435 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
14436 increment using chrec_convert_rhs instead of chrec_convert.
14437 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
14438 PLUS_EXPR except for the right hand side's type will be
14439 sizetype.
14440 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
14441 (fold_used_pointer_cast): Kill.
14442 (pointer_offset_p): Kill.
14443 (fold_used_pointer): Kill.
14444 (pointer_used_p): Kill.
14445 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
14446 call fold_used_pointer.
14447 (instantiate_parameters_1): Convert the increment
14448 using chrec_convert_rhs instead of chrec_convert.
14449 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
14450 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
14451 instead of PLUS_EXPR.
14452 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
14453 PLUS_EXPR for pointers.
14454 (std_gimplify_va_arg_expr): Likewise.
14455 (fold_builtin_memory_op): Likewise.
14456 (fold_builtin_strstr): Likewise.
14457 (fold_builtin_strchr): Likewise.
14458 (fold_builtin_strrchr): Likewise.
14459 (fold_builtin_strpbrk): Likewise.
14460 (expand_builtin_memory_chk): Likewise.
14461 (fold_builtin_memory_chk): Likewise.
14462 (std_expand_builtin_va_start): Use
14463 sizetype for the call to make_tree and then convert
14464 to the pointer type.
14465 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
14466 instead of PLUS_EXPR for adding to a pointer.
14467 (std_gimplify_va_arg_expr): Use fold_build2 for
14468 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
14469 the operands to sizetype first and then cast the BIT_AND_EXPR
14470 back to the pointer type.
14471 * fold-const.c (build_range_check): Handle pointer types
14472 specially.
14473 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
14474 of PLUS_EXPR's. Make sure the offset is converted to
14475 sizetype.
14476 (try_move_mult_to_index): Strip the NOPs from the offset.
14477 Remove code argument and replace all uses with PLUS_EXPR.
14478 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
14479 specially. Don't use a pointer type for MINUS_EXPR.
14480 (fold_unary): Handle for (T1)(X op Y),
14481 only p+ as that is the only as that can be handled for
14482 binary operators now.
14483 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
14484 POINTER_PLUS_EXPR.
14485 <case PLUS_EXPR>: Add folding of PTR+INT into
14486 PTR p+ INT.
14487 Don't call try_move_mult_to_index.
14488 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
14489 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
14490 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
14491 Don't call try_move_mult_to_index.
14492 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
14493 (tree_expr_nonzero_p): Likewise.
14494 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
14495 of PLUS_EXPR for the complex expression folding.
14496 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
14497 first chrec is a pointer type, then the second should
14498 be sizetype and not the first's type.
14499 For POINTER_PLUS_EXPR, use a different right hand side type.
14500 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14501 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
14502 different right hand side type.
14503 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14504 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
14505 instead of PLUS_EXPR.
14506 When either operand is zero, convert the other operand.
14507 (chrec_apply): Use chrec_convert_rhs
14508 on the argument x instead of chrec_convert.
14509 (reset_evolution_in_loop): For pointer types, the new_evol
14510 should be sizetype.
14511 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
14512 different right hand side type.
14513 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14514 (chrec_convert_rhs): New function.
14515 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
14516 different right hand side type.
14517 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14518 * tree-chrec.h (chrec_convert_rhs): New prototype.
14519 (build_polynomial_chrec): For pointer types, the right hand
14520 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
14521 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
14522 Remove subtraction case as it is always addition now.
14523 Make sure the offset is converted to sizetype.
14524 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
14525 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
14526 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
14527 PLUS_EXPR in pointer type.
14528 Handle POINTER_PLUS_EXPR.
14529 (tree_to_aff_combination): Likewise.
14530 (force_expr_to_var_cost): Likewise.
14531 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
14532 instead of PLUS_EXPR for pointers.
14533 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
14534 instead of PLUS_EXPR of pointer types.
14535 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
14536 as PLUS_EXPR.
14537 (check_va_list_escapes): Likewise.
14538 (check_all_va_list_escapes): Likewise.
14539 * dwarf2out.c (loc_descriptor_from_tree_1):
14540 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
14541 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
14542 (string_constant): Likewise.
14543 * tree-ssa-address.c (tree_mem_ref_addr): When adding
14544 the offset to the base, use POINTER_PLUS_EXPR.
14545 (add_to_parts): Convert the index to sizetype.
14546 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
14547 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
14548 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
14549 Offset only holds something for PLUS_EXPR.
14550 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
14551 a PLUS_EXPR.
14552 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
14553 and not PLUS_EXPR.
14554 (analyze_accesses_for_modify_stmt): Likewise.
14555 Remove comment about the type being integral type as it is
14556 wrong now.
14557 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
14558 PLUS_EXPR.
14559 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
14560 and not PLUS_EXPR.
14561 Correct the type which the artimentic is done in (is now
14562 sizetype).
14563 Reindent one loop.
14564 * tree-data-ref.c (split_constant_offset): Handle
14565 POINTER_PLUS_EXPR
14566 * tree-affine.c (tree_to_aff_combination): Likewise.
14567 * c-typeck.c (build_unary_op): For pointers create the increment
14568 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
14569 for pointers.
14570 * gimplify.c (gimplify_self_mod_expr): Create a
14571 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14572 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
14573 * tree.def (POINTER_PLUS_EXPR): New tree code.
14574 * tree-predcom.c (ref_at_iteration): If we have a pointer
14575 type do the multiplication in sizetype.
14576 * tree-mudflap.c (mf_xform_derefs_1): Create a
14577 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14578 * tree-ssa-forwprop.c
14579 (forward_propagate_addr_into_variable_array_index):
14580 Don't expect there to be a cast for the index as that
14581 does not exist anymore.
14582 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
14583 instead of PLUS_EXPR.
14584 Don't check for the first operand of the POINTER_PLUS_EXPR
14585 was the index as it cannot be.
14586 Call forward_propagate_addr_into_variable_array_index with
14587 the SSA_NAME instead of the statement.
14588 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
14589 (compare_constant): Likewise.
14590 (copy_constant): Likewise.
14591 (compute_reloc_for_constant): Likewise.
14592 (output_addressed_constants): Likewise.
14593 (initializer_constant_valid_p): Likewise.
14594 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
14595 Convert the MIN/MAX of the inner type to the outer
14596 type before comparing them.
14597 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
14598 POINTER_PLUS_EXPR instead of PLUS_EXPR.
14599 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
14600 of PLUS_EXPR for pointers.
14601 * tree-inline.c (estimate_num_insns_1): Handle
14602 POINTER_PLUS_EXPR.
14603 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
14604 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14605 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
14606 instead of PLUS_EXPR for the pointer increment statement.
14607 (vect_update_ivs_after_vectorizer): For pointer types, create
14608 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
14609 MULT_EXPR in sizetype.
14610 (vect_gen_niters_for_prolog_loop): Add a cast when creating
14611 byte_misalign.
14612 * tree-object-size.c (plus_expr_object_size): Handle
14613 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
14614 code which is trying to figure out which side is a pointer and
14615 is the index.
14616 (check_for_plus_in_loops_1): Likewise.
14617 (check_for_plus_in_loops): Likewise.
14618 * c-common.c (pointer_int_sum): Create a
14619 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14620 * tree-ssa-structalias.c (handle_ptr_arith): Handle
14621 only POINTER_PLUS_EXPR. Removing all the extra
14622 code which is trying to figure out which side is a pointer and
14623 is the index.
14624 * tree-cfg.c (verify_expr): Add extra checking for pointers and
14625 PLUS_EXPR and MINUS_EXPR.
14626 Also add checking to make sure the operands of POINTER_PLUS_EXPR
14627 are correct.
14628 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
14629 with make_tree, instead of a pointer type.
14630 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
14631 for pointers instead of PLUS_EXPR.
14632 (s390_gimplify_va_arg): Likewise.
14633 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
14634 instead of PLUS_EXPR when doing addition on pointer
14635 types. Use sizetype for the second operand.
14636 (spu_gimplify_va_arg_expr): Likewise.
14637 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
14638 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
14639 a pointer. Don't create a BIT_AND_EXPR for pointer types.
14640 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
14641 for the pointer addition and also use size_int/sizetype
14642 for the offset.
14643 (ix86_gimplify_va_arg): Likewise.
14644 Perform BIT_AND_EXPR on sizetype arguments.
14645 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
14646 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
14647 for the pointer additions and also use size_int for the offsets.
14648 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
14649 additions and also use size_int for the offsets. Perform
14650 BIT_AND_EXPR on sizetype arguments.
14651 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
14652 POINTER_PLUS_EXPR for pointers and create the
14653 BIT_AND_EXPR in sizetype.
14654 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
14655 instead of PLUS_EXPR for pointer addition.
14656 (rs6000_va_start): Likewise.
14657 Also use sizetype for the offset.
14658 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
14659 as PLUS_EXPR/MINUS_EXPR.
14660 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
14661 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
14662 Don't use BIT_AND_EXPR on a pointer type, convert the
14663 expression to sizetype first.
14664 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
14665 for pointers.
14666 (mips_gimplify_va_arg_expr): Likewise.
14667 Don't create BIT_AND_EXPR in a pointer type.
14668
14669 2007-06-15 Eric Christopher <echristo@apple.com>
14670
14671 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
14672 (x86_64-*-darwin*): Ditto.
14673 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
14674 for above.
14675
14676 2007-06-15 Matthew Wilcox <matthew@wil.cx>
14677
14678 * doc/extend.texi: Document behavior of __attribute__((aligned))
14679 on typedefs.
14680
14681 2007-06-15 Mark Mitchell <mark@codesourcery.com>
14682
14683 * rtlanal.c (note_stores): Improve documentation.
14684
14685 2007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
14686
14687 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
14688 LOCAL_LABEL_PREFIX): Delete.
14689 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
14690 (bfin_internal_label): Delete.
14691
14692 2007-06-15 Uros Bizjak <ubizjak@gmail.com>
14693
14694 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
14695 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
14696 otherwise define to LIBGCC2_TF_CEXT.
14697 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
14698 (LIBGCC_TF_CEXT): Ditto.
14699 (TF_SIZE): Ditto.
14700
14701 2007-06-14 Seongbae Park <seongbae.park@gmail.com>
14702
14703 PR rtl-optimization/32339
14704 * df-scan.c (df_uses_record): Don't modify flags but just add to
14705 it for df_ref_record.
14706
14707 2007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
14708
14709 * tree-mudflap.c: Fix whitespace issues.
14710
14711 2007-06-15 Kazu Hirata <kazu@codesourcery.com>
14712
14713 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
14714
14715 2007-06-14 Eric Christopher <echristo@apple.com>
14716
14717 * config/i386/sse.md (movdi_to_sse): Rewrite body.
14718 (movv4sf): Use gcc_unreachable instead of abort.
14719
14720 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
14721
14722 PR target/32268
14723 * config/i386/sfp-machine.h (CMPtype): New define.
14724 (mach stubs): Use CMPtype instead of int as a return type.
14725
14726 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
14727
14728 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
14729 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
14730 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
14731 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
14732 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
14733 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
14734 config/soft-fp/soft-fp.h: Update from glibc CVS.
14735
14736 2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
14737
14738 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
14739
14740 2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
14741
14742 PR target/32341
14743 * config/v850/v850.c: Include dataflow header file.
14744 (substitute_ep_register): Fix typo.
14745
14746 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
14747
14748 * configure.ac: Fix earlier checkin.
14749 * configure: Regenerated.
14750
14751 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
14752
14753 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
14754 * aclocal.m4: Regenerate.
14755 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
14756 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
14757 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
14758 * configure: Regenerate.
14759 * Makefile.in (LOOSE_WARN): Subst loose_warn.
14760
14761 * Makefile.in (quickstrap): Build libgcc too.
14762
14763 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
14764
14765 * configure.ac: Add --enable-checking=df. Explicitly mention that
14766 the variables are initialized as for "release".
14767 * df-core.c: Use it.
14768 * configure: Regenerate.
14769 * config.in: Regenerate.
14770
14771 2007-06-14 Bob Wilson <bob.wilson@acm.org>
14772
14773 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
14774 validate_replace_rtx instead of replace_rtx.
14775 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
14776
14777 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
14778
14779 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
14780 (DWARF2_UNWIND_INFO): Override default if configured with
14781 SJLJ EH disabled.
14782 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
14783 (ENDFILE_SPEC): Add crtend.o.
14784 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
14785 (ENDFILE_SPEC): Add crtend.o.
14786 (TARGET_USE_JCR_SECTION): Define.
14787 (MD_UNWIND_SUPPORT): Define for 32-bit target.
14788
14789 * config/i386/cygming-crtbegin.c: New file.
14790 * config/i386/cygming-crtend.c: New file.
14791
14792 2007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
14793
14794 * config/i386/w32-unwind.h: New file.
14795
14796 2007-06-13 Eric Christopher <echristo@apple.com>
14797
14798 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
14799 the user set a value below STACK_BOUNDARY.
14800
14801 2007-06-13 Thiemo Seufer <ths@networkno.de>
14802
14803 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
14804 imply -lpthread for -pthread.
14805
14806 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
14807
14808 * basic-block.h: Remove the prototype for
14809 free_basic_block_vars.
14810 * cfglayout.h: Remove the prototype for
14811 insn_locators_initialize.
14812 * tree.h: Remove the prototype for emit_line_note.
14813
14814 * tree-ssa-pre.c (mergephitemp): Remove.
14815 (init_pre): Don't use mergephitemp.
14816
14817 2007-06-13 Eric Christopher <echristo@apple.com>
14818
14819 * config/i386/i386.c (override_options): If we've specified
14820 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
14821
14822 2007-06-13 Bob Wilson <bob.wilson@acm.org>
14823
14824 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
14825 is defined.
14826
14827 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
14828
14829 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
14830 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
14831 (eh_store_handler): New pattern.
14832 (eh_return): Emit it instead of a plain move.
14833
14834 2007-06-13 Uros Bizjak <ubizjak@gmail.com>
14835
14836 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
14837 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
14838 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
14839 def_builtin_const.
14840
14841 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
14842
14843 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
14844 (find_next_insn_start, find_load): New functions.
14845 (bfin_reorg): Use them to deal with the fact that parallel insns are
14846 no longer represented as a SEQUENCE.
14847
14848 2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
14849
14850 * config/sparc/sparc.c (sparc_override_options): Initialize
14851 fpu mask correctly.
14852
14853 2007-06-13 Dave Korn <dave.korn@artimi.com>
14854
14855 * config/i386/i386.c (ix86_eax_live_at_start_p): Use
14856 df_get_live_out.
14857
14858 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
14859
14860 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
14861 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
14862 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
14863 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
14864 tree-vect-transform.c: Fix comment typos. Follow spelling
14865 conventions.
14866
14867 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
14868
14869 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
14870 to the exit block use set.
14871 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
14872 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
14873 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
14874
14875 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
14876
14877 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
14878 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
14879 to indicate an error.
14880 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
14881 New functions.
14882 (dbg_cnt_process_opt): Print an error on a bad argument.
14883 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
14884 * common.opt (-fdbg-cnt-list): New.
14885 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
14886
14887 2007-06-12 Eric Botcazou <ebotcazou@adacore.com>
14888
14889 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
14890 flag on ref-all pointers.
14891
14892 2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14893
14894 PR middle-end/31579
14895 * expr.c (expand_expr_addr_expr_1): Call expand_expr
14896 for the offset with the modifier as EXPAND_INITIALIZER
14897 if the modifier is EXPAND_INITIALIZER.
14898 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
14899 a register if we had an overflow.
14900
14901 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14902
14903 * real.c (real_isfinite): New.
14904 (real_sqrt): Use it.
14905 * real.h (real_isfinite): New.
14906 * builtins.c: Use it.
14907
14908 2007-06-12 Ian Lance Taylor <iant@google.com>
14909 Daniel Berlin <dberlin@dberlin.org>
14910
14911 PR libstdc++/29286
14912 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
14913 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
14914 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
14915 (DECL_NO_TBAA_P): Define.
14916 (struct tree_decl_common): Add no_tbaa_flag field.
14917 * tree-ssa-structalias.c (struct variable_info): Add
14918 no_tbaa_pruning field.
14919 (new_var_info): Initialize no_tbaa_pruning field.
14920 (unify_nodes): Copy no_tbaa_pruning field.
14921 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
14922 (dump_solution_for_var): Print no_tbaa_pruning flag.
14923 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
14924 callers.
14925 (compute_tbaa_pruning): New static function.
14926 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
14927 Call compute_tbaa_pruning.
14928 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
14929 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
14930 * gimple-low.c (lower_stmt): Likewise.
14931 * tree-gimple.c (is_gimple_stmt): Likewise.
14932 * tree-ssa-operands.c (get_expr_operands): Likewise.
14933 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14934 * tree-inline.c (estimate_num_insns_1): Likewise.
14935 (copy_result_decl_to_var): Likewise.
14936 * expr.c (expand_expr_real_1): Likewise.
14937 * tree-pretty-print.c (dump_generic_node): Likewise.
14938 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
14939 * omp-low.c (omp_copy_decl_2): Likewise.
14940 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
14941 * doc/c-tree.texi (Expression trees): Document
14942 CHANGE_DYNAMIC_TYPE_EXPR.
14943
14944 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14945
14946 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
14947 with !HONOR_NANS and !HONOR_INFINITIES.
14948 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14949
14950 2007-06-12 Tristan Gingold <gingold@adacore.com>
14951
14952 * gcov.c: Comments updated.
14953 (source_info): Add file_time field.
14954 (source_index): New variable.
14955 (mutiple_files): New variable.
14956 (generate_results): New function extracted from process_file.
14957 (process_file): Save and restore chain of functions, generate
14958 results and free structures only if not merging results.
14959 (release_structures): File names are now freed in create_file_names
14960 (create_file_names): Free previous file names.
14961 (find_source): File date is now read here and modifications in
14962 source files is checked here.
14963 (read_graph_file): Only reverse order of functions for the current
14964 object file.
14965 (make_gcov_file_name): Do not generate long names if input_name is
14966 NULL.
14967 (output_lines): If merging results do not display graph, data and
14968 runs informations.
14969 Checking source file modification is done in find_source.
14970
14971 * doc/gcov.texi: Append an s to sourcefile.
14972
14973 2007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
14974
14975 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
14976 (forced_nop): New pattern.
14977 * config/bfin/bfin.c: Include "df.h".
14978 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
14979 (bfin_discover_loop): Use df_get_live_in instead of
14980 global_live_at_start.
14981 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
14982 df_analyze when done.
14983 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
14984 the insns. Use QImode for the final insn in a bundle. Call
14985 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
14986 gen_nop.
14987 (reorder_var_tracking_notes): New function.
14988 (bfin_reorg): Pass no argument to split_all_insns. Don't call
14989 update_life_info. Call df_analyze after scheduling and bundle
14990 generation. Call reorder_var_tracking_notes if generating these
14991 notes. Call df_finish_pass at the end.
14992
14993 2007-06-12 Dirk Mueller <dmueller@suse.de>
14994
14995 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
14996 a comparison, not an assignment.
14997
14998 2007-06-12 Olivier Hainque <hainque@adacore.com>
14999
15000 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
15001 Request walking the subtrees only, leaving the current is_lhs/val_only
15002 untouched.
15003 (convert_non_local_reference): Likewise.
15004
15005 2007-06-12 Nathan Sidwell <nathan@codesourcery.com>
15006
15007 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
15008
15009 2007-06-12 Richard Guenther <rguenther@suse.de>
15010
15011 PR tree-optimization/15353
15012 PR tree-optimization/31657
15013 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
15014 * timevar.def: Add TV_TREE_IFCOMBINE.
15015 * tree-pass.h (pass_tree_ifcombine): Declare.
15016 * tree-ssa-ifcombine.c: New file.
15017 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
15018 * tree-flow.h (blocks_in_phiopt_order): Declare.
15019 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
15020 (tree-ssa-ifcombine.o): New dependencies.
15021
15022 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
15023
15024 PR rtl-optimization/32293
15025 * combine.c (simplify_if_then_else): Truncate return from
15026 nonzero_bits() to correct mode.
15027
15028 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
15029
15030 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
15031 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
15032
15033 2007-06-11 Diego Novillo <dnovillo@google.com>
15034
15035 * Makefile.in (reload1.o-warn): Remove.
15036
15037 2007-06-11 Seongbae Park <seongbae.park@gmail.com>
15038
15039 * combine.c (subst): Use reg_overlap_mentioned_p
15040 instead of comparing register numbers directly.
15041
15042 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
15043
15044 * reload1.c (mark_home_live_1): Use the mode parameter.
15045
15046 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
15047
15048 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
15049 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
15050 word "deferred".
15051 * df-core.c: Ditto.
15052
15053 2007-06-11 Daniel Berlin <dberlin@dberlin.org>
15054
15055 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
15056
15057 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
15058
15059 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
15060 from integer registers.
15061 (FP mode splitters): Handle TFmode.
15062
15063 2007-06-11 Eric Botcazou <ebotcazou@adacore.com>
15064
15065 * tree-ssa-structalias.c (find_what_p_points_to): Return false
15066 for ref-all pointers that point-to anything.
15067
15068 2007-06-11 Joseph Myers <joseph@codesourcery.com>
15069
15070 * config/arm/arm.c (arm_output_dwarf_dtprel,
15071 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
15072
15073 2007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
15074
15075 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
15076 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
15077 to memory moves.
15078
15079 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
15080
15081 * tree.c (signed_or_unsigned_type_for): New.
15082 (unsigned_type_for): Use signed_or_unsigned_type_for.
15083 (signed_type_for): Use signed_or_unsigned_type_for.
15084 * tree.h (signed_or_unsigned_type_for): New.
15085 (get_signed_or_unsigned_type): Remove.
15086 * fold-const.c (fold_negate_expr): Use signed_type_for instead of
15087 lang_hooks.types.signed_type
15088 (size_diffop): Likewise.
15089 (all_ones_mask_p): Likewise.
15090 (build_range_check): Likewise.
15091 (fold_cond_expr_with_comparison): Likewise.
15092 (fold_cond_expr_with_comparison): Likewise.
15093 (unextend): Likewise.
15094 (extract_muldiv_1): Likewise.
15095 (fold_single_bit_test_into_sign_test): Likewise.
15096 (fold_binary): Likewise.
15097 (fold_ternary): Likewise.
15098 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
15099 instead of get_signed_or_unsigned_type.
15100 * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
15101 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
15102 * expr.c (signed_or_unsigned_type_for): Use
15103 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
15104 * langhooks.c (get_signed_or_unsigned_type): Remove.
15105 (lhd_signed_or_unsigned_type): Remove.
15106 * langhooks.h (lang_hooks_for_types): Remove signed_type and
15107 signed_or_unsigned_type.
15108 (lhd_signed_or_unsigned_type): Remove.
15109 * expmed.c (make_tree): Use signed_type_for instead of
15110 lang_hooks.types.signed_type.
15111 * c-common.c (same_scalar_type_ignoring_signedness): Use
15112 c_common_signed_type instead of lang_hooks.types.signed_type.
15113 (c_common_unsigned_type): New.
15114 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
15115 (shorten_compare): Use c_common_unsigned_type instead of
15116 c_common_signed_or_unsigned_type.
15117 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
15118 unsigned_type_for.
15119 * convert.c (convert_to_integer): Use signed_type_for instead of
15120 lang_hooks.types.signed_type.
15121 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
15122 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
15123 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
15124 * c-format.c (check_format_types): Use c_common_unsigned_type
15125 instead of unsigned_type_for.
15126 * c-decl.c (groakdeclarator): Likewise.
15127 * c-typeck.c (convert_for_assignment): Likewise.
15128 * c-common.h (c_common_unsigned_type): New.
15129
15130 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
15131
15132 PR target/32280
15133 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
15134 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
15135
15136 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
15137
15138 PR middle-end/32279
15139 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
15140 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
15141
15142 2007-06-10 Jan Sjodin <jan.sjodin@amd.com>
15143 Sebastian Pop <sebpop@gmail.com>
15144
15145 * lambda-code.c (remove_iv): New.
15146 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
15147
15148 2007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
15149
15150 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
15151 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
15152 * tree-ssa-loop-prefetch.c: Include optabs.h.
15153 (FENCE_FOLLOWING_MOVNT): New macro.
15154 (struct mem_ref): Add independent_p and storent_p fields.
15155 (record_ref): Initalize the new fields.
15156 (gather_memory_references_ref): Return true if the reference
15157 could be analysed.
15158 (gather_memory_references): Check whether all memory accesses
15159 in loop were recorded.
15160 (should_issue_prefetch_p): Return false for nontemporal stores.
15161 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
15162 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
15163 (determine_loop_nest_reuse): Detect independent memory references.
15164 (loop_prefetch_arrays): Call mark_nontemporal_stores.
15165 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
15166 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
15167 * config/i386/i386.h (x86_mfence): Declare.
15168 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
15169 * config/i386/i386.c (x86_mfence): New variable.
15170 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
15171
15172 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
15173 * optabs.c (init_optabs): Initialize storent_optab.
15174 * optabs.h (enum optab_index): Add OTI_storent.
15175 (storent_optab): Declare.
15176 * genopinit.c (optabs): Add initialization for storent_optab.
15177 * tree.h (MOVE_NONTEMPORAL): New macro.
15178 * expr.c (expand_assignment, store_expr, store_constructor_field,
15179 store_constructor, store_field, expand_expr_real_1): Propagate
15180 nontemporality of the expanded store.
15181 (emit_storent_insn): New function.
15182 * expr.h (expand_assignment, store_expr): Declaration changed.
15183 * function.c (assign_parm_setup_reg): Pass false as nontemporality
15184 to expand_assignment.
15185 * stmt.c (expand_asm_expr): Ditto.
15186 * calls.c (initialize_argument_information): Pass false as
15187 nontemporality to store_expr.
15188 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
15189 storentsi): New.
15190
15191 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
15192
15193 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
15194 parameter, use it.
15195 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
15196
15197 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
15198
15199 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
15200 and allow DECL_P here.
15201
15202 2007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
15203
15204 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
15205 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
15206 track of the size of the expression.
15207 * cfghooks.c (merge_blocks): Remove block from loops structure only
15208 after call of the merge_blocks hook.
15209
15210 2007-06-09 Tom Tromey <tromey@redhat.com>
15211
15212 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
15213 (deprecated_state): Removed.
15214 (start_decl): Update.
15215 (enum deprecated_states): Moved earlier.
15216 (groktypename): Update.
15217 (push_parm_decl): Likewise.
15218 (grokfield): Likewise.
15219 (start_function): Likewise.
15220
15221 2007-06-09 Ian Lance Taylor <iant@google.com>
15222
15223 PR tree-optimization/32169
15224 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
15225 CONVERT_EXPR, check whether min and max both converted to an
15226 overflow infinity representation.
15227
15228 2007-06-08 Eric Botcazou <ebotcazou@adacore.com>
15229
15230 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
15231 not inserted on the edge.
15232
15233 2007-06-08 Bob Wilson <bob.wilson@acm.org>
15234
15235 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
15236 instructions if they are supported.
15237 (__divsi3, __umodsi3, __modsi3): Likewise.
15238 (__ashldi3, __ashrdi3, __lshrdi3): New.
15239 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
15240
15241 2007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
15242 Tony Linthicum <tony.linthicum@amd.com>
15243
15244 * doc/invoke.texi: Add fvect-cost-model flag.
15245 * common.opt (fvect-cost-model): New flag.
15246 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
15247 cost fields in stmt_vec_info struct for STMT.
15248 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
15249 fields in stmt_vec_info struct and access functions for the same.
15250 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
15251 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
15252 load, store and vector to scalar operation.
15253 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
15254 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
15255 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
15256 (TARG_VEC_STORE_COST): Define cost of vector store.
15257 (vect_estimate_min_profitable_iters): Define new function.
15258 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
15259 check to evaluate if loop iterations are less than minimum profitable
15260 iterations determined by cost model or minimum vect loop bound defined
15261 by user, whichever is more conservative.
15262 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
15263 run-time check to evaluate if loop iterations are less than minimum
15264 profitable iterations determined by cost model or minimum vect loop
15265 bound defined by user, whichever is more conservative.
15266 (vect_estimate_min_profitable_iterations): New function to estimate
15267 mimimimum iterartions required for vector version of loop to be
15268 profitable over scalar version.
15269 (vect_model_reduction_cost): New function.
15270 (vect_model_induction_cost): New function.
15271 (vect_model_simple_cost): New function.
15272 (vect_cost_strided_group_size): New function.
15273 (vect_model_store_cost): New function.
15274 (vect_model_load_cost): New function.
15275 (vectorizable_reduction): Call vect_model_reduction_cost during
15276 analysis phase.
15277 (vectorizable_induction): Call vect_model_induction_cost during
15278 analysis phase.
15279 (vectorizable_load): Call vect_model_load_cost during analysis phase.
15280 (vectorizable_store): Call vect_model_store_cost during analysis phase.
15281 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
15282 vectorizable_promotion, vectorizable_demotion): Call
15283 vect_model_simple_cost during analysis phase.
15284
15285 2007-06-08 Simon Baldwin <simonb@google.com>
15286
15287 * reg-stack.c (get_true_reg): Readability change. Moved default case
15288 label into direct switch statement scope.
15289
15290 2007-06-08 Simon Baldwin <simonb@google.com>
15291
15292 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
15293 in gcc_assert() with '==' comparison.
15294
15295 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15296
15297 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
15298 TARGET_ABM handling of x86_popcnt variable.
15299
15300 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15301
15302 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
15303 __builtin_copysignq and __builtin_infq built-in functions.
15304
15305 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15306
15307 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
15308 SSE4.2 section. Correct built-in function names in SSE4A section.
15309
15310 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
15311
15312 PR tree-optimization/32243
15313 * tree-vect-transform.c (vectorizable_type_promotion): Move check
15314 for ncopies after ratio check between nunits_out and nunits_in.
15315 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
15316
15317 2007-06-08 Dorit Nuzman <dorit@il.ibm.com>
15318
15319 PR tree-optimization/32224
15320 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
15321 vectorization upon a non GIMPLE_MODIFY_STMT.
15322
15323 2007-06-08 Christian Bruel <christian.bruel@st.com>
15324
15325 PR target/29953
15326 * config/sh/sh.md (doloop_end): New pattern and splitter.
15327 * loop-iv.c (simple_rhs_p): Check for hardware registers.
15328
15329 2007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
15330
15331 PR middle-end/32209
15332 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
15333 functions.
15334 (verify_dominators): Do not change dominance tree.
15335
15336 2007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15337
15338 * config/sh/constraints.md: New file.
15339 * config/sh/sh.c: Include tm-constrs.h.
15340 (reg_class_from_letter): Remove.
15341 (prepare_cbranch_operands): Use satisfies_constraint_*
15342 function instead of macro.
15343 (andcosts, broken_move, sh_secondary_reload): Likewise.
15344 * config/sh/predicates.md (trapping_target_operand): Likewise.
15345 (and_operand, arith_operand, arith_reg_or_0_operand,
15346 cmp_operand, logical_operand, target_operand,
15347 ua_address_operand, ua_offset, xor_operand): Likewise.
15348 * config/sh/sh.md: Include constraints.md.
15349 (*movsicc_t_false): Use satisfies_constraint_* function
15350 instead of macro.
15351 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
15352 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
15353 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
15354 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
15355 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
15356 (REG_CLASS_FROM_CONSTRAINT): Remove.
15357 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
15358 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
15359 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
15360 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
15361 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
15362 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
15363 function instead of macro.
15364 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
15365 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
15366 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
15367 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
15368 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
15369 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
15370 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
15371 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
15372 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
15373 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
15374 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
15375 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
15376 EXTRA_CONSTRAINT_STR): Likewise.
15377 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
15378
15379 2007-06-07 Geoffrey Keating <geoffk@apple.com>
15380
15381 * config/i386/darwin.h (STACK_BOUNDARY): Define.
15382
15383 2007-06-07 Simon Martin <simartin@users.sourceforge.net>
15384
15385 PR c++/30759
15386 * c-common.h (flag_cpp0x): Replaced by...
15387 (cxx_dialect): ... this new variable specifying the C++ dialect that
15388 is used.
15389 * c-common.c (flag_cpp0x): Removed.
15390 (cxx_dialect): Defined.
15391 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
15392 cxx_dialect.
15393 * c-opts.c (c_common_post_options): Likewise.
15394 (set_std_cxx98): Set cxx_dialect to cxx98.
15395 (set_std_cxx0x): Set cxx_dialect to cxx0x.
15396
15397 2007-06-07 Geoffrey Keating <geoffk@apple.com>
15398 Hui-May Chang <hm.chang@apple.com>
15399
15400 * doc/invoke.texi (Darwin Options): Update documentation for
15401 -mmacosx-version-min.
15402 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
15403 * config/darwin-driver.c: New file.
15404 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
15405 * config/t-darwin (darwin-driver.o): New rule.
15406
15407 * config/darwin-c.c (version_as_macro): Ignore low digit.
15408
15409 2007-06-07 Uros Bizjak <ubizjak@gmail.com>
15410
15411 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
15412 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
15413 (CSGNMODE): New mode macro.
15414 (CSGNVMODE): New mode attribute.
15415 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
15416 expander using CSGNMODE mode macro. Handle TFmode.
15417 (copysign<mode>3_const): Rename from copysignsf3_const and
15418 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
15419 Handle TFmode.
15420 (copysign<mode>3_var): Rename from copysignsf3_var and
15421 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
15422 Handle TFmode.
15423 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
15424 mode macro. Handle TFmode.
15425 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
15426 (iortf3, *iortf3): Ditto.
15427 (xortf3, *xortf3): Ditto.
15428 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
15429 TFmode and TImode masks.
15430 (ix86_expand_copysign): Expand TFmode copysign insn.
15431 (IX86_BUILTIN_INFQ): New.
15432 (IX86_BUILTIN_FABSQ): Ditto.
15433 (IX86_BUILTIN_COPYSIGNQ): Ditto.
15434 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
15435 [__builtin_fabsq]: Ditto.
15436 [__builtin_copysignq]: Ditto.
15437 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
15438 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
15439 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
15440 ix86_expand_binop_builtin().
15441
15442 2007-06-07 Bob Wilson <bob.wilson@acm.org>
15443
15444 * config/xtensa/lib1funcs.asm: Clean up whitespace.
15445
15446 2007-06-07 Steve Ellcey <sje@cup.hp.com>
15447
15448 PR target/31850
15449 * rtl.h (push_to_sequence2): New.
15450 * emit-rtl.c (push_to_sequence2): New.
15451 * function.c (assign_parm_data_all): Add new fields.
15452 (assign_parm_setup_block): Call push_to_sequence2 instead of
15453 push_to_sequence.
15454 (assign_parm_setup_reg): Ditto.
15455 (assign_parm_setup_stack): Ditto.
15456 (assign_parms_unsplit_complex): Ditto.
15457 (assign_parms): Change field name.
15458
15459 2007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
15460
15461 PR tree-optimization/32220
15462 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
15463 phi node is reached before defining statement.
15464
15465 2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
15466
15467 PR tree-opt/32231
15468 * tree-vect-transform.c (vectorizable_call): Call update_stmt
15469 after changing the right hand side of the assignment.
15470
15471 2007-06-06 Eric Christopher <echristo@apple.com>
15472
15473 * config.gcc (i?86-*-darwin*): Remove arch parameter.
15474 (x86_64-*-darwin*): Ditto.
15475 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
15476 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
15477
15478 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15479
15480 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
15481 coding conventions.
15482 (add_key): Likewise.
15483 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
15484 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
15485 variable names.
15486 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
15487 macros.
15488 (add_cost_one_coalesce): Likewise.
15489 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
15490 variable names. Rename orig to orig_name for consistency.
15491 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
15492 coding conventions.
15493 (cprop_into_successor_phis): Avoid using C++ keywords as variable
15494 names.
15495 (record_equivalences_from_stmt): Likewise.
15496 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
15497 the coding conventions.
15498 (memory_ssa_name_same): Likewise.
15499 (dse_optimize_stmt): Likewise.
15500 (dse_record_phis): Likewise.
15501 (dse_finalize_block): Likewise.
15502 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
15503 keywords as variable names.
15504 (may_move_till): Cast according to the coding conventions.
15505 (force_move_till_expr): Avoid using C++ keywords as variable names.
15506 (force_move_till): Cast according to the coding conventions.
15507 (memref_hash): Likewise.
15508 (memref_eq): Likewise.
15509 (gather_mem_refs_stmt): Likewise.
15510 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
15511 using C++ keywords as variable names.
15512 (idx_find_step): Cast according to the coding conventions.
15513 (idx_record_use): Likewise.
15514 (find_depends): Likewise.
15515 (prepare_decl_rtl): Likewise.
15516 (mbc_entry_hash): Likewise.
15517 (mbc_entry_eq): Likewise.
15518 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
15519 (simplify_replace_tree): Avoid using C++ keywords as variable names.
15520 (idx_infer_loop_bounds): Cast according to the coding conventions.
15521 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15522 * tree-ssa-math-opts.c (occ_new ): Likwise.
15523 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
15524 macros.
15525 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
15526 variable names.
15527 (add_use_op): Likewise.
15528 (add_vop): Likewise.
15529 (add_vuse_op): Likewise.
15530 (add_vdef_op): Likewise.
15531 (get_expr_operands): Likewise.
15532 (push_stmt_changes): Use type safe memory macros.
15533 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
15534 keywords as variable names.
15535 (conditional_replacement): Likewise.
15536 (minmax_replacement): Likewise.
15537 (abs_replacement): Likewise.
15538 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
15539 coding conventions.
15540 (insert_fake_stores): Avoid using C++ keywords as variable names.
15541 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
15542 conventions.
15543 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
15544 (heapvar_insert): Use type safe memory macros.
15545 (new_var_info): Cast according to the coding conventions.
15546 (new_constraint): Likewise.
15547 (remove_preds_and_fake_succs): Use type safe memory macros.
15548 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
15549 conventions.
15550 (thread_single_edge): Likewise.
15551 (thread_through_loop_header): Likewise.
15552
15553 2007-06-06 Eric Christopher <echristo@apple.com>
15554
15555 * config/i386/i386.c (override_options): Move handling
15556 of TARGET_SUBTARGET* earlier.
15557
15558 2007-06-06 Paolo Bonzini <bonzini@gnu.org>
15559
15560 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
15561 use %n on printf.
15562
15563 2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
15564
15565 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
15566 emited outside of basic block.
15567 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
15568 the created blocks.
15569 * rtl.h (delete_insn_chain): Declaration changed.
15570 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
15571 non-removed insns.
15572 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
15573 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
15574 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
15575 to delete_insn_chain.
15576 (rtl_verify_flow_info_1): Verify that the insns in header and footer
15577 do not have bb field set.
15578 (rtl_verify_flow_info): Verify that insns between basic blocks do not
15579 have bb field set.
15580 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
15581 * cfgcleanup.c (try_optimize_cfg): Ditto.
15582
15583 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15584
15585 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
15586 (lambda_body_vector_new): Use type safe memory macros.
15587 (lambda_linear_expression_new): Likewise.
15588 (lambda_loopnest_new): Likewise.
15589 (lambda_lattice_new): Likewise.
15590 (replace_uses_equiv_to_x_with_y): Cast according to the coding
15591 conventions. Use type safe memory macros.
15592 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
15593 (lambda_body_vector_s): Likewise.
15594 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
15595 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
15596
15597 2007-06-06 Richard Guenther <rguenther@suse.de>
15598
15599 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
15600 if we need to schedule cfg_cleanup.
15601 (tree_ssa_forward_propagate_single_use_vars): Do so.
15602
15603 2007-06-06 Ian Lance Taylor <iant@google.com>
15604
15605 * fold-const.c (merge_ranges): If range_successor or
15606 range_predecessor fail, just return 0.
15607
15608 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
15609
15610 PR tree-optimization/32216
15611 * tree-vectorizer.c (supportable_widening_operation): Determine
15612 signedness of FIX_TRUNC_EXPR from output operand.
15613 (supportable_narrowing_operation): Ditto.
15614 * tree-vect-generic.c (expand_vector_operations_1): Determine
15615 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
15616 from input operand.
15617
15618 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15619
15620 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
15621 (struct pta): ...from here. Change flags to unsigned to avoid
15622 excessive casting (as it is used as a bit mask).
15623 (override_options): Add casts according to the coding convenventions.
15624 (x86_64_elf_unique_section): Likewise.
15625 (examine_argument): Avoid using C++ keywords as variable names.
15626 (construct_container): Likewise.
15627 (legitimize_pic_address): Likewise.
15628 (get_dllimport_decl): Cast according to the coding conventions. Use
15629 type safe memory macros.
15630 (legitimize_address): Cast according to the coding conventions.
15631 (emit_i387_cw_initialization): Corrected the type of slot to enum
15632 ix86_stack_slot.
15633 (ix86_init_machine_status): Use type safe memory macros.
15634 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
15635 (bdesc_pcmpistr): Likewise.
15636 (bdesc_crc32): Likewise.
15637 (bdesc_sse_3arg): Likewise.
15638 (bdesc_2arg): Likewise.
15639 (bdesc_1arg): Likewise.
15640 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
15641 (ix86_expand_sse_pcmpistr): Likewise.
15642 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
15643 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
15644 int to match the langhook definition.
15645 (ix86_builtin_conversion): Change the type of code to unsigned init to
15646 match the langhook definition.
15647 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
15648 names.
15649 (ix86_preferred_output_reload_class): Likewise.
15650 (ix86_cannot_change_mode_class): Likewise.
15651 (ix86_memory_move_cost): Likewise.
15652 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
15653 avoid excessive casting later on.
15654 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
15655
15656 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
15657
15658 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
15659 as flags setting insn.
15660 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
15661
15662 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
15663
15664 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
15665 (UNSPEC_ROUND): New.
15666 ("sse4_1_round<mode>2"): New insn pattern.
15667 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
15668 SSE4.1 targets.
15669 ("floor<mode>2"): Rename from floordf2 and floorsf2. Macroize
15670 expander using SSEMODEF mode macro. Expand using
15671 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15672 ("ceil<mode>2"): Rename from ceildf2 and ceilsf2. Macroize
15673 expander using SSEMODEF mode macro. Expand using
15674 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15675 ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2. Macroize
15676 expander using SSEMODEF mode macro. Expand using
15677 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15678 * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
15679 UNSPEC_ROUND instead of UNSPEC_ROUNDP.
15680 ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
15681 UNSPEC_ROUNDS.
15682
15683 2007-06-06 Jan Sjodin <jan.sjodin@amd.com>
15684 Sebastian Pop <sebpop@gmail.com>
15685
15686 * lambda.h (build_linear_expr): New.
15687 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
15688 Use build_linear_expr, call fold and force_gimple_operand.
15689 (lambda_loopnest_to_gcc_loopnest): Check that there is
15690 something to insert.
15691 * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
15692
15693 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
15694
15695 PR preprocessor/23479
15696 * doc/extend.texi: Document the 0b-prefixed binary integer
15697 constant extension.
15698
15699 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
15700
15701 PR tree-optimization/32215
15702 * tree-vectorizer.c (supportable_widening_operation): Return false
15703 for unsupported FIX_TRUNC_EXPR tree code.
15704 (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
15705
15706 2007-06-06 Nathan Froyd <froydnj@codesourcery.com>
15707
15708 * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
15709 register on SPE targets. Change documentation to reflect
15710 reality.
15711 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15712 Change FIXED_SCRATCH to 14 and document why we're keeping r14
15713 out of the register allocation pool.
15714 (rs6000_reg_live_or_pic_offset_p): New function.
15715 (rs6000_emit_prologue): Move the actual saving of LR up to free
15716 r0 for holding r11. Split saving of SPE 64-bit registers into
15717 its own case. Ensure that offsets will always be in-range for
15718 'evstdd' by using r11 as a scratch register to point at the start
15719 of the SPE save area. Save r11 if necessary, as it is the static
15720 chain register.
15721 (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
15722 into its own case. Ensure that offsets will always be in-range
15723 for 'evldd' by using r11 as a scratch register to point at the
15724 start of the SPE save area. Also adjust r11 when restoring
15725 the stack pointer to compensate for pre-loading r11.
15726
15727 2007-06-05 Thomas Neumann <tneumann@users.sourceforge.net>
15728
15729 * cfg.c (init_flow): Use type safe memory macros.
15730 (alloc_block): Likewise.
15731 (unchecked_make_edge): Likewise.
15732 (dump_flow_info): Avoid using C++ keywords as variable names.
15733 (copy_original_table_clear): Cast according to the coding conventions.
15734 (copy_original_table_set): Likewise.
15735 * cfgexpand (label_rtx_for_bb): Likewise.
15736 (expand_gimple_basic_block): Likewise.
15737 * cfghooks.c (dump_bb): Likewise.
15738 (lv_adjust_loop_header_phi): Avoid using C++ keywords as
15739 variable names.
15740 (lv_add_condition_to_bb): Likewise.
15741 * cfglayout (relink_block_chain): Cast according to the coding
15742 conventions.
15743 (fixup_reorder_chain): Likewise.
15744 (fixup_fallthru_exit_predecessor): Likewise.
15745 * cfgloop.c (glb_enum_p): Likewise.
15746 (get_exit_description): Likewise.
15747 (dump_recorded_exit): Likewise.
15748 * cfgloop.h (enum loop_estimation): Move out of struct scope...
15749 (struct loop): ... from here.
15750 * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
15751 conventions.
15752 * cfgrtl.c (rtl_create_basic_block): Likewise.
15753 (rtl_split_block): Likewise.
15754 (rtl_dump_bb): Likewise.
15755 (cfg_layout_split_block): Likewise.
15756 (init_rtl_bb_info): Use typesafe memory macros.
15757
15758 * graphds.h (struct graph_edge): Renamed edge to graph_edge.
15759 * graphds.h: Updated all usages of edge to graph_edge.
15760 * graphds.c: Likewise.
15761 * cfgloopanal.c: Likewise.
15762
15763 2007-06-05 Ian Lance Taylor <iant@google.com>
15764
15765 * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
15766 PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
15767 (extract_range_from_assert): Set TREE_NO_WARNING when creating an
15768 expression.
15769 (test_for_singularity): Likewise.
15770
15771 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
15772
15773 * config/i386/constraints.md ("Y2"): Replaced by ...
15774 ("Yt"): This.
15775 * config/i386/i386.md: Likewise.
15776 * config/i386/mmx.md: Likewise.
15777 * config/i386/sse.md: Likewise.
15778
15779 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
15780
15781 * config/i386/constraints.md ("z"): Replaced by ...
15782 ("Y0"): This.
15783 * config/i386/sse.md (sse4_1_blendvpd): Likewise.
15784 (sse4_1_blendvps): Likewise.
15785 (sse4_1_pblendvb): Likewise.
15786 (sse4_2_pcmpestr): Likewise.
15787 (sse4_2_pcmpestrm): Likewise.
15788 (sse4_2_pcmpestr_cconly): Likewise.
15789 (sse4_2_pcmpistr): Likewise.
15790 (sse4_2_pcmpistrm): Likewise.
15791 (sse4_2_pcmpistr_cconly): Likewise.
15792
15793 2007-06-05 Razya Ladelsky <razya@il.ibm.com>
15794
15795 * matrix-reorg.c (transform_access_sites): Fix computation.
15796 (transform_allocation_sites): Same.
15797
15798 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
15799
15800 * config/i386/i386.c (override_options): Use
15801 TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
15802
15803 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
15804
15805 * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
15806 (nonimm_not_xmm0_operand): Ditto.
15807 * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
15808 as operand[0] and operand[1] predicate. Use "nonimm_not_xmm0_operand"
15809 as operand[2] predicate. Require "z" class XMM register for
15810 operand[3]. Adjust asm template.
15811 ("sse4_1_blendvpd"): Ditto.
15812 ("sse4_1_pblendvb"): Ditto.
15813 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
15814 force op2 into xmm0 register for variable blend instructions.
15815
15816 2007-06-04 Tom Tromey <tromey@redhat.com>
15817
15818 * c-tree.h (start_enum): Update.
15819 (build_enumerator): Likewise.
15820 * c-decl.c (enum_next_value): Removed.
15821 (enum_overflow): Likewise.
15822 (start_enum): Add c_enum_contents argument. Don't use globals.
15823 (build_enumerator): Likewise.
15824 * c-tree.h (struct c_enum_contents): New struct.
15825
15826 2007-06-04 Tom Tromey <tromey@redhat.com>
15827
15828 * c-common.c (c_common_get_alias_set): Fix indentation.
15829
15830 2007-06-04 Ian Lance Taylor <iant@google.com>
15831
15832 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
15833 to overflow, reduce overflow infinity to regular infinity.
15834 (vrp_var_may_overflow): New static function.
15835 (vrp_visit_phi_node): Check vrp_var_may_overflow.
15836
15837 2007-06-04 Kazu Hirata <kazu@codesourcery.com>
15838
15839 * stor-layout.c (layout_type): Remove duplicate code.
15840
15841 2007-06-04 Uros Bizjak <ubizjak@gmail.com>
15842
15843 PR c/32191
15844 * c-common.c (c_define_builtins): Call targetm.init_builtins ()
15845 before build_common_builtin_nodes ().
15846
15847 2007-06-04 Steve Ellcey <sje@cup.hp.com>
15848
15849 PR target/31733
15850 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
15851
15852 2007-06-04 Jan Hubicka <jh@suse.cz>
15853
15854 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
15855 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
15856 instead of _stat version.
15857
15858 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
15859
15860 PR tree-optimization/32194
15861 * tree-predcom.c (determine_offset): Check that both references have
15862 the same type.
15863
15864 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
15865
15866 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
15867 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
15868 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
15869 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
15870 Add argument to iterate_fix_dominators call.
15871 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
15872 * gcse.c (hoist_code): Change domby to vector.
15873 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
15874 Add argument to iterate_fix_dominators call.
15875 * loop-doloop.c (doloop_modify): Changed recount_dominator to
15876 recompute_dominator.
15877 * lambda-code.c (perfect_nestify): Ditto.
15878 * cfgloopanal.c: Include graphds.h.
15879 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
15880 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
15881 (mark_irreducible_loops): Use graphds_scc. Remove argument from
15882 add_edge call.
15883 * graphds.c: New file.
15884 * graphds.h: New file.
15885 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
15886 (get_dominated_by, get_dominated_by_region): Change return type to
15887 vector.
15888 (verify_dominators): Recompute all dominators and compare the results.
15889 (recount_dominator): Renamed to ...
15890 (recompute_dominator): ... this. Do not check that the block is
15891 dominated by entry.
15892 (iterate_fix_dominators): Reimplemented.
15893 (prune_bbs_to_update_dominators, root_of_dom_tree,
15894 determine_dominators_for_sons): New functions.
15895 * et-forest.c (et_root): New function.
15896 * et-forest.h (et_root): Declare.
15897 * Makefile.in (graphds.o): Add.
15898 (cfgloopanal.o): Add graphds.h dependency.
15899 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
15900 * basic-block.h (get_dominated_by, get_dominated_by_region,
15901 iterate_fix_dominators): Declaration changed.
15902 (recount_dominator): Renamed to ...
15903 (recompute_dominator): ... this.
15904 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
15905 (thread_through_all_blocks): Do not free dominance info.
15906
15907 2007-06-03 Andreas Schwab <schwab@suse.de>
15908
15909 * config/m68k/m68k.c (override_options): Don't override
15910 REAL_MODE_FORMAT.
15911 * config/m68k/m68k-modes.def (SF, DF): Define to use
15912 motorola_single_format and motorola_double_format, resp.
15913 * real.c (motorola_single_format): Renamed from
15914 coldfire_single_format.
15915 (motorola_double_format): Renamed from coldfire_double_format.
15916 (encode_ieee_extended): Generate a proper canonical NaN image
15917 respecting canonical_nan_lsbs_set.
15918 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
15919 true.
15920 * real.h: Adjust declarations.
15921
15922 2007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
15923
15924 PR target/32163
15925 * config/sh/sh.md (symGOT_load): Don't schedule insns when
15926 the symbol is generated with the stack protector.
15927
15928 2007-06-03 Kazu Hirata <kazu@codesourcery.com>
15929
15930 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
15931 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
15932 "interrupt".
15933 * doc/extend.texi (interrupt): Mention m68k.
15934
15935 2007-06-02 Uros Bizjak <ubizjak@gmail.com>
15936
15937 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
15938 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
15939 (ix86_expand_sse_pcmpestr): Do not check operands for
15940 "register_operand", when insn operand predicate is "register_operand".
15941 (ix86_expand_sse_pcmpistr): Ditto.
15942
15943 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
15944 Uros Bizjak <ubizjak@gmail.com>
15945
15946 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
15947 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
15948 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
15949 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
15950 * config/i386/constraints.md ("z"): New register constraint
15951 for members of SSE_FIRST_REG class.
15952 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
15953 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
15954 SSE_FIRST_REG class.
15955 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
15956 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
15957 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
15958 (IX86_BUILTIN_PCMPESTRM128): Likewise.
15959 (IX86_BUILTIN_PCMPESTRA128): Likewise.
15960 (IX86_BUILTIN_PCMPESTRC128): Likewise.
15961 (IX86_BUILTIN_PCMPESTRO128): Likewise.
15962 (IX86_BUILTIN_PCMPESTRS128): Likewise.
15963 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
15964 (IX86_BUILTIN_PCMPISTRI128): Likewise.
15965 (IX86_BUILTIN_PCMPISTRM128): Likewise.
15966 (IX86_BUILTIN_PCMPISTRA128): Likewise.
15967 (IX86_BUILTIN_PCMPISTRC128): Likewise.
15968 (IX86_BUILTIN_PCMPISTRO128): Likewise.
15969 (IX86_BUILTIN_PCMPISTRS128): Likewise.
15970 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
15971 (struct builtin_description): Change "flag" field to unsigned.
15972 (bdesc_pcmpestr): New builtin description table.
15973 (bdesc_pcmpistr): Likewise.
15974 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
15975 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
15976 Initialize pcmp[ei]str[im] insns for SSE4.2.
15977 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
15978 (ix86_expand_sse_pcmpistr): Likewise.
15979 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
15980 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
15981 (UNSPEC_PCMPISTR): Likewise.
15982 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
15983 (sse4_2_pcmpestri):New isns pattern.
15984 (sse4_2_pcmpestrm): Likewise.
15985 (sse4_2_pcmpestr_cconly): Likewise.
15986 (sse4_2_pcmpistr): New insn patern and splitter.
15987 (sse4_2_pcmpistri):New isns pattern.
15988 (sse4_2_pcmpistrm): Likewise.
15989 (sse4_2_pcmpistr_cconly): Likewise.
15990 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
15991 in SSE4.2.
15992
15993 2007-06-01 David Daney <ddaney@avtrex.com>
15994
15995 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
15996 LOADGP_ABSOLUTE and not binds_local_p.
15997
15998 2007-06-01 Geoffrey Keating <geoffk@apple.com>
15999
16000 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
16001
16002 2007-06-01 Ian Lance Taylor <iant@google.com>
16003
16004 * tree-vrp.c (compare_name_with_value): Always set
16005 used_strict_overflow if we get a result from the variable itself.
16006
16007 2007-06-01 Ian Lance Taylor <iant@google.com>
16008
16009 PR rtl-optimization/31455
16010 * lower-subreg.c (find_decomposable_subregs): Don't decompose
16011 subregs which have a cast between modes which are not tieable.
16012
16013 2007-06-01 Uros Bizjak <ubizjak@gmail.com>
16014
16015 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
16016 breaks after return statements.
16017
16018 2007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
16019
16020 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
16021 only after no_new_pseudos.
16022
16023 2007-05-31 Eric Christopher <echristo@apple.com>
16024
16025 * expr.c (convert_move): Assert that we don't have a BLKmode
16026 operand.
16027 (store_expr): Handle BLKmode moves by calling emit_block_move.
16028
16029 2007-05-31 Daniel Berlin <dberlin@dberlin.org>
16030
16031 * c-typeck.c (build_indirect_ref): Include type in error message.
16032 (build_binary_op): Pass types to binary_op_error.
16033 * c-common.c (binary_op_error): Take two type arguments, print out
16034 types with error.
16035 * c-common.h (binary_op_error): Update prototype.
16036
16037 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
16038
16039 * config/i386/i386.c: Correct coments on -mno-sse4.
16040
16041 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
16042
16043 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
16044 (x86_64-*-*): Likewise.
16045 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
16046 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
16047 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
16048 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
16049 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
16050 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
16051 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
16052 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
16053 (OPTION_MASK_ISA_SSE4): Likewise.
16054 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
16055 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
16056 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
16057 (override_options): Support SSE4.2.
16058 (ix86_build_const_vector): Support SImode and DImode.
16059 (ix86_build_signbit_mask): Likewise.
16060 (ix86_expand_int_vcond): Support V2DImode.
16061 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
16062 (IX86_BUILTIN_CRC32HI): Likewise.
16063 (IX86_BUILTIN_CRC32SI): Likewise.
16064 (IX86_BUILTIN_CRC32DI): Likewise.
16065 (IX86_BUILTIN_PCMPGTQ): Likewise.
16066 (bdesc_crc32): Likewise.
16067 (bdesc_sse_3arg): Likewise.
16068 (ix86_expand_crc32): Likewise.
16069 (ix86_init_mmx_sse_builtins): Support SSE4.2.
16070 (ix86_expand_builtin): Likewise.
16071 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
16072 __SSE4_2__ for -msse4.2.
16073 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
16074 (CRC32MODE): Likewise.
16075 (crc32modesuffix): Likewise.
16076 (crc32modeconstraint): Likewise.
16077 (sse4_2_crc32<mode>): Likewise.
16078 (sse4_2_crc32di): Likewise.
16079 * config/i386/i386.opt (msse4.2): New for SSE4.2.
16080 (msse4): Likewise.
16081 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
16082 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
16083 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
16084 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
16085 (vcondu<mode>): Likewise.
16086 * doc/extend.texi: Document SSE4.2 built-in functions.
16087 * doc/invoke.texi: Document -msse4.2/-msse4.
16088
16089 2007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
16090
16091 PR tree-optimization/32160
16092 * tree-predcom.c (predcom_tmp_var): New function. Mark created
16093 variable as gimple reg.
16094 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
16095
16096 2007-05-31 Kazu Hirata <kazu@codesourcery.com>
16097
16098 * gcc.c (main): Don't consider linker options when issuing the
16099 warning about a linker input file not being used.
16100
16101 2007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16102
16103 * tree-vrp.c (compare_names): Initialize sop.
16104
16105 2007-05-30 Dirk Mueller <dmueller@suse.de>
16106
16107 * cgraphunit.c (cgraph_analyze_function): Remove
16108 computation of inline parameters.
16109
16110 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
16111
16112 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
16113
16114 2007-05-30 Richard Sandiford <richard@codesourcery.com>
16115
16116 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
16117 Add vx-common.h. Include vxworks.h between vx-common.h and
16118 arm/vxworks.h.
16119 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
16120 redefining.
16121 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
16122 (TARGET_ASM_DESTRUCTOR): Likewise.
16123 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
16124 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
16125 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
16126 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
16127 (VXWORKS_ENDIAN_SPEC): Define.
16128 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
16129 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
16130 VXWORKS_* equivalents.
16131 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
16132 (ASM_FILE_START): Delete.
16133 (TARGET_VERSION): Reformat.
16134 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
16135 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
16136 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
16137 (FPBIT, DPBIT): Define.
16138 (fp-bit.c, dp-bit.c): New rules.
16139 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
16140 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
16141 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
16142 * config/arm/arm.h: Include vxworks-dummy.h.
16143 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
16144 Mark with ATTRIBUTE_UNUSED.
16145 (arm_override_options): Do not allow VxWorks RTP PIC to be used
16146 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
16147 make it incompatible with -msingle-pic-base.
16148 (arm_function_ok_for_sibcall): Return false for calls that might
16149 go through a VxWorks PIC PLT entry.
16150 (require_pic_register): New function, split out from...
16151 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
16152 for VxWorks RTPs.
16153 (arm_load_pic_register): Handle the VxWorks RTP initialization
16154 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
16155 (arm_emit_call_insn): New function.
16156 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
16157 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
16158 (pic_offset_arm): New pattern.
16159 (call, call_value): Use arm_emit_call_insn.
16160 (call_internal, call_value_internal): New expanders.
16161 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
16162 VxWorks unless __PIC__.
16163
16164 2007-05-30 Eric Christopher <echristo@gmail.com>
16165
16166 * genrecog.c: Include regs.h in generated file.
16167 * genemit.c: Ditto. Fix up formatting.
16168 * config/mn10300/constraints.md: New.
16169 * config/mn10300/mn10300.md: Include.
16170 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
16171 Fix up for removed macro.
16172 * config/mn10300/predicates.md (call_address_operand): Ditto.
16173 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
16174 (CONST_OK_FOR_I): Ditto.
16175 (CONST_OK_FOR_J): Ditto.
16176 (CONST_OK_FOR_K): Ditto.
16177 (CONST_OK_FOR_L): Ditto.
16178 (CONST_OK_FOR_M): Ditto.
16179 (CONST_OK_FOR_N): Ditto.
16180 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
16181 (OK_FOR_Q): Ditto.
16182 (OK_FOR_R): Ditto.
16183 (OK_FOR_T): Ditto.
16184 (EXTRA_CONSTRAINT): Ditto.
16185
16186 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
16187
16188 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
16189 Remove defines.
16190 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
16191 OPTION_MASK_ISA_64BIT.
16192 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
16193
16194 2007-05-30 Richard Guenther <rguenther@suse.de>
16195
16196 PR middle-end/32152
16197 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
16198 types for comparison.
16199 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
16200 with original typed arguments.
16201 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
16202
16203 2007-05-30 Jakub Jelinek <jakub@redhat.com>
16204
16205 PR tree-optimization/31769
16206 * except.c (duplicate_eh_regions): Clear prev_try if
16207 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
16208
16209 2007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
16210
16211 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
16212 * tree-ssa-sink.c (statement_sink_location): Return basic block and
16213 bsi of the location where statements should be inserted.
16214 (sink_code_in_bb): Take bsi from statement_sink_location.
16215 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
16216 instead of bsi_start.
16217 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
16218 bsi_insert_after.
16219 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
16220 (bsi_move_before): Document inconsistency with bsi_move_after.
16221 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
16222
16223 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
16224
16225 * config/i386/i386.h (TARGET_ABM): New define.
16226 (TARGET_POPCNT): Ditto.
16227 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
16228 New temporary defines to redefine from OPTION_ISA_* defines.
16229 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
16230 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
16231 (ix86_isa_flags): New extern int declaration.
16232 (TARGET_SUBTARGET_DEFAULT): New define.
16233 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
16234 (TARGET_SUBTARGET32_DEFAULT): Ditto.
16235 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
16236 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
16237 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
16238 * config/i386/darwin.h: Change TARGET_64BIT define to
16239 OPTION_ISA_64BIT.
16240
16241 * config/i386/i386.opt (m3dnowa): Define as undocumented option
16242 using existing "ix86_isa_flags" varible.
16243 (m32, m64): Use existing "ix86_isa_flags" variable.
16244 (mmmx, m3dnow): Ditto.
16245 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
16246 (mabm): Define as non-negative option using "x86_abm" variable.
16247 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
16248
16249 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
16250 Rewrite feature test bitmap.
16251 (ix86_isa_flags): New initialized global int varible.
16252 (ix86_isa_flags_explicit): New static int variable.
16253 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
16254 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
16255 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
16256 target_flags_explicit.
16257 (override_options): Remove "target_enable" and "target_disable" fields
16258 from "struct ptt". Update processor_target_table accordingly. Remove
16259 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
16260 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
16261 "target_flags" and "ix86_isa_flags_explicit" instead of
16262 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
16263 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
16264 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
16265 to true when either of PTA_POPCNT or PTA_ABM is set in
16266 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
16267 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
16268 processor_alias_table flags entry. Remove handling of
16269 "target_enable" and "target_disable" fields of processor_target_table.
16270 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
16271 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
16272 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
16273 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
16274 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
16275 "target_flags".
16276 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
16277
16278 2007-05-29 David Daney <ddaney@avtrex.com>
16279
16280 PR gcc/31975
16281 * config/mips/mips.c (mips_output_mi_thunk): Emit
16282 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
16283
16284 2007-05-29 Hui-May Chang <hm.chang@apple.com>
16285 * config/i386/i386.c (ix86_function_regparm): Added checking of
16286 ix86_force_align_arg_pointer to determine the number of
16287 register parameters.
16288
16289 2007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
16290
16291 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
16292 (SET_DR_MISALIGNMENT): New.
16293 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
16294 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
16295 Use SET_DR_MISALIGNMENT.
16296 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
16297 pointer.
16298 * tree-data-ref.c (create_data_ref, compute_all_dependences,
16299 find_loop_nest): Export.
16300 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
16301 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
16302 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
16303 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
16304 New macros.
16305 (struct mem_ref): Add field reuse_distance.
16306 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
16307 Initialize reuse_distance field.
16308 (issue_prefetch_ref): Select temporality of prefetch according to
16309 reuse_distance.
16310 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
16311 self_reuse_distance, determine_loop_nest_reuse): New functions.
16312 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
16313 (tree_ssa_prefetch_arrays): Dump L2 cache size.
16314 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
16315 dependency.
16316
16317 2007-05-29 Daniel Berlin <dberlin@dberlin.org>
16318
16319 * tree-ssa-alias.c: Add aliasing overview.
16320
16321 2007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
16322 Danny Smith <dannysmith@users.sourceforge.net>
16323
16324 PR target/29498
16325 * config/i386/t-crtfm: Compile crtfastmath.o with
16326 -minline-all-stringops.
16327 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
16328 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
16329
16330 2007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16331
16332 * doc/md.texi: Document constraints on HP PA-RISC.
16333
16334 * pa/constraints.md: New file.
16335 * pa.md: Include constraints.md.
16336 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
16337 (integer_store_memory_operand, ldil_cint_p): New functions.
16338 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
16339 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
16340 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
16341 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
16342 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
16343
16344 2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
16345
16346 PR c/31339
16347 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
16348 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
16349 case POSTDECREMENT_EXPR>): Return the error_mark_node
16350 if either the real or imaginary parts would an
16351 error_mark_node.
16352
16353 2007-05-28 Daniel Berlin <dberlin@dberlin.org>
16354
16355 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
16356 name when we remove it from a call.
16357
16358 2007-05-28 Kazu Hirata <kazu@codesourcery.com>
16359
16360 * targhooks.c (default_narrow_bitfield): Remove.
16361 * targhooks.h: Remove the prototype for
16362 default_narrow_bitfield.
16363
16364 * langhooks-def.h: Remove the prototype for
16365 hook_get_alias_set_0.
16366 * langhooks.c (hook_get_alias_set_0): Remove.
16367
16368 * global.c (EXECUTE_IF_CONFLICT): Remove.
16369
16370 2007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
16371
16372 PR tree-opt/32100
16373 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
16374 return true when truth_value_p is true and the type
16375 is of signed:1.
16376
16377 2007-05-28 Gerald Pfeifer <gerald@pfeifer.com>
16378
16379 * doc/install.texi (Prerequisites): We no longer require Autoconf
16380 2.13 for the top-level.
16381
16382 2007-05-28 Uros Bizjak <ubizjak@gmail.com>
16383
16384 * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
16385 memory access via x86_expand_vector_move_misalign() only for
16386 TImode values on 32-bit targets.
16387
16388 2007-05-28 Razya Ladelsky <razya@il.ibm.com>
16389
16390 * matrix-reorg.c: New file. Implement matrix flattening and
16391 transposing optimization.
16392 * tree-pass.h: Add matrix reorg pass.
16393 * common.opt: Add fipa-mreorg flag.
16394 * Makefile.in: Add matrix-reorg.c.
16395 * passes.c: Add matrix reorg pass.
16396 * varpool.c (add_new_static_var): New function.
16397 * cgraph.h (add_new_static_var): Declare.
16398
16399 2007-05-27 Eric Christopher <echristo@apple.com>
16400
16401 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
16402 sp_offset depending on stack size. Save r12 depending
16403 on registers we're saving later.
16404 (rs6000_emit_epilogue): Update sp_offset depending only
16405 on stack size.
16406
16407 2007-05-27 Zdenek Dvorak <dvorakz@suse.cz>
16408
16409 * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
16410 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
16411 * ifcvt.c (if_convert): Ditto.
16412 * tree-ssa-threadupdate.c (thread_block): Ditto.
16413 (thread_through_all_blocks): Ditto. Assert that loops were analysed.
16414 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
16415 verify_loop_closed_ssa): Check number_of_loops instead of
16416 current_loops.
16417 * predict.c (tree_estimate_probability): Ditto.
16418 * tree-if-conv.c (main_tree_if_conversion): Ditto.
16419 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16420 * modulo-sched.c (sms_schedule): Ditto.
16421 * tree-scalar-evolution.c (scev_const_prop): Ditto.
16422 (scev_finalize): Do not do anything if scev analysis was not
16423 initialized.
16424 * cfgloopanal.c (mark_irreducible_loops): Do not check whether
16425 current_loops == NULL.
16426 (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
16427 * loop-init.c (loop_optimizer_init): Do not free current_loops when
16428 there are no loops.
16429 (loop_optimizer_finalize): Assert that loops were analyzed.
16430 (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
16431 rtl_doloop): Check number_of_loops instead of current_loops.
16432 * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
16433 current_loops == NULL.
16434 (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
16435 gate_tree_vectorize tree_linear_transform, check_data_deps,
16436 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
16437 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
16438 Check number_of_loops instead of current_loops.
16439 (tree_ssa_loop_done): Do not check whether current_loops == NULL.
16440 * tree-ssa-pre.c (fini_pre): Do not take do_fre argument. Always
16441 free loops if available.
16442 (execute_pre): Do not pass do_fre to fini_pre.
16443
16444 2007-05-27 Tobias Burnus <burnus@net-b.de>
16445
16446 PR middle-end/32083
16447 * real.c (mpfr_from_real): Fix sign of -Inf.
16448
16449 2007-05-27 H.J. Lu <hongjiu.lu@intel.com>
16450
16451 * tree-vect-transform.c (vectorizable_conversion): Initialize
16452 tree_code variables to ERROR_MARK.
16453 (vectorizable_type_demotion): Likewise.
16454 (vectorizable_type_promotion): Likewise.
16455
16456 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
16457
16458 PR target/32065
16459 * config/i386/i386.md (movti): Handle push operands via
16460 ix86_expand_push().
16461
16462 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
16463
16464 * basic-block.h: Remove the prototype for merge_seq_blocks.
16465 * cfgcleanup.c (merge_seq_blocks): Remove.
16466
16467 * tree-flow.h: Remove the prototype for is_aliased_with.
16468 * tree-ssa-alias.c (is_aliased_with): Remove.
16469
16470 2007-05-26 H.J. Lu <hongjiu.lu@intel.com>
16471
16472 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
16473
16474 * config/i386/i386.c (ix86_expand_sse4_unpack): New.
16475
16476 * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
16477 ix86_expand_sse4_unpack if SSE4.1 is enabled.
16478 (vec_unpacks_hi_v16qi): Likewise.
16479 (vec_unpacku_lo_v16qi): Likewise.
16480 (vec_unpacks_lo_v16qi): Likewise.
16481 (vec_unpacku_hi_v8hi): Likewise.
16482 (vec_unpacks_hi_v8hi): Likewise.
16483 (vec_unpacku_lo_v8hi): Likewise.
16484 (vec_unpacks_lo_v8hi): Likewise.
16485 (vec_unpacku_hi_v4si): Likewise.
16486 (vec_unpacks_hi_v4si): Likewise.
16487 (vec_unpacku_lo_v4si): Likewise.
16488 (vec_unpacks_lo_v4si): Likewise.
16489
16490 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
16491
16492 * c-typeck.c, config/arm/arm.c, config/darwin.c,
16493 config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
16494 omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
16495 follow spelling conventions in various
16496 warning/error/diagnostic messages.
16497
16498 * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
16499 df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
16500 fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
16501 tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
16502 tree-vrp.c: Fix comment typos. Follow spelling conventions.
16503 * doc/tm.texi: Follow spelling conventions.
16504
16505 2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
16506
16507 PR tree-opt/32090
16508 * tree-ssa-forwprop.c
16509 (forward_propagate_addr_into_variable_array_index): Remove
16510 the lhs argument. Use the type of def_rhs instead of lhs.
16511 (forward_propagate_addr_expr_1): Update use of
16512 forward_propagate_addr_into_variable_array_index.
16513
16514 2007-05-25 Sandra Loosemore <sandra@codesourcery.com>
16515 Nigel Stephens <nigel@mips.com>
16516
16517 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
16518 function attributes, "far" being an alias for "long_call".
16519 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
16520 (mips_near_type_p, mips_far_type_p): New.
16521 (mips_comp_type_attributes): New function to check that attributes
16522 attached to a function type are compatible.
16523 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
16524 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
16525 to the target function of the thunk.
16526 (mips_encode_section_info): Check for "near" and "far" function
16527 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
16528
16529 * config/mips/predicates.md (const_call_insn_operand): Test only
16530 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
16531
16532 * doc/extend.texi (Function Attributes): Document MIPS "near" and
16533 "far" attributes.
16534
16535 * testsuite/gcc.target/mips/near-far-1.c: New test case.
16536 * testsuite/gcc.target/mips/near-far-2.c: New test case.
16537 * testsuite/gcc.target/mips/near-far-3.c: New test case.
16538 * testsuite/gcc.target/mips/near-far-4.c: New test case.
16539
16540 2007-05-25 Eric Christopher <echristo@apple.com>
16541
16542 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
16543 to x86-darwin configurations.
16544 * config/i386/t-darwin: Add softfp support.
16545 * config/i386/t-darwin64: Ditto.
16546 * config/i386/sfp-machine.h: If mach then don't use
16547 aliasing, emit a stub to call.
16548
16549 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
16550
16551 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
16552 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
16553 tree-predcom.c, tree-ssa-alias-warnings.c,
16554 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
16555 comment typos. Follow spelling conventions.
16556 * doc/cpp.texi, doc/invoke.texi: Fix typos.
16557
16558 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
16559
16560 PR target/32065
16561 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
16562 constants into memory. Expand unaligned memory references for
16563 SSE modes via x86_expand_vector_move_misalign() function.
16564
16565 2007-05-25 Uros Bizjak <ubizjak@gmail.com>
16566
16567 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
16568 "memory" attribute for "sseishft" type insn without operands[2].
16569
16570 2007-05-25 Dirk Mueller <dmueller@suse.de>
16571 Marcus Meissner <meissner@suse.de>
16572
16573 * doc/extend.texi (alloc_size): New attribute.
16574 * c-common.c (handle_alloc_size_attribute): New.
16575 * tree-object-size.c (alloc_object_size): Use alloc_size
16576 attribute, if available.
16577
16578 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
16579
16580 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
16581 with MASK_SSE2.
16582 (__builtin_ia32_vec_ext_v2di): Likewise.
16583 (__builtin_ia32_vec_ext_v4si): Likewise.
16584 (__builtin_ia32_vec_ext_v8hi): Likewise.
16585 (__builtin_ia32_vec_ext_v16qi): Likewise.
16586 (__builtin_ia32_vec_set_v8hi): Likewise.
16587
16588 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
16589
16590 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
16591
16592 2007-05-25 Richard Sandiford <richard@codesourcery.com>
16593
16594 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
16595 (arm_is_longcall_p): Rename to...
16596 (arm_is_long_call_p): ...this. Take a single tree argument and
16597 return a bool.
16598 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
16599 (CUMULATIVE_ARGS): Remove call_cookie.
16600 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
16601 (ENCODED_LONG_CALL_ATTR_P): Delete.
16602 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
16603 LONG_CALL_FLAG_CHAR cases.
16604 (ARM_DECLARE_FUNCTION_SIZE): Delete.
16605 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
16606 ARM_DECLARE_FUNCTION_SIZE.
16607 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
16608 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
16609 (arm_encode_call_attribute, current_file_function_operand): Delete.
16610 (arm_function_in_section_p): New function.
16611 (arm_is_longcall_p): Rename to...
16612 (arm_is_long_call_p): ...this. Take the target function as a single
16613 argument and return a bool. Do not rely on call cookies. Check
16614 whether the target symbol is in the same section as the current
16615 function, not just the same compilation unit.
16616 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
16617 (arm_encode_section_info): Don't encode a call type.
16618 * config/arm/arm.md (call, call_value): Update calls to
16619 arm_is_long(_)call_p. Simplify logic.
16620 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
16621 Update calls to arm_is_long(_)call_p.
16622
16623 2007-05-25 Richard Guenther <rguenther@suse.de>
16624
16625 PR tree-optimization/31982
16626 * tree-ssa-forwprop.c
16627 (forward_propagate_addr_into_variable_array_index): Handle arrays
16628 with element size one.
16629
16630 2007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
16631
16632 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
16633 (umulsi3_highpart): Likewise.
16634
16635 2007-05-24 Ian Lance Taylor <iant@google.com>
16636
16637 PR rtl-optimization/32069
16638 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
16639 is NULL.
16640
16641 2007-05-24 Ollie Wild <aaw@google.com>
16642
16643 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
16644 description.
16645
16646 2007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
16647
16648 * postreload-gcse.c (reg_changed_after_insn_p): New function.
16649 (oprs_unchanged_p): Use it to check all registers in a REG.
16650 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
16651 (reg_set_between_after_reload_p): Delete.
16652 (reg_used_between_after_reload_p): Likewise.
16653 (reg_set_or_used_since_bb_start): Likewise.
16654 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
16655 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
16656 Use reg_set_between_p instead of reg_set_between_after_reload_p.
16657 * rtlanal.c (reg_set_p): Check whether REG overlaps
16658 regs_invalidated_by_call, rather than just checking the
16659 membership of REGNO (REG).
16660
16661 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
16662
16663 * doc/passes.texi: Document predictive commoning.
16664 * doc/invoke.texi (-fpredictive-commoning): Document.
16665 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
16666 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
16667 adding indices to the generated name.
16668 (schedule_sm): Pass 0 to get_lsm_tmp_name.
16669 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
16670 * tree-pretty-print.c (op_symbol_1): Renamed to ...
16671 (op_symbol_code): ... and exported.
16672 (dump_omp_clause, op_symbol): Use op_symbol_code
16673 instead of op_symbol_1.
16674 * tree-pass.h (pass_predcom): Declare.
16675 * timevar.def (TV_PREDCOM): New timevar.
16676 * tree-ssa-loop.c (run_tree_predictive_commoning,
16677 gate_tree_predictive_commoning, pass_predcom): New.
16678 * tree-data-ref.c (find_data_references_in_loop): Find the
16679 references in dominance order.
16680 (canonicalize_base_object_address): Ensure that the result has
16681 pointer type.
16682 (dr_analyze_innermost): Export.
16683 (create_data_ref): Code to fail for references with invariant
16684 address moved ...
16685 (find_data_references_in_stmt): ... here.
16686 * tree-data-ref.h (dr_analyze_innermost): Declare.
16687 * tree-affine.c: Include tree-gimple.h and hashtab.h.
16688 (aff_combination_find_elt, name_expansion_hash,
16689 name_expansion_eq, tree_to_aff_combination_expand,
16690 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
16691 New functions.
16692 * tree-affine.h (aff_combination_constant_multiple_p,
16693 tree_to_aff_combination_expand): Declare.
16694 * tree-predcom.c: New file.
16695 * common.opt (fpredictive-commoning): New option.
16696 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
16697 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
16698 * Makefile.in (tree-predcom.o): Add.
16699 (tree-affine.o): Add TREE_GIMPLE_H dependency.
16700 * passes.c (init_optimization_passes): Add dceloop after
16701 copy propagation in loop optimizer. Add predictive commoning
16702 to loop optimizer passes.
16703
16704 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16705
16706 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
16707 default hook.
16708
16709 2007-05-24 Jan Hubicka <jh@suse.cz>
16710
16711 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
16712 statistics.
16713 (genheader): Include statistics.h.
16714
16715 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
16716 notes are gone.
16717 * print-rtl.c (flag_dump_unnumbered): Update comments.
16718 (print_rtl): Fix my previous change.
16719 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
16720 specific data.
16721
16722 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
16723
16724 PR middle-end/32018
16725 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
16726 set_loop_copy.
16727 (thread_through_all_blocks): Call initialize_original_copy_tables
16728 and free_original_copy_tables.
16729 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
16730 Use set_loop_copy.
16731 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
16732 * cfghooks.c (duplicate_block): Use get_loop_copy.
16733 * cfg.c: Include cfgloop.h.
16734 (loop_copy): New hash table.
16735 (initialize_original_copy_tables): Initialize loop_copy table.
16736 (free_original_copy_tables): Free loop_copy table.
16737 (copy_original_table_clear, copy_original_table_set,
16738 set_loop_copy, get_loop_copy): New functions.
16739 (set_bb_original, set_bb_copy): Use copy_original_table_set.
16740 * cfgloop.h (struct loop): Remove copy field.
16741 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
16742 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
16743
16744 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16745
16746 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
16747 -msse/-msse2/-msse3.
16748
16749 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16750
16751 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
16752 __builtin_ia32_vec_set_v2di with MASK_64BIT.
16753
16754 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
16755
16756 PR target/27067
16757 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
16758 * targhooks.h (default_mangle_decl_assembler_name): Declare
16759 default hook.
16760 * targhooks.c (default_mangle_decl_assembler_name): Define
16761 default hook.
16762 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
16763 default hook.
16764 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
16765 * langhooks.c (lhd_set_decl_assembler_name): Call
16766 targetm.mangle_decl_assembler_name for names with global scope.
16767
16768 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
16769 default.
16770 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
16771 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
16772 Declare.
16773 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16774 New. Factored out of i386_pe_encode_section_info.
16775 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
16776 Move check for prior decoration of stdcall
16777 symbols to i386_pe_encode_section_info.
16778 (i386_pe_encode_section_info): Adjust call to
16779 gen_stdcall_or_fastcall_suffix. Use
16780 i386_pe_maybe_mangle_decl_assembler_name, if needed.
16781 (i386_pe_mangle_decl_assembler_name): New. Wrap
16782 i386_pe_maybe_mangle_decl_assembler_name.
16783
16784 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
16785
16786 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
16787 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
16788 * langhooks.c (get_signed_or_unsigned_type): Don't check for
16789 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
16790 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
16791 TYPE_UNSIGNED.
16792
16793 2007-05-23 Sandra Loosemore <sandra@codesourcery.com>
16794 Nigel Stephens <nigel@mips.com>
16795 Richard Sandiford <richard@codesourcery.com>
16796
16797 Fix up MIPS16 hard float and add support for complex.
16798
16799 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
16800 (TARGET_SOFT_FLOAT_ABI): New.
16801 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
16802 __mips_soft_float to reflect the ABI in use, not whether the
16803 FPU is directly accessible (e.g., in MIPS16 mode).
16804 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
16805 (UNITS_PER_FPVALUE): Likewise.
16806
16807 * config/mips/mips.c (mips_expand_call): Remove redundant
16808 TARGET_MIPS16 check.
16809 (mips_arg_regno): New.
16810 (function_arg_advance): When setting bits in cum->fp_code for
16811 MIPS16, don't subtract 1 from cum->arg_number, since it is now
16812 zero-based.
16813 (function_arg): Use mips_arg_regno.
16814 (mips_return_mode_in_fpr_p): New.
16815 (mips16_call_stub_mode_suffix): New.
16816 (mips16_cfun_returns_in_fpr_p): New.
16817 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
16818 (mips_output_function_prologue): Test mips16_hard_float, not
16819 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
16820 (mips_expand_epilogue): Call MIPS16 helper routines to copy
16821 return value into a floating-point register.
16822 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
16823 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
16824 (mips16_fp_args): Handle MIPS32r2 ISA which supports
16825 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
16826 word of double arguments from or to the high bits of 64-bit
16827 floating point registers.
16828 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
16829 (mips16_fpret_double): New helper function.
16830 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
16831 support for complex modes. Fill in DECL_RESULT for stubdecl.
16832 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
16833
16834 * config/mips/mips16.S
16835 (RET, ARG1, ARG2): New.
16836 (MERGE_GPRf, MERGE_GPRt): New.
16837 (DELAYt, DELAYf): New.
16838 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
16839 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
16840 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
16841 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
16842 (SFOP): Renamed to...
16843 (OPSF3): This, and macro-ified. Updated all uses.
16844 (SFOP2): Renamed to...
16845 (OPSF2): This, and macro-ified. Updated all uses.
16846 (SFCMP): Renamed to...
16847 (CMPSF): This, and macro-ified. Updated all uses.
16848 (SFREVCMP): Renamed to...
16849 (REVCMPSF): This, and macro-ified. Updated all uses.
16850 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
16851 (LDDBL1, LDDBL2, RETDBL): Deleted.
16852 (DFOP): Renamed to...
16853 (OPDF3): This, and macro-ified. Updated all uses.
16854 (DFOP2): Renamed to...
16855 (OPDF2): This, and macro-ified. Updated all uses.
16856 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
16857 (DFCMP): Renamed to...
16858 (CMPDF): This, and macro-ified. Updated all uses.
16859 (DFREVCMP): Renamed to...
16860 (REVCMPDF): This, and macro-ified. Updated all uses.
16861 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
16862 (RET_FUNCTION): New.
16863 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
16864 (__mips16_ret_sc, __mips16_ret_dc): New.
16865 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
16866 STUB_ARGS_6, STUB_ARGS_10): New.
16867 (CALL_STUB_NO_RET): New.
16868 (__mips16_call_stub_1): Macro-ified.
16869 (__mips16_call_stub_5): Macro-ified.
16870 (__mips16_call_stub_2): Macro-ified.
16871 (__mips16_call_stub_6): Macro-ified.
16872 (__mips16_call_stub_9): Macro-ified.
16873 (__mips16_call_stub_10): Macro-ified.
16874 (CALL_STUB_RET): New.
16875 (__mips16_call_stub_sf_0): Macro-ified.
16876 (__mips16_call_stub_sf_1): Macro-ified.
16877 (__mips16_call_stub_sf_5): Macro-ified.
16878 (__mips16_call_stub_sf_2): Macro-ified.
16879 (__mips16_call_stub_sf_6): Macro-ified.
16880 (__mips16_call_stub_sf_9): Macro-ified.
16881 (__mips16_call_stub_sf_10): Macro-ified.
16882 (__mips16_call_stub_df_0): Macro-ified.
16883 (__mips16_call_stub_df_1): Macro-ified.
16884 (__mips16_call_stub_df_5): Macro-ified.
16885 (__mips16_call_stub_df_2): Macro-ified.
16886 (__mips16_call_stub_df_6): Macro-ified.
16887 (__mips16_call_stub_df_9): Macro-ified.
16888 (__mips16_call_stub_df_10): Macro-ified.
16889 (__mips16_call_stub_sc_0): New.
16890 (__mips16_call_stub_sc_1): New.
16891 (__mips16_call_stub_sc_5): New.
16892 (__mips16_call_stub_sc_2): New.
16893 (__mips16_call_stub_sc_6): New.
16894 (__mips16_call_stub_sc_9): New.
16895 (__mips16_call_stub_sc_10): New.
16896 (__mips16_call_stub_dc_0): New.
16897 (__mips16_call_stub_dc_1): New.
16898 (__mips16_call_stub_dc_5): New.
16899 (__mips16_call_stub_dc_2): New.
16900 (__mips16_call_stub_dc_6): New.
16901 (__mips16_call_stub_dc_9): New.
16902 (__mips16_call_stub_dc_10): New.
16903
16904 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
16905 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
16906 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
16907
16908 2007-05-23 Ian Lance Taylor <iant@google.com>
16909
16910 * doc/invoke.texi (Invoking GCC): Document that the order of the
16911 -l option matters.
16912
16913 2007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
16914
16915 PR target/30987
16916 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
16917 * config/score/predicate.md (const_pow2, const_npow2): Remove.
16918 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
16919 undef.
16920
16921 PR target/30474
16922 * config/score/score.c (score_print_operand): Make sure that only
16923 lower bits are used.
16924
16925 2007-05-22 Ian Lance Taylor <iant@google.com>
16926
16927 * tree-vrp.c (avoid_overflow_infinity): New static function,
16928 broken out of set_value_range_to_value.
16929 (set_value_range_to_value): Call avoid_overflow_infinity.
16930 (extract_range_from_assert): Likewise.
16931
16932 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
16933
16934 PR middle-end/31095
16935 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
16936 change the type before looking for a COMPOUND_EXPR.
16937
16938 2007-05-22 Ian Lance Taylor <iant@google.com>
16939
16940 * lower-subreg.c (decompose_multiword_subregs): If we change an
16941 insn, call remove_retval_note on it.
16942
16943 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
16944
16945 * regs.h (end_hard_regno): New function.
16946 (END_HARD_REGNO, END_REGNO): New macros.
16947 (add_to_hard_reg_set): New function.
16948 (remove_from_hard_reg_set): Likewise.
16949 (in_hard_reg_set_p): Likewise.
16950 (overlaps_hard_reg_set_p): Likewise.
16951 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
16952 (note_btr_set): Use END_HARD_REGNO.
16953 * caller-save.c (setup_save_areas): Use end_hard_regno.
16954 (mark_set_regs): Use END_HARD_REGNO.
16955 (add_stored_regs): Use end_hard_regno.
16956 (mark_referenced_regs): Use add_to_hard_reg_set.
16957 * combine.c (update_table_tick): Use END_REGNO.
16958 (record_value_for_reg): Likewise.
16959 (record_dead_and_set_regs): Likewise.
16960 (get_last_value_validate): Likewise.
16961 (use_crosses_set_p): Likewise.
16962 (reg_dead_at_p_1): Likewise.
16963 (reg_dead_at_p): Likewise.
16964 (mark_used_regs_combine): Use add_to_hard_reg_set.
16965 (move_deaths): Use END_HARD_REGNO.
16966 (reg_bitfield_target_p): Use end_hard_regno.
16967 (distribute_notes): Use END_HARD_REGNO.
16968 * cse.c (mention_regs): Use END_REGNO.
16969 (insert): Use add_to_hard_reg_set.
16970 (invalidate): Use END_HARD_REGNO.
16971 (invalidate_for_call): Likewise.
16972 (exp_equiv_p): Use END_REGNO.
16973 (cse_insn): Likewise.
16974 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
16975 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
16976 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
16977 * function.c (keep_stack_depressed): Use end_hard_regno.
16978 * global.c (global_alloc): Use end_hard_regno.
16979 (global_conflicts): Use add_to_hard_reg_set instead of
16980 mark_reg_live_nc.
16981 (find_reg): Likewise.
16982 (mark_reg_store): Likewise.
16983 (mark_reg_conflicts): Likewise.
16984 (mark_reg_death): Use remove_from_hard_reg_set.
16985 (mark_reg_live_nc): Delete.
16986 (set_preference): Use end_hard_regno.
16987 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
16988 remove_from_hard_reg_set.
16989 (post_mark_life): Use add_to_hard_reg_set.
16990 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
16991 (reg_becomes_live): Use add_to_hard_reg_set.
16992 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
16993 (peep2_find_free_register): Use add_to_hard_reg_set.
16994 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
16995 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
16996 * regrename.c (note_sets): Use add_to_hard_reg_set.
16997 (clear_dead_regs): Use remove_from_hard_reg_set.
16998 (regrename_optimize): Use add_to_hard_reg_set.
16999 (find_oldest_value_reg): Use in_hard_reg_set_p.
17000 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
17001 (hard_reg_set_here_p): Use end_hard_regno.
17002 (decompose): Likewise.
17003 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
17004 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
17005 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
17006 (mark_home_live): Use end_hard_regno.
17007 (spill_hard_reg): Likewise.
17008 (clear_reload_reg_in_use): Likewise.
17009 * reorg.c (delete_prior_computation): Use END_REGNO.
17010 * resource.c (update_live_status): Use END_HARD_REGNO.
17011 (mark_referenced_resources): Use add_to_hard_reg_set.
17012 (mark_set_resources): Likewise.
17013 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
17014 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
17015 (reg_overlap_mentioned_p): Likewise.
17016 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
17017 (covers_regno_no_parallel_p): Use END_REGNO.
17018 (find_regno_note): Likewise.
17019 (find_reg_fusage): Use END_HARD_REGNO.
17020 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
17021 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
17022
17023 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
17024
17025 * mode-switching.c (reg_dies): Change type of second argument to
17026 "HARD_REG_SET *".
17027 (optimize_mode_switching): Update accordingly.
17028
17029 2007-05-22 Richard Sandiford <richard@codesourcery.com>
17030
17031 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
17032 in favor of...
17033 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
17034 (hard_reg_set_empty_p): ...these new functions.
17035 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
17036 GO_IF_HARD_REG_SUBSET.
17037 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
17038 instead of GO_IF_HARD_REG_EQUAL.
17039 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
17040 instead of GO_IF_HARD_REG_EQUAL.
17041 * global.c (find_reg): Use hard_reg_set_empty_p instead of
17042 GO_IF_HARD_REG_SUBSET.
17043 (modify_reg_pav): Use hard_reg_set_empty_p instead of
17044 GO_IF_HARD_REG_EQUAL.
17045 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
17046 of GO_IF_HARD_REG_SUBSET.
17047 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
17048 instead of GO_IF_HARD_REG_EQUAL.
17049 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
17050 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
17051 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
17052 of GO_IF_HARD_REG_SUBSET,
17053 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
17054 GO_IF_HARD_REG_SUBSET.
17055 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
17056 instead of GO_IF_HARD_REG_EQUAL.
17057 * config/sh/sh.c (push_regs, calc_live_regs): Use
17058 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
17059 (hard_regs_intersect_p): Delete.
17060
17061 2007-05-22 Janis Johnson <janis187@us.ibm.com>
17062
17063 * doc/sourcebuild.texi (Test Directives) Add dg-message.
17064
17065 2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
17066 Richard Henderson <rth@redhat.com>
17067
17068 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
17069 extra_headers.
17070 (x86_64-*-*): Likewise.
17071
17072 * i386/i386-modes.def (V2QI): New.
17073
17074 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
17075 SSE4A.
17076 (override_options): Support SSE4.1.
17077 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
17078 (IX86_BUILTIN_BLENDPS): Likewise.
17079 (IX86_BUILTIN_BLENDVPD): Likewise.
17080 (IX86_BUILTIN_BLENDVPS): Likewise.
17081 (IX86_BUILTIN_PBLENDVB128): Likewise.
17082 (IX86_BUILTIN_PBLENDW128): Likewise.
17083 (IX86_BUILTIN_DPPD): Likewise.
17084 (IX86_BUILTIN_DPPS): Likewise.
17085 (IX86_BUILTIN_INSERTPS128): Likewise.
17086 (IX86_BUILTIN_MOVNTDQA): Likewise.
17087 (IX86_BUILTIN_MPSADBW128): Likewise.
17088 (IX86_BUILTIN_PACKUSDW128): Likewise.
17089 (IX86_BUILTIN_PCMPEQQ): Likewise.
17090 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
17091 (IX86_BUILTIN_PMAXSB128): Likewise.
17092 (IX86_BUILTIN_PMAXSD128): Likewise.
17093 (IX86_BUILTIN_PMAXUD128): Likewise.
17094 (IX86_BUILTIN_PMAXUW128): Likewise.
17095 (IX86_BUILTIN_PMINSB128): Likewise.
17096 (IX86_BUILTIN_PMINSD128): Likewise.
17097 (IX86_BUILTIN_PMINUD128): Likewise.
17098 (IX86_BUILTIN_PMINUW128): Likewise.
17099 (IX86_BUILTIN_PMOVSXBW128): Likewise.
17100 (IX86_BUILTIN_PMOVSXBD128): Likewise.
17101 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
17102 (IX86_BUILTIN_PMOVSXWD128): Likewise.
17103 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
17104 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
17105 (IX86_BUILTIN_PMOVZXBW128): Likewise.
17106 (IX86_BUILTIN_PMOVZXBD128): Likewise.
17107 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
17108 (IX86_BUILTIN_PMOVZXWD128): Likewise.
17109 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
17110 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
17111 (IX86_BUILTIN_PMULDQ128): Likewise.
17112 (IX86_BUILTIN_PMULLD128): Likewise.
17113 (IX86_BUILTIN_ROUNDPD): Likewise.
17114 (IX86_BUILTIN_ROUNDPS): Likewise.
17115 (IX86_BUILTIN_ROUNDSD): Likewise.
17116 (IX86_BUILTIN_ROUNDSS): Likewise.
17117 (IX86_BUILTIN_PTESTZ): Likewise.
17118 (IX86_BUILTIN_PTESTC): Likewise.
17119 (IX86_BUILTIN_PTESTNZC): Likewise.
17120 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
17121 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
17122 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
17123 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
17124 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
17125 (bdesc_ptest): New.
17126 (bdesc_sse_3arg): Likewise.
17127 (bdesc_2arg): Likewise.
17128 (bdesc_1arg): Likewise.
17129 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
17130 with 3 args.
17131 (ix86_expand_sse_4_operands_builtin): New.
17132 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
17133 smaller than 8 bits as the 2nd arg.
17134 (ix86_expand_sse_ptest): New.
17135 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
17136 (ix86_expand_vector_set): Support SSE4.1.
17137 (ix86_expand_vector_extract): Likewise.
17138
17139 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
17140 __SSE4_1__ for -msse4.1.
17141
17142 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
17143 (UNSPEC_INSERTPS): Likewise.
17144 (UNSPEC_DP): Likewise.
17145 (UNSPEC_MOVNTDQA): Likewise.
17146 (UNSPEC_MPSADBW): Likewise.
17147 (UNSPEC_PHMINPOSUW): Likewise.
17148 (UNSPEC_PTEST): Likewise.
17149 (UNSPEC_ROUNDP): Likewise.
17150 (UNSPEC_ROUNDS): Likewise.
17151
17152 * config/i386/i386.opt (msse4.1): New for SSE4.1.
17153
17154 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
17155 (const_pow2_1_to_32768_operand): Likewise.
17156
17157 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
17158 file.
17159
17160 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
17161 SSE4.1.
17162 (sse4_1_insertps): Likewise.
17163 (*sse4_1_extractps): Likewise.
17164 (sse4_1_ptest): Likewise.
17165 (sse4_1_mulv2siv2di3): Likewise.
17166 (*sse4_1_mulv4si3): Likewise.
17167 (*sse4_1_smax<mode>3): Likewise.
17168 (*sse4_1_umax<mode>3): Likewise.
17169 (*sse4_1_smin<mode>3): Likewise.
17170 (*sse4_1_umin<mode>3): Likewise.
17171 (sse4_1_eqv2di3): Likewise.
17172 (*sse4_1_pinsrb): Likewise.
17173 (*sse4_1_pinsrd): Likewise.
17174 (*sse4_1_pinsrq): Likewise.
17175 (*sse4_1_pextrb): Likewise.
17176 (*sse4_1_pextrb_memory): Likewise.
17177 (*sse4_1_pextrw_memory): Likewise.
17178 (*sse4_1_pextrq): Likewise.
17179 (sse4_1_blendpd): Likewise.
17180 (sse4_1_blendps): Likewise.
17181 (sse4_1_blendvpd): Likewise.
17182 (sse4_1_blendvps): Likewise.
17183 (sse4_1_dppd): Likewise.
17184 (sse4_1_dpps): Likewise.
17185 (sse4_1_movntdqa): Likewise.
17186 (sse4_1_mpsadbw): Likewise.
17187 (sse4_1_packusdw): Likewise.
17188 (sse4_1_pblendvb): Likewise.
17189 (sse4_1_pblendw): Likewise.
17190 (sse4_1_phminposuw): Likewise.
17191 (sse4_1_extendv8qiv8hi2): Likewise.
17192 (*sse4_1_extendv8qiv8hi2): Likewise.
17193 (sse4_1_extendv4qiv4si2): Likewise.
17194 (*sse4_1_extendv4qiv4si2): Likewise.
17195 (sse4_1_extendv2qiv2di2): Likewise.
17196 (*sse4_1_extendv2qiv2di2): Likewise.
17197 (sse4_1_extendv4hiv4si2): Likewise.
17198 (*sse4_1_extendv4hiv4si2): Likewise.
17199 (sse4_1_extendv2hiv2di2): Likewise.
17200 (*sse4_1_extendv2hiv2di2): Likewise.
17201 (sse4_1_extendv2siv2di2): Likewise.
17202 (*sse4_1_extendv2siv2di2): Likewise.
17203 (sse4_1_zero_extendv8qiv8hi2): Likewise.
17204 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
17205 (sse4_1_zero_extendv4qiv4si2): Likewise.
17206 (*sse4_1_zero_extendv4qiv4si2): Likewise.
17207 (sse4_1_zero_extendv2qiv2di2): Likewise.
17208 (*sse4_1_zero_extendv2qiv2di2): Likewise.
17209 (sse4_1_zero_extendv4hiv4si2): Likewise.
17210 (*sse4_1_zero_extendv4hiv4si2): Likewise.
17211 (sse4_1_zero_extendv2hiv2di2): Likewise.
17212 (*sse4_1_zero_extendv2hiv2di2): Likewise.
17213 (sse4_1_zero_extendv2siv2di2): Likewise.
17214 (*sse4_1_zero_extendv2siv2di2): Likewise.
17215 (sse4_1_roundpd): Likewise.
17216 (sse4_1_roundps): Likewise.
17217 (sse4_1_roundsd): Likewise.
17218 (sse4_1_roundss): Likewise.
17219 (mulv4si3): Don't expand for SSE4.1.
17220 (smax<mode>3): Likewise.
17221 (umaxv4si3): Likewise.
17222 (uminv16qi3): Likewise.
17223 (umin<mode>3): Likewise.
17224 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
17225
17226 * doc/extend.texi: Document SSE4.1 built-in functions.
17227
17228 * doc/invoke.texi: Document -msse4.1.
17229
17230 2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
17231
17232 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
17233 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
17234 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
17235 (ASM_SPEC): Add asm_pcrel_spec.
17236 (EXTRA_SPECS): Add asm_pcrel_spec.
17237
17238 2007-05-21 David Daney <ddaney@avtrex.com>
17239
17240 * doc/install.texi (Building a cross compiler): Add requirements
17241 for Java cross compiler.
17242
17243 2007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17244
17245 PR middle-end/31995
17246 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
17247 Add loopno argument. Use evolution_function_is_invariant_rec_p
17248 instead of evolution_function_is_constant_p.
17249 Update calls to evolution_function_is_affine_multivariate_p.
17250 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
17251 Add loopno argument.
17252 * tree-scalar-evolution.c (gather_chrec_stats): Call
17253 evolution_function_is_affine_multivariate_p with a loop
17254 number of 0.
17255 * tree-data-ref.c (analyze_miv_subscript): Likewise.
17256 (analyze_overlapping_iterations): Likewise.
17257 (access_functions_are_affine_or_constant_p): Likewise.
17258 (build_classic_dist_vector_1): If the access functions
17259 are equal, don't do anything.
17260
17261 2007-05-21 Paolo Bonzini <bonzini@gnu.org>
17262 Paolo Carlini <pcarlini@suse.de>
17263 Uros Bizjak <ubizjak@gmail.com>
17264
17265 * c-cppbuiltin.c (c_cpp_builtins): Define
17266 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17267 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
17268 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
17269 * doc/cpp.texi ([Standard Predefined Macros]): Document.
17270
17271 2007-05-21 Mike Stump <mrs@apple.com>
17272
17273 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
17274 handling as well.
17275 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
17276
17277 2007-05-21 Uros Bizjak <ubizjak@gmail.com>
17278
17279 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
17280 implementation if __OPTIMIZE__ is not defined.
17281 (_mm_alignr_pi8): Ditto.
17282 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
17283 (_mm_inserti_si64): Ditto.
17284 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
17285 (_mm_slli_epi16): Ditto.
17286 (_mm_slli_epi32): Ditto.
17287 (_mm_slli_epi64): Ditto.
17288 (_mm_srai_epi16): Ditto.
17289 (_mm_srai_epi32): Ditto.
17290 (_mm_srli_si128): Ditto.
17291 (_mm_slli_si128): Ditto.
17292 (_mm_srli_epi16): Ditto.
17293 (_mm_srli_epi32): Ditto.
17294 (_mm_srli_epi64): Ditto.
17295 (_mm_extract_epi16): Ditto.
17296 (_mm_insert_epi16): Ditto.
17297 (_mm_shufflehi_epi16): Ditto.
17298 (_mm_shufflelo_epi16): Ditto.
17299 (_mm_shuffle_epi32): Ditto.
17300 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
17301 (_m_pextrw): Ditto.
17302 (_mm_insert_pi16): Ditto.
17303 (_m_pinsrw): Ditto.
17304 (_mm_shuffle_pi16): Ditto.
17305 (_m_pshufw): Ditto.
17306 (_mm_shufle_ps): Ditto.
17307 (_mm_prefetch): Ditto.
17308
17309 2007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
17310
17311 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
17312 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
17313 * real.c (encode_i370_single, decode_i370_single,
17314 encode_i370_double, decode_i370_double): Functions removed.
17315 (i370_single_format, i370_double_format): Initializations removed.
17316 (real_maxval, round_for_format, exact_real_truncate, significand_size):
17317 Consider the log2_b field to always be one.
17318 (ieee_single_format, mips_single_format, coldfire_single_format,
17319 ieee_double_format, mips_double_format, coldfire_double_format,
17320 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17321 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17322 ibm_extended_format, mips_extended_format, ieee_quad_format,
17323 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17324 decimal_single_format, decimal_double_format, decimal_quad_format,
17325 c4x_single_format, c4x_extended_format, real_internal_format): Remove
17326 initialization of log2_b.
17327 * real.h (i370_single_format, i370_double_format): Declarations
17328 removed.
17329 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
17330 field to always be one.
17331
17332 2007-05-21 Andreas Schwab <schwab@suse.de>
17333
17334 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
17335 NOTE_INSN_BASIC_BLOCK_P.
17336 (process_for_unwind_directive): Likewise.
17337
17338 2007-05-21 Nathan Sidwell <nathan@codesourcery.com>
17339
17340 * builtins.c (expand_builtin_setjmp_setup): Update comment.
17341 * function.h (struct function): Move va_list_gpr_size,
17342 va_list_fpr_size, function_frequency to front of bitfields. Add
17343 calls_unwind_init.
17344 (current_function_calls_unwind_init): New.
17345 * except.c (expand_builtin_unwind_init): Set
17346 current_function_calls_unwind_init not
17347 current_function_has_nonlocal_label.
17348 * reload1.c (has_nonexceptional_receiver): New.
17349 (reload): Use it and current_function_calls_unwind_init to
17350 determine whether call-saved regs must be saved.
17351
17352 2007-05-20 Jan Hubicka <jh@suse.cz>
17353
17354 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
17355 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17356 * ddg.c (create_ddg): LIkewise.
17357 * final.c (final): Remove hunk moving line number notes around since
17358 they are no longer present at this stage.
17359 (final_scan_insn): Use NOTE_KIND instead of
17360 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17361 (output_asm_label): Likewise.
17362 * reorg.c (dbr_schedule): Likewise.
17363 * haifa-sched.c (unlink_other_notes): Likewise.
17364 * mode-switching.c (optimize_mode_switching): Likewise.
17365 * graph.c (start_bb): Likewise.
17366 * rtl.def (NOTE): Update description.
17367 * jump.c (squeeze_notes): Delete.
17368 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
17369 NOTE_INSN_BASIC_BLOCK_P when possible.
17370 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
17371 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
17372 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17373 (dwarf2out_var_location): Likewise.
17374 * cfgbuild.c (make_edges): Likewise.
17375 (find_basic_blocks_1): Likewise.
17376 * function.c (reorder_blocks_1): Likewise.
17377 (epilogue_done): Likewise.
17378 (reposition_prologue_and_epilogue_notes): Likewise.
17379 * print-rtl.c (print_rtx): Likewise; drop code for printing
17380 line number notes.
17381 (print_rtl): Likewise.
17382 (print_rtl_single): Likewise.
17383 * gcse.c (insert_insn_start_bb): Likewise.
17384 * alias.c (init_alias_analysis): Likewise.
17385 * calls.c (fixup_tail_calls): Likewise.
17386 * except.c (sjlj_emit_function_enter): Likewise.
17387 * emit-rtl.c (add_insn_after): Likeiwse.
17388 (emit_label_before): Likewise.
17389 (emit_label_after): Likewise.
17390 (emit_note_before, emit_note_after, emit_note): Update
17391 parameter to be enum insn_note; do not deal with source
17392 files.
17393 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
17394 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
17395 when possible.
17396 (merge_blocks_move_successor_nojumps): Simplify now when
17397 we don't have BLOCK notes.
17398 (try_optimize_cfg): Likewise.
17399 * cfglayout.c (skip_insns_after_block): Likewise.
17400 (record_effective_endpoints): Likewise.
17401 (duplicate_insn_chain): Likewise.
17402 * varasm.c (output_constant_pool_1): Likewise.
17403 * sched-deps.c (sched_analyze): Likewise.
17404 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
17405 Exterminate.
17406 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
17407 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
17408 (SET_INSN_DELETED): Simplify.
17409 (NOTE_LINE_NUMBER): Exterminate.
17410 (NOTE_LINE_KIND): New.
17411 (NOTE_INSN_BASIC_BLOCK_P): Update.
17412 (enum insn_note): Simplify.
17413 (GET_NOTE_INSN_NAME) Simplify.
17414 (emit_note_before, emit_note_after, emit_note): Update prototype.
17415 (squeeze_notes): Remove.
17416 * sched-int.h (NOTE_NOT_BB_P): Update.
17417 * resource.c (mark_target_live_regs): Update.
17418 * sched-rgn.c (debug_dependencies): Update.
17419 * sched-vis.c (print_insn): Update.
17420 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
17421 * config/i386/i386.c (ix86_output_function_epilogue): Update.
17422 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
17423 (TARGET_ADJUST_UNROLL_MAX): Likewise.
17424 (split_branches): Update.
17425 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
17426 4.0.0.
17427 (sh_adjust_unroll_max): Exterminate.
17428 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
17429 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
17430 (m68hc11_reorg): Likewise.
17431 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
17432 (emit_predicate_relation_info): Update.
17433 (process_for_unwind_directive): Update.
17434 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
17435 (output_call): Update.
17436 * config/pa/pa.c (output_lbranch): Update.
17437 (output_millicode_call): Update.
17438 (output_call): Update.
17439 (pa_combine_instructions): Update.
17440 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
17441 * config/bfin/bfin.c (gen_one_bundle): Update.
17442 * cfgrtl.c (can_delete_note_p): Update.
17443 (delete_insn): Update.
17444 (rtl_merge_blocks): Update.
17445 (commit_one_edge_insertion): Update.
17446 (rtl_verify_flow_info): Update.
17447 * stmt.c (expand_case): Do not call squeeze_notes.
17448
17449 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17450
17451 PR middle-end/7651
17452 PR c++/11856
17453 PR c/12963
17454 PR c/23587
17455 PR other/29694
17456 * c.opt (Wtype-limits): New.
17457 * doc/invoke.texi (Wtype-limits): Document it.
17458 (Wextra): Enabled by -Wextra.
17459 * c-opts.c (c_common_post_options): Enabled by -Wextra.
17460 * c-common.c (shorten_compare): Warn with Wtype-limits.
17461
17462 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
17463
17464 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
17465 inlined function, not as a macro.
17466 (_mm_alignr_pi8): Ditto.
17467 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
17468 (_mm_inserti_si64): Ditto.
17469 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
17470 (_mm_extract_epi16): Ditto.
17471 (_mm_insert_epi16): Ditto.
17472 (_mm_shufflehi_epi16): Ditto.
17473 (_mm_shufflelo_epi16): Ditto.
17474 (_mm_shuffle_epi32): Ditto.
17475 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
17476 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
17477 all functions.
17478 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
17479 float constant.
17480 (_m_to_float): Use C89 compatible assignment.
17481
17482 2007-05-20 Martin Michlmayr <tbm@cyrius.com>
17483
17484 PR target/32007
17485 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
17486
17487 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17488
17489 PR middle-end/7651
17490 * doc/invoke.texi (Wreturn-type): Complete description.
17491 (Wextra): Delete item about return-type warning.
17492 * c-decl.c: Delete redundant Wextra warning.
17493
17494 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
17495
17496 PR target/31585
17497 * config/i386/pmmintrin.h: Do not include xmmintrin.h
17498 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
17499 inlined function, not as a macro.
17500 (_mm_prefetch): Ditto.
17501 (_m_pextrw): Ditto.
17502 (_mm_insert_pi16): Ditto.
17503 (_m_pinsrw): Ditto.
17504 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
17505 (_m_pshufw): Ditto. Add const to __N argument.
17506 (_mm_shufle_ps): Ditto. Add const to __mask argument.
17507 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
17508 (_mm_slli_epi32): Ditto.
17509 (_mm_srli_si128): Implement as always inlined function, not as a
17510 macro. Add __inline to function declaration.
17511 (_mm_slli_si128): Ditto.
17512
17513 2007-05-19 Uros Bizjak <ubizjak@gmail.com>
17514
17515 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
17516 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
17517 New constants.
17518 (struct fenv): New structure.
17519 (FP_HANDLE_EXCEPTIONS): New define.
17520 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
17521 (_FP_DECL_EXP): New define.
17522 (FP_INIT_ROUNDMODE): New define.
17523 (FP_ROUNDMODE): New define.
17524
17525 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17526
17527 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
17528 (Wconversion): Update description.
17529 (Wconversion-sign): New.
17530 * c.opt (Wconversion-sign): New.
17531 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
17532 means disabled for C++. Otherwise, take the status of Wconversion.
17533 * c-common.c (conversion_warning): Warn with either Wconversion or
17534 Wconversion-sign.
17535 (warnings_for_convert_and_check): Conditions are already checked by
17536 conversion_warning.
17537 (convert_and_check): Don't check warnings if the conversion failed.
17538
17539 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
17540 Anatoly Sokolov <aesok@dol.ru>
17541
17542 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
17543 avr_epilogue_uses) : Add declaration.
17544 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
17545 * config/avr/constraints.md (R): New constraint.
17546 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
17547 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
17548 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
17549 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
17550 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
17551 call_prologue_saves, epilogue_restores, return_from_epilogue,
17552 return_from_main_epilogue, return_from_interrupt_epilogue,
17553 return_from_naked_epilogue, prologue, epilogue): New patterns.
17554 (jump): Handle symbol reference.
17555 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
17556 avr_output_function_prologue, avr_output_function_epilogue): Remove
17557 functions.
17558 (avr_init_machine_status, expand_prologue, expand_epilogue,
17559 avr_asm_function_end_prologue, avr_epilogue_uses,
17560 avr_asm_function_begin_epilogue): New functions.
17561 (prologue_size, epilogue_size, jump_tables_size): Remove global
17562 variables.
17563 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
17564 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
17565 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
17566 (avr_override_options): Initialise init_machine_status.
17567 (output_movhi): Handle all stack pointer loads.
17568 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
17569 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
17570 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
17571 (EPILOGUE_USES) Redefine.
17572 (machine_function) Declare.
17573
17574 2007-05-19 Richard Sandiford <richard@codesourcery.com>
17575
17576 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
17577 Use a single return statement.
17578
17579 2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17580
17581 PR middle-end/30250
17582 * builtins.c (do_mpfr_lgamma_r): New.
17583 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
17584 * tree.h (CASE_FLT_FN_REENT): New.
17585
17586 2007-05-18 Geoffrey Keating <geoffk@apple.com>
17587
17588 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
17589 (output_die): Use 'unsigned long' with %x.
17590 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
17591 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
17592 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
17593
17594 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
17595
17596 2007-05-18 H.J. Lu <hongjiu.lu@intel.com>
17597
17598 PR target/31989
17599 PR target/31681
17600 PR target/31666
17601 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
17602 true if function has no argument.
17603
17604 2007-05-18 DJ Delorie <dj@redhat.com>
17605
17606 * config/mips/mips.c (mips_offset_within_alignment_p): New.
17607 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
17608
17609 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
17610
17611 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
17612 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
17613 count_trailing_zeros.
17614 (__i386__): Implement count_leading_zeros using __builtin_clz().
17615 Implement count_trailing_zeros usign __builtin_ctz().
17616
17617 2007-05-18 Richard Sandiford <richard@codesourcery.com>
17618
17619 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
17620
17621 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
17622
17623 PR middle-end/31344
17624 * expr.c (emit_move_change_mode): Change mode of push operands here.
17625
17626 2007-05-17 Ian Lance Taylor <iant@google.com>
17627
17628 PR tree-optimization/31953
17629 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
17630 Change all callers.
17631 (set_value_range_to_null): Call set_value_range_to_value.
17632 (extract_range_from_comparison): Likewise.
17633
17634 2007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17635
17636 * toplev.c (print_version): Output GMP/MPFR version info.
17637
17638 * builtins.c (CASE_MATHFN_REENT): New macro.
17639 (mathfn_built_in): Use it.
17640 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
17641 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
17642 BUILT_IN_LGAMMAL_R): New.
17643 * doc/extend.texi: Document new builtins.
17644
17645 PR middle-end/31796
17646 * builtins.c (do_mpfr_remquo): New.
17647 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
17648 (fold_builtin_3): Handle BUILT_IN_REMQUO.
17649
17650 PR middle-end/30251
17651 * builtins.c (fold_builtin_1): Handle y0, y1.
17652 (fold_builtin_2): Handle yn.
17653
17654 PR middle-end/30251
17655 * builtins.c (do_mpfr_bessel_n): New.
17656 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
17657 (fold_builtin_2): Handle BUILT_IN_JN.
17658
17659 2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
17660
17661 PR target/31965
17662 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
17663 TYPE_PRECISION (intmax_type_node).
17664
17665 2007-05-17 Steve Ellcey <sje@cup.hp.com>
17666
17667 PR target/31850
17668 * reload.c (subst_reloads): Remove checking.
17669
17670 2007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
17671
17672 PR rtl-optimization/31691
17673 * combine.c (simplify_set): Build a new src pattern instead of
17674 substituting its operands in the COMPARE case.
17675
17676 2007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
17677
17678 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
17679 (execute_vrp): Preserve loops through jump threading.
17680 * tree-ssa-threadupdate.c (thread_single_edge,
17681 dbds_continue_enumeration_p, determine_bb_domination_status,
17682 thread_through_loop_header): New functions.
17683 (create_edge_and_update_destination_phis,
17684 create_edge_and_update_destination_phis): Set loops for the new blocks.
17685 (prune_undesirable_thread_requests): Removed.
17686 (redirect_edges): Do not pretend that redirect_edge_and_branch can
17687 create new blocks.
17688 (thread_block): Do not call prune_undesirable_thread_requests.
17689 Update loops.
17690 (mark_threaded_blocks): Select edges to thread here.
17691 (thread_through_all_blocks): Take may_peel_loop_headers argument.
17692 Thread edges through loop headers independently.
17693 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
17694 * tree-pass.h (TODO_mark_first_instance): New.
17695 (first_pass_instance): Declare.
17696 * cfghooks.c (duplicate_block): Put the block to the original loop
17697 if copy is not specified.
17698 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
17699 jump threading. Pass may_peel_loop_headers to
17700 thread_through_all_blocks according to first_pass_instance.
17701 * cfgloop.h (create_preheader): Declare.
17702 * tree-flow.h (thread_through_all_blocks): Declaration changed.
17703 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
17704 * passes.c (first_pass_instance): New variable.
17705 (next_pass_1): Set TODO_mark_first_instance.
17706 (execute_todo): Set first_pass_instance.
17707
17708 2007-05-17 Uros Bizjak <ubizjak@gmail.com>
17709
17710 PR tree-optimization/24659
17711 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
17712 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
17713 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
17714 OTI_vec_pack_ufix_trunc.
17715 (vec_unpacks_float_hi_optab): Define new macro.
17716 (vec_unpacks_float_lo_optab): Ditto.
17717 (vec_unpacku_float_hi_optab): Ditto.
17718 (vec_unpacku_float_lo_optab): Ditto.
17719 (vec_pack_sfix_trunc_optab): Ditto.
17720 (vec_pack_ufix_trunc_optab): Ditto.
17721 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
17722 and vec_pack_[s|u]fix_trunc_optab using
17723 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
17724 * tree-vectorizer.c (supportable_widening_operation): Handle
17725 FLOAT_EXPR and CONVERT_EXPR. Update comment.
17726 (supportable_narrowing_operation): New function.
17727 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
17728 * tree-vect-transform.c (vectorizable_conversion): Handle
17729 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
17730 (vect_gen_widened_results_half): Move before vectorizable_conversion.
17731 (vectorizable_type_demotion): Call supportable_narrowing_operation()
17732 to check for target support.
17733 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
17734 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
17735 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
17736 for VEC_PACK_FIX_TRUNC_EXPR.
17737 (expand_binop): Special case mode of the result for
17738 vec_pack_[u|s]fix_trunc_optab.
17739 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
17740 vec_pack_[u|s]fix_trunc_optab.
17741
17742 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
17743 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
17744 * tree-pretty-print.c (dump_generic_node): Handle
17745 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
17746 VEC_PACK_FIX_TRUNC_EXPR.
17747 (op_prio): Ditto.
17748 * expr.c (expand_expr_real_1): Ditto.
17749 * tree-inline.c (estimate_num_insns_1): Ditto.
17750 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
17751
17752 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
17753 (vec_unpacks_float_lo_v8hi): Ditto.
17754 (vec_unpacku_float_hi_v8hi): Ditto.
17755 (vec_unpacku_float_lo_v8hi): Ditto.
17756 (vec_unpacks_float_hi_v4si): Ditto.
17757 (vec_unpacks_float_lo_v4si): Ditto.
17758 (vec_pack_sfix_trunc_v2df): Ditto.
17759
17760 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
17761 Document.
17762 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
17763 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
17764 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
17765 [vec_pack_ufix_trunc]: Ditto.
17766 [vec_unpacks_float_hi]: Ditto.
17767 [vec_unpacks_float_lo]: Ditto.
17768 [vec_unpacku_float_hi]: Ditto.
17769 [vec_unpacku_float_lo]: Ditto.
17770
17771 2007-05-16 Uros Bizjak <ubizjak@gmail.com>
17772
17773 * soft-fp/README: Update for new files.
17774 * soft-fp/floattisf.c: New file.
17775 * soft-fp/floattidf.c: New file.
17776 * soft-fp/floattitf.c: New file.
17777 * soft-fp/floatuntisf.c: New file.
17778 * soft-fp/floatuntidf.c: New file.
17779 * soft-fp/floatuntitf.c: New file.
17780 * soft-fp/fixsfti.c: New file.
17781 * soft-fp/fixdfti.c: New file.
17782 * soft-fp/fixtfti.c: New file.
17783 * soft-fp/fixunssfti.c: New file.
17784 * soft-fp/fixunsdfti.c: New file.
17785 * soft-fp/fixunstfti.c: New file.
17786 * soft-fp/extendxftf.c: New file.
17787 * soft-fp/trunctfxf.c: New file.
17788
17789 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
17790 (__trunctfxf2): Ditto.
17791
17792 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
17793 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
17794 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
17795 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
17796 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
17797 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
17798
17799 * config/i386/t-fprules-softfp64: New file.
17800 * config/i386/sfp-machine.h: New file.
17801 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
17802 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
17803 and soft-fp/t-softfp to tmake_file.
17804 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
17805 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
17806
17807 * config/i386/t-linux64 (softfp_wrap_start): New.
17808 (softfp_wrap_end): New.
17809 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
17810 supported for TARGET_64BIT.
17811
17812 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
17813
17814 * c-common.c (c_common_signed_or_unsigned_type): Emulate
17815 c_common_unsigned_type behavior.
17816
17817 2007-05-16 Paolo Bonzini <bonzini@gnu.org>
17818
17819 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
17820 calls as pure.
17821
17822 2007-05-16 Eric Christopher <echristo@apple.com>
17823
17824 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
17825 saving after stack push. Set sp_offset whenever we push.
17826 (rs6000_emit_epilogue): Move altivec register restore before
17827 stack push.
17828
17829 2007-05-16 Richard Sandiford <richard@codesourcery.com>
17830
17831 * configure.ac: Allow sysroots to be relocated under $prefix as
17832 well as $exec_prefix.
17833 * configure: Regenerate.
17834
17835 2007-05-16 Richard Sandiford <richard@codesourcery.com>
17836
17837 Revert:
17838
17839 2007-05-12 Richard Sandiford <richard@codesourcery.com>
17840
17841 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
17842 (gcc_tooldir): Likewise.
17843 * configure: Regenerate.
17844 * Makefile.in (libsubdir_to_prefix): New variable, based on the
17845 old configure.ac gcc_tooldir setting.
17846 (prefix_to_exec_prefix): New variable.
17847 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
17848 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
17849
17850 2007-05-14 Janis Johnson <janis187@us.ibm.com>
17851
17852 * c-typeck.c (build_binary_op): Return early for error.
17853
17854 2007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
17855
17856 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
17857 struct nb_iter_bound.
17858 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
17859 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
17860 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
17861 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
17862 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
17863 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
17864 (del_scev_info): Use ggc_free.
17865 (scev_initialize): Allocate scalar_evolution_info in gc memory.
17866 * loop-init.c: Include ggc.h.
17867 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
17868 (loop_optimizer_finalize): Use ggc_free.
17869 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
17870 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
17871 pass_iv_optimize): Add TODO_ggc_collect.
17872 * function.h (struct function): Remove skip marker from
17873 x_current_loops.
17874 * cfgloop.c: Include ggc.h.
17875 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
17876 memory.
17877 (establish_preds): Vector superloops is gc allocated.
17878 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
17879 loop->exits list.
17880 (flow_loops_find): Vector larray is gc allocated.
17881 (loop_exit_free): Use ggc_free.
17882 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
17883 that head of exits list is now not a part of struct loop.
17884 (record_loop_exits): Allocate exits table in gc memory.
17885 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
17886 that head of exits list is now not a part of struct loop.
17887 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
17888 struct loop_exit): Add GTY marker.
17889 (struct loop): Add GTY marker. Make superloops vector gc allocated.
17890 Add skip marker to aux field. Make head of exits list a separate
17891 object.
17892 (struct loops): Add GTY marker. Make larray vector gc allocated.
17893 Add param marker to exits table.
17894 (get_loops): Type changed.
17895 * Makefile.in (tree-scalar-evolution.o): Add
17896 gt-tree-scalar-evolution.h dependency.
17897 (cfgloop.o, loop-init.o): Add ggc.h dependency.
17898 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
17899 * basic-block.h (struct basic_block_def): Remove skip marker from
17900 loop_father field.
17901
17902 2007-05-14 Uros Bizjak <ubizjak@gmail.com>
17903
17904 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
17905 of 0 in the call to expand_expr().
17906 (expand_builtin_mathfn_3): Ditto.
17907 (expand_builtin_interclass_mathfn): Ditto.
17908 (expand_builtin_cexpi): Ditto.
17909 (expand_builtin_int_roundingfn): Ditto.
17910 (expand_builtin_int_roundingfn_2): Ditto.
17911 (expand_builtin_pow): Ditto.
17912 (expand_builtin_powi): Ditto.
17913 (expand_builtin_bswap): Ditto.
17914 (expand_builtin_unop): Ditto.
17915 (expand_builtin_fabs): Ditto.
17916 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
17917 the call to expand_expr().
17918 (expand_builtin_sync_operation): Ditto.
17919 (expand_builtin_compare_and_swap): Ditto.
17920 (expand_builtin_lock_test_and_set): Ditto.
17921 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
17922 instead of 0 in the call to expand_expr().
17923 (expand_builtin_extract_return_addr): Ditto.
17924 (expand_builtin_eh_return): Ditto.
17925 (expand_eh_return): Ditto.
17926 * explow.c (expr_size): Ditto.
17927 * expr.c (optimize_bitfield_assignment_op): Ditto.
17928 (expand_assignement): Ditto.
17929 (store_expr): Ditto.
17930 (store_field): Ditto.
17931 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
17932 the call to expand_expr().
17933 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
17934 in the call to expand_expr().
17935 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
17936 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
17937 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
17938 of expand_expr().
17939 * optabs.c (expand_vec_shift_expr): Ditto.
17940 (expand_vec_cond_expr): Ditto.
17941 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
17942 call to expand_expr().
17943 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
17944 in the call to expand_expr().
17945
17946 2007-05-14 Dave Korn <dave.korn@artimi.com>
17947
17948 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
17949
17950 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
17951
17952 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
17953 instead of c_common_unsigned_type.
17954 (c_common_unsigned_type): Remove.
17955 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
17956 c_common_unsigned_type.
17957 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
17958 c_common_unsigned_type.
17959 * c-common.h (c_common_unsigned_type): Remove.
17960 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
17961 c_common_unsigned_type.
17962 * c-format.c (check_format_types): Use unsigned_type_for instead of
17963 c_common_unsigned_type.
17964 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17965 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
17966 of c_common_unsigned_type.
17967 * convert.c (convert_to_integer): Use unsigned_type_for instead of
17968 lang_hooks.types.unsigned_type.
17969 * expmed.c (make_tree): Use unsigned_type_for instead of
17970 lang_hooks.types.unsigned_type.
17971 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
17972 lang_hooks.types.unsigned_type.
17973 (build_range_check): Likewise.
17974 (fold_unary): Likewise.
17975 (fold_binary): Likewise.
17976 (fold_ternary): Likewise.
17977 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17978 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
17979 * tree.c (get_unsigned_type): New.
17980 (unsigned_type_for): Use get_unsigned_type instead of
17981 lang_hooks.types.unsigned_type.
17982
17983 2007-05-14 Kazu Hirata <kazu@codesourcery.com>
17984
17985 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
17986 to m68k_get_function_kind. Update its prototype.
17987 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
17988 interrupt_thread.
17989 (m68k_interrupt_function_p): Return enum m68k_function_type
17990 instead of bool. Rename to m68k_get_function_kind.
17991 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
17992 target is not fido.
17993 (m68k_compute_frame_layout): Don't mark any register for save
17994 if an interrupt_thread attribute is specified.
17995 (m68k_hard_regno_rename_ok): Update a use of
17996 m68k_interrupt_function_p.
17997 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
17998 m68k_interrupt_function_p.
17999 (m68k_function_type): New.
18000 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
18001 for a function with an interrupt_thread attribute.
18002 * doc/extend.texi: Document the interrupt_thread attribute.
18003
18004 2007-05-13 Daniel Berlin <dberlin@dberlin.org>
18005
18006 Fix PR tree-optimization/31911
18007 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
18008 if they didn't change the expression.
18009
18010 2007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
18011
18012 * tree-scalar-evolution.c (resolve_mixers): Exported.
18013 * tree-scalar-evolution.h (resolve_mixers): Declare.
18014 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
18015 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
18016 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
18017 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
18018 init_array_ref, init_pointer_ref, analyze_indirect_ref,
18019 strip_conversion, analyze_offset_expr, address_analysis,
18020 object_analysis, analyze_offset): Removed.
18021 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
18022 split_constant_offset, canonicalize_base_object_address,
18023 object_address_invariant_in_loop_p, disjoint_objects_p,
18024 dr_may_alias_p, dr_address_invariant_p): New functions.
18025 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
18026 and dr_analyze_alias.
18027 (initialize_data_dependence_relation): Use dr_may_alias_p
18028 and object_address_invariant_in_loop_p.
18029 (compute_self_dependence): Handle the case when
18030 DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
18031 (find_data_references_in_stmt): Restrict the analysis of data
18032 references to the given loop nest.
18033 (find_data_references_in_loop): Made static. Pass loop nest to
18034 find_data_references_in_stmt.
18035 (compute_data_dependences_for_loop): Use DR_VOPS.
18036 (free_data_ref): Free DR_VOPS.
18037 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
18038 (struct innermost_loop_behavior): ... new.
18039 (struct base_object_info): Replaced by ...
18040 (struct indices): ... new.
18041 (struct dr_alias): New.
18042 (enum data_ref_type): Removed.
18043 (struct data_reference): Consist of struct innermost_loop_behavior,
18044 struct indices and struct dr_alias.
18045 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
18046 (DR_MEMTAG): Renamed to ...
18047 (DR_SYMBOL_TAG): ... this.
18048 (find_data_references_in_loop): Declaration removed.
18049 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
18050 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
18051 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
18052 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
18053
18054 2007-05-13 Revital Eres <eres@il.ibm.com>
18055
18056 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
18057 which walks virtual def-use chains to find redundant stores.
18058 (dse_optimize_stmt): Call it.
18059
18060 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
18061
18062 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
18063 * passes.c (init_optimization_passes): Move pass_jump_bypass
18064 after loop2.
18065
18066 * basic-block.h (bb_has_eh_pred): Fix style issue.
18067
18068 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
18069
18070 PR rtl-optimization/31848
18071 * loop-invariant.c (move_invariant_reg): If we move an insn
18072 with a REG_EQUAL note, and that insn is not always executed,
18073 remove the REG_EQUAL note.
18074
18075 2007-05-12 Richard Guenther <rguenther@suse.de>
18076
18077 PR tree-optimization/31797
18078 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
18079 propagate into a stmt that has volatile ops.
18080
18081 2007-05-12 Richard Sandiford <richard@codesourcery.com>
18082
18083 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
18084 (gcc_tooldir): Likewise.
18085 * configure: Regenerate.
18086 * Makefile.in (libsubdir_to_prefix): New variable, based on the
18087 old configure.ac gcc_tooldir setting.
18088 (prefix_to_exec_prefix): New variable.
18089 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
18090 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
18091
18092 2007-05-11 Silvius Rus <rus@google.com>
18093
18094 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
18095 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
18096 * c-common.h (strict_aliasing_warning): Change return type.
18097 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
18098 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
18099 (build_c_cast): Condition call to strict_aliasing_warning.
18100 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
18101 * flags.h (set_Wstrict_aliasing): Declare.
18102 * opts.c (set_Wstrict_alising): Define, add call to.
18103 * tree-flow.h (strict_aliasing_warning_backend): Declare.
18104 * tree-ssa-alias-warnings.c: New file.
18105 * tree-ssa-alias.c (compute_may_aliases): Add call to
18106 strict_aliasing_warning_backend.
18107
18108 2007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
18109
18110 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
18111 Use loop_depth and loop_outer accessor functions.
18112 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
18113 determine_invariantness_stmt, move_computations_stmt): Ditto.
18114 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
18115 add_loop, loopify, unloop, fix_loop_structure): Ditto.
18116 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
18117 * tree-scalar-evolution.c (interpret_loop_phi,
18118 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
18119 instantiate_parameters_1, scev_const_prop): Ditto.
18120 * cfghooks.c (make_forwarder_block): Ditto.
18121 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
18122 * modulo-sched.c (loop_canon_p): Ditto.
18123 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
18124 slpeel_can_duplicate_loop_p): Ditto.
18125 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
18126 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
18127 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
18128 cancel_loop, verify_loop_structure): Ditto.
18129 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
18130 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
18131 superloops vector instead of "pred" array.
18132 (establish_preds): Take father loop as an argument. Initialize the
18133 superloops vector.
18134 (flow_loop_tree_node_add): Pass father loop to establish_preds.
18135 Do not initialize loop->outer.
18136 (flow_loop_tree_node_remove): Truncate the superloops vector.
18137 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
18138 "pred" merged to "superloops" vector.
18139 (loop_depth, loop_outer): New.
18140 (fel_init): Use loop_outer.
18141
18142 2007-05-11 Jan Hubicka <jh@suse.cz>
18143
18144 * cgraphunit.c: Include gt-cgraphunit.h
18145 (static_ctors, static_dtors): New static vars.
18146 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
18147 based on implementation in c-common.c
18148 (cgraph_finalize_function): Call record_cdtor_fn.
18149 (cgraph_optimize): Call cgraph_build_cdtor_fns.
18150 * decl.c (finish_function): Do not call c_record_cdtor_fn.
18151 (c_write_global_declarations): Do not call c_build_cdtor_fns.
18152 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
18153 build_cdtor, c_build_cdtor_fns): Remove.
18154 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
18155 c_build_cdtor_fns): Remove prototype.
18156
18157 2007-05-11 Paolo Carlini <pcarlini@suse.de>
18158
18159 PR other/31852
18160 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
18161 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
18162 * builtins.c (fold_builtin_memchr): New.
18163 (expand_builtin_memchr): Call the latter.
18164 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
18165 * doc/extend.texi ([Other built-in functions provided by GCC]):
18166 Document memchr.
18167
18168 2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
18169
18170 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
18171 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
18172 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
18173 PFPO_OP1_TYPE_SHIFT): Constants added.
18174 (DFP_ALL): Mode macro defined.
18175 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
18176 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
18177 Insn definitions added.
18178 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
18179 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
18180 Expanders added.
18181
18182 2007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
18183
18184 PR tree-optimization/31885
18185 * tree-chrec.c (chrec_contains_undetermined): Do not consider
18186 NULL_TREE to be undetermined.
18187 (automatically_generated_chrec_p): Return false for NULL.
18188
18189 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
18190
18191 * config/bfin/bfin.h (MOVE_RATIO): Define.
18192
18193 2007-05-10 Richard Sandiford <richard@codesourcery.com>
18194
18195 * config.gcc (sparc-wrs-vxworks): New target.
18196 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
18197 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
18198 * config/sparc/sparc.h: Include vxworks-dummy.h.
18199 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
18200 include LABEL_REFs too.
18201 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
18202 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
18203 VxWorks.
18204 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
18205 on VxWorks.
18206 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
18207 (sparc_emit_call_insn): New function.
18208 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
18209 functions when generating VxWorks PIC.
18210 * config/sparc/sparc.md (vxworks_load_got): New pattern.
18211 (call, call_value): Use sparc_emit_call_insn instead of
18212 emit_call_insn.
18213
18214 2007-05-09 Bob Wilson <bob.wilson@acm.org>
18215
18216 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
18217
18218 2007-05-09 Bob Wilson <bob.wilson@acm.org>
18219
18220 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
18221 for floating-point values if HOST_BITS_PER_LONG > 32. Use
18222 split_double instead of operand_subword.
18223
18224 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
18225
18226 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
18227 * config/bfin/bfin.c (bfin_local_alignment): New function.
18228 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
18229
18230 2007-05-08 Chao-ying Fu <fu@mips.com>
18231
18232 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
18233 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
18234 (smsub_widen_optab, umsub_widen_optab): Define.
18235 * optabs.c (init_optabs): Initialize smsub_widen_optab and
18236 umsub_widen_optab.
18237 * genopinit.c (optabs): Fill in smsub_widen_optab and
18238 umsub_widen_optab.
18239 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
18240 and umsub_widen_optab to implement multiply-subtract sequences.
18241 * config/mips/mips.md (*msac<u>_di): Rename to...
18242 (<u>msubsidi4): ...this. Extend condition to include
18243 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
18244 of operand 0 to "ka" and use the three-operand form of msub<u>
18245 for TARGET_DSPR2.
18246 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
18247 to define_expands.
18248
18249 2007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18250
18251 PR rtl-optimization/28011
18252 * reload.c (push_reload): Set dont_share if IN appears in OUT
18253 also when IN is a PLUS rtx.
18254 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
18255 are same PLUS rtx.
18256
18257 2007-05-08 Kazu Hirata <kazu@codesourcery.com>
18258
18259 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
18260 call unshare_all_decls.
18261 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
18262 (unshare_all_decls): Remove.
18263
18264 2007-05-08 Simon Martin <simartin@users.sourceforge.net>
18265
18266 PR 31847
18267 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
18268 dumps.
18269
18270 2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
18271 Nigel Stephens <nigel@mips.com>
18272
18273 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
18274 Update comments and all uses.
18275 (MIN_FPRS_PER_FMT): Define.
18276 * config/mips/mips.c (function_arg): Fix to correctly handle
18277 the -mips32r2 -mfp64 -mabi=32 case.
18278 (override_options): Enable use of odd-numbered registers for
18279 SFmode values on MIPS32.
18280 (mips_save_reg_p): Save whole floating-point register pair if
18281 either half is used.
18282 (compute_frame_size): Fix comment.
18283
18284 2007-05-08 Jie Zhang <jie.zhang@analog.com>
18285
18286 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
18287 argument of type bool.
18288 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
18289 argument. Safely select temporary P register according to it.
18290 (do_link): Change call site of add_to_reg accordingly.
18291 (do_unlink): Add epilogue_p as a fourth argument and pass it
18292 to add_to_reg.
18293 (expand_interrupt_handler_epilogue): Change call of do_unlink
18294 accordingly.
18295 (bfin_expand_prologue): Add a third argument sibcall_p.
18296 * config/bfin/bfin.md (epilogue): Change call of
18297 bfin_expand_epilogue accordingly.
18298 (sibcall_epilogue): Likewise.
18299 (eh_return_internal): Likewise.
18300
18301 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
18302 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
18303 * config/bfin/bfin.c (bfin_handle_option): Handle
18304 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
18305 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
18306 Support bf534, bf536 and bf561.
18307 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
18308
18309 2007-05-08 Uros Bizjak <ubizjak@gmail.com>
18310
18311 PR target/31854
18312 * config/i386/i386.c (ix86_function_regparm): Process local
18313 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
18314
18315 2007-05-07 Mike Stump <mrs@apple.com>
18316
18317 * doc/invoke.texi (Warning Options): Document that -Wempty-body
18318 also checks for and while statements in C++.
18319
18320 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
18321
18322 * gcc.c (at_file_supplied): New variable.
18323 (main): Set it if we expanded argv.
18324 (do_spec_1): Pass an @-file to the linker if we were called with
18325 an @-file argument and HAVE_GNU_LD.
18326 * collect2.c (at_file_supplied): New variable.
18327 (response_file): New variable.
18328 (collect_exit): Unlink response_file if necessary.
18329 (handler): Likewise.
18330 (do_wait): Likewise.
18331 (main): Set at_file_supplied if we expanded argv.
18332 (collect_execute): Pass an @-file to subprocesses if we were called
18333 with an @-file argument.
18334 * configure.ac: Add define for HAVE_GNU_LD.
18335 * configure: Regenerate.
18336 * config.in: Regenerate.
18337
18338 2007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
18339
18340 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
18341 operand to HI mode.
18342 (mulsi3): New.
18343 (divsi3): New.
18344 (udivsi3): New.
18345
18346 2007-05-07 Jayant Sonar <jayants@kpitcummins.com>
18347
18348 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18349 (TARGET_ENCODE_SECTION_INFO): Re-define.
18350 (m32c_encode_section_info): New
18351 (function_vector_handler): New
18352 (current_function_special_page_vector): New
18353 (m32c_special_page_vector_p): New.
18354 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
18355 Prototype.
18356 * config/m32c/jump.md: Added instruction JSRS for functions
18357 with attribute "function_vector".
18358 * doc/extend.texi (function_vector): Added description
18359 for M16C, M32C targets.
18360
18361 2007-05-07 DJ Delorie <dj@redhat.com>
18362
18363 PR 31794
18364 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
18365 ashrpsi3, lshrpsi3): Update shift count constraint.
18366
18367 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
18368 Nathan Froyd <froydnj@codesourcery.com>
18369
18370 PR 22133
18371 * c-incpath.c (add_path): Strip trailing path separators.
18372
18373 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
18374
18375 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
18376 Free dominance info before purging EH edges.
18377 (eliminate_degenerate_phis): Likewise.
18378 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
18379
18380 2007-05-07 Jan Hubicka <jh@suse.cz>
18381
18382 * gimplify.c (gimplify_expr): Do not crash when folding
18383 (void *)(int)&a + 4.
18384
18385 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18386
18387 PR driver/31694
18388 * c-opts.c (lang_fortran): Make it non static.
18389 * c-common.h (lang_fortran): New prototype.
18390 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
18391 -lang-fortran option was passed by the driver.
18392
18393 2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
18394
18395 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
18396 of ASSERT_CHECKING. Tweak message.
18397
18398 2007-05-06 Revital Eres <eres@il.ibm.com>
18399
18400 PR 30957
18401 * loop-unroll.c (insert_var_expansion_initialization):
18402 Initialize the expansions with -zero instead of +zero.
18403
18404 2007-05-05 Aurelien Jarno <aurelien@aurel32.net>
18405
18406 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
18407 into pic and non-pic versions. Mark r19 as used for
18408 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
18409 for tgd_load, tld_load and tie_load .
18410 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
18411 version of tgd_load, tld_load and tie_load depending on the
18412 value of flag_pic.
18413
18414 2007-05-04 Ulrich Drepper <drepper@redhat.com>
18415 Jakub Jelinek <jakub@redhat.com>
18416
18417 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
18418 (__do_global_dtors_aux): Use more paranoid loop to run
18419 destructors if HIDDEN_DTOR_LIST_END.
18420 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
18421
18422 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18423
18424 * varasm.c (align_variable): Don't increase alignment for
18425 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
18426 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
18427
18428 2007-05-04 Josh Conner <jconner@apple.com>
18429
18430 * basic-block.h (cdi_direction): Assign values to all enumeration
18431 constants.
18432 (dom_computed): Remove.
18433 (dom_info_state): New.
18434 (set_dom_info_availability): New.
18435 * tree-ssa-loop-im.c (determine_invariantness): Initialize
18436 walk_data.dom_direction.
18437 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
18438 instead of dom_computed[].
18439 (split_edge): Likewise.
18440 (create_basic_block): Likewise.
18441 (merge_blocks): Likewise.
18442 * ifcvt.c (find_if_header): Likewise.
18443 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
18444 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
18445 * tree-ssa.c (verify_ssa): Likewise.
18446 * tree-cfg.c (tree_verify_flow_info): Likewise.
18447 (remove_edge_and_dominated_blocks): Likewise.
18448 * dominance.c (dom_computed): Make static.
18449 (calc_dfs_tree_nonrec): Change third param to a bool.
18450 (calc_dfs_tree): Change second param to a bool.
18451 (calc_idioms): Change second param to a bool. Use
18452 dom_convert_dir_to_idx.
18453 (init_dom_info): Validate dir before using.
18454 (dom_convert_dir_to_idx): New.
18455 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
18456 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
18457 (free_dominance_info): Use dom_convert_dir_to_idx.
18458 (get_immediate_dominator): Likewise.
18459 (set_immediate_dominator): Likewise.
18460 (get_dominated_by): Likewise.
18461 (redirect_immediate_dominators): Likewise.
18462 (nearest_common_denominator): Likewise.
18463 (dominated_by_p): Likewise.
18464 (bb_dom_dfs_in): Likewise.
18465 (bb_dom_dfs_out): Likewise.
18466 (recount_dominator): Likewise.
18467 (iterate_fix_dominators): Likewise.
18468 (add_to_dominance_info): Likewise.
18469 (delete_from_dominance_info): Likewise.
18470 (first_dom_son): Likewise.
18471 (next_dom_son): Likewise.
18472 (dom_info_available_p): Likewise.
18473 (dom_info_state): New.
18474 (set_dom_info_availability): New.
18475
18476 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
18477
18478 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
18479 Expander removed.
18480 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
18481
18482 2007-05-04 Bob Wilson <bob.wilson@acm.org>
18483
18484 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
18485 (subdi3, subdi_carry): Delete.
18486
18487 2007-05-04 Jan Hubicka <jh@suse.cz>
18488 Richard Guenther <rguenther@suse.de>
18489
18490 * opts.c (decode_options): Do not fiddle with inlining
18491 parameters in case of optimizing for size.
18492 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
18493 for size do nothing.
18494 (cgraph_decide_inlining_of_small_function): When optimizing for
18495 size never inline functions increasing caller size.
18496 (cgraph_early_inlining): Inline for size when optimizing for size.
18497
18498 2007-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
18499
18500 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
18501 logical operations piecewise.
18502 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
18503 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
18504 subdi_sesidi_di): Delete.
18505 (add_with_carry): Produce carry in CC instead of a DREG to shorten
18506 the generated sequence. Allow three-reg add in constraints. Rewrite
18507 the rtl expression for carry to avoid zero_extend of a constant.
18508 (sub_with_carry): New pattern.
18509 (adddi3, subdi3): Change into define_expand. For subtract, generate a
18510 different sequence not involving jumps.
18511 (notbi): Now a named pattern.
18512
18513 2007-05-04 Bradley Lucier <lucier@math.purdue.edu>
18514
18515 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
18516 Add the note about a significant loss of accuracy of some
18517 mathematical routines when these options are used.
18518
18519 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
18520
18521 * haifa-sched.c (rtx_vec_t): New typedef.
18522 (contributes_to_priority_p): Extract piece of priority () into new
18523 static function.
18524 (priority): Use the function. Add assertion.
18525 (rank_for_schedule, set_priorities): Add assertion to check that
18526 insn's priority is initialized.
18527 (clear_priorities, calc_priorities): Change signature. Make it update
18528 all relevant insns. Update all callers ('add_to_speculative_block ()'
18529 and 'create_block_check_twin ()').
18530 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
18531 Add new field 'priority_status'.
18532 (INSN_PRIORITY_STATUS): New macro.
18533 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
18534
18535 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
18536
18537 * sched-ebb.c (debug_ebb_dependencies): New static function.
18538 (init_ready_list): Use it.
18539
18540 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
18541 with changed signature and 'debug_rgn_dependencies ()'.
18542 (debug_rgn_dependencies): New static function.
18543 (init_ready_list): Use it.
18544
18545 * sched-int.h (debug_dependencies): Declare.
18546
18547 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
18548
18549 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
18550
18551 2007-05-04 Dirk Mueller <dmueller@suse.de>
18552
18553 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
18554
18555 2007-05-03 Jan Hubicka <jh@suse.cz>
18556
18557 * fold-const.c (fold_unary): Convert (T1)(X op Y) into
18558 ((T1)X op (T1)Y), for pointer type in more cases than before.
18559
18560 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
18561
18562 * tree-object-size.c (plus_expr_object_size): When operand size is
18563 unknown, return unknown.
18564
18565 2007-05-03 Dirk Mueller <dmueller@suse.de>
18566
18567 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
18568
18569 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
18570 options.
18571
18572 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
18573
18574 2007-05-03 Janis Johnson <janis187@us.ibm.com>
18575
18576 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
18577
18578 2007-05-03 Joseph Myers <joseph@codesourcery.com>
18579
18580 * config/soft-fp/double.h, config/soft-fp/extended.h,
18581 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
18582 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
18583 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
18584 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
18585 glibc CVS.
18586
18587 2007-05-03 Ian Lance Taylor <iant@google.com>
18588
18589 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
18590 MASK_PPC_GFXOPT for 8540 or 8548.
18591
18592 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
18593
18594 * tree-vect-transform.c (vect_update_inits_of_drs): Use
18595 vect_print_dump_info() to output debug information.
18596
18597 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
18598
18599 PR target/31768
18600 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
18601 operands of size 2 when operand is not MEM_P.
18602
18603 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
18604
18605 PR tree-optimization/30565
18606 * lambda-code.c (perfect_nestify): Fix updating of dominators.
18607
18608 2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
18609
18610 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
18611 (umulsi3_highpart): Use them.
18612 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
18613 for final accumulator to D regisster tranfser.
18614
18615 2007-05-03 Dorit Nuzman <dorit@il.ibm.com>
18616
18617 PR tree-optimization/31699
18618 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
18619 wrong code.
18620 (vect_enhance_data_refs_alignment): Compute peel amount using
18621 TYPE_VECTOR_SUBPARTS instead of vf.
18622 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
18623
18624 2007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
18625
18626 PR bootstrap/31776
18627 * system.h: Remove inclusion of double-int.h
18628 * tree.h: Include double-int.h
18629 * gengtype.c: Likewise
18630 * cfgloop.h: Likewise
18631 * Makefile.in: Adjust dependencies on double-int.h
18632
18633 2007-05-02 Eric Christopher <echristo@apple.com>
18634
18635 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
18636 -shared to -Zdynamiclib.
18637
18638 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
18639
18640 PR c++/31663
18641 * c-common.c (strip_pointer_or_array_types): New function.
18642 * c-common.h (strip_pointer_or_array_types): New function declaration.
18643
18644 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
18645
18646 PR tree-optimization/31771
18647 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
18648
18649 2007-05-02 Paul Brook <paul@codesourcery.com>
18650
18651 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
18652
18653 2007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
18654
18655 PR middle-end/29715
18656 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
18657 transformation.
18658
18659 2007-05-02 Nick Clifton <nickc@redhat.com>
18660
18661 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
18662
18663 2007-05-02 Richard Guenther <rguenther@suse.de>
18664
18665 PR tree-optimization/31146
18666 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
18667 argument, single_use_p. If we have a single use that is
18668 a conversion to the definition rhs type, propagate that rhs.
18669 (forward_propagate_addr_expr): Pass single_use_p argument
18670 to forward_propagate_addr_expr_1.
18671
18672 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
18673
18674 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
18675 variable.
18676
18677 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18678
18679 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
18680 'AMD Family 10 core'.
18681
18682 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18683
18684 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
18685 and athlon64-sse3 as improved versions of k8, opteron and athlon64
18686 with SSE3 instruction set support.
18687 * doc/invoke.texi: Likewise.
18688
18689 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18690
18691 * config/i386/i386.c (override_options): Tuning 32-byte loop
18692 alignment for amdfam10 architecture. Increasing the max loop
18693 alignment to 24 bytes.
18694
18695 2007-05-01 Kazu Hirata <kazu@codesourcery.com>
18696
18697 * config/m68k/constraints.md: New.
18698 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
18699 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
18700 EXTRA_CONSTRAINT): Remove.
18701 * config/m68k/m68k.md: Include constraints.md.
18702 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
18703
18704 2007-05-01 Ian Lance Taylor <iant@google.com>
18705
18706 PR tree-optimization/31739
18707 * tree-vrp.c (vrp_val_is_max): New static function.
18708 (vrp_val_is_min): New static function.
18709 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
18710 copying the node.
18711 (set_value_range): Use vrp_val_is_{max,min}.
18712 (extract_range_from_assert): Likewise.
18713 (extract_range_from_binary_expr): Likewise.
18714 (extract_range_from_unary_expr): Likewise.
18715 (dump_value_range, vrp_meet): Likewise.
18716 (vrp_visit_phi_node): Likewise.
18717 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
18718
18719 2007-05-01 Mark Mitchell <mark@codesourcery.com>
18720
18721 * config/i386/gmon-sol2.c (size_t): New type.
18722 (intptr_t): Likewise.
18723 (s_textsize): Declare as size_t.
18724 (sbrk): Declare.
18725 (monstartup): Use size_t for sizes.
18726 (_mcount): Save and restore registers.
18727 (internal_mcount): Pass 0 as the first argument to monstartup
18728 in 64-bit mode.
18729 (moncontrol): Convert pointer to appropriately sized integer
18730 before passing to profil.
18731
18732 2007-05-01 Joseph Myers <joseph@codesourcery.com>
18733
18734 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
18735 __NO_FPRS__, not just if _SOFT_DOUBLE.
18736 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
18737 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
18738 also for E500 double.
18739 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
18740 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
18741 && !TARGET_FPRS).
18742
18743 2007-05-01 Richard Guenther <rguenther@suse.de>
18744
18745 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
18746 is NULL.
18747
18748 2007-05-01 Joseph Myers <joseph@codesourcery.com>
18749
18750 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
18751
18752 2007-05-01 Jan Hubicka <jh@suse.cz>
18753
18754 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
18755 invariant.
18756
18757 2007-05-01 Jan Hubicka <jh@suse.cz>
18758
18759 * tree.h (maybe_fold_offset_to_component_ref): Remove.
18760 (maybe_fold_offset_to_reference): Declare.
18761 * fold-const.c (fold_unary): Do not fold
18762 (type *)&A into &A->field_of_type_and_offset_0
18763 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
18764 size is unknown, give up.
18765 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
18766 offsets.
18767 (maybe_fold_offset_to_reference): New.
18768 (maybe_fold_stmt_indirect): Use it.
18769 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
18770 * gimplify.c (gimplify_conversion): Canonicalize conversions to
18771 field references.
18772 (gimplify_expr): Likewise for plus_expr.
18773
18774 2007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
18775
18776 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
18777 bsi_after_labels. Always insert statements before bsi.
18778 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
18779 * predict.c (apply_return_prediction): Check for empty blocks.
18780 * cfgexpand.c (lab_rtx_for_bb): New variable.
18781 (label_rtx_for_bb): Do not create new tree labels.
18782 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
18783 (tree_expand_cfg): Initialize lab_rtx_for_bb.
18784 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
18785 creating edges.
18786 (label_for_bb): Add field used.
18787 (update_eh_label, main_block_label): Mark the label used.
18788 (cleanup_dead_labels): Remove unused labels.
18789
18790 2007-05-01 Richard Guenther <rguenther@suse.de>
18791
18792 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
18793 if it is not about to be set.
18794 (get_value_range): Do not pre-allocate equiv bitmap.
18795 (update_value_range): No need to clear equiv field.
18796 (add_equivalence): Change prototype to get bitmap pointer.
18797 Allocate bitmap here if it is not already.
18798 (extract_range_from_assert): Do not allocate bitmap here.
18799 Update callers to add_equivalence.
18800 (extract_range_from_ssa_name): Likewise.
18801 (get_vr_for_comparison): New static helper.
18802 (compare_name_with_value): Handle NULL equiv bitmap by
18803 peeling the first iteration of the comparison loop.
18804 Use get_vr_for_comparison.
18805 (compare_names): Handle NULL equiv bitmaps by using fake
18806 ones. Use get_vr_for_comparison.
18807
18808 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
18809
18810 * double-int.c (mpz_set_double_int): Moved from
18811 tree-ssa-loop-niter.c.
18812 (mpz_get_double_int): Likewise; also, add option to wrap
18813 out-of-range integers.
18814 * double-int.h: New prototypes for above.
18815 * tree.c (get_static_type_bounds): Moved from
18816 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
18817 TYPE_MAX_VALUE if they exist..
18818 * tree.h: New prototype for above.
18819 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
18820 get_type_bounds calls.
18821 (mpz_set_double_int): Move to double-int.c.
18822 (get_type_bounds): Move to tree.c, rename to
18823 get_static_type_bounds.
18824 (mpz_to_double_int): Move to double-int.c, rename to
18825 mpz_get_double_int.
18826
18827 2007-04-30 Bob Wilson <bob.wilson@acm.org>
18828
18829 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
18830 DIV0 exception can fall through to a normal return.
18831
18832 2007-04-30 Alexandre Oliva <aoliva@redhat.com>
18833
18834 PR middle-end/22156
18835 Temporarily revert:
18836 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
18837 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
18838 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
18839 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
18840 initialize align to silence bogus warning.
18841 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
18842 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
18843 all_no_warning.
18844 (struct sra_walk_fns): Remove use_all parameter from use.
18845 (sra_hash_tree): Handle BIT_FIELD_REFs.
18846 (sra_elt_hash): Don't hash bitfld blocks.
18847 (sra_elt_eq): Skip them in parent compares as well. Handle
18848 BIT_FIELD_REFs.
18849 (sra_walk_expr): Don't maintain or pass down use_all_p.
18850 (scan_use): Remove use_all parameter.
18851 (scalarize_use): Likewise. Re-expand assignment to
18852 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
18853 output, and re-scalarize after output. Don't mark anything
18854 for no warning.
18855 (scalarize_ldst): Adjust.
18856 (scalarize_walk_gimple_modify_statement): Likewise.
18857 (build_element_name_1): Handle BIT_FIELD_REFs.
18858 (instantiate_element): Don't warn for any element whose parent
18859 is used as a whole.
18860 (instantiate_missing_elements_1): Return the sra_elt.
18861 (canon_type_for_field): New.
18862 (try_instantiate_multiple_fields): New.
18863 (instantiate_missing_elemnts): Use them.
18864 (mark_no_warning): Removed.
18865 (generate_one_element_ref): Handle BIT_FIELD_REFs.
18866 (REPLDUP, sra_build_elt_assignment): New.
18867 (generate_copy_inout): Use them.
18868 (generate_element_copy): Likewise. Handle bitfld differences.
18869 (generate_element_zero): Don't recurse for blocks. Use
18870 sra_build_elt_assignment.
18871 (generate_one_element_int): Take elt instead of var. Use
18872 sra_build_elt_assignment.
18873 (generate_element_init_1): Adjust.
18874 (scalarize_use, scalarize_copy): Use REPLDUP.
18875 (scalarize_ldst): Move assert before dereference.
18876 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
18877
18878 2007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
18879
18880 PR C++/31721
18881 * tree.c (reconstruct_complex_type): Reconstruct a reference
18882 correctly.
18883 Also use the same mode for the pointer as the old pointer type.
18884
18885 2007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18886
18887 * doc/trouble.texi (Interoperation): Remove note about Ultrix
18888 Fortran compiler.
18889
18890 2007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
18891
18892 PR rtl-optimization/31676
18893 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
18894 (df_refs_record): Call it.
18895
18896 2007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
18897
18898 * rtl.def (SS_ABS): New code.
18899 * config/bfin/bfin.c (print_operand): New modifier 'v'.
18900 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
18901 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
18902 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
18903 (bfin_init_builtins): Define them.
18904 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
18905 (bfin_expand_builtin): ... and handle the others here.
18906 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
18907 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
18908 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
18909 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
18910 operand is only HImode.
18911
18912 2007-04-29 Steven Bosscher <steven@gcc.gnu.org>
18913
18914 * regclass.c (scan_one_insn): Remove splitting of
18915 two address insns.
18916
18917 2007-04-28 Sandra Loosemore <sandra@codesourcery.com>
18918 Nigel Stephens <nigel@mips.com>
18919
18920 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
18921
18922 2007-04-28 Jan Hubicka <jh@suse.cz>
18923
18924 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
18925 insn_locators_alloc instead of insn_locators_initialize;
18926 call reset_block_changes.
18927 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18928 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
18929 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
18930 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18931 * config/score/score.c (th_output_mi_thunk): Likewise.
18932 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18933 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
18934 tolerate uninitialized locator info.
18935
18936 Re-apply:
18937 * function.c (init_function_start): Don't init line number info.
18938 (expand_function_end): Update.
18939 (reset_block_changes, record_block_change, finalize_block_changes,
18940 check_block_change, free_block_changes): Kill.
18941 * function.h (reset_block_changes, record_block_change,
18942 finalize_block_changes, check_block_change, free_block_changes):
18943 Remove prototypes.
18944 (struct function): Remove ib_boundaries_block.
18945 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
18946 Use curr_insn_locator to initialize locator.
18947 (emit_line_note): Remove.
18948 * cfgexpand.c (expand_gimple_cond_expr): Update.
18949 (construct_exit_block): Likewise.
18950 (tree_expand_cfg): Initialize/finalize locators.
18951 * expr.c (expand_expr_real): Update.
18952 * cfglayout.c (line_locators_locs, line_locators_lines,
18953 file_locators_locs, file_locators_files): Remove.
18954 (set_block_levels): Move to cfgexpand.c.
18955 (insn_locators_initialize): Remove.
18956 (pass_insn_locators_initialize): Remove.
18957 (locations_locators_locs, locations_locators_vals): New static vars.
18958 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
18959 Likewise.
18960 (insn_locators_alloc, insn_locators_finalize,
18961 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18962 New functions.
18963 (locator_location): New.
18964 (locator_line, locator_file): Rewrite.
18965 * rtl.h (emit_line_note): Kill.
18966 (insn_locators_alloc, insn_locators_finalize,
18967 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18968 Declare.
18969 * tree-inline.c (initialize_cfun): Do not initialize
18970 ib_boundaries_block.
18971 * passes.c (pass_insn_locators_initialize): Remove.
18972
18973 2007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
18974
18975 * tree-cfg.c (move_block_to_fn): Release bb from dominance
18976 info. Update last_basic_block correctly.
18977
18978 2007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
18979
18980 PR target/31701
18981 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
18982 register itself to hold the offset constant. Tell flow the use
18983 of r4 and r5 when they are used.
18984
18985 2007-04-27 Richard Guenther <rguenther@suse.de>
18986
18987 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
18988 if we simplified anything.
18989 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
18990 warnings until we did a simplification and the stmt was not
18991 marked as TREE_NO_WARNING.
18992
18993 2007-04-27 Mike Stump <mrs@apple.com>
18994
18995 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
18996
18997 2007-04-27 Ian Lance Taylor <iant@google.com>
18998
18999 PR middle-end/31710
19000 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
19001 TYPE_MAX_VALUE exist, convert them to the new type.
19002
19003 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
19004
19005 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
19006 if it claims to be available.
19007 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
19008 edge is redirected.
19009 (perform_tree_ssa_dce): Always free postdominators.
19010
19011 2007-04-27 Richard Henderson <rth@redhat.com>
19012
19013 * config/alpha/predicates.md (aligned_memory_operand): Mark
19014 as define_special_predicate.
19015 (unaligned_memory_operand, normal_memory_operand): Likewise.
19016 (reg_or_unaligned_mem_operand): Remove.
19017 (any_memory_operand): Match the documentation and check for
19018 non-renumbered pseudos during reload.
19019 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
19020 alpha_secondary_reload_class, update to new interface, make static.
19021 Handle CQImode like HImode. Remove FP subreg check.
19022 (alpha_expand_mov): Use replace_equiv_address.
19023 (alpha_expand_mov_nobwx): Use any_memory_operand.
19024 (TARGET_SECONDARY_RELOAD): New.
19025 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
19026 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
19027 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
19028 * config/alpha/alpha.md: ... here.
19029 (RELOAD12, reloadmode): New.
19030 (movcqi): New.
19031 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
19032 Don't handle the aligned case here.
19033 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
19034 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
19035 reload_inhi_help. Don't expect a scratch register.
19036 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
19037 reload_outhi_help.
19038 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
19039
19040 2007-04-27 Richard Guenther <rguenther@suse.de>
19041
19042 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
19043
19044 2007-04-27 Richard Guenther <rguenther@suse.de>
19045
19046 PR tree-optimization/30965
19047 PR tree-optimization/30978
19048 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
19049 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
19050 (find_equivalent_equality_comparison): Likewise.
19051 (simplify_cond): Likewise.
19052 (get_prop_source_stmt): New helper.
19053 (get_prop_dest_stmt): Likewise.
19054 (can_propagate_from): Likewise.
19055 (remove_prop_source_from_use): Likewise.
19056 (combine_cond_expr_cond): Likewise.
19057 (forward_propagate_comparison): New function.
19058 (forward_propagate_into_cond): Rewrite to use fold for
19059 tree combining.
19060 (tree_ssa_forward_propagate_single_use_vars): Call
19061 forward_propagate_comparison to propagate comparisons.
19062
19063 2007-04-27 Richard Guenther <rguenther@suse.de>
19064
19065 PR tree-optimization/31715
19066 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
19067 sure to do computation on the offset in an appropriate
19068 signed type.
19069
19070 2007-04-27 Richard Sandiford <richard@codesourcery.com>
19071
19072 * reload.h (elimination_target_reg_p): Declare.
19073 * reload.c (find_reloads): Don't apply the reg_rtx move
19074 optimization if the SET_DEST satisfies elimination_target_reg_p.
19075 * reload1.c (elimination_target_reg_p): New function.
19076 (gen_reload): In the move/add2 fallback, make sure that op0
19077 does not overlap the destination register.
19078
19079 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
19080
19081 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
19082 transform only GIMPLE_MODIFY_STMTs.
19083 * tree-complex.c (expand_complex_operations_1): Ditto.
19084 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
19085 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
19086 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
19087 branches.
19088 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
19089 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
19090 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
19091 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
19092 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
19093 slpeel_add_loop_guard): Ditto.
19094 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
19095 * lambda-code.c (perfect_nestify): Ditto.
19096 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
19097 before the first statement.
19098 * tree-optimize.c (execute_free_datastructures): Fix comments.
19099 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
19100 * tree-flow.h (disband_implicit_edges): Declaration removed.
19101 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
19102 branches.
19103 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
19104 COND_EXPRs without gotos.
19105 (disband_implicit_edges, has_label_p): Removed.
19106 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
19107 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
19108 branches.
19109 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
19110 side effects.
19111 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
19112 also for COND_EXPRs.
19113 * cfgexpand.c (label_rtx_for_bb): New function.
19114 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
19115 Use label_rtx_for_bb to find the labels.
19116 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
19117 last block. Detect fallthru edges.
19118
19119 2007-04-26 Ian Lance Taylor <iant@google.com>
19120
19121 PR target/28675
19122 * reload.c (find_reloads_subreg_address): If the address was valid
19123 in the original mode but not in the new mode, reload the whole
19124 address.
19125
19126 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
19127
19128 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
19129 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
19130 (cleanup_control_expr_graph): Do not invalidate dominance info.
19131 Record altered blocks.
19132 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
19133 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
19134 cleanup_tree_cfg_bb): New functions.
19135 (remove_forwarder_block): Do not maintain the worklist of blocks.
19136 Record altered blocks.
19137 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
19138 not over whole cfg.
19139 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
19140 delete_unreachable_blocks if dominators are not available.
19141 * tree-inline.c (optimize_inline_calls): Free dominance information
19142 earlier.
19143 * tree-flow.h (remove_edge_and_dominated_blocks,
19144 cfgcleanup_altered_bbs): Altered.
19145 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
19146 blocks.
19147 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
19148 functions.
19149 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
19150 do not invalidate dominators.
19151
19152 2007-04-26 Anatoly Sokolov <aesok@post.ru>
19153
19154 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
19155 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
19156 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
19157 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
19158
19159 2007-04-26 Steve Ellcey <sje@cup.hp.com>
19160
19161 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
19162
19163 2007-04-26 Richard Guenther <rguenther@suse.de>
19164
19165 PR tree-optimization/31703
19166 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
19167 the right type for the target of the bittest.
19168
19169 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19170
19171 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
19172 ix86_sol10_return_in_memory.
19173
19174 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19175
19176 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
19177 variables.
19178
19179 2007-04-26 Jakub Jelinek <jakub@redhat.com>
19180
19181 PR c++/31598
19182 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
19183
19184 PR tree-optimization/30558
19185 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
19186 clear this_state.prev_try.
19187
19188 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19189 Mark Mitchell <mark@codesourcery.com>
19190
19191 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
19192 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
19193 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
19194
19195 2007-04-26 Richard Sandiford <richard@codesourcery.com>
19196
19197 PR driver/31107
19198 * doc/invoke.texi (%:print-asm-header): Document.
19199 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
19200 and -ftarget-help.
19201 (static_spec_functions): Add print-asm-header.
19202 (main): Print a banner before the --target-help linker options.
19203 (print_asm_header_spec_function): New function.
19204
19205 2007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
19206
19207 PR target/31403
19208 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
19209 (movsf_ie): Likewise.
19210
19211 2007-04-25 Paolo Carlini <pcarlini@suse.de>
19212
19213 * doc/extend.texi ([Type Traits]): Adjust per N2255.
19214
19215 2007-04-25 Bob Wilson <bob.wilson@acm.org>
19216
19217 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
19218 exception for divide-by-zero.
19219 (__umodsi3, __modsi3): Likewise.
19220
19221 2007-04-25 Dirk Mueller <dmueller@suse.de>
19222
19223 * c-typeck.c (build_compound_expr): Annotate warning()
19224 call with OPT_Wunused_value.
19225 * tree-ssa.c (warn_uninit): Annotate warning with
19226 OPT_Wunintialized.
19227 * c-common.c (handle_sentinel_attribute): Annotate warning
19228 call with OPT_Wattributes.
19229
19230 2007-04-25 Thiemo Seufer <ths@mips.com>
19231
19232 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
19233 (mips16): Fix typo.
19234 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
19235 on to the assembler. Improve handling of -mno-mips16. Add handling
19236 of -mno-mips3d, -mno-dsp, -mno-dspr2.
19237 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
19238 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
19239 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
19240
19241 2007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
19242
19243 PR target/31680
19244 * config/i386/winnt.c (i386_pe_file_end): Strip only
19245 USER_LABEL_PREFIX when writing export name.
19246
19247 2007-04-25 Richard Sandiford <richard@codesourcery.com>
19248
19249 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
19250 sh/elf.h, vx-common.h and vxworks.h.
19251 * config/sh/sh.h: Include config/vxworks-dummy.h.
19252 (SUBTARGET_OVERRIDE_OPTIONS): Define.
19253 (OVERRIDE_OPTIONS): Use it.
19254 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
19255 (vxworks_picreg): New pattern.
19256 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
19257 VXWORKS_OS_CPP_BUILTINS.
19258 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
19259 to their VXWORKS_* equivalents.
19260 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
19261 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
19262 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
19263 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
19264 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
19265 -mrtp/-fPIC multilibs.
19266 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
19267 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
19268 (MULTILIB_OSDIRNAMES): Delete.
19269
19270 2007-04-25 Anatoly Sokolov <aesok@post.ru>
19271
19272 PR target/18989
19273 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
19274
19275 2007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
19276
19277 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
19278 rounding mode to be specified by the caller.
19279 (real_to_mpfr) Likewise.
19280 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
19281 include new arguments.
19282 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
19283
19284 2007-04-24 Ian Lance Taylor <iant@google.com>
19285
19286 PR tree-optimization/31605
19287 * tree-vrp.c (set_value_range): Check that min and max are not
19288 both overflow infinities.
19289 (set_value_range_to_value): New static function.
19290 (extract_range_from_binary_expr): Call set_value_range_to_value.
19291 (extract_range_from_cond_expr): Likewise.
19292 (extract_range_from_expr): Likewise.
19293 (extract_range_from_unary_expr): Likewise. Don't create a range
19294 which overflows on both sides.
19295 (vrp_meet): Check for a useless range.
19296 (vrp_visit_phi_node): If we see a constant which looks like an
19297 overflow infinity, turn off the TREE_OVERFLOW flag.
19298
19299 2007-04-24 Ian Lance Taylor <iant@google.com>
19300
19301 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
19302
19303 2007-04-24 Simon Martin <simartin@users.sourceforge.net>
19304
19305 PR diagnostic/25923
19306 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
19307 diagnostic message is being built.
19308 * tree-pretty-print.c (dump_generic_node): Only write the
19309 formatted text into BUFFER's stream if we are not building a
19310 diagnostic message.
19311 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
19312 dump_generic_node.
19313 * Makefile.in (toplev.o): Depend on tree-pass.h.
19314
19315 2007-04-24 Ian Lance Taylor <iant@google.com>
19316
19317 PR tree-optimization/31602
19318 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
19319 conditionals in the copied loop header.
19320 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
19321 warnings if TREE_NO_WARNING is set.
19322 * doc/invoke.texi (Warning Options): Clarify that
19323 -Wstrict-overflow does not warn about loops.
19324
19325 2007-04-24 Janis Johnson <janis187@us.ibm.com>
19326
19327 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
19328 expand on the comment about _Decimal128 arguments and check the
19329 integer result of the modulus operation; for 64-bit ELF ABI, ensure
19330 that _Decimal128 argument uses even/odd register pair.
19331 (function_arg): Ditto.
19332
19333 2007-04-24 Hui-May Chang <hm.chang@apple.com>
19334
19335 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
19336 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
19337
19338 2007-04-24 Richard Guenther <rguenther@suse.de>
19339 Olga Golovanevsky <olga@il.ibm.com>
19340
19341 * fold-const.c (multiple_of_p): Check for bottom
19342 to be zero.
19343
19344 2007-04-24 Richard Henderson <rth@redhat.com>
19345
19346 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
19347 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
19348 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
19349 looking for non-zero bits shifted out. Avoid a recursive call
19350 when constructing the scalar.
19351 (__floatundisf): Likewise.
19352
19353 2007-04-24 Nathan Froyd <froydnj@codesourcery.com>
19354
19355 * dwarf2out.c (field_byte_offset): Move the existing logic
19356 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
19357 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
19358
19359 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
19360
19361 PR target/31641
19362 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
19363 length argument of 0 for memset.
19364 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
19365 unsigned shift instead of the signed variant.
19366
19367 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
19368
19369 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
19370 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
19371 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
19372 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
19373 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
19374 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
19375 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
19376 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
19377 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
19378 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
19379 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
19380 "mul<mode>3", "div<mode>3"): Insn definitions added.
19381 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
19382 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
19383 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
19384 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
19385 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
19386 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
19387 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
19388 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
19389 TARGET_FLOAT_FORMAT): Macro definitions removed.
19390 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
19391 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
19392 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
19393 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
19394 (s390_gen_rtx_const_DI): Function removed.
19395 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
19396
19397 2007-04-24 Richard Sandiford <richard@codesourcery.com>
19398
19399 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
19400 over an external ffs function.
19401
19402 2007-04-24 Chao-ying Fu <fu@mips.com>
19403 Richard Sandiford <richard@nildram.co.uk>
19404
19405 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
19406 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
19407 (smadd_widen_optab, umadd_widen_optab): Define.
19408 * optabs.c (init_optabs): Initialize smadd_widen_optab and
19409 umadd_widen_optab.
19410 * genopinit.c (optabs): Fill in smadd_widen_optab and
19411 umadd_widen_optab.
19412 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
19413 and umadd_widen_optab to implement multiply-add sequences.
19414 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
19415 (<u>maddsidi4): ...this. Extend condition to include
19416 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
19417 of operand 0 to "ka" and use the three-operand form of madd<u>
19418 for TARGET_DSPR2.
19419 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
19420 to define_expands.
19421 * config/mips/constraints.md (ka): New register constraint.
19422
19423 2007-04-24 Jan Hubicka <j@suse.cz>
19424
19425 Revert:
19426
19427 2007-04-23 Jan Hubicka <jh@suse.cz>
19428 * function.c (init_function_start): Don't init line number info.
19429 (expand_function_end): Update.
19430 (reset_block_changes, record_block_change, finalize_block_changes,
19431 check_block_change, free_block_changes): Kill.
19432 * function.h (reset_block_changes, record_block_change,
19433 finalize_block_changes, check_block_change, free_block_changes):
19434 Remove prototypes.
19435 (struct function): Remove ib_boundaries_block.
19436 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
19437 Use curr_insn_locator to initialize locator.
19438 (emit_line_note): Remove.
19439 * cfgexpand.c (expand_gimple_cond_expr): Update.
19440 (construct_exit_block): Likewise.
19441 (tree_expand_cfg): Initialize/finalize locators.
19442 * expr.c (expand_expr_real): Update.
19443 * cfglayout.c (line_locators_locs, line_locators_lines,
19444 file_locators_locs, file_locators_files): Remove.
19445 (set_block_levels): Move to cfgexpand.c.
19446 (insn_locators_initialize): Remove.
19447 (pass_insn_locators_initialize): Remove.
19448 (locations_locators_locs, locations_locators_vals): New static vars.
19449 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
19450 Likewise.
19451 (insn_locators_alloc, insn_locators_finalize,
19452 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19453 New functions.
19454 (locator_location): New.
19455 (locator_line, locator_file): Rewrite.
19456 * rtl.h (emit_line_note): Kill.
19457 (insn_locators_alloc, insn_locators_finalize,
19458 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19459 Declare.
19460 * tree-inline.c (initialize_cfun): Do not initialize
19461 ib_boundaries_block.
19462 * passes.c (pass_insn_locators_initialize): Remove.
19463
19464 2007-04-24 Daniel Franke <franke.daniel@gmail.com>
19465
19466 * doc/invoke.texi: Removed leading '-' from option index entries.
19467
19468 2007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
19469
19470 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
19471 Use phi_nodes_ptr.
19472 (create_phi_node): Use set_phi_nodes.
19473 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
19474 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
19475 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
19476 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
19477 (bsi_start, bsi_last): Use bb_stmt_list.
19478 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
19479 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
19480 Traverse the statements using tsi iterator.
19481 * basic-block.h (struct basic_block_def): Fields stmt_list
19482 and phi_nodes moved to ...
19483 (struct tree_bb_info): ... new structure.
19484 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
19485 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
19486 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
19487 (tree_verify_flow_info): Verify that il.tree is not set for
19488 entry and exit block.
19489 (tree_split_block): Use set_bb_stmt_list.
19490
19491 2007-04-23 Mike Stump <mrs@apple.com>
19492
19493 * config/i386/i386.c (ix86_tune_features
19494 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
19495 nocona and core2.
19496
19497 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
19498
19499 * config/i386/i386.md (prefix_extra): New attribute.
19500 (length): Add prefix_extra.
19501
19502 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
19503 (sse2_movntv2di): Likewise.
19504 (sse2_cvtps2dq): Likewise.
19505 (sse2_cvtpd2pi): Likewise.
19506 (sse2_cvttpd2pi): Likewise.
19507 (*sse2_cvtpd2ps): Likewise.
19508 (*add<mode>3): Likewise.
19509 (sse2_ssadd<mode>3): Likewise.
19510 (sse2_usadd<mode>3): Likewise.
19511 (*sub<mode>3): Likewise.
19512 (sse2_sssub<mode>3): Likewise.
19513 (sse2_ussub<mode>3): Likewise.
19514 (*mulv8hi3): Likewise.
19515 (*smulv8hi3_highpart): Likewise.
19516 (*umulv8hi3_highpart): Likewise.
19517 (sse2_umulv2siv2di3): Likewise.
19518 (sse2_pmaddwd): Likewise.
19519 (ashr<mode>3): Likewise.
19520 (lshr<mode>3): Likewise.
19521 (ashl<mode>3): Likewise.
19522 (sse2_ashlti3): Likewise.
19523 (sse2_lshrti3): Likewise.
19524 (*umaxv16qi3): Likewise.
19525 (*smaxv8hi3): Likewise.
19526 (*uminv16qi3): Likewise.
19527 (*sminv8hi3): Likewise.
19528 (sse2_eq<mode>3): Likewise.
19529 (sse2_gt<mode>3): Likewise.
19530 (*and<mode>3): Likewise.
19531 (sse2_nand<mode>3): Likewise.
19532 (*ior<mode>3): Likewise.
19533 (*xor<mode>3): Likewise.
19534 (sse2_packsswb): Likewise.
19535 (sse2_packssdw): Likewise.
19536 (sse2_packuswb): Likewise.
19537 (sse2_punpckhbw): Likewise.
19538 (sse2_punpcklbw): Likewise.
19539 (sse2_punpckhwd): Likewise.
19540 (sse2_punpcklwd): Likewise.
19541 (sse2_punpckhdq): Likewise.
19542 (sse2_punpckldq): Likewise.
19543 (sse2_punpckhqdq): Likewise.
19544 (sse2_punpcklqdq): Likewise.
19545 (*sse2_pinsrw): Likewise.
19546 (*sse2_pextrw): Likewise.
19547 (sse2_pshufd_1): Likewise.
19548 (sse2_uavgv16qi3): Likewise.
19549 (sse2_uavgv8hi3): Likewise.
19550 (sse2_psadbw): Likewise.
19551 (sse2_pmovmskb): Likewise.
19552 (*sse2_maskmovdqu): Likewise.
19553 (*sse2_maskmovdqu_rex64): Likewise.
19554 (sse4a_extrqi): Likewise.
19555 (sse4a_extrq): Likewise.
19556 (sse3_lddqu): Set prefix_rep.
19557 (sse3_addsubv4sf3): Likewise.
19558 (sse3_haddv4sf3): Likewise.
19559 (sse3_hsubv4sf3): Likewise.
19560 (sse_cvtss2si): Likewise.
19561 (sse_cvtss2si_2): Likewise.
19562 (sse_cvtss2siq): Likewise.
19563 (sse_cvtss2siq_2): Likewise.
19564 (sse_cvttss2si): Likewise.
19565 (sse_cvttss2siq): Likewise.
19566 (sse2_cvttps2dq): Likewise.
19567 (sse3_movshdup): Likewise.
19568 (sse3_movsldup): Likewise.
19569 (sse2_cvtsd2si): Likewise.
19570 (sse2_cvtsd2si_2): Likewise.
19571 (sse2_cvtsd2siq): Likewise.
19572 (sse2_cvtsd2siq_2): Likewise.
19573 (sse2_cvttsd2si): Likewise.
19574 (sse2_cvttsd2siq): Likewise.
19575 (*sse2_cvtpd2dq): Likewise.
19576 (*sse2_cvttpd2dq): Likewise.
19577 (sse2_pshuflw_1): Likewise.
19578 (sse2_pshufhw_1): Likewise.
19579 (sse4a_insertqi): Likewise.
19580 (sse4a_insertq): Likewise.
19581 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
19582 (ssse3_phadddv4si3): Likewise.
19583 (ssse3_phaddswv8hi3): Likewise.
19584 (ssse3_phsubwv8hi3): Likewise.
19585 (ssse3_phsubdv4si3): Likewise.
19586 (ssse3_phsubswv8hi3): Likewise.
19587 (ssse3_pmaddubswv8hi3): Likewise.
19588 (ssse3_pmulhrswv8hi3): Likewise.
19589 (ssse3_pshufbv16qi3): Likewise.
19590 (ssse3_psign<mode>3): Likewise.
19591 (ssse3_palignrti): Likewise.
19592 (abs<mode>2): Likewise.
19593 (ssse3_phaddwv4hi3): Set prefix_extra.
19594 (ssse3_phadddv2si3): Likewise.
19595 (ssse3_phaddswv4hi3): Likewise.
19596 (ssse3_phsubwv4hi3): Likewise.
19597 (ssse3_phsubdv2si3): Likewise.
19598 (ssse3_phsubswv4hi3): Likewise.
19599 (ssse3_pmaddubswv4hi3): Likewise.
19600 (ssse3_pmulhrswv4hi3): Likewise.
19601 (ssse3_pshufbv8qi3): Likewise.
19602 (ssse3_psign<mode>3): Likewise.
19603 (ssse3_palignrdi): Likewise.
19604 (abs<mode>2): Likewise.
19605 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
19606 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
19607 (sse2_pmovmskb): Set mode to SI instead of V2DF.
19608
19609 2007-04-23 Nick Clifton <nickc@redhat.com>
19610
19611 * params.def: Fix formatting of emacs local variables.
19612
19613 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
19614
19615 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
19616 move if inter-unit move isn't allowed.
19617 Don't split moving the first element of V2DI to DI to inter-unit
19618 move if inter-unit move isn't allowed.
19619
19620 2007-04-23 Richard Guenther <rguenther@suse.de>
19621
19622 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
19623 and CDI_POST_DOMINATORS separately.
19624
19625 2007-04-23 Nick Clifton <nickc@redhat.com>
19626
19627 * c.opt (Wformat-contains-nul): Add warning attribute.
19628
19629 2007-04-23 Jan Hubicka <jh@suse.cz>
19630
19631 * function.c (init_function_start): Don't init line number info.
19632 (expand_function_end): Update.
19633 (reset_block_changes, record_block_change, finalize_block_changes,
19634 check_block_change, free_block_changes): Kill.
19635 * function.h (reset_block_changes, record_block_change,
19636 finalize_block_changes, check_block_change, free_block_changes):
19637 Remove prototypes.
19638 (struct function): Remove ib_boundaries_block.
19639 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
19640 Use curr_insn_locator to initialize locator.
19641 (emit_line_note): Remove.
19642 * cfgexpand.c (expand_gimple_cond_expr): Update.
19643 (construct_exit_block): Likewise.
19644 (tree_expand_cfg): Initialize/finalize locators.
19645 * expr.c (expand_expr_real): Update.
19646 * cfglayout.c (line_locators_locs, line_locators_lines,
19647 file_locators_locs, file_locators_files): Remove.
19648 (set_block_levels): Move to cfgexpand.c.
19649 (insn_locators_initialize): Remove.
19650 (pass_insn_locators_initialize): Remove.
19651 (locations_locators_locs, locations_locators_vals): New static vars.
19652 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
19653 Likewise.
19654 (insn_locators_alloc, insn_locators_finalize,
19655 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19656 New functions.
19657 (locator_location): New.
19658 (locator_line, locator_file): Rewrite.
19659 * rtl.h (emit_line_note): Kill.
19660 (insn_locators_alloc, insn_locators_finalize,
19661 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19662 Declare.
19663 * tree-inline.c (initialize_cfun): Do not initialize
19664 ib_boundaries_block.
19665 * passes.c (pass_insn_locators_initialize): Remove.
19666
19667 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
19668
19669 PR middle-end/31448
19670 * expr.c (reduce_to_bit_field_precision): Handle
19671 CONST_INT rtx's.
19672
19673 2007-04-22 Uros Bizjak <ubizjak@gmail.com>
19674
19675 PR tree-optimization/24659
19676 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
19677 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
19678 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
19679 * genopinit.c (optabs): Rename vec_pack_mod_optab
19680 to vec_pack_trunc_optab.
19681 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
19682 early for scalar floating point operands for NOP_EXPR.
19683 (vectorizable_type_promotion): Ditto.
19684 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
19685 vec_pack_trunc_optab.
19686 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
19687
19688 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
19689 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
19690 Rename from VEC_PACK_MOD_EXPR.
19691 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
19692 * expr.c (expand_expr_real_1): Ditto.
19693 * tree-inline.c (estimate_num_insns_1): Ditto.
19694 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
19695
19696 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
19697 (vec_unpacks_lo_v4sf): Ditto.
19698 (vec_pack_trunc_v2df): Ditto.
19699 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
19700 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
19701 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
19702
19703 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
19704 vec_pack_mod_v8hi.
19705 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
19706
19707 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
19708 Rename from VEC_PACK_MOD_EXPR. This expression also represent
19709 packing of floating point operands.
19710 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
19711 represent unpacking of floating point operands.
19712 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
19713 [vec_unpacks_hi]: Ditto.
19714 [vec_unpacks_lo]: Ditto.
19715
19716 2007-04-22 Jan Hubicka <jh@suse.cz>
19717
19718 * final.c (rest_of_handle_final): Call
19719 targetm.asm_out.constructor/targetm.asm_out.destructor
19720 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
19721 proper priority via decl_*_priority_insert.
19722 * c-common.c (c_expand_body): Likewise.
19723
19724 2007-04-22 Richard Guenther <rguenther@suse.de>
19725
19726 PR tree-optimization/29789
19727 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
19728 (rewrite_reciprocal): New helper split out from
19729 determine_invariantness_stmt.
19730 (rewrite_bittest): Likewise.
19731 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
19732 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
19733 is not.
19734
19735 2007-04-22 Revital Eres <eres@il.ibm.com>
19736
19737 * loop-unroll.c (var_to_expand): New field to support also
19738 insns of the form x = something + x.
19739 (analyze_insn_to_expand_var): Use it.
19740 (expand_var_during_unrolling): Likewise.
19741
19742 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
19743
19744 * predict.c: Include pointer-set.h.
19745 (bb_predictions): New variable.
19746 (tree_predicted_by_p, tree_predict_edge,
19747 remove_predictions_associated_with_edge): Use bb_predictions map
19748 instead of bb->predictions.
19749 (clear_bb_predictions, assert_is_empty): New functions.
19750 (combine_predictions_for_bb): Use bb_predictions map. Call
19751 clear_bb_predictions.
19752 (tree_estimate_probability): Create and free bb_predictions map.
19753 * Makefile.in (predict.o): Add pointer-set.h dependency.
19754 * basic-block.h (struct basic_block_def): Remove predictions
19755 field.
19756 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
19757
19758 2007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
19759
19760 PR target/31480
19761 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
19762 is null.
19763
19764 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19765
19766 * timevar.c (timevar_print): Change reference of --disable-checking to
19767 --enable-checking=release. Also warn if assert checking is disabled.
19768
19769 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19770
19771 PR C/30265
19772 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
19773 decl as addressable if the compound literal was marked as
19774 addressable.
19775 Mark the decl as a gimple register if it is a complex or
19776 vector decl and does not live in memory.
19777
19778 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19779
19780 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
19781 (GENERIC_NEXT): New function macro.
19782 (PHI_CHAIN): Use phi_node's new chain variable.
19783 (tree_phi_node): Change tree_common to tree_base
19784 and add the chain field.
19785 * tree-phinodes.c (make_phi_node): Don't set
19786 TREE_TYPE on the new node.
19787 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
19788 instead of checking GIMPLE_TUPLE_P in chain_next.
19789 * tree-vect-transform.c
19790 (get_initial_def_for_induction): Look at
19791 PHI_RESULT_TREE for the type of the phi node.
19792 (update_vuses_to_preheader): Use PHI_CHAIN
19793 instead of TREE_CHAIN on the phi node.
19794 * tree-ssa-structalias.c (compute_points_to_sets):
19795 Likewise.
19796 (ipa_pta_execute): Likewise.
19797
19798 2007-04-21 Richard Guenther <rguenther@suse.de>
19799
19800 PR middle-end/31136
19801 * fold-const.c (fold_unary): Call fold_convert_const on the
19802 original tree.
19803
19804 2007-04-21 Alexandre Oliva <aoliva@redhat.com>
19805
19806 * gcse.c (store_killed_in_insn): Handle PARALLELs.
19807 (store_killed_in_pat): New.
19808
19809 2007-04-20 Richard Henderson <rth@redhat.com>
19810
19811 PR target/31628
19812 * config/i386/i386.c (type_has_variadic_args_p): Look for any
19813 TREE_LIST with a void_type_node value, not void_list_node exactly.
19814
19815 2007-04-21 Douglas Gregor <doug.gregor@gmail.com>
19816
19817 * doc/standards.texi: Re-arrange into language-specific
19818 subsections. Add a C++ section, documenting which standards we
19819 support.
19820
19821 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
19822
19823 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
19824 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
19825
19826 2007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
19827
19828 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
19829 ecrti.o and crtbegin.o.
19830 (LIB_DEFAULT_SPEC): Include -lc.
19831 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
19832
19833 2007-04-20 Richard Henderson <rth@redhat.com>
19834
19835 PR target/28623
19836 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
19837 argument; update all callers.
19838 (get_unaligned_offset): New.
19839 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
19840 get_unaligned_address, just pass on the address directly.
19841 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
19842 the subreg in the helper patterns.
19843 (unaligned_extendqidi_le): Use get_unaligned_offset.
19844 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
19845 (unaligned_extendhidi_be): Likewise.
19846 (unaligned_extendhidi): Tidy.
19847 * config/alpha/alpha-protos.h: Update.
19848
19849 2007-04-20 Richard Henderson <rth@redhat.com>
19850
19851 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
19852 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
19853 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
19854 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19855 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19856 (CPP_SPEC): Don't include %(cpp_subtarget).
19857 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
19858 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19859 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
19860
19861 2007-04-20 Jakub Jelinek <jakub@redhat.com>
19862
19863 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
19864 for __builtin_ia32_cmpordss.
19865
19866 PR tree-optimization/31632
19867 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
19868 and arg1 for optimizations of comparison against min/max values.
19869 Fold arg0 to arg1's type for optimizations of comparison against
19870 min+1 and max-1 values.
19871
19872 2007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
19873
19874 * reload.c (combine_reloads): When trying to use a dying register,
19875 check whether it's uninitialized and don't use if so.
19876
19877 2007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
19878
19879 * fold-const.c: Remove prototypes for native_encode_expr and
19880 native_interpret_expr.
19881 (native_encode_expr): Make non-static.
19882 (native_interpret_expr): Likewise.
19883 * tree.h: Add prototypes for the above.
19884
19885 2007-04-19 Joseph Myers <joseph@codesourcery.com>
19886
19887 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
19888 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
19889 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
19890 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
19891 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
19892 Add length attributes.
19893
19894 2007-04-19 Janis Johnson <janis187@us.ibm.com>
19895
19896 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
19897 not that it is 1.
19898
19899 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
19900 __STDC_WANT_DEC_FP__.
19901
19902 2007-04-19 Joseph Myers <joseph@codesourcery.com>
19903
19904 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
19905 for long double compatibility.
19906 * configure: Regenerate.
19907
19908 2007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
19909
19910 PR rtl-optimization/29841
19911 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
19912 trap instructions.
19913 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
19914 that may cause control flow transfer from being moved.
19915
19916 2007-04-18 Jan Hubicka <jh@suse.cz>
19917
19918 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
19919 types.
19920
19921 2007-04-18 Eric Christopher <echristo@apple.com>
19922
19923 * config/rs6000/darwin.md (load_macho_picbase): Use link register
19924 only. Update operands.
19925 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
19926 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
19927 link register to pic register.
19928
19929 2007-04-18 Dirk Mueller <dmueller@suse.de>
19930
19931 PR diagnostic/31227
19932 * tree-vrp.c (search_for_addr_array): New.
19933 (check_array_bounds): Suppress warning about
19934 address taken of array refs if its not de-referenced.
19935
19936 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19937
19938 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
19939 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
19940
19941 * tree-vectorizer.h (NITERS_KNOWN_P): New.
19942 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
19943 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
19944
19945 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
19946 dump print.
19947 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
19948 print message.
19949 (vect_analyze_scalar_cycles): Fix indentation.
19950 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
19951 (vect_mark_relevant): Include phis in relevance analysis.
19952
19953 * tree-vect-transform.c (vect_transform_loop): Add an assert.
19954
19955 2007-04-18 Anatoly Sokolov <aesok@post.ru>
19956
19957 * config/avr/avr.c (ptrreg_to_str): Replace error() with
19958 output_operand_lossage().
19959
19960 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19961
19962 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
19963 the unused code for reduction without adjust-in-epilog to simplify the
19964 function.
19965
19966 2007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
19967
19968 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
19969 (S390_TDC_NEGATIVE_ZERO): New constant.
19970 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
19971 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
19972 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
19973 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
19974 (S390_TDC_POSITIVE_INFINITY): New constant.
19975 (S390_TDC_NEGATIVE_INFINITY): New constant.
19976 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
19977 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
19978 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
19979 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
19980 (S390_TDC_INFINITY): New constant.
19981 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
19982 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
19983 optimization for UNSPEC_CCZ_TO_INT.
19984 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
19985 ("*ccz_to_int"): New insn.
19986 ("isinf<mode>2"): New insn.
19987 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
19988 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
19989 (UNSPEC_CCZ_TO_INT): New constant.
19990
19991 2007-04-18 Richard Guenther <rguenther@suse.de>
19992
19993 PR tree-optimization/19431
19994 PR tree-optimization/21463
19995 * tree-pass.h (pass_phiprop): Declare.
19996 * passes.c (init_optimization_passes): New phiprop pass.
19997 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
19998 (phivn_valid_p): New helper function.
19999 (phiprop_insert_phi): Likewise.
20000 (propagate_with_phi): Likewise.
20001 (tree_ssa_phiprop): New propagator propagating loads
20002 through phi nodes if profitable.
20003
20004 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
20005
20006 * tree-vect-analyze.c (process_use): New function.
20007 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
20008 Check phis in all bbs.
20009 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
20010 assert.
20011
20012 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
20013
20014 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
20015 we use REG_EQUAL.
20016
20017 2007-04-17 Anatoly Sokolov <aesok@post.ru>
20018
20019 PR target/30483
20020 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
20021 error().
20022
20023 2007-04-17 H.J. Lu <hongjiu.lu@intel.com>
20024
20025 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
20026 on "0".
20027 (sse_vmmulv4sf3): Likewise.
20028 (sse2_vmaddv2df3): Likewise.
20029 (sse2_vmmulv2df3): Likewise.
20030
20031 2007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
20032
20033 PR rtl-optimization/31360
20034 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
20035 (target_reg_cost): New.
20036 (init_set_costs): Initialize target_reg_cost. Add comments
20037 regarding the rationale of the costs.
20038 (global_cost_for_size): Renamed to...
20039 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
20040 of register pressure.
20041 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
20042 estimate_reg_pressure_cost. Add number of ivs.
20043 (determine_set_costs): Dump target_reg_cost.
20044 * loop-invariant.c (gain_for_invariant): Use
20045 estimate_reg_pressure_cost. Removed n_inv_uses argument.
20046 (best_gain_for_invariant, find_invariants_to_move): Remove
20047 n_inv_uses.
20048 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
20049 (target_reg_cost): Declare.
20050 (global_cost_for_size): Declaration removed.
20051 (estimate_reg_pressure_cost): Declare.
20052
20053 2007-04-17 Peter Bergner <bergner@vnet.ibm.com>
20054
20055 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
20056 regnos into even/odd register pairs.
20057 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
20058 TDmode similar to the other floating point modes.
20059 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
20060 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
20061 define_expand's.
20062 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
20063 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
20064 (movdd_hardfloat64): Use TARGET_MFPGPR.
20065
20066 2007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
20067
20068 * reload1.c (delete_output_reload): Don't count output in n_inherited.
20069
20070 Revert
20071 2005-01-05 Richard Henderson <rth@redhat.com>
20072 PR rtl-opt/10692
20073 * reload1.c (do_input_reload): Restrict the optimization deleteing
20074 a previous output reload to RELOAD_FOR_INPUT.
20075
20076 2007-04-17 Dorit Nuzman <dorit@il.ibm.com>
20077
20078 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
20079 induc_vec_info_type.
20080 (vectorizable_induction): New function declaration.
20081 * tree-vect-transform.c (get_initial_def_for_induction): No need to
20082 check if already vectorized. Find first place in BB where new stmts
20083 can be inserted. Takes only one argument.
20084 (vectorizable_induction): New function.
20085 (vect_transform_stmt): Add case for induc_vec_info_type to call
20086 vectorizable_induction.
20087 (vect_transform_loop): Consider phis for vectorization.
20088 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
20089 condition.
20090 (analyze_operations): Call vectorizable_induction when analyzing phis.
20091 Fix comment.
20092 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
20093 (vect_mark_relevant): Include phis in relevance analysis.
20094 (vect_mark_stmts_to_be_vectorize): Likewise.
20095 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
20096
20097 2007-04-16 Lawrence Crowl <crowl@google.com>
20098
20099 * doc/invoke.texi (Debugging Options): Add documentation for the
20100 -femit-struct-debug options -femit-struct-debug-baseonly,
20101 -femit-struct-debug-reduced, and
20102 -femit-struct-debug-detailed[=...].
20103
20104 * c-opts.c (c_common_handle_option): Add
20105 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
20106 and OPT_femit_struct_debug_detailed_.
20107 * c.opt: Add specifications for
20108 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
20109 and -femit-struct-debug-detailed[=...].
20110 * opts.c (set_struct_debug_option): Parse the
20111 -femit-struct-debug-... options.
20112 * opts.c (matches_main_base, main_input_basename,
20113 main_input_baselength, base_of_path, matches_main_base): Add
20114 variables and functions to compare header base name to compilation
20115 unit base name.
20116 * opts.c (should_emit_struct_debug): Add to determine to emit a
20117 structure based on the option.
20118 (dump_struct_debug) Also disabled function to debug this
20119 function.
20120 * opts.c (handle_options): Save the base name of the
20121 compilation unit.
20122
20123 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
20124 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
20125 This hook indicates if a type is generic. Set it by default
20126 to "never generic".
20127 * langhooks.h (struct lang_hooks_for_types): Add a new hook
20128 to determine if a struct type is generic or not.
20129 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
20130 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
20131 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
20132 with live C++ hook.
20133
20134 * flags.h (enum debug_info_usage): Add an enumeration to describe
20135 a program's use of a structure type.
20136 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
20137 to indicate the program's usage of the type. Filter structs based
20138 on the -femit-struct-debug-... specification.
20139 (gen_type_die): Split into two routines, gen_type_die and
20140 gen_type_die_with_usage. gen_type_die is now a wrapper
20141 that assumes direct usage.
20142 (gen_type_die_with_usage): Replace calls to gen_type_die
20143 with gen_type_die_with_usage adding the program usage of
20144 the referenced type.
20145 (dwarf2out_imported_module_or_decl): Suppress struct debug
20146 information using should_emit_struct_debug when appropriate.
20147
20148 2007-04-16 Ian Lance Taylor <iant@google.com>
20149
20150 PR tree-optimization/31522
20151 * tree-vrp.c (vr_phi_edge_counts): New static variable.
20152 (vrp_initialize): Allocate vr_phi_edge_counts.
20153 (vrp_visit_phi_node): Don't push to infinity if we saw a new
20154 executable edge. Drop test for all constants.
20155 (vrp_finalize): Free vrp_phi_edge_counts.
20156
20157 * doc/cpp.texi (Common Predefined Macros): Clarify description of
20158 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
20159
20160 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
20161 predecessors at head rather than tail.
20162
20163 2007-04-16 Matthias Klose <doko@debian.org>
20164
20165 * config/alpha/linux.h (CPP_SPEC): Define.
20166 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
20167
20168 2007-04-16 Aldy Hernandez <aldyh@redhat.com>
20169
20170 * function.h: Remove sequence_stack extern declaration.
20171
20172 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
20173
20174 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
20175 TARGET_FIDOA.
20176 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
20177 defined.
20178
20179 2007-04-16 Anatoly Sokolov <aesok@post.ru>
20180
20181 * config/avr/avr.c (avr_arch_types): Rearranging array.
20182 (enum avr_arch): Add.
20183 (avr_mcu_types): Use avr_arch enumeration constants instead of
20184 numbers.
20185 * config/avr/avr.h (LINK_SPEC): Simplify.
20186
20187 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
20188
20189 * config/m68k/m68k.c (m68k_libcall_value,
20190 m68k_function_value): Use macros for register names more.
20191
20192 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
20193 instead.
20194 (M68K_REGNAME): Use A6_REG.
20195 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
20196
20197 2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
20198
20199 PR middle-end/28071
20200 * sched-int.h (struct deps): Split field 'pending_lists_length' into
20201 'pending_read_list_length' and 'pending_write_list_length'. Update
20202 comment.
20203 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
20204 to handle two length counters instead of one. Update all uses.
20205 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
20206 two length counters instead of one.
20207 * sched-rgn.c (propagate_deps): Update to handle two length counters
20208 instead of one.
20209
20210 2007-04-16 H.J. Lu <hongjiu.lu@intel.com>
20211
20212 PR target/31582
20213 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
20214 copy of source, pass it to ix86_expand_vector_set and return
20215 it as target.
20216
20217 2007-04-16 David Ung <davidu@mips.com>
20218 Joseph Myers <joseph@codesourcery.com>
20219
20220 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
20221 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
20222 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
20223 Add 74K processor information.
20224 * config/mips/mips.md: Include 74k.md.
20225 (cpu): Add 74kc,74kf,74kx.
20226 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
20227 * config/mips/74k.md: New.
20228 * doc/invoke.texi (MIPS Options): Document 74K support.
20229
20230 2007-04-16 Dorit Nuzman <dorit@il.ibm.com>
20231
20232 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
20233 vectorizable_* functions.
20234 * tree-vect-transform.c (vectorizable_call): Add check for
20235 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
20236 (vectorizable_store): likewise.
20237 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
20238 Add comments.
20239 (vectorizable_operation, vectorizable_type_demotion): Likewise.
20240 (vectorizable_type_promotion, vectorizable_load): Likewise.
20241 (vectorizable_live_operation, vectorizable_condition): Likewise.
20242 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
20243 STMT_VINFO_LIVE_P.
20244 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
20245
20246 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
20247
20248 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
20249 register numbers more.
20250 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
20251 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
20252 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
20253 FUNCTION_VALUE_REGNO_P): Likewise.
20254 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
20255 STATIC_CHAIN_REGNUM): Likewise.
20256 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
20257 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
20258 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
20259 * config/m68k/m68k.md (FP_REG): New.
20260
20261 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
20262
20263 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
20264 alignment on fido.
20265
20266 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
20267
20268 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
20269 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
20270 comment typos.
20271
20272 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20273
20274 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
20275 cold loops.
20276
20277 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
20278
20279 PR c/31520
20280 * c-decl.c (finish_decl): Grab the type of the decl after the call
20281 to store_init_value.
20282
20283 2007-04-14 Steven Bosscher <steven@gcc.gnu.org>
20284
20285 * common.opt (fforward-propagate): Fix "Optimization" annotation.
20286
20287 2007-04-14 Jakub Jelinek <jakub@redhat.com>
20288
20289 PR c++/25874
20290 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
20291 dominators, post dominators and cleanup cfg before returning.
20292
20293 2007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
20294
20295 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
20296 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
20297
20298 2007-04-14 Kazu Hirata <kazu@codesourcery.com>
20299
20300 * config.gcc: Recognize fido.
20301 * config/m68k/m68k-devices.def (fidoa): New.
20302 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
20303 __mfido__.
20304 (FL_FIDOA, TARGET_FIDOA): New.
20305 * config/m68k/m68k.opt (mfidoa): New.
20306
20307 2007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20308
20309 PR middle-end/31322
20310 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
20311 when a personality function is used.
20312
20313 2007-04-13 Bob Wilson <bob.wilson@acm.org>
20314
20315 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
20316
20317 2007-04-13 Mike Stump <mrs@apple.com>
20318
20319 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
20320 we can...
20321 * config/darwin.opt (fapple-kext): Make C++ only.
20322 * config/darwin.c (darwin_override_options): Remove code to ensure
20323 -fapple-kext is given for C++ only.
20324
20325 2007-04-13 Richard Sandiford <richard@codesourcery.com>
20326
20327 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
20328 * config/mips/mips.c (override_options): Call
20329 SUBTARGET_OVERRIDE_OPTIONS, if defined.
20330
20331 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
20332
20333 * config/i386/i386.opt (msvr3-shlib): Removed.
20334
20335 * doc/invoke.texi: Remove -msvr3-shlib.
20336
20337 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
20338
20339 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
20340 with "popcnt" instruction.
20341
20342 2007-04-13 Richard Guenther <rguenther@suse.de>
20343
20344 PR tree-optimization/21258
20345 * tree-vrp.c (compare_case_labels): New helper.
20346 (find_switch_asserts): New function.
20347 (find_assert_locations): Call it for SWITCH_EXPRs.
20348
20349 2007-04-13 Uros Bizjak <ubizjak@gmail.com>
20350
20351 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
20352 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
20353 check is now implied in X87_FLOAT_MODE_P.
20354 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
20355 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
20356 (fix_trunc<mode>_i386_fisttp): Ditto.
20357 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
20358 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
20359 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
20360 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
20361 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
20362 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
20363 (unnamed_splitters): Ditto.
20364 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
20365 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
20366 FIRST_SSE_REG for local functions when SSE math is enabled or
20367 for functions with sseregparm attribute.
20368 (standard_80387_constant_p): Return -1 if mode is not
20369 X87_FLOAT_MODE_P.
20370 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
20371 (ix86_expand_compare): Ditto.
20372 (ix86_expand_carry_flag_compare): Ditto.
20373 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
20374 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
20375 DECIMAL_FLOAT_MODE_P.
20376 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
20377 of SCALAR_FLOAT_MODE_P.
20378 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
20379 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
20380 checks before FLOAT_MODE_P.
20381 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
20382 before FLOAT_MODE_P.
20383 [DIV]: Ditto.
20384 [NEG]: Ditto.
20385 [ABS]: Ditto.
20386 [SQRT]: Ditto.
20387 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
20388
20389 2007-04-12 Paolo Bonzini <bonzini@gnu.org>
20390 Charles Wilson <libtool@cwilson.fastmail.fm>
20391
20392 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
20393 (libgcc.mvars): Don't depend on them.
20394 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
20395 * exec-tool.in: New.
20396
20397 2007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
20398
20399 * doc/invoke.text (--help): Document --help=common.
20400
20401 2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
20402
20403 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
20404
20405 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20406
20407 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
20408 * genemit.c (main): Emit #include "integrate.h".
20409 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
20410 (LOADGP_RTP): New mips_loadgp_style.
20411 * config/mips/mips.h: Include config/vxworks-dummy.h.
20412 (TARGET_RTP_PIC): New macro.
20413 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
20414 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
20415 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
20416 for TARGET_RTP_PIC.
20417 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
20418 -mvxworks-pic when using -mrtp and a PIC option.
20419 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
20420 for RTP PIC.
20421 (mips_symbolic_constant_p, mips_symbolic_address_p)
20422 (mips_symbol_insns): Handle SYMBOL_HALF.
20423 (override_options): Warn about -G and -mrtp being used together.
20424 Initialize mips_lo_relocs[SYMBOL_HALF].
20425 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
20426 (mips_emit_loadgp): Handle LOADGP_RTP.
20427 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
20428 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
20429 (tablejump): Handle function-relative case table entries if
20430 TARGET_RTP_PIC.
20431 * config/mips/predicates.md (symbol_ref_operand): New predicate.
20432
20433 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20434
20435 * config/mips/mips.md (load_call<mode>): Allow any general register.
20436 destination.
20437 (sibcall_value_internal, sibcall_value_multiple_internal)
20438 (call_value_internal, call_value_split, call_value_multiple_internal)
20439 (call_value_multiple_split): Remove constraints from operand 0.
20440
20441 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20442
20443 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
20444 rather than loadgp_noshared.
20445 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
20446 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
20447 gen_loadgp.
20448 * config/mips/mips.md (loadgp): Rename to...
20449 (loadgp_newabi): ...this.
20450 (loadgp_noshared): Rename to...
20451 (loadgp_absolute): ...this.
20452
20453 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20454
20455 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
20456 false for locally-binding symbols.
20457 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
20458
20459 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20460
20461 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
20462 (SYMBOL_GOT_PAGE_OFST): ...this.
20463 (SYMBOL_GOT_GLOBAL): Rename to...
20464 (SYMBOL_GOT_DISP): ...this.
20465 (SYMBOL_GOTOFF_GLOBAL): Rename to...
20466 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
20467 * config/mips/mips.c (mips_global_symbol_p): New function.
20468 (mips_symbol_binds_local_p): Likewise.
20469 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
20470 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use
20471 mips_global_symbol_p and mips_symbol_binds_local_p.
20472 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
20473 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
20474 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
20475 SYMBOL_GOTOFF_DISP.
20476 (mips_ok_for_lazy_binding_p): New function.
20477 (mips_load_call_address, mips_expand_call): Use it.
20478 (mips_dangerous_for_la25_p): Likewise.
20479 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
20480 (*got_disp<mode>): Use got_disp_operand instead of
20481 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
20482 SYMBOL_GOTOFF_GLOBAL.
20483 (*got_page<mode>): Use got_page_ofst_operand instead of
20484 local_got_operand.
20485 * config/mips/predicates.md (const_call_insn_operand): Use
20486 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
20487 (global_got_operand): Rename to...
20488 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
20489 SYMBOL_GOT_GLOBAL.
20490 (local_got_operand): Rename to...
20491 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
20492 of SYMBOL_GOT_LOCAL.
20493
20494 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20495
20496 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
20497 TARGET_CALL_CLOBBERED_GP.
20498 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20499 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
20500 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
20501 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
20502 of TARGET_ABICALLS && !TARGET_NEWABI.
20503 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20504 * config/mips/mips.c (mips_load_call_address): Check
20505 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
20506 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20507 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
20508 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
20509 TARGET_ABICALLS && TARGET_NEWABI.
20510 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
20511 TARGET_ABICALLS.
20512 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
20513 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
20514 TARGET_ABICALLS && TARGET_NEWABI.
20515 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
20516 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
20517 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
20518 whether indirect calls must use $25.
20519 (mips_extra_live_on_entry): Check TARGET_GOT instead of
20520 TARGET_ABICALLS.
20521 * config/mips/mips.md (jal_macro): Check flag_pic and
20522 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
20523 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
20524 instead of TARGET_ABICALLS.
20525 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
20526 TARGET_ABICALLS && TARGET_OLDABI.
20527 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20528 (sibcall): In the comment above the define_insn, mention
20529 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
20530 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
20531 instead of TARGET_ABICALLS.
20532
20533 2007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
20534
20535 * doc/md.texi (Blackfin family constraints): Document PA and PB.
20536 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
20537 (MACFLAGS_MATCH_P): New macro.
20538 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
20539 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
20540 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
20541 the other MACFLAG constants.
20542 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
20543 (flag_machi): Tighten constraints. Renumber some of the operands.
20544 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
20545 output template.
20546 (flag_machi_parts_acconly): New pattern.
20547 (flag_macinithi): Tighten constraints. Allow any accumulator to be
20548 used.
20549 (flag_macinit1hi): Tighten constraints.
20550 (flag_mul_macv2hi_parts_acconly): New pattern.
20551
20552 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
20553 Use a more efficient implementation.
20554 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
20555 inline sequences when not optimizing for size.
20556
20557 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
20558 movhi_high2low): Delete, merge functionality into...
20559 (packv2hi): ... this pattern.
20560
20561 2007-02-11 Jie Zhang <jie.zhang@analog.com>
20562 * config/bfin/bfin.opt (msim): New option.
20563 (mcpu=): New option.
20564 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
20565 (bfin_cpu_t): Typedef of enum bfin_cpu.
20566 (bfin_cpu_type): New declaration.
20567 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
20568 -msim and -mcpu= options.
20569 (LIB_SPEC): Likewise.
20570 * config/bfin/bfin.c (bfin_cpu_type): Define.
20571 (bfin_handle_option): Handle -mcpu= option.
20572 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
20573 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
20574 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
20575
20576 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20577
20578 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
20579 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
20580 (powerpc-wrs-vxworksae): Use ${tm_file}.
20581 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
20582 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
20583 * config/i386/vx-common.h: New file.
20584
20585 2007-04-12 Richard Sandiford <richard@codesourcery.com>
20586
20587 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
20588 of crt0.o%s.
20589
20590 2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
20591
20592 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
20593 ldxtr.
20594
20595 2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
20596
20597 PR c++/31078
20598 PR c++/31103
20599 * c-common.c (c_build_qualified_type): Set canonical type
20600 appropriately.
20601
20602 2007-04-12 Richard Guenther <rguenther@suse.de>
20603
20604 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
20605 lower bound and element size if lower bound is not zero
20606 or either of the ARRAY_REF operands is set.
20607
20608 2007-04-12 Richard Guenther <rguenther@suse.de>
20609
20610 PR tree-optimization/24689
20611 PR tree-optimization/31307
20612 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
20613 indices by value.
20614 * gimplify.c (canonicalize_addr_expr): To be consistent with
20615 gimplify_compound_lval only set operands two and three of
20616 ARRAY_REFs if they are not gimple_min_invariant. This makes
20617 it never at this place.
20618 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
20619
20620 2007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20621
20622 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
20623 null before emitting a .nsubspa directive.
20624
20625 2007-04-11 Diego Novillo <dnovillo@redhat.com>
20626
20627 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
20628 need_to_partition_p if there are no memory statements in the
20629 function.
20630
20631 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20632
20633 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
20634 (gcd_of_steps_may_divide_p): New function.
20635 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
20636
20637 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
20638
20639 * reload.c (find_reloads_toplev, find_reloads_address,
20640 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
20641 not a pointer equality test, to decide if we need to call
20642 push_reg_equiv_alt_mem.
20643
20644 2007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
20645
20646 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
20647 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
20648 New.
20649 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
20650
20651 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20652
20653 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
20654 vector to be positive.
20655
20656 2007-04-11 Diego Novillo <dnovillo@redhat.com>
20657
20658 PR 30735
20659 PR 31090
20660 * doc/invoke.texi: Document --params max-aliased-vops and
20661 avg-aliased-vops.
20662 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
20663 debug_memory_partitions): Move to tree-flow.h
20664 * params.h (AVG_ALIASED_VOPS): Define.
20665 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
20666 users.
20667 (mp_info_t): Likewise.
20668 (get_mem_sym_stats_for): New.
20669 (set_memory_partition): Move from tree-flow-inline.h.
20670 (mark_non_addressable): Only clear the set of symbols for the
20671 partition if it exists.
20672 (dump_memory_partitions): Move from tree-ssa-operands.c
20673 (debug_memory_partitions): Likewise.
20674 (need_to_partition_p): New.
20675 (dump_mem_ref_stats): New.
20676 (debug_mem_ref_stats): New.
20677 (dump_mem_sym_stats): New.
20678 (debug_mem_sym_stats): New.
20679 (update_mem_sym_stats_from_stmt): New.
20680 (compare_mp_info_entries): New.
20681 (mp_info_cmp): Call it.
20682 (sort_mp_info): Change argument to a list of mem_sym_stats_t
20683 objects.
20684 (get_mpt_for): Move from tree-ssa-operands.c.
20685 (find_partition_for): New.
20686 (create_partition_for): Remove.
20687 (estimate_vop_reduction): New.
20688 (update_reference_counts): New.
20689 (build_mp_info): New.
20690 (compute_memory_partitions): Refactor.
20691 Document new heuristic.
20692 Call build_mp_info, update_reference_counts,
20693 find_partition_for and estimate_vop_reduction.
20694 (compute_may_aliases): Populate virtual operands before
20695 calling debugging dumps.
20696 (delete_mem_sym_stats): New.
20697 (delete_mem_ref_stats): New.
20698 (init_mem_ref_stats): New.
20699 (init_alias_info): Call it.
20700 (maybe_create_global_var): Remove alias_info argument.
20701 Get number of call sites and number of pure/const call sites
20702 from gimple_mem_ref_stats().
20703 (dump_alias_info): Call dump_memory_partitions first.
20704 (dump_points_to_info_for): Show how many times a pointer has
20705 been dereferenced.
20706 * opts.c (decode_options): For -O2 set --param
20707 max-aliased-vops to 500.
20708 For -O3 set --param max-aliased-vops to 1000 and --param
20709 avg-aliased-vops to 3.
20710 * fortran/options.c (gfc_init_options): Remove assignment to
20711 MAX_ALIASED_VOPS.
20712 * tree-flow-inline.h (gimple_mem_ref_stats): New.
20713 * tree-dfa.c (dump_variable): Dump memory reference
20714 statistics.
20715 Dump NO_ALIAS* settings.
20716 (referenced_var_lookup): Tidy.
20717 (mem_sym_stats): New.
20718 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
20719 and ORIG are different SSA names for a memory partition.
20720 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
20721 * tree-flow.h (struct mem_sym_stats_d): Define.
20722 (mem_sym_stats_t): Define.
20723 (struct mem_ref_stats_d): Define.
20724 (struct gimple_df): Add field mem_ref_stats.
20725 (enum noalias_state): Define.
20726 (struct var_ann_d): Add bitfield noalias_state.
20727 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
20728 debug_mem_ref_stats, debug_memory_partitions,
20729 debug_mem_sym_stats): Declare.
20730 * tree-ssa-structalias.c (update_alias_info): Update call
20731 sites, pure/const call sites and asm sites in structure
20732 returned by gimple_mem_ref_stats.
20733 Remove local variable IS_POTENTIAL_DEREF.
20734 Increase NUM_DEREFS if the memory expression is a potential
20735 dereference.
20736 Call update_mem_sym_stats_from_stmt.
20737 If the memory references memory, call
20738 update_mem_sym_stats_from_stmt for all the direct memory
20739 symbol references found.
20740 (intra_create_variable_infos): Set noalias_state field for
20741 pointer arguments according to the value of
20742 flag_argument_noalias.
20743 * tree-ssa-structalias.h (struct alias_info): Remove fields
20744 num_calls_found and num_pure_const_calls_found.
20745 (update_mem_sym_stats_from_stmt): Declare.
20746 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
20747 Set default value to 100.
20748 (PARAM_AVG_ALIASED_VOPS): Define.
20749
20750 2007-04-11 Richard Guenther <rguenther@suse.de>
20751
20752 PR middle-end/31530
20753 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
20754 a * -b + c as c - a * b if we honor sign dependent rounding.
20755
20756 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
20757
20758 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
20759 bfin_expand_strmov.
20760 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
20761 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
20762 variables.
20763 (initialize_trampoline): Don't use old-style function definition.
20764 (bfin_secondary_reload): Mark IN_P argument as unused.
20765
20766 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
20767
20768 PR tree-optimization/31343
20769 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
20770 (build_polynomial_chrec): Return a scalar when the evolution is zero.
20771 * testsuite/gcc.dg/vect/pr31343.c: New.
20772
20773 2007-04-10 Eric Christopher <echristo@apple.com>
20774
20775 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
20776 * config/i386/i386.md (*cmpfp0): Use.
20777 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
20778 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
20779 (fix_trunc<mode>_i386_fisttp): Ditto.
20780 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
20781 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
20782 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
20783 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
20784 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
20785 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
20786 (unnamed_splitters): Ditto.
20787 * config/i386/i386.c (output_fix_trunc): Assert that
20788 we're not being passed a TFmode operand.
20789
20790 2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
20791
20792 PR tree-optimization/31526
20793 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
20794 n_basic_blocks to find newly added blocks.
20795
20796 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
20797
20798 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
20799 alternative.
20800 (fix_trunc<mode>si_sse): Ditto.
20801 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
20802 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
20803 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
20804 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
20805 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
20806 expander using SSEMODEF mode macro.
20807 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
20808 expander using SSEMODEF mode macro.
20809 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
20810 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
20811 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
20812 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
20813 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
20814 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
20815 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
20816 Macroize insn using X87MODEF mode macro.
20817
20818 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
20819
20820 * config/i386/sse.md (sse2_pinsrw): Removed.
20821 (sse2_pextrw): Renamed to ...
20822 (*sse2_pextrw): This.
20823
20824 2007-04-09 Jan Hubicka <jh@suse.cz>
20825
20826 PR target/27869
20827 * config/i386/sse.md
20828 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
20829 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
20830 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
20831 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
20832
20833 2007-04-09 Jan Hubicka <jh@suse.cz>
20834
20835 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
20836 multiple fields of union.
20837
20838 2007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
20839
20840 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
20841 (create_preheaders): Check that loops are available.
20842 (fix_loop_structure): Clean up, improve comments.
20843 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
20844 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
20845 state flags.
20846 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
20847 * predict.c (tree_estimate_probability): Do not call
20848 calculate_dominance_info. Call create_preheaders.
20849 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
20850 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
20851 flags.
20852 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
20853 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
20854 * tree-cfg.c (tree_split_edge): Make an assert more precise.
20855 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
20856 arguments.
20857
20858 2007-04-08 Jan Hubicka <jh@suse.cz>
20859
20860 * tree.h (maybe_fold_offset_to_component_ref): Declare.
20861 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
20862 * fold-const.c (fold_unary): Use it.
20863
20864 2007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
20865
20866 * varasm.c (assemble_variable): Remove call to
20867 lang_hooks.decls.prepare_assemble_variable.
20868 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
20869 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
20870 * langhooks.h (lang_hooks_for_decls): Remove
20871 prepare_assemble_variable.
20872
20873 2007-04-08 Mike Stump <mrs@apple.com>
20874
20875 * config/i386/i386.c: Use inc/dec on Core2.
20876
20877 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
20878
20879 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
20880 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
20881 lhd_tree_inlining_end_inlining): Remove.
20882 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
20883 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
20884 end_inlining hooks.
20885 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
20886 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
20887 lhd_tree_inlining_end_inlining): Remove prototypes.
20888 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
20889 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
20890 LANG_HOOKS_TREE_INLINING_START_INLINING,
20891 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
20892
20893 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
20894 not set it.
20895
20896 2007-04-08 Anatoly Sokolov <aesok@post.ru>
20897
20898 PR target/29932
20899 * config/avr/predicates.md (io_address_operand): Delete predicate.
20900 (low_io_address_operand): Don't use 'mode' argument.
20901 (higth_io_address_operand): Rename ...
20902 (high_io_address_operand): ... to this. Don't use 'mode' argument.
20903 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
20904 for above change.
20905
20906 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
20907
20908 Revert change removing staticp.
20909
20910 2007-04-07 Anatoly Sokolov <aesok@post.ru>
20911
20912 PR target/30289
20913 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
20914 earlyclobber.
20915
20916 2007-04-07 Bruce Korb <bkorb@gnu.org>
20917
20918 * c.opt: Add -Wformat-contains-nul.
20919 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
20920 -Wformat setting.
20921 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
20922 the NUL byte warning.
20923
20924 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
20925
20926 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
20927
20928 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
20929
20930 * tree.c (staticp): No longer use staticp langhook.
20931 * langhooks.c (lhd_staticp): Removed.
20932 * langhooks.h (struct lang_hooks): Remove staticp.
20933 * c-common.c (c_staticp): Remove.
20934 * c-common.h (c_staticp): Ditto.
20935 * langhooks-defs.h (lhd_staticp): Ditto.
20936 (LHD_HOOKS_STATICP): Ditto
20937 * tree.h (gcc_assert_lowered): New macro.
20938
20939 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
20940
20941 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
20942 argument "reliable".
20943 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
20944 Add argument "reliable". Propagate it through calls.
20945 (infer_loop_bounds_from_undefined): Derive number of iterations
20946 estimates from references in blocks that do not dominate loop latch.
20947 (gcov_type_to_double_int): New function.
20948 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
20949 and expected_loop_iterations_unbounded.
20950 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
20951 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
20952 * tree-data-ref.c (estimated_loop_iterations): Export.
20953 (get_references_in_stmt): Fix -- do not return addresses of local
20954 objects.
20955 * cfgloop.h (expected_loop_iterations_unbounded,
20956 estimated_loop_iterations): Declare.
20957
20958 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
20959
20960 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
20961
20962 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
20963
20964 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
20965 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
20966 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
20967 Use output_387_reg_move().
20968 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
20969 expander using X87MODEF12 mode macro.
20970 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
20971 choosing register preferences. Use output_387_reg_move().
20972 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
20973 instead of "x". Use output_387_reg_move().
20974 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
20975 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
20976 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
20977 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
20978 Use output_387_reg_move().
20979 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
20980 mode macro.
20981 (*truncxf?f_i387 splitter): Ditto.
20982
20983 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
20984
20985 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
20986 LANG_HOOKS_SAFE_FROM_P.
20987 * expr.c (safe_from_p): Remove langhook call.
20988 * langhooks.h (lang_hooks): Remove safe_from_p.
20989 (lhd_safe_from_p): Remove prototype.
20990 * langhooks.c (lhd_safe_from_p): Remove.
20991
20992 2007-04-06 Jan Hubicka <jh@suse.cz>
20993
20994 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
20995 functions.
20996
20997 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
20998
20999 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
21000 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
21001 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
21002 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
21003 alternative.
21004 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
21005 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
21006
21007 2007-04-05 Richard Henderson <rth@redhat.com>
21008
21009 * config/alpha/alpha.c (print_operand) [+]: Remove.
21010 (alpha_end_function): Print nop if call at end of function.
21011 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
21012 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
21013 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
21014 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
21015 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
21016 the call pattern. Update peepholes to match.
21017
21018 2007-04-05 Janis Johnson <janis187@us.ibm.com>
21019
21020 * doc/extend.texi (Other Builtins): Add decimal float variants
21021 of signbit.
21022 * builtins.def: Ditto.
21023 * builtins.c (expand_builtin): Ditto.
21024
21025 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
21026 H.J. Lu <hongjiu.lu@intel.com>
21027
21028 PR target/31478
21029 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
21030 of V8HImode when calling ix86_binary_operator_ok.
21031 (sse2_pmaddwd): Call ix86_binary_operator_ok.
21032 (sdot_prodv8hi): Operands 1 and 2 must be register.
21033
21034 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
21035
21036 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
21037 initialize align to silence bogus warning.
21038
21039 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
21040
21041 PR middle-end/22156
21042 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
21043 all_no_warning.
21044 (struct sra_walk_fns): Remove use_all parameter from use.
21045 (sra_hash_tree): Handle BIT_FIELD_REFs.
21046 (sra_elt_hash): Don't hash bitfld blocks.
21047 (sra_elt_eq): Skip them in parent compares as well. Handle
21048 BIT_FIELD_REFs.
21049 (sra_walk_expr): Don't maintain or pass down use_all_p.
21050 (scan_use): Remove use_all parameter.
21051 (scalarize_use): Likewise. Re-expand assignment to
21052 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
21053 output, and re-scalarize after output. Don't mark anything
21054 for no warning.
21055 (scalarize_ldst): Adjust.
21056 (scalarize_walk_gimple_modify_statement): Likewise.
21057 (build_element_name_1): Handle BIT_FIELD_REFs.
21058 (instantiate_element): Don't warn for any element whose parent
21059 is used as a whole.
21060 (instantiate_missing_elements_1): Return the sra_elt.
21061 (canon_type_for_field): New.
21062 (try_instantiate_multiple_fields): New.
21063 (instantiate_missing_elemnts): Use them.
21064 (mark_no_warning): Removed.
21065 (generate_one_element_ref): Handle BIT_FIELD_REFs.
21066 (REPLDUP, sra_build_elt_assignment): New.
21067 (generate_copy_inout): Use them.
21068 (generate_element_copy): Likewise. Handle bitfld differences.
21069 (generate_element_zero): Don't recurse for blocks. Use
21070 sra_build_elt_assignment.
21071 (generate_one_element_int): Take elt instead of var. Use
21072 sra_build_elt_assignment.
21073 (generate_element_init_1): Adjust.
21074 (scalarize_use, scalarize_copy): Use REPLDUP.
21075 (scalarize_ldst): Move assert before dereference.
21076 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
21077
21078 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
21079
21080 * regmove.c: Fix unused variable warnings due to previous commit.
21081
21082 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
21083
21084 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
21085 (regmove_bb_head): Remove.
21086 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
21087 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
21088 problems with fixup_match_1.
21089 Don't initialize/free regmove_bb_head.
21090
21091 (reg_is_remote_constant_p): If an insn is in the same basic block
21092 but not before INSN, consider it remote, too.
21093
21094 2007-04-05 Anatoly Sokolov <aesok@post.ru>
21095
21096 PR target/25448
21097 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
21098 DECL_ASSEMBLER_NAME, not the DECL_NAME.
21099
21100 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
21101
21102 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
21103 (CONDITIONAL_REGISTER_USAGE): Likewise.
21104
21105 2007-04-04 Richard Henderson <rth@redhat.com>
21106
21107 * config/alpha/lib1funcs.asm: Remove unused file.
21108
21109 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
21110
21111 PR other/31356
21112 * opts.c (print_specific_help): Fix --help=<language>
21113 header line.
21114 (common_handle_option): Support --help=common.
21115
21116 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
21117
21118 PR other/31353
21119 * gcc.c (main): Do not run the linker if
21120 print_subprocess_help indicates that it shouldn't be
21121 run.
21122
21123 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
21124
21125 PR doc/31355
21126 * doc/invoke.texi (--help=): Document <languages> value, fix
21127 formatting in tables of values.
21128
21129 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
21130
21131 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
21132 dllimport attribute of virtual methods.
21133
21134 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
21135
21136 * config/score/crti.asm: Change _bss_start to __bss_start.
21137 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
21138 (OUTGOING_REG_PARM_STACK_SPACE) update.
21139 * config/score/score.opt: add options to make backend support
21140 score5, score5u, score7 and score7d.
21141 * config/score/score.md: Likewise.
21142 * config/score/misc.md: Likewise.
21143 * config/score/mac.md: Likewise.
21144 * doc/invoke.texi: Likewise.
21145 * doc/md.texi: update constraints define.
21146
21147 2007-04-03 Richard Henderson <rth@redhat.com>
21148
21149 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
21150 an appropriate type, use the mode instead.
21151
21152 2007-04-03 Richard Sandiford <richard@codesourcery.com>
21153
21154 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
21155 Set the default --with-arch setting to mips2.
21156 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
21157 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
21158 (MULTILIB_OSDIRNAMES): Delete.
21159 (MULTILIB_DIRNAMES): Define.
21160 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
21161 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
21162 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
21163 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
21164 VXWORKS_OS_CPP_BUILTINS.
21165 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
21166 (MIPS_DEBUGGING_INFO): Undefine.
21167 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
21168
21169 2007-04-03 Jakub Jelinek <jakub@redhat.com>
21170
21171 PR middle-end/30704
21172 * fold-const.c (native_encode_real): Encode real.c provided longs
21173 as a series of 32-bit native integers.
21174 (native_interpret_real): Interpret buffer as a series of 32-bit
21175 native integers.
21176
21177 2007-04-03 Richard Guenther <rguenther@suse.de>
21178
21179 * genpreds.c (write_insn_constraint_len): Write function
21180 optimized for CONSTRAINT_LEN implementation.
21181 (write_tm_preds_h): Output insn_constraint_len inline and
21182 use it for CONSTRAINT_LEN.
21183 (write_insn_preds_c): Don't output insn_constraint_len.
21184 * doc/md.texi (define_register_constraint): Document multi-letter
21185 constraints shall have the same length if they start with the same
21186 letter.
21187
21188 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
21189
21190 PR target/31175
21191 * config/i386/i386.md (isinf<mode>2): Expand only when
21192 TARGET_C99_FUNCTIONS is set.
21193
21194 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
21195
21196 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
21197 (x86_64-*-linux*): Ditto.
21198 * config/i386/i386.opt (mpc): New option.
21199 * config/i386/i386.c (overrride_options): Handle
21200 ix87_precision_string.
21201 * config/i386/crtprec.c: New file.
21202 * config/i386/t-crtpc: Ditto.
21203 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
21204 and -mpc80 options.
21205 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
21206 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
21207 crtprec32.o, crtprec64.o and crtprec80.o.
21208
21209 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
21210 and -mpc80 options.
21211 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
21212
21213 2007-04-02 Eric Christopher <echristo@apple.com>
21214
21215 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
21216 limitations on darwin.
21217
21218 2007-04-02 Anatoly Sokolov <aesok@post.ru>
21219
21220 PR target/31137
21221 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
21222
21223 2007-04-02 Dave Korn <dave.korn@artimi.com>
21224
21225 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
21226
21227 2007-04-02 Dave Korn <dave.korn@artimi.com>
21228
21229 * libgcc2.h (exception_descriptor): Don't forward-declare.
21230 (__get_eh_table_language, __get_eh_table_version): Delete
21231 prototypes of long-dead functions.
21232
21233 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
21234
21235 * ebitmap.h: New file
21236 * ebitmap.c: New file
21237 * Makefile.in (ebitmap.o): New target.
21238
21239 2007-04-01 Jan Hubicka <jh@suse.cz>
21240
21241 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
21242 before very first instruction.
21243
21244 2007-04-01 Jan Hubicka <jh@suse.cz>
21245
21246 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
21247 waring on 64bit hosts.
21248 * bitmap.h: Fix typo in bitmap_head_def.
21249
21250 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
21251
21252 PR rtl-optimization/31391
21253 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
21254 into a DELETED_LABEL note, and the label is in an empty basic
21255 block, update BB_END as well as BB_HEAD.
21256
21257 2007-04-01 Richard Henderson <rth@redhat.com>
21258
21259 PR tree-optimization/31169
21260 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
21261 to varying if the range is outside [0, prec-1].
21262
21263 2007-04-01 Richard Sandiford <richard@codesourcery.com>
21264
21265 PR target/31388
21266 * config/mips/mips.md (load_const_gp): New insn.
21267 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
21268 the MIPS16 GP pseudo register if no_new_pseudos.
21269 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
21270
21271 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
21272
21273 PR target/31364
21274 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
21275 secureplt.
21276 (call_value): Likewise.
21277
21278 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
21279 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21280
21281 PR 14737
21282 * doc/invoke.texi: (optimization options): Reword description
21283 of -ffast-math. Document its primary purpose.
21284
21285 2007-03-31 Richard Guenther <rguenther@suse.de>
21286
21287 * omp-low.c (splay-tree.h): Include.
21288 (lookup_decl): Replace splay-tree usage by pointer-map.
21289 (maybe_lookup_decl): Likewise.
21290 (new_omp_context): Likewise.
21291 (delete_omp_context): Likewise.
21292 * gimplify.c (splay-tree.h): Include.
21293 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
21294 pointer-map.
21295 (remap_ssa_name): Likewise.
21296 (remap_decl): Likewise.
21297 (remap_type_1): Likewise.
21298 (remap_type): Likewise.
21299 (copy_body_r): Likewise.
21300 (expand_call_inline): Likewise.
21301 (clone_body): Likewise.
21302 (copy_tree_r): Likewise.
21303 (remap_save_expr): Likewise.
21304 (unsave_r): Likewise.
21305 (unsave_expr_now): Likewise.
21306 (tree_function_versioning): Likewise.
21307 (build_duplicate_type): Likewise.
21308 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
21309 (struct copy_body_data): Replace splay-tree by pointer-map.
21310 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
21311 not $(SPLAY_TREE_H).
21312 (gimplify.o): Depend on $(SPLAY_TREE_H).
21313 (omp-low.p): Likewise.
21314
21315 2007-03-31 Anatoly Sokolov <aesok@post.ru>
21316
21317 * config/avr/predicates.md (even_register_operand,
21318 odd_register_operand): New predicates.
21319 * config/avr/avr.md (movw peephole2): New.
21320 (movw_r peephole2): New.
21321
21322 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
21323
21324 * tree.h (get_signed_or_unsigned_type): New.
21325 * fold-const.c (operand_equal_for_comparison_p): Use
21326 get_signed_or_unsigned_type instead of
21327 lang_hooks.types.signed_or_unsigned_type.
21328 * expr.c (store_expr): Ditto.
21329 * langhooks.c (get_signed_or_unsigned_type): New.
21330 (lhd_signed_or_unsigned_type): New.
21331 * langhooks.h (lhd_signed_or_unsigned_type): New.
21332 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
21333
21334 2007-03-30 Richard Henderson <rth@redhat.com>
21335
21336 * tree-ssa-loop-ivopts.c: Include target.h.
21337 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
21338 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
21339 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
21340 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
21341
21342 2007-03-30 Richard Henderson <rth@redhat.com>
21343 Kai Tietz <kai.tietz@onevision.com>
21344
21345 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
21346 default for 64-bit.
21347 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
21348 (TARGET_64BIT_MS_ABI): New.
21349 (DBX_REGISTER_NUMBER): Handle 64-bit.
21350 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
21351 (LONG_TYPE_SIZE): Force to 32.
21352 (REG_PARM_STACK_SPACE): New.
21353 (OUTGOING_REG_PARM_STACK_SPACE): New.
21354 (REGPARM_MAX, SSE_REGPARM_MAX): New.
21355 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
21356 (STACK_BOUNDARY): Use 128 for 64-bit.
21357 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
21358 Add 64-bit implementation.
21359 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
21360 argument unused.
21361 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
21362 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
21363 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
21364 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
21365 (ix86_handle_cconv_attribute): Don't warn when ignoring if
21366 TARGET_64BIT_MS_ABI.
21367 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
21368 (ix86_pass_by_reference): Likewise.
21369 (ix86_function_value_regno_p): Likewise.
21370 (ix86_build_builtin_va_list): Likewise.
21371 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
21372 (function_arg_advance_ms_64): New.
21373 (function_arg_advance): Call it.
21374 (function_arg_ms_64): New.
21375 (function_arg): Call it.
21376 (function_value_ms_64): New.
21377 (ix86_function_value_1): Call it.
21378 (return_in_memory_ms_64): New.
21379 (ix86_return_in_memory): Call it.
21380 (setup_incoming_varargs_ms_64): New.
21381 (ix86_setup_incoming_varargs): Call it.
21382 (ix86_expand_prologue): Handle 64-bit stack probing.
21383 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
21384 (output_pic_addr_const): Likewise.
21385 (x86_this_parameter): Likewise.
21386 (x86_output_mi_thunk): Likewise.
21387 (x86_function_profiler): Likewise.
21388 (TARGET_STRICT_ARGUMENT_NAMING): New.
21389 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
21390 (TARGET_64BIT_MS_ABI): New.
21391 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
21392 * config/i386/i386.md (allocate_stack_worker): Remove.
21393 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
21394 describe the clobber of eax without a match_scratch.
21395 (allocate_stack_worker_postreload): Remove.
21396 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
21397 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
21398 (allocate_stack_worker_rex64_postreload): Remove.
21399 (allocate_stack): Handle 64-bit.
21400 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
21401 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
21402 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
21403 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
21404 (STANDARD_STARTFILE_PREFIX_1): Likewise.
21405 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
21406 * config.build (x86_64-*-mingw*): New host.
21407 * config.host (x86_64-*-mingw*): New host.
21408 * config.gcc (x86_64-*-mingw*): New target.
21409 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
21410
21411 2007-03-30 Richard Henderson <rth@redhat.com>
21412 Kai Tietz <kai.tietz@onevision.com>
21413
21414 * c-pragma.c (struct def_pragma_macro_value): New.
21415 (struct def_pragma_macro): New.
21416 (pushed_macro_table): New.
21417 (dpm_hash, dpm_eq): New.
21418 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
21419 (init_pragma): Install them.
21420 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
21421
21422 2007-03-30 Anatoly Sokolov <aesok@post.ru>
21423
21424 * config/avr/avr.c (avr_override_options): Clear
21425 'flag_delete_null_pointer_checks'.
21426
21427 2007-03-30 Paolo Carlini <pcarlini@suse.de>
21428
21429 PR c++/26099
21430 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
21431 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
21432 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
21433 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
21434 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
21435 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
21436 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
21437 C++ extensions.
21438 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
21439
21440 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
21441
21442 * regmove.c: Move all of pass_stack_adjustments from here...
21443 * combine-stack-adj.c: ...to this new file.
21444 * Makefile.in: Add rules for combine-stack-adj.o.
21445
21446 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
21447
21448 PR tree-optimization/31383
21449 * tree-data-ref.c (affine_function_equal_p): Do not require the
21450 vectors to have the same length.
21451
21452 2007-03-30 Jan Hubicka <jh@suse.cz>
21453
21454 PR middle-end/30700
21455 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
21456 availablility; add more sanity checking; ask varpool only about
21457 VAR_DECL.
21458
21459 2007-03-29 Richard Henderson <rth@redhat.com>
21460
21461 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
21462 to decide, but __SIZEOF_LONG_LONG__.
21463
21464 2007-03-29 Richard Henderson <rth@redhat.com>
21465
21466 * emutls.c (struct __emutls_array): New.
21467 (emutls_destroy): Use it instead of casting element 0 from void*.
21468 (__emutls_get_address): Likewise.
21469
21470 2007-03-29 Richard Henderson <rth@redhat.com>
21471
21472 * varasm.c (initializer_constant_valid_p): Don't deny
21473 DECL_DLLIMPORT_P on functions.
21474
21475 * config/i386/cygming.h: Remove function declarations.
21476 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
21477 (ASM_OUTPUT_LABELREF): Remove.
21478 (COMMON_ASM_OP): Remove.
21479 (ASM_OUTPUT_COMMON): Remove.
21480 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21481 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
21482 (ASM_DECLARE_FUNCTION_NAME): Likewise.
21483 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
21484 Rename from TARGET_ENCODE_SECTION_INFO.
21485 * config/i386/netware.h: Likewise.
21486 * config/i386/i386-protos.h: Update.
21487 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
21488 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
21489 (legitimate_constant_p): Reject dllimports.
21490 (dllimport_map, get_dllimport_decl): New.
21491 (legitimize_dllimport_symbol): New.
21492 (legitimize_address, ix86_expand_move): Use it.
21493 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
21494 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
21495 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
21496 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
21497 * config/i386/predicates.md (constant_call_address_operand): Only
21498 accept symbols; reject dllimport_p symbols.
21499 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
21500 i386_pe_maybe_record_exported_symbol.
21501 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
21502 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
21503 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
21504 trust the setting of DECL_DLLIMPORT_P.
21505 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
21506 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
21507 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
21508 tidy the argument scanning loop.
21509 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
21510 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
21511 (i386_pe_strip_name_encoding): Remove.
21512 (i386_pe_binds_local_p): New.
21513 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
21514 (i386_pe_output_labelref): Remove.
21515 (i386_pe_asm_output_aligned_decl_common): New.
21516 (i386_pe_maybe_record_exported_symbol): Rename from
21517 i386_pe_record_exported_symbol; check for dllexported symbols.
21518
21519 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
21520
21521 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
21522 add comment explaining why vsnprintf cannot be used.
21523
21524 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
21525
21526 PR tree-optimization/30666
21527 * tree.c (build_complex_type): When creating type names for DWARF2
21528 debug info, create TYPE_DECLs for TYPE_NAME instead of
21529 IDENTIFIER_NODEs.
21530 (build_common_tree_nodes_2): Use build_complex_type when building
21531 predefined complex types, to preserve canonical types.
21532
21533 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
21534
21535 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
21536 (noce_get_alt_condition): Look at it to determine whether to
21537 reverse the condition or not.
21538 (noce_get_condition): Substitute the truth for lies.
21539 (noce_find_if_block): Set the then_else_reversed field.
21540
21541 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
21542
21543 * config/fr30/fr30.md (movdi): Do not accept immediates as the
21544 destination of this insn.
21545 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
21546 than calling gen_rtx_SET directly. Use r0 to hold the value of
21547 'address + 4' rather than a stack based temporary which can be
21548 mis-optimized away.
21549
21550 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
21551
21552 * config/s390/s390.c (s390_secondary_input_reload_class,
21553 s390_secondary_output_reload_class): Functions removed.
21554 (s390_secondary_reload): New function.
21555 (TARGET_SECONDARY_RELOAD): Target macro defined.
21556 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
21557 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
21558 * config/s390/s390.md ("reload_outti", "reload_outdi",
21559 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
21560 "reload_out<mode>"): Expanders removed.
21561 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
21562 "reload<mode>_nonoffmem_out"): Expanders added.
21563
21564 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
21565
21566 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
21567 action if SRC->DEST replacement failed anyway.
21568
21569 2007-03-28 Mike Stump <mrs@apple.com>
21570
21571 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
21572 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
21573 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
21574
21575 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
21576
21577 * config.gcc: Accept barcelona as a variant of amdfam10.
21578 * config/i386/i386.c (override_options): Likewise.
21579 * doc/invoke.texi: Likewise.
21580
21581 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
21582
21583 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
21584 offsets for BIT_FIELD_REF and COMPONENT_REF.
21585
21586 2007-03-28 Richard Guenther <rguenther@suse.de>
21587
21588 * tree.c (is_global_var): Move ...
21589 * tree-flow-inline.h (is_global_var): ... here.
21590 * tree.h (is_global_var): Remove declaration.
21591
21592 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
21593
21594 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
21595 option.
21596 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
21597 * config/i386/i386.c (ix86_tune_features): Initialize new
21598 tuning option.
21599 * config/i386/predicates.md (promotable_binary_operator): Use
21600 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
21601
21602 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
21603
21604 PR target/31380
21605 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
21606
21607 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
21608
21609 * config/fr30/fr30.md (movsi_internal): Change destination
21610 constraint from m to V and add m to the end.
21611
21612 2007-03-28 Christian Bruel <christian.bruel@st.com>
21613
21614 * config/sh/sh.md (movsi_i): Fix type attribute.
21615
21616 2007-03-28 Christian Bruel <christian.bruel@st.com>
21617
21618 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
21619 (movsf_ie): Likewise.
21620
21621 2007-03-28 Christian Bruel <christian.bruel@st.com>
21622
21623 * config.gcc: Add sh4-300 to multilib.
21624 * config/sh/t-mlib-sh4-300: New file.
21625
21626 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
21627
21628 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
21629 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
21630 fix_trunc<mode>di2.
21631 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
21632 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
21633 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
21634 "fixuns_trunctddi2"): Whitespace fix.
21635
21636 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
21637
21638 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
21639 the definition of struct sh_args.
21640 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
21641 CALL_COOKIE_INT_REG_GET): Likewise.
21642
21643 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
21644
21645 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
21646 transformations are applied successfully.
21647
21648 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
21649
21650 * tree.c (tree_contains_struct): Permit 512 tree codes.
21651 * tree.h (tree_contains_struct): Ditto.
21652 (MAX_TREE_CODES): Ditto.
21653 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
21654 SPARE member to store remaining padding bits.
21655
21656 2007-03-27 Anatoly Sokolov <aesok@post.ru>
21657
21658 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
21659 architecture.
21660
21661 2007-03-27 Janis Johnson <janis187@us.ibm.com>
21662
21663 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
21664 * configure: Regenerate.
21665
21666 * configure: Regenerate using the correct version of autoconf.
21667
21668 2007-03-27 Anatoly Sokolov <aesok@post.ru>
21669
21670 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
21671 pointer regs.
21672 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
21673 regs to "__SP_L__" and "__SP_H__".
21674
21675 2007-03-27 Richard Guenther <rguenther@suse.de>
21676
21677 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
21678 computations with it with a HOST_WIDE_INT variable.
21679
21680 2007-03-26 Mike Stump <mrs@apple.com>
21681
21682 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
21683 objective-c-header, objective-c++-header and objc++-cpp-output
21684 support.
21685 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
21686
21687 2007-03-26 Richard Henderson <rth@redhat.com>
21688
21689 PR target/31361
21690 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
21691 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
21692 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
21693 IX86_BUILTIN_PSRLQ128): New.
21694 (ix86_init_mmx_sse_builtins): Add them.
21695 (ix86_expand_builtin): Expand them.
21696 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
21697 operand 2 be TImode.
21698 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
21699 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
21700 _mm_srli_epi64): Mark __B const.
21701 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
21702 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
21703 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
21704 new two-vector shift builtins.
21705
21706 2007-03-26 Ian Lance Taylor <iant@google.com>
21707
21708 PR tree-optimization/31345
21709 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
21710 [+INF, +INF(OVF)] into VARYING.
21711
21712 2007-03-26 Zack Weinberg <zackw@panix.com>
21713
21714 * gengtype-parse.c: New file.
21715 * gengtype-yacc.y: Delete.
21716 * gengtype-lex.l: Don't include gengtype-yacc.h.
21717 Define YY_DECL and yyterminate appropriately for recursive
21718 descent parser. yylval is now a string out-parameter to yylex.
21719 (HWS, EOID): New shorthand.
21720 (IWORD): Add a couple more types.
21721 (yylex): Add a setup stanza. Remove the complex rules for
21722 detecting GTY'ed types and typedefs; replace with simple
21723 keyword detectors. Adjust everything for the changed
21724 definition of yylval. Ignore all pp-directives, not just #define.
21725 (yyerror): Delete.
21726 (parse_file): Rename yybegin; do not call yyparse.
21727 (yyend): New.
21728 * gengtype.c (xasprintf): Export again.
21729 (this_file): New. Use everywhere __FILE__ was being used.
21730 (get_lang_bitmap): Special case types defined in gengtype.c.
21731 (do_typedef, new_structure): Suppress definition of certain types.
21732 (new_structure): Improve diagnostics of duplicate definitions.
21733 Make sure location_s is associated with input.h.
21734 (nreverse_pairs, define_location_structures): New functions.
21735 (main): Improve tagging of kludge types. Remove old kludges
21736 for input.h types; use define_location_structures.
21737 * gengtype.h: Update prototypes. Define token codes here.
21738 * Makefile.in: Remove all references to gengtype-yacc.
21739 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
21740 and gengtype.
21741 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
21742 add GTY((skip)) to the field that's only conditionally there.
21743 * doc/install.texi: Document that Bison is no longer required
21744 unless building treelang.
21745
21746 * gengtype.c: Don't include gtyp-gen.h.
21747 (srcdir): Declare here.
21748 (base_files, lang_dir_names): Allocate dynamically.
21749 (gt_files, num_gt_files, num_lang_dirs): New globals.
21750 (measure_input_list, read_input_line, read_input_list)
21751 (set_lang_bitmap): New functions.
21752 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
21753 simplify, relying on read_input_list to set up the bitmaps.
21754 (main): Arguments are no longer unused. Check for correct number
21755 of command line arguments, set srcdir and srcdir_len, then call
21756 read_input_list, before doing anything else. No need to worry
21757 about duplicates in main loop.
21758 * configure.ac: Simplify the calculation of all_gtfiles.
21759 Put language tags in there. Don't set or substitute
21760 all_gtfiles_files_langs or all_gtfiles_files_frags.
21761 * Makefile.in: Revamp the way gengtype is invoked, now that it
21762 takes a file on its command line with a much simpler format.
21763 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
21764 (GTFILES): Remove duplicates and C source files.
21765 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
21766 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
21767 * configure: Regenerate.
21768
21769 * gengtype.h: Remove all type definitions to gengtype.c; leave
21770 only definitions of options_p, type_p, and pair_p as opaque
21771 pointers. Update prototypes.
21772 * gengtype.c: Many type definitions moved here from gengtype.h.
21773 Consolidate type definitions at the top of the file.
21774 (xvasprintf): Delete.
21775 (xasprintf): Make static.
21776 (create_nested_pointer_option): Add 'next' parameter.
21777 (create_field_all, create_field_at): New functions.
21778 (create_field): Now a thin wrapper around create_field_all.
21779 (create_optional_field): Rename create_optional_field_ and add
21780 line argument. Original name is now a macro which supplies
21781 __LINE__.
21782 (oprintf): Use vsnprintf directly.
21783 (close_output_files): Use fatal rather than perror/exit.
21784 (note_def_vec, note_def_vec_alloc): Use create_field_at.
21785 (main): Set progname. Don't use exit.
21786 * gengtype-yacc.y (struct_fields): Use create_field_at.
21787 (option, optionseqopt): Delete.
21788 (optionseq): Consolidate productions from option here so we
21789 can use the first argument to create_option.
21790
21791 * gengtype-lex.l: Distinguish unions from structures in the
21792 token type. Don't call find_structure; return the tag as a string.
21793 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
21794 ENT_UNION. Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
21795 string. Reorganize typedef_struct production accordingly.
21796 Use create_nested_ptr_option.
21797 * gengtype.c (create_nested_ptr_option): New function.
21798 * gengtype.h: Declare it.
21799
21800 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
21801 (string_type): Don't declare.
21802 (do_scalar_typedef): Declare.
21803 (create_scalar_type): Update prototype.
21804 * gengtype.c (string_type): Make static.
21805 (scalar_nonchar, scalar_char): New.
21806 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
21807 (resolve_typedef): Use scalar_nonchar for error recovery.
21808 (create_scalar_type): Remove name_len field. Return scalar_char
21809 or scalar_nonchar as appropriate.
21810 (adjust_field_type): Look at scalar_is_char boolean to decide whether
21811 to use string_type.
21812 (throughout): Use scalar_nonchar instead of calling
21813 create_scalar_type, whenever possible.
21814 (main): Initialize scalar_char and scalar_nonchar before calling
21815 gen_rtx_next.
21816 * gengtype-lex.l: Adjust for removal of second argument to
21817 create_scalar_type. Use yylval.s instead of yylval.t when
21818 returning SCALAR.
21819 * gengtype-yacc.y: Type of SCALAR is string. Call
21820 create_scalar_type from type:SCALAR rule. Adjust for removal of
21821 second argument to create_scalar_type.
21822
21823 * vec.h: Remove all #if IN_GENGTYPE blocks.
21824 Add comment saying that changes may require adjustments to gengtype.
21825 * gengtype.c: Don't include coretypes.h or tm.h.
21826 Add comment to inclusion of errors.h.
21827 (note_def_vec, note_def_vec_alloc): New functions.
21828 * gengtype.h: Declare new functions.
21829 * gengtype-lex.l: Don't include coretypes.h.
21830 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
21831 Delete.
21832 (update_lineno): Remove unnecessary prototype.
21833 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
21834 (VEC rule): Just return VEC_TOKEN.
21835 * gengtype-yacc.y (VEC_TOKEN): New token type.
21836 (type): Add a production for VEC(a,b).
21837 * Makefile.in: Update dependencies.
21838
21839 * gengtype-lex.l: Remove rules for parsing pointer-to-function
21840 typedefs that use the old PARAMS macro.
21841
21842 * gengtype-lex.l: Remove all rules and states relating to yacc
21843 input files.
21844 * gengtype-yacc.y: Similarly.
21845 * gengtype.c (note_yacc_type): Delete function.
21846 * gengtype.h: Update prototypes.
21847
21848 2007-03-26 Joseph Myers <joseph@codesourcery.com>
21849
21850 * tree-pretty-print.c (dump_generic_node): Report precision of
21851 unnamed integer types.
21852
21853 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
21854
21855 * ifcvt.c (noce_try_store_flag_constants): Don't check
21856 no_new_pseudos here.
21857 (noce_try_store_flag_constants): Don't check no_new_pseudos.
21858 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
21859 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
21860 noce_try_sign_mask): Likewise.
21861 (if_convert): Check no_new_pseudos here.
21862
21863 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
21864 Remove prototypes.
21865 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
21866 (noce_get_condition): Handle new then_else_reversed argument.
21867 (noce_init_if_info): Remove, fold into noce_find_if_block.
21868 (noce_process_if_block): Take a struct noce_if_info as the
21869 argument. Don't set up one based on ce_if_info. Update pointer
21870 references accordingly.
21871 (cond_move_process_if_block): Likewise.
21872 (process_if_block): Removed.
21873 (find_if_block): Removed. Move functionality two new functions,
21874 noce_find_if_block and cond_exec_find_if_block.
21875 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
21876 blocks and the symmetric IF-ELSE-JOIN case.
21877 (cond_exec_find_if_block): Also new function mostly based on old
21878 find_if_block and process_if_block.
21879 (find_if_header): Replace find_if_block call with separately
21880 guarded calls to noce_find_if_block and cond_exec_find_if_block.
21881 (find_cond_trap): Update noce_get_condition call.
21882 (dead_or_predicable): Likewise.
21883
21884 2007-03-26 Jakub Jelinek <jakub@redhat.com>
21885
21886 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
21887 Remove.
21888 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
21889 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
21890 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
21891 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
21892 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
21893 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
21894 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
21895 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
21896 __builtin_ia32_psrad128 builtins.
21897
21898 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
21899
21900 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
21901 * config/i386/constraints.md
21902 (define_constraint "I"): Use IN_RANGE macro.
21903 (define_constraint "J"): Ditto.
21904 (define_constraint "K"): Ditto.
21905 (define_constraint "M"): Ditto.
21906 (define_constraint "N"): Ditto.
21907 (define_constraint "O"): Ditto.
21908 * config/i386/predicates.md
21909 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
21910 (define_predicate "const_0_to_3_operand"): Ditto.
21911 (define_predicate "const_0_to_7_operand"): Ditto.
21912 (define_predicate "const_0_to_15_operand"): Ditto.
21913 (define_predicate "const_0_to_63_operand"): Ditto.
21914 (define_predicate "const_0_to_255_operand"): Ditto.
21915 (define_predicate "const_1_to_31_operand"): Ditto.
21916 (define_predicate "const_2_to_3_operand"): Ditto.
21917 (define_predicate "const_4_to_7_operand"): Ditto.
21918
21919 2007-03-25 David Edelsohn <edelsohn@gnu.org>
21920
21921 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
21922 in SImode for save_world.
21923 * config/rs6000/altivec.md (save_world, restore_world): Convert to
21924 LR hard reg.
21925
21926 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
21927
21928 PR tree-optimization/30784
21929 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
21930 BIT_FIELD_REF.
21931
21932 2007-03-25 Revital Eres <eres@il.ibm.com>
21933
21934 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
21935 Fold movement_possibility function into it.
21936
21937 2007-03-25 David Edelsohn <edelsohn@gnu.org>
21938
21939 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
21940 (load_macho_picbase_{si,di}): Convert to LR hard reg.
21941 (call_indirect_nonlocal_darwin64): Same.
21942 (call_nonlocal_darwin64): Same.
21943 (call_value_indirect_nonlocal_darwin64): Same.
21944 (call_value_nonlocal_darwin64): Same.
21945 (sibcall_nonlocal_darwin64): Same.
21946 (sibcall_value_nonlocal_darwin64): Same.
21947 (sibcall_symbolic_64): Same.
21948 (sibcall_value_symbolic_64): Same.
21949 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
21950 LR pseudo.
21951 (rs6000_emit_load_toc_table): Same.
21952 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
21953 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
21954 (mull_call): Same.
21955 (divss_call): Same.
21956 (divus_call): Same.
21957 (quoss_call): Same.
21958 (quous_call): Same.
21959 (load_toc_v4_pic_si): Same
21960 (load_toc_v4_PIC_1): Same.
21961 (load_toc_v4_PIC_1b): Same.
21962 (call_indirect_aix{32,64}): Same.
21963 (call_value_indirect_aix{32,64}): Same.
21964 (call): Same.
21965 (call_value): Same.
21966 (call_local{32,64}): Same.
21967 (call_value_local{32,64}): Same.
21968 (call_indirect_nonlocal_aix{32,64}): Same.
21969 (call_nonlocal_aix{32,64}): Same.
21970 (call_value_indirect_nonlocal_aix{32,64}): Same.
21971 (call_value_nonlocal_aix{32,64}): Same.
21972 (call_indirect_nonlocal_sysv<mode>): Same.
21973 (call_nonlocal_sysv<mode>): Same.
21974 (call_value_indirect_nonlocal_sysv<mode>): Same.
21975 (call_value_nonlocal_sysv<mode>): Same.
21976 (sibcall): Same.
21977 (sibcall_local{32,64}): Same.
21978 (sibcall_value_local{32,64}): Same.
21979 (sibcall_nonlocal_aix{32,64}): Same.
21980 (sibcall_value_nonlocal_aix{32,64}): Same.
21981 (sibcall_nonlocal_sysv<mode>): Same.
21982 (sibcall_value): Same.
21983 (sibcall_value_nonlocal_sysv<mode>): Same.
21984
21985 2007-03-24 Paul Brook <paul@codesourcery.com>
21986
21987 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
21988 * config/arm/linux-eabi.h: Remove legacy syscall hack.
21989
21990 2007-03-24 Richard Henderson <rth@redhat.com>
21991
21992 * config/ia64/constraints.md: New file.
21993 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
21994 satisfies_constraint_?.
21995 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
21996 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
21997 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
21998 ia64_output_mi_thunk): Likewise.
21999 (ia64_const_ok_for_letter_p): Remove.
22000 (ia64_const_double_ok_for_letter_p): Remove.
22001 (ia64_extra_constraint): Remove.
22002 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
22003 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
22004 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
22005 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
22006 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
22007 EXTRA_MEMORY_CONSTRAINT): Remove.
22008 * config/ia64/ia64.md: Include constriants.md. Replace
22009 CONST_OK_FOR_? with satisfies_constraint_?.
22010
22011 2007-03-23 Michael Meissner <michael.meissner@amd.com>
22012 H.J. Lu <hongjiu.lu@intel.com>
22013
22014 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
22015 DPD or BID name.
22016 (name macros): Use DPD_BID_NAME to convert names properly.
22017
22018 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
22019 decimal floating point format.
22020 (init_floating_libfuncs): Change decimal functions so that they
22021 have a "bid_" prefix if the decimal system uses the BID format,
22022 and "dpd_" prefix if the decimal system uses the DPD format.
22023 (init_interclass_conv_libfuncs): Ditto.
22024 (init_intraclass_conv_libfuncs): Ditto.
22025
22026 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
22027 using the BID format.
22028
22029 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
22030 whether we are using the BID decimal format.
22031 * configure: Regenerate.
22032
22033 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
22034 the compiler has decimal floating point enabled. Define
22035 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
22036 instead of DPD.
22037
22038 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
22039 using the BID format.
22040
22041 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
22042 whether we are using the BID decimal format.
22043 * configure: Regenerate.
22044
22045 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
22046 the compiler has decimal floating point enabled. Define
22047 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
22048 instead of DPD.
22049
22050 * doc/install.texi (--enable-decimal-float): Document BID and DPD
22051 options, and that it is enabled for i386/x86_64 systems.
22052
22053 * Makefile.in (enable_decimal_float): New.
22054 (DECNUMFMT): New.
22055 (DECNUMINC): Add -I$(DECNUMFMT).
22056 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
22057 to $(DECNUMFMT) from $(DECNUM).
22058
22059 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
22060 Substitute enable_decimal_float.
22061 * configure: Regenerated.
22062
22063 PR other/30529
22064 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
22065 unsigned long.
22066
22067 * configure.ac: Enable decimal float for x86_64-*-linux*.
22068 * configure: Regenerated.
22069
22070 PR other/30530
22071 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
22072 decimal128ClearSign to flip and clear the sign bit in decimal128.
22073 (decimal_real_maxval): Set decimal128SetSign to set the sign
22074 bit in decimal128.
22075
22076 2007-03-23 Ian Lance Taylor <iant@google.com>
22077
22078 * fold-const.c (fold_binary): Correct warning for X - c >= X.
22079
22080 2007-03-23 Ian Lance Taylor <iant@google.com>
22081
22082 * tree-dump.c (dump_files): Correct comment.
22083
22084 2007-03-23 Ian Lance Taylor <iant@google.com>
22085
22086 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
22087
22088 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
22089
22090 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
22091 in cfglayout mode. Don't go into and out of cfglayout mode.
22092 Link the blocks in the order of the constructed traces.
22093 (rest_of_handle_tracer): Adjust call to tracer.
22094 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
22095 Don't go into cfglayout mode.
22096 (rtl_loop_done): Don't go out of cfglayout mode.
22097 * cfglayout.c (relink_block_chain): New function, split out from...
22098 (fixup_reorder_chain): ...here. Remove redundant checking.
22099 (cfg_layout_finalize): Don't clear the header, footer, and aux
22100 fields here, move the code to do so to relink_block_chain. Likewise
22101 for free_original_copy_tables.
22102 * rtl.h (tracer): Update prototype.
22103 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
22104 Assert we are in cfglayout mode. Don't go into and out of cfglayout
22105 mode. Use relink_block_chain to serialize the CFG according to the
22106 new basic block order. Move targetm.cannot_modify_jumps_p check from
22107 here...
22108 (gate_handle_reorder_blocks): ...to here.
22109 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
22110 from here...
22111 (gate_duplicate_computed_gotos): ...to here.
22112 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
22113 something always changes when going into and out of cfglayout mode.
22114 Perform an expensive cfg cleanup while going into cfglayout mode.
22115 Always update liveness information on HAVE_conditional_execution
22116 targets. Reserialize the basic blocks and go out of cfglayout mode.
22117 * reg-stack.c: Include cfglayout.h.
22118 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
22119 the call to reorder_basic_blocks.
22120 * basic-block.h (reorder_basic_blocks): Update prototype.
22121 (relink_block_chain): New prototype.
22122 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
22123
22124 2007-03-23 Joseph Myers <joseph@codesourcery.com>
22125
22126 * config/mips/mips.md (type, hazard, *movdi_32bit,
22127 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
22128 *movhi_internal, *movqi_internal, *movsf_hardfloat,
22129 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
22130 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
22131 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
22132 applicable.
22133 (movcc): Change first xfer to multi.
22134 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
22135 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
22136 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
22137 config/mips/generic.md: Change reservations using "xfer" to use
22138 "mfc,mtc".
22139 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
22140 using match_operand.
22141 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
22142 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
22143 examining mode.
22144 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
22145
22146 2007-03-22 Richard Henderson <rth@redhat.com>
22147
22148 * config/i386/i386.c: Remove unnecessary function declarations.
22149 Move targetm definition, and all related macros, to the end of
22150 the file. Resort some functions to put definitions before uses.
22151 (ix86_attribute_table): Make static. Move to end of file.
22152 (ix86_gimplify_va_arg): Make static.
22153
22154 2007-03-22 Richard Henderson <rth@redhat.com>
22155
22156 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
22157 don't increase local_regparm with force_align_arg_pointer check.
22158 (ix86_function_sseregparm): Assert 32-bit.
22159 (type_has_variadic_args_p): New.
22160 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
22161 type_has_variadic_args_p.
22162 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
22163 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
22164 use memset instead. Do maybe_vaarg check first; skip attribute
22165 tests if true; skip attribute tests for 64-bit.
22166 (construct_container): Remove TARGET_DEBUG_ARG.
22167 (function_arg_advance_32, function_arg_advance_64): Split out ...
22168 (function_arg_advance): ... from here.
22169 (function_arg_32, function_arg_64): Split out ...
22170 (function_arg): ... from here.
22171 (ix86_pass_by_reference): Tidy.
22172 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
22173 (function_value_32): New, from parts of ix86_function_value
22174 and ix86_value_regno.
22175 (function_value_64): New, from parts of ix86_function_value
22176 and ix86_libcall_value.
22177 (ix86_function_value_1): New.
22178 (ix86_function_value, ix86_libcall_value): Use it.
22179 (return_in_memory_32, return_in_memory_64): Split out ...
22180 (ix86_return_in_memory): ... from here.
22181 (ix86_struct_value_rtx): Skip for 64-bit.
22182 (ix86_libcall_value, ix86_value_regno): Remove.
22183 (setup_incoming_varargs_64): Split out ...
22184 (ix86_setup_incoming_varargs): ... from here.
22185 (ix86_va_start): Remove TARGET_DEBUG_ARG.
22186 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
22187 * config/i386/i386-protos.h (ix86_function_value): Remove.
22188 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
22189
22190 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22191
22192 PR other/23572
22193 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
22194 infinities not supported, otherwise emit warning if -Woverflow. On
22195 underflow, emit warning if -Woverflow.
22196 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
22197 and 0 otherwise.
22198 * real.h (real_from_string): Update declaration
22199
22200 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
22201 Richard Henderson <rth@redhat.com>
22202
22203 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
22204 * calls.c (compute_argument_block_size, expand_call,
22205 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
22206 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
22207 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
22208 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
22209 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
22210 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
22211 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
22212 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
22213 Set to 1.
22214
22215 2007-03-22 Joseph Myers <joseph@codesourcery.com>
22216
22217 * c-incpath.c (add_sysroot_to_chain): New.
22218 (merge_include_chains): Add sysroot argument. Call
22219 add_sysroot_to_chain if sysrooted.
22220 (register_include_chains): Update call to merge_include_chains.
22221 * doc/cppopts.texi: Document use of '=' in include directory
22222 arguments.
22223
22224 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
22225
22226 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
22227 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
22228 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
22229 insn pattern using X87MODEF12 mode macro.
22230
22231 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
22232
22233 * regmove.c (regmove_optimize): Use reg_mentioned_p
22234 instead of reg_overlap_mentioned_p for DST.
22235
22236 2007-03-21 Mike Stump <mrs@apple.com>
22237
22238 * c.opt: Fixup for Objective-C/C++.
22239
22240 2007-03-21 Steve Ellcey <sje@cup.hp.com>
22241
22242 * explow.c (convert_memory_address): Fold memory reference when
22243 POINTERS_EXTEND_UNSIGNED < 0
22244
22245 2007-03-21 Richard Henderson <rth@redhat.com>
22246
22247 PR target/31245
22248 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
22249 * config/i386/mmintrin.h (__m64): Likewise.
22250 * config/i386/xmmintrin.h (__m128): Likewise.
22251
22252 2007-03-21 Richard Sandiford <richard@codesourcery.com>
22253
22254 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
22255 (VXWORKS_OS_CPP_BUILTINS): Define.
22256 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
22257 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
22258
22259 2007-03-21 Richard Sandiford <richard@codesourcery.com>
22260
22261 * rtl.h (constant_pool_reference_p): Delete.
22262 (find_constant_src): Declare.
22263 * rtlanal.c (find_constant_src): New function.
22264 * simplify-rtx.c (constant_pool_reference_p): Delete.
22265 * config/i386/i386.md: Use find_constant_src instead of
22266 constant_pool_reference_p/avoid_constant_pool_reference pairs.
22267
22268 2007-03-21 Richard Sandiford <richard@codesourcery.com>
22269
22270 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
22271 * c-cppbuiltin.c (c_cpp_builtins): Define them.
22272
22273 2007-03-20 Mark Mitchell <mark@codesourcery.com>
22274
22275 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
22276 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
22277 (arm_elf_asm_constructor): Use it.
22278 (arm_elf_asm_destructor): New function.
22279
22280 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
22281
22282 * jump.c (mark_jump_label): Treat SEQUENCE specially.
22283
22284 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
22285
22286 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
22287
22288 2007-03-19 Andrew Haley <aph@redhat.com>
22289
22290 PR tree-optimization/31264
22291 * tree-vrp.c (register_edge_assert_for_1): Don't look though
22292 VIEW_CONVERT_EXPRs.
22293
22294 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
22295
22296 PR rtl-optimization/30907
22297 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
22298 (fwprop_init): Always call loop_optimizer_initialize.
22299 (fwprop_done): Always call loop_optimizer_finalize.
22300 (fwprop): We always have loop info now.
22301 (gate_fwprop_addr): Remove.
22302 (pass_fwprop_addr): Use gate_fwprop as gate.
22303
22304 PR rtl-optimization/30841
22305 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
22306 df_chain_alloc): Call df_reorganize_refs unconditionally.
22307 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
22308 refs_organized to refs_organized_size.
22309 (df_ref_create_structure): Use refs_organized_size instead of
22310 bitmap_size if refs had been organized, and keep refs_organized_size
22311 up-to-date.
22312 * df.h (struct df_ref_info): Change refs_organized to
22313 refs_organized_size.
22314 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
22315 bitmap_size.
22316
22317 2007-03-19 Mark Mitchell <mark@codesourcery.com>
22318
22319 * except.c (output_function_exception_table): Do not reference the
22320 EH personality routine for functions that do not require an
22321 exception table.
22322
22323 2007-03-20 Jakub Jelinek <jakub@redhat.com>
22324
22325 PR c/30762
22326 * c-typeck.c (convert_for_assignment): Call comptypes for
22327 RECORD_TYPE or UNION_TYPE.
22328
22329 PR inline-asm/30505
22330 * reload1.c (reload): Do invalid ASM checking after
22331 cleanup_subreg_operands.
22332
22333 2007-03-19 Jeff Law <law@redhat.com>
22334
22335 * tree-cfg.c (find_taken_edge): Tighten conditions for
22336 optimizing computed gotos.
22337
22338 2007-03-19 Michael Matz <matz@suse.de>
22339
22340 * builtins.c (expand_builtin_sync_operation,
22341 expand_builtin_compare_and_swap,
22342 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
22343 correctly.
22344
22345 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
22346 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
22347 for operand 3.
22348
22349 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22350
22351 * doc/tm.texi: Add brackets around the return type of
22352 TARGET_SECONDARY_RELOAD.
22353
22354 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
22355 Richard Guenther <rguenther@suse.de>
22356
22357 PR tree-optimization/31254
22358 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
22359 Use handled_component_p () where appropriate. Continue
22360 propagating into the rhs if we propagated into an INDIRECT_REF
22361 on the lhs.
22362
22363 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22364
22365 * config/s390/s390.md (op_type attribute): RRR instruction type added.
22366 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
22367 (xde, xdee): Mode attributes adjusted to support DFP modes.
22368 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
22369 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
22370 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
22371 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
22372 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
22373 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
22374 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
22375 numbers.
22376 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
22377 "movsf"): Insn definitions removed.
22378 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
22379 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
22380 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
22381 definitions added.
22382 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
22383 "reload_in<mode>", "reload_out<mode>"): Expander added.
22384 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
22385 Expander removed.
22386
22387 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22388
22389 * config/s390/s390.md: Only non-functional changes. Renamed
22390 FPR mode macro to BFP all over the file.
22391
22392 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22393
22394 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
22395 (op_type attribute): RRF instruction type added.
22396 (fT0): New mode attribute.
22397 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
22398 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
22399 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
22400 instruction no secondary memory is needed when moving DFmode values
22401 between GPRs and FPRs.
22402
22403 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22404
22405 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
22406 inverted and documentation adjusted.
22407 ("mhard-dfp", "msoft-dfp"): New options.
22408 * config/s390/s390.c (s390_handle_arch_option): New architecture
22409 switch: z9-ec.
22410 (override_options): Sanity checks for the new options added.
22411 * config.gcc: New architecture switch: z9-ec.
22412 * config/s390/s390.h (processor_flags): PF_DFP added.
22413 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
22414 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
22415 when the bit is NOT set so remove it from the defaults.
22416
22417 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22418
22419 * genemit.c (main): Print include statement for dfp.h.
22420 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
22421 is not available.
22422
22423 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
22424
22425 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
22426
22427 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22428
22429 PR target/31022
22430 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
22431 instead of PATTERN.
22432
22433 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22434
22435 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
22436 attr_length_call, output_call, output_indirect_call): Cleanup
22437 formatting of targetm calls.
22438
22439 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
22440
22441 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
22442
22443 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22444
22445 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
22446 reservation, bypass and anti-bypass descriptions for these
22447 instructions. Update move patterns.
22448 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
22449 TYPE_FPSTORE.
22450
22451 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
22452
22453 * tree-vect-transform.c (get_initial_def_for_induction): Replace
22454 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
22455 (get_initial_def_for_reduction): Likewise.
22456
22457 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
22458
22459 Fix PR tree-optimization/29922
22460 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
22461 (get_representative): Removed.
22462 (value_dies_in_block_x): Update for rvuse removal.
22463 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
22464 (compute_antic_aux): Handle when PHI nodes appear in
22465 non-single-successors.
22466 (dump_bitmap_of_names): Removed.
22467 (compute_antic_safe): Renamed and removed rvuse calculation.
22468 Calculate only antic safe.
22469 (insert_into_preds_of_block): Remove assert.
22470 (execute_pre): Update for renamed functions.
22471 (defer_or_phi_translate_block): New function.
22472
22473 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
22474
22475 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
22476 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
22477 typos.
22478 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
22479 Follow spelling conventions.
22480
22481 * tree-data-ref.h: Remove the prototype for analyze_array.
22482
22483 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
22484
22485 PR tree-optimization/31041
22486 * tree-vect-transform.c (get_initial_def_for_induction): Call
22487 force_gimple_operand.
22488
22489 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
22490
22491 * ipa-type-escape.c (look_for_casts) : Revert code to use
22492 handled_component_p due to ada test a-numaux.adb.
22493
22494 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
22495
22496 * final.c (final_scan_insn): Alter the condition of a
22497 conditional trap if we have nonstandard CC.
22498
22499 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
22500
22501 * configure.ac: Remove excess quoting from asm line 0 test.
22502 * configure: Rebuilt.
22503
22504 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22505
22506 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
22507 * c-common.c (convert_and_check): Move warning logic to...
22508 (warnings_for_convert_and_check): ...here. Define.
22509 * c-common.h (warnings_for_convert_and_check): Declare.
22510
22511 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22512
22513 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
22514 (output_call): Likewise.
22515
22516 2007-03-16 Richard Sandiford <richard@codesourcery.com>
22517
22518 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
22519
22520 2007-03-16 Richard Sandiford <richard@codesourcery.com>
22521
22522 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
22523
22524 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
22525
22526 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
22527 opteron, athlon-64 and athlon-fx processor_alias_table entries.
22528
22529 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
22530
22531 PR tree-optimization/31183
22532 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
22533 Use double_int instead of unsigned int for representing access_strides.
22534 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
22535
22536 2007-03-16 Richard Guenther <rguenther@suse.de>
22537
22538 PR tree-optimization/31146
22539 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
22540 to allow recursion of forward_propagate_addr_expr.
22541 (forward_propagate_addr_into_variable_array_index): Likewise.
22542 (forward_propagate_addr_expr): Likewise.
22543 (tree_ssa_forward_propagate_single_use_vars): Likewise.
22544 (forward_propagate_addr_expr_1): Recurse on simple copies
22545 instead of propagating into them. Do so for useless conversions
22546 as well.
22547 (forward_propagate_addr_expr): Clean up unused statements after
22548 recursion.
22549
22550 2007-03-16 Richard Guenther <rguenther@suse.de>
22551
22552 * builtins.c (expand_builtin_cexpi): Use the right argument
22553 for the expansion via cexp.
22554
22555 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
22556
22557 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
22558 * configure: Rebuilt.
22559
22560 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
22561
22562 PR debug/29906
22563 * dwarf2out.c (force_type_die): Adjust comment.
22564 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
22565
22566 2007-03-15 DJ Delorie <dj@redhat.com>
22567
22568 * config/frv/predicates.md (minmax_operator): Don't check operands
22569 here.
22570
22571 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
22572
22573 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
22574 Update constant estimates of number of iterations.
22575 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
22576 argument renamed to "realistic".
22577 (compute_estimated_nb_iterations): Removed.
22578 (record_niter_bound): New function.
22579 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
22580 call record_nonwrapping_iv with upper = false.
22581 (infer_loop_bounds_from_signedness): Pass upper argument to
22582 record_nonwrapping_iv.
22583 (estimate_numbers_of_iterations_loop): Do not call
22584 compute_estimated_nb_iterations. Record estimate based on profile
22585 information. Initialize the constant estimates of number of
22586 iterations.
22587 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
22588 estimates.
22589 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
22590 number of iterations is too small.
22591 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
22592 (EST_NOT_AVAILABLE): Removed.
22593 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
22594 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
22595 fields.
22596
22597 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
22598
22599 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
22600 Handle NE_EXPR guards.
22601
22602 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22603
22604 PR c++/24924
22605 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
22606 Set also -pedantic-errors by default for the preprocessor unless
22607 -fpermissive is given.
22608
22609 2007-03-15 Richard Guenther <rguenther@suse.de>
22610
22611 PR middle-end/29719
22612 PR middle-end/31161
22613 * builtins.c (expand_builtin_cexpi): As a fallback if we
22614 don't have builtins for sincos or cexp create a function
22615 declaration for cexp and expand to a call to that.
22616 (expand_builtin_int_roundingfn): Always fall
22617 back to floor/ceil and its variants even if they may be
22618 not available.
22619
22620 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
22621
22622 PR middle-end/31159
22623 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
22624 jump tables, move the call to delete_dead_jumptables from here...
22625 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
22626 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
22627 don't allow merging of blocks that try_redirect_by_replacing_jump
22628 also does not handle when not optimizing.
22629
22630 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
22631 Francois-Xavier Coudert <coudert@clipper.ens.fr>
22632
22633 * config/i386/i386.md (x86_sahf_1): Correctly handle
22634 HAVE_AS_IX86_SAHF.
22635
22636 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
22637
22638 PR target/31167
22639 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
22640 x86_64_general_operand as operand[2] predicate. Remove "iF"
22641 from operand constraints and use "e" constraint instead.
22642 (*subti3_1, *subti3_1 splitter): Ditto.
22643 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
22644 operand[1] predicate.
22645
22646 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
22647
22648 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
22649 arrays, multiply the access strides by the size of the sub-array.
22650 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
22651
22652 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
22653
22654 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
22655 the configured assembler supports the sahf mnemonic.
22656 * configure: Regenerate.
22657 * config.in: Regenerate.
22658
22659 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
22660 emit "sahf" or ".byte\t0x9e" as asm template.
22661
22662 2007-03-14 Michael Meissner <michael.meissner@amd.com>
22663
22664 PR 31018
22665 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
22666 option to replace hard coded TARGET_xxx in md file.
22667 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
22668 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
22669 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
22670 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
22671 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
22672 (X86_TUNE_NOT_VECTORMODE): Ditto.
22673 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
22674 (TUNE_AVOID_VECTOR_DECODE): Ditto.
22675 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
22676 (TUNE_SLOW_IMUL_IMM8): Ditto.
22677 (TUNE_MOVE_M1_VIA_OR): Ditto.
22678 (TUNE_NOT_UNPAIRABLE): Ditto.
22679 (TUNE_NOT_VECTORMODE): Ditto.
22680
22681 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
22682 options.
22683
22684 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
22685 tuning options instead of hard coded TARGET_xxx.
22686 (fix ssemode peephole2's): Ditto.
22687 (imul peephole2's): Ditto.
22688 (movsi_or): Ditto.
22689 (movdi_or_rex64): Ditto.
22690 (move peephole2): Ditto.
22691 (not peephole2's): Ditto.
22692
22693 2007-03-14 Dirk Mueller <dmueller@suse.de>
22694
22695 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
22696 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
22697 * c-parser.c (c_parser_if_body): Always add an empty statement in case
22698 of empty body.
22699 * c-parser.c (c_parser_do_statement): Warn about empty body in
22700 do/while statement.
22701 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
22702 * doc/invoke.texi (-Wempty-body): Update documentation.
22703
22704 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22705
22706 PR c/21438
22707 * c-common.h (warn_for_div_by_zero): Declare.
22708 * c-common.c (warn_for_div_by_zero): Define.
22709 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
22710 warning.
22711
22712 2007-03-14 Richard Sandiford <richard@codesourcery.com>
22713
22714 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
22715 to PREFIX and STANDARD_PREFIX.
22716
22717 2007-03-14 Richard Sandiford <richard@codesourcery.com>
22718 Phil Edwards <phil@codesourcery.com>
22719
22720 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
22721 (__gthread_once_t): Remove busy field for RTPs.
22722 (__GTHREAD_ONCE_INIT): Update accordingly.
22723
22724 2007-03-14 Richard Sandiford <richard@codesourcery.com>
22725
22726 * doc/invoke.texi: Document VxWorks options.
22727
22728 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
22729
22730 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
22731
22732 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
22733
22734 PR tree-optimization/30590
22735 * tree-nrv.c (tree_nrv): Check for the partial update of the
22736 return value.
22737
22738 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
22739
22740 * flags.h (flag_random_seed): Remove declaration, in favor of...
22741 * toplev.h (get_random_seed, set_random_seed): ... these.
22742 * tree.c (get_file_function_name): Use the former.
22743 * opts.c (common_handle_option): Use the latter.
22744 * toplev.c
22745
22746 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
22747
22748 PR middle-end/31127
22749 * cse.c (cse_find_path): Do not bail out if a basic block that
22750 we already visited now becomes part of a path that starts at a
22751 different basic block. Just disallow this, to make sure we
22752 visit each basic block at most once.
22753
22754 2007-03-13 Jan Hubicka <jh@suse.cz>
22755
22756 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
22757 attributes, when profile esitmate is present, calls with very low
22758 frequency are cold.
22759
22760 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
22761
22762 PR tree-optimization/30730
22763 PR tree-optimization/26900
22764 * tree-ssa-loop-niter.c: Include gmp.h.
22765 (bounds): New type.
22766 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
22767 split_to_var_and_offset, determine_value_range,
22768 bound_difference_of_offsetted_base, refine_bounds_using_guard,
22769 bound_difference, bounds_add, bounds_negate,
22770 number_of_iterations_ne_max, dump_affine_iv): New functions.
22771 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
22772 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
22773 difference of initial and final value of control iv to validate
22774 results.
22775 (number_of_iterations_cond): Add loop parameter. Determine bounds
22776 on the difference of the extremes of the control iv. Add dumps.
22777 (expand_simple_operations): Handle phi nodes.
22778 (simplify_using_initial_conditions): Do not record used conditions.
22779 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
22780 Do not set additional_info.
22781 (implies_nonnegative_p, implies_ge_p): Removed.
22782 (derive_constant_upper_bound): Do not use parameter `additional'.
22783 (record_estimate): Parameter `additional' removed. Parameter
22784 `i_bound' added. Do not call derive_constant_upper_bound.
22785 (record_nonwrapping_iv): Use derive_constant_upper_bound to
22786 bound the number of iterations estimate.
22787 (estimate_numbers_of_iterations_loop): Pass the estimate from
22788 the number of iterations analysis to record_estimate.
22789 * tree.h (multiple_of_p): Declare.
22790 * tree-scalar-evolution.c (expression_expensive_p): Removed.
22791 (scev_const_prop): Do not check expression_expensive_p.
22792 * fold-const.c (multiple_of_p): Exported.
22793 * double-int.c (double_int_mask): Exported.
22794 * double-int.h (double_int_mask): Declare.
22795 * tree-flow.h (struct tree_niter_desc): Removed additional_info
22796 field. Added max field.
22797
22798 2007-03-13 David Taylor <taylor@candd.org>
22799
22800 PR driver/12448:
22801 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
22802 default -MQ.
22803
22804 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22805
22806 PR target/31123
22807 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
22808 two unamed patterns.
22809
22810 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
22811
22812 * config/i386/i386.opt (mcx16, msahf): New options.
22813 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
22814 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
22815
22816 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
22817 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
22818 Output -mcx16 and -msahf options when corresponding bit is set.
22819
22820 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
22821 and -msahf options.
22822
22823 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
22824
22825 * configure.ac: Test for assembler tolerance to # 0 "".
22826 * configure, config.in: Rebuilt.
22827 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
22828
22829 2007-03-13 Geoffrey Keating <geoffk@apple.com>
22830
22831 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
22832
22833 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
22834 (handle_syscall): Handle direct system calls.
22835 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
22836
22837 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
22838
22839 * doc/invoke.texi: Fix cpp.info cross-reference.
22840 * doc/passes.texi: Fix gcc.info cross-reference.
22841
22842 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
22843
22844 PR tree-optimization/30835
22845 * lambda-code.c (can_convert_to_perfect_nest): Check whether
22846 bb_for_stmt is not NULL before accessing it.
22847
22848 2007-03-12 Joseph Myers <joseph@codesourcery.com>
22849
22850 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
22851 some multilibs.
22852
22853 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
22854
22855 PR 30635
22856 * doc/install.texi: Document --enable-stage1-languages
22857
22858 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
22859
22860 * tree-pass.h (pass_into_cfg_layout_mode,
22861 pass_outof_cfg_layout_mode): Declare.
22862 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
22863 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
22864 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
22865 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
22866
22867 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
22868
22869 * c-decl.c (warn_variable_length_array): New function.
22870 Refactored from grokdeclarator to handle warn_vla
22871 and handle unnamed array case.
22872 (grokdeclarator): Refactored VLA warning case.
22873 * c.opt (Wvla): New flag.
22874 * doc/invoke.texi (Wvla): New warning.
22875
22876 2007-03-12 Richard Henderson <rth@redhat.com>
22877
22878 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
22879 (TARGET_SECTION_TYPE_FLAGS): New.
22880
22881 2007-03-12 Richard Henderson <rth@redhat.com>
22882
22883 * config/darwin.c (machopic_reloc_rw_mask): New.
22884 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
22885 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
22886
22887 2007-03-12 Mark Mitchell <mark@codesourcery.com>
22888
22889 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
22890 * cppdefault.h (cpp_PREFIX): Document.
22891 (cpp_PREFIX_len): Likewise.
22892 (cpp_EXEC_PREFIX): New variable.
22893 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
22894 * c-incpath.c (add_standard_paths): Correct logic for relocating
22895 paths within prefix.
22896
22897 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
22898
22899 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
22900 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
22901 mode macro.
22902 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
22903 fix_truncdfdi_sse using SSEMODEF mode macro.
22904 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
22905 fix_truncdfsi_sse using SSEMODEF mode macro.
22906 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
22907 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
22908
22909 2007-03-12 Richard Sandiford <richard@codesourcery.com>
22910
22911 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
22912 elfos.h to tm_file.
22913
22914 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
22915
22916 * tree.h : Add multiple_of_p declaration.
22917 * fold-const.c (multiple_of_p): Make multiple_of_p public.
22918 * ipa-type-escape.c (results_of_malloc): Redundant.
22919 (visited_stmts): New. Visited stmt for walk_use_def_chains.
22920 (cast_type): Extended with new members.
22921 (check_cast): Returns cast_type.
22922 (cast): New structure for data of walk_use_def_chains.
22923 (is_malloc_result, is_cast_from_non_pointer_1,
22924 is_cast_from_non_pointer,
22925 is_array_access_through_pointer_and_index): New functions.
22926 (look_for_casts): Returns cast types.
22927 (check_call): Returns void.
22928 (okay_pointer_operation): Use support of pointer plus index,
22929 pointer plus constant and allow all multiplications.
22930
22931 2007-03-11 Richard Guenther <rguenther@suse.de>
22932
22933 PR tree-optimization/31115
22934 * tree-vrp.c (extract_range_from_binary_expr): Make sure
22935 the shift count is positive and non-anti-range for RSHIFT_EXPR.
22936 A shift count of zero is not special as with *_DIV_EXPR.
22937 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
22938 direction.
22939
22940 2007-03-11 Ian Lance Taylor <iant@google.com>
22941
22942 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
22943 the *_DIV_EXPR codes correctly with overflow infinities.
22944
22945 2007-03-11 Ira Rosen <irar@il.ibm.com>
22946
22947 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
22948 indicate success/failure of the analysis. Add negation to subtrahend
22949 in case of subtraction. Fail if both operands contain constants.
22950 (create_data_ref): Fail if analyze_offset fails.
22951
22952 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
22953
22954 * config/i386/i386.md (frndintxf2): Rename to ...
22955 (rintxf2): ... this. Remove expander having same name.
22956 (rintsf2, rintdf2): Implement using SSEMODEF macro.
22957 (roundsf2, rounddf2): Ditto.
22958 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
22959 (lround<mode>di2, lround<mode>si2): Ditto.
22960
22961 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
22962
22963 * lower-subreg.c: Include except.h.
22964 (decompose_multiword_subregs): Verify that the only control flow
22965 insns we can split are loads to multi-words pseudos.
22966 Handle breaking such blocks after splitting, instead of calling
22967 find_many_sub_basic_blocks.
22968
22969 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
22970 on the new basic block. Add a lengthy comment explaining why we
22971 thought this was necessary.
22972 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
22973
22974 2007-03-10 Mark Mitchell <mark@codesourcery.com>
22975
22976 PR c++/30924
22977 * tree.c (walk_type_fields): Recurse into the element type of
22978 ARRAY_TYPEs if there is a pointer set.
22979
22980 2007-03-10 Dirk Mueller <dmueller@suse.de>
22981
22982 * c-common.c (warn_logical_operator): Fix condition.
22983
22984 2007-03-10 Tobias Schl�ter <tobi@gcc.gnu.org>
22985
22986 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
22987 quotation mark.
22988 * config/darwin.c (machopic_select_section): Remove superfluous
22989 argument in call to categorize_decl_for_section. Remove unused
22990 variable shlib.
22991
22992 2007-03-10 Joseph Myers <joseph@codesourcery.com>
22993
22994 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
22995 defined.
22996 * configure: Regenerate.
22997
22998 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
22999
23000 PR target/31101
23001 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
23002 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
23003 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
23004 Add LABEL_NUSES to emitted label.
23005 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
23006 branch probability value to emitted jump insn.
23007 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
23008 Do not check life information and do not re-arrange input operands
23009 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
23010
23011 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
23012
23013 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
23014 the change of decode_asm_operands.
23015
23016 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
23017
23018 * mode-switching.c (create_pre_exit): Skip blockage insn.
23019
23020 2007-03-09 Diego Novillo <dnovillo@redhat.com>
23021
23022 * tree-pass.h (TODO_update_smt_usage): Remove.
23023 Update all users.
23024 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
23025 argument SOME.
23026 Update all users.
23027
23028 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23029
23030 * pa.c (attr_length_call): Revise condition for long
23031 pc-relative branch.
23032 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
23033 local calls on the SOM target. Don't use "LONG_PIC_PCREL" call
23034 sequence on SOM target.
23035
23036 2007-03-09 Geoffrey Keating <geoffk@apple.com>
23037
23038 * gcc.c: Document %{, in big comment at top.
23039 (input_suffix_matches): Remove special handling for .s and
23040 .S.
23041 (input_spec_matches): New.
23042 (handle_braces): Handle %{,.
23043 (validate_switches): ',' indicates a value which is not a switch.
23044 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
23045 to detect assembler input.
23046 * config/i386/sol2.h (CPP_SPEC): Likewise.
23047 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23048 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23049 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
23050 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23051 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
23052 -m64 causes deployment target to default to 10.5.
23053 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
23054
23055 2007-03-09 Richard Henderson <rth@redhat.com>
23056
23057 PR target/26090
23058 * target.h (targetm.asm.out.reloc_rw_mask): New.
23059 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
23060 (TARGET_ASM_OUT): Use it.
23061 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
23062 * varasm.c (categorize_decl_for_section): Remove shlib argument;
23063 use the new reloc_rw_mask target hook instead.
23064 (default_section_type_flags_1): Merge into...
23065 (default_section_type_flags): ... here.
23066 (decl_readonly_section_1): Merge into...
23067 (decl_readonly_section): ... here.
23068 (default_elf_select_section_1): Merge into...
23069 (default_elf_select_section): ... here.
23070 (default_unique_section_1): Merge into...
23071 (default_unique_section): ... here.
23072 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
23073 (default_select_rtx_section): Use it.
23074 (default_elf_select_rtx_section): Likewise.
23075 * output.h: Update to match.
23076 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
23077 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
23078 (TARGET_ASM_RELOC_RW_MASK): New.
23079 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
23080 to categorize_decl_for_section.
23081 (x86_64_elf_unique_section): Likewise.
23082 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
23083 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
23084 (TARGET_ASM_RELOC_RW_MASK): New.
23085 * config/ia64/ia64.c (ia64_rwreloc_select_section,
23086 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
23087 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
23088 (TARGET_RWRELOC): Remove.
23089 (ia64_section_type_flags): Adjust call to default_section_type_flags.
23090 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
23091 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
23092 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
23093 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
23094 (rs6000_xcoff_select_section): Use decl_readonly_section.
23095 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
23096 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
23097 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
23098 (TARGET_SECTION_TYPE_FLAGS): Remove.
23099 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
23100
23101 2007-03-09 Roger Sayle <roger@eyesopen.com>
23102
23103 * fold-const.c (fold_comparison): Remove compile-time evaluation of
23104 complex constant equality/inequality comparisons for here.
23105 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
23106 known at compile-time or can be simplified to a scalar comparison.
23107 (fold_relational_const): Move compile-time evaluation of complex
23108 constant equality/inequality comparisons to here.
23109
23110 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23111
23112 PR rtl-optimization/30643
23113 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
23114 dest_addr_elt.
23115 (fold_rtx): Recurse, like before 2006-11-03.
23116
23117 2007-03-09 DJ Delorie <dj@redhat.com>
23118
23119 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
23120 m32c-pragma.o.
23121
23122 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
23123
23124 PR tree-optimization/30375
23125 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
23126 LHS of statements is not the same.
23127 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
23128
23129 2007-03-09 Chao-ying Fu <fu@mips.com>
23130
23131 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
23132 REV 2.
23133 * doc/invoke.texi (-mdspr2): Document new option.
23134 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
23135 New unspec for DSP REV 2.
23136 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
23137 these instructions are extended in DSP REV 2.
23138 (mips-dspr2.md): Include.
23139 * config/mips/mips.opt (mdspr2): New option.
23140 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
23141 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
23142 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
23143 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
23144 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
23145 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
23146 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
23147 and 2 builtins.
23148 (bdesc_map): Add one field of unsupported_target_flags.
23149 (bdesc_arrays): Update entries to have extra fields. Add
23150 dsp_32only_bdesc.
23151 (mips_init_builtins): Initialize new function types.
23152 Check unsupported_target_fileds to filter out builtins.
23153 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
23154 TARGET_DSPR2.
23155 (ASM_SPEC): Pass mdspr2 to the assembler.
23156 * config/mips/mips-dspr2.md: New file.
23157
23158 2007-03-09 Sa Liu <saliu@de.ibm.com>
23159
23160 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
23161
23162 2007-03-09 Ian Lance Taylor <iant@google.com>
23163
23164 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
23165 argument) like -Wstrict-overflow=2.
23166 * doc/invoke.texi (Warning Options): Update documentation.
23167
23168 2007-03-09 Dirk Mueller <dmueller@suse.de>
23169
23170 PR c++/17946
23171 * doc/invoke.texi (-Wlogical-op): Document.
23172 * common.opt (-Wlogical-op): New.
23173 * c-common.h (warn_logical_operator): Declare.
23174 * c-common.c (warn_logical_operator): Define.
23175 * c-typeck.c (parser_build_binary_op): Call
23176 warn_logical_operator.
23177
23178 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23179
23180 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
23181 * final.c (final_scan_insn): Test for non-"" file name.
23182
23183 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
23184
23185 * doc/loop.texi: Document the Omega linear constraints solver.
23186 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
23187 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
23188 omega-hash-table-size, omega-max-keys, and
23189 omega-eliminate-redundant-constraints.
23190 * tree-pass.h (pass_check_data_deps): Declared.
23191 * omega.c: New.
23192 * omega.h: New.
23193 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
23194 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
23195 pass_check_data_deps): New.
23196 * tree-data-ref.c (init_data_ref): Remove declaration.
23197 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
23198 (analyze_array): Renamed init_array_ref, move up initializations.
23199 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
23200 Removed arguments that are set to NULL.
23201 (analyze_indirect_ref): Correct indentation, correct call to
23202 init_pointer_ref.
23203 (object_analysis): Call init_array_ref instead of analyze_array.
23204 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
23205 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
23206 of DR_ACCESS_FNS_ADDR.
23207 (init_omega_eq_with_af, omega_extract_distance_vectors,
23208 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
23209 ddr_consistent_p): New.
23210 (compute_affine_dependence): Check consistency of ddrs when
23211 flag_check_data_deps is passed.
23212 (analyze_all_data_dependences): Uncomment.
23213 (tree_check_data_deps): New.
23214 * tree-data-ref.h: Include omega.h.
23215 (DR_ACCESS_FNS_ADDR): Removed.
23216 (data_dependence_relation): Add inner_loop.
23217 (DDR_INNER_LOOP): New.
23218 * common.opt (fcheck-data-deps): New.
23219 * tree-flow.h (tree_check_data_deps): Declare.
23220 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
23221 (OBJS-common): Depend on omega.o.
23222 (omega.o): Define.
23223 * passes.c (pass_check_data_deps): Scheduled.
23224 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
23225 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
23226 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
23227 PARAM_VECT_MAX_VERSION_CHECKS,
23228 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
23229
23230 2007-03-09 Richard Guenther <rguenther@suse.de>
23231
23232 PR tree-optimization/30904
23233 PR middle-end/31058
23234 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
23235 the same way as *_DIV_EXPR.
23236
23237 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23238
23239 * recog.c (decode_asm_operands): No mixed declarations and code.
23240
23241 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
23242
23243 * rtl.def (ASM_INPUT): Add location.
23244 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
23245 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
23246 (decode_asm_operands): Add loc operand.
23247 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
23248 * stmt.c (expand_asm): Rename to...
23249 (expand_asm_loc): ... this. Add locus argument. Pass it on to
23250 gen_rtx_ASM_INPUT_loc.
23251 (expand_asm_expr): Adjust.
23252 * recog.c (decode_asm_operands): Add loc operand.
23253 (check_asm_operands, extract_insn): Adjust.
23254 * reload1.c (maybe_fix_stack_asms): Likewise.
23255 * final.c (asm_insn_count): Likewise.
23256 (final_scan_insn): Output # line before and after asm.
23257
23258 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
23259
23260 * tree-ssa-structalias.c (variable_info): Remove
23261 finished_solution.
23262 (new_var_info): Ditto.
23263 (shared_bitmap_info_t): New structure.
23264 (shared_bitmap_table): New variable.
23265 (shared_bitmap_hash): New function.
23266 (shared_bitmap_eq): Ditto
23267 (shared_bitmap_lookup): Ditto.
23268 (shared_bitmap_add): Ditto.
23269 (merge_smts_into): Change to take bitmap directly.
23270 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
23271 (init_alias_vars): Init shared bitmap hashtable.
23272 (delete_points_to_sets): Delete shared bitmap hashtable.
23273 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
23274 is_aliased removal as a change that was still necessary was
23275 deleted.
23276
23277 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
23278
23279 * config/i386/i386.h (override_options): Conditionally disable
23280 x86_sahf for 64bit targets only.
23281
23282 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
23283
23284 PR C/31072
23285 * c-decl.c (merge_decls): Don't call make_var_volatile.
23286 * varasm.c (make_var_volatile): Remove.
23287 * output.h (make_var_volatile): Remove.
23288
23289 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
23290
23291 PR tree-optimization/31085
23292 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
23293
23294 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23295
23296 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
23297 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
23298 ATTR_CONST_NOTHROW_LIST.
23299
23300 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
23301 FIX_TRUNC_EXPR.
23302
23303 2007-03-08 Diego Novillo <dnovillo@redhat.com>
23304
23305 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
23306
23307 2007-03-08 Geoffrey Keating <geoffk@apple.com>
23308
23309 PR 31013
23310 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
23311 is declared.
23312 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
23313 passed, use shared libgcc.
23314
23315 2007-03-08 Roger Sayle <roger@eyesopen.com>
23316
23317 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
23318 instead of calling build2 with a GIMPLE_MODIFY_STMT.
23319 (honor_protect_cleanup_actions, lower_try_finally_switch):
23320 Likewise.
23321 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
23322 ifc_temp_var): Likewise.
23323 * tree-inline.c (setup_one_parameter): Likewise.
23324 * tree-mudflap.c (mf_decl_cache_locals,
23325 mf_build_check_statement_for): Likewise.
23326 * tree-nested.c (init_tmp_var, save_tmp_var,
23327 finalize_nesting_tree_1): Likewise.
23328 * tree-outof-ssa.c (insert_copy_on_edge,
23329 insert_backedge_copies): Likewise.
23330 * tree-profile.c (tree_gen_edge_profiler,
23331 tree_gen_ic_profiler): Likewise.
23332 * tree-scalar-evolution.c (scev_const_prop): Likewise.
23333 * tree-sra.c (sra_build_assignment): Likewise.
23334 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
23335 * tree-ssa-math-opts.c (insert_reciprocals,
23336 execute_cse_sincos_1): Likewise.
23337 * tree-tailcall.c (adjust_accumulator_values,
23338 adjust_return_value): Likewise.
23339 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
23340 * tree-vect-transform.c (vect_create_data_ref_ptr,
23341 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
23342 vect_create_epilog_for_reduction, vectorizable_reduction,
23343 vectorizable_call, vectorizable_conversion,
23344 vectorizable_assignment, vectorizable_operation,
23345 vectorizable_type_demotion, vect_gen_widened_results_half,
23346 vect_permute_store_chain, vectorizable_store,
23347 vect_setup_realignment, vect_permute_load_chain,
23348 vectorizable_load, vectorizable_condition,
23349 vect_create_cond_for_align_checks): Likewise.
23350 * tree-vrp.c (build_assert_expr_for): Likewise.
23351
23352 2007-03-08 Ian Lance Taylor <iant@google.com>
23353
23354 * tree-vrp.c: Include "intl.h".
23355 (usable_range_p): New static function.
23356 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
23357 overflowed values, juts set *strict_overflow_p.
23358 (compare_values): Only return -2 if one of the operands is not a
23359 constant.
23360 (compare_ranges): Call usable_range_p.
23361 (compare_range_with_value): Likewise.
23362 (vrp_evaluate_conditional_warnv): Rename from
23363 vrp_evaluate_conditional. Make static. Change all callers.
23364 (vrp_evaluate_conditional): New function.
23365 (simplify_div_or_mod_using_ranges): Issue warning about reliance
23366 on signed overflow.
23367 (simplify_abs_using_ranges): Likewise.
23368 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
23369 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
23370 within_stmt parameter.
23371 * tree-ssa-propagate.c (fold_predicate_in): Update call to
23372 vrp_evaluate_conditional.
23373 * tree-ssa-threadedge.c
23374 (record_temporary_equivalences_from_stmts_at_dest): Change
23375 simplify parameter to take a second tree parameter.
23376 (simplify_control_stmt_condition): Likewise.
23377 (thread_across_edge): Likewise.
23378 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
23379 (thread_across_edge): Likewise.
23380 * Makefile.in (tree-vrp.o): Depend upon intl.h.
23381
23382 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
23383
23384 * config/i386/i386.h (TARGET_SAHF): New define.
23385 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
23386 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
23387 (x86_sahf): New global variable.
23388 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
23389 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
23390 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
23391 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
23392 for 64-bit.
23393 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
23394 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
23395 when expanding fcomi/sahf based tests.
23396 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
23397 expanding sahf based alternative. Emit sahf based sequence when
23398 optimizing for code size.
23399 * config/i386/i386.md (x86_sahf_1): Do not disable for
23400 TARGET_64BIT, enable for TARGET_SAHF.
23401
23402 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
23403
23404 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
23405 spurious whitespace from error message.
23406
23407 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
23408
23409 PR c++/30852
23410 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
23411
23412 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
23413
23414 * c-decl.c (grokdeclarator): Disable warnings for anonymous
23415 bitfields.
23416 * tree-sra.c (instantiate_element): Propagate disabled warnings
23417 from the element itself to the created variable.
23418
23419 2007-03-07 Richard Henderson <rth@redhat.com>
23420
23421 PR target/30848
23422 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
23423 silently fix up the stack in the case of a missing register.
23424
23425 2007-03-07 Paul Brook <paul@codesourcery.com>
23426
23427 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
23428
23429 2007-03-07 Joseph Myers <joseph@codesourcery.com>
23430
23431 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
23432 New.
23433 (phase1_vrs): Use them.
23434 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
23435 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
23436 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
23437 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
23438 __gnu_Unwind_Restore_WMMXC if required.
23439 (_Unwind_VRS_Pop): Implement iWMMXt support.
23440 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
23441 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
23442 gnu_Unwind_Save_WMMXC): Define.
23443
23444 2007-03-07 Richard Sandiford <richard@codesourcery.com>
23445
23446 * config/vxworks.h (vxworks_override_options): Declare.
23447 (VXWORKS_OVERRIDE_OPTIONS): Use it.
23448 * config/vxworks.c: Include target.h and toplev.h.
23449 (vxworks_override_options): New function.
23450 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
23451
23452 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
23453
23454 * config/s390/s390.c (override_options): Don't emit an error when
23455 -mstack-size is used without providing -mstack-guard.
23456 (s390_emit_prologue): Choose stack_guard value automatically if not
23457 provided via command line.
23458 * doc/invoke.texi: Adjust description of -mstack-guard and
23459 -mstack-size.
23460
23461 2007-03-07 Richard Sandiford <richard@codesourcery.com>
23462
23463 * config/i386/i386.c (output_set_got): Add a GOT initialization
23464 sequence for VxWorks PIC.
23465 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
23466 around labels as well as symbols. Use gotoff_operand instead
23467 of local_symbolic_operand.
23468 (legitimize_pic_address): Use gotoff_operand instead of
23469 local_symbolic_operand. Use @GOT accesses for labels as
23470 well as symbols.
23471 (ix86_output_addr_diff_elt): Use PC-relative rather than
23472 GP-relative offsets for VxWorks PIC.
23473 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
23474 no_new_pseudos. Check whether the returned register is op0.
23475 * config/i386/i386.md (tablejump): Use PC-relative rather than
23476 GP-relative offsets for VxWorks PIC.
23477 * config/i386/predicates.md (gotoff_operand): New predicate.
23478
23479 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23480
23481 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
23482 before defining.
23483 * config/vxworks-dummy.h: New file.
23484 * config/i386/i386.h: Include it.
23485
23486 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
23487
23488 * dwarf2out.c (is_inlined_entry_point): New
23489 (add_high_low_attributes): Emit DW_AT_entry_pc along with
23490 DW_AT_ranges if the first subblock is the entry point.
23491
23492 2007-03-06 David Daney <ddaney@avtrex.com>
23493
23494 * doc/install.texi (mips-*-*): Change recommended binutils
23495 version.
23496
23497 2007-03-06 Anatoly Sokolov <aesok@post.ru>
23498
23499 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
23500 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
23501 devices.
23502 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
23503 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
23504
23505 2007-03-06 Jan Hubicka <jh@suse.cz>
23506
23507 * errors.h (warning, error, fatal, internal_error): Mark as cold.
23508 * predict.c (maybe_hot_bb): Cold functions are never hot; hot
23509 functions are hot.
23510 (probably_cold_bb_p): Cold functions are cold.
23511 (probably_never_executed_bb_p): Cold functions are cold.
23512 (tree_bb_level_predictions): Predict calls to cold functions as not
23513 taken.
23514 (compute_function_frequency): Check hot/cold attributes.
23515 * function.h (function_frequency): Update comments.
23516 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
23517 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
23518 (c_common_att): Add cold and hot.
23519
23520 * doc/extend.texi (hot,cold attributes): Document.
23521
23522 2007-03-06 Andrew Haley <aph@redhat.com>
23523
23524 * function.c (expand_function_end): Move blockage to just after we
23525 emit the label for the naked return from the function.
23526
23527 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23528
23529 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
23530 before redefining.
23531
23532 2007-03-06 Jan Hubicka <jh@suse.cz>
23533
23534 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
23535 loaded for constant large models. Non-large 64bit PIC can do.
23536 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
23537 * cmodel.h: Add LARGE PIC.
23538 * i386.md (UNSPEC_PLTOFF): New.
23539 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
23540 unspecs as needed.
23541 (*call_1_rex64): Disable for large models.
23542 (*call_1_rex64_large): New.
23543 (*call_value_1_rex64): Disable for large models.
23544 (*call_value_1_rex64_large): New.
23545 (set_rip_rex4): New.
23546 (set_got_offset_rex64): New.
23547 * predicates.md (constant_call_address_operand): For large model
23548 constant calls are not possible.
23549 * i386-protos.h (construct_plt_address): Declare.
23550 * i386.c (override_options): Accept large models.
23551 (ix86_expand_prologue): Expand large PIC GOT pointer load.
23552 (legitimate_constant_p): Add new UNSPECs.
23553 (legitimate_pic_operand_p): Likewise.
23554 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
23555 (legitimize_pic_address): Do easy RIP relative way for TLS only for
23556 non-large model.
23557 (output_pic_addr_const): Add PLTOFF.
23558 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
23559 (ix86_expand_move): Legitimize pic address when in PIC mode.
23560 (construct_plt_address): New function.
23561 (ix86_expand_call): Offload the address to register and use GOT
23562 pointer for large model.
23563 * invoke.texi (mcmodel=large): Update documentation.
23564
23565 2007-03-06 Richard Henderson <rth@redhat.com>
23566
23567 * config/i386/i386.c (x86_use_leave, x86_push_memory,
23568 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
23569 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
23570 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
23571 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
23572 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
23573 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
23574 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
23575 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
23576 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
23577 x86_partial_reg_dependency, x86_memory_mismatch_stall,
23578 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
23579 x86_sse_partial_reg_dependency, x86_sse_split_regs,
23580 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
23581 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
23582 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
23583 x86_schedule, x86_use_bt, x86_pad_returns,
23584 x86_use_xchgb): Merge into ...
23585 (ix86_tune_features): ... here. New array.
23586 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
23587 x86_bswap): Merge into ...
23588 (ix86_arch_features): ... here. New array.
23589 (x86_3dnow_a): Remove.
23590 (x86_accumulate_outgoing_args): Make static.
23591 (x86_arch_always_fancy_math_387): Make static.
23592 (ix86_tune_mask, ix86_arch_mask): Move ...
23593 (override_options): ... to local variables here. Apply the
23594 appropriate mask to each element of ix86_arch_features and
23595 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
23596 as were done in the old macros.
23597 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
23598 * config/i386/i386.h (x86_use_leave, x86_push_memory,
23599 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
23600 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
23601 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
23602 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
23603 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
23604 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
23605 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
23606 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
23607 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
23608 x86_partial_reg_dependency, x86_memory_mismatch_stall,
23609 x86_accumulate_outgoing_args, x86_prologue_using_move,
23610 x86_epilogue_using_move, x86_decompose_lea,
23611 x86_arch_always_fancy_math_387, x86_shift1,
23612 x86_sse_partial_reg_dependency, x86_sse_split_regs,
23613 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
23614 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
23615 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
23616 x86_use_incdec, x86_pad_returns, x86_bswap,
23617 x86_partial_flag_reg_stall): Remove.
23618 (enum ix86_tune_indices): New.
23619 (ix86_tune_features): New.
23620 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
23621 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
23622 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
23623 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
23624 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
23625 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
23626 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
23627 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
23628 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
23629 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
23630 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
23631 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
23632 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
23633 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
23634 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
23635 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
23636 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
23637 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
23638 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
23639 TARGET_EXT_80387_CONSTANTS): Use it.
23640 (enum ix86_arch_indices): New.
23641 (ix86_arch_features): New.
23642 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
23643 TARGET_BSWAP): Use it.
23644 (ix86_tune_mask, ix86_arch_mask): Remove.
23645
23646 2007-03-06 Joseph Myers <joseph@codesourcery.com>
23647
23648 PR bootstrap/31020
23649 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
23650 Define using $${sysroot_headers_suffix}.
23651 * configure: Regenerate.
23652 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
23653 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
23654 defined.
23655 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
23656 * gcc.c (print_sysroot_headers_suffix): New.
23657 (option_map): Include --print-sysroot-headers-suffix.
23658 (display_help): Mention -print-sysroot-headers-suffix.
23659 (process_command): Handle -print-sysroot-headers-suffix.
23660 (do_spec_1): Append multilib directory to include-fixed path if
23661 sysroot suffixes in use.
23662 (main): Handle -print-sysroot-headers-suffix.
23663 * Makefile.in (start.encap): Don't depend on xlimits.h
23664 (xlimits.h): Remove.
23665 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
23666 limits.h for each multilib in fixinc_list.
23667 (fixinc_list, s-fixinc_list): New.
23668 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
23669 generate them for each multilib in fixinc_list.
23670 (stmp-fixproto): Use include-fixed. Run fixproto for each
23671 multilib in fixinc_list.
23672 (mostlyclean): Don't remove xlimits.h.
23673 (clean): Remove include-fixed.
23674 (real-install-headers-tar, real-install-headers-cpio,
23675 real-install-headers-cp): Don't copy include, only include-fixed.
23676 (install-mkheaders): Depend on fixinc_list. Don't depend on
23677 xlimits.h. Save limits.h files for each multilib in fixinc_list.
23678 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
23679 SYSTEM_HEADER_DIR setting in mkheaders.conf.
23680
23681 2007-03-06 Jan Hubicka <jh@suse.cz>
23682
23683 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
23684 NANs easilly.
23685
23686 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23687
23688 * configure.ac: Allow tm_file to contain build-directory files.
23689 * configure: Regenerate.
23690 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
23691 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
23692 * config/m68k/print-sysroot-suffix.sh: New file.
23693
23694 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23695
23696 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
23697 of pic_offset_table_rtx if reload_completed.
23698 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
23699 PIC_OFFSET_TABLE_REGNUM.
23700 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
23701 return true.
23702 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
23703 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
23704
23705 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23706
23707 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
23708 functions that call eh_return.
23709
23710 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23711
23712 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
23713 functions that need a constant pool.
23714
23715 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23716
23717 PR target/28181
23718 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
23719 (m68k_preferred_reload_class): Likewise.
23720 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
23721 (SECONDARY_RELOAD_CLASS): Define.
23722 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
23723 (LIMIT_RELOAD_CLASS): Delete.
23724 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
23725 registers from storing bytes.
23726 (m68k_secondary_reload_class): New function.
23727 (m68k_preferred_reload_class): Likewise.
23728
23729 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23730
23731 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
23732 leaf functions.
23733 (m68k_expand_prologue): Likewise.
23734
23735 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23736
23737 * config/m68k/m68k-protos.h (output_sibcall): Declare.
23738 (mips_expand_epilogue): Add a bool parameter.
23739 (m68k_legitimize_sibcall_address): Declare.
23740 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
23741 (m68k_expand_epilogue): Add a parameter to select between sibling
23742 and normal epilogues. Only generate a return for the latter.
23743 (m68k_ok_for_sibcall_p): New function.
23744 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
23745 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
23746 (sibcall_value, *sibcall_value): Likewise.
23747 (*call, *call_value): Require !SIBLING_CALL_P.
23748 (epilogue): Update call to m68k_expand_epilogue.
23749 (sibcall_epilogue): New pattern.
23750 * config/m68k/predicates.md (const_call_operand): Say that this
23751 predicate applies to sibling calls too.
23752 (sibcall_operand): New predicate.
23753
23754 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23755
23756 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
23757 alternatives as movsi_cf.
23758 (movsf_cf_hard): Add commentary.
23759
23760 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
23761 Richard Sandiford <richard@codesourcery.com>
23762
23763 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
23764 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
23765 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
23766 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
23767 as being live on exit from an interrupt function.
23768 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
23769 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
23770 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
23771 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
23772 (m68k_interrupt_function_p): Globalize.
23773 (m68k_compute_frame_layout): Remove reverse mask code.
23774 (m68k_emit_movem, m68k_set_frame_related): New functions.
23775 (m68k_output_function_prologue): Delete in favor of...
23776 (m68k_expand_prologue): ...this new function.
23777 (m68k_output_function_epilogue): Delete in favor of...
23778 (m68k_expand_epilogue): ...this new function.
23779 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
23780 functions.
23781 (print_operand): Handle %?.
23782 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
23783 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
23784 (prologue, epilogue): New patterns.
23785 (return): Turn into a define_expand.
23786 (*return): New pattern, derived from old "return" pattern. Use rte
23787 rather than rts for interrupt functions. Only use rtd if the pop
23788 count is nonzero.
23789 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
23790 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
23791 (link, *link, unlink, *unlink, load_got): Likewise.
23792
23793 2007-03-06 Richard Sandiford <richard@codesourcery.com>
23794
23795 PR target/23482
23796 PR target/17114
23797 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
23798 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
23799 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
23800 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
23801 and m68k_matches_u_p.
23802 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
23803 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
23804 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
23805 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
23806 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
23807 (REG_STRICT_P): New macro.
23808 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
23809 PCREL_GENERAL_OPERAND_OK.
23810 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
23811 m68k_legitimate_base_reg_p.
23812 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
23813 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
23814 (PIC_CASE_VECTOR_ADDRESS): Update comment.
23815 * config/m68k/m68k.c (m68k_address): New structure.
23816 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
23817 (m68k_decompose_index, m68k_legitimate_constant_address_p)
23818 (m68k_jump_table_ref_p, m68k_decompose_address)
23819 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
23820 (m68k_matches_u_p): New functions.
23821 (print_operand_address): Rewrite to use m68k_decompose_index.
23822
23823 2007-03-05 David Taylor <dtaylor@emc.com>
23824
23825 * gcc.c: Correct copyright date in --version output.
23826
23827 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23828
23829 * pa.md: In unamed move patterns, disparge copies between general
23830 and floating point registers using '?' modifier. Don't include 'f'
23831 constraint for register preferences in DImode, SImode, HImode and
23832 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
23833 Remove constraints for copies between general and floating registers
23834 in soft-float DFmode pattern.
23835 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
23836 floating register.
23837 (movsf): Likewise.
23838
23839 2007-03-05 Mike Stump <mrs@apple.com>
23840
23841 * c-common.c (targetcm): Add.
23842 * c-opts.c (c_common_handle_option): Handle language specific
23843 target options.
23844 * opts.c (handle_option): Verify language for target options, if
23845 any are given.
23846 * opth-gen.awk: Add CL_LANG_ALL.
23847 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
23848 (TARGETCM_INITIALIZER): Add.
23849 * target.h (struct gcc_targetcm): Add.
23850 (targetcm): Add.
23851 * targhooks.c (default_handle_c_option): Add.
23852 * targhooks.h (default_handle_c_option): Add.
23853 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
23854
23855 * config/darwin.opt (iframework): Add.
23856 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
23857 * config/darwin-c.c (handle_c_option): Add.
23858 (TARGET_HANDLE_C_OPTION): Add.
23859 (targetcm): Add.
23860 * doc/invoke.texi (Darwin Options): Add -iframework.
23861
23862 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23863
23864 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
23865 conversion.
23866
23867 2007-03-05 Ian Lance Taylor <iant@google.com>
23868
23869 * c.opt (fgnu89-inline): New option.
23870 * c-opts.c (c_common_post_options): Set default value for
23871 flag_gnu89_inline.
23872 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
23873 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
23874 inline functions.
23875 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
23876 (grokdeclarator, start_function): Likewise.
23877 * c-cppbuiltin.c (c_cpp_builtins): Define either
23878 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
23879 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
23880 (C Dialect Options): Document -fgnu89-inline.
23881 * doc/extend.texi (Function Attributes): Explain what the
23882 gnu_inline attribute does.
23883 * doc/cpp.texi (Common Predefined Macros): Document
23884 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
23885
23886 2007-03-05 Ian Lance Taylor <iant@google.com>
23887
23888 PR tree-optimization/31034
23889 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
23890 half-range if the other side is an overflow infinity.
23891
23892 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
23893
23894 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
23895 (bfin*-linux-uclibc*): New configuration.
23896 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
23897 defining.
23898 * config/bfin/linux.h: New file.
23899 * config/bfin/libgcc-bfin.ver: New file.
23900 * config/bfin/t-bfin-uclinux: New file.
23901 * config/bfin/t-bfin-linux: New file.
23902 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
23903 (TARGET_OS_CPP_BUILTINS): New macro.
23904
23905 2007-03-05 Richard Guenther <rguenther@suse.de>
23906
23907 * fold-const.c (fold_binary): Remove duplicate folding
23908 of comparison of non-null ADDR_EXPR against null.
23909
23910 2007-03-05 Richard Guenther <rguenther@suse.de>
23911 Dorit Nuzman <dorit@il.ibm.com>
23912
23913 PR tree-optimization/26420
23914 * tree-vectorizer.c (vectorize_loops): Bail out early if there
23915 are no loops in the function. Only print the number of
23916 vectorized loops if it is greater than zero or we are supposed
23917 to print information about unvectorized loops.
23918
23919 2007-03-05 Revital Eres <eres@il.ibm.com>
23920
23921 * gcc.dg/var-expand1.c: New test.
23922 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
23923 when an accumulator is expanded.
23924
23925 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23926
23927 PR other/30465
23928 * c-common.c (convert_and_check): Don't give warnings for
23929 conversion if 'expr' already overflowed.
23930
23931 2007-03-04 Roger Sayle <roger@eyesopen.com>
23932
23933 PR middle-end/30744
23934 * fold-const.c (fold_comparison): Enforce type consistency when
23935 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
23936
23937 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
23938
23939 * tree-ssa-address.c (create_mem_ref): Do not put an expression
23940 containing a cast to the base of TARGET_MEM_REF.
23941
23942 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
23943
23944 * tree.c (tree_contains_struct_check_failed): Remove spurious
23945 whitespace from error message.
23946
23947 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
23948
23949 PR target/30406
23950 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
23951 instead of precision.
23952
23953 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
23954 Nathan Sidwell <nathan@codesourcery.com>
23955
23956 * emit-rtl.c (find_auto_inc): New.
23957 (try_split): recreate REG_INC notes,
23958 Use regular for loops rather than whiles.
23959
23960 2007-03-03 Andreas Schwab <schwab@suse.de>
23961
23962 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
23963 * configure: Regenerate.
23964
23965 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23966
23967 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
23968 flag_rounding_math, not flag_unsafe_math_optimizations.
23969
23970 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
23971 fold_build2.
23972 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
23973 alpha_fold_vector_minmax): Likewise.
23974 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
23975 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
23976
23977 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
23978
23979 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
23980 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
23981 if the lhs has side-effects.
23982 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
23983
23984 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
23985
23986 * config/i386/i386.h (TUNEMASK): Remove define.
23987 (ARCHMASK): Remove define.
23988 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
23989 Use ix86_arch_mask variable instead of ARCHMASK.
23990 * config/i386/i386.c (override_options): Ditto.
23991 (standard_80387_constant_p): Ditto.
23992
23993 2007-03-02 Ian Lance Taylor <iant@google.com>
23994
23995 Used signed infinities in VRP.
23996 * tree-vrp.c (uses_overflow_infinity): New static function.
23997 (supports_overflow_infinity): New static function.
23998 (make_overflow_infinity): New static function.
23999 (negative_overflow_infinity): New static function.
24000 (positive_overflow_infinity): New static function.
24001 (is_negative_overflow_infinity): New static function.
24002 (is_positive_overflow_infinity): New static function.
24003 (is_overflow_infinity): New static function.
24004 (overflow_infinity_range_p): New static function.
24005 (compare_values_warnv): New function split out of compare_values.
24006 (compare_value): Call it.
24007 (set_value_range_to_nonnegative): Add overflow_infinity
24008 parameter. Change caller.
24009 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
24010 Change callers.
24011 (vrp_expr_computes_nonzero): Likewise.
24012 (compare_ranges, compare_range_with_value): Likewise.
24013 (compare_name_with_value, compare_names): Likewise.
24014 (vrp_evaluate_conditional): Likewise.
24015 (set_value_range): Handle infinity
24016 (vrp_operand_equal_p, operand_less_p): Likewise.
24017 (extract_range_from_assert): Likewise.
24018 (vrp_int_const_binop): Likewise.
24019 (extract_range_from_binary_expr): Likewise.
24020 (extract_range_from_unary_expr): Likewise.
24021 (extract_range_from_comparison): Likewise.
24022 (extract_range_from_expr): Likewise.
24023 (dump_value_range): Likewise.
24024 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
24025 (test_for_singularity): Likewise.
24026 (vrp_int_const_binop): Remove inline qualifier.
24027 (adjust_range_with_scev): Add comment.
24028 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
24029
24030 2007-03-02 Diego Novillo <dnovillo@redhat.com>
24031
24032 * tree-ssa-structalias.c (could_have_pointers): Tidy.
24033 (get_constraint_for): Likewise.
24034 (do_structure_copy): Likewise.
24035 (find_func_aliases): Fix references to MODIFY_EXPR.
24036 (intra_create_variable_infos): Tidy.
24037 * tree-ssa-operands.c (add_virtual_operand): Add argument
24038 IS_CALL_SITE.
24039 When adding members of alias sets, if IS_CALL_SITE is true and
24040 the symbol is not call-clobbered, skip it.
24041 Adjust all callers.
24042
24043 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
24044
24045 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
24046 entry by means of emit_insn_at_entry.
24047
24048 2007-03-02 Richard Henderson <rth@redhat.com>
24049
24050 * expr.h (promoted_input_arg): Remove decl.
24051 * function.c (promoted_input_arg): Merge into ...
24052 * combine.c (setup_incoming_promotions): ... only caller.
24053 Rearrange to avoid double loop.
24054
24055 2007-03-02 Ben Elliston <bje@au.ibm.com>
24056 Peter Bergner <bergner@vnet.ibm.com>
24057 Janis Johnson <janis187@us.ibm.com>
24058
24059 * config/rs6000/dfp.md: New file.
24060 * config/rs6000/rs6000.md: Include dfp.md.
24061 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
24062 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
24063 and TDmode decimal float modes in FP registers.
24064 (num_insns_constant): Likewise.
24065 (rs6000_legitimate_offset_address_p): Likewise.
24066 (rs6000_legitimize_address): Likewise.
24067 (rs6000_legitimize_reload_address): Likewise.
24068 (rs6000_legitimate_address): Likewise.
24069 (rs6000_emit_move): Likewise.
24070 (function_arg_boundary): Likewise.
24071 (function_arg_advance): Likewise.
24072 (rs6000_darwin64_record_arg_recurse): Likewise.
24073 (function_arg): Likewise.
24074 (rs6000_gimplify_va_arg): Likewise.
24075 (rs6000_split_multireg_move): Likewise.
24076 (rs6000_output_function_epilogue): Likewise.
24077 (rs6000_output_function_epilogue): Likewise.
24078 (rs6000_register_move_cost): Likewise.
24079 (rs6000_function_value): Likewise.
24080 (rs6000_libcall_value): Likewise.
24081
24082 2007-03-02 Richard Sandiford <richard@codesourcery.com>
24083
24084 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
24085
24086 2007-03-02 Richard Sandiford <richard@codesourcery.com>
24087
24088 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
24089 Use $MULTIDIR to choose between the kernel and RTP headers,
24090 and use $WIND_BASE and $WIND_USR to locate them.
24091
24092 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
24093
24094 * config/i386/i386.c (override_options): Put initialization of
24095 ix86_tune_mask and ix86_arch_mask to the correct place.
24096
24097 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
24098 Michael Meissner <michael.meissner@amd.com>
24099
24100 PR target/31019
24101 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
24102 (ARCHMASK): Define.
24103 (TARGET_CMOVE): Use ARCHMASK.
24104 (TARGET_CMPXCHG): Ditto.
24105 (TARGET_CMPXCHG8B): Ditto.
24106 (TARGET_XADD): Ditto.
24107 (TARGET_BSWAP): Ditto.
24108 * config/i386/i386.c (ix86_tune_mask): New global variable.
24109 (ix86_arch_mask): Ditto.
24110 (override_options): Initialize ix86_tune_mask and
24111 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
24112 target_flags.
24113
24114 2007-03-02 Ben Elliston <bje@au.ibm.com>
24115
24116 PR 30992
24117 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
24118
24119 2007-03-02 Joseph Myers <joseph@codesourcery.com>
24120
24121 * target.h (init_dwarf_reg_sizes_extra): New target hook.
24122 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
24123 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
24124 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
24125 hook.
24126 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
24127 rs6000_init_dwarf_reg_sizes_extra): New.
24128 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
24129 SPE register high parts.
24130
24131 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
24132
24133 * Makefile.in: Add install-pdf target as
24134 copied from automake v1.10 rules.
24135 * configure.ac: Add install-pdf to target list.
24136 * configure: Regenerate.
24137
24138 2007-03-01 Paul Brook <paul@codesourcery.com>
24139
24140 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
24141 modes to LDRD for DImode.
24142 (output_move_double): Fixup out of range ldrd/strd.
24143 (vfp_secondary_reload_class): Rename...
24144 (coproc_secondary_reload_class): ... to this. Add wb argument.
24145 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
24146 coproc_secondary_reload_class for CLASS_IWMMXT.
24147 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
24148 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
24149
24150 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
24151
24152 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
24153 unroll factor by the estimated number of iterations.
24154 (loop_prefetch_arrays): Do not prefetch in loops that iterate less
24155 than prefetch latency.
24156
24157 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
24158 decode_caches_intel, detect_caches_intel): New functions.
24159 (host_detect_local_cpu): Use detect_caches_amd and
24160 detect_caches_intel.
24161
24162 2007-03-01 Richard Henderson <rth@redhat.com>
24163
24164 * expr.c (emit_move_complex_push): Export.
24165 (emit_move_complex_parts): Split out from ...
24166 (emit_move_complex): ... here.
24167 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
24168 * config/i386/i386.md (movcdi): New.
24169
24170 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
24171
24172 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
24173 size of mode1 to check for tieable modes in MMX case.
24174
24175 2007-03-01 Richard Sandiford <richard@codesourcery.com>
24176
24177 * Makefile.in (rtlanal.o): Depend on tree.h.
24178 * rtl.h (offset_within_section_p, split_const): Declare.
24179 * rtlanal.c: Include tree.h.
24180 (offset_within_block_p): New function, taken from
24181 mips_offset_within_object_p.
24182 (split_const): New function, taken from mips_split_const.
24183 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
24184 Declare.
24185 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
24186 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
24187 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
24188 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
24189 (m68k_illegitimate_symbolic_constant_p): New function.
24190 * config/m68k/m68k.md (movsi): Remove misleading predicates.
24191 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
24192 symbolic constant that might be outside the symbol's section,
24193 move the symbol first and then add the offset.
24194 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
24195 Override.
24196 * config/mips/mips.c (mips_split_const): Delete.
24197 (mips_offset_within_object_p): Delete.
24198 (mips_symbolic_constant_p): Use offset_within_section_p and
24199 split_const instead of mips_offset_within_object_p and
24200 mips_split_const.
24201 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
24202 (mips_legitimize_const_move, print_operand_reloc)
24203 (mips_dangerous_for_la25_p): Use split_const instead of
24204 mips_split_const.
24205
24206 2007-02-28 Eric Christopher <echristo@apple.com>
24207
24208 * Makefile.in (install-include-dir): Don't rm -rf include.
24209
24210 2007-02-28 Richard Guenther <rguenther@suse.de>
24211
24212 PR middle-end/30364
24213 * fold-const.c (fold_binary): Do not associate expressions
24214 with more than one variable for integer types that do not wrap.
24215
24216 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
24217
24218 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
24219 Delete, and replace with...
24220 (fold_builtin_call_array): This. Update callers to use it.
24221 * fold-const.c (fold_build_call_list): Delete, and replace with...
24222 (fold_build_call_array): This.
24223 (fold_build_call_list_initializer): Delete, and replace with...
24224 (fold_build_call_array_initializer): This.
24225 * tree.h: Update declarations to reflect above changes.
24226
24227 * c-typeck.c (build_function_call): Store converted arguments
24228 in a stack-allocated array instead of building a list.
24229 (convert_arguments): Store arguments in the array passed in as an
24230 argument, and return the actual number of arguments.
24231 * c-format.c: (check_function_format): Pass arguments in an
24232 array instead of a list.
24233 * c-common.c (check_function_nonnull): Likewise.
24234 (check_function_sentinel): Likewise.
24235 (check_function_arguments): Likewise.
24236 * c-common.h: Update declarations to reflect above changes.
24237
24238 2007-02-28 Jan Hubicka <jh@suse.cz>
24239
24240 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
24241 PRED_NEGATIVE_RETURN): Update outcomes.
24242
24243 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
24244
24245 * calls.c (emit_library_call_value_1): Handle partial registers
24246 correctly when building up CALL_INSN_FUNCTION_USAGE.
24247
24248 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24249
24250 * pa/predicates.md (move_src_operand): Allow zero for mode.
24251 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
24252 move pattern.
24253
24254 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
24255
24256 PR target/30970
24257 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
24258 *movv2df_internal): Enable pattern only for valid operand
24259 combinations.
24260 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
24261 tie only 128bit modes. For MMX registers, tie only 64bit modes.
24262
24263 2007-02-27 Mike Stump <mrs@apple.com>
24264
24265 * config/darwin-crt3.c: Avoid compilation when compiling for a
24266 kext multilib.
24267
24268 2007-02-27 Joseph Myers <joseph@codesourcery.com>
24269
24270 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
24271 FIXED_INCLUDE_DIR.
24272 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
24273 for fixed headers and limits.h.
24274 (install-include-dir, install-headers-tar, install-headers-cpio,
24275 install-headers-cp, real-install-headers-tar,
24276 real-install-headers-cpio, real-install-headers-cp): Handle
24277 include-fixed as well as include.
24278 (install-mkheaders): Don't install files that go only in include
24279 not include-fixed.
24280 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
24281 from GCC_INCLUDE_DIR.
24282 * gcc.c (process_command): Remove special -BstageN/ handling.
24283 (do_spec_1): Add include-fixed directories.
24284
24285 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24286
24287 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
24288 _smulsi3_highpart.
24289 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
24290 New functions.
24291 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
24292 patterns.
24293
24294 2007-02-27 Mark Mitchell <mark@codesourcery.com>
24295
24296 * c-common.c (get_priority): Add check for
24297 SUPPORTS_INIT_PRIORITY.
24298
24299 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24300
24301 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
24302
24303 * config/bfin/bfin.c: Include "cfglayout.h".
24304 (MAX_LSETUP_DISTANCE): New macro.
24305 (struct loop_info): New members incoming, incoming_src and
24306 incoming_dest. Delete member predecessor.
24307 (length_for_loop): New function.
24308 (bfin_optimize_loop): Handle more different loop structures.
24309 (bfin_discover_loop): Rework detection of predecessor blocks by
24310 examining incoming edges.
24311 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
24312 bfin_reorg_loops.
24313 (bfin_reorder_loops): New function.
24314 (bfin_reorg_loops): Use these three new functions.
24315
24316 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
24317 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
24318 (CONSTRAINT_LEN): Add entry for 'q'.
24319 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
24320 Add 'q' constraints.
24321 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
24322 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
24323
24324 * config/bfin/bfin.md (add_with_carry): New pattern.
24325 (s_or_u, su_optab, su_modifier): New code macros/attrs.
24326 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
24327 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
24328 support unsigned multiplies too. Removed incorrect commutativity from
24329 operand 1 constraint where appropriate.
24330 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
24331 patterns.
24332 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
24333 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
24334 New patterns.
24335 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
24336 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
24337 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
24338 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
24339 usmulhisi_hh_huh): New patterns.
24340
24341 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
24342 lshifthi3): Fix output template to use half reg for operand 2.
24343
24344 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
24345 instead of R2.
24346
24347 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
24348
24349 2007-02-27 Andreas Schwab <schwab@suse.de>
24350
24351 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
24352
24353 2007-02-27 Jan Hubicka <jh@suse.cz>
24354
24355 * predict.c (last_basic_block_p): Remove.
24356 (tree_estimate_probability): Update return heuristic for commonized
24357 return blocks.
24358
24359 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
24360
24361 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
24362
24363 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
24364
24365 * doc/include/gcc-common.texi (versionsubtitle): New macro.
24366 * doc/cpp.texi: Standardize title page.
24367 * doc/cppinternals.texi: Likewise.
24368 * doc/gcc.texi: Standardize title page, remove version number
24369 from copyright page.
24370 * doc/gccint.texi: Likewise.
24371 * doc/install.texi: Standardize title page, add table of
24372 contents.
24373
24374 2007-02-26 Jan Hubicka <jh@suse.cz>
24375
24376 * predict.def: Set outcomes according to more recent results.
24377 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
24378 Remove dead predictors.
24379 * predict.c (return_prediction): Fix pasto.
24380
24381 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24382
24383 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
24384 change; avoid a memory leak when returning early.
24385
24386 2007-02-26 Mark Mitchell <mark@codesourcery.com>
24387
24388 * c-decl.c (static_ctors): Move to c-common.c.
24389 (static_dtors): Likewise.
24390 (finish_function): Use c_record_cdtor_fn.
24391 (build_cdtor): Move to c-common.c.
24392 (c_write_global_declarations): Use c_build_cdtor_fns.
24393 * c-common.h (static_ctors): Declare.
24394 (static_dtors): Likewise.
24395 (c_record_cdtor_fn): Likewise.
24396 (c_build_cdtor_fns): Likewise.
24397 * c-common.c (static_ctors): New variable.
24398 (static_dtors): Likewise.
24399 (c_record_cdtor_fn): New function.
24400 (build_cdtor): Move from c-decl.c
24401 (c_build_cdtor_fns): New function.
24402
24403 * output.h (assemble_addr_to_section): Declare.
24404 (get_cdtor_priority_section): Likewise.
24405 * varasm.c (assemble_addr_to_section): New function.
24406 (get_cdtor_priority_section): Likewise.
24407 (default_named_section_asm_out_destructor): Use them.
24408 (destor_dtor_section_asm_out_destructor): Likewise.
24409 (default_named_section_asm_out_constructor): Likewise.
24410 (default_ctor_section_asm_out_constructor): Likewise.
24411 * config.gcc (*-*-vxworks*): Include vxworks.o.
24412 * config/t-vxworks (vxworks.o): New target.
24413 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
24414 (TARGET_ASM_CONSTRUCTOR): Define.
24415 (TARGET_ASM_DESTRUCTOR): Likewise.
24416 (vxworks_asm_out_constructor): Declare.
24417 (vxworks_asm_out_destructor): Likewise.
24418
24419 * c-common.c (get_priority): Check that we have not just an
24420 INTEGER_CST, but an integer constant with integeral type.
24421
24422 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
24423
24424 PR tree-optimization/30938
24425 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
24426 use &dt[nargs-1] instead of &dt[nargs] in the call to
24427 vect_is_simple_use().
24428
24429 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
24430
24431 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
24432 from register elimination as PRE_MODIFY / POST_MODIFY increments.
24433 Do not attempt to handle MEM inside auto-inc expressions.
24434 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
24435 of a register modified by an auto-inc expression. However, do handle
24436 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
24437 (elimination_effects): Prohibit elimination of a register modified
24438 by an auto-inc expression. Disable register elimination rules whose
24439 target register is modified by an auto-inc expression with variable
24440 increment.
24441
24442 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
24443
24444 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
24445 off-by-one error.
24446 (array_at_struct_end_p): New function.
24447 (idx_infer_loop_bounds): Use it.
24448 (estimate_numbers_of_iterations_loop): Export.
24449 * predict.c (predict_loops): Use estimated_loop_iterations_int.
24450 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
24451 (tree_estimate_probability): Call record_loop_exits.
24452 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
24453 (estimated_loop_iterations, estimated_loop_iterations_int,
24454 estimated_loop_iterations_tree): New functions.
24455 (analyze_siv_subscript_cst_affine,
24456 compute_overlap_steps_for_affine_1_2,
24457 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
24458 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
24459 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
24460 (PRED_LOOP_ITERATIONS_GUESSED): New.
24461 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
24462 * cfgloop.h (estimate_numbers_of_iterations_loop,
24463 estimated_loop_iterations_int): Declare.
24464
24465 2007-02-25 Mark Mitchell <mark@codesourcery.com>
24466
24467 * doc/extend.texi: Document optional priority argument to
24468 constructors and destructors.
24469 * tree.c (init_priority_for_decl): Adjust GTY markers.
24470 (init_ttree): Use priority-info hash functions for
24471 init_priority_for_decl.
24472 (tree_map_eq): Rename to ...
24473 (tree_map_base_eq): ... this.
24474 (tree_map_marked_p): Rename to ...
24475 (tree_map_base_marked_p): ... this.
24476 (tree_map_base_hash): New function.
24477 (decl_init_priority_lookup): Rework.
24478 (decl_fini_priority_lookup): New function.
24479 (decl_priority_info): New function.
24480 (decl_init_priority_insert): Use it.
24481 (decl_fini_priority_insert): Likewise.
24482 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
24483 hierarchy.
24484 (decl_restrict_base_insert): Likewise.
24485 (decl_debug_expr_insert): Likewise.
24486 (decl_value_expr_lookup): Likewise.
24487 (decl_value_expr_insert): Likewise.
24488 * tree.h (priority_type): New type.
24489 (decl_init_priority_lookup): Use priority_type.
24490 (decl_fini_priority_lookup): New function.
24491 (decl_init_priority_insert): Use priority_type.
24492 (decl_fini_priority_insert): New function.
24493 (DECL_HAS_INIT_PRIORITY): Tweak comments.
24494 (DECL_INIT_PRIORITY): Likewise.
24495 (SET_DECL_INIT_PRIORITY): Add comment.
24496 (DECL_FINI_PRIORITY): New macro.
24497 (SET_DECL_FINI_PRIORITY): Likewise.
24498 (DEFAULT_INIT_PRIORITY): Document.
24499 (MAX_INIT_PRIORITY): Likewise.
24500 (MAX_RESERVED_INIT_PRIORITY): Likewise.
24501 (tree_map_base): New type.
24502 (tree_map_base_eq): New function.
24503 (tree_map_base_hash): Likewise.
24504 (tree_map_base_marked_p): Likewise.
24505 (tree_map): Inherit from tree_map_base.
24506 (tree_map_eq): Make it a macro.
24507 (tree_map_marked_p): Likewise.
24508 (tree_int_map): Inherit from tree_map_base.
24509 (tree_int_map_eq): Make it a macro.
24510 (tree_int_map_hash): Likewise.
24511 (tree_int_map_marked_p): Likewise.
24512 (tree_priority_map): New type.
24513 (tree_priority_map_eq): New macro.
24514 (tree_priority_map_hash): Likewise.
24515 (tree_priority_map_marked_p): Likewise.
24516 * varasm.c (emults_decl): Adjust for refactoring of tree_map
24517 hierarchy.
24518 (emutls_common_1): Likewise.
24519 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
24520 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
24521 of tree_map hierarchy.
24522 * tree-cfg.c (move_stmt_r): Likewise.
24523 (new_label_mapper): Likewise.
24524 * c-tree.h (c_expand_body): Move to ...
24525 * c-common.h (c_expand_body): ... here.
24526 * c-decl.c (c_expand_body): Move to ...
24527 * c-common.c (c_expand_body): ... here.
24528 (c_common_attribute_table): Allow 1 argument for the constructor
24529 and destructor attributes.
24530 (get_priority): New function.
24531 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
24532 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
24533
24534 2007-02-24 Jan Hubicka <jh@suse.cz>
24535
24536 PR middle-end/30509
24537 * tree-inline.c (copy_bb): Produce exact copy of EH info when
24538 copying for inlining.
24539
24540 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
24541 Jan Hubicka <jh@suse.cz>
24542
24543 PR target/30778
24544 * i386.c (counter_mode): New function.
24545 (expand_set_or_movmem_via_loop): Use it.
24546 (expand_movmem_epilogue): Likewise; fix pasto.
24547 (ix86_expand_movmem): Do emit guard even for constant counts.
24548 (ix86_expand_setmem): Likewise.
24549
24550 2007-02-25 Nick Clifton <nickc@redhat.com>
24551
24552 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
24553 (JUMP_TABLES_IN_TEXT_SECTION): Define.
24554
24555 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
24556
24557 PR target/30770
24558 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
24559 count argument with 0x10, not with 0x16.
24560 (expand_setmem_epilogue): Ditto.
24561
24562 2007-02-24 Mike Stump <mrs@apple.com>
24563
24564 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
24565 symbols.
24566
24567 2007-02-24 Richard Guenther <rguenther@suse.de>
24568
24569 PR middle-end/30951
24570 * fold-const.c (fold_binary): Fold x +- CST op x for
24571 EQ_EXPR and NE_EXPR.
24572
24573 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24574
24575 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
24576
24577 2007-02-24 Jan Hubicka <jh@suse.cz>
24578
24579 * cgraphunit.c (decide_is_function_needed): Honor
24580 -fkeep-inline-functions.
24581
24582 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24583
24584 * builtins.c (fold_builtin_modf): New.
24585 (fold_builtin_2): Use it.
24586
24587 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
24588
24589 * loop-iv.c (implies_p): Detect additional cases where A implies B.
24590 (determine_max_iter): Take additional LOOP arg; all callers changed.
24591 Lose broken logic dealing with PLUS. Try to limit the upper bound by
24592 one using simplifications.
24593 (simplify_using_initial_values): Return if the expression becomes
24594 invalid due to altered regs.
24595
24596 2007-02-23 DJ Delorie <dj@redhat.com>
24597
24598 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
24599
24600 2007-02-23 Mike Stump <mrs@apple.com>
24601
24602 * tlink.c (scan_linker_output): Parse linker messages from
24603 darwin9's linker better.
24604
24605 2007-02-23 Steve Ellcey <sje@cup.hp.com>
24606
24607 PR debug/29614
24608 * varpool.c (varpool_assemble_pending_decls): Set
24609 varpool_last_needed_node to null.
24610
24611 2007-02-23 DJ Delorie <dj@redhat.com>
24612
24613 * config/i386/i386.c (ix86_data_alignment): Don't specify an
24614 alignment bigger than the object file can handle.
24615
24616 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
24617
24618 PR target/30825
24619 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
24620 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
24621 (*movsf_1): Penalize MMX moves.
24622
24623 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
24624
24625 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
24626 2^32-1 or more times unless flag_unsafe_loop_optimizations.
24627
24628 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
24629
24630 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24631
24632 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
24633 (fold_builtin_1): Use them.
24634 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
24635 BUILT_IN_SIGNIFICAND.
24636
24637 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
24638
24639 * config/i386/i386.c (bdesc_1arg): Initialize
24640 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
24641 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
24642 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
24643 and IX86_BUILTIN_MOVSLDUP.
24644
24645 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
24646
24647 PR rtl-optimization/30841
24648 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
24649
24650 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24651
24652 * builtins.c (fold_builtin_frexp): New.
24653 (fold_builtin_2): Use it.
24654
24655 2007-02-22 Mark Mitchell <mark@codesourcery.com>
24656
24657 * doc/invoke.texi (Spec Files): Document getenv spec function.
24658
24659 * gcc.c (getenv_spec_function): New function.
24660 (static_spec_functions): Add it.
24661 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
24662 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
24663 header files.
24664
24665 2007-02-22 Michael Matz <matz@suse.de
24666
24667 PR c++/29433
24668 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
24669 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
24670
24671 2007-02-22 Ian Lance Taylor <iant@google.com>
24672
24673 PR debug/30898
24674 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
24675 (mem_loc_descriptor): Call it.
24676
24677 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
24678 Ira Rosen <irar@il.ibm.com>
24679
24680 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
24681
24682 2007-02-22 Ira Rosen <irar@il.ibm.com>
24683
24684 PR tree-optimization/30843
24685 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
24686 stores only after all the group is vectorized.
24687
24688 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
24689
24690 PR tree-optimization/30858
24691 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
24692 in the reduction cycle have a single use in the loop.
24693 * tree-vectorizer.h (relevant): Add documentation.
24694
24695 2007-02-20 Mike Stump <mrs@apple.com>
24696
24697 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
24698 * configure: Regenerate.
24699
24700 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
24701
24702 Change the defaults of some parameters and options.
24703 * config/spu/spu-protos.h (spu_optimization_options): Declare.
24704 * config/spu/spu.c (spu_optimization_options): Add.
24705 (spu_override_options): Change params in spu_optimization_options.
24706 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
24707
24708 Register 127 is only 16 byte aligned when used as a frame pointer.
24709 * config/spu/spu-protos.h (spu_init_expanders): Declare.
24710 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
24711 HARD_FRAME_POINTER_REGNUM.
24712 (spu_legitimate_address): Use regno_aligned_for_reload.
24713 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
24714 aligned when frame_pointer_needed is true.
24715 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
24716 to 8 bits.
24717 * config/spu/spu.h (INIT_EXPANDERS): Define.
24718
24719 Make sure shift and rotate instructions have valid immediate operands.
24720 * config/spu/predicates.md (spu_shift_operand): Remove.
24721 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
24722 * config/spu/constraints.md (W, O): Extend range.
24723 * config/spu/spu.md (umask, nmask): Define.
24724 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
24725 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
24726 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
24727 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
24728 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
24729 (lshr<mode>3_reg): Fix rtl description.
24730
24731 Make sure mulhisi immediate operands are valid.
24732 * config/spu/predicates.md (imm_K_operand): Add.
24733 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
24734
24735 Generate constants using fsmbi and andi.
24736 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
24737 (print_operand, spu_split_immediate, classify_immediate,
24738 fsmbi_const_p): Handle IC_FSMBI2.
24739
24740 Correctly handle a CONST_VECTOR containing symbols.
24741 * config/spu/spu.c (print_operand): Handle HIGH correctly.
24742 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
24743 (immediate_load_p): Allow symbols that use 2 instructions to create.
24744 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
24745 with symbols when flag_pic is set.
24746 (const_vector_immediate_p): New.
24747 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
24748 accept a CONST_VECTOR with symbols.
24749 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
24750 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
24751 correctly.
24752 * config/spu/spu.md (high, low): Delete.
24753 (low_<mode>): Define.
24754
24755 Remove INTRmode and INTR_REGNUM, which didn't work.
24756 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
24757 of INTR_REGNUM.
24758 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
24759 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
24760 peephole2 pattern): Don't use INTR or 131.
24761 (movintrcc): Delete.
24762 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
24763 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
24764 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
24765 (UNSPEC_SET_INTR): Add.
24766 * config/spu/spu-modes.def (INTR): Remove.
24767
24768 More accurate warnings about run-time relocations.
24769 * config/spu/spu.c (reloc_diagnostic): Test in_section.
24770
24771 Correctly warn about immediate arguments to specific intrinsics.
24772 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
24773 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
24774 the instruction predicate.
24775
24776 Fix tree check errors with latest update.
24777 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
24778 CALL_EXPR_ARG.
24779 (spu_expand_builtin): Use CALL_EXPR_FN.
24780
24781 Add missing specific intrinsics.
24782 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
24783 si_bislede.
24784 * config/spu/spu_internals.h: Ditto.
24785
24786 Fix incorrect operand modifiers.
24787 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
24788 * config/spu/spu.md (xor<mode>3): Change %S to %J.
24789
24790 Optimize one case of zero_extend of a vec_select.
24791 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
24792
24793 Accept any immediate for hbr.
24794 * config/spu/spu.md (hbr): Change s constraints to i.
24795
24796 2007-02-21 Paul Brook <paul@codesourcery.com>
24797
24798 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
24799 condexec_count when skipping USE and CLOBBER.
24800
24801 2007-02-21 Nick Clifton <nickc@redhat.com>
24802
24803 * common.opt (Warray-bounds): Add Warning attribute.
24804 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
24805 Likewise.
24806 (fsized-zeroes): Add Optimization attribute.
24807 (fsplit-wide-types, ftree-scev-cprop): Likewise.
24808 * c.opt (Wc++0x-compat): Add Warning attribute.
24809
24810 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
24811
24812 PR middle-end/30761
24813 * reload1.c (eliminate_regs_in_insn): In the single_set special
24814 case, attempt to re-recognize the insn before falling back to
24815 having reload fix it up.
24816
24817 2007-02-20 Eric Christopher <echristo@gmail.com>
24818
24819 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
24820 Rewrite accordingly.
24821 (frv_read_iacc_argument): Ditto.
24822 (frv_expand_set_builtin): Take a call instead of arglist, update for
24823 above changes.
24824 (frv_expand_unop_builtin): Ditto.
24825 (frv_expand_binop_builtin): Ditto.
24826 (frv_expand_cut_builtin): Ditto.
24827 (frv_expand_binopimm_builtin): Ditto.
24828 (frv_expand_voidbinop_builtin): Ditto.
24829 (frv_expand_int_void2arg): Ditto.
24830 (frv_expand_prefetches): Ditto.
24831 (frv_expand_voidtriop_builtin): Ditto.
24832 (frv_expand_voidaccop_builtin): Ditto.
24833 (frv_expand_load_builtin): Ditto.
24834 (frv_expand_store_builtin): Ditto.
24835 (frv_expand_mdpackh_builtin): Ditto.
24836 (frv_expand_mclracc_builtin): Ditto.
24837 (frv_expand_mrdacc_builtin): Ditto.
24838 (frv_expand_mwtacc_builtin): Ditto.
24839 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
24840 calls for above.
24841
24842 2007-02-20 Janis Johnson <janis187@us.ibm.com>
24843
24844 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
24845 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
24846 cmpb instruction.
24847 (HAVE_GAS_DFP): Check for assembler support of decimal floating
24848 point instructions.
24849 * configure: Regenerate.
24850 * config.in: Regenerate.
24851 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
24852 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
24853 masks to power6 and power6x and to POWERPC_MASKS.
24854 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24855 _ARCH_PWR6.
24856 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
24857 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
24858 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
24859 Access PROTOTYPE as variable, not mask.
24860
24861 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
24862
24863 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
24864 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
24865 * combine.c (adjust_for_new_dest): Use it.
24866 * postreload.c (reload_combine): Likewise.
24867
24868 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
24869
24870 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
24871 notes on an insn with multiple sets, even if single_set returns
24872 non-NULL for that insn.
24873
24874 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24875
24876 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
24877 scalbn and scalbln.
24878
24879 2007-02-20 Geoffrey Keating <geoffk@apple.com>
24880
24881 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
24882 if user didn't pass it.
24883 * config/i386/darwin.h (CC1_SPEC): Likewise.
24884 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
24885 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
24886 -mmacosx-version-min.
24887
24888 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24889 Uros Bizjak <ubizjak@gmail.com>
24890
24891 * optabs.h (enum optab_index): Add new OTI_scalb.
24892 (scalb_optab): Define corresponding macro.
24893 * optabs.c (init_optabs): Initialize scalb_optab.
24894 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
24895 patterns.
24896 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
24897 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
24898 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
24899 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
24900 flag_unsafe_math_optimizations is set.
24901
24902 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
24903 to implement scalbf, scalb and scalbl built-ins as inline x87
24904 intrinsics.
24905
24906 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24907 DJ Delorie <dj@redhat.com>
24908
24909 PR other/30824
24910 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
24911 (diagnostic_report_diagnostic): ... here, and turn them into real
24912 errors. If warnings are inhibited, no need to do anything.
24913
24914 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
24915
24916 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
24917 better code generation.
24918
24919 2007-02-20 Ben Elliston <bje@au.ibm.com>
24920
24921 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
24922
24923 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
24924
24925 * config/alpha/alpha.c, config/alpha/alpha.md,
24926 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
24927 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
24928 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
24929 config/arm/lib1funcs.asm: Follow spelling conventions.
24930
24931 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
24932 config/fr30/fr30.md, config/i386/i386.h,
24933 config/iq2000/iq2000.h, config/iq2000/predicates.md,
24934 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
24935 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
24936 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
24937 config/rs6000/altivec.md, config/rs6000/rs6000.c,
24938 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
24939 config/sparc/sparc.c, config/sparc/sparc.h,
24940 config/sparc/sparc.md, config/spu/constraints.md,
24941 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
24942 conventions.
24943
24944 2007-02-20 Alan Modra <amodra@bigpond.net.au>
24945
24946 PR target/29943
24947 * varasm.c (use_blocks_for_decl_p): Return false for decls with
24948 alias attribute.
24949
24950 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
24951
24952 * doc/invoke.texi (-ftree-lrs): Remove.
24953
24954 2007-02-19 Diego Novillo <dnovillo@redhat.com>
24955
24956 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
24957 NULL.
24958
24959 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
24960
24961 * config/ia64/ia64.c (ia64_expand_builtin): Use the
24962 new CALL_EXPR_FN macro for retrieving the function
24963 declaration of the input expression.
24964
24965 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24966
24967 * c.opt (Waddress): New.
24968 * common.opt (Walways-true): Delete.
24969 (Wstring-literal-comparison): Delete.
24970 * doc/invoke.texi (Warning Options): Delete -Walways-true and
24971 -Wstring-literal-comparison. Add -Waddress.
24972 (Waddress): New.
24973 (Walways-true): Delete.
24974 (Wstring-literal-comparison): Delete.
24975 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
24976 consistently instead of -Walways-true in example.
24977 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
24978 * c-typeck.c (parser_build_binary_op): Replace
24979 -Wstring-literal-comparison and -Walways-true with -Waddress.
24980 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
24981 with -Waddress.
24982
24983 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
24984
24985 * tree-cfg.c (dump_function_to_file): Be prepared for functions
24986 without DECL_STRUCT_FUNCTION initialized.
24987
24988 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
24989
24990 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
24991 due to calls to functions taking pointers as parameters.
24992
24993 2007-02-19 Richard Henderson <rth@redhat.com>
24994
24995 PR debug/29558
24996 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
24997 in memory.
24998
24999 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
25000
25001 * config/s390/s390.c (s390_call_saved_register_used,
25002 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
25003 accessed to the new scheme.
25004
25005 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25006
25007 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
25008 (cris_print_index, cris_print_operand, cris_print_operand_address)
25009 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
25010 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
25011 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
25012 GET_CODE () == xxx.
25013 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
25014 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
25015 GO_IF_LEGITIMATE_ADDRESS): Ditto.
25016 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
25017 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
25018 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
25019 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
25020 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
25021 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
25022 (uminsi3, call, call_value): Ditto.
25023 (define_split: indir_to_reg_split, unnamed): Ditto.
25024
25025 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
25026
25027 PR tree-optimization/30975
25028 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
25029 wrong assert.
25030
25031 2007-02-18 Eric Christopher <echristo@gmail.com>
25032
25033 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
25034 Remove use of arglist.
25035 (mips_expand_builtin): Remove use of arglist, pass in expr.
25036 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
25037 (mips_expand_builtin_movtf): Ditto.
25038 (mips_expand_builtin_compare): Ditto.
25039
25040 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
25041
25042 * tree-sra.c (sra_build_assignment): Replace assertion
25043 checking with a comment explaining why it can't be done.
25044
25045 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
25046
25047 PR middle-end/30833
25048 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
25049 during CALL_EXPR representation conversion.
25050 * tree-ssa-propagate.c (set_rhs): Likewise.
25051
25052 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
25053
25054 * tree-sra.c (sra_build_assignment): Disable assertion checking
25055 for now.
25056
25057 2007-02-18 Roger Sayle <roger@eyesopen.com>
25058
25059 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
25060 instead of calling build2 with a GIMPLE_MODIFY_STMT.
25061 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
25062 Likewise.
25063 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
25064 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
25065 gimplify_init_ctor_eval_range, gimple_push_cleanup,
25066 gimplify_omp_for, gimplify_omp_atomic_pipeline,
25067 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
25068 force_gimple_operand): Likewise.
25069 * ipa-cp.c (constant_val_insert): Likewise.
25070 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
25071 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
25072 perfect_nestify): Likewise.
25073 * langhooks.c (lhd_omp_assignment): Likewise.
25074 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
25075 lower_copyprivate_clauses, lower_send_clauses,
25076 lower_send_shared_vars, expand_parallel_call,
25077 expand_omp_for_generic, expand_omp_for_static_nochunk,
25078 expand_omp_for_static_chunk, expand_omp_sections,
25079 lower_omp_single_copy, lower_omp_for_lastprivate,
25080 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
25081 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
25082 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
25083 Likewise.
25084
25085 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
25086
25087 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
25088 config/sh/sh.md: Follow spelling conventions.
25089
25090 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
25091 config/frv/predicates.md: Follow spelling conventions.
25092
25093 * config/m68k/linux-unwind.h: Fix a comment typo.
25094 * target.h: Follow spelling conventions.
25095
25096 2007-02-18 Roger Sayle <roger@eyesopen.com>
25097
25098 PR rtl-optimization/28173
25099 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
25100 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
25101 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
25102 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
25103 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
25104
25105 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25106
25107 * builtins.c (fold_builtin_load_exponent): New.
25108 (fold_builtin_2): Use it.
25109
25110 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
25111
25112 PR rtl-optimization/30773
25113 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
25114 if we fail to attach a REG_EQUIV note.
25115
25116 2007-02-18 David Edelsohn <edelsohn@gnu.org>
25117 Roger Sayle <roger@eyesopen.com>
25118
25119 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
25120
25121 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
25122
25123 * calls.c (initialize_argument_information): Pass original EXP
25124 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
25125 code to split complex arguments here, as part of initializing the
25126 ARGS array.
25127 (expand_call): Remove code that builds a list of arguments and
25128 inserts implicit arguments into it. Instead, just count how many
25129 implicit arguments there will be so we can determine the size of
25130 the ARGS array, and let initialize_argument_information do the work.
25131 (split_complex_values): Delete unused function.
25132
25133 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
25134
25135 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
25136
25137 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
25138
25139 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
25140 for arg pointer based indexed addressing.
25141
25142 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
25143
25144 * config/ia64/ia64.h, config/ia64/ia64.md,
25145 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
25146 spelling conventions.
25147
25148 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
25149
25150 * config/m68k/m68k.c (split_di): New.
25151 * config/m68k/m68k-protos.h: Declare split_di.
25152 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
25153 Improve predicate handling and split constant shifts.
25154
25155 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
25156
25157 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
25158 parameter for register bitfield operations, general predicates
25159 cleanup
25160
25161 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
25162
25163 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
25164 * config/m68k/linux-unwind.h: New file.
25165
25166 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
25167
25168 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
25169 config/i386/athlon.md, config/ia64/ia64.md,
25170 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
25171 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
25172 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
25173 tree-ssa-loop-niter.c, tree-vect-analyze.c,
25174 tree-vect-transform.c: Fix comment typos.
25175
25176 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
25177
25178 * sched-deps.c (find_insn_list): Remove.
25179 * sched-int.h: Remove the prototype for find_insn_list.
25180
25181 2007-02-16 Geoffrey Keating <geoffk@apple.com>
25182
25183 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
25184 to linker.
25185 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
25186 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
25187 darwin_rs6000_override_options.
25188 (C_COMMON_OVERRIDE_OPTIONS): Expect
25189 darwin_macosx_version_min to be non-NULL always.
25190 (TARGET_C99_FUNCTIONS): Likewise.
25191 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
25192 (DARWIN_MINVERSION_SPEC): New.
25193 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
25194 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
25195 to cc1*.
25196 (DARWIN_MINVERSION_SPEC): New.
25197 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
25198 value.
25199 * config/darwin-c.c (darwin_cpp_builtins): Expect
25200 darwin_macosx_version_min to be non-NULL always.
25201
25202 * config/rs6000/rs6000.c: Clean up trailing whitespace.
25203
25204 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
25205
25206 * config/i386/i386.h (x86_use_xchgb): New.
25207 (TARGET_USE_XCHGB): New macro.
25208 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
25209 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
25210 Split after reload into bswaphi for shifts of 8.
25211 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
25212 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
25213 or when optimizing for size.
25214
25215 2007-02-16 Richard Guenther <rguenther@suse.de>
25216 Christian Bruel <christian.bruel@st.com>
25217
25218 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
25219 DECLs but prefer SSA_NAMEs over DECLs.
25220
25221 2007-02-16 Richard Guenther <rguenther@suse.de>
25222
25223 * tree-flow-inline.h (single_imm_use_p): Remove.
25224 (zero_imm_uses_p): Likewise.
25225 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
25226 instead of single_imm_use_p.
25227 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
25228 zero_imm_uses_p.
25229
25230 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25231
25232 PR other/27843
25233 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
25234 nested double- and backquotes.
25235
25236 2007-02-15 Roger Sayle <roger@eyesopen.com>
25237
25238 PR middle-end/30391
25239 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
25240 should be unreachable.
25241 (build2_stat): Allow construction of MODIFY_EXPR at any time.
25242 For the time being redirect GIMPLE_MODIFY_STMT to the new
25243 (renamed) build_gimple_modify_stmt_stat.
25244 (build2_gimple_stat): Rename to...
25245 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
25246 Always build a GIMPLE_MODIFY_STMT node.
25247 * tree.h (build2_gimple, build2_gimple_stat): Delete.
25248 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
25249 declarations.
25250
25251 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
25252 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
25253 * tree-complex.c (set_component_ssa_name, expand_complex_move,
25254 expand_complex_div_wide): Likewise.
25255 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
25256 * tree-ssa-loop-im.c (schedule_sm): Likewise.
25257 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
25258 * tree-ssa-loop-manip.c (create_iv): Likewise.
25259 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
25260 abs_replacement): Likewise.
25261 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
25262 realify_fake_stores): Likewise.
25263
25264 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
25265 node rather than a GIMPLE_MODIFY_STMT node.
25266 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
25267 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
25268 Likewise.
25269 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
25270 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
25271 GIMPLE_MODIFY_STMT.
25272
25273 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
25274
25275 PR middle-end/30433
25276 * fold-const.c (fold_comparison): Add back the
25277 folding of constant complex comparisions.
25278
25279 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
25280
25281 PR middle-end/30729
25282 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
25283 effects unknown to this function, return early.
25284
25285 2007-02-15 Ian Lance Taylor <iant@google.com>
25286
25287 * lower-subreg.c (move_eh_region_note): New static function.
25288 (resolve_simple_move): Call it.
25289 (decompose_multiword_subregs): Track blocks for which we resolve a
25290 simple move which is also a control flow insn. Pass them to
25291 find_many_sub_basic_blocks.
25292 (pass_lower_subreg): Add TODO_verify_flow.
25293 (pass_lower_subreg2): Likewise.
25294
25295 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25296 Brooks Moses <brooks.moses@codesourcery.com>
25297 Lee Millward <lee.millward@codesourcery.com>
25298
25299 * tree.h (enum tree_code_class): Add tcc_vl_exp.
25300 (VL_EXP_CLASS_P): New.
25301 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
25302 TREE_CODE_LENGTH.
25303 (TREE_OPERAND_CHECK_CODE): Likewise.
25304 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
25305 (TREE_RTL_OPERAND_CHECK): Likewise.
25306 (tree_operand_check_failed): Make second parameter the whole tree
25307 instead of its code. Fixed callers.
25308 (VL_EXP_CHECK): New.
25309 (TREE_OPERAND_LENGTH): New.
25310 (VL_EXP_OPERAND_LENGTH): New.
25311 (CALL_EXPR_FN): New.
25312 (CALL_EXPR_STATIC_CHAIN): New.
25313 (CALL_EXPR_ARGS): New.
25314 (CALL_EXPR_ARG): New.
25315 (call_expr_nargs): New.
25316 (CALL_EXPR_ARGP): New.
25317 (build_nt_call_list): Declare.
25318 (build_vl_exp_stat): Declare.
25319 (build_vl_exp): New.
25320 (build_call_list): Declare.
25321 (build_call_nary): Declare.
25322 (build_call_valist): Declare.
25323 (build_call_array): Declare.
25324 (call_expr_arg): Declare.
25325 (call_expr_argp): Declare.
25326 (call_expr_arglist): Declare.
25327 (fold_build_call_list): Declare.
25328 (fold_build_call_list_initializer): Declare.
25329 (fold_call_expr): Declare to replace fold_builtin.
25330 (fold_builtin_fputs): Update to agree with modified definition.
25331 (fold_builtin_strcpy): Likewise.
25332 (fold_builtin_strncpy): Likewise.
25333 (fold_builtin_memory_chk): Likewise.
25334 (fold_builtin_stxcpy_chk): Likewise.
25335 (fold_builtin_strncpy_chk): Likewise.
25336 (fold_builtin_next_arg): Likewise.
25337 (fold_build_call_expr): Declare.
25338 (fold_builtin_call_list): Declare.
25339 (fold_builtin_call_valist): Declare.
25340 (build_call_expr): Declare.
25341 (validate_arglist): Update to agree with modified definition.
25342 (tree_operand_length): New.
25343 (call_expr_arg_iterator): New.
25344 (init_call_expr_arg_iterator): New.
25345 (next_call_expr_arg): New.
25346 (first_call_expr_arg): New.
25347 (more_call_expr_args_p): New.
25348 (FOR_EACH_CALL_EXPR_ARG): New.
25349
25350 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
25351 and tcc_gimple_stmt.
25352 (tree_code_size): Update documentation. Use sizeof (tree) rather
25353 than sizeof (char *).
25354 (tree_size): Likewise. Add case for tcc_vl_exp.
25355 (tree_node_structure): Add case for tcc_vl_exp.
25356 (contains_placeholder_p): Likewise.
25357 (substitute_in_expr): Likewise.
25358 (substitute_placeholder_in_expr): Likewise.
25359 (stabilize_reference_1): Likewise.
25360 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
25361 to diagnose breakage of this interface for constructing CALL_EXPRs.
25362 (build_nt): Add similar assertion here.
25363 (build_nt_call_list): New.
25364 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
25365 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
25366 TREE_CODE_LENGTH.
25367 (get_callee_fndecl): Use new CALL_EXPR accessors.
25368 (tree_operand_check_failed): Change parameters to pass entire node
25369 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
25370 (process_call_operands): New.
25371 (build_vl_exp_stat): New.
25372 (build_call_list): New.
25373 (build_call_nary): New.
25374 (build_call_valist): New.
25375 (build_call_array): New.
25376 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25377 (call_expr_arglist): New.
25378
25379 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
25380 tcc_vl_exp instead of a fixed-size tcc_expression.
25381
25382 * doc/c-tree.texi (CALL_EXPR): Document new representation and
25383 accessors for CALL_EXPRs.
25384 (AGGR_INIT_EXPR): Likewise.
25385
25386 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25387 Brooks Moses <brooks.moses@codesourcery.com>
25388 Lee Millward <lee.millward@codesourcery.com>
25389
25390 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
25391 (expand_builtin_nonlocal_goto): Change parameter to be entire
25392 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
25393 (expand_builtin_prefetch): Likewise.
25394 (expand_builtin_classify_type): Likewise.
25395 (mathfn_built_in): Return NULL_TREE instead of 0.
25396 (expand_errno_check): Use new CALL_EXPR accessors.
25397 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
25398 Return NULL_RTX instead of 0.
25399 (expand_builtin_mathfn_2): Likewise.
25400 (expand_builtin_mathfn_3): Likewise.
25401 (expand_builtin_interclass_mathfn): Likewise.
25402 (expand_builtin_sincos): Likewise.
25403 (expand_builtin_cexpi): Likewise.
25404 (expand_builtin_int_roundingfn): Likewise.
25405 (expand_builtin_int_roundingfn_2): Likewise.
25406 (expand_builtin_pow): Likewise.
25407 (expand_builtin_powi): Likewise.
25408 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
25409 of arglist, fixing callers appropriately. Use new CALL_EXPR
25410 accessors and constructors. Return NULL_RTX instead of 0.
25411 (expand_builtin_strstr): Likewise.
25412 (expand_builtin_strchr): Likewise.
25413 (expand_builtin_strrchr): Likewise.
25414 (expand_builtin_strpbrk): Likewise.
25415 (expand_builtin_memcpy): Likewise.
25416 (expand_builtin_mempcpy): Likewise.
25417 (expand_builtin_mempcpy_args): New.
25418 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
25419 (expand_builtin_memmove_args): New.
25420 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
25421 (expand_movstr): Likewise.
25422 (expand_builtin_strcpy): Likewise.
25423 (expand_builtin_strcpy_args): New.
25424 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
25425 (expand_builtin_strncpy): Likewise.
25426 (expand_builtin_memset): Likewise.
25427 (expand_builtin_memset_args): New.
25428 (expand_builtin_bzero): Similarly to expand_builtin_memset.
25429 (expand_builtin_memcmp): Likewise.
25430 (expand_builtin_strcmp): Likewise.
25431 (expand_builtin_strncmp): Likewise.
25432 (expand_builtin_strcat): Likewise.
25433 (expand_builtin_strncat): Likewise.
25434 (expand_builtin_strspn): Likewise.
25435 (expand_builtin_strcspn): Likewise.
25436 (expand_builtin_args_info): Likewise.
25437 (expand_builtin_va_start): Likewise.
25438 (gimplify_va_arg_expr): Likewise.
25439 (expand_builtin_va_end): Likewise.
25440 (expand_builtin_va_copy): Likewise.
25441 (expand_builtin_frame_address): Likewise.
25442 (expand_builtin_alloca): Likewise.
25443 (expand_builtin_bswap): Likewise.
25444 (expand_builtin_unop): Likewise.
25445 (expand_builtin_fputs): Likewise.
25446 (expand_builtin_expect): Likewise.
25447 (expand_builtin_fabs): Likewise.
25448 (expand_builtin_copysign): Likewise.
25449 (expand_builtin_printf): Likewise.
25450 (expand_builtin_fprintf): Likewise.
25451 (expand_builtin_sprintf): Likewise.
25452 (expand_builtin_init_trampoline): Likewise.
25453 (expand_builtin_signbit): Likewise.
25454 (expand_builtin_fork_or_exec): Likewise.
25455 (expand_builtin_sync_operation): Likewise.
25456 (expand_builtin_compare_and_swap): Likewise.
25457 (expand_builtin_lock_test_and_set): Likewise.
25458 (expand_builtin_lock_release): Likewise.
25459 (expand_builtin): Likewise.
25460 (builtin_mathfn_code): Likewise.
25461
25462 (fold_builtin_constant_p): Pass call arguments individually instead
25463 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25464 accessors and constructors. Return NULL_TREE instead of 0.
25465 (fold_builtin_expect): Likewise.
25466 (fold_builtin_classify_type): Likewise.
25467 (fold_builtin_strlen): Likewise.
25468 (fold_builtin_nan): Likewise.
25469 (integer_valued_real_p): Likewise.
25470 (fold_trunc_transparent_mathfn): Likewise.
25471 (fold_fixed_mathfn): Likewise.
25472 (fold_builtin_cabs): Likewise.
25473 (fold_builtin_sqrt): Likewise.
25474 (fold_builtin_cbrt): Likewise.
25475 (fold_builtin_cos): Likewise.
25476 (fold_builtin_cosh): Likewise.
25477 (fold_builtin_tan): Likewise.
25478 (fold_builtin_sincos): Likewise.
25479 (fold_builtin_cexp): Likewise.
25480 (fold_builtin_trunc): Likewise.
25481 (fold_builtin_floor): Likewise.
25482 (fold_builtin_ceil): Likewise.
25483 (fold_builtin_round): Likewise.
25484 (fold_builtin_int_roundingfn): Likewise.
25485 (fold_builtin_bitop): Likewise.
25486 (fold_builtin_bswap): Likewise.
25487 (fold_builtin_logarithm): Likewise.
25488 (fold_builtin_hypot): Likewise.
25489 (fold_builtin_pow): Likewise.
25490 (fold_builtin_powi): Likewise.
25491 (fold_builtin_exponent): Likewise.
25492 (fold_builtin_memset): Likewise.
25493 (fold_builtin_bzero): Likewise.
25494 (fold_builtin_memory_op): Likewise.
25495 (fold_builtin_bcopy): Deleted; call site changed to invoke
25496 fold_builtin_memory_op directly.
25497 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
25498 (fold_builtin_strncpy): Likewise.
25499 (fold_builtin_memcmp): Likewise.
25500 (fold_builtin_strcmp): Likewise.
25501 (fold_builtin_strncmp): Likewise.
25502 (fold_builtin_signbit): Likewise.
25503 (fold_builtin_copysign): Likewise.
25504 (fold_builtin_isascii): Likewise.
25505 (fold_builtin_toascii): Likewise.
25506 (fold_builtin_isdigit): Likewise.
25507 (fold_builtin_fabs): Likewise.
25508 (fold_builtin_abs): Likewise.
25509 (fold_builtin_fmin_fmax): Likewise.
25510 (fold_builtin_carg): Likewise.
25511 (fold_builtin_classify): Likewise.
25512 (fold_builtin_unordered_cmp): Likewise.
25513
25514 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
25515 New functions split out from fold_builtin_1.
25516 (fold_builtin_n): New.
25517 (fold_builtin_varargs): New.
25518 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
25519 instead.
25520 (fold_call_expr): New.
25521 (build_function_call_expr): Rewrite to use new helper function.
25522 (fold_builtin_call_list): New.
25523 (build_call_expr): New.
25524 (fold_builtin_call_valist): New.
25525 (rewrite_call_expr): New.
25526 (validate_arg): New.
25527 (validate_arglist): Change parameter to be entire CALL_EXPR instead
25528 of an arglist. Change return type to bool. Use new CALL_EXPR
25529 accessors.
25530
25531 (fold_builtin_strstr): Pass call arguments individually instead
25532 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25533 accessors and constructors. Return NULL_TREE instead of 0.
25534 (fold_builtin_strchr): Likewise.
25535 (fold_builtin_strrchr): Likewise.
25536 (fold_builtin_strpbrk): Likewise.
25537 (fold_builtin_strcat): Likewise.
25538 (fold_builtin_strncat): Likewise.
25539 (fold_builtin_strspn): Likewise.
25540 (fold_builtin_strcspn): Likewise.
25541 (fold_builtin_fputs): Likewise.
25542 (fold_builtin_next_arg): Likewise.
25543 (fold_builtin_sprintf): Likewise.
25544
25545 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
25546 NULL_RTX instead of 0.
25547 (expand_builtin_memory_chk): Likewise.
25548 (maybe_emit_chk_warning): Likewise.
25549 (maybe_emit_sprintf_chk_warning): Likewise.
25550
25551 (fold_builtin_object_size): Pass call arguments individually instead
25552 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25553 accessors and constructors. Return NULL_TREE instead of 0.
25554 (fold_builtin_memory_chk): Likewise.
25555 (fold_builtin_stxcpy_chk): Likewise.
25556 (fold_builtin_strncpy_chk): Likewise.
25557 (fold_builtin_strcat_chk): Likewise.
25558 (fold_builtin_strcat_chk): Likewise.
25559 (fold_builtin_strncat_chk): Likewise.
25560 (fold_builtin_sprintf_chk): Likewise.
25561 (fold_builtin_snprintf_chk): Likewise.
25562 (fold_builtin_printf): Likewise.
25563 (fold_builtin_vprintf): Likewise.
25564
25565 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
25566 constructors.
25567 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
25568 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25569 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
25570 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
25571 (fold_unary): Likewise.
25572 (fold_binary): Likewise.
25573 (fold_ternary): Remove CALL_EXPR case, since they are no longer
25574 ternary expressions.
25575 (fold): Add logic for tcc_vl_exp.
25576 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
25577 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25578 (fold_build3_stat): Add assertion to flag broken interface for
25579 constructing CALL_EXPRs.
25580 (fold_build_call_list): New.
25581 (fold_build_call_list_initializer): New.
25582 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
25583 constructors.
25584 (fold_strip_sign_ops): Likewise.
25585
25586 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25587 Brooks Moses <brooks.moses@codesourcery.com>
25588 Lee Millward <lee.millward@codesourcery.com>
25589
25590 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
25591 accessors and dump arguments explicitly.
25592
25593 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
25594 TREE_CODE_LENGTH.
25595 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
25596 explicitly.
25597 (print_call_name): Use new CALL_EXPR accessors.
25598
25599 * print-tree.c (print_node): Add case tcc_vl_exp. Print
25600 CALL_EXPR arguments explicitly instead of as a list. Use
25601 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25602
25603 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
25604 (vrp_visit_stmt): Likewise.
25605
25606 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
25607 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
25608 TREE_CODE_LENGTH.
25609 (force_move_till_expr): Likewise.
25610
25611 * targhooks.c (default_external_stack_protect_fail): Use
25612 build_call_expr instead of build_function_call_expr.
25613 (default_hidden_stack_protect_fail): Likewise.
25614
25615 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
25616 build the call.
25617
25618 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
25619 and walk arguments explicitly.
25620
25621 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
25622 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25623 (expand_simple_operations): Likewise.
25624 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
25625
25626 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
25627 of TREE_CODE_LENGTH.
25628 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
25629
25630 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
25631 instead of TREE_CODE_LENGTH.
25632
25633 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
25634 (tree_ic_transform): Likewise.
25635 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
25636 parameter instead of arglist. Fix callers.
25637 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
25638 (tree_stringops_transform): Likewise.
25639 (tree_indirect_call_to_profile): Likewise.
25640 (tree_stringops_values_to_profile): Likewise.
25641
25642 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
25643 (eliminate_tail_call): Likewise.
25644
25645 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
25646
25647 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25648 Use TREE_OPERAND_LENGTH and generalize to handle any number of
25649 operands.
25650 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
25651
25652 * omp-low.c (build_omp_barrier): Use build_call_expr.
25653 (lower_rec_input_clauses): Likewise.
25654 (lower_reduction_clauses): Likewise.
25655 (expand_parallel_call): Likewise.
25656 (maybe_catch_exception): Likewise.
25657 (expand_omp_for_generic): Likewise.
25658 (expand_omp_for_static_nochunk): Likewise.
25659 (expand_omp_sections): Likewise.
25660 (lower_omp_single_simple): Likewise.
25661 (lower_omp_single_copy): Likewise.
25662 (lower_omp_master): Likewise.
25663 (lower_omp_ordered): Likewise.
25664 (lower_omp_critical): Likewise.
25665
25666 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
25667 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
25668
25669 * tree-gimple.c (is_gimple_call_addr): Fix doc.
25670 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
25671 TREE_CODE_LENGTH. Add tcc_vl_exp case.
25672
25673 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
25674 and generalize to handle any number of operands.
25675 (chrec_contains_undetermined): Likewise.
25676 (tree_contains_chrecs): Likewise.
25677 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
25678
25679 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
25680
25681 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
25682 fold_call_expr instead of fold_builtin.
25683 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
25684 match declarations there.
25685 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
25686 updates.
25687
25688 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
25689 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25690
25691 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
25692 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
25693
25694 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
25695 accessors.
25696
25697 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
25698 (execute_cse_sincos): Use new CALL_EXPR accessors.
25699
25700 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
25701
25702 * gimple-low.c (lower_function_body): Use build_call_expr.
25703 (lower_builtin_setjmp): Likewise.
25704
25705 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
25706 (set_storage_via_libcall): Likewise.
25707 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
25708 instead of TREE_CODE_LENGTH.
25709 (expand_expr_real_1): Use new CALL_EXPR accessors.
25710
25711 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
25712 generalize to handle any number of operands.
25713 (TB_parent_eq): Likewise.
25714
25715 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
25716 (strip_builtin_expect): Likewise.
25717
25718 * function.c (gimplify_parameters): Use build_call_expr.
25719
25720 * tree-vectorizer.c (vect_is_simple_reduction): Use
25721 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25722
25723 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
25724 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
25725
25726 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
25727 iterators.
25728
25729 * gimplify.c (build_stack_save_restore): Use build_call_expr.
25730 (gimplify_decl_expr): Likewise.
25731 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
25732 Use new CALL_EXPR iterators.
25733 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
25734 (gimplify_modify_expr_to_memset): Likewise.
25735 (gimplify_variable_sized_compare): Likewise.
25736 (gimplify_omp_atomic_fetch_op): Likewise.
25737 (gimplify_omp_atomic_pipeline): Likewise.
25738 (gimplify_omp_atomic_mutex): Likewise.
25739 (gimplify_function_tree): Likewise.
25740
25741 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
25742 (call_expr_flags): Likewise.
25743 (expand_call): Likewise.
25744
25745 * except.c (expand_builtin_eh_return_data_regno): Pass entire
25746 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
25747 accessors.
25748
25749 * coverage.c (create_coverage): Use build_call_expr.
25750
25751 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
25752 (temp_call_expr_obstack): New.
25753 (pool_copy_list): Delete.
25754 (temp_copy_call_expr): New.
25755 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
25756 CALL_EXPR accessors. Get rid of special goo for copying argument
25757 lists and use temp_copy_call_expr instead.
25758 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
25759 CALL_EXPR accessors.
25760 (create_expression_by_pieces): Likewise. Use build_call_array
25761 to construct the result instead of fold_build3.
25762 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
25763 dealing with argument lists.
25764 (init_pre): Remove references to expression_node_pool and
25765 list_node_pool. Init temp_call_expr_obstack instead.
25766 (fini_pre): Remove references to expression_node_pool and
25767 list_node_pool.
25768
25769 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
25770 and walk arguments explicitly instead of as a list.
25771
25772 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
25773 (mx_register_decls): Likewise.
25774 (mudflap_register_call): Likewise.
25775 (mudflap_finish_file): Likewise.
25776
25777 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
25778 (ipa_callsite_compute_param): Likewise.
25779
25780 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
25781 accessors and constructor.
25782
25783 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
25784 accessors and constructor.
25785 (convert_tramp_reference): Likewise.
25786 (convert_call_expr): Likewise.
25787 (finalize_nesting_tree_1): Likewise.
25788
25789 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
25790 accessors.
25791
25792 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
25793
25794 * tree-inline.c (initialize_inlined_parameters): Pass entire
25795 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
25796 accessors.
25797 (estimate_num_insns_1): Use new CALL_EXPR accessors.
25798 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
25799
25800 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
25801 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25802 (vectorizable_reduction): Likewise.
25803 (vectorizable_call): Use new CALL_EXPR iterators.
25804 (vectorizable_conversion): Use build_call_expr.
25805 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
25806 (vect_gen_widened_results_half): Use build_call_expr.
25807 (vect_setup_realignment): Likewise.
25808 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
25809
25810 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
25811 (pass_through_call): Likewise.
25812 (compute_object_sizes): Likewise. Use fold_call_expr instead of
25813 fold_builtin.
25814
25815 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
25816 (tree_gen_pow2_profiler): Likewise.
25817 (tree_gen_one_value_profiler): Likewise.
25818 (tree_gen_ic_func_profiler): Likewise.
25819 (tree_gen_average_profiler): Likewise.
25820 (tree_gen_ior_profiler): Likewise.
25821
25822 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
25823 (find_func_aliases): Use new CALL_EXPR accessors. Add case
25824 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25825
25826 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
25827 of TREE_CODE_LENGTH.
25828
25829 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
25830 of TREE_CODE_LENGTH.
25831
25832 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
25833 constructor.
25834 (convert_to_integer): Likewise.
25835
25836 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
25837 accessors.
25838
25839 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25840 Brooks Moses <brooks.moses@codesourcery.com>
25841 Lee Millward <lee.millward@codesourcery.com>
25842
25843 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
25844 accessors.
25845 * config/frv/frv.c (frv_expand_builtin): Likewise.
25846 * config/s390/s390.c (s390_expand_builtin): Likewise.
25847
25848 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
25849 (sparc_expand_builtin): Use new CALL_EXPR accessors.
25850
25851 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
25852 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
25853 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
25854 (ix86_expand_store_builtin): Likewise.
25855 (ix86_expand_unop_builtin): Likewise.
25856 (ix86_expand_unop1_builtin): Likewise.
25857 (ix86_expand_sse_compare): Likewise.
25858 (ix86_expand_sse_comi): Likewise.
25859 (ix86_expand_vec_init_builtin): Likewise.
25860 (ix86_expand_vec_ext_builtin): Likewise.
25861 (ix86_expand_vec_set_builtin): Likewise.
25862 (ix86_expand_builtin): Use new CALL_EXPR accessors.
25863
25864 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
25865 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25866
25867 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
25868 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
25869 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
25870
25871 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
25872 build_call_expr.
25873 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
25874 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
25875 arglist. Use new CALL_EXPR accessors. Fix callers.
25876 (altivec_expand_abs_builtin): Likewise.
25877 (rs6000_expand_binop_builtin): Likewise.
25878 (altivec_expand_predicate_builtin): Likewise.
25879 (altivec_expand_lv_builtin): Likewise.
25880 (spe_expand_stv_builtin): Likewise.
25881 (altivec_expand_stv_builtin): Likewise.
25882 (rs6000_expand_ternop_builtin): Likewise.
25883 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
25884 (altivec_expand_st_builtin): Likewise.
25885 (altivec_expand_dst_builtin): Likewise.
25886 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
25887 arglist. Use new CALL_EXPR accessors. Fix callers.
25888 (altivec_expand_vec_set_builtin): Likewise.
25889 (altivec_expand_vec_ext_builtin): Likewise.
25890 (altivec_expand_builtin): Use new CALL_EXPR accessors.
25891 (spe_expand_builtin): Likewise.
25892 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
25893 arglist. Use new CALL_EXPR accessors. Fix callers.
25894 (spe_expand_evsel_builtin): Likewise.
25895 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
25896 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
25897
25898 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
25899 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
25900 (arm_expand_unop_builtin): Likewise.
25901 (arm_expand_builtin): Use new CALL_EXPR accessors.
25902
25903 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
25904 accessors.
25905
25906 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
25907 CALL_EXPR instead of arglist. Use new CALL_EXPR accessors.
25908 Fix callers.
25909 (bfin_expand_unop_builtin): Likewise.
25910 (bfin_expand_builtin): Use new CALL_EXPR accessors.
25911
25912 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25913 Brooks Moses <brooks.moses@codesourcery.com>
25914 Lee Millward <lee.millward@codesourcery.com>
25915
25916 * c-semantics.c (build_stmt): Add internal diagnostic check.
25917
25918 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
25919 accessors. Print arguments explicitly instead of as a list.
25920
25921 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
25922
25923 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
25924 (c_finish_omp_flish): Likewise.
25925
25926 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
25927 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
25928 instead of TREE_CODE_LENGTH.
25929 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
25930 (c_warn_unused_result): Likewise.
25931
25932 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25933
25934 PR c/26494
25935 * doc/invoke.texi (Warning Options): Remove
25936 -Werror-implicit-function-declaration.
25937 (Wimplicit-function-declaration): Update description.
25938 * opts.c (common_handle_option): Move handling of -Werror=* to...
25939 (enable_warning_as_error): ...here.
25940 * opts.h (enable_warning_as_error): Declare.
25941 * c-decl.c (implicit_decl_warning): Unless
25942 -Wno-implicit-function-declaration is given, emit a pedwarn if
25943 -std=c99 or emit a warning if -Wimplicit-function-declaration.
25944 * c.opt (Wimplicit-function-declaration): Replace
25945 mesg_implicit_function_declaration with
25946 warn_implicit_function_declaration.
25947 * c-opts.c (c_common_handle_option):
25948 -Werror-implicit-function-declaration is exactly equal as
25949 -Werror=implicit-function-declaration.
25950 (set_Wimplicit): Replace mesg_implicit_function_declaration with
25951 warn_implicit_function_declaration.
25952 (c_common_post_options): -Wimplict-function-declaration is enabled
25953 by default by -std=c99, otherwise is disabled by default.
25954 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
25955
25956 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
25957
25958 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
25959 DECL on the rhs to a DECL on the lhs for debug info purposes if the
25960 former is ignored but not the latter.
25961
25962 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
25963
25964 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
25965 is made and the reference doesn't use the alias set of its type,
25966 do not create the temporary using that type.
25967
25968 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
25969
25970 * jump.c: Remove prototypes for delete_computation and
25971 delete_prior_computation.
25972
25973 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
25974
25975 * jump.c (get_label_after): Delete.
25976 (get_label_before, delete_computation, delete_jump,
25977 delete_prior_computation, follow_jumps): Move...
25978 * reorg.c (delete_computation, delete_prior_computation): ... here...
25979 (get_label_before, delete_jump): ... making these static ...
25980 (follow_jumps): ... and simplifying this since it only runs after
25981 reload.
25982 * rtl.h (get_label_after, get_label_before, delete_jump,
25983 follow_jumps): Delete prototypes.
25984
25985 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
25986
25987 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
25988
25989 2007-02-15 Nick Clifton <nickc@redhat.com>
25990
25991 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
25992 order to prevent it from being munged by the target.
25993
25994 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
25995
25996 * config/i386/i386.md: Remove misleading comment.
25997
25998 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
25999
26000 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
26001 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
26002 invalid patterns.
26003
26004 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
26005
26006 * tree-sra.c (instantiate_missing_elements): Canonicalize
26007 bit-field types.
26008 (sra_build_assignment): New.
26009 (generate_copy_inout, generate_element_copy,
26010 generate_element_zero, generate_one_element_init): Use it.
26011
26012 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
26013
26014 * tree-sra.c (instantiate_missing_elements): Canonicalize
26015 bit-field types.
26016 (sra_build_assignment): New.
26017 (generate_copy_inout, generate_element_copy,
26018 generate_element_zero, generate_one_element_init): Use it.
26019
26020 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
26021
26022 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
26023 limbo die nodes.
26024
26025 2007-02-14 Joseph Myers <joseph@codesourcery.com>
26026
26027 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
26028 types as aggregates not scalars.
26029 * function.c (assign_stack_temp_for_type): Likewise.
26030
26031 2007-02-14 Roger Sayle <roger@eyesopen.com>
26032 Zdenek Dvorak <dvorakz@suse.cz>
26033
26034 * tree-dump.c (dump_switch_p_1): Require exact match of the option
26035 name.
26036
26037 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
26038
26039 * passes.c (next_pass_1): Clear the next field of the copied
26040 pass structure.
26041
26042 2007-02-14 Richard Henderson <rth@redhat.com>
26043
26044 * tree-sra.c (early_sra): New.
26045 (decl_can_be_decomposed_p): Deny va_list if early_sra.
26046 (tree_sra_early, pass_sra_early): New.
26047 * tree-pass.h (pass_sra_early): Declare.
26048 * passes.c (init_optimization_passes): Use it.
26049
26050 2007-02-14 Richard Guenther <rguenther@suse.de>
26051
26052 * flags.h (issue_strict_overflow_warning): Convert to a macro.
26053
26054 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
26055
26056 PR tree-optimization/30771
26057 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
26058 also phi nodes.
26059 (vect_analyze_operations): Induction phis can now be marked as
26060 used_in_loop.
26061 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
26062 Update documentation accordingly.
26063
26064 2007-02-14 Nick Clifton <nickc@redhat.com>
26065
26066 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
26067 most 3 arguments are supported.
26068 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
26069
26070 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
26071
26072 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
26073 Ensure dst->current is valid.
26074
26075 2007-02-13 Paul Brook <paul@codesourcery.com>
26076
26077 * config.gcc: Add arm*-*-uclinux-*eabi.
26078 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
26079 (SUBTARGET_EXTRA_LINK_SPEC): Define.
26080 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
26081 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
26082 (LINK_SPEC): Define.
26083 (LIB_SPEC): Define.
26084 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
26085 register.
26086 * config/arm/uclinux-eabi.h: New file.
26087 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
26088 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
26089 based targets.
26090
26091 2007-02-13 Ian Lance Taylor <iant@google.com>
26092
26093 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
26094 * flags.h (warn_strict_overflow): Declare.
26095 (enum warn_strict_overflow_code): Define.
26096 (issue_strict_overflow_warning): New static inline function.
26097 * opts.c (warn_strict_overflow): New variable.
26098 (common_handle_option): Handle OPT_Wstrict_overflow and
26099 OPT_Wstrict_overflow_.
26100 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
26101 OPT_Wall.
26102 * fold-const.c: Include intl.h.
26103 (fold_deferring_overflow_warnings): New static variable.
26104 (fold_deferred_overflow_warning): New static variable.
26105 (fold_deferred_overflow_code): New static variable.
26106 (fold_defer_overflow_warnings): New function.
26107 (fold_undefer_overflow_warnings): New function.
26108 (fold_undefer_and_ignore_overflow_warnings): New function.
26109 (fold_deferring_overflow_warnings_p): New function.
26110 (fold_overflow_warning): New static function.
26111 (make_range): Add strict_overflow_p parameter. Change all
26112 callers.
26113 (extract_muldiv, extract_muldiv_1): Likewise.
26114 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
26115 tree_expr_nonnegative_p.
26116 (fold_negate_expr): Call fold_overflow_warning.
26117 (fold_range_test): Likewise.
26118 (fold_comparison): Likewise.
26119 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
26120 instead of tree_expr_nonnegative_p.
26121 (tree_expr_nonnegative_warnv_p): Rename from
26122 tree_expr_nonnegative_p, add strict_overflow_p parameter.
26123 (tree_expr_nonnegative_p): New function.
26124 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
26125 strict_overflow_p parameter.
26126 (tree_expr_nonzero_p): New function.
26127 * passes.c (verify_interpass_invariants): New static function.
26128 (execute_one_pass): Call it.
26129 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
26130 warnings.
26131 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
26132 (estimate_numbers_of_iterations): Likewise.
26133 (scev_probably_wraps_p): Likewise.
26134 * tree-ssa-ccp.c: Include "toplev.h".
26135 (evaluate_stmt): Defer fold overflow warnings until we know we are
26136 going to optimize.
26137 (struct fold_stmt_r_data): Add stmt field.
26138 (fold_stmt_r): Defer fold overflow warnings until we know we
26139 optimized.
26140 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
26141 (fold_stmt_inplace): Likewise.
26142 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
26143 (cleanup_control_expr_graph): Defer fold overflow warnings until
26144 we know we are going to optimize.
26145 * tree-cfg.c (fold_cond_expr_cond): Likewise.
26146 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
26147 Likewise.
26148 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
26149 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
26150 * tree-ssa-loop-manip.c (create_iv): Likewise.
26151 * c-typeck.c (build_conditional_expr): Likewise.
26152 (build_binary_op): Likewise.
26153 * tree-vrp.c (vrp_expr_computes_nonzero): Call
26154 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
26155 (extract_range_from_unary_expr): Likewise.
26156 * simplify-rtx.c (simplify_const_relational_operation): Warn when
26157 assuming that signed overflow does not occur.
26158 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
26159 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
26160 (fold_defer_overflow_warnings): Declare.
26161 (fold_undefer_overflow_warnings): Declare.
26162 (fold_undefer_and_ignore_overflow_warnings): Declare.
26163 (fold_deferring_overflow_warnings_p): Declare.
26164 (tree_expr_nonzero_warnv_p): Declare.
26165 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
26166 of warning options.
26167 (Warning Options): Document -Wstrict-overflow.
26168 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
26169 (tree-ssa-ccp.o): Likewise.
26170 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
26171 (fold-const.o): Depend on intl.h.
26172
26173 2007-02-13 Ian Lance Taylor <iant@google.com>
26174
26175 PR middle-end/30751
26176 * lower-subreg.c (resolve_simple_move): Decompose subregs in
26177 addresses.
26178
26179 2007-02-13 Stuart Hastings <stuart@apple.com>
26180
26181 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
26182
26183 2007-02-13 Richard Henderson <rth@redhat.com>
26184
26185 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
26186 handled_component_p before looking for the indirect_ref.
26187
26188 2007-02-13 Richard Henderson <rth@redhat.com>
26189
26190 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
26191 remove flags clobber.
26192 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
26193 (bswaphi_lowpart): New.
26194 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
26195 remove TARGET_BSWAP test. Delete expander of the same name.
26196
26197 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
26198 (expand_unop): Use them.
26199
26200 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
26201
26202 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
26203 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
26204 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
26205 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
26206 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
26207 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
26208 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
26209 assembler dialect choice from asm templates.
26210
26211 2007-02-12 Richard Henderson <rth@redhat.com>
26212
26213 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
26214 (fixuns_trunc<SSEMODEF>si2): Use it.
26215 * config/i386/sse.md (vec_setv4sf_0): Export.
26216 * config/i386/i386.c (ix86_build_const_vector): Export.
26217 (ix86_split_convert_uns_si_sse): Rename from
26218 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
26219 * config/i386/i386-protos.h: Update.
26220
26221 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26222
26223 PR c/29521
26224 * c-typeck.c (c_finish_return): Improve warning message.
26225
26226 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26227
26228 * alias.c (find_symbolic_term): Delete unused function.
26229
26230 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
26231
26232 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
26233 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
26234 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
26235
26236 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
26237
26238 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
26239 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
26240 the function, temporarily point the debug interface to the null one.
26241
26242 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
26243
26244 * dwarf2out.c (round_up_to_align): New static function.
26245 (field_byte_offset): Use it to round the offset.
26246
26247 2007-02-12 Richard Henderson <rth@redhat.com>
26248
26249 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
26250 (inswl_const): Export.
26251
26252 2007-02-12 Richard Henderson <rth@redhat.com>
26253
26254 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
26255 result mode of the libcall, convert back to outmode.
26256
26257 2007-02-12 Roger Sayle <roger@eyesopen.com>
26258
26259 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
26260 (bswapdi2): New define_expand to implement 32-bit implementation.
26261
26262 2007-02-12 Nick Clifton <nickc@redhat.com>
26263
26264 * doc/invoke.texi (Overall Options): Document --help=.
26265 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
26266 (cc1_options): Pass --help= on to cc1.
26267 (display_help): Add description of --help=.
26268 (process_command): Add code to handle --help=. Allow translated
26269 --help and --target-help switches to be passed on to compiler
26270 sub-process.
26271 (main): Remove unused if statement.
26272 * opts.c (columns): Remove.
26273 (LEFT_COLUMN): Define.
26274 (wrap_help): Add columns argument.
26275 (print_filtered_help): Change parameters to be an include bitmask,
26276 an exclude bitmask, an any bitmask and the column width. Move the
26277 code to display the params list here. Add code to display the
26278 status of options rather than their descriptions if the quiet flag
26279 is not active.
26280 (print_specific_help): Change parameters to be an include bitmask,
26281 an exclude bitmask and an any bitmask. Move code to look up the
26282 column width here. Decide upon the title for an options listing.
26283 (common_handle_options): Add code to handle --help=. Adapt code
26284 for --help and --target-help to use the revised form of the
26285 print_specific_help function.
26286 (print_help): Delete.
26287 (print_param_help): Delete.
26288 (print_switch): Delete.
26289 * opts.h (cl_lang_count): Add prototype.
26290 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
26291 CL_MAX_OPTION_CLASS): New defines.
26292 * optc-gen.awk: Add construction of cl_lang_count.
26293 * c.opt: Add Warning attribute to warning options and Optimization
26294 attribute to optimization options.
26295 * common.opt: Likewise.
26296 Add --help=.
26297 Add -fhelp and -ftarget-help as aliases for the transformed --help
26298 and --target-help options.
26299 * opt-functions.awk: Add code to handle Warning and Optimization
26300 attributes.
26301
26302 2007-02-12 Richard Henderson <rth@redhat.com>
26303
26304 * config/alpha/constraints.md: New file.
26305 * config/alpha/alpha.c: Include tm-constrs.h.
26306 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
26307 alpha_extra_constraint): Remove.
26308 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
26309 * config/alpha/alpha-protos.h: Update.
26310 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
26311 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
26312 (EXTRA_CONSTRAINT): Remove.
26313 * config/alpha/alpha.md: Include constraints.md.
26314 (adddi splitter): Use satisfies_constraint_*.
26315 * config/alpha/predicates.md (add_operand): Likewise.
26316 (sext_add_operand, addition_operation): Likewise.
26317
26318 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
26319
26320 PR tree-optimization/29145
26321 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
26322 in our handling of restrict qualified pointers.
26323
26324 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26325
26326 PR middle-end/7651
26327 * doc/invoke.texi (Wunused-value): Update description.
26328 (Wextra): Delete item.
26329 * opts.c (set_Wextra): Don't use the value of Wextra to set the
26330 value of Wunused-value.
26331 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
26332 (c_finish_stmt_expr): Don't check extra_warnings.
26333 (emit_side_effect_warnings): The caller is responsible to check
26334 warn_unused_value.
26335
26336 2007-02-11 Roger Sayle <roger@eyesopen.com>
26337 Matt Thomas <matt@3am-software.com>
26338
26339 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
26340
26341 2007-02-11 Roger Sayle <roger@eyesopen.com>
26342
26343 * simplify-rtx.c (simplify_relational_operation_1): Optimize
26344 comparisons of POPCOUNT against zero.
26345 (simplify_const_relational_operation): Likewise.
26346
26347 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26348
26349 * doc/invoke.texi (Wextra): Delete outdated paragraph.
26350
26351 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26352
26353 * dwarf2out.c (root_type): Delete unused function.
26354
26355 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26356
26357 * genattrtab.c (contained_in_p): Delete unused function.
26358 (write_expr_attr_cache): Likewise.
26359
26360 2007-02-11 Jan Hubicka <jh@suse.cz>
26361
26362 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
26363 previous patch.
26364
26365 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
26366
26367 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
26368 to add the REG_EQ* note.
26369 * see.c (see_merge_one_use_extension): Likewise.
26370 * local-alloc.c (update_equiv_regs): Likewise. Also don't
26371 turn REG_EQUAL notes into REG_EQUIV notes if the target
26372 register may have more than one set.
26373 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
26374 * gcse.c (try_replace_reg): Likewise.
26375 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
26376 * calls.c (fixup_tail_calls): Likewise. Abort if there is
26377 more than one REG_EQUIV note.
26378 * reload1.c (gen_reload): Use set_unique_reg_note.
26379
26380 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
26381
26382 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
26383 (ix86_builtin_conversion): New function.
26384
26385 2007-02-06 Mark Mitchell <mark@codesourcery.com>
26386
26387 PR target/29487
26388 * tree.h (DECL_REPLACEABLE_P): New macro.
26389 * except.c (set_nothrow_function_flags): Likewise.
26390
26391 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
26392 Ira Rosen <irar@il.ibm.com>
26393 Dorit Nuzman <dorit@il.ibm.com>
26394
26395 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
26396 * targhooks.c (default_builtin_vectorized_conversion): New.
26397 * targhooks.h (default_builtin_vectorized_function): New declaration.
26398 * target.h (struct vectorize): Add builtin_conversion field.
26399 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
26400 stmt_vec_info_type value.
26401 (vectorizable_conversion): New declaration.
26402 * tree-vect-analyze.c (vect_analyze_operations): Add
26403 vectorizable_conversion call.
26404 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
26405 * tree-vect-transform.c (vectorizable_conversion): New function.
26406 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
26407 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
26408 mode.
26409 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
26410 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
26411 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
26412 or ALTIVEC_BUILTIN_VCFSX.
26413
26414 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26415
26416 PR target/30634
26417 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
26418 CONST_DOUBLE and operand 0 is a hard register.
26419 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
26420 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
26421 is a hard floating-point register.
26422
26423 2007-02-10 Richard Henderson <rth@redhat.com>
26424 Jakub Jelinek <jakub@redhat.com>
26425 Alexandre Oliva <aoliva@redhat.com>
26426
26427 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
26428 * builtin-types.def (BT_WORD): Make unsigned.
26429 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
26430 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
26431 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
26432 * c-decl.c (grokdeclarator): Don't error if !have_tls.
26433 * c-parser.c (c_parser_omp_threadprivate): Likewise.
26434 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
26435 emulated tls.
26436 * expr.c (emutls_var_address): New.
26437 (expand_expr_real_1): Expand emulated tls.
26438 (expand_expr_addr_expr_1): Likewise.
26439 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
26440 * output.h (emutls_finish): Declare.
26441 * toplev.c (compile_file): Call it.
26442 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
26443 address before wrapping in CONST.
26444 * varasm.c (emutls_htab, emutls_object_type): New.
26445 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
26446 (get_emutls_object_name, get_emutls_object_type): New.
26447 (get_emutls_init_templ_addr, emutls_decl): New.
26448 (emutls_common_1, emutls_finish): New.
26449 (assemble_variable): When emulating tls, swap decls; generate
26450 constructor for the emutls objects.
26451 (do_assemble_alias): When emulating tls, swap decl and target name.
26452 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
26453 for emulated tls.
26454 * varpool.c (decide_is_variable_needed): Look at force_output.
26455 Recurse for emulated tls.
26456 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
26457 with decide_is_variable_needed.
26458 * emutls.c: New file.
26459 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
26460 tls_object for real tls.
26461
26462 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
26463
26464 PR rtl-optimization/29599
26465 * reload1.c (eliminate_regs_in_insn): Take the destination
26466 mode into account when computing the offset.
26467
26468 2007-02-09 Stuart Hastings <stuart@apple.com>
26469 Richard Henderson <rth@redhat.com>
26470
26471 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
26472 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
26473 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
26474 fixuns_truncdfhi2): New.
26475 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
26476 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
26477 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
26478 (floatunssidf2): Allow nonimmediate source.
26479 * config/i386/sse.md (movdi_to_sse): New.
26480 (vec_concatv2di): Drop '*'.
26481 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
26482 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
26483 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
26484 New.
26485 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
26486 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
26487 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
26488 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
26489 (ix86_build_signbit_mask): Fix decl of v, refactor to call
26490 ix86_build_const_vector.
26491 (x86_emit_floatuns): Rewrite.
26492
26493 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26494
26495 * genautomata.c (longest_path_length): Delete unused function.
26496 (struct state): Delete unused longest_path_length.
26497 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
26498 (get_free_state): Delete unused.
26499
26500 2007-02-09 Jan Hubicka <jh@suse.cz>
26501
26502 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
26503 * doc/invoke.texi (inline-unit-growth): Update default value.
26504
26505 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
26506 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
26507 (rebuild_cgraph_edges): Likewise.
26508 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
26509 (dump_cgraph_node): Dump frequencies.
26510 (cgraph_clone_edge): Add frequency scales.
26511 (cgraph_clone_node): Add freuqnecy.
26512 * cgraph.h (cgraph_edge): Add freuqnecy argument.
26513 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
26514 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
26515 * tree-pass.h (TODO_rebuild_frequencies): New constant.
26516 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
26517 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
26518 (save_inline_function_body): Likewise.
26519 * ipa-inline.c: inluce rtl.h
26520 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
26521 (cgraph_edge_badness): Use frequencies.
26522 (cgraph_decide_recursive_inlining): Update clonning.
26523 (cgraph_decide_inlining_of_small_function): Dump frequency.
26524 * predict.c (estimate_bb_frequencies): Export.
26525 * predict.h (estimate_bb_frequencies): Declare.
26526 * tree-inline.c (copy_bb): Watch overflows.
26527 (expand_call_inline): Update call of cgraph_create_edge.
26528 (optimize_inline_calls): Use TODO flags to update frequnecies.
26529 * passes.h: Include predict.h
26530 (init_optimization_passes): Move profile ahead.
26531 (execute_function_todo): Handle TODO_rebuild_frequencies.
26532
26533 2007-02-09 Roger Sayle <roger@eyesopen.com>
26534
26535 * config/alpha/alpha.c (emit_insxl): Force the first operand of
26536 the insbl or inswl pattern into a register.
26537
26538 2007-02-09 Roger Sayle <roger@eyesopen.com>
26539
26540 * config/ia64/ia64.md (bswapdi2): New define_insn.
26541
26542 2007-02-09 Richard Henderson <rth@redhat.com>
26543
26544 * config/i386/constraints.md (Ym): New constraint.
26545 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
26546 (movdi_1_rex64): Split sse and xmm general register moves from
26547 memory move alternatives. Use conditional register constraints.
26548 (movsf_1, movdf_integer): Likewise.
26549 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
26550 (movdf_integer_rex64): New.
26551 (pushsf_rex64): Fix output constraints.
26552 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
26553 (sse2_stored): Likewise.
26554 (sse2_storeq_rex64): New.
26555 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
26556 amd and not generic.
26557 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
26558 for optimize_size. Remove SF/DFmode hack.
26559
26560 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
26561
26562 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
26563 (bit_SSE4a): New.
26564
26565 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
26566 Richard Sandiford <richard@codesourcery.com>
26567
26568 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
26569 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
26570 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
26571 m68k/t-mlib to tmake_file.
26572 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
26573 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
26574 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
26575 Allow it to be cf or m68k. Set m68k_arch_family. If that
26576 variable is not empty, add t-$m68k_arch_family to tmake_file.
26577 Add t-mlibs to tmake_file.
26578 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
26579 * config/m68k/t-cf: New file.
26580 * config/m68k/t-m68k: Likewise.
26581 * config/m68k/t-mlibs: Likewise.
26582 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26583 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26584 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
26585 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26586 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
26587 Delete.
26588 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
26589 (INSTALL_LIBGCC): Delete.
26590 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
26591 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26592 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26593 (M68K_MLIB_CPU): Define.
26594 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26595 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26596 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
26597
26598 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
26599 Richard Guenther <rguenther@suse.de>
26600
26601 PR middle-end/23361
26602 * fold-const.c (fold_comparison): Handle obfuscated comparisons
26603 against INT_MIN/INT_MAX.
26604 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
26605 file if a loop is removed.
26606
26607 2007-02-09 Joseph Myers <joseph@codesourcery.com>
26608
26609 * calls.c (store_one_arg): Pass correct alignment to
26610 emit_push_insn for non-BLKmode values.
26611 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
26612 unaligned stack slot via a suitably aligned slot.
26613
26614 2007-02-08 DJ Delorie <dj@redhat.com>
26615
26616 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
26617 warnings.
26618 (legal_subregs): Use unsigned char, make const.
26619 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
26620
26621 2007-02-08 Paul Brook <paul@codesourcery.com>
26622
26623 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
26624 special interworking needed.
26625
26626 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
26627
26628 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
26629 conditional to __SSE2__.
26630 (Entries below should have been added to first ChangeLog
26631 entry for amdfam10 dated 2007-02-05)
26632 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
26633 defined.
26634 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
26635 defined.
26636 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
26637 defined.
26638
26639 2007-02-08 DJ Delorie <dj@redhat.com>
26640
26641 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
26642 * config/m32c/m32c.c (legal_subregs): New.
26643 (m32c_illegal_subreg_p): New.
26644 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
26645 unsupported subregs of hard regs.
26646
26647 2007-02-08 Jan Hubicka <jh@suse.cz>
26648
26649 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
26650 the same one; always update histograms.
26651
26652 2007-02-08 Diego Novillo <dnovillo@redhat.com>
26653
26654 * passes.c (init_optimization_passes): Tidy comment.
26655
26656 2007-02-08 Roger Sayle <roger@eyesopen.com>
26657
26658 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
26659 strip zero_extend, bswap and rotates from POCOUNT's argument.
26660 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
26661 zero_extend and rotates from PARITY's argument.
26662 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
26663 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
26664 of an integer constant at compile-time.
26665
26666 2007-02-08 Diego Novillo <dnovillo@redhat.com>
26667
26668 PR 30562
26669 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
26670 Update all users.
26671 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
26672 users.
26673 (init_alias_info):
26674 * tree-ssa-live.c (remove_unused_locals): Do not remove
26675 TREE_ADDRESSABLE variables.
26676 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
26677 * tree-ssa-operands.c (add_virtual_operand): Remove argument
26678 FOR_CLOBBER. Update all users.
26679 If VAR has an associated alias set, add a virtual operand for
26680 it if no alias is found to conflict with the memory reference.
26681
26682 2007-02-07 Jan Hubicka <jh@suse.cz>
26683 Robert Kidd <rkidd@crhc.uiuc.edu>
26684
26685 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
26686
26687 2007-02-07 Ian Lance Taylor <iant@google.com>
26688
26689 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
26690
26691 2007-02-07 Roger Sayle <roger@eyesopen.com>
26692
26693 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
26694 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
26695 tablejumpdi, movsi_to_cr_one): Remove constraints from
26696 define_expand's match_operands.
26697
26698 2007-02-07 Roger Sayle <roger@eyesopen.com>
26699
26700 * global.c (compute_regsets): Move declatation of "i" inside of
26701 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
26702
26703 2007-02-07 Jakub Jelinek <jakub@redhat.com>
26704
26705 PR c++/30703
26706 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
26707 of INDIRECT_REF <RESULT_DECL>.
26708
26709 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
26710
26711 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
26712 Kaz Kojima <kkojima@gcc.gnu.org>
26713
26714 PR target/29746
26715 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
26716 properly.
26717 (sh_initialize_trampoline): Add parentheses to avoid a warning.
26718
26719 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
26720
26721 * doc/loop.texi: Document possibility not to perform disambiguation
26722 of loops with multiple latches.
26723 * cfgloopmanip.c (alp_enum_p): Removed.
26724 (add_loop): Handle subloops. Use get_loop_body_with_size.
26725 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
26726 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
26727 the new forwarder block.
26728 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
26729 Handle the case latch is NULL.
26730 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
26731 modifications when marking loop exits.
26732 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
26733 be modified.
26734 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
26735 disambiguate_loops_with_multiple_latches.
26736 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
26737 before fix_loop_structure.
26738 * cfgloop.c: Include pointer-set.h and output.h.
26739 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
26740 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
26741 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
26742 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
26743 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
26744 disambiguate_multiple_latches, get_loop_body_with_size,
26745 disambiguate_loops_with_multiple_latches): New functions.
26746 (flow_loop_dump): Dump multiple latch edges.
26747 (flow_loop_nodes_find): Handle loops with multiple latches.
26748 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
26749 (glb_enum_p): Modified.
26750 (get_loop_body): Use get_loop_body_with_size.
26751 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
26752 (AVOID_CFG_MODIFICATIONS): New constant.
26753 (disambiguate_loops_with_multiple_latches, add_loop,
26754 get_loop_body_with_size): Declare.
26755 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
26756
26757 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
26758
26759 PR inline-asm/28686
26760 * global.c (compute_regsets): New function.
26761 (global_alloc): Refactored ELIMINABLE_REGSET
26762 and NO_GLOBAL_ALLOC_REGS computation out.
26763 (rest_of_handle_global_alloc): Call compute_regsets()
26764 for non-optimizing case.
26765
26766 2007-02-06 Richard Henderson <rth@redhat.com>
26767
26768 * config/i386/constraints.md (Y2): Rename from Y.
26769 (Yi): New constraint.
26770 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
26771 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
26772 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
26773 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
26774 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
26775 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
26776 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
26777 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
26778 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
26779 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
26780 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
26781 vec_extractv2si_1): Change Y constraints to Y2.
26782 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
26783 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
26784 Change Y constraints to Y2.
26785 (sse2_loadld): Change Y constraints to x.
26786
26787 2007-02-06 Roger Sayle <roger@eyesopen.com>
26788
26789 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
26790 (parity<mode>2): New define_expand using rs6000_emit_parity.
26791 * config/rs6000/rs6000.c (rs6000_emit_popcount,
26792 rs6000_emit_parity): New functions.
26793 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
26794 rs6000_emit_parity): Prototype here.
26795
26796 2007-02-06 Ian Lance Taylor <iant@google.com>
26797
26798 * lower-subreg.c (simple_move_operand): Reject CONST.
26799 (resolve_clobber): Call validate_change rather than directly
26800 assigning to XEXP (pat, 0).
26801
26802 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
26803
26804 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
26805 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
26806 (tree-cfg.o): Remove hashtab.h dependency.
26807
26808 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
26809 (struct ivopts_data): Change niters to pointer_map_t.
26810 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
26811 (niter_for_exit): Create pointer_map on demand. Change for
26812 pointer_map API.
26813 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
26814 (free_loop_data): Destroy data->niters if created and reset field.
26815 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
26816 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
26817
26818 * tree-ssa-reassoc.c: Include pointer-set.h.
26819 (bb_rank): Change to long *.
26820 (operand_rank): Change to pointer_map_t.
26821 (find_operand_rank): Return long, -1 if not found. Declare as inline.
26822 (insert_operand_rank): Accept long.
26823 (operand_entry_hash, operand_entry_eq): Remove.
26824 (get_rank): Return long. Adjust for changes above.
26825 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
26826 and operand_rank.
26827 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
26828
26829 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
26830 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
26831 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
26832 is not NULL.
26833 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
26834 directly since it cannot be NULL.
26835 (get_vi_for_tree): Rewrite for pointer_map API.
26836 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
26837 (init_alias_vars): Create vi_for_tree as pointer_map.
26838 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
26839
26840 * tree-cfg.c: Don't include hashtab.h.
26841 (edge_to_cases): Declare as pointer_map.
26842 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
26843 Delete.
26844 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
26845 (start_recording_case_labels): Create edge_to_cases as pointer_map.
26846 (end_recoding_case_labels): Cleanup edge_to_cases manually before
26847 destroying it.
26848 (record_switch_edge): Delete.
26849 (get_cases_for_edge): Adjust for pointer_map API, inline
26850 record_switch_edge (rewritten for new API), remove goto.
26851
26852 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
26853
26854 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
26855 * tree-nested.c: Include pointer-set.h.
26856 (var_map_elt, var_map_eq, var_map_hash): Delete.
26857 (struct nesting_info): Remove GTY marker. Change the two htab_t's
26858 to pointer_map_t's.
26859 (nesting_info_bitmap_obstack): New.
26860 (lookup_field_for_decl): Adjust for pointer_map API.
26861 (lookup_tramp_for_decl): Adjust for pointer_map API.
26862 (get_nonlocal_debug_decl): Adjust for pointer_map API.
26863 (get_local_debug_decl): Adjust for pointer_map API.
26864 (convert_nl_goto_reference): Adjust for pointer_map API.
26865 (convert_nl_goto_receiver): Adjust for pointer_map API.
26866 (create_nesting_tree): Create outside GGC space. Create bitmap on
26867 the new obstack. Create field_map and var_map as pointer_maps.
26868 (free_nesting_tree): Adjust for changes to create_nesting_tree.
26869 (root): Delete.
26870 (lower_nested_functions): Move root here, no need to NULL it.
26871 Initialize and release the obstack.
26872
26873 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
26874
26875 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
26876 Remove prototypes and make them non-static.
26877 (struct tree_int_map): Remove.
26878 * tree.h (struct tree_int_map): Move here, turning TO into an
26879 unsigned int.
26880 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
26881
26882 * tree.h (TREE_COMPLEXITY): Remove.
26883 (struct tree_exp): Remove complexity field.
26884 * tree.c (build1_stat): Don't set it.
26885
26886 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
26887 Victor Kaplansky <victork@il.ibm.com>
26888
26889 * tree-vectorizer.c (vect_is_simple_use): Support induction.
26890 (vect_is_simple_reduction): Support reduction with induction as
26891 one of the operands.
26892 (vect_is_simple_iv_evolution): Fix formatting.
26893 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
26894 formatting. Don't mark induction phis for vectorization.
26895 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
26896 * tree-vect-transform.c (get_initial_def_for_induction): New function.
26897 (vect_get_vec_def_for_operand): Support induction.
26898 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
26899 induction case.
26900 (vectorizable_reduction): Support reduction with induction as one of
26901 the operands.
26902 (vectorizable_type_demotion): Use def-type of stmt argument rather
26903 than dummy def-type.
26904
26905 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
26906 flag_tree_scev_cprop.
26907 * common.opt (tree-scev-cprop): New flag.
26908
26909 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
26910 call to vect_get_new_vect_var.
26911
26912 2007-02-06 Ira Rosen <irar@il.ibm.com>
26913
26914 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
26915 vectype is not NULL.
26916 (vect_pattern_recog_1): Likewise.
26917
26918 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26919
26920 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
26921 (fold_negate_expr): Likewise.
26922
26923 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
26924
26925 PR debug/30189
26926 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
26927 even if cv-qualification is the same.
26928
26929 2007-02-05 Geoffrey Keating <geoffk@apple.com>
26930
26931 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
26932 __enable_execute_stack on completion.
26933
26934 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26935
26936 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
26937 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
26938 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
26939 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
26940 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
26941 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
26942 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
26943 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
26944
26945 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26946
26947 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
26948 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
26949 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
26950 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
26951 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
26952 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
26953 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
26954 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
26955 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
26956 umuldi3_highpart_rex64, umulsi3_highpart_insn,
26957 umulsi3_highpart_zext, smuldi3_highpart_rex64,
26958 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
26959 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
26960 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
26961 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
26962 sqrtextenddfxf2_i387): Added amdfam10_decode.
26963
26964 * config/i386/athlon.md (athlon_idirect_amdfam10,
26965 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
26966 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
26967 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
26968 athlon_ivector_store_amdfam10): New define_insn_reservation.
26969 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
26970 amdfam10.
26971
26972 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26973
26974 * config/i386/athlon.md (athlon_call_amdfam10,
26975 athlon_pop_amdfam10, athlon_lea_amdfam10): New
26976 define_insn_reservation.
26977 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
26978 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
26979 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
26980
26981 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26982
26983 * config/i386/athlon.md (athlon_sseld_amdfam10,
26984 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
26985 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
26986
26987 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26988
26989 * config/i386/athlon.md (athlon_sseins_amdfam10): New
26990 define_insn_reservation.
26991 * config/i386/i386.md (sseins): Added sseins to define_attr type
26992 and define_attr unit.
26993 * config/i386/sse.md: Set type attribute to sseins for insertq
26994 and insertqi.
26995
26996 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
26997
26998 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
26999 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
27000 ssecomi_load_amdfam10, ssecomi_amdfam10,
27001 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
27002 define_insn_reservation.
27003 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
27004
27005 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27006
27007 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
27008 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
27009 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
27010 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
27011 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
27012 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
27013 define_insn_reservation.
27014
27015 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
27016 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
27017 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
27018 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
27019 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
27020
27021 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27022
27023 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
27024 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
27025 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
27026 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
27027 athlon_ssemul_load_k8): Added amdfam10.
27028
27029 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27030
27031 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
27032 (x86_sse_unaligned_move_optimal): New variable.
27033
27034 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
27035 m_AMDFAM10.
27036 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
27037 for unaligned vector SSE double/single precision loads for AMDFAM10.
27038
27039 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27040
27041 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
27042 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
27043 Define TARGET_CPU_DEFAULT_amdfam10.
27044 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
27045 (processor_type): Add PROCESSOR_AMDFAM10.
27046
27047 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
27048 processor_type in config/i386/i386.h.
27049 Enable imul peepholes for TARGET_AMDFAM10.
27050
27051 * config.gcc: Add support for --with-cpu option for amdfam10.
27052
27053 * config/i386/i386.c (amdfam10_cost): New variable.
27054 (m_AMDFAM10): New macro.
27055 (m_ATHLON_K8_AMDFAM10): New macro.
27056 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
27057 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
27058 x86_promote_QImode, x86_integer_DFmode_moves,
27059 x86_partial_reg_dependency, x86_memory_mismatch_stall,
27060 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
27061 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
27062 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
27063 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
27064 Enable/disable for amdfam10.
27065 (override_options): Add amdfam10_cost to processor_target_table.
27066 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
27067 processor_alias_table.
27068 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
27069 (ix86_adjust_cost): Add code for amdfam10.
27070
27071 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
27072
27073 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
27074 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
27075 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
27076 * config/i386/i386.h: Add builtin definition for SSE4A.
27077 * config/i386/i386.md: Add support for ABM instructions
27078 (popcnt and lzcnt).
27079 * config/i386/sse.md: Add support for SSE4A instructions
27080 (movntss, movntsd, extrq, insertq).
27081 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
27082 Add -march=amdfam10 flag.
27083 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
27084 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
27085 and amdfam10.
27086 * doc/extend.texi: Add documentation for SSE4A builtins.
27087
27088 2007-02-05 Bob Wilson <bob.wilson@acm.org>
27089
27090 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
27091
27092 2007-02-05 Richard Guenther <rguenther@suse.de>
27093
27094 * tree-vectorizer.h (vectorizable_function): Add argument type
27095 argument, change return type.
27096 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
27097 * tree-vect-transform.c (vectorizable_function): Handle extra
27098 argument, return vectorized function decl.
27099 (build_vectorized_function_call): Remove.
27100 (vectorizable_call): Handle calls with result and argument types
27101 differing. Handle loop vectorization factor correctly.
27102 * targhooks.c (default_builtin_vectorized_function): Adjust for
27103 extra argument.
27104 * targhooks.h (default_builtin_vectorized_function): Likewise.
27105 * target.h (builtin_vectorized_function): Add argument type
27106 argument.
27107 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
27108 extra argument, allow vectorizing of lrintf.
27109 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
27110 documentation of target hook.
27111
27112 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
27113
27114 PR target/30665
27115 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
27116 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
27117 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
27118
27119 2007-02-05 Roger Sayle <roger@eyesopen.com>
27120
27121 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
27122 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
27123 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
27124 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
27125 before canonicalizing sincos to cexpi.
27126 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
27127
27128 2007-02-05 Roger Sayle <roger@eyesopen.com>
27129
27130 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
27131 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
27132 (alpha_init_builtins): Use alpha_add_builtins to process tables.
27133
27134 2007-02-05 Roger Sayle <roger@eyesopen.com>
27135
27136 * mips-tfile.c (initialize_init_file): Correct endianness test.
27137
27138 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
27139
27140 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
27141 the 'y' constraint.
27142
27143 2007-02-05 Richard Sandiford <richard@codesourcery.com>
27144
27145 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
27146 saves in a PARALLEL before the register assignments.
27147
27148 2007-02-05 Richard Sandiford <richard@codesourcery.com>
27149
27150 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
27151 DWARF_FRAME_RETURN_COLUMN to be a general register.
27152 * dwarf2out.c (init_return_column_size): New function, split from...
27153 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
27154 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
27155 to be nongeneral registers.
27156 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
27157 integer registers.
27158 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
27159 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
27160
27161 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
27162
27163 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
27164
27165 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
27166
27167 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
27168 (remove_path): Use can_remove_branch_p and remove_branch instead
27169 of loop_delete_branch_edge.
27170 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
27171 (tree_transform_and_unroll_loop): Remove dead branches immediately.
27172 Update profile using scale_dominated_blocks_in_loop.
27173 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
27174 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
27175 (can_remove_branch_p, remove_branch): Declare.
27176 * tree-cfg.c (tree_can_remove_branch_p): New function.
27177 (tree_cfg_hooks): Add tree_can_remove_branch_p.
27178 * cfgrtl.c (rtl_can_remove_branch_p): New function.
27179 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
27180
27181 2007-02-05 Jan Hubicka <jh@suse.cz>
27182
27183 PR middle-end/30696
27184 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
27185 nodes in cgraph, don't remove offline copy of the function.
27186
27187 2007-02-04 Jan Hubicka <jh@suse.cz>
27188
27189 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
27190 vectors might cause maybe_lookup_element_for_expr to be called
27191 on non-sra-candidate.
27192
27193 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
27194
27195 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
27196 config/bfin/bfin.md, config/bfin/predicates.md: Follow
27197 spelling conventions.
27198
27199 2007-02-04 Richard Guenther <rguenther@suse.de>
27200
27201 PR middle-end/30636
27202 * fold-const.c (try_move_mult_to_index): Make sure to not
27203 overflow one dimension of a multi-dimensional array access.
27204
27205 2007-02-04 Jan Hubicka <jh@suse.cz>
27206
27207 * passes.c (init_optimization_passes): Reindent.
27208
27209 2007-02-04 Jan Hubicka <jh@suse.cz>
27210 Eric Botcazou <ebotcazou@adacore.com>
27211
27212 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
27213 (execute_fixup_cfg): Break out the abnormal goto code.
27214 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
27215 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
27216 (optimize_inline_calls): Call make_nonlocal_label_edges.
27217
27218 2007-02-04 Jan Hubicka <jh@suse.cz>
27219
27220 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
27221 true when something was changed.
27222 (rename_ssa_copies): When something was changed, do
27223 TODO_remove_unused_locals.
27224 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
27225 add TODO_remove_unused_locals when instruction was removed.
27226
27227 2007-02-04 Jan Hubicka <jh@suse.cz>
27228
27229 * ipa-inline.c (try_inline): Improve debug output; work on already
27230 inline edges too.
27231 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
27232 call try_inline for already inlined edges too when flattening;
27233 inline also functions that make callee growth but overall unit size
27234 reduce.
27235
27236 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
27237
27238 * config/m32c/bitops.md, config/m32c/jump.md,
27239 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
27240 config/m32r/m32r.h, config/m32r/m32r.md,
27241 config/m32r/predicates.md, config/m68hc11/larith.asm,
27242 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
27243 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
27244 config/mips/mips-protos.h, config/mips/mips.c,
27245 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
27246 config/mn10300/mn10300.h, config/mn10300/predicates.md,
27247 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
27248 spelling conventions.
27249
27250 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
27251 Follow spelling conventions.
27252
27253 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
27254
27255 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
27256 warn about C++0x compatibility.
27257
27258 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
27259
27260 * config/h8300/h8300.c, config/h8300/h8300.h,
27261 config/h8300/h8300.md: Follow spelling conventions.
27262
27263 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
27264
27265 PR middle-end/30667
27266 * combine.c (try_combine): Do not substitute source operand
27267 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
27268
27269 2007-02-03 Jan Hubicka <jh@suse.cz>
27270
27271 PR gcov-profile/30650
27272 * value-prof.c (stringop_block_profile): Fix handling of size counter;
27273 do not divide by zero for never executed counters.
27274 (tree_find_values_to_profile): Fix counters.
27275 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
27276
27277 2007-02-03 Ian Lance Taylor <iant@google.com>
27278
27279 * lower-subreg.c (simple_move_operand): New static function,
27280 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
27281 operands.
27282 (simple_move): Call simple_move_operand.
27283 (find_decomposable_subregs): Add special handling of MEMs.
27284 (can_decompose_p): Rename from cannot_decompose_p. Reverse
27285 meaning of return value. If we see a hard register, test whether
27286 it can store a word_mode value. Change all callers.
27287
27288 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27289
27290 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
27291 ftrapv insns and expanders.
27292 (subdi3): Change define_expand operand 1 to arith11_operand, and
27293 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
27294 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
27295 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
27296 respectively.
27297
27298 PR middle-end/30174
27299 * varasm.c (notice_global_symbol): Treat global objects as weak when
27300 flag_shlib is true.
27301
27302 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27303
27304 * emit-rtl.c (dconstpi): Delete.
27305 (dconstsqrt2): New.
27306 (init_emit_once): Delete dconstpi and init dconstsqrt2.
27307 * real.h (dconstpi): Delete.
27308 (dconstsqrt2): New.
27309 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
27310 (fold_builtin_hypot): Likewise.
27311
27312 2007-02-03 Tom Tromey <tromey@redhat.com>
27313
27314 PR driver/30246
27315 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
27316 -gcoff3, -gxcoff3, -gvms3 implies -dD.
27317
27318 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
27319
27320 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
27321 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
27322 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
27323 config/rs6000/cell.md, config/rs6000/darwin.h,
27324 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
27325 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
27326 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
27327 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
27328 typos. Follow spelling conventions.
27329 * doc/invoke.texi: Follow spelling conventions.
27330
27331 2007-02-03 Roger Sayle <roger@eyesopen.com>
27332
27333 * simplify-rtx.c (simplify_relational_operation_1): Implement some
27334 canonicalization transformations that attempt to simplify integer
27335 constant comparisons to become comparisons against zero.
27336
27337 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27338
27339 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
27340 fabs(x)*sqrt(2).
27341 * fold-const.c (fold_binary): Fix comment typos. Fold complex
27342 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
27343
27344 2007-02-02 Mike Stump <mrs@apple.com>
27345
27346 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
27347 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
27348 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
27349 generate a branch island.
27350
27351 2007-02-02 Bob Wilson <bob.wilson@acm.org>
27352
27353 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
27354 (xtensa_legitimate_address_p): New.
27355 (xtensa_legitimize_address): New.
27356 (xtensa_output_addr_const_extra): New.
27357 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
27358 (BASE_REG_P): New.
27359 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
27360 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
27361 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
27362 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
27363 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
27364 (xtensa_legitimize_address): New.
27365 (xtensa_output_addr_const_extra): New.
27366
27367 2007-02-02 Steve Ellcey <sje@cup.hp.com>
27368
27369 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
27370
27371 2007-02-02 Ian Lance Taylor <iant@google.com>
27372
27373 * expmed.c (expand_divmod): Add comment.
27374
27375 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
27376
27377 * emit-rtl.c (renumber_insns): Remove.
27378 * flags.h: Remove the extern for flag_renumber_insns.
27379 * rtl.h: Remove the prototype for renumber_insns.
27380 * toplev.c (flag_renumber_insns): Remove.
27381
27382 2007-02-02 Hui-May Chang <hm.chang@apple.com>
27383
27384 Revert for x86 darwin:
27385 2005-06-19 Uros Bizjak <uros@kss-loka.si>
27386
27387 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
27388 code before the following patch under TARGET_MACHO.
27389 (ix86_function_value_regno_p): Likewise.
27390
27391 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27392
27393 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
27394 COMPLEX_EXPR.
27395
27396 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
27397
27398 PR target/29682
27399 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
27400 loads to general or fp registers. Add comments.
27401 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
27402
27403 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
27404
27405 * pointer-set.c (insert_aux): Only return insertion slot.
27406 (pointer_set_insert): Adjust.
27407 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
27408 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
27409 pointer_map_traverse): New.
27410 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
27411 pointer_map_create, pointer_map_destroy, pointer_map_insert,
27412 pointer_map_contains, pointer_map_traverse): Declare.
27413
27414 2007-02-02 Jakub Jelinek <jakub@redhat.com>
27415
27416 PR middle-end/30473
27417 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
27418 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
27419
27420 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
27421
27422 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
27423
27424 (struct _dep): New type.
27425 (dep_t): New typedef.
27426 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
27427 (DEP_STATUS): New access macro. The macro with the same name was
27428 renamed to DEP_LINK_STATUS.
27429 (dep_init): Declare function
27430
27431 (struct _dep_link): New type.
27432 (dep_link_t): New typedef.
27433 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
27434 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
27435 (DEP_LINK_STATUS): New macro.
27436 (debug_dep_links): New debug function.
27437
27438 (struct _deps_list): New type.
27439 (deps_list_t): New typedef.
27440 (DEPS_LIST_FIRST): New access macro.
27441 (FOR_EACH_DEP_LINK): New cycle macro.
27442 (create_deps_list, free_deps_list, delete_deps_list): Declare
27443 functions.
27444 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
27445 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
27446 (copy_deps_list_change_con): Ditto.
27447
27448 (move_dep_link): Declare function.
27449
27450 (struct _dep_node): New type.
27451 (dep_node_t): New typedef.
27452 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
27453
27454 (struct haifa_insn_data.back_deps): New field to hold backward
27455 dependencies of the insn.
27456 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
27457 to deps_list_t.
27458 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
27459 Change its type to deps_list_t.
27460 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
27461 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
27462 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
27463
27464 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
27465
27466 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
27467
27468 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
27469 and all callers.
27470 (dep_cost): Declare.
27471
27472 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
27473 (ds_to_dk, dk_to_ds): New functions.
27474
27475 (init_dep_1): New static function.
27476 (init_dep): New function.
27477 (copy_dep): New static function.
27478
27479 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
27480 functions.
27481 (detach_dep_link): New static function.
27482 (move_dep_link): New function.
27483
27484 (dep_links_consistent_p, dump_dep_links): New static functions.
27485 (debug_dep_links): New debugging function.
27486
27487 (deps_obstack, dl_obstack, dn_obstack): New static variables.
27488
27489 (alloc_deps_list, init_deps_list): New static functions.
27490 (create_deps_list): New function.
27491 (clear_deps_list): New static function.
27492 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
27493 (deps_list_consistent_p, dump_deps_list): New static functions.
27494 (debug_deps_list): New function.
27495 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
27496 functions.
27497 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
27498
27499 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
27500 use new scheduler dependencies lists.
27501 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
27502 (sched_analyze): Ditto. Initialize dependencies lists.
27503 (add_forw_dep, compute_forward_dependences): Update to use new
27504 scheduler dependencies lists.
27505
27506 (init_dependency_caches): Init deps_obstack.
27507 (free_dependency_caches): Free deps_obstack.
27508
27509 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
27510 new scheduler dependencies lists.
27511 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
27512 (add_back_forw_dep, delete_back_forw_dep): Ditto.
27513
27514 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
27515 Update to use new scheduler dependencies lists.
27516 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
27517 (debug_dependencies): Ditto.
27518 (schedule_region): Update comments.
27519
27520 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
27521 scheduler dependencies lists.
27522 (schedule_ebb): Update comments.
27523
27524 * rtl.def (DEPS_LIST): Remove.
27525
27526 * lists.c (unused_deps_list): Remove.
27527 (free_list): Update assertions.
27528
27529 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
27530 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
27531
27532 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
27533 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
27534
27535 * haifa-sched.c (comments): Update.
27536 (insn_cost1): Remove. Inline the code into insn_cost ().
27537 (insn_cost): Update to use new scheduler dependencies lists. Move
27538 processing of the dependency cost to dep_cost ().
27539 (dep_cost): New function. Use it instead of insn_cost () when
27540 evaluating cost of the dependency. Use compatible interface to
27541 interact with the target.
27542 (priority): Update to use new scheduler dependencies lists.
27543 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
27544 with greater number of insns that depend on the insn.
27545 (schedule_insn): Update to use new scheduler dependencies lists. Add
27546 code to free backward dependencies lists. Inline and optimize code
27547 from resolve_dep () - see PR28071.
27548 (ok_for_early_queue_removal): Update to use new scheduler dependencies
27549 lists. Update call to targetm.sched.is_costly_dependence hook.
27550
27551 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
27552 scheduler dependencies lists.
27553
27554 (resolve_dep): Remove. Move the logic to schedule_insn ().
27555 (init_h_i_d): Initialize dependencies lists.
27556
27557 (process_insn_depend_be_in_spec): Rename to
27558 process_insn_forw_deps_be_in_spec. Update to use new scheduler
27559 dependencies lists.
27560 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
27561 Update to use new scheduler dependencies lists.
27562 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
27563
27564 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
27565 new scheduler dependencies lists.
27566 (build_intra_loop_deps): Ditto.
27567
27568 * target.h (struct _dep): Declare to use in
27569 gcc_target.sched.is_costly_dependence.
27570 (struct gcc_target.sched.adjust_cost): Fix typo.
27571 (struct gcc_target.sched.is_costly_dependence): Change signature to
27572 use single dep_t parameter instead of an equivalent triad.
27573 (struct gcc_target.sched.adjust_cost_2): Remove.
27574
27575 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
27576
27577 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
27578
27579 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
27580 documentation.
27581 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
27582
27583 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
27584 (REG_DEP_TRUE): Document.
27585
27586 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
27587 Change signature to correspond to the targetm.sched.adjust_cost hook.
27588 Update use in TARGET_SCHED_ADJUST_COST_2.
27589 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
27590 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
27591 new scheduler dependencies lists.
27592 (ia64_gen_check): Ditto.
27593
27594 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
27595 scheduler dependencies lists.
27596
27597 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
27598 signature to correspond to the targetm.sched.is_costly_dependence hook.
27599 (is_costly_group): Update to use new scheduler dependencies lists.
27600
27601 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
27602 instead of INSN_COST () macro.
27603
27604 2007-02-01 Ian Lance Taylor <iant@google.com>
27605
27606 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
27607
27608 2007-02-01 Guy Martin <gmsoft@gentoo.org>
27609
27610 * pa.md (tp_load): Correct mfctl instruction syntax.
27611
27612 2007-02-01 Geoffrey Keating <geoffk@apple.com>
27613
27614 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
27615 altivec_padding_size calculation on AIX. Improve comment, add
27616 assert to verify that it's right.
27617
27618 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
27619 64-bit.
27620
27621 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
27622
27623 PR inline-asm/28686
27624 * global.c (global_alloc): Add mising initialization of
27625 ELIMINABLE_REGSET.
27626
27627 2007-02-01 Roger Sayle <roger@eyesopen.com>
27628
27629 * alias.c (init_alias_analysis): Correct whitespace.
27630 * bb-reorder.c (fix_edges_for_rarely_executed_code,
27631 partition_hot_cold_basic_blocks): Likewise.
27632 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
27633 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
27634 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
27635 fold_builtin_snprintf_chk, fold_builtin_printf,
27636 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
27637 do_mpfr_arg3, do_mpfr_sincos): Likewise.
27638 * cfgcleanup.c (cleanup_cfg): Likewise.
27639 * cfgexpand.c (tree_expand_cfg): Likewise.
27640 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
27641 * function.c (get_next_funcdef_no): Likewise.
27642 * gengtype.c (main): Likewise.
27643 * genmodes.c (main): Likewise.
27644 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
27645 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
27646 * ifcvt.c (noce_emit_move_insn): Likewise.
27647 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
27648 Likewise.
27649 * stor-layout.c (get_best_mode): Likewise.
27650 * tree-ssa-loop-niter.c (get_val_for): Likewise.
27651 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
27652 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
27653 perform_var_substitution, solve_graph): Likewise.
27654 * tree-vrp.c (vrp_finalize): Likewise.
27655
27656 2007-02-01 Ian Lance Taylor <iant@google.com>
27657
27658 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
27659 high part of a paradoxical subreg, return a constant zero.
27660
27661 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
27662
27663 * toplev.c (lang_dependent_init): Call init_set_costs.
27664 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
27665
27666 2007-02-01 Richard Guenther <rguenther@suse.de>
27667
27668 PR middle-end/30656
27669 * fold-const.c (fold_negate_expr): Allow negating a
27670 constant if overflow does not change.
27671
27672 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27673
27674 * doc/c-tree.texi (Expression trees): Improve markup.
27675 * doc/tm.texi (Register Classes, Addressing Modes)
27676 (Floating Point): Fix spacing after abbreviations. Fix some
27677 typos.
27678
27679 2007-02-01 Ben Elliston <bje@au.ibm.com>
27680
27681 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
27682 * doc/contrib.texi: Likewise.
27683 * doc/install.texi: Likewise.
27684
27685 2007-01-31 Richard Henderson <rth@redhat.com>
27686 Ian Lance Taylor <iant@google.com>
27687
27688 * lower-subreg.c: New file.
27689 * rtl.def (CONCATN): Define.
27690 * passes.c (init_optimization_passes): Add pass_lower_subreg and
27691 pass_lower_subreg2.
27692 * emit-rtl.c (update_reg_offset): New static function, broken out
27693 of gen_rtx_REG_offset.
27694 (gen_rtx_REG_offset): Call update_reg_offset.
27695 (gen_reg_rtx_offset): New function.
27696 * regclass.c: Revert patch of 2006-03-05, restoring
27697 reg_scan_update.
27698 (clear_reg_info_regno): New function.
27699 * dwarf2out.c (concatn_loc_descriptor): New static function.
27700 (loc_descriptor): Handle CONCATN.
27701 * common.opt (fsplit_wide_types): New option.
27702 * opts.c (decode_options): Set flag_split_wide_types when
27703 optimizing.
27704 * timevar.def (TV_LOWER_SUBREG): Define.
27705 * rtl.h (gen_reg_rtx_offset): Declare.
27706 (reg_scan_update): Declare.
27707 * regs.h (clear_reg_info_regno): Declare.
27708 * tree-pass.h (pass_lower_subreg): Declare.
27709 (pass_lower_subreg2): Declare.
27710 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
27711 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
27712 -fsplit-wide-types.
27713 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
27714 * Makefile.in (OBJS-common): Add lower-subreg.o.
27715 (lower-subreg.o): New target.
27716
27717 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
27718
27719 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
27720
27721 2007-01-31 Anatoly Sokolov <aesok@post.ru>
27722
27723 PR target/19087
27724 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
27725
27726 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27727
27728 PR middle-end/29335
27729 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
27730
27731 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
27732
27733 * cfgloop.h: Include vec-prim.h.
27734 (enum li_flags): Remove LI_ONLY_OLD.
27735 (loop_iterator): Changed.
27736 (fel_next, fel_init): Iterate over loop tree.
27737 (FOR_EACH_LOOP_BREAK): New macro.
27738 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
27739 FOR_EACH_LOOP.
27740 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
27741 * modulo-sched.c (sms_schedule): Ditto.
27742 * tree-vectorizer.c (vectorize_loops): Ditto.
27743 * doc/loop.texi: Update information on loop numbering and behavior of
27744 FOR_EACH_LOOP wrto new loops.
27745 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
27746 add_to_evolution_1): Test nestedness of loops instead of comparing
27747 their numbers.
27748 * tree-chrec.c (chrec_fold_plus_poly_poly,
27749 chrec_fold_multiply_poly_poly, chrec_evaluate,
27750 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
27751 reset_evolution_in_loop): Ditto.
27752 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
27753
27754 2007-01-31 Dirk Mueller <dmueller@suse.de>
27755
27756 * c-common.c (warn_about_parentheses): Separate warning about
27757 un-parenthized sequence of comparison operators from the one
27758 which is supposed to warn about x <= y <= z.
27759
27760 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
27761
27762 * optabs.h (enum optab_index): Add new OTI_isinf.
27763 (isinf_optab): Define corresponding macro.
27764 * optabs.c (init_optabs): Initialize isinf_optab.
27765 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
27766 patterns.
27767 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
27768 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
27769 using isinf_optab.
27770 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
27771 expand_builtin_interclass_mathfn.
27772 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
27773 * config/i386/i386.md (UNSPEC_FXAM): New constant.
27774 (fxam<mode>2_i387): New insn pattern.
27775 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
27776 built-in functions as x87 inline asm.
27777
27778 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
27779
27780 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
27781
27782 2007-01-30 Eric Christopher <echristo@apple.com>
27783
27784 * config.gcc: Add geode.
27785
27786 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
27787
27788 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
27789 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
27790 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
27791 value-prof.c: Fix comment typos.
27792
27793 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27794
27795 PR c++/24745
27796 * doc/invoke.texi (Wpointer-arith): Document warning.
27797
27798 2007-01-30 Janis Johnson <janis187@us.ibm.com>
27799
27800 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
27801 the list of discrepancies from the draft TR.
27802
27803 2007-01-30 Dirk Mueller <dmueller@suse.de>
27804
27805 PR c++/30601
27806 * doc/invoke.texi (-Wreturn-type): Update description to
27807 match new behavior.
27808
27809 2007-01-30 Richard Sandiford <richard@codesourcery.com>
27810
27811 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
27812
27813 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
27814
27815 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
27816 to handle optabs that operate on floating point input argument and
27817 output to integer output.
27818 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
27819 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
27820 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
27821 expand_builtin_interclass_mathfn ().
27822 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
27823 (ilogbsi2): Remove.
27824 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
27825 ilogbl built-in functions as x87 intrinsics.
27826
27827 2007-01-30 Richard Guenther <rguenther@suse.de>
27828
27829 PR middle-end/27657
27830 * dwarf2out.c (reference_to_unused): Query varpool if the
27831 variable was output.
27832
27833 2007-01-30 Richard Guenther <rguenther@suse.de>
27834
27835 PR middle-end/30313
27836 * passes.c (execute_one_pass): Reset in_gimple_form to not
27837 confuse non-unit-at-a-time mode.
27838
27839 2007-01-29 Roger Sayle <roger@eyesopen.com>
27840 Richard Guenther <rguenther@suse.de>
27841
27842 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
27843 avoid undefined behaviour on overflow. Use force_fit_type_double
27844 to construct the constant with the specified TREE_OVERFLOW.
27845
27846 2007-01-29 Janis Johnson <janis187@us.ibm.com>
27847
27848 * config/dfp-bit.c: Add parameterized support for fp exceptions.
27849 * config/dfp-bit.h: Ditto.
27850
27851 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27852
27853 * c-decl.c (pop_scope): Replace warnings with call to
27854 warn_for_unused_label.
27855 * c-common.h (warn_for_unused_label): Declare.
27856 * c-common.c (warn_for_unused_label): Define.
27857
27858 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27859
27860 * tree-optimize.c (update_inlined_to_pointers): Delete unused
27861 function.
27862
27863 2007-01-29 Janis Johnson <janis187@us.ibm.com>
27864
27865 * Makefile.in (USER_H): Remove decfloat.h.
27866 * ginclude/decfloat.h: Delete, moving contents to ...
27867 * ginclude/float.h: Add support for decimal floating point,
27868 guarded by __STDC_WANT_DEC_FP__.
27869
27870 2007-01-29 Mike Stump <mrs@apple.com>
27871
27872 * doc/gccint.texi (Top): Rename Loop Representation to Loop
27873 Analysis and Representation to resolve case insensitive conflict.
27874 * doc/loop.texi (Loop Analysis and Representation): Likewise.
27875
27876 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
27877
27878 * tree.h (struct tree_memory_tag): Add aliases member.
27879 (MTAG_ALIASES): New macro.
27880 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
27881 (add_may_alias): Remove pointer-set. Update for may_aliases being
27882 a bitmap.
27883 (mark_aliases_call_clobbered): Update for may_aliases being a
27884 bitmap.
27885 (compute_tag_properties): Ditto.
27886 (create_partition_for): Ditto.
27887 (compute_memory_partitions): Ditto.
27888 (dump_may_aliases_for): Ditto.
27889 (is_aliased_with): Ditto.
27890 (add_may_alias_for_new_tag): Ditto.
27891 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
27892 (compute_is_aliased): New function.
27893 (compute_may_aliases): Call compute_is_aliased).
27894 (init_alias_info): Initialize alias_bitmap_obstack.
27895 (union_alias_set_into): New function.
27896 (compute_flow_sensitive_aliasing): Use union_aliases_into.
27897 (have_common_aliases_p): Rewrite to take two bitmaps and use
27898 intersection.
27899 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
27900 Update for bitmaps.
27901 (finalize_ref_all_pointers): Update for add_may_alias changes.
27902 (new_type_alias): Ditto.
27903 * tree-flow-inline.h (may_aliases): Return a bitmap.
27904 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
27905 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
27906 may_aliases being a bitmap.
27907 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
27908 may_aliases now returns a bitmap.
27909 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
27910 being a bitmap.
27911 * tree-ssa-operands.c (add_virtual_operand): Update for
27912 may_aliases being a bitmap.
27913
27914 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
27915
27916 PR tree-optimization/30630
27917 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
27918 variable as changed.
27919
27920 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
27921
27922 PR c++/28266
27923 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
27924 expanded only once even if an error occurs.
27925
27926 2007-01-29 Ben Elliston <bje@au.ibm.com>
27927
27928 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
27929 (__gcov_average_profiler): Likewise.
27930 (__gcov_ior_profiler): Likewise.
27931 (__gcov_merge_ior): Likewise.
27932
27933 2007-01-28 Jan Hubicka <jh@suse.cz>
27934
27935 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
27936 * value-prof.c (stringop_block_profile): Likewise.
27937
27938 2007-01-28 Jan Hubicka <jh@suse.cz>
27939
27940 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
27941 Add variant handling histograms; add wrapper.
27942 (clear_storage_via_libcall): Export.
27943 (emit_block_move_hints): Break out from ...; add histograms.
27944 (emit_block_move): ... this one.
27945 (clear_storage_hints): Break out from ...; add histograms.
27946 (clear_storage): ... this one.
27947 (set_storage_via_memset): Handle histogram.
27948 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
27949 (clear_storage_hints, clear_storage_via_libcall): Declare.
27950 (set_storage_via_setmem): Update prototype.
27951 * doc/md.texi (movmem, setmem): Document new arguments.
27952
27953 * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
27954 Add new histograms.
27955 (stringop_block_profile): New global function.
27956 (tree_stringops_values_to_profile): Profile block size and alignment.
27957 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
27958 HIST_TYPE_IOR.
27959 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
27960 (stringop_block_profile): Declare.
27961 * builtins.c: Include value-prof.h.
27962 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
27963 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
27964 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
27965 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
27966 * profile.c (instrument_values): Add new counters.
27967 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
27968 calls.
27969 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
27970 (tree_init_edge_profiler): Build new profilers.
27971 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
27972 (pass_tree_profile): Add dump.
27973 (tree_profile_hooks): Update.
27974 * Makefile.in (LIBGCOV): Add new constants.
27975 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
27976 __gcov_ior_profiler): New.
27977 * i386.md (movmem/setmem expanders): Add new optional arguments.
27978
27979 2007-01-28 David Edelsohn <edelsohn@gnu.org>
27980
27981 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
27982
27983 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
27984
27985 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
27986 (tree_unswitch_single_loop): Pass eni_size_weights to
27987 tree_num_loop_insns.
27988 * tree-ssa-loop-manip.c: Include tree-inline.h.
27989 (can_unroll_loop_p): Pass eni_size_weights to
27990 tree_num_loop_insns.
27991 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
27992 Pass eni_size_weights to estimate_num_insns.
27993 * tree.h (init_inline_once): Export.
27994 * toplev.c (backend_init): Call init_inline_once.
27995 * cgraphunit.c (cgraph_process_new_functions,
27996 cgraph_analyze_function): Pass eni_inlining_weights to
27997 estimate_num_insns.
27998 * ipa-inline.c (compute_inline_parameters): Ditto.
27999 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
28000 to estimate_num_insns.
28001 (try_unroll_loop_completely): Pass eni_size_weights to
28002 tree_num_loop_insns.
28003 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
28004 ot estimate_num_insns.
28005 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
28006 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
28007 * tree-inline.c (eni_inlining_weights, eni_size_weights,
28008 eni_time_weights): New variables.
28009 (init_inline_once): Initialize them.
28010 (struct eni_data): Mew.
28011 (estimate_num_insns_1, estimate_num_insns): Use weights.
28012 * tree-inline.h (struct eni_weights_d): New.
28013 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
28014 (estimate_num_insns): Declaration changed.
28015 * cfgloop.h (tree_num_loop_insns): Declaration changed.
28016 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
28017 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
28018
28019 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
28020
28021 * tree-data-ref.c (conflict_fn): Assert that the number of affine
28022 relations in the conflict function is valid.
28023
28024 2007-01-27 Ian Lance Taylor <iant@google.com>
28025
28026 * common.opt: Add fstrict-overflow.
28027 * opts.c (decode_options): Set flag_strict_overflow if -O2.
28028 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
28029 (TYPE_OVERFLOW_UNDEFINED): Define.
28030 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
28031 Replace all uses.
28032 * tree.h (TYPE_TRAP_SIGNED): Don't define.
28033 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
28034 (fold_negate_expr): Likewise.
28035 (make_range): Likewise.
28036 (extract_muldiv_1): Likewise.
28037 (maybe_canonicalize_comparison): Likewise.
28038 (fold_comparison): Likewise.
28039 (fold_binary): Likewise.
28040 (tree_expr_nonnegative_p): Likewise.
28041 (tree_expr_nonzero_p): Likewise.
28042 * tree-vrp.c (compare_values): Likewise.
28043 (extract_range_from_binary_expr): Likewise.
28044 (extract_range_from_unary_expr): Likewise.
28045 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
28046 Likewise.
28047 (nowrap_type_p): Likewise.
28048 * tree-scalar-evolution.c (simple_iv): Likewise.
28049 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
28050 (build_range_check): Likewise.
28051 (extract_muldiv_1): Likewise.
28052 (fold_comparison): Likewise.
28053 * tree-vrp.c (vrp_int_const_binop): Likewise.
28054 (extract_range_from_unary_expr): Likewise.
28055 * convert.c (convert_to_integer): Likewise.
28056 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
28057 (fold_comparison): Likewise.
28058 (fold_binary): Likewise.
28059 * optabs.c (optab_for_tree_code): Likewise.
28060 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
28061 * simplify-rtx.c (simplify_const_relational_operation): Check
28062 flag_strict_overflow and flag_trapv.
28063 (simplify_const_relational_operation): Likewise.
28064 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
28065 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
28066 -fstrict-overflow.
28067
28068 2007-01-27 Roger Sayle <roger@eyesopen.com>
28069
28070 * tree.c (tree_fold_gcd): Delete.
28071 * tree.h (tree_fold_gcd): Remove prototype.
28072 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
28073 test whether one constant integer is a multiple of another. Instead
28074 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
28075 * fold-const.c (multiple_of_p): We've determined both TOP and
28076 BOTTOM are integer constants so we can call int_const_binop directly
28077 instead of the more generic const_binop.
28078
28079 2007-01-27 Roger Sayle <roger@eyesopen.com>
28080
28081 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
28082 1*X check that the constant hasn't overflowed, to preserve the
28083 TREE_OVERFLOW bit.
28084 (round_up): Provide an efficient implementation when rouding-up an
28085 INTEGER_CST to a power-of-two.
28086
28087 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28088
28089 * doc/sourcebuild.texi: Add comma for clarity.
28090 * doc/extend.texi: Fix some typos.
28091 * doc/passes.texi: Likewise.
28092 * doc/cppinternals.texi: Likewise.
28093 * doc/c-tree.texi: Likewise.
28094 * doc/tree-ssa.texi: Likewise.
28095 * doc/install.texi: Likewise.
28096
28097 2007-01-27 Jan Hubicka <jh@suse.cz>
28098
28099 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
28100 (pass_sra): Do not require alias information.
28101 * passes.c (init_optimization_passes): Add SRA
28102
28103 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
28104
28105 * tracer.c (rest_of_handle_tracer): We already cleaned
28106 up the CFG in tracer() so don't do it here again.
28107 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
28108 cleanup_cfg here, either. And don't call renumber_insns.
28109
28110 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
28111 and BB_HEAD are in the insn stream here. Instead make sure
28112 that BB_INSN is valid on all insns. Also, do check here that
28113 there are no pending branch predictions...
28114 (rtl_verify_flow_info): ...instead of doing it here. Checks
28115 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
28116 here.
28117
28118 2007-01-26 Roger Sayle <roger@eyesopen.com>
28119
28120 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
28121 function to simplify/factorize operand order canonicalization.
28122 (ix86_fixup_binary_operands): Reorganize using the above function.
28123 (ix86_binary_operator_ok): Likewise.
28124
28125 2007-01-27 Jakub Jelinek <jakub@redhat.com>
28126
28127 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
28128 file scope from optimize_attrs.
28129 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
28130 up search.
28131 (optimize_attrs): Clear insn_code_values after freeing it.
28132
28133 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
28134
28135 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
28136 a parts.base assignment.
28137
28138 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
28139
28140 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
28141 (compute_subscript_distance, initialize_data_dependence_relation,
28142 finalize_ddr_dependent, analyze_ziv_subscript,
28143 analyze_siv_subscript_cst_affine,
28144 compute_overlap_steps_for_affine_univar,
28145 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
28146 analyze_siv_subscript, analyze_miv_subscript,
28147 analyze_overlapping_iterations, subscript_dependence_tester_1,
28148 compute_self_dependence, free_dependence_relation): Work
28149 with affine_fn instead of chrecs.
28150 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
28151 common_affine_function, affine_function_base,
28152 affine_function_constant_p, affine_fn_op, affine_fn_plus,
28153 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
28154 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
28155 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
28156 (all_chrecs_equal_p): Removed.
28157 * tree-data-ref.h (affine_fn, conflict_function): New types.
28158 (struct subscript): Change type of conflicting_iterations_in_a
28159 and conflicting_iterations_in_b.
28160
28161 2007-01-26 Steve Ellcey <sje@cup.hp.com>
28162
28163 PR other/30182
28164 * config/pa/pa.h (TARGET_HPUX_11): New.
28165 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
28166 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
28167
28168 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
28169 Richard Guenther <rguenther@suse.de>
28170
28171 * tree-ssa-structalias.c (solve_graph): Handle case
28172 we merged the variable to another.
28173
28174 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28175
28176 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
28177 functions.
28178
28179 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
28180 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
28181
28182 2007-01-25 DJ Delorie <dj@redhat.com>
28183
28184 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
28185 allow changes to modes which don't fit in those registers.
28186
28187 * reload1.c (choose_reload_regs): Check for invalid subregs before
28188 computing their locations, not after.
28189
28190 2007-01-25 Geoffrey Keating <geoffk@apple.com>
28191
28192 PR 25127
28193 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
28194 save Altivec registers in an eh_return function.
28195 (compute_vrsave_mask): Likewise.
28196 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
28197 for saving Altivec registers.
28198 (rs6000_emit_prologue): Don't allocate stack twice in
28199 eh_return function. Correct expected value of altivec_save_offset
28200 when using save_world. Describe save of R0 to stack when using
28201 save_world. Describe stack pointer adjustment when using
28202 save_world. Remove duplicated eh_return parameter register saving.
28203 Update sp_offset variable after save_world.
28204 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
28205 darwin-world.asm.
28206 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
28207 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
28208 implies Altivec.
28209
28210 2007-01-25 Steve Ellcey <sje@cup.hp.com>
28211
28212 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
28213
28214 2007-01-25 Steve Ellcey <sje@cup.hp.com>
28215
28216 PR other/30182
28217 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
28218 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
28219
28220 2007-01-25 Richard Guenther <rguenther@suse.de>
28221
28222 * doc/invoke.texi (-Wcoverage-mismatch): Document.
28223 * common.opt (-Wcoverage-mismatch): New warning option.
28224 * coverage.c (get_coverage_counts): Ignore coverage mismatch
28225 if -Wcoverage-mismatch is given.
28226
28227 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
28228
28229 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
28230 (ipcp_driver): Change to static definition.
28231 Add dumping of the ifunctions.
28232 (constant_val_insert): Remove unused parameter. Support for SSA.
28233 (ipcp_propagate_const): Support for SSA.
28234 (ipcp_profile_bb_print): Print only analyzed nodes.
28235 (ipcp_replace_map_create): Remove support for Fortran constant
28236 for now.
28237 * ipa-prop.c (ipa_method_modify_stmt,
28238 ipa_callsite_compute_param): Support for SSA.
28239 * ipa-prop.h (ipcp_driver): Remove declaration.
28240 (IS_VALID_TREE_MAP_INDEX): Add define.
28241
28242 2007-01-24 Geoffrey Keating <geoffk@apple.com>
28243
28244 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
28245
28246 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28247
28248 PR middle-end/30447
28249 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
28250 constant argument to cabs and do it without checking for
28251 -funsafe-math-optimizations.
28252
28253 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
28254
28255 * c-common.h (RID_FIRST_CXX0X): New.
28256 (RID_LAST_CXX0X): New.
28257 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
28258 by -Wall.
28259 * c.opt (Wc++0x-compat): New.
28260 * doc/invoke.texi (-Wc++0x-compat): Document.
28261
28262 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28263
28264 * builtins.c (fold_builtin_carg): New.
28265 (fold_builtin_1): Use it.
28266
28267 2007-01-24 Jan Hubicka <jh@suse.cz>
28268
28269 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
28270
28271 * ipa-inline.c (initial_insns, max_insns): Delete.
28272 (compute_max_insns): New function.
28273 (cgraph_decide_inlining_of_small_function): Use it; take minimal
28274 amount of insns as base for code growth.
28275 (cgraph_decide_inlining): Make initial_insns local; do not compute
28276 max_insns.
28277 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
28278 * doc/invoke.texi (inline-unit-growth): Update docs.
28279
28280 2007-01-24 Jakub Jelinek <jakub@redhat.com>
28281
28282 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
28283 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
28284 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
28285 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
28286 for CPUs that have PTA_CX16 set.
28287
28288 PR middle-end/27416
28289 * gimplify.c (omp_check_private): New function.
28290 (gimplify_scan_omp_clauses): Use it for
28291 firstprivate/lastprivate/reduction.
28292
28293 PR middle-end/30494
28294 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
28295 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
28296
28297 PR middle-end/30421
28298 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
28299 If lower_lastprivate_clauses emits some statements, append them
28300 to dlist rather than body_p and to body_p append an initializer.
28301 (lower_omp_for): Adjust caller.
28302
28303 2007-01-24 Steve Ellcey <sje@cup.hp.com>
28304
28305 * target.h (globalize_decl_name): New.
28306 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
28307 * output.h (default_globalize_decl_name): New.
28308 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
28309 globalize_label.
28310 (globalize_decl): Ditto.
28311 (default_globalize_decl_name): New.
28312 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
28313 (ia64_handle_version_id_attribute): New.
28314 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
28315 (ia64_asm_output_external): Use globalize_decl_name instead
28316 of globalize_label.
28317 * doc/extend.texi (version_id): New pragma.
28318 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
28319
28320 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
28321
28322 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
28323 _uleb128_t and _Unwind_SWord with _sleb128_t.
28324 * unwind-dw2.c (extract_cie_info, execute_stack_op,
28325 execute_cfa_program, uw_frame_state_for, uw_update_context_1):
28326 Likewise.
28327 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
28328 * unwind-pe.h (read_uleb128, read_sleb128,
28329 read_encoded_value_with_base): Likewise.
28330 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
28331
28332 2007-01-24 Richard Guenther <rguenther@suse.de>
28333
28334 * builtins.c (expand_builtin_cexpi): Get the fndecl
28335 for cexp in the correct way.
28336
28337 2007-01-24 Jan Hubicka <jh@suse.cz>
28338
28339 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
28340 of calls.
28341
28342 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
28343
28344 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
28345 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
28346 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
28347 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
28348 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
28349 __SIZEOF_PTRDIFF_T__.
28350 * doc/cpp.texi: Documentation for the new builtin macros added.
28351
28352 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
28353
28354 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
28355 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
28356 instead of operands[2] to avoid access past the end of array.
28357
28358 2007-01-24 Richard Sandiford <richard@codesourcery.com>
28359
28360 * reload1.c (emit_reload_insns): Pass the reload register
28361 for a non-spill output reload through forget_old_reloads_1.
28362
28363 2007-01-23 Joseph Myers <joseph@codesourcery.com>
28364
28365 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
28366 _SOFT_DOUBLE if doubles use software floating-point.
28367 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
28368 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
28369 * config/rs6000/darwin-ldouble.c: Also compile functions for
28370 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
28371 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
28372 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
28373 commented-out long double override.
28374 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
28375 * config/rs6000/eabispe.h: Likewise.
28376 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
28377 long double for non-SPE.
28378 (rs6000_handle_option): Likewise.
28379 (invalid_e500_subreg): Disallow more subregs involding DImode,
28380 DFmode, TImode or TFmode.
28381 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
28382 E500 double.
28383 (legitimate_lo_sum_address_p): Also check for TFmode for E500
28384 double.
28385 (rs6000_legitimize_address): Also handle TFmode for E500 double.
28386 (rs6000_legitimize_reload_address): Also handle TFmode for E500
28387 double.
28388 (rs6000_legitimate_address): Also check for TFmode for E500
28389 double.
28390 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
28391 (spe_build_register_parallel): Handle TFmode and TCmode.
28392 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
28393 double.
28394 (function_arg): Handle TFmode and TCmode for E500 double.
28395 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
28396 in general.
28397 (print_operand): Handle TFmode and TImode for %y.
28398 (rs6000_generate_compare): Handle TFmode comparisons for E500
28399 double.
28400 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
28401 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
28402 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
28403 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
28404 TFmode for E500 double.
28405 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
28406 (floatsidf2): Enable for E500 double.
28407 (movtf_softfloat): Use rs6000_nonimmediate_operand.
28408 (extenddftf2): Change to extenddftf2_fprs.
28409 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
28410 depending on TARGET_E500_DOUBLE.
28411 (extendsftf2): Enable for E500 double.
28412 (trunctfdf2): Enable for E500 double.
28413 (trunctfsf2): Change to trunctfsf2_fprs.
28414 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
28415 depending on TARGET_E500_DOUBLE.
28416 (floatsitf2): Enable for E500 double.
28417 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
28418 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
28419 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
28420 (negtf2): Change to negtf2_internal.
28421 (negtf2): New expander.
28422 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
28423 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
28424 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
28425 (movdi_internal32): Use rs6000_nonimmediate_operand.
28426 (unnamed splitter): Likewise.
28427 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
28428 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
28429 (SPE64TF, DITI): New mode macros.
28430 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
28431 modes.
28432 (frob_tf_ti): New.
28433 (frob_<mode>_di_2): New.
28434 (frob_tf_di_8_2): New.
28435 (frob_di_df): Change to frob_di_<mode>; allow more modes.
28436 (frob_ti_tf): New.
28437 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
28438 more modes.
28439 (frob_ti_<mode>_8_2): New.
28440 (frob_ti_tf_2): New.
28441 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
28442 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
28443 TFmode.
28444 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
28445 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
28446 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
28447 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
28448 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
28449 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
28450 tsttflt_gp): New.
28451
28452 2007-01-23 Ian Lance Taylor <iant@google.com>
28453
28454 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
28455 insn-*.o first.
28456 (OBJS-archive): Reformat, alphabetize.
28457 (OBJS): Change out_object_file to OBJS-md.
28458
28459 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
28460
28461 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
28462 JUMP_P and CALL_P predicates where applicable.
28463 * config/i386/i386.c: Ditto.
28464 * config/i386/i386.md: Ditto.
28465 * config/i386/mmx.md: Ditto.
28466 * config/i386/predicates.md: Ditto.
28467
28468 2007-01-22 Andreas Schwab <schwab@suse.de>
28469
28470 * config/m68k/m68k.h: Fix comment.
28471
28472 2007-01-22 Jan Hubicka <jh@suse.cz>
28473
28474 * passes.c (init_optimization_passes): Do not rerun
28475 pass_early_warn_uninitialized.
28476
28477 2007-01-22 Richard Guenther <rguenther@suse.de>
28478
28479 PR tree-optimization/30038
28480 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
28481 function.
28482 (execute_cse_sincos_1): Likewise.
28483 (execute_cse_sincos): Likewise.
28484 (gate_cse_sincos): Likewise.
28485 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
28486 the cexpi() canonicalization of sincos().
28487 * tree-pass.h (pass_cse_sincos): Declare.
28488 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
28489
28490 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
28491
28492 PR rtl-optimization/29329
28493 * combine.c (replaced_rhs_insn): Rename to i2mod.
28494 (replaced_rhs_value): Rename to i2mod_new_rhs.
28495 (i2mod_old_rhs): New global variable.
28496 (combine_instructions): Adjust for above change. Save a copy of
28497 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
28498 note are substituted in the second instruction.
28499 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
28500 ditch the note if it pertains to the second eliminated register
28501 and this register is mentioned in i2mod_old_rhs.
28502
28503 Revert:
28504 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
28505
28506 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
28507 the insn to which the note was originally attached.
28508
28509 2007-01-21 Jan Hubicka <jh@suse.cz>
28510
28511 * ipa-inline.c (inlining_mode): Comment, move up.
28512 (cgraph_decide_inlining_incrementally): Do not perform inlining
28513 itself; fix handling of flattening of self recursive functions.
28514 (cgraph_find_cycles): Remove.
28515 (cgraph_flatten_node): Remove.
28516 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
28517 (try_inline): New function.
28518 (cgraph_early_inlining): Update call of
28519 cgraph_decide_inlining_incrementally. Apply inlining here.
28520 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
28521
28522 2007-01-21 Dirk Mueller <dmueller@suse.de>
28523
28524 PR bootstrap/30511
28525 * tree-vrp.c (check_array_bounds): do not warn
28526 about ADDR_EXPR's of ARRAY_REF's which are immediately
28527 used in binary expressions.
28528
28529 2007-01-21 Ira Rosen <irar@il.ibm.com>
28530
28531 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
28532 read_write_dep and macros for its access.
28533 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
28534 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
28535 argument, call vect_check_interleaving for every independent pair of
28536 data-refs. Mark loads that access the same memory location as a store
28537 in the loop.
28538 (vect_check_dependences): Remove.
28539 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
28540 call, fix the call to vect_analyze_data_ref_dependence.
28541 (vect_analyze_data_ref_access): For statements that access the same
28542 data-ref, check that they are not stores; for loads, check that there
28543 is no store that access the same location.
28544
28545 2007-01-20 Roger Sayle <roger@eyesopen.com>
28546 Joseph Myers <joseph@codesourcery.com>
28547
28548 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
28549 (-fdump-rtl-stack): Likewise.
28550 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
28551 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
28552 (-mpt-fixed): Use @minus{} for minus sign.
28553 (Using Precompiled Headers): Fix under/overfull hbox.
28554
28555 2007-01-20 Jan Hubicka <jh@suse.cz>
28556
28557 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
28558 place within annotation.
28559
28560 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28561
28562 * pa.c (output_move_double): Change array size of xoperands to 4.
28563
28564 2007-01-20 Jan Hubicka <jh@suse.cz>
28565
28566 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
28567 as temporary.
28568
28569 2007-01-19 Ian Lance Taylor <iant@google.com>
28570
28571 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
28572 constant to unsigned HOST_WIDE_INT before negating.
28573
28574 2007-01-19 Ian Lance Taylor <iant@google.com>
28575
28576 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
28577 to unsigned.
28578 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
28579 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
28580 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
28581 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
28582 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
28583 (realloc_vdef, realloc_vuse): Change second parameter to
28584 unsigned.
28585 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
28586 fields to unsigned.
28587 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
28588 unsigned. Change x and lim locals to unsigned.
28589 (realloc_vdef, realloc_vuse): Change num_elem parameter to
28590 unsigned.
28591 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
28592 (copy_virtual_operands): Change i and n locals to unsigned.
28593
28594 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28595
28596 PR middle-end/29335
28597 * builtins.c (fold_builtin_1): Handle builtin fdim.
28598
28599 2007-01-20 Jan Hubicka <jh@suse.cz>
28600
28601 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
28602 * tree-ssa-structalias.c (compute_points_to_sets): Do call
28603 init_alias_heapvars.
28604 (init_alias_heapvars): Initialize only when not already initialized.
28605 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
28606
28607 2007-01-19 Roger Sayle <roger@eyesopen.com>
28608
28609 * common.opt (fsigned-zeros): New command line option.
28610 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
28611 of flag_unsafe_math_optimizations.
28612 * opts.c (set_fast_math_flags): The -ffast-math command line option
28613 implies -fno-signed-zeros.
28614 (fast_math_flags_set_p): Likewise.
28615
28616 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
28617 the documentation of -ffast-math appropriately. Wrap long lines.
28618
28619 2007-01-19 Steve Ellcey <sje@cup.hp.com>
28620
28621 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
28622 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
28623
28624 2007-01-19 Tomas Bily <tbily@suse.cz>
28625
28626 * cgraphunit.c (cgraph_finalize_function): Updating of pid
28627 * tree-profile.c:
28628 (tree_init_ic_make_global_vars): New function
28629 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
28630 (tree_gen_ic_profiler): New function
28631 (tree_gen_ic_func_profiler): New function
28632 (tree_profiling): Added calling of tree_gen_ic_func_profiler
28633 (tree_profile_hooks): Added hook for indirec/virtual calls
28634 * value-prof.c (tree_find_values_to_profile): New case for
28635 indirect calls
28636 (tree_values_to_profile): Call for determining indirect/virtual
28637 counters
28638 (tree_indirect_call_to_profile): New function
28639 (tree_ic_transform): New function
28640 (tree_ic): New function
28641 (find_func_by_pid): New function
28642 (init_pid_map): New function
28643 (tree_value_profile_transformations): Added check for
28644 indirect/virtual call transformation
28645 * value-prof.h (enum hist_type): New counter type for
28646 indirect/virtual calls
28647 (profile_hooks): Added new hook for profiling indirect/virtual
28648 calls
28649 * profile.c (instrument_values): New case for indirect/virtual
28650 call added
28651 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
28652 (GCOV_COUNTER_V_INDIR): New counter type
28653 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
28654 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
28655 call added
28656 * cgraph.c: Definition of cgraph_max_pid
28657 (cgraph_create_node): Default init of pid attribute
28658 * cgraph.h: Declaration of cgraph_max_pid
28659 (struct cgraph_node): Added pid attribute
28660 * libgcov.c (__gcov_indirect_call_profiler): New function
28661 (__gcov_one_value_profiler_body): New function
28662 (__gcov_one_value_profiler): Body was moved to
28663 __gcov_one_value_profiler_body and calls it
28664
28665 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
28666
28667 * doc/gty.texi (Options): Document the mark_hook option to GTY.
28668 * gengtype.c (write_types_data, write_func_for_structure,
28669 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
28670 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
28671 (walk_type, write_func_for_structure): Generate the mark_hook if
28672 needed.
28673
28674 2007-01-19 Jan Hubicka <jh@suse.cz>
28675
28676 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
28677 'early' argument take inlining mode argument specifying whether to
28678 inline for size/speeed or all functions; add support for flattening;
28679 improve dumpting.
28680 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
28681
28682 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
28683
28684 PR c++/17947
28685 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
28686 the name of the declared identifier.
28687
28688 2007-01-19 Dirk Mueller <dmueller@suse.de>
28689
28690 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
28691 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
28692 duplicate evaluation.
28693
28694 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
28695
28696 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
28697 Macroize expander using X87MODEF12 mode macro. Extend operand 1
28698 to XFMode, use acosxf2 and truncate result to requested mode.
28699 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
28700 (asin<mode>2): Similarly, with asin expanders.
28701 (*fscalexf4_i387): Rename from *fscalexf4.
28702 (expNcorexf3): New expander.
28703 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
28704 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
28705 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
28706 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
28707 patterns for SSE math.
28708 (exp10<mode>2): Similarly, with exp10 expanders.
28709 (exp2<mode>2): Similarly, with exp2 expanders.
28710 (expm1<mode>2): Similarly, with expm1 expanders.
28711 (ldexp<mode>3): Similarly, with ldexp expanders.
28712 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
28713 Use gen_truncxf<mode>2_i387_noop to truncate result.
28714
28715 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28716
28717 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
28718 for ColdFire targets.
28719
28720 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
28721 Richard Sandiford <richard@codesourcery.com>
28722
28723 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
28724 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
28725 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
28726 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
28727 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
28728 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
28729
28730 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28731
28732 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
28733 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
28734 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
28735 (*adddi_dilshr32_cf): New pattern.
28736 (adddi3, subdi3): Remove first alternatives.
28737
28738 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28739
28740 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
28741 implemented using move.l, do not use its cc result for floating-point
28742 comparisons.
28743
28744 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28745
28746 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
28747 from accepting 's' constraints if flag_pic.
28748
28749 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28750
28751 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
28752 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
28753 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
28754 condition from TARGET_68881 to TARGET_HARD_FLOAT.
28755
28756 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
28757
28758 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
28759 ColdFire alternatives.
28760 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
28761 * config/m68k/m68k.md (clzsi2): Define for ColdFire
28762 architectures that support ff1 instruction.
28763
28764 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28765 Julian Brown <julian@codesourcery.com>
28766
28767 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
28768 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
28769 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
28770 Add commentary.
28771
28772 2007-01-19 Richard Sandiford <richard@codesourcery.com>
28773
28774 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
28775 and return a bool.
28776 (output_move_const_into_data_reg, output_move_simode_const): Delete.
28777 * config/m68k/m68k.c (const_method, const_int_cost): Take a
28778 HOST_WIDE_INT instead of an rtx.
28779 (m68k_rtx_costs): Update call accordingly.
28780 (output_move_const_into_data_reg): Likewise. Fix formatting.
28781 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
28782 Return a bool.
28783 (output_move_simode_const): Update calls after above changes.
28784 Rework to use automatic variables and predicates like MEM_P.
28785 * config/m68k/m68k.md (pushexthisi_const): Update call to
28786 valid_mov3q_const.
28787
28788 2007-01-19 Dirk Mueller <dmueller@suse.de>
28789
28790 * tree-ssa-alias.c (perform_var_substitution): Fix typo
28791 in dump_flags test.
28792
28793 2007-01-19 Richard Guenther <rguenther@suse.de>
28794
28795 * builtins.c (expand_builtin_cexpi): Fall back to expanding
28796 via cexp in case sincos is not available.
28797
28798 2007-01-19 Richard Guenther <rguenther@suse.de>
28799
28800 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
28801 * defaults.h (TARGET_HAS_SINCOS): Default to off.
28802 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
28803 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
28804 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
28805 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
28806 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
28807 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
28808
28809 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
28810
28811 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
28812 New insn patterns.
28813 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
28814 (atan2xf3): Directly generate RTL pattern.
28815 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
28816 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
28817 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
28818 disable patterns for SSE math.
28819 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
28820 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
28821 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
28822 disable patterns for SSE math.
28823
28824 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
28825
28826 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
28827
28828 2007-01-18 Roger Sayle <roger@eyesopen.com>
28829
28830 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
28831 VIEW_CONVERT_EXPR to the same type as it's operand.
28832
28833 2007-01-18 David Edelsohn <edelsohn@gnu.org>
28834
28835 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
28836 configured for long double 128.
28837
28838 2007-01-18 Mike Stump <mrs@apple.com>
28839
28840 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
28841 error.
28842
28843 2007-01-18 Michael Meissner <michael.meissner@amd.com>
28844
28845 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
28846 type correct.
28847
28848 2007-01-18 Jan Hubicka <jh@suse.cz>
28849
28850 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
28851 greater than NUM_VOP_FREE_BUCKETS.
28852
28853 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
28854
28855 * tree-ssa-structalias.c: Update comments.
28856 (ptabitmap_obstack): Removed.
28857 (pta_obstack): New.
28858 (oldpta_obstack): Ditto.
28859 (stats): Add a few members.
28860 (struct variable_info): Remove node, complex, address_taken, and
28861 indirect_target members. Add oldsolution member.
28862 (new_var_info): Do not initialize removed members.
28863 (constraint_expr_type): Remove INCLUDES.
28864 (constraint_graph): Add size, implicit_preds, rep,
28865 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
28866 (FIRST_REF_NODE): New macro.
28867 (LAST_REF_NODE): Ditto.
28868 (FIRST_ADDR_NODE): Ditto.
28869 (find): New function.
28870 (unite): Ditto.
28871 (dump_constraint): Do not handle INCLUDES.
28872 (insert_into_complex): Do not insert duplicate constraints.
28873 (condense_varmap_nodes): Renamed and rewritten into ...
28874 (merge_node_constraints): This. Also fix bug in handling of
28875 offseted copy constraints.
28876 (clear_edges_for_node): No longer need to deal with preds at all,
28877 or removing associated preds/succs.
28878 (merge_graph_nodes): Deal with indirect_cycles.
28879 Don't deal with predecessors.
28880 (add_implicit_graph_edge): New function.
28881 (add_pred_graph_edge): Ditto.
28882 (add_graph_edge): Don't deal with predecessors.
28883 (build_constraint_graph): Removed.
28884 (build_pred_graph): New function.
28885 (build_succ_graph): Ditto.
28886 (struct scc_info): Removed in_component. Added roots, dfs, and
28887 node_mapping. Remove visited_index, unification_queue.
28888 (scc_visit): Deal with union-find we do now.
28889 Deal with cycles with REF nodes.
28890 (collapse_nodes): Renamed and rewritten to ...
28891 (unify_nodes): This.
28892 (process_unification_queue): Removed.
28893 (topo_visit): Cleanup
28894 (do_da_constraint): Use find.
28895 (do_sd_constraint): Ditto.
28896 (do_ds_constraint): Ditto.
28897 (do_complex_constraint): Ditto.
28898 (init_scc_info): Update for removed and added members.
28899 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
28900 (find_indirect_cycles): This.
28901 (equivalence_class): New variable.
28902 (label_visit): New function.
28903 (perform_variable_substitution): Rewritten.
28904 (free_var_substitution_info): New function.
28905 (find_equivalent_node): Ditto.
28906 (move_complex_constraints): Ditto.
28907 (eliminate_indirect_cycles): Ditto.
28908 (solve_graph): Only propagate changed bits.
28909 Use indirect cycle elimination.
28910 Use find.
28911 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
28912 (tree_id_eq): Renamed to ...
28913 (tree_vi_eq): This. Update for member change
28914 (insert_id_for_tree): Renamed and rewritten to ...
28915 (insert_vi_for_tree): This.
28916 (lookup_id_for_tree): Renamed and rewritten to ...
28917 (lookup_vi_for_tree): This.
28918 (get_id_for_tree): Renamed and rewritten to ...
28919 (get_vi_for_tree): Ditto.
28920 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
28921 (process_constraint): Don't handle INCLUDES.
28922 Remove special ADDRESSOF case.
28923 (find_func_aliases): Rewrite to use vi functions instead of id
28924 ones.
28925 (create_function_info_for): Ditto.
28926 (create_variable_info_for): Ditto.
28927 (intra_create_variable_infos): Ditto.
28928 (merge_smts_into): Ditto.
28929 (find_what_p_points_to): Ditto.
28930 (init_base_vars): Ditto.
28931 (init_alias_vars): Ditto.
28932 (remove_preds_and_fake_succs): New function.
28933 (dump_sa_points_to_info): Dump new stats.
28934 (dump_solution_for_var): Use find.
28935 (set_used_smts): Fix formatting.
28936 (compute_points_to_sets): Updated for new functions.
28937 (ipa_pta_execute): Ditto.
28938
28939 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
28940 Richard Sandiford <richard@codesourcery.com>
28941
28942 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
28943 parallels.
28944 * calls.c (expand_call): If the return value is a PARALLEL,
28945 extract its first member.
28946 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
28947 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
28948 use FUNCTION_EXTRA_EPILOGUE.
28949 (m68k_function_value): Return a PARALLEL if the return value
28950 is of a pointer type.
28951 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
28952 (FUNCTION_EXTRA_EPILOGUE): Remove.
28953 * config/m68k/m68k.md (D0_REG): New constant.
28954
28955 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
28956
28957 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
28958 output a NOP for empty epilogues.
28959
28960 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28961
28962 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
28963 before function. Extend register save check to include all
28964 registers, not just integer ones.
28965
28966 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
28967
28968 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
28969 (m68k_use_return_insn): ...this.
28970 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
28971 * config/m68k/m68k.c (use_return_insn): Rename to...
28972 (m68k_use_return_insn): ...this.
28973 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
28974 of USE_RETURN_INSN.
28975
28976 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
28977
28978 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
28979 nearest even, fix denormal rounding overflow.
28980
28981 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28982
28983 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
28984 f%$smove and f%$move.
28985 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
28986 (extendsfdf2_cf): Use fdmove instead of f%&move.
28987 (truncdfsf2_cf): Use fsmove instead of f%$smove.
28988 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
28989
28990 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28991
28992 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
28993 GPR<-GPR moves.
28994
28995 2007-01-18 Richard Sandiford <richard@codesourcery.com>
28996
28997 * real.h (real_format): Add a canonical_nan_lsbs_set field.
28998 (coldfire_single_format): Declare.
28999 (coldfire_double_format): Likewise.
29000 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
29001 of qnan_msb_set to determine the lower bits of a canonical
29002 NaN significand.
29003 (encode_ieee_double): Likewise.
29004 (encode_ieee_quad): Likewise.
29005 (ieee_single_format): Initialize canonical_nan_lsbs_set.
29006 (mips_single_format): Likewise.
29007 (ieee_double_format): Likewise.
29008 (mips_double_format): Likewise.
29009 (ieee_extended_motorola_format): Likewise.
29010 (ieee_extended_intel_96_format): Likewise.
29011 (ieee_extended_intel_128_format): Likewise.
29012 (ieee_extended_intel_96_round_53_format): Likewise.
29013 (ibm_extended_format): Likewise.
29014 (mips_extended_format): Likewise.
29015 (ieee_quad_format): Likewise.
29016 (mips_quad_format): Likewise.
29017 (vax_f_format): Likewise.
29018 (vax_d_format): Likewise.
29019 (vax_g_format): Likewise.
29020 (i370_single_format): Likewise.
29021 (i370_double_format): Likewise.
29022 (decimal_single_format): Likewise.
29023 (decimal_double_format): Likewise.
29024 (decimal_quad_format): Likewise.
29025 (c4x_single_format): Likewise.
29026 (c4x_extended_format): Likewise.
29027 (real_internal_format): Likewise.
29028 (coldfire_single_format): New real_format.
29029 (coldfire_double_format): Likewise.
29030 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
29031 canonical_nan_lsbs_set.
29032 (pdp11_d_format): Likewise.
29033 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
29034 if TARGET_COLDFIRE_CPU.
29035
29036 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29037
29038 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
29039 (output_call, m68k_legitimize_call_address): Declare.
29040 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
29041 parenthesees. Add support for a 'W' constraint.
29042 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
29043 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
29044 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
29045 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
29046 variables.
29047 (override_options): Initialize them. Do not set flag_no_function_cse
29048 for TARGET_ID_SHARED_LIBRARY.
29049 (m68k_output_pic_call): Delete.
29050 (m68k_legitimize_call_address): New function.
29051 (print_operand): Remove the %o prefix. Handle the %p prefix.
29052 (output_call): New function.
29053 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
29054 target address from the GOT if symbolic jumps are not allowed.
29055 * config/m68k/m68k.md (call, general_operand): Do not set
29056 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
29057 Merge separate flag_pic and !flag_pic define_insns into...
29058 (*call, *call_value): ...these new patterns. Match the address
29059 rather than the containing MEM and require it to be a call_operand.
29060 Use output_call to generate the asm template.
29061 * config/m68k/predicates.md (const_call_operand): New predicate.
29062 (call_operand): Likewise.
29063
29064 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
29065
29066 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
29067 (STACK_GROWS_DOWNWARD): Define to 1.
29068 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
29069 comments, emphasizing that these values are only defaults.
29070 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
29071 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
29072
29073 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29074
29075 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
29076
29077 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
29078 Richard Sandiford <richard@codesourcery.com>
29079
29080 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
29081 (FP_REGNO_P): New macros.
29082 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
29083 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
29084 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
29085 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
29086
29087 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
29088
29089 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
29090 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
29091 to $tmake_file.
29092 * config/m68k/t-floatlib: New file, extracting common code from...
29093 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
29094 * config/m68k/t-uclinux: Here.
29095 * config/m68k/fpgnulib.c: Do not compile extendeed precision
29096 routines on ColdFire targets.
29097
29098 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
29099
29100 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
29101 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
29102 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
29103 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
29104 explicitly set MOTOROLA to 1.
29105 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
29106
29107 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29108 Nathan Sidwell <nathan@codesourcery.com>
29109
29110 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
29111 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
29112 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
29113 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
29114 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
29115 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
29116 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
29117 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
29118 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
29119 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
29120 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
29121 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
29122 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
29123 (DBX_REGISTER_NUMBER): Delete.
29124 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
29125 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
29126 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
29127
29128 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29129
29130 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
29131 * config/flat.h: New file.
29132 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
29133 OBJECT_FORMAT_FLAT.
29134 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
29135 indirect references for -msep-data or -mid-shared-library.
29136 Do not use PC-relative code addresses either.
29137 * config/m68k/m68k.c (override_options): Restrict -fPIC error
29138 to -mpcrel.
29139 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
29140 for shared libraries and crt1.o for executables. Use crti.o and
29141 crtbegin.o.
29142 (ENDFILE_SPEC): Use crtend.o and crtn.o.
29143 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
29144 Do not add -elf2flt or -shared-lib-id options here.
29145 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
29146 Pass -shared-lib-id if -mid-shared-library, taking the library
29147 identifier from -mshared-library-id if given, otherwise
29148 defaulting to 0.
29149 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
29150 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
29151 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
29152 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
29153 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
29154 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
29155 and crtend.o.
29156 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
29157 jump sequence for ISA A and ISA A+.
29158 (PICJUMP): Likewise.
29159
29160 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29161
29162 * config.gcc (m68k-*-uclinux*): Base the port on the common
29163 and m68k GNU/Linux files rather than on the generic ELF ones.
29164 * config/m68k/uclinux.h (TARGET_VERSION): Override.
29165 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
29166
29167 2007-01-18 Julian Brown <julian@codesourcery.com>
29168 Richard Sandiford <richard@codesourcery.com>
29169
29170 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
29171 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29172 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
29173 before redefining.
29174 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
29175 80 unconditionally.
29176 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29177
29178 2007-01-18 Richard Sandiford <richard@codesourcery.com>
29179
29180 * doc/install.texi: Document m68k-uclinuxoldabi.
29181 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
29182 * config/m68k/uclinux-oldabi.h: New file, copied from
29183 config/m68k/uclinux.h.
29184
29185 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
29186
29187 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
29188 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
29189 (m32r_compute_frame_size): Use unsigned for regno.
29190 (m32r_reload_lr): Use gen_frame_mem.
29191 (pop): New.
29192 (m32r_output_function_epilogue): Don't output the function epilogue
29193 textually here.
29194 (m32r_expand_epilogue): New.
29195 (direct_return): Return false if the function has the interrupt
29196 attribute.
29197 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
29198 * config/m32r/m32r.md (epilogue): New expander.
29199 (return_lr, return_rte): New insns.
29200 (return): Make it expander.
29201 (return_normal): New expander.
29202
29203 2007-01-18 Josh Conner <jconner@apple.com>
29204
29205 PR target/30485
29206 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
29207 support for UNLE, UNLT, UNGE, and UNGT.
29208
29209 2007-01-18 Jan Hubicka <jh@suse.cz>
29210
29211 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
29212 * tree-tailcall (add_virtual_phis): Likewise.
29213 (optimize_tail_call): Return TODOs.
29214 (execute_tail_calls): Return TODOs.
29215 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
29216 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
29217 changed.
29218 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
29219 Cleanup cfg using TODO.
29220 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
29221 * passes.c (execute_function_todo): When cleanup did something, remove
29222 unused locals.
29223 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
29224 (make_edges): Don't cleanup_cfg.
29225
29226 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
29227
29228 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
29229 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
29230 operate on the top of stack.
29231 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
29232 register handling of instructions that output to the second
29233 stack slot.
29234 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
29235 (move_for_stack_reg): Special-case check for dead destination
29236 stack slot for constant load of 1.0 inside UNSPEC_TAN.
29237
29238 * config/i386/i386.md (UNSPEC_TAN): New constant.
29239 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
29240 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
29241 to correctly model move of constant 1.0 to top stack slot.
29242 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
29243 (unnamed peephole2 pattern): Remove corresponding peephole2
29244 pattern that optimizes tan insn and loading of constant 1.0.
29245 (tanxf2): Use fptanxf4_i387.
29246 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
29247 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
29248 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
29249 disable patterns for SSE math.
29250 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
29251 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
29252
29253 2007-01-18 Dirk Mueller <dmueller@suse.de>
29254 Richard Guenther <rguenther@suse.de>
29255
29256 PR diagnostic/8268
29257 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
29258 * common.opt (Warray-bounds): Add new warning option.
29259 * c-opts.c (c_common_handle_option): Define -Warray-bounds
29260 if -Wall is given.
29261 * Makefile.in: make tree-vrp.o depend on toplev.h
29262 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
29263 is enabled.
29264 (check_array_refs, check_array_bounds, check_array_ref): New.
29265
29266 2007-01-18 Jan Hubicka <jh@suse.cz>
29267
29268 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
29269 (execute_ssa_ccp): Return flags conditionally.
29270 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
29271 changed.
29272 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
29273
29274 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
29275
29276 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
29277 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
29278
29279 * Makefile.c (GTFILES): Add cfglayout.h.
29280 * gengtype.c (open_base_files): Likewise.
29281 * cfglayout.c (cfg_layout_function_footer,
29282 cfg_layout_function_header) Reindent to make gengtype happy.
29283 * cfglayout.h (cfg_layout_function_footer,
29284 cfg_layout_function_header): Add GTY(()) marker.
29285
29286 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
29287
29288 2007-01-18 Ben Elliston <bje@au.ibm.com>
29289
29290 * genautomata.c (write_automata): Include xstrerror output in the
29291 error message if writing the DFA description file fails.
29292
29293 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
29294
29295 * config/mips/mips-protos.h (mips_output_external): Make it
29296 return void.
29297 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
29298 * config/mips/mips.c (irix_output_external_libcall): Likewise.
29299 (extern_list): Likewise.
29300 (extern_head): Likewise.
29301 (TARGET_ASM_FILE_END): Likewise.
29302 (mips_file_end): Likewise.
29303 (mips_output_external): Rewritten.
29304
29305 2007-01-18 Ben Elliston <bje@au.ibm.com>
29306
29307 * genpreds.c (write_insn_preds_c): Only write out the function
29308 body for regclass_for_constraint if we have register constraints.
29309
29310 2007-01-17 Tom Tromey <tromey@redhat.com>
29311
29312 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
29313 * doc/install.texi (Testing): Use sourceware.org.
29314 (Binaries): Likewise.
29315 (Specific): Likewise.
29316 * doc/contrib.texi (Contributors): Use sourceware.org.
29317
29318 2007-01-17 Anatoly Sokolov <aesok@post.ru>
29319
29320 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
29321 (AVR_ENHANCED): Rename to ...
29322 (AVR_HAVE_MUL): ... new.
29323 (avr_enhanced_p): Rename to ...
29324 (avr_have_mul_p): ... new.
29325 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
29326 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
29327 * config/avr/avr.c (avr_enhanced_p): Rename to ...
29328 (avr_have_mul_p): ... new.
29329 (base_arch_s): Rename 'enhanced' to 'have_mul'.
29330 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
29331 'avr_enhanced_p' and 'enhanced'.
29332 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
29333 AVR_HAVE_MUL instead of AVR_ENHANCED.
29334 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
29335 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
29336 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
29337 instead of AVR_ENHANCED.
29338 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
29339 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
29340 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
29341
29342 2007-01-17 Ian Lance Taylor <iant@google.com>
29343
29344 * vec.h (VEC_reserve_exact): Define.
29345 (vec_gc_p_reserve_exact): Declare.
29346 (vec_gc_o_reserve_exact): Declare.
29347 (vec_heap_p_reserve_exact): Declare.
29348 (vec_heap_o_reserve_exact): Declare.
29349 (VEC_OP (T,A,reserve_exact)): New static inline function, three
29350 versions.
29351 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
29352 negative parameter.
29353 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
29354 (VEC_OP (T,A,copy)) [all versions]: Likewise.
29355 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
29356 * vec.c (calculate_allocation): Add exact parameter. Change all
29357 callers.
29358 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
29359 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
29360 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
29361 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
29362 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
29363 (vec_heap_p_reserve_exact): New function.
29364 (vec_heap_o_reserve_exact): New function.
29365
29366 2007-01-17 Jan Hubicka <jh@suse.cz>
29367
29368 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
29369
29370 2007-01-17 Eric Christopher <echristo@apple.com>
29371
29372 * config.gcc: Support core2 processor.
29373
29374 2007-01-16 Jan Hubicka <jh@suse.cz>
29375
29376 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
29377 the names, just unlink the chain so we don't crash on dangling
29378 pointers
29379 to dead SSA names.
29380
29381 2007-01-16 Jan Hubicka <jh@suse.cz>
29382
29383 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
29384 * tree-pass.h: Reorder to make IPA passes appear toegher.
29385 (pass_early_inline, pass_inline_parameters, pass_apply_inline):
29386 Declare.
29387 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
29388 parameters, do not call early inliner.
29389 * ipa-inline.c: Update comments. Include tree-flow.h
29390 (cgraph_decide_inlining): Do not compute inlining parameters.
29391 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
29392 be called with function context set up.
29393 (pass_ipa_inline): Remove unreachable functions before pass.
29394 (cgraph_early_inlining): Simplify assuming to be called from the
29395 PM as local pass.
29396 (pass_early_inline): New pass.
29397 (cgraph_gate_ipa_early_inlining): New gate.
29398 (pass_ipa_early_inline): Turn into simple wrapper.
29399 (compute_inline_parameters): New function.
29400 (gate_inline_passes): New gate.
29401 (pass_inline_parameters): New pass.
29402 (apply_inline): Move here from tree-optimize.c
29403 (pass_apply_inline): New pass.
29404 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
29405 transforming.
29406 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
29407 doing them by hand.
29408 (tree_function_versioning): Do not allocate dummy struct function.
29409 * tree-inline.h (optimize_inline_calls): Update prototype.
29410 * tree-optimize.c (execute_fixup_cfg): Export.
29411 (pass_fixup_cfg): Remove
29412 (tree_rest_of_compilation): Do not apply inlines.
29413 * tree-flow.h (execute_fixup_cfg): Declare.
29414 * Makefile.in (gt-passes.c): New.
29415 * passes.c: Include gt-passes.h
29416 (init_optimization_passes): New passes.
29417 (nnodes, order): New static vars.
29418 (do_per_function_toporder): New function.
29419 (execute_one_pass): Dump current pass here.
29420 (execute_ipa_pass_list): Don't dump current pass here.
29421
29422 2007-01-16 Janis Johnson <janis187@us.ibm.com>
29423
29424 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
29425 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
29426
29427 2007-01-16 David Edelsohn <edelsohn@gnu.org>
29428
29429 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
29430 (strong_alias): Define.
29431 (__gcc_qmul): Provide non-FMA for soft-float.
29432 (__gcc_qdiv): Same.
29433 (__gcc_qneg): New.
29434 (__gcc_qeq): New.
29435 (__gcc_qle): New.
29436 (__gcc_qge): New.
29437 (__gcc_qunord): New.
29438 (__gcc_stoq): New.
29439 (__gcc_dtoq): New.
29440 (__gcc_qtos): New.
29441 (__gcc_qtod): New.
29442 (__gcc_qtoi): New.
29443 (__gcc_qtou): New.
29444 (__gcc_itoq): New.
29445 (__gcc_utoq): New.
29446 (fmsub): New.
29447 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
29448 soft-float functions.
29449 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
29450 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
29451 about long double soft float.
29452
29453 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
29454 Tehila Meyzels <tehila@il.ibm.com>
29455
29456 * tree-vectorizer.h (is_pattern_stmt_p): New.
29457 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
29458 formatting (tabs instead of spaces). Cleanup and clarify setting
29459 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
29460 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
29461 (vectorizable_type_demotion): Check that types are integral.
29462 (vectorizable_type_promotion): Likewise.
29463 (vectorizable_store): Fix typo. Eliminate new-line at end of
29464 comments.
29465
29466 2007-01-16 Jan Hubicka <jh@suse.cz>
29467
29468 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
29469 cgraph edges too.
29470
29471 2007-01-15 Eric Christopher <echristo@apple.com>
29472
29473 * ifcvt.c: Include vec.h, vecprim.h.
29474 (check_cond_move_block): New argument regs.
29475 Reorganize. Add registers used to regs.
29476 (cond_move_process_if_block): Use regs set above as
29477 loop bounds.
29478
29479 2007-01-15 Eric Christopher <echristo@apple.com>
29480
29481 * config/darwin.h: Update copyright.
29482 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
29483 (LINK_COMMAND_SPEC): Add -u.
29484 (LINK_SPEC): Fix umbrella for above.
29485
29486 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
29487
29488 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
29489 glibc CVS.
29490
29491 2007-01-15 Tom Tromey <tromey@redhat.com>
29492
29493 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
29494 * doc/install.texi (Testing): Don't mention jacks.
29495 (Configuration): Document --enable-java-maintainer-mode. Move
29496 --with-java-home to libgcj-specific section. Document
29497 --with-ecj-jar.
29498 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
29499
29500 2007-01-15 Jan Hubicka <jh@suse.cz>
29501
29502 * tree-ssa-dce.c (DCE_TODOs): New.
29503 (propagate_necessity): Return if something changed.
29504 (eliminate_unnecessary_stmts): Likewise.
29505 (perform_tree_ssa_dce): Return TODO flags when needed.
29506 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
29507
29508 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
29509
29510 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
29511 (fyl2x_extend<mode>xf3_i387): New insn pattern.
29512 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
29513 patterns using X87MODEF12 mode macro. Extend operand 1
29514 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
29515 (log10<mode>2): Ditto.
29516 (log2<mode>2): Ditto.
29517 (log1p<mode>2): Ditto.
29518 (logb<mode>2): Ditto.
29519 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
29520 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
29521 (*fxtractxf3_i387): Rename from *fxtractxf3.
29522 (fxtract_extend<mode>xf3_i387): New insn pattern.
29523 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
29524 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
29525 and gen_fyl2xxf3_i387().
29526
29527 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
29528
29529 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
29530 * cfgloopmanip.c (fix_loop_placement): Made static. Use
29531 get_loop_exit_edges. Changed return type to bool.
29532 * cfgloop.h (fix_loop_placement): Declaration removed.
29533
29534 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
29535
29536 * param.h (MIN_VECT_LOOP_BOUND): New.
29537 * params.def (MIN_VECT_LOOP_BOUND): New.
29538 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
29539 argument - minimum threshold for number of iterations.
29540 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
29541 argument to declaration.
29542 * tree-vect-analyze.c (vect_analyze_operations): Check value of
29543 MIN_VECT_LOOP_BOUND.
29544 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
29545 slpeel_tree_peel_loop_to_edge with additional argument.
29546 (vect_do_peeling_for_alignment): Likewise.
29547 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
29548
29549 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
29550
29551 PR target/30413
29552 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
29553 operands of size 1.
29554
29555 2007-01-14 Jan Hubicka <jh@suse.cz>
29556
29557 * tree-dfa.c (remove_referenced_var): New function.
29558 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
29559 prune referenced vars list too.
29560 * tree-flow.h (remove_referenced_var): Declare.
29561
29562 2007-01-14 Jan Hubicka <jh@suse.cz>
29563
29564 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
29565 separately.
29566 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
29567 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
29568 * except.h (verify_eh_throw_table_statements): Kill prototype.
29569 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
29570 into call exrepssions.
29571 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
29572 eh trhow verifier.
29573 * tree-cfg.c: Include pointer-set.h.
29574 (verify_node_sharing): Work on pointer set.
29575 (verify_eh_throw_stmt_node): New.
29576 (verify_stmts): Use pointers sets, verify throw_stmt.
29577
29578 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
29579
29580 * ipa-reference.c (analyze_function): Consider also addresses taken
29581 in phi nodes.
29582
29583 2007-01-12 Roger Sayle <roger@eyesopen.com>
29584
29585 * c-typeck.c (null_pointer_constant_p): Replace use of
29586 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29587 (build_c_cast): Likewise.
29588
29589 2007-01-12 Roger Sayle <roger@eyesopen.com>
29590
29591 * tree.h (force_fit_type_double): Remove unused final argument.
29592 * c-common.c (constant_expression_warning): Replace use of
29593 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29594 (convert_and_check): Likewise.
29595 (shorten_compare): Update call to force_fit_type_double.
29596 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
29597 * convert.c (convert_to_pointer): Update call to
29598 force_fit_type_double.
29599 * fold-const.c (force_fit_type_double): Remove overflowed_const
29600 argument.
29601 (int_const_binop, fold_convert_const_int_from_int,
29602 fold_convert_const_int_from_real, fold_div_compare,
29603 fold_sign_changed_comparison, fold_unary, fold_negate_const,
29604 fold_abs_const, fold_not_const): Remove the final argument from
29605 calls to force_fit_type_double.
29606
29607 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
29608
29609 * configure.ac: Set insn to "nop" for spu-*-* also.
29610 * configure: Regenerate.
29611
29612 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
29613
29614 * builtins.def : Add BUILT_IN_FREE.
29615
29616 2007-01-12 Jan Hubicka <jh@suse.cz>
29617
29618 PR tree-optimization/30443
29619 * tree-inline.c (tree_function_versioning): Do not optimize when
29620 cloning for inlining.
29621
29622 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
29623
29624 * doc/loop.texi: Document recording of loop exits.
29625 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
29626 (update_single_exits_after_duplication,
29627 update_single_exit_for_duplicated_loop,
29628 update_single_exit_for_duplicated_loops): Removed.
29629 (duplicate_loop_to_header_edge): Do not call
29630 update_single_exits_after_duplication and
29631 update_single_exit_for_duplicated_loops.
29632 (loop_version): Do not update single_exit information.
29633 (fix_loop_structure): Use record_loop_exits instead of
29634 mark_single_exit_loops.
29635 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
29636 the lists of loop exits.
29637 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
29638 split_edge, merge_blocks): Update the lists of loop exits.
29639 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
29640 loop_optimizer_init.
29641 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
29642 of mark_single_exit_loops.
29643 (loop_optimizer_finalize): Call release_recorded_exits.
29644 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
29645 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
29646 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
29647 update single exit information.
29648 * lambda-code.c (perfect_nestify): Ditto.
29649 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
29650 (mark_single_exit_loops): Removed.
29651 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
29652 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
29653 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
29654 functions.
29655 (get_loop_exit_edges, single_exit): Use recorded exit lists.
29656 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
29657 (verify_loop_structure): Verify consistency of the exit lists.
29658 (flow_loops_find): Use alloc_loop. Initialize exits hash.
29659 (set_single_exit): Removed.
29660 * cfgloop.h (struct loop_exit): New function.
29661 (struct loop): single_exit_ field replaced by exits field.
29662 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
29663 LOOPS_HAVE_RECORDED_EXITS.
29664 (struct loops): Added exits hash.
29665 (mark_single_exit_loops, set_single_exit): Declaration removed.
29666 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
29667
29668 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29669
29670 * doc/invoke.texi: Avoid use of @headitem.
29671
29672 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29673
29674 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
29675
29676 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29677
29678 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
29679 list of targets.
29680
29681 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29682 Richard Sandiford <richard@codesourcery.com>
29683
29684 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
29685 * config/m68k/m68k.opt: Resort options.
29686 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
29687
29688 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29689 Richard Sandiford <richard@codesourcery.com>
29690
29691 * doc/invoke.texi: Document the macros that are defined by
29692 m68k's -mtune and -mhard-float options.
29693 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
29694 (m68k_cpp_cpu_family): Likewise.
29695 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
29696 of __ucfv*__ macros. Define __mcffpu__ if generating code for
29697 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
29698 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
29699 (m68k_cpp_cpu_family): Likewise.
29700
29701 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29702
29703 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
29704 macros besides mc68000 as tuning macros. Use a switch statement
29705 to set them and mcpu32.
29706
29707 2007-01-12 Julian Brown <julian@codesourcery.com>
29708
29709 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
29710 (TARGET_68040_ONLY): Rename to...
29711 (TARGET_68040): ...this.
29712 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
29713 * config/m68k/m68k.md: Likewise.
29714
29715 2007-01-12 Julian Brown <julian@codesourcery.com>
29716 Nathan Sidwell <nathan@codesourcery.com>
29717 Richard Sandiford <richard@codesourcery.com>
29718
29719 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
29720 the -mcpu= argument associated with the --with-cpu setting.
29721 Define M68K_DEFAULT_TUNE to the default -mtune= option,
29722 if different from the one implied by the -mcpu setting.
29723 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
29724 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
29725 * doc/invoke.texi: Mention ColdFire in the introduction to the
29726 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
29727 -mno-div and -mhard-float options. Make -m68881 a synonym for
29728 -mhard-float. Document the previously-undocumented -m5206e,
29729 -m528x, -m5307 and -m5407 options. Tweak the existing option
29730 documentation for consistency.
29731 * doc/install.texi: Mention new --with-cpu arguments.
29732 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
29733 default CPU if neither -mcpu nor -march are specified.
29734 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
29735 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
29736 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
29737 using m68k_tune to decide between families that implement the
29738 same ISA. Use m68k_tune to set __mcfv4e__.
29739 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
29740 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
29741 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
29742 (FL_ISA_C, FL_ISA_MMU): New macros.
29743 (MASK_COLDFIRE): Delete.
29744 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
29745 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
29746 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
29747 (TARGET_HARD_FLOAT): Do not define here.
29748 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
29749 (TUNE_68000): New macro.
29750 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
29751 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
29752 (TUNE_CFV2): Redefine in terms of m68k_tune.
29753 (uarch_type, target_device, fpu_type): New enums.
29754 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
29755 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
29756 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
29757 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
29758 (FL_FOR_isa_c): New macros.
29759 (m68k_isa): New enum.
29760 (m68k_target_selection): New structure.
29761 (all_devices, all_isas, all_microarchs): New tables.
29762 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
29763 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
29764 (MASK_ALL_CPU_BITS): Delete.
29765 (m68k_find_selection): New function.
29766 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
29767 Map the legacy target options to a combination of the new ones.
29768 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
29769 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
29770 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
29771 settings.
29772 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
29773 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
29774 properties.
29775 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
29776 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
29777 * config/m68k/m68k-devices.def: New file.
29778
29779 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29780 Nathan Sidwell <nathan@codesourcery.com>
29781
29782 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
29783 (SUBTARGET_EXTRA_SPECS): New macros.
29784 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
29785 use %(asm_cpu_spec) instead.
29786 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
29787 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29788 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29789 (EXTRA_SPECS): Rename to...
29790 (SUBTARGET_EXTRA_SPECS): ...this.
29791
29792 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29793 Richard Sandiford <richard@codesourcery.com>
29794 Julian Brown <julian@codesourcery.com>
29795
29796 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
29797 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
29798 to the configuration's default CPU.
29799 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
29800 Remove default masks.
29801 (m680[012]0-*-*): Set the default with_cpu to the first part of
29802 the target name.
29803 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
29804 (m68k*-*-linux): Extend the --with-cpu handling to...
29805 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
29806 and m68010. Don't set target_cpu_default2.
29807 * doc/install.texi: Document --with-cpu for m68k.
29808 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
29809 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
29810 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
29811 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
29812 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
29813 (ASM_SPEC): Remove use of %(asm_cpu_default).
29814 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
29815 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
29816 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
29817 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
29818 __HAVE_FPU__ if TARGET_HARD_FLOAT.
29819 (TARGET_DEFAULT): Delete.
29820 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
29821 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
29822 (CPP_CPU_SPEC): Delete.
29823 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
29824 the appropriate string.
29825 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
29826 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
29827 (ASM_SPEC): Don't use %(asm_default_spec).
29828 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
29829 TARGET_DEFAULT and add MASK_68881.
29830 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
29831
29832 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29833
29834 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
29835 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
29836 MASK_68010 alongside MASK_68020.
29837 * doc/invoke.texi: Document -m68010.
29838 * config/m68k/m68k.opt (m68010): New.
29839 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
29840 if TUNE_68010.
29841 (TUNE_68010): New macro.
29842 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
29843 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
29844 (M68K_CPU_m68332): Add MASK_68010.
29845 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
29846 fallback definition.
29847 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
29848 defines.
29849 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
29850 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
29851 to all entries that use MASK_68020.
29852 (output_move_simode_const, output_move_himode, output_move_qimode)
29853 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
29854 instead of TARGET_68020 to select clr behavior. Remove comment
29855 about there being no TARGET_68010.
29856 * config/m68k/m68k.md: Likewise throughout.
29857
29858 2007-01-12 Julian Brown <julian@codesourcery.com>
29859
29860 * config/m68k/m68k.h (TARGET_ISAB): New macro.
29861 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
29862 * config/m68k/m68k.md: Likewise.
29863
29864 2007-01-12 Julian Brown <julian@codesourcery.com>
29865
29866 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
29867 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
29868
29869 2007-01-12 Julian Brown <julian@codesourcery.com>
29870
29871 * config/m68k/m68k.h (TUNE_68040_60): New macro.
29872 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
29873 * config/m68k/m68k.md: Likewise.
29874
29875 2007-01-12 Julian Brown <julian@codesourcery.com>
29876 Richard Sandiford <richard@codesourcery.com>
29877
29878 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
29879 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
29880 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
29881 TARGET_CPU32.
29882 (TARGET_CPU32): Rename to...
29883 (TUNE_CPU32): ...this.
29884 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
29885 (TUNE_CFV2): New macros.
29886 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
29887 remove conditions that are implied by TARGET_68020.
29888 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
29889 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
29890 (m68k_output_function_epilogue): Likewise.
29891 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
29892 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
29893 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
29894 non-68000 timings. Refactor multiplication and division costs.
29895 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
29896 TUNE_CPU32 instead of TARGET_CPU32.
29897 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
29898 and TUNE_68060 instead of TARGET_68060.
29899 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
29900 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
29901 TARGET_CPU32.
29902 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
29903 && !TARGET_COLDFIRE" to choose between moveq and clr.
29904 Likewise in the unnamed movsf pattern.
29905 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
29906 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
29907 ashiftrt pattern.
29908
29909 2007-01-12 Richard Sandiford <richard@codesourcery.com>
29910
29911 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
29912 of tabbing before backslashes.
29913
29914 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29915
29916 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
29917 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
29918 (ASM_OUTPUT_INTERNAL_LABEL): Define.
29919
29920 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
29921
29922 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
29923 find_interesting_uses_cond.
29924 (find_interesting_uses_cond): Use extract_cond_operands.
29925 (rewrite_use_compare): Use extract_cond_operands and
29926 force_gimple_operand_bsi. Do not call update_stmt.
29927 (determine_use_iv_cost_condition): Use extract_cond_operands.
29928 Return cheaper of using original bound and changing the exit bound.
29929
29930 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
29931
29932 PR tree-optimization/29516
29933 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
29934 most_expensive_mult_to_index, addr_to_parts,
29935 create_mem_ref, maybe_fold_tmr): Make the type of
29936 fields of TARGET_MEM_REF sizetype.
29937 (move_fixed_address_to_symbol, move_pointer_to_base):
29938 New functions.
29939 * tree.def (TARGET_MEM_REF): Add comment on types of
29940 the operands.
29941
29942 2007-01-11 Joseph Myers <joseph@codesourcery.com>
29943
29944 * c-common.c (vector_types_convertible_p): Treat opaque types as
29945 always convertible if they have the same size, but not otherwise.
29946
29947 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
29948
29949 * ifcvt.c (struct noce_if_info): Add comments to the fields.
29950 Remove the b_unconditional field.
29951 (noce_try_sign_mask): Do not look at b_unconditional.
29952 (noce_process_if_block): Do not use merge_if_blocks. Update
29953 the CFG here. Do not set b_unconditional.
29954 (cond_move_process_if_block): Likewise.
29955 (find_cond_trap): Likewise.
29956 (check_cond_move_block): Require simple jump insns at the end
29957 of the basic block.
29958
29959 2007-01-11 Jan Hubicka <jh@suse.cz>
29960
29961 PR tree-optimization/1046
29962 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
29963 when alias info is not ready.
29964 (pass_tail_recursion): Do not require aliasing.
29965 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
29966 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
29967 * tree-ssa-copy.c (pass_copy_prop): Likewise.
29968 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
29969 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
29970 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
29971 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
29972 before inlining.
29973 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
29974 When aliasing is not build, mark statement as volatile.
29975
29976 2007-01-11 Tom Tromey <tromey@redhat.com>
29977
29978 PR preprocessor/15185, PR preprocessor/20989:
29979 * doc/cppopts.texi <-MT>: Update description of algorithm for
29980 computing default target.
29981 <-M, -MD>: Reword "basename" text.
29982
29983 2007-01-11 Roger Sayle <roger@eyesopen.com>
29984
29985 * builtins.c (expand_builtin_pow, expand_builtin_powi,
29986 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
29987 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
29988 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
29989 fold_builtin_bswap, real_constp, fold_builtin_pow,
29990 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
29991 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
29992 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29993 * convert.c (convert_to_pointer): Likewise.
29994 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
29995 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
29996 const_binop, fold_convert_const_int_from_int,
29997 fold_convert_const_int_from_real,
29998 fold_convert_const_real_from_real, sign_bit_p,
29999 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
30000 fold_sign_changed_comparison, fold_unary, fold_comparison,
30001 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
30002 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
30003 * print-tree.c (print_node_brief, print_node): Likewise.
30004 * stor-layout.c (place_field, layout_type): Likewise.
30005 * tree-chrec.c (keep_cast): Likewise.
30006 * tree.c (build_vector, build_real, build_real_from_int_cst,
30007 build_complex): Likewise.
30008
30009 2007-01-11 Roger Sayle <roger@eyesopen.com>
30010
30011 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
30012 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
30013
30014 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
30015
30016 * configure.ac (strict1_warn): Rename to strict_warn.
30017 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
30018 cc_set_by_configure, quoted_cc_set_by_configure,
30019 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
30020 all_boot_languages, all_stagestuff): Remove.
30021 (target_list): Remove bootstrap targets.
30022 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
30023 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
30024 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
30025 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
30026 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
30027 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
30028 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
30029 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
30030 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
30031 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
30032 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
30033 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
30034 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
30035 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
30036 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
30037 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
30038 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
30039 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
30040 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
30041 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
30042 (mostlyclean): Adjust.
30043 (clean, distclean): Don't mention bootstrap stuff.
30044 * configure: Regenerate.
30045 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
30046 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
30047 treelang/config-lang.in (stagestuff): Remove.
30048 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
30049 stageprofile, stagefeedback, stagestuff): Remove mention.
30050
30051 2007-01-11 Nick Clifton <nickc@redhat.com>
30052
30053 * config/mcore/predicates.md (mcore_general_movesrc_operand):
30054 Accept CONSTs.
30055 (mcore_general_movdst_operand): Do not accept CONST_INTs.
30056 (mcore_arith_K_S_operand): Run the test for the S constraint not
30057 the test for the M constraint.
30058 (mcore_addsub_operand): Do not accept integer values that are
30059 larger than 32 bits.
30060 * config/mcore/mcore.md: Remove unused constraints from split.
30061 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
30062 (addsi3): Likewise.
30063 (allocate_stack): Likewise.
30064 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
30065 operands to 32 bits.
30066 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
30067 INTVAL.
30068 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
30069 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
30070 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
30071 mcore_output_bclri, mcore_output_andn, output_inline_const,
30072 mcore_output_move, mcore_output_movedouble): Likewise.
30073 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
30074 (output_inline_const): Likewise.
30075 (output_inline_const): Fix format strings used in sprintf
30076 statements.
30077 * config/mcore/mcore-protos.h: Update prototypes for changed
30078 functions in mcore.c.
30079 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
30080 HOST_WIDE_INT and not int.
30081 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
30082 CONST_OK_FOR_N): Likewise.
30083 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
30084 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
30085 an INTVAL.
30086
30087 2007-01-10 Jan Hubicka <jh@suse.cz>
30088
30089 * tree-vrp.c (remove_range_assertions): Release defs.
30090 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
30091 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
30092
30093 2007-01-10 Paul Brook <paul@codesourcery.com>
30094
30095 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
30096 * config/arm/arm.md (mulsi3subsi): New insn.
30097
30098 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
30099
30100 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
30101 (tree_transform_and_unroll_loop): New.
30102 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
30103 Declare.
30104
30105 2007-01-10 Robert Kennedy <jimbob@google.com>
30106
30107 * fold-const.c (fold_comparison): Fold comparisons like (x *
30108 1000 < 0) to (x < 0).
30109
30110 2007-01-10 Ian Lance Taylor <iant@google.com>
30111
30112 * tree-pretty-print.c (dump_generic_node): Print parentheses when
30113 operands have the same priority.
30114
30115 2007-01-10 Tom Tromey <tromey@redhat.com>
30116
30117 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
30118 (fold_binary): Likewise.
30119 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
30120 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
30121 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
30122 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
30123 * langhooks.h (struct lang_hooks): Removed field
30124 'can_use_bit_fields_p'.
30125
30126 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
30127
30128 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
30129
30130 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
30131
30132 * function.c (get_last_funcdef_no): New function.
30133 * function.h (get_last_funcdef_no): Declare.
30134 * tree-inline.c (initialize_cfun): Add initialization.
30135 (tree_function_versioning): Cleanup.
30136
30137 2007-01-10 Jan Hubicka <jh@suse.cz>
30138
30139 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
30140 PHIs.
30141
30142 2007-01-10 Sa Liu <saliu@de.ibm.com>
30143 Ben Elliston <bje@au.ibm.com>
30144
30145 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
30146 for SAVE_NONLOCAL and Pmode for any other save level.
30147 * spu-protos.h (spu_restore_stack_block): Declare.
30148 * spu.md (save_stack_block): Remove.
30149 (restore_stack_block): Call spu_restore_stack_block.
30150 * spu.c (spu_restore_stack_block): New function.
30151 (spu_expand_epilogue): Remove old comment.
30152
30153 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
30154
30155 PR tree-optimization/30322
30156 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
30157 (cand_value_at): Return the value as aff_tree.
30158 (may_eliminate_iv): Convert the bound from aff_tree to tree.
30159 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
30160 aff_combination_mult): New functions.
30161 (aff_combination_add): Use aff_combination_add_cst.
30162 (aff_combination_convert): Allow conversions to a wider type.
30163 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
30164 * tree-affine.h (aff_combination_mult): Declare.
30165
30166 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
30167
30168 * doc/tm.texi: Update documentation to reflect reality of exec
30169 and start file search behaviours. Update copyright year.
30170 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
30171 header file directories.
30172
30173 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
30174
30175 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
30176 (*cosxf2): Rename to cosxf2_i387.
30177 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
30178 using X87MODEF12 mode macro. Rename patterns to
30179 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
30180 for SSE math.
30181 (*cosdf2, *cossf2): Ditto.
30182 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
30183 to match extended input operands.
30184 (sincos<mode>3): New expander.
30185 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
30186 insn patterns and corresponding splitters.
30187
30188 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
30189
30190 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
30191 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
30192
30193 2007-01-09 Nicolas Pitre <nico@cam.org>
30194
30195 PR target/30173
30196 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
30197
30198 2007-01-08 Geoffrey Keating <geoffk@apple.com>
30199
30200 * target.h (struct gcc_target): New field library_rtti_comdat.
30201 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
30202 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
30203 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
30204 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
30205
30206 2007-01-08 Geoffrey Keating <geoffk@apple.com>
30207
30208 * doc/invoke.texi (Optimize Options): Correct description of -O0.
30209
30210 2007-01-08 Richard Guenther <rguenther@suse.de>
30211
30212 * tree.h (force_fit_type_double): Export.
30213 (force_fit_type): Remove.
30214 * fold-const.c (force_fit_type_double): New function.
30215 (force_fit_type): Remove.
30216 (int_const_binop): Use it.
30217 (fold_convert_const_int_from_int): Likewise.
30218 (fold_convert_const_int_from_real): Likewise.
30219 (fold_div_compare): Likewise.
30220 (fold_sign_changed_comparison): Likewise.
30221 (fold_unary): Likewise.
30222 (fold_negate_const): Likewise.
30223 (fold_abs_const): Likewise.
30224 (fold_not_const): Likewise.
30225 * c-common.c (shorten_compare): Use force_fit_type_double.
30226 * convert.c (convert_to_pointer): Likewise.
30227
30228 2007-01-08 Richard Guenther <rguenther@suse.de>
30229
30230 * tree.h (build_int_cst_wide_type): Export.
30231 * tree.c (build_int_cst_wide_type): New function.
30232 (build_int_cst_wide): Fix comment.
30233 * builtins.c (fold_builtin_object_size): Use build_int_cst
30234 to build -1 or 0 of the correct type. Use fit_double_type
30235 to check for overflow.
30236 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
30237 to build the mask.
30238 (decode_field_reference): Likewise.
30239 (all_ones_mask_p): Likewise.
30240 (native_interpret_int): Use build_int_cst_wide_type.
30241 (fold_binary): Use build_int_cst_type to build an all-ones
30242 value.
30243 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
30244
30245 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
30246
30247 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
30248
30249 2007-01-09 Ben Elliston <bje@au.ibm.com>
30250
30251 * genautomata.c (STATS_OPTION): New option.
30252 (stats_flag): New flag.
30253 (gen_automata_option): Handle it.
30254 (initiate_automaton_gen): Ditto.
30255 (write_automata): Output statistics only if stats_flag is
30256 set. Likewise, output time statistics only if time_flag is set.
30257 * doc/md.texi (Processor pipeline description): Document new flag.
30258
30259 2007-01-08 Richard Guenther <rguenther@suse.de>
30260
30261 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
30262 * tree.c (build_int_cst_type): Likewise.
30263 (size_in_bytes): Don't call force_fit_type on the result.
30264 (int_fits_type_p): Use fit_double_type.
30265 * fold-const.c (fit_double_type): New function.
30266 (force_fit_type): Use it.
30267 * tree.h (fit_double_type): Export.
30268
30269 2007-01-08 Jan Hubicka <jh@suse.cz>
30270
30271 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
30272 * ipa.c (function_and_variable_visibility): Fix return type.
30273
30274 2007-01-08 Richard Guenther <rguenther@suse.de>
30275
30276 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
30277 of offset to build the index.
30278 * tree-pretty-print.c (dump_generic_node): Don't build negated
30279 const just for printing.
30280 * c-pretty-print.c (pp_c_integer_constant): Likewise.
30281 * builtins.c (fold_builtin_int_roundingfn): Check if result
30282 fits the type by using force_fit_type and comparing the result.
30283 * predict.c (predict_loops): Use compare_tree_int for comparison.
30284 * tree.c (build_int_cst): Fall back to integer_type_node for
30285 NULL_TREE type.
30286 (build_int_cst_wide): Assert type is non-null.
30287
30288 2007-01-08 Roberto Costa <roberto.costa@st.com>
30289
30290 * tree-vrp.c (extract_range_from_cond_expr): New.
30291 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
30292 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
30293 as expressions.
30294 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
30295 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
30296 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
30297 used as expressions.
30298 * tree-object-size.c (cond_expr_object_size): New.
30299 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
30300
30301 2007-01-08 Jan Hubicka <jh@suse.cz>
30302
30303 * tree-ssa-forwprop.c (forward_propagate_into_cond,
30304 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
30305 statement.
30306
30307 2007-01-08 Richard Guenther <rguenther@suse.de>
30308
30309 PR tree-optimization/23603
30310 * tree-vrp.c (set_value_range_to_truthvalue): New function.
30311 (extract_range_from_binary): Fall back to truthvalue instead of
30312 varying for TRUTH_*_EXPR.
30313 (extract_range_from_comparison): Fall back to truthvalue instead of
30314 varying.
30315 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
30316 if all visited PHI values were constant.
30317
30318 2007-01-08 Jan Hubicka <jh@suse.cz>
30319
30320 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
30321 (cgraph_analyze_function): break out from ...
30322 (cgraph_finalize_compilation_unit): ... here.
30323 (cgraph_expand_function): Remove forgoten commented out line.
30324 (cgraph_optimize): Analyze functions.
30325
30326 2007-01-08 Jan Hubicka <jh@suse.cz>
30327
30328 * tree-pas.h (TODO_remove_function): New flag.
30329 (TODO_update*): Renumber.
30330 (pass_ipa_increase_alignment,
30331 pass_ipa_function_and_variable_visibility): New passes.
30332 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
30333 (cgraph_function_and_variable_visibility): Move to ipa.c
30334 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
30335 cgraph_increase_alignment.
30336 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
30337 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
30338 calling tree-inline.
30339 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
30340 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
30341 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
30342 (gate_increase_alignment): New function.
30343 (pass_ipa_increase_alignment): New pass.
30344 * ipa.c: Inline tree-pass.h and timevar.h
30345 (function_and_variable_visibility): Move here from cgraphunit.c
30346 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
30347 * passes.c (init_optimization_passes): Add the two new passes.
30348 (execute_todo): Handle cgraph_remove_functions.
30349
30350 2007-01-08 Nick Clifton <nickc@redhat.com>
30351
30352 * config/frv/predicates.md (reg_or_0_operand): Accept
30353 CONST_DOUBLEs.
30354
30355 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
30356
30357 * config/bfin/rtems.h, config/bfin/t-rtems: New.
30358 * config.gcc: Add bfin*-rtems*.
30359
30360 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
30361
30362 * c.opt: Add -flax-vector-conversions.
30363 * c-typeck.c (convert_for_assignment): Pass flag to
30364 vector_types_convertible_p to allow emission of note.
30365 (digest_init): Likewise.
30366 * c-opts.c: Handle -flax-vector-conversions.
30367 * c-common.c (flag_lax_vector_conversions): New.
30368 (vector_types_convertible_p): Unless -flax-vector conversions
30369 has been passed, disallow conversions between vectors with
30370 differing numbers of subparts and/or element types. If such
30371 a conversion is disallowed, possibly emit a note on the first
30372 occasion only to inform the user of -flax-vector-conversions.
30373 The new last argument specifies this.
30374 * c-common.h (flag_lax_vector_conversions): New.
30375 (vector_types_convertible_p): Add extra argument.
30376 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
30377 char_type_node for V*QI type vectors.
30378 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
30379 Update to satisfy new typechecking rules.
30380 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
30381 C and C++ variants.
30382 * doc/invoke.texi (C Dialect Options): Document
30383 -flax-vector-conversions.
30384
30385 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
30386
30387 PR tree-optimization/29877
30388 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
30389 a register variable on the RHS to not be replaceable.
30390
30391 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
30392 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
30393 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
30394 const_simm15, const_pow2, const_npow2): Added.
30395 * config/score/misc.md (insv, extv, extzv, movmemsi,
30396 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
30397 * config/score/score.c (score_address_cost, score_select_cc_mode):
30398 Added.
30399 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
30400 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
30401 Update score_print_operand.
30402 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
30403 Adjust register allocate order and update some macro define.
30404 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
30405 mdx_block_move_straight, mdx_block_move_loop_head,
30406 mdx_block_move_loop_body, mdx_block_move_loop_foot,
30407 mdx_block_move_loop, mdx_block_move): Added.
30408 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
30409 mdp_limm): Updated and fix some bug and typo.
30410 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
30411 (movsf, movdf, doloop_end): Added.
30412
30413 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
30414
30415 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
30416 config/arm/thumb2.md: Fix comment typos.
30417 * doc/extend.texi: Fix a typo.
30418
30419 2007-01-07 Eric Christopher <echristo@apple.com>
30420
30421 * configure.ac: Check for __stack_chk_fail for darwin.
30422 * configure: Regenerate.
30423
30424 2007-01-07 Richard Guenther <rguenther@suse.de>
30425
30426 * tree-vrp.c (extract_range_from_assert): CSE calls to
30427 compare_values where possible.
30428 (extract_range_from_unary_expr): Likewise.
30429
30430 2007-01-07 Anatoly Sokolov <aesok@post.ru>
30431
30432 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
30433 * config/avr/avr.c (call_insn_operand): Delete function.
30434 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
30435 instead of register number. Use predicates.
30436 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
30437 call_insn_operand): Add.
30438
30439 2007-01-06 Jan Hubicka <jh@suse.cz>
30440
30441 * tree-pass.h (pass_build_cgraph_edges): Declare.
30442 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
30443 (visited_nodes): Remove.
30444 (cgraph_create_edges): Move to cgraphbuild.c; rename to
30445 build_cgrpah_edges; make visited_nodes local.
30446 (cgraph_process_new_functions): DO not call initialize_inline_failed.
30447 (record_references_in_initializer): Move to cgraphbuild.c
30448 (initialize_inline_failed, rebuild_cgraph_edges,
30449 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
30450 (verify_cgraph_node): Make visited_nodes local.
30451 (cgraph_analyze_function): Do not call cgraph_create_edges and
30452 initialize_inline_failed.
30453 (cgraph_expand_function): Do not call cgraph_lower_function;
30454 assert that function is already lowered.
30455 * Makefile.in (cgraphbuild.o): New.
30456 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
30457 at the end of lowering passes.
30458
30459 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
30460
30461 * ifcvt.c (cond_move_convert_if_block): New function, code
30462 factored out from...
30463 (cond_move_process_if_block): ...here. Call the new function
30464 on the THEN and ELSE blocks.
30465 (merge_if_block): Do not copy global_live_at_end, merge_blocks
30466 already takes care of this.
30467
30468 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30469
30470 PR c/19978
30471 * tree.h (TREE_OVERFLOW_P): New.
30472 * c-typeck.c (parser_build_unary_op): Warn only if result
30473 overflowed and operands did not.
30474 (parser_build_binary_op): Likewise.
30475 (convert_for_assignment): Remove redundant overflow_warning.
30476 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
30477
30478 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30479
30480 * c-typeck.c (store_init_value): Split over two lines to follow
30481 the GNU coding style.
30482
30483 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
30484
30485 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
30486 __GXX_EXPERIMENTAL_CXX0X__.
30487 * doc/cpp.texi: Same.
30488
30489 2007-01-05 Richard Guenther <rguenther@suse.de>
30490
30491 PR middle-end/27826
30492 * tree.c (get_narrower): Do not construct COMPONENT_REFs
30493 with mismatched types. Instead explicitly build a
30494 conversion NOP_EXPR.
30495
30496 2007-01-05 Ian Lance Taylor <iant@google.com>
30497
30498 * c-common.c (decl_with_nonnull_addr_p): New function.
30499 (c_common_truthvalue_conversion): Call it.
30500 * c-typeck.c (build_binary_op): Likewise.
30501 * c-common.h (decl_with_nonnull_addr_p): Declare.
30502
30503 2007-01-05 Jakub Jelinek <jakub@redhat.com>
30504
30505 PR c/30360
30506 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
30507 denom against 0.0.
30508
30509 2007-01-05 Joel Brobecker <brobecker@adacore.com>
30510
30511 * doc/install.texi (Final install): Document the fact that
30512 the GNAT runtime should not be stripped.
30513
30514 2007-01-04 Jan Hubicka <jh@suse.cz>
30515
30516 * tree-inline.c (fold_marked_statements): Update operand caches
30517 and EH after folding
30518
30519 2007-01-04 Ian Lance Taylor <iant@google.com>
30520
30521 * c-common.c (check_function_nonnull): Whitespace fix.
30522
30523 2007-01-04 Jan Hubicka <jh@suse.cz>
30524
30525 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
30526 comitted older version of patch.
30527 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
30528 function, celanup cfg and collect garbage.
30529
30530 2007-01-04 Mike Stump <mrs@apple.com>
30531
30532 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
30533 (clean): Likewise.
30534
30535 2007-01-04 Eric Christopher <echristo@apple.com>
30536
30537 * libgcc2.c (__bswapsi2): Use SItype.
30538 (__bswapdi2): Use DItype.
30539 * libgcc2.h: Update for above.
30540
30541 2007-01-04 Paul Brook <paul@codesourcery.com>
30542
30543 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
30544 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
30545 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
30546 umulsidi3, umulsidi3adddi, smulsi3_highpart,
30547 umulsi3_highpart): Make conditional on !arm_arch6.
30548 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
30549 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
30550 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
30551 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
30552 umulsi3_highpart_v6): New insns.
30553
30554 2007-01-04 Roger Sayle <roger@eyesopen.com>
30555
30556 * fold-const.c (fold_convert): When casting an expression to void,
30557 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
30558 have a type. Instead of attempting to build a NOP_EXPR, return
30559 these "special" trees directly.
30560
30561 2007-01-04 Joseph Myers <joseph@codesourcery.com>
30562
30563 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
30564 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
30565 rs6000_cost->fp not 0 as adjustment for outer NEG.
30566
30567 2007-01-04 Jan Hubicka <jh@suse.cz>
30568
30569 * cgraph.c (cgraph_release_function_body): New function.
30570 (cgraph_remove_node): Use it.
30571 * cgraph.h (cgraph_release_function_body): Declare.
30572 * cgraphunit.c (cgraph_expand_function): Use it.
30573 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
30574 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
30575 is initialized and while compilation of other function is running.
30576 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
30577 statement CFG annotations from here to ...
30578 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
30579
30580 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
30581
30582 * cfgloop.h (enum li_flags): Make the constants powers of two.
30583
30584 2007-01-04 Jan Hubicka <jh@suse.cz>
30585
30586 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
30587 set.
30588 (fold_marked_statements): New function.
30589 (optimize_inline_calls, tree_function_versioning): Fold new statements.
30590 * tree-inline.h (copy_body_data): Add statements_to_fold.
30591
30592 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
30593
30594 * config.gcc: Mention libgcc/config.host.
30595 * Makefile.in: Update comments mentioning libgcc.
30596 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
30597 (all.cross, start.encap, rest.encap, rest.cross): Update
30598 dependencies for libgcc move.
30599 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
30600 (clean-target, clean-target-libgcc): Delete.
30601 (srcdirify, GCC_EXTRA_PARTS): New macros.
30602 (libgcc-support, libgcc.mvars): New rules.
30603 (distclean): Remove mention of mklibgcc.
30604 (install): Don't reference INSTALL_LIBGCC.
30605 (install-common): Don't reference EXTRA_PARTS.
30606 (install-libgcc, install-multilib): Delete rules.
30607 * mklibgcc.in: Delete file.
30608 * doc/configfiles.texi: Don't mention mklibgcc.
30609
30610 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
30611 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
30612 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
30613 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
30614 (mklibgcc, ldblspecs): Likewise.
30615
30616 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
30617 (posixpre.def): Use $(T).
30618 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
30619 (SHLIB_SRC, SHLIB_INSTALL): Delete.
30620 (SHLIB_LINK): Make dummy.
30621 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
30622
30623 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
30624
30625 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
30626 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
30627 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
30628 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
30629
30630 * configure.ac (all_outputs): Remove mklibgcc.
30631 * configure: Regenerated.
30632
30633 2007-01-03 Josh Conner <jconner@apple.com>
30634
30635 PR middle-end/29683
30636 * calls.c (compute_argument_addresses): Set stack and stack_slot
30637 for partial args, too.
30638 (store_one_arg): Use locate.size.constant for the size when
30639 generating a save_area.
30640
30641 2007-01-03 Robert Kennedy <jimbob@google.com>
30642
30643 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
30644 whose definitions are deleted due to basic block merging.
30645
30646 2007-01-03 Paul Brook <paul@codesourcery.com>
30647
30648 PR target/16634
30649 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
30650 functions.
30651 (use_return_insn): Return 0 for Thumb interrupt functions.
30652 (print_multi_reg): Add rfe argument for IRQ returns.
30653 (arm_output_epilogue): Pop interrupt return address directly into PC.
30654 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
30655
30656 2007-01-03 Paul Brook <paul@codesourcery.com>
30657
30658 Merge from sourcerygxx-4_1.
30659 * config/arm/thumb2.md: New file.
30660 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
30661 Thumb-2.
30662 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
30663 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
30664 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
30665 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
30666 tables.
30667 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
30668 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
30669 comptibility.
30670 * config/arm/ieee754-sf.S: Ditto.
30671 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
30672 (thumb1_base_register_rtx_p): ... to this.
30673 (thumb_index_register_rtx_p): Rename...
30674 (thumb1_index_register_rtx_p): ... to this.
30675 (thumb_output_function_prologue): Rename...
30676 (thumb1_output_function_prologue): ... to this.
30677 (thumb_legitimate_address_p): Rename...
30678 (thumb1_legitimate_address_p): ... to this.
30679 (thumb_rtx_costs): Rename...
30680 (thumb1_rtx_costs): ... to this.
30681 (thumb_compute_save_reg_mask): Rename...
30682 (thumb1_compute_save_reg_mask): ... to this.
30683 (thumb_final_prescan_insn): Rename...
30684 (thumb1_final_prescan_insn): ... to this.
30685 (thumb_expand_epilogue): Rename...
30686 (thumb1_expand_epilogue): ... to this.
30687 (arm_unwind_emit_stm): Rename...
30688 (arm_unwind_emit_sequence): ... to this.
30689 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
30690 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
30691 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
30692 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
30693 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
30694 thumb2_output_casesi): New functions.
30695 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
30696 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
30697 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
30698 THUMB2_WORK_REGS): Define.
30699 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
30700 arm_condexec_mask, arm_condexec_masklen)): New variables.
30701 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
30702 (arm_override_options): Check new CPU capabilities.
30703 Set new architecture flag variables.
30704 (arm_isr_value): Handle v7m interrupt functions.
30705 (user_return_insn): Return 0 for v7m interrupt functions. Handle
30706 Thumb-2.
30707 (const_ok_for_arm): Handle Thumb-2 constants.
30708 (arm_gen_constant): Ditto. Use movw when available.
30709 (arm_function_ok_for_sibcall): Return false for v7m interrupt
30710 functions.
30711 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
30712 (thumb_find_work_register, arm_load_pic_register,
30713 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
30714 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
30715 print_multi_reg, output_mov_long_double_fpa_from_arm,
30716 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
30717 output_mov_double_fpa_from_arm, output_move_double,
30718 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
30719 output_return_instruction, arm_output_function_prologue,
30720 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
30721 arm_output_mi_thunk, thumb_set_return_address): Ditto.
30722 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
30723 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
30724 (arithmetic_instr, shift_op): Use arm_shift_nmem.
30725 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
30726 '!' and 'L'.
30727 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
30728 (thumb_expand_prologue): Use thumb_set_frame_pointer.
30729 (arm_file_start): Output directive for unified syntax.
30730 (arm_unwind_emit_set): Handle stack alignment instruction.
30731 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
30732 Add v6t2, v7, v7a, v7r and v7m.
30733 (RETLDM): Add Thumb-2 code.
30734 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
30735 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
30736 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
30737 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
30738 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
30739 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
30740 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
30741 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
30742 ADJUST_INSN_LENGTH): Define.
30743 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
30744 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
30745 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
30746 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
30747 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
30748 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
30749 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
30750 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
30751 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
30752 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
30753 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
30754 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
30755 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
30756 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
30757 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
30758 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
30759 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
30760 cortex-m3.
30761 * config/arm/arm-tune.md: Regenerate.
30762 * config/arm/arm-protos.h: Update prototypes.
30763 * config/arm/vfp.md: Enable patterns for Thumb-2.
30764 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
30765 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
30766 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
30767 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
30768 * config/arm/libunwind.S: Add Thumb-2 code.
30769 * config/arm/constraints.md: Update include Thumb-2.
30770 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
30771 * config/arm/ieee754-df.S: Ditto.
30772 * config/arm/bpabi.S: Ditto.
30773 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
30774 * config/arm/predicates.md (low_register_operand,
30775 low_reg_or_int_operand, thumb_16bit_operator): New.
30776 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
30777 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
30778 * config/arm/t-arm-elf: Add armv7 multilib.
30779 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
30780 Include thumb2.md.
30781 (UNSPEC_STACK_ALIGN, ce_count): New.
30782 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
30783 arm_zero_extendsidi2, arm_zero_extendqidi2): New
30784 insns/expanders.
30785 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
30786 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
30787 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
30788 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
30789 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
30790 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
30791 insns.
30792 * doc/extend.texi: Document ARMv7-M interrupt functions.
30793 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
30794
30795 2007-01-03 Jakub Jelinek <jakub@redhat.com>
30796
30797 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
30798 (struct _Unwind_Context): Rename args_size to flags, remove
30799 signal_frame field, add a new args_size field and version field.
30800 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
30801 _Unwind_IsExtendedContext): New inline functions.
30802 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
30803 Assume by_value array is only present if _Unwind_IsExtendedContext.
30804 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
30805 _Unwind_IsSignalFrame.
30806 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
30807 (uw_update_context_1): Use _Unwind_SetSignalFrame.
30808 (uw_init_context_1): Initialize context->flags to
30809 EXTENDED_CONTEXT_BIT.
30810 * config/rs6000/linux-unwind.h (frob_update_context): Use
30811 _Unwind_SetSignalFrame.
30812
30813 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
30814
30815 PR middle-end/30353
30816 * gimplify.c (gimplify_modify_expr_complex_part): Move below
30817 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
30818 the value.
30819
30820 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
30821
30822 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
30823 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
30824 RET, AT_SP): Remove.
30825 * config/i386/i386.md (*sse_prologue_save_insn): Use return
30826 instead of RET.
30827
30828 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
30829 * cfgbuild.c (find_basic_blocks): Likewise.
30830 * cfgrtl.c (rtl_create_basic_block): Likewise.
30831 * function.c (temp_slots_at_level): Likewise.
30832 * reg-stack.c (stack_regs_mentioned): Likewise.
30833 * regclass.c (allocate_reg_info): Likewise.
30834 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
30835 set_bb_for_stmt, move_block_to_fn): Likewise.
30836 * tree-complex.c (tree_lower_complex): Likewise.
30837 * vec.h (VEC_safe_grow_cleared): New.
30838
30839 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
30840
30841 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
30842
30843 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
30844 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
30845 to loop_version.
30846 * cfgloopmanip.c (scale_loop_frequencies): Export.
30847 (loopify): Scale the frequencies by prescribed coefficients.
30848 (set_zero_probability): New function.
30849 (duplicate_loop_to_header_edge): Improve updating of frequencies.
30850 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
30851 and frequencies according to arguments.
30852 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
30853 correctly.
30854 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
30855 * modulo-sched.c (sms_schedule): Set probabilities for entering
30856 versioned loop correctly.
30857 * tree-vect-transform.c (vect_transform_loop): Ditto.
30858 * cfgloop.h (loopify, loop_version): Declaration changed.
30859 (scale_loop_frequencies): Declared.
30860
30861 2007-01-02 Jan Hubicka <jh@suse.cz>
30862
30863 * cgraph.c: Include tree-flow.h
30864 (cgraph_add_new-function): Handle IPA_SSA mode; execute
30865 early_local_passes.
30866 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
30867 * tree-pass.h (pass_all_early_optimizations): Declare.
30868 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
30869 early_local_passes.
30870 (cgraph_analyze_function): Do early_local_passes.
30871 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
30872 Do not add referenced vars.
30873 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
30874 SSA form.
30875 (gate_all_early_local_passes): New gate.
30876 (pass_early_local_passes): Use new gate.
30877 (execute_early_local_optimizations): New functions.
30878 (gate_all_early_optimizations): New gate.
30879 (pass_all_early_optimizations): New pass.
30880 (execute_free_datastructures): Free SSA only when initialized.
30881 (gate_init_datastructures): Init only when optimizing.
30882 (tree_lowering_passes): Do early local passes when called late.
30883 * tree-profile.c (do_tree_profiling): Don't profile functions added
30884 late.
30885 (do_early_tree_profiling, pass_early_tree_profile): Kill.
30886 * tree-cfg.c (update_modified_stmts): Do not update when operands are
30887 not active.
30888 * passes.c (init_optimizations_passes): Reorder so we go into SSA
30889 during early_local_passes.
30890 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
30891
30892
30893 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
30894
30895 * Makefile.in: Update copyright year.
30896
30897 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
30898
30899 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
30900 in $(lang_checks) and check-consistency targets.
30901
30902 2007-01-02 Jan Hubicka <jh@suse.cz>
30903
30904 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
30905 Do not add referenced vars.
30906 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
30907 are not active.
30908 * passes.c (init_optimization_passes): Put mudflap_2 after
30909 free_datastructures.
30910
30911 2007-01-02 Jan Hubicka <jh@suse.cz>
30912
30913 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
30914 Set NOTHROW flag on call statements proved to be nothrow.
30915 Update statement of local calls so new pure/const functions are
30916 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
30917 goto receivers.
30918 (tree_rest_of_compilation): Register hooks and initialize bitmap
30919 early. Do not set after_inlining flag.
30920
30921 2007-01-02 Steve Ellcey <sje@cup.hp.com>
30922
30923 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
30924 HOST_BITS_PER_LONGLONG
30925
30926 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30927
30928 PR c/19977
30929 * c-typeck.c (store_init_value): Don't emit pedantic overflow
30930 warning for non-static initializers.
30931
30932 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
30933
30934 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
30935 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
30936 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
30937 Always use set_unique_reg_note to add REG_EQUAL notes.
30938
30939 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
30940
30941 Revert:
30942 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
30943
30944 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
30945 * cfgbuild.c (find_basic_blocks): Likewise.
30946 * cfgrtl.c (rtl_create_basic_block): Likewise.
30947 * function.c (temp_slots_at_level): Likewise.
30948 * reg-stack.c (stack_regs_mentioned): Likewise.
30949 * regclass.c (allocate_reg_info): Likewise.
30950 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
30951 set_bb_for_stmt, move_block_to_fn): Likewise.
30952 * tree-complex.c (tree_lower_complex): Likewise.
30953 * vec.h (VEC_safe_grow_cleared): New.
30954
30955 2007-01-02 Ian Lance Taylor <iant@google.com>
30956
30957 * c-common.c (c_common_truthvalue_conversion): When warning about
30958 using an assignment as a truth value, set TREE_NO_WARNING.
30959
30960 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30961
30962 PR middle-end/7651
30963 * c.opt (Wold-style-declaration): New.
30964 * doc/invoke.texi (C-only Warning Options): New.
30965 (Wold-style-declaration): Document it.
30966 (Wextra): Enabled by -Wextra.
30967 * c-opts.c (c_common_post_options): Enabled by -Wextra.
30968 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
30969 -Wold-style-declaration.
30970
30971 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
30972
30973 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
30974 * cfgbuild.c (find_basic_blocks): Likewise.
30975 * cfgrtl.c (rtl_create_basic_block): Likewise.
30976 * function.c (temp_slots_at_level): Likewise.
30977 * reg-stack.c (stack_regs_mentioned): Likewise.
30978 * regclass.c (allocate_reg_info): Likewise.
30979 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
30980 set_bb_for_stmt, move_block_to_fn): Likewise.
30981 * tree-complex.c (tree_lower_complex): Likewise.
30982 * vec.h (VEC_safe_grow_cleared): New.
30983
30984 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
30985
30986 * c-common.c (c_common_nodes_and_builtins): Since variants of
30987 void_type_node get built before it is given a name, we need to
30988 give those variants the name, too.
30989 (complete_array_type): We need to work with the canonical main
30990 type of the array, from which we will build the qualified version.
30991 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
30992 * print-tree.c (print_node): Display canonical type information
30993 for each type.
30994 * stor-layout.c (layout_type): When we don't know the
30995 alignment of a type for which we're building an array, we end up
30996 guessing wrong, so make the type require structural equality.
30997 * tree.c (make_node_stat): When we build a new type, it is its
30998 own canonical type.
30999 (build_type_attribute_qual_variant): When building an attribute
31000 variant, its canonical type is the non-attribute variant. However,
31001 if the attributes are target-dependent and they differ, we need to
31002 use structural equality checks for this type.
31003 (build_qualified_type): A qualified type is not equivalent to its
31004 unqualified variant; set the canonical type appropriately.
31005 (build_distinct_type_copy): When building a distinct type from
31006 another type, the new type is its own canonical type.
31007 (build_variant_type_copy): When building a new type variant, we
31008 assume that it is equivalent to the original type.
31009 (build_pointer_type_for_mode): When building a pointer type, also
31010 build a canonical type pointer.
31011 (build_reference_type_for_mode): When building a reference type,
31012 also build a canonical type reference.
31013 (build_index_type): When we can't hash an index type (e.g.,
31014 because its maximum value is negative), the index type requires
31015 structural equality tests.
31016 (build_array_type): Build the canonical form of an array type.
31017 (build_function_type): Function types require structural equality,
31018 because they contain default arguments, attributes, etc.
31019 (build_method_type_directly): Ditto for method types.
31020 (build_offset_type): Build the canonical offset type.
31021 (build_complex_type): Build the canonical vector type.
31022 (make_vector_type): Build the canonical vector type.
31023 * tree.h (TYPE_CANONICAL): New.
31024 (TYPE_STRUCTURAL_EQUALITY_P): New.
31025 (SET_TYPE_STRUCTURAL_EQUALITY): New.
31026 (struct tree_type): Added "canonical" field.
31027 * params.h (VERIFY_CANONICAL_TYPES): New.
31028 * doc/c-tree.texi (TYPE_CANONICAL): Document.
31029 (TYPE_STRUCTURAL_EQUALITY_P): Document.
31030 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
31031 * doc/invoke.texi (verify-canonical-types): Document --param
31032 parameter for verifying canonical types.
31033
31034 2007-01-02 Joseph Myers <joseph@codesourcery.com>
31035
31036 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
31037 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
31038 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
31039 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
31040 tm_file.
31041 * config/rs6000/e500.h: New.
31042 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
31043 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
31044 Remove.
31045 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
31046 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
31047 TARGET_E500_DOUBLE): Remove.
31048 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
31049 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
31050 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
31051 * config/rs6000/rs6000.c (rs6000_override_options): Use
31052 CHECK_E500_OPTIONS.
31053
31054 2007-01-02 Joseph Myers <joseph@codesourcery.com>
31055
31056 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
31057 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
31058 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
31059 rs6000_emit_cmove): Don't check TARGET_E500.
31060 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
31061 sordered): Don't check TARGET_E500.
31062
31063 2007-01-01 Eric Christopher <echristo@apple.com>
31064
31065 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
31066 HARD_REGISTER_NUM_P.
31067
31068 2007-01-01 Roger Sayle <roger@eyesopen.com>
31069
31070 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
31071 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
31072 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
31073 eq/ne Y".
31074
31075 2007-01-01 Mike Stump <mrs@apple.com>
31076
31077 * configure.ac: Remove support for building with Apple's gcc-3.1.
31078
31079 2007-01-02 Joseph Myers <joseph@codesourcery.com>
31080
31081 PR middle-end/30311
31082 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
31083 REG is a hard register. Do not modify REG before calling
31084 subreg_nregs.
31085 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
31086 multiple of the size of YMODE for certain lowpart cases.
31087
31088 2007-01-01 Andrew Pinski <pinskia@gmail.com>
31089
31090 PR middle-end/30253
31091 * gimplify (voidify_wrapper_expr): Update for
31092 GIMPLE_MODIFY_STMT.
31093
31094 2007-01-01 Andreas Schwab <schwab@suse.de>
31095
31096 PR target/29166
31097 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
31098 save of BR0 in extra_spill_size instead of spill_size.
31099 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
31100 area.
31101 (ia64_expand_epilogue): Restore BR0 from its new location.
31102
31103 2007-01-01 Andrew Pinski <pinskia@gmail.com>
31104
31105 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
31106 Use a temporary variable if the left hand side is not a gimple
31107 register.
31108
31109 2007-01-01 Andrew Pinski <pinskia@gmail.com>
31110
31111 * gimplify.c (gimplify_return_expr): Make the temporary variable
31112 for the return expression, a gimple register variable.
31113
31114 2007-01-01 Jan Hubicka <jh@suse.cz>
31115
31116 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
31117 INSN_LIST.
31118
31119 2007-01-01 Mike Stump <mrs@apple.com>
31120
31121 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
31122 .literal16.
31123 * config/darwin.c (machopic_select_rtx_section): Use
31124 HAVE_GAS_LITERAL16.
31125 (darwin_mergeable_constant_section): Likewise.
31126 * configure: Regenerate.
31127 * config.in: Regenerate.
31128
31129 2007-01-01 Jan Hubicka <jh@suse.cz>
31130 Andrew Pinski <pinskia@gmail.com>
31131
31132 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
31133 before starting IPA passes.