]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
c85ce3325d202abb57ffcff238ea0087fe7005d3
[thirdparty/gcc.git] / gcc / ChangeLog
1 2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
2
3 PR tree-opt/32090
4 * tree-ssa-forwprop.c
5 (forward_propagate_addr_into_variable_array_index): Remove
6 the lhs argument. Use the type of def_rhs instead of lhs.
7 (forward_propagate_addr_expr_1): Update use of
8 forward_propagate_addr_into_variable_array_index.
9
10 2007-05-25 Sandra Loosemore <sandra@codesourcery.com>
11 Nigel Stephens <nigel@mips.com>
12
13 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
14 function attributes, "far" being an alias for "long_call".
15 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
16 (mips_near_type_p, mips_far_type_p): New.
17 (mips_comp_type_attributes): New function to check that attributes
18 attached to a function type are compatible.
19 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
20 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
21 to the target function of the thunk.
22 (mips_encode_section_info): Check for "near" and "far" function
23 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
24
25 * config/mips/predicates.md (const_call_insn_operand): Test only
26 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
27
28 * doc/extend.texi (Function Attributes): Document MIPS "near" and
29 "far" attributes.
30
31 * testsuite/gcc.target/mips/near-far-1.c: New test case.
32 * testsuite/gcc.target/mips/near-far-2.c: New test case.
33 * testsuite/gcc.target/mips/near-far-3.c: New test case.
34 * testsuite/gcc.target/mips/near-far-4.c: New test case.
35
36 2007-05-25 Eric Christopher <echristo@apple.com>
37
38 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
39 to x86-darwin configurations.
40 * config/i386/t-darwin: Add softfp support.
41 * config/i386/t-darwin64: Ditto.
42 * config/i386/sfp-machine.h: If mach then don't use
43 aliasing, emit a stub to call.
44
45 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
46
47 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
48 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
49 tree-predcom.c, tree-ssa-alias-warnings.c,
50 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
51 comment typos. Follow spelling conventions.
52 * doc/cpp.texi, doc/invoke.texi: Fix typos.
53
54 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
55
56 PR target/32065
57 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
58 constants into memory. Expand unaligned memory references for
59 SSE modes via x86_expand_vector_move_misalign() function.
60
61 2007-05-25 Uros Bizjak <ubizjak@gmail.com>
62
63 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
64 "memory" attribute for "sseishft" type insn without operands[2].
65
66 2007-05-25 Dirk Mueller <dmueller@suse.de>
67 Marcus Meissner <meissner@suse.de>
68
69 * doc/extend.texi (alloc_size): New attribute.
70 * c-common.c (handle_alloc_size_attribute): New.
71 * tree-object-size.c (alloc_object_size): Use alloc_size
72 attribute, if available.
73
74 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
75
76 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
77 with MASK_SSE2.
78 (__builtin_ia32_vec_ext_v2di): Likewise.
79 (__builtin_ia32_vec_ext_v4si): Likewise.
80 (__builtin_ia32_vec_ext_v8hi): Likewise.
81 (__builtin_ia32_vec_ext_v16qi): Likewise.
82 (__builtin_ia32_vec_set_v8hi): Likewise.
83
84 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
85
86 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
87
88 2007-05-25 Richard Sandiford <richard@codesourcery.com>
89
90 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
91 (arm_is_longcall_p): Rename to...
92 (arm_is_long_call_p): ...this. Take a single tree argument and
93 return a bool.
94 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
95 (CUMULATIVE_ARGS): Remove call_cookie.
96 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
97 (ENCODED_LONG_CALL_ATTR_P): Delete.
98 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
99 LONG_CALL_FLAG_CHAR cases.
100 (ARM_DECLARE_FUNCTION_SIZE): Delete.
101 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
102 ARM_DECLARE_FUNCTION_SIZE.
103 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
104 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
105 (arm_encode_call_attribute, current_file_function_operand): Delete.
106 (arm_function_in_section_p): New function.
107 (arm_is_longcall_p): Rename to...
108 (arm_is_long_call_p): ...this. Take the target function as a single
109 argument and return a bool. Do not rely on call cookies. Check
110 whether the target symbol is in the same section as the current
111 function, not just the same compilation unit.
112 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
113 (arm_encode_section_info): Don't encode a call type.
114 * config/arm/arm.md (call, call_value): Update calls to
115 arm_is_long(_)call_p. Simplify logic.
116 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
117 Update calls to arm_is_long(_)call_p.
118
119 2007-05-25 Richard Guenther <rguenther@suse.de>
120
121 PR tree-optimization/31982
122 * tree-ssa-forwprop.c
123 (forward_propagate_addr_into_variable_array_index): Handle arrays
124 with element size one.
125
126 2007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
127
128 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
129 (umulsi3_highpart): Likewise.
130
131 2007-05-24 Ian Lance Taylor <iant@google.com>
132
133 PR rtl-optimization/32069
134 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
135 is NULL.
136
137 2007-05-24 Ollie Wild <aaw@google.com>
138
139 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
140 description.
141
142 2007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
143
144 * postreload-gcse.c (reg_changed_after_insn_p): New function.
145 (oprs_unchanged_p): Use it to check all registers in a REG.
146 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
147 (reg_set_between_after_reload_p): Delete.
148 (reg_used_between_after_reload_p): Likewise.
149 (reg_set_or_used_since_bb_start): Likewise.
150 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
151 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
152 Use reg_set_between_p instead of reg_set_between_after_reload_p.
153 * rtlanal.c (reg_set_p): Check whether REG overlaps
154 regs_invalidated_by_call, rather than just checking the
155 membership of REGNO (REG).
156
157 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
158
159 * doc/passes.texi: Document predictive commoning.
160 * doc/invoke.texi (-fpredictive-commoning): Document.
161 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
162 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
163 adding indices to the generated name.
164 (schedule_sm): Pass 0 to get_lsm_tmp_name.
165 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
166 * tree-pretty-print.c (op_symbol_1): Renamed to ...
167 (op_symbol_code): ... and exported.
168 (dump_omp_clause, op_symbol): Use op_symbol_code
169 instead of op_symbol_1.
170 * tree-pass.h (pass_predcom): Declare.
171 * timevar.def (TV_PREDCOM): New timevar.
172 * tree-ssa-loop.c (run_tree_predictive_commoning,
173 gate_tree_predictive_commoning, pass_predcom): New.
174 * tree-data-ref.c (find_data_references_in_loop): Find the
175 references in dominance order.
176 (canonicalize_base_object_address): Ensure that the result has
177 pointer type.
178 (dr_analyze_innermost): Export.
179 (create_data_ref): Code to fail for references with invariant
180 address moved ...
181 (find_data_references_in_stmt): ... here.
182 * tree-data-ref.h (dr_analyze_innermost): Declare.
183 * tree-affine.c: Include tree-gimple.h and hashtab.h.
184 (aff_combination_find_elt, name_expansion_hash,
185 name_expansion_eq, tree_to_aff_combination_expand,
186 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
187 New functions.
188 * tree-affine.h (aff_combination_constant_multiple_p,
189 tree_to_aff_combination_expand): Declare.
190 * tree-predcom.c: New file.
191 * common.opt (fpredictive-commoning): New option.
192 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
193 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
194 * Makefile.in (tree-predcom.o): Add.
195 (tree-affine.o): Add TREE_GIMPLE_H dependency.
196 * passes.c (init_optimization_passes): Add dceloop after
197 copy propagation in loop optimizer. Add predictive commoning
198 to loop optimizer passes.
199
200 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
201
202 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
203 default hook.
204
205 2007-05-24 Jan Hubicka <jh@suse.cz>
206
207 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
208 statistics.
209 (genheader): Include statistics.h.
210
211 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
212 notes are gone.
213 * print-rtl.c (flag_dump_unnumbered): Update comments.
214 (print_rtl): Fix my previous change.
215 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
216 specific data.
217
218 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
219
220 PR middle-end/32018
221 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
222 set_loop_copy.
223 (thread_through_all_blocks): Call initialize_original_copy_tables
224 and free_original_copy_tables.
225 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
226 Use set_loop_copy.
227 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
228 * cfghooks.c (duplicate_block): Use get_loop_copy.
229 * cfg.c: Include cfgloop.h.
230 (loop_copy): New hash table.
231 (initialize_original_copy_tables): Initialize loop_copy table.
232 (free_original_copy_tables): Free loop_copy table.
233 (copy_original_table_clear, copy_original_table_set,
234 set_loop_copy, get_loop_copy): New functions.
235 (set_bb_original, set_bb_copy): Use copy_original_table_set.
236 * cfgloop.h (struct loop): Remove copy field.
237 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
238 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
239
240 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
241
242 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
243 -msse/-msse2/-msse3.
244
245 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
246
247 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
248 __builtin_ia32_vec_set_v2di with MASK_64BIT.
249
250 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
251
252 PR target/27067
253 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
254 * targhooks.h (default_mangle_decl_assembler_name): Declare
255 default hook.
256 * targhooks.c (default_mangle_decl_assembler_name): Define
257 default hook.
258 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
259 default hook.
260 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
261 * langhooks.c (lhd_set_decl_assembler_name): Call
262 targetm.mangle_decl_assembler_name for names with global scope.
263
264 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
265 default.
266 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
267 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
268 Declare.
269 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
270 New. Factored out of i386_pe_encode_section_info.
271 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
272 Move check for prior decoration of stdcall
273 symbols to i386_pe_encode_section_info.
274 (i386_pe_encode_section_info): Adjust call to
275 gen_stdcall_or_fastcall_suffix. Use
276 i386_pe_maybe_mangle_decl_assembler_name, if needed.
277 (i386_pe_mangle_decl_assembler_name): New. Wrap
278 i386_pe_maybe_mangle_decl_assembler_name.
279
280 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
281
282 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
283 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
284 * langhooks.c (get_signed_or_unsigned_type): Don't check for
285 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
286 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
287 TYPE_UNSIGNED.
288
289 2007-05-23 Sandra Loosemore <sandra@codesourcery.com>
290 Nigel Stephens <nigel@mips.com>
291 Richard Sandiford <richard@codesourcery.com>
292
293 Fix up MIPS16 hard float and add support for complex.
294
295 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
296 (TARGET_SOFT_FLOAT_ABI): New.
297 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
298 __mips_soft_float to reflect the ABI in use, not whether the
299 FPU is directly accessible (e.g., in MIPS16 mode).
300 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
301 (UNITS_PER_FPVALUE): Likewise.
302
303 * config/mips/mips.c (mips_expand_call): Remove redundant
304 TARGET_MIPS16 check.
305 (mips_arg_regno): New.
306 (function_arg_advance): When setting bits in cum->fp_code for
307 MIPS16, don't subtract 1 from cum->arg_number, since it is now
308 zero-based.
309 (function_arg): Use mips_arg_regno.
310 (mips_return_mode_in_fpr_p): New.
311 (mips16_call_stub_mode_suffix): New.
312 (mips16_cfun_returns_in_fpr_p): New.
313 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
314 (mips_output_function_prologue): Test mips16_hard_float, not
315 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
316 (mips_expand_epilogue): Call MIPS16 helper routines to copy
317 return value into a floating-point register.
318 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
319 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
320 (mips16_fp_args): Handle MIPS32r2 ISA which supports
321 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
322 word of double arguments from or to the high bits of 64-bit
323 floating point registers.
324 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
325 (mips16_fpret_double): New helper function.
326 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
327 support for complex modes. Fill in DECL_RESULT for stubdecl.
328 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
329
330 * config/mips/mips16.S
331 (RET, ARG1, ARG2): New.
332 (MERGE_GPRf, MERGE_GPRt): New.
333 (DELAYt, DELAYf): New.
334 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
335 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
336 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
337 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
338 (SFOP): Renamed to...
339 (OPSF3): This, and macro-ified. Updated all uses.
340 (SFOP2): Renamed to...
341 (OPSF2): This, and macro-ified. Updated all uses.
342 (SFCMP): Renamed to...
343 (CMPSF): This, and macro-ified. Updated all uses.
344 (SFREVCMP): Renamed to...
345 (REVCMPSF): This, and macro-ified. Updated all uses.
346 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
347 (LDDBL1, LDDBL2, RETDBL): Deleted.
348 (DFOP): Renamed to...
349 (OPDF3): This, and macro-ified. Updated all uses.
350 (DFOP2): Renamed to...
351 (OPDF2): This, and macro-ified. Updated all uses.
352 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
353 (DFCMP): Renamed to...
354 (CMPDF): This, and macro-ified. Updated all uses.
355 (DFREVCMP): Renamed to...
356 (REVCMPDF): This, and macro-ified. Updated all uses.
357 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
358 (RET_FUNCTION): New.
359 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
360 (__mips16_ret_sc, __mips16_ret_dc): New.
361 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
362 STUB_ARGS_6, STUB_ARGS_10): New.
363 (CALL_STUB_NO_RET): New.
364 (__mips16_call_stub_1): Macro-ified.
365 (__mips16_call_stub_5): Macro-ified.
366 (__mips16_call_stub_2): Macro-ified.
367 (__mips16_call_stub_6): Macro-ified.
368 (__mips16_call_stub_9): Macro-ified.
369 (__mips16_call_stub_10): Macro-ified.
370 (CALL_STUB_RET): New.
371 (__mips16_call_stub_sf_0): Macro-ified.
372 (__mips16_call_stub_sf_1): Macro-ified.
373 (__mips16_call_stub_sf_5): Macro-ified.
374 (__mips16_call_stub_sf_2): Macro-ified.
375 (__mips16_call_stub_sf_6): Macro-ified.
376 (__mips16_call_stub_sf_9): Macro-ified.
377 (__mips16_call_stub_sf_10): Macro-ified.
378 (__mips16_call_stub_df_0): Macro-ified.
379 (__mips16_call_stub_df_1): Macro-ified.
380 (__mips16_call_stub_df_5): Macro-ified.
381 (__mips16_call_stub_df_2): Macro-ified.
382 (__mips16_call_stub_df_6): Macro-ified.
383 (__mips16_call_stub_df_9): Macro-ified.
384 (__mips16_call_stub_df_10): Macro-ified.
385 (__mips16_call_stub_sc_0): New.
386 (__mips16_call_stub_sc_1): New.
387 (__mips16_call_stub_sc_5): New.
388 (__mips16_call_stub_sc_2): New.
389 (__mips16_call_stub_sc_6): New.
390 (__mips16_call_stub_sc_9): New.
391 (__mips16_call_stub_sc_10): New.
392 (__mips16_call_stub_dc_0): New.
393 (__mips16_call_stub_dc_1): New.
394 (__mips16_call_stub_dc_5): New.
395 (__mips16_call_stub_dc_2): New.
396 (__mips16_call_stub_dc_6): New.
397 (__mips16_call_stub_dc_9): New.
398 (__mips16_call_stub_dc_10): New.
399
400 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
401 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
402 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
403
404 2007-05-23 Ian Lance Taylor <iant@google.com>
405
406 * doc/invoke.texi (Invoking GCC): Document that the order of the
407 -l option matters.
408
409 2007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
410
411 PR target/30987
412 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
413 * config/score/predicate.md (const_pow2, const_npow2): Remove.
414 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
415 undef.
416
417 PR target/30474
418 * config/score/score.c (score_print_operand): Make sure that only
419 lower bits are used.
420
421 2007-05-22 Ian Lance Taylor <iant@google.com>
422
423 * tree-vrp.c (avoid_overflow_infinity): New static function,
424 broken out of set_value_range_to_value.
425 (set_value_range_to_value): Call avoid_overflow_infinity.
426 (extract_range_from_assert): Likewise.
427
428 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
429
430 PR middle-end/31095
431 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
432 change the type before looking for a COMPOUND_EXPR.
433
434 2007-05-22 Ian Lance Taylor <iant@google.com>
435
436 * lower-subreg.c (decompose_multiword_subregs): If we change an
437 insn, call remove_retval_note on it.
438
439 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
440
441 * regs.h (end_hard_regno): New function.
442 (END_HARD_REGNO, END_REGNO): New macros.
443 (add_to_hard_reg_set): New function.
444 (remove_from_hard_reg_set): Likewise.
445 (in_hard_reg_set_p): Likewise.
446 (overlaps_hard_reg_set_p): Likewise.
447 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
448 (note_btr_set): Use END_HARD_REGNO.
449 * caller-save.c (setup_save_areas): Use end_hard_regno.
450 (mark_set_regs): Use END_HARD_REGNO.
451 (add_stored_regs): Use end_hard_regno.
452 (mark_referenced_regs): Use add_to_hard_reg_set.
453 * combine.c (update_table_tick): Use END_REGNO.
454 (record_value_for_reg): Likewise.
455 (record_dead_and_set_regs): Likewise.
456 (get_last_value_validate): Likewise.
457 (use_crosses_set_p): Likewise.
458 (reg_dead_at_p_1): Likewise.
459 (reg_dead_at_p): Likewise.
460 (mark_used_regs_combine): Use add_to_hard_reg_set.
461 (move_deaths): Use END_HARD_REGNO.
462 (reg_bitfield_target_p): Use end_hard_regno.
463 (distribute_notes): Use END_HARD_REGNO.
464 * cse.c (mention_regs): Use END_REGNO.
465 (insert): Use add_to_hard_reg_set.
466 (invalidate): Use END_HARD_REGNO.
467 (invalidate_for_call): Likewise.
468 (exp_equiv_p): Use END_REGNO.
469 (cse_insn): Likewise.
470 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
471 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
472 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
473 * function.c (keep_stack_depressed): Use end_hard_regno.
474 * global.c (global_alloc): Use end_hard_regno.
475 (global_conflicts): Use add_to_hard_reg_set instead of
476 mark_reg_live_nc.
477 (find_reg): Likewise.
478 (mark_reg_store): Likewise.
479 (mark_reg_conflicts): Likewise.
480 (mark_reg_death): Use remove_from_hard_reg_set.
481 (mark_reg_live_nc): Delete.
482 (set_preference): Use end_hard_regno.
483 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
484 remove_from_hard_reg_set.
485 (post_mark_life): Use add_to_hard_reg_set.
486 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
487 (reg_becomes_live): Use add_to_hard_reg_set.
488 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
489 (peep2_find_free_register): Use add_to_hard_reg_set.
490 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
491 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
492 * regrename.c (note_sets): Use add_to_hard_reg_set.
493 (clear_dead_regs): Use remove_from_hard_reg_set.
494 (regrename_optimize): Use add_to_hard_reg_set.
495 (find_oldest_value_reg): Use in_hard_reg_set_p.
496 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
497 (hard_reg_set_here_p): Use end_hard_regno.
498 (decompose): Likewise.
499 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
500 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
501 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
502 (mark_home_live): Use end_hard_regno.
503 (spill_hard_reg): Likewise.
504 (clear_reload_reg_in_use): Likewise.
505 * reorg.c (delete_prior_computation): Use END_REGNO.
506 * resource.c (update_live_status): Use END_HARD_REGNO.
507 (mark_referenced_resources): Use add_to_hard_reg_set.
508 (mark_set_resources): Likewise.
509 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
510 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
511 (reg_overlap_mentioned_p): Likewise.
512 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
513 (covers_regno_no_parallel_p): Use END_REGNO.
514 (find_regno_note): Likewise.
515 (find_reg_fusage): Use END_HARD_REGNO.
516 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
517 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
518
519 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
520
521 * mode-switching.c (reg_dies): Change type of second argument to
522 "HARD_REG_SET *".
523 (optimize_mode_switching): Update accordingly.
524
525 2007-05-22 Richard Sandiford <richard@codesourcery.com>
526
527 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
528 in favor of...
529 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
530 (hard_reg_set_empty_p): ...these new functions.
531 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
532 GO_IF_HARD_REG_SUBSET.
533 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
534 instead of GO_IF_HARD_REG_EQUAL.
535 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
536 instead of GO_IF_HARD_REG_EQUAL.
537 * global.c (find_reg): Use hard_reg_set_empty_p instead of
538 GO_IF_HARD_REG_SUBSET.
539 (modify_reg_pav): Use hard_reg_set_empty_p instead of
540 GO_IF_HARD_REG_EQUAL.
541 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
542 of GO_IF_HARD_REG_SUBSET.
543 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
544 instead of GO_IF_HARD_REG_EQUAL.
545 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
546 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
547 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
548 of GO_IF_HARD_REG_SUBSET,
549 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
550 GO_IF_HARD_REG_SUBSET.
551 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
552 instead of GO_IF_HARD_REG_EQUAL.
553 * config/sh/sh.c (push_regs, calc_live_regs): Use
554 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
555 (hard_regs_intersect_p): Delete.
556
557 2007-05-22 Janis Johnson <janis187@us.ibm.com>
558
559 * doc/sourcebuild.texi (Test Directives) Add dg-message.
560
561 2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
562 Richard Henderson <rth@redhat.com>
563
564 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
565 extra_headers.
566 (x86_64-*-*): Likewise.
567
568 * i386/i386-modes.def (V2QI): New.
569
570 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
571 SSE4A.
572 (override_options): Support SSE4.1.
573 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
574 (IX86_BUILTIN_BLENDPS): Likewise.
575 (IX86_BUILTIN_BLENDVPD): Likewise.
576 (IX86_BUILTIN_BLENDVPS): Likewise.
577 (IX86_BUILTIN_PBLENDVB128): Likewise.
578 (IX86_BUILTIN_PBLENDW128): Likewise.
579 (IX86_BUILTIN_DPPD): Likewise.
580 (IX86_BUILTIN_DPPS): Likewise.
581 (IX86_BUILTIN_INSERTPS128): Likewise.
582 (IX86_BUILTIN_MOVNTDQA): Likewise.
583 (IX86_BUILTIN_MPSADBW128): Likewise.
584 (IX86_BUILTIN_PACKUSDW128): Likewise.
585 (IX86_BUILTIN_PCMPEQQ): Likewise.
586 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
587 (IX86_BUILTIN_PMAXSB128): Likewise.
588 (IX86_BUILTIN_PMAXSD128): Likewise.
589 (IX86_BUILTIN_PMAXUD128): Likewise.
590 (IX86_BUILTIN_PMAXUW128): Likewise.
591 (IX86_BUILTIN_PMINSB128): Likewise.
592 (IX86_BUILTIN_PMINSD128): Likewise.
593 (IX86_BUILTIN_PMINUD128): Likewise.
594 (IX86_BUILTIN_PMINUW128): Likewise.
595 (IX86_BUILTIN_PMOVSXBW128): Likewise.
596 (IX86_BUILTIN_PMOVSXBD128): Likewise.
597 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
598 (IX86_BUILTIN_PMOVSXWD128): Likewise.
599 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
600 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
601 (IX86_BUILTIN_PMOVZXBW128): Likewise.
602 (IX86_BUILTIN_PMOVZXBD128): Likewise.
603 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
604 (IX86_BUILTIN_PMOVZXWD128): Likewise.
605 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
606 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
607 (IX86_BUILTIN_PMULDQ128): Likewise.
608 (IX86_BUILTIN_PMULLD128): Likewise.
609 (IX86_BUILTIN_ROUNDPD): Likewise.
610 (IX86_BUILTIN_ROUNDPS): Likewise.
611 (IX86_BUILTIN_ROUNDSD): Likewise.
612 (IX86_BUILTIN_ROUNDSS): Likewise.
613 (IX86_BUILTIN_PTESTZ): Likewise.
614 (IX86_BUILTIN_PTESTC): Likewise.
615 (IX86_BUILTIN_PTESTNZC): Likewise.
616 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
617 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
618 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
619 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
620 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
621 (bdesc_ptest): New.
622 (bdesc_sse_3arg): Likewise.
623 (bdesc_2arg): Likewise.
624 (bdesc_1arg): Likewise.
625 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
626 with 3 args.
627 (ix86_expand_sse_4_operands_builtin): New.
628 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
629 smaller than 8 bits as the 2nd arg.
630 (ix86_expand_sse_ptest): New.
631 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
632 (ix86_expand_vector_set): Support SSE4.1.
633 (ix86_expand_vector_extract): Likewise.
634
635 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
636 __SSE4_1__ for -msse4.1.
637
638 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
639 (UNSPEC_INSERTPS): Likewise.
640 (UNSPEC_DP): Likewise.
641 (UNSPEC_MOVNTDQA): Likewise.
642 (UNSPEC_MPSADBW): Likewise.
643 (UNSPEC_PHMINPOSUW): Likewise.
644 (UNSPEC_PTEST): Likewise.
645 (UNSPEC_ROUNDP): Likewise.
646 (UNSPEC_ROUNDS): Likewise.
647
648 * config/i386/i386.opt (msse4.1): New for SSE4.1.
649
650 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
651 (const_pow2_1_to_32768_operand): Likewise.
652
653 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
654 file.
655
656 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
657 SSE4.1.
658 (sse4_1_insertps): Likewise.
659 (*sse4_1_extractps): Likewise.
660 (sse4_1_ptest): Likewise.
661 (sse4_1_mulv2siv2di3): Likewise.
662 (*sse4_1_mulv4si3): Likewise.
663 (*sse4_1_smax<mode>3): Likewise.
664 (*sse4_1_umax<mode>3): Likewise.
665 (*sse4_1_smin<mode>3): Likewise.
666 (*sse4_1_umin<mode>3): Likewise.
667 (sse4_1_eqv2di3): Likewise.
668 (*sse4_1_pinsrb): Likewise.
669 (*sse4_1_pinsrd): Likewise.
670 (*sse4_1_pinsrq): Likewise.
671 (*sse4_1_pextrb): Likewise.
672 (*sse4_1_pextrb_memory): Likewise.
673 (*sse4_1_pextrw_memory): Likewise.
674 (*sse4_1_pextrq): Likewise.
675 (sse4_1_blendpd): Likewise.
676 (sse4_1_blendps): Likewise.
677 (sse4_1_blendvpd): Likewise.
678 (sse4_1_blendvps): Likewise.
679 (sse4_1_dppd): Likewise.
680 (sse4_1_dpps): Likewise.
681 (sse4_1_movntdqa): Likewise.
682 (sse4_1_mpsadbw): Likewise.
683 (sse4_1_packusdw): Likewise.
684 (sse4_1_pblendvb): Likewise.
685 (sse4_1_pblendw): Likewise.
686 (sse4_1_phminposuw): Likewise.
687 (sse4_1_extendv8qiv8hi2): Likewise.
688 (*sse4_1_extendv8qiv8hi2): Likewise.
689 (sse4_1_extendv4qiv4si2): Likewise.
690 (*sse4_1_extendv4qiv4si2): Likewise.
691 (sse4_1_extendv2qiv2di2): Likewise.
692 (*sse4_1_extendv2qiv2di2): Likewise.
693 (sse4_1_extendv4hiv4si2): Likewise.
694 (*sse4_1_extendv4hiv4si2): Likewise.
695 (sse4_1_extendv2hiv2di2): Likewise.
696 (*sse4_1_extendv2hiv2di2): Likewise.
697 (sse4_1_extendv2siv2di2): Likewise.
698 (*sse4_1_extendv2siv2di2): Likewise.
699 (sse4_1_zero_extendv8qiv8hi2): Likewise.
700 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
701 (sse4_1_zero_extendv4qiv4si2): Likewise.
702 (*sse4_1_zero_extendv4qiv4si2): Likewise.
703 (sse4_1_zero_extendv2qiv2di2): Likewise.
704 (*sse4_1_zero_extendv2qiv2di2): Likewise.
705 (sse4_1_zero_extendv4hiv4si2): Likewise.
706 (*sse4_1_zero_extendv4hiv4si2): Likewise.
707 (sse4_1_zero_extendv2hiv2di2): Likewise.
708 (*sse4_1_zero_extendv2hiv2di2): Likewise.
709 (sse4_1_zero_extendv2siv2di2): Likewise.
710 (*sse4_1_zero_extendv2siv2di2): Likewise.
711 (sse4_1_roundpd): Likewise.
712 (sse4_1_roundps): Likewise.
713 (sse4_1_roundsd): Likewise.
714 (sse4_1_roundss): Likewise.
715 (mulv4si3): Don't expand for SSE4.1.
716 (smax<mode>3): Likewise.
717 (umaxv4si3): Likewise.
718 (uminv16qi3): Likewise.
719 (umin<mode>3): Likewise.
720 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
721
722 * doc/extend.texi: Document SSE4.1 built-in functions.
723
724 * doc/invoke.texi: Document -msse4.1.
725
726 2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
727
728 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
729 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
730 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
731 (ASM_SPEC): Add asm_pcrel_spec.
732 (EXTRA_SPECS): Add asm_pcrel_spec.
733
734 2007-05-21 David Daney <ddaney@avtrex.com>
735
736 * doc/install.texi (Building a cross compiler): Add requirements
737 for Java cross compiler.
738
739 2007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
740
741 PR middle-end/31995
742 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
743 Add loopno argument. Use evolution_function_is_invariant_rec_p
744 instead of evolution_function_is_constant_p.
745 Update calls to evolution_function_is_affine_multivariate_p.
746 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
747 Add loopno argument.
748 * tree-scalar-evolution.c (gather_chrec_stats): Call
749 evolution_function_is_affine_multivariate_p with a loop
750 number of 0.
751 * tree-data-ref.c (analyze_miv_subscript): Likewise.
752 (analyze_overlapping_iterations): Likewise.
753 (access_functions_are_affine_or_constant_p): Likewise.
754 (build_classic_dist_vector_1): If the access functions
755 are equal, don't do anything.
756
757 2007-05-21 Paolo Bonzini <bonzini@gnu.org>
758 Paolo Carlini <pcarlini@suse.de>
759 Uros Bizjak <ubizjak@gmail.com>
760
761 * c-cppbuiltin.c (c_cpp_builtins): Define
762 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
763 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
764 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
765 * doc/cpp.texi ([Standard Predefined Macros]): Document.
766
767 2007-05-21 Mike Stump <mrs@apple.com>
768
769 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
770 handling as well.
771 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
772
773 2007-05-21 Uros Bizjak <ubizjak@gmail.com>
774
775 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
776 implementation if __OPTIMIZE__ is not defined.
777 (_mm_alignr_pi8): Ditto.
778 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
779 (_mm_inserti_si64): Ditto.
780 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
781 (_mm_slli_epi16): Ditto.
782 (_mm_slli_epi32): Ditto.
783 (_mm_slli_epi64): Ditto.
784 (_mm_srai_epi16): Ditto.
785 (_mm_srai_epi32): Ditto.
786 (_mm_srli_si128): Ditto.
787 (_mm_slli_si128): Ditto.
788 (_mm_srli_epi16): Ditto.
789 (_mm_srli_epi32): Ditto.
790 (_mm_srli_epi64): Ditto.
791 (_mm_extract_epi16): Ditto.
792 (_mm_insert_epi16): Ditto.
793 (_mm_shufflehi_epi16): Ditto.
794 (_mm_shufflelo_epi16): Ditto.
795 (_mm_shuffle_epi32): Ditto.
796 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
797 (_m_pextrw): Ditto.
798 (_mm_insert_pi16): Ditto.
799 (_m_pinsrw): Ditto.
800 (_mm_shuffle_pi16): Ditto.
801 (_m_pshufw): Ditto.
802 (_mm_shufle_ps): Ditto.
803 (_mm_prefetch): Ditto.
804
805 2007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
806
807 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
808 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
809 * real.c (encode_i370_single, decode_i370_single,
810 encode_i370_double, decode_i370_double): Functions removed.
811 (i370_single_format, i370_double_format): Initializations removed.
812 (real_maxval, round_for_format, exact_real_truncate, significand_size):
813 Consider the log2_b field to always be one.
814 (ieee_single_format, mips_single_format, coldfire_single_format,
815 ieee_double_format, mips_double_format, coldfire_double_format,
816 ieee_extended_motorola_format, ieee_extended_intel_96_format,
817 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
818 ibm_extended_format, mips_extended_format, ieee_quad_format,
819 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
820 decimal_single_format, decimal_double_format, decimal_quad_format,
821 c4x_single_format, c4x_extended_format, real_internal_format): Remove
822 initialization of log2_b.
823 * real.h (i370_single_format, i370_double_format): Declarations removed.
824 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
825 field to always be one.
826
827 2007-05-21 Andreas Schwab <schwab@suse.de>
828
829 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
830 NOTE_INSN_BASIC_BLOCK_P.
831 (process_for_unwind_directive): Likewise.
832
833 2007-05-21 Nathan Sidwell <nathan@codesourcery.com>
834
835 * builtins.c (expand_builtin_setjmp_setup): Update comment.
836 * function.h (struct function): Move va_list_gpr_size,
837 va_list_fpr_size, function_frequency to front of bitfields. Add
838 calls_unwind_init.
839 (current_function_calls_unwind_init): New.
840 * except.c (expand_builtin_unwind_init): Set
841 current_function_calls_unwind_init not
842 current_function_has_nonlocal_label.
843 * reload1.c (has_nonexceptional_receiver): New.
844 (reload): Use it and current_function_calls_unwind_init to
845 determine whether call-saved regs must be saved.
846
847 2007-05-20 Jan Hubicka <jh@suse.cz>
848
849 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
850 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
851 * ddg.c (create_ddg): LIkewise.
852 * final.c (final): Remove hunk moving line numbernotes around since
853 they are no longer present at this stage.
854 (final_scan_insn): Use NOTE_KIND instead of
855 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
856 (output_asm_label): Likewise.
857 * reorg.c (dbr_schedule): Likewise.
858 * haifa-sched.c (unlink_other_notes): Likewise.
859 * mode-switching.c (optimize_mode_switching): Likewise.
860 * graph.c (start_bb): Likewise.
861 * rtl.def (NOTE): Update description.
862 * jump.c (squeeze_notes): Delete.
863 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
864 NOTE_INSN_BASIC_BLOCK_P when possible.
865 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
866 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
867 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
868 (dwarf2out_var_location): Likewise.
869 * cfgbuild.c (make_edges): Likewise.
870 (find_basic_blocks_1): Likewise.
871 * function.c (reorder_blocks_1): Likewise.
872 (epilogue_done): Likewise.
873 (reposition_prologue_and_epilogue_notes): Likewise.
874 * print-rtl.c (print_rtx): Likewise; drop code for printing line number
875 notes.
876 (print_rtl): Likewise.
877 (print_rtl_single): Likewise.
878 * gcse.c (insert_insn_start_bb): Likewise.
879 * alias.c (init_alias_analysis): Likewise.
880 * calls.c (fixup_tail_calls): Likewise.
881 * except.c (sjlj_emit_function_enter): Likewise.
882 * emit-rtl.c (add_insn_after): Likeiwse.
883 (emit_label_before): Likewise.
884 (emit_label_after): Likewise.
885 (emit_note_before, emit_note_after, emit_note): Update
886 parameter to be enum insn_note; do not deal with source
887 files.
888 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
889 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
890 when possible.
891 (merge_blocks_move_successor_nojumps): Simplify now when
892 we don't have BLOCK notes.
893 (try_optimize_cfg): Likewise.
894 * cfglayout.c (skip_insns_after_block): Likewise.
895 (record_effective_endpoints): Likewise.
896 (duplicate_insn_chain): Likewise.
897 * varasm.c (output_constant_pool_1): Likewise.
898 * sched-deps.c (sched_analyze): Likewise.
899 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
900 Exterminate.
901 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
902 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
903 (SET_INSN_DELETED): Simplify.
904 (NOTE_LINE_NUMBER): Exterminate.
905 (NOTE_LINE_KIND): New.
906 (NOTE_INSN_BASIC_BLOCK_P): Update.
907 (enum insn_note): Simplify.
908 (GET_NOTE_INSN_NAME) Simplify.
909 (emit_note_before, emit_note_after, emit_note): Update prototype.
910 (squeeze_notes): Remove.
911 * sched-int.h (NOTE_NOT_BB_P): Update.
912 * resource.c (mark_target_live_regs): Update.
913 * sched-rgn.c (debug_dependencies): Update.
914 * sched-vis.c (print_insn): Update.
915 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
916 * config/i386/i386.c (ix86_output_function_epilogue): Update.
917 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
918 (TARGET_ADJUST_UNROLL_MAX): Likewise.
919 (split_branches): Update.
920 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
921 4.0.0.
922 (sh_adjust_unroll_max): Exterminate.
923 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
924 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
925 (m68hc11_reorg): Likewise.
926 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
927 (emit_predicate_relation_info): Update.
928 (process_for_unwind_directive): Update.
929 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
930 (output_call): Update.
931 * config/pa/pa.c (output_lbranch): Update.
932 (output_millicode_call): Update.
933 (output_call): Update.
934 (pa_combine_instructions): Update.
935 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
936 * config/bfin/bfin.c (gen_one_bundle): Update.
937 * cfgrtl.c (can_delete_note_p): Update.
938 (delete_insn): Update.
939 (rtl_merge_blocks): Update.
940 (commit_one_edge_insertion): Update.
941 (rtl_verify_flow_info): Update.
942 * stmt.c (expand_case): Do not call squeeze_notes.
943
944 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
945
946 PR middle-end/7651
947 PR c++/11856
948 PR c/12963
949 PR c/23587
950 PR other/29694
951 * c.opt (Wtype-limits): New.
952 * doc/invoke.texi (Wtype-limits): Document it.
953 (Wextra): Enabled by -Wextra.
954 * c-opts.c (c_common_post_options): Enabled by -Wextra.
955 * c-common.c (shorten_compare): Warn with Wtype-limits.
956
957 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
958
959 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
960 inlined function, not as a macro.
961 (_mm_alignr_pi8): Ditto.
962 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
963 (_mm_inserti_si64): Ditto.
964 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
965 (_mm_extract_epi16): Ditto.
966 (_mm_insert_epi16): Ditto.
967 (_mm_shufflehi_epi16): Ditto.
968 (_mm_shufflelo_epi16): Ditto.
969 (_mm_shuffle_epi32): Ditto.
970 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
971 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
972 all functions.
973 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
974 float constant.
975 (_m_to_float): Use C89 compatible assignment.
976
977 2007-04-20 Martin Michlmayr <tbm@cyrius.com>
978
979 PR target/32007
980 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
981
982 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
983
984 PR middle-end/7651
985 * doc/invoke.texi (Wreturn-type): Complete description.
986 (Wextra): Delete item about return-type warning.
987 * c-decl.c: Delete redundant Wextra warning.
988
989 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
990
991 PR target/31585
992 * config/i386/pmmintrin.h: Do not include xmmintrin.h
993 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
994 inlined function, not as a macro.
995 (_mm_prefetch): Ditto.
996 (_m_pextrw): Ditto.
997 (_mm_insert_pi16): Ditto.
998 (_m_pinsrw): Ditto.
999 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
1000 (_m_pshufw): Ditto. Add const to __N argument.
1001 (_mm_shufle_ps): Ditto. Add const to __mask argument.
1002 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
1003 (_mm_slli_epi32): Ditto.
1004 (_mm_srli_si128): Implement as always inlined function, not as a macro.
1005 Add __inline to function declaration.
1006 (_mm_slli_si128): Ditto.
1007
1008 2007-05-19 Uros Bizjak <ubizjak@gmail.com>
1009
1010 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
1011 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
1012 New constants.
1013 (struct fenv): New structure.
1014 (FP_HANDLE_EXCEPTIONS): New define.
1015 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
1016 (_FP_DECL_EXP): New define.
1017 (FP_INIT_ROUNDMODE): New define.
1018 (FP_ROUNDMODE): New define.
1019
1020 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1021
1022 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
1023 (Wconversion): Update description.
1024 (Wconversion-sign): New.
1025 * c.opt (Wconversion-sign): New.
1026 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
1027 means disabled for C++. Otherwise, take the status of Wconversion.
1028 * c-common.c (conversion_warning): Warn with either Wconversion or
1029 Wconversion-sign.
1030 (warnings_for_convert_and_check): Conditions are already checked by
1031 conversion_warning.
1032 (convert_and_check): Don't check warnings if the conversion failed.
1033
1034 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
1035 Anatoly Sokolov <aesok@dol.ru>
1036
1037 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
1038 avr_epilogue_uses) : Add declaration.
1039 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
1040 * config/avr/constraints.md (R): New constraint.
1041 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
1042 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
1043 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
1044 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
1045 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
1046 call_prologue_saves, epilogue_restores, return_from_epilogue,
1047 return_from_main_epilogue, return_from_interrupt_epilogue,
1048 return_from_naked_epilogue, prologue, epilogue): New patterns.
1049 (jump): Handle symbol reference.
1050 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
1051 avr_output_function_prologue, avr_output_function_epilogue): Remove
1052 functions.
1053 (avr_init_machine_status, expand_prologue, expand_epilogue,
1054 avr_asm_function_end_prologue, avr_epilogue_uses,
1055 avr_asm_function_begin_epilogue): New functions.
1056 (prologue_size, epilogue_size, jump_tables_size): Remove global
1057 variables.
1058 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1059 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1060 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
1061 (avr_override_options): Initialise init_machine_status.
1062 (output_movhi): Handle all stack pointer loads.
1063 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
1064 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
1065 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
1066 (EPILOGUE_USES) Redefine.
1067 (machine_function) Declare.
1068
1069 2007-05-19 Richard Sandiford <richard@codesourcery.com>
1070
1071 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
1072 Use a single return statement.
1073
1074 2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1075
1076 PR middle-end/30250
1077 * builtins.c (do_mpfr_lgamma_r): New.
1078 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
1079 * tree.h (CASE_FLT_FN_REENT): New.
1080
1081 2007-05-18 Geoffrey Keating <geoffk@apple.com>
1082
1083 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
1084 (output_die): Use 'unsigned long' with %x.
1085 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
1086 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
1087 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
1088
1089 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
1090
1091 2007-05-18 H.J. Lu <hongjiu.lu@intel.com>
1092
1093 PR target/31989
1094 PR target/31681
1095 PR target/31666
1096 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
1097 true if function has no argument.
1098
1099 2007-05-18 DJ Delorie <dj@redhat.com>
1100
1101 * config/mips/mips.c (mips_offset_within_alignment_p): New.
1102 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
1103
1104 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
1105
1106 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
1107 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
1108 count_trailing_zeros.
1109 (__i386__): Implement count_leading_zeros using __builtin_clz().
1110 Implement count_trailing_zeros usign __builtin_ctz().
1111
1112 2007-05-18 Richard Sandiford <richard@codesourcery.com>
1113
1114 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
1115
1116 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
1117
1118 PR middle-end/31344
1119 * expr.c (emit_move_change_mode): Change mode of push operands here.
1120
1121 2007-05-17 Ian Lance Taylor <iant@google.com>
1122
1123 PR tree-optimization/31953
1124 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
1125 Change all callers.
1126 (set_value_range_to_null): Call set_value_range_to_value.
1127 (extract_range_from_comparison): Likewise.
1128
1129 2007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1130
1131 * toplev.c (print_version): Output GMP/MPFR version info.
1132
1133 * builtins.c (CASE_MATHFN_REENT): New macro.
1134 (mathfn_built_in): Use it.
1135 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
1136 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
1137 BUILT_IN_LGAMMAL_R): New.
1138 * doc/extend.texi: Document new builtins.
1139
1140 PR middle-end/31796
1141 * builtins.c (do_mpfr_remquo): New.
1142 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
1143 (fold_builtin_3): Handle BUILT_IN_REMQUO.
1144
1145 PR middle-end/30251
1146 * builtins.c (fold_builtin_1): Handle y0, y1.
1147 (fold_builtin_2): Handle yn.
1148
1149 PR middle-end/30251
1150 * builtins.c (do_mpfr_bessel_n): New.
1151 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
1152 (fold_builtin_2): Handle BUILT_IN_JN.
1153
1154 2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
1155
1156 PR target/31965
1157 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
1158 TYPE_PRECISION (intmax_type_node).
1159
1160 2007-05-17 Steve Ellcey <sje@cup.hp.com>
1161
1162 PR target/31850
1163 * reload.c (subst_reloads): Remove checking.
1164
1165 2007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1166
1167 PR rtl-optimization/31691
1168 * combine.c (simplify_set): Build a new src pattern instead of
1169 substituting its operands in the COMPARE case.
1170
1171 2007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
1172
1173 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
1174 (execute_vrp): Preserve loops through jump threading.
1175 * tree-ssa-threadupdate.c (thread_single_edge,
1176 dbds_continue_enumeration_p, determine_bb_domination_status,
1177 thread_through_loop_header): New functions.
1178 (create_edge_and_update_destination_phis,
1179 create_edge_and_update_destination_phis): Set loops for the new blocks.
1180 (prune_undesirable_thread_requests): Removed.
1181 (redirect_edges): Do not pretend that redirect_edge_and_branch can
1182 create new blocks.
1183 (thread_block): Do not call prune_undesirable_thread_requests.
1184 Update loops.
1185 (mark_threaded_blocks): Select edges to thread here.
1186 (thread_through_all_blocks): Take may_peel_loop_headers argument.
1187 Thread edges through loop headers independently.
1188 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
1189 * tree-pass.h (TODO_mark_first_instance): New.
1190 (first_pass_instance): Declare.
1191 * cfghooks.c (duplicate_block): Put the block to the original loop
1192 if copy is not specified.
1193 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
1194 jump threading. Pass may_peel_loop_headers to
1195 thread_through_all_blocks according to first_pass_instance.
1196 * cfgloop.h (create_preheader): Declare.
1197 * tree-flow.h (thread_through_all_blocks): Declaration changed.
1198 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
1199 * passes.c (first_pass_instance): New variable.
1200 (next_pass_1): Set TODO_mark_first_instance.
1201 (execute_todo): Set first_pass_instance.
1202
1203 2007-05-17 Uros Bizjak <ubizjak@gmail.com>
1204
1205 PR tree-optimization/24659
1206 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
1207 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
1208 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
1209 OTI_vec_pack_ufix_trunc.
1210 (vec_unpacks_float_hi_optab): Define new macro.
1211 (vec_unpacks_float_lo_optab): Ditto.
1212 (vec_unpacku_float_hi_optab): Ditto.
1213 (vec_unpacku_float_lo_optab): Ditto.
1214 (vec_pack_sfix_trunc_optab): Ditto.
1215 (vec_pack_ufix_trunc_optab): Ditto.
1216 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
1217 and vec_pack_[s|u]fix_trunc_optab using
1218 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
1219 * tree-vectorizer.c (supportable_widening_operation): Handle
1220 FLOAT_EXPR and CONVERT_EXPR. Update comment.
1221 (supportable_narrowing_operation): New function.
1222 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
1223 * tree-vect-transform.c (vectorizable_conversion): Handle
1224 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
1225 (vect_gen_widened_results_half): Move before vectorizable_conversion.
1226 (vectorizable_type_demotion): Call supportable_narrowing_operation()
1227 to check for target support.
1228 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
1229 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
1230 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
1231 for VEC_PACK_FIX_TRUNC_EXPR.
1232 (expand_binop): Special case mode of the result for
1233 vec_pack_[u|s]fix_trunc_optab.
1234 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
1235 vec_pack_[u|s]fix_trunc_optab.
1236
1237 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
1238 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
1239 * tree-pretty-print.c (dump_generic_node): Handle
1240 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
1241 VEC_PACK_FIX_TRUNC_EXPR.
1242 (op_prio): Ditto.
1243 * expr.c (expand_expr_real_1): Ditto.
1244 * tree-inline.c (estimate_num_insns_1): Ditto.
1245 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1246
1247 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
1248 (vec_unpacks_float_lo_v8hi): Ditto.
1249 (vec_unpacku_float_hi_v8hi): Ditto.
1250 (vec_unpacku_float_lo_v8hi): Ditto.
1251 (vec_unpacks_float_hi_v4si): Ditto.
1252 (vec_unpacks_float_lo_v4si): Ditto.
1253 (vec_pack_sfix_trunc_v2df): Ditto.
1254
1255 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
1256 Document.
1257 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
1258 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
1259 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
1260 [vec_pack_ufix_trunc]: Ditto.
1261 [vec_unpacks_float_hi]: Ditto.
1262 [vec_unpacks_float_lo]: Ditto.
1263 [vec_unpacku_float_hi]: Ditto.
1264 [vec_unpacku_float_lo]: Ditto.
1265
1266 2007-05-16 Uros Bizjak <ubizjak@gmail.com>
1267
1268 * soft-fp/README: Update for new files.
1269 * soft-fp/floattisf.c: New file.
1270 * soft-fp/floattidf.c: New file.
1271 * soft-fp/floattitf.c: New file.
1272 * soft-fp/floatuntisf.c: New file.
1273 * soft-fp/floatuntidf.c: New file.
1274 * soft-fp/floatuntitf.c: New file.
1275 * soft-fp/fixsfti.c: New file.
1276 * soft-fp/fixdfti.c: New file.
1277 * soft-fp/fixtfti.c: New file.
1278 * soft-fp/fixunssfti.c: New file.
1279 * soft-fp/fixunsdfti.c: New file.
1280 * soft-fp/fixunstfti.c: New file.
1281 * soft-fp/extendxftf.c: New file.
1282 * soft-fp/trunctfxf.c: New file.
1283
1284 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
1285 (__trunctfxf2): Ditto.
1286
1287 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
1288 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
1289 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
1290 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
1291 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
1292 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
1293
1294 * config/i386/t-fprules-softfp64: New file.
1295 * config/i386/sfp-machine.h: New file.
1296 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
1297 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
1298 and soft-fp/t-softfp to tmake_file.
1299 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1300 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
1301
1302 * config/i386/t-linux64 (softfp_wrap_start): New.
1303 (softfp_wrap_end): New.
1304 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
1305 supported for TARGET_64BIT.
1306
1307 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
1308
1309 * c-common.c (c_common_signed_or_unsigned_type): Emulate
1310 c_common_unsigned_type behavior.
1311
1312 2007-05-16 Paolo Bonzini <bonzini@gnu.org>
1313
1314 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
1315 calls as pure.
1316
1317 2007-05-16 Eric Christopher <echristo@apple.com>
1318
1319 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
1320 saving after stack push. Set sp_offset whenever we push.
1321 (rs6000_emit_epilogue): Move altivec register restore before
1322 stack push.
1323
1324 2007-05-16 Richard Sandiford <richard@codesourcery.com>
1325
1326 * configure.ac: Allow sysroots to be relocated under $prefix as
1327 well as $exec_prefix.
1328 * configure: Regenerate.
1329
1330 2007-05-16 Richard Sandiford <richard@codesourcery.com>
1331
1332 Revert:
1333
1334 2007-05-12 Richard Sandiford <richard@codesourcery.com>
1335
1336 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1337 (gcc_tooldir): Likewise.
1338 * configure: Regenerate.
1339 * Makefile.in (libsubdir_to_prefix): New variable, based on the
1340 old configure.ac gcc_tooldir setting.
1341 (prefix_to_exec_prefix): New variable.
1342 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1343 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1344
1345 2007-05-14 Janis Johnson <janis187@us.ibm.com>
1346
1347 * c-typeck.c (build_binary_op): Return early for error.
1348
1349 2007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
1350
1351 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
1352 struct nb_iter_bound.
1353 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
1354 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
1355 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
1356 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
1357 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
1358 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
1359 (del_scev_info): Use ggc_free.
1360 (scev_initialize): Allocate scalar_evolution_info in gc memory.
1361 * loop-init.c: Include ggc.h.
1362 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
1363 (loop_optimizer_finalize): Use ggc_free.
1364 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
1365 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
1366 pass_iv_optimize): Add TODO_ggc_collect.
1367 * function.h (struct function): Remove skip marker from x_current_loops.
1368 * cfgloop.c: Include ggc.h.
1369 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
1370 memory.
1371 (establish_preds): Vector superloops is gc allocated.
1372 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
1373 loop->exits list.
1374 (flow_loops_find): Vector larray is gc allocated.
1375 (loop_exit_free): Use ggc_free.
1376 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
1377 that head of exits list is now not a part of struct loop.
1378 (record_loop_exits): Allocate exits table in gc memory.
1379 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
1380 head of exits list is now not a part of struct loop.
1381 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
1382 struct loop_exit): Add GTY marker.
1383 (struct loop): Add GTY marker. Make superloops vector gc allocated.
1384 Add skip marker to aux field. Make head of exits list a separate
1385 object.
1386 (struct loops): Add GTY marker. Make larray vector gc allocated.
1387 Add param marker to exits table.
1388 (get_loops): Type changed.
1389 * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
1390 dependency.
1391 (cfgloop.o, loop-init.o): Add ggc.h dependency.
1392 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
1393 * basic-block.h (struct basic_block_def): Remove skip marker from
1394 loop_father field.
1395
1396 2007-05-14 Uros Bizjak <ubizjak@gmail.com>
1397
1398 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
1399 of 0 in the call to expand_expr().
1400 (expand_builtin_mathfn_3): Ditto.
1401 (expand_builtin_interclass_mathfn): Ditto.
1402 (expand_builtin_cexpi): Ditto.
1403 (expand_builtin_int_roundingfn): Ditto.
1404 (expand_builtin_int_roundingfn_2): Ditto.
1405 (expand_builtin_pow): Ditto.
1406 (expand_builtin_powi): Ditto.
1407 (expand_builtin_bswap): Ditto.
1408 (expand_builtin_unop): Ditto.
1409 (expand_builtin_fabs): Ditto.
1410 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
1411 the call to expand_expr().
1412 (expand_builtin_sync_operation): Ditto.
1413 (expand_builtin_compare_and_swap): Ditto.
1414 (expand_builtin_lock_test_and_set): Ditto.
1415 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
1416 instead of 0 in the call to expand_expr().
1417 (expand_builtin_extract_return_addr): Ditto.
1418 (expand_builtin_eh_return): Ditto.
1419 (expand_eh_return): Ditto.
1420 * explow.c (expr_size): Ditto.
1421 * expr.c (optimize_bitfield_assignment_op): Ditto.
1422 (expand_assignement): Ditto.
1423 (store_expr): Ditto.
1424 (store_field): Ditto.
1425 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
1426 the call to expand_expr().
1427 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
1428 in the call to expand_expr().
1429 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
1430 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
1431 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
1432 of expand_expr().
1433 * optabs.c (expand_vec_shift_expr): Ditto.
1434 (expand_vec_cond_expr): Ditto.
1435 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
1436 call to expand_expr().
1437 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
1438 in the call to expand_expr().
1439
1440 2007-05-14 Dave Korn <dave.korn@artimi.com>
1441
1442 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
1443
1444 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
1445
1446 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
1447 instead of c_common_unsigned_type.
1448 (c_common_unsigned_type): Remove.
1449 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
1450 c_common_unsigned_type.
1451 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
1452 c_common_unsigned_type.
1453 * c-common.h (c_common_unsigned_type): Remove.
1454 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
1455 c_common_unsigned_type.
1456 * c-format.c (check_format_types): Use unsigned_type_for instead of
1457 c_common_unsigned_type.
1458 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1459 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
1460 c_common_unsigned_type.
1461 * convert.c (convert_to_integer): Use unsigned_type_for instead of
1462 lang_hooks.types.unsigned_type.
1463 * expmed.c (make_tree): Use unsigned_type_for instead of
1464 lang_hooks.types.unsigned_type.
1465 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
1466 lang_hooks.types.unsigned_type.
1467 (build_range_check): Likewise.
1468 (fold_unary): Likewise.
1469 (fold_binary): Likewise.
1470 (fold_ternary): Likewise.
1471 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1472 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
1473 * tree.c (get_unsigned_type): New.
1474 (unsigned_type_for): Use get_unsigned_type instead of
1475 lang_hooks.types.unsigned_type.
1476
1477 2007-05-14 Kazu Hirata <kazu@codesourcery.com>
1478
1479 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
1480 to m68k_get_function_kind. Update its prototype.
1481 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
1482 interrupt_thread.
1483 (m68k_interrupt_function_p): Return enum m68k_function_type
1484 instead of bool. Rename to m68k_get_function_kind.
1485 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
1486 target is not fido.
1487 (m68k_compute_frame_layout): Don't mark any register for save
1488 if an interrupt_thread attribute is specified.
1489 (m68k_hard_regno_rename_ok): Update a use of
1490 m68k_interrupt_function_p.
1491 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
1492 m68k_interrupt_function_p.
1493 (m68k_function_type): New.
1494 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
1495 for a function with an interrupt_thread attribute.
1496 * doc/extend.texi: Document the interrupt_thread attribute.
1497
1498 2007-05-13 Daniel Berlin <dberlin@dberlin.org>
1499
1500 Fix PR tree-optimization/31911
1501 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
1502 if they didn't change the expression.
1503
1504 2007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
1505
1506 * tree-scalar-evolution.c (resolve_mixers): Exported.
1507 * tree-scalar-evolution.h (resolve_mixers): Declare.
1508 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
1509 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1510 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
1511 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
1512 init_array_ref, init_pointer_ref, analyze_indirect_ref,
1513 strip_conversion, analyze_offset_expr, address_analysis,
1514 object_analysis, analyze_offset): Removed.
1515 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
1516 split_constant_offset, canonicalize_base_object_address,
1517 object_address_invariant_in_loop_p, disjoint_objects_p,
1518 dr_may_alias_p, dr_address_invariant_p): New functions.
1519 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
1520 and dr_analyze_alias.
1521 (initialize_data_dependence_relation): Use dr_may_alias_p
1522 and object_address_invariant_in_loop_p.
1523 (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
1524 is chrec_dont_know.
1525 (find_data_references_in_stmt): Restrict the analysis of data references
1526 to the given loop nest.
1527 (find_data_references_in_loop): Made static. Pass loop nest to
1528 find_data_references_in_stmt.
1529 (compute_data_dependences_for_loop): Use DR_VOPS.
1530 (free_data_ref): Free DR_VOPS.
1531 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
1532 (struct innermost_loop_behavior): ... new.
1533 (struct base_object_info): Replaced by ...
1534 (struct indices): ... new.
1535 (struct dr_alias): New.
1536 (enum data_ref_type): Removed.
1537 (struct data_reference): Consist of struct innermost_loop_behavior,
1538 struct indices and struct dr_alias.
1539 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
1540 (DR_MEMTAG): Renamed to ...
1541 (DR_SYMBOL_TAG): ... this.
1542 (find_data_references_in_loop): Declaration removed.
1543 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
1544 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
1545 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
1546 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1547
1548 2007-05-13 Revital Eres <eres@il.ibm.com>
1549
1550 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
1551 which walks virtual def-use chains to find redundant stores.
1552 (dse_optimize_stmt): Call it.
1553
1554 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
1555
1556 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
1557 * passes.c (init_optimization_passes): Move pass_jump_bypass
1558 after loop2.
1559
1560 * basic-block.h (bb_has_eh_pred): Fix style issue.
1561
1562 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
1563
1564 PR rtl-optimization/31848
1565 * loop-invariant.c (move_invariant_reg): If we move an insn
1566 with a REG_EQUAL note, and that insn is not always executed,
1567 remove the REG_EQUAL note.
1568
1569 2007-05-12 Richard Guenther <rguenther@suse.de>
1570
1571 PR tree-optimization/31797
1572 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
1573 propagate into a stmt that has volatile ops.
1574
1575 2007-05-12 Richard Sandiford <richard@codesourcery.com>
1576
1577 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1578 (gcc_tooldir): Likewise.
1579 * configure: Regenerate.
1580 * Makefile.in (libsubdir_to_prefix): New variable, based on the
1581 old configure.ac gcc_tooldir setting.
1582 (prefix_to_exec_prefix): New variable.
1583 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1584 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1585
1586 2007-05-11 Silvius Rus <rus@google.com>
1587
1588 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
1589 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
1590 * c-common.h (strict_aliasing_warning): Change return type.
1591 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
1592 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
1593 (build_c_cast): Condition call to strict_aliasing_warning.
1594 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
1595 * flags.h (set_Wstrict_aliasing): Declare.
1596 * opts.c (set_Wstrict_alising): Define, add call to.
1597 * tree-flow.h (strict_aliasing_warning_backend): Declare.
1598 * tree-ssa-alias-warnings.c: New file.
1599 * tree-ssa-alias.c (compute_may_aliases): Add call to
1600 strict_aliasing_warning_backend.
1601
1602 2007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
1603
1604 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1605 Use loop_depth and loop_outer accessor functions.
1606 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
1607 determine_invariantness_stmt, move_computations_stmt): Ditto.
1608 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
1609 add_loop, loopify, unloop, fix_loop_structure): Ditto.
1610 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
1611 * tree-scalar-evolution.c (interpret_loop_phi,
1612 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
1613 instantiate_parameters_1, scev_const_prop): Ditto.
1614 * cfghooks.c (make_forwarder_block): Ditto.
1615 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
1616 * modulo-sched.c (loop_canon_p): Ditto.
1617 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
1618 slpeel_can_duplicate_loop_p): Ditto.
1619 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
1620 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
1621 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
1622 cancel_loop, verify_loop_structure): Ditto.
1623 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
1624 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
1625 superloops vector instead of "pred" array.
1626 (establish_preds): Take father loop as an argument. Initialize the
1627 superloops vector.
1628 (flow_loop_tree_node_add): Pass father loop to establish_preds. Do not
1629 initialize loop->outer.
1630 (flow_loop_tree_node_remove): Truncate the superloops vector.
1631 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
1632 "pred" merged to "superloops" vector.
1633 (loop_depth, loop_outer): New.
1634 (fel_init): Use loop_outer.
1635
1636 2007-05-11 Jan Hubicka <jh@suse.cz>
1637
1638 * cgraphunit.c: Include gt-cgraphunit.h
1639 (static_ctors, static_dtors): New static vars.
1640 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
1641 based on implementation in c-common.c
1642 (cgraph_finalize_function): Call record_cdtor_fn.
1643 (cgraph_optimize): Call cgraph_build_cdtor_fns.
1644 * decl.c (finish_function): Do not call c_record_cdtor_fn.
1645 (c_write_global_declarations): Do not call c_build_cdtor_fns.
1646 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
1647 build_cdtor, c_build_cdtor_fns): Remove.
1648 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
1649 c_build_cdtor_fns): Remove prototype.
1650
1651 2007-05-11 Paolo Carlini <pcarlini@suse.de>
1652
1653 PR other/31852
1654 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
1655 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
1656 * builtins.c (fold_builtin_memchr): New.
1657 (expand_builtin_memchr): Call the latter.
1658 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
1659 * doc/extend.texi ([Other built-in functions provided by GCC]):
1660 Document memchr.
1661
1662 2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
1663
1664 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
1665 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
1666 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
1667 PFPO_OP1_TYPE_SHIFT): Constants added.
1668 (DFP_ALL): Mode macro defined.
1669 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
1670 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
1671 Insn definitions added.
1672 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
1673 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
1674 Expanders added.
1675
1676 2007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
1677
1678 PR tree-optimization/31885
1679 * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
1680 to be undetermined.
1681 (automatically_generated_chrec_p): Return false for NULL.
1682
1683 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
1684
1685 * config/bfin/bfin.h (MOVE_RATIO): Define.
1686
1687 2007-05-10 Richard Sandiford <richard@codesourcery.com>
1688
1689 * config.gcc (sparc-wrs-vxworks): New target.
1690 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
1691 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
1692 * config/sparc/sparc.h: Include vxworks-dummy.h.
1693 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
1694 include LABEL_REFs too.
1695 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
1696 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
1697 VxWorks.
1698 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
1699 on VxWorks.
1700 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
1701 (sparc_emit_call_insn): New function.
1702 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
1703 functions when generating VxWorks PIC.
1704 * config/sparc/sparc.md (vxworks_load_got): New pattern.
1705 (call, call_value): Use sparc_emit_call_insn instead of
1706 emit_call_insn.
1707
1708 2007-05-09 Bob Wilson <bob.wilson@acm.org>
1709
1710 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
1711
1712 2007-05-09 Bob Wilson <bob.wilson@acm.org>
1713
1714 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
1715 for floating-point values if HOST_BITS_PER_LONG > 32. Use split_double
1716 instead of operand_subword.
1717
1718 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
1719
1720 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
1721 * config/bfin/bfin.c (bfin_local_alignment): New function.
1722 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
1723
1724 2007-05-08 Chao-ying Fu <fu@mips.com>
1725
1726 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
1727 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
1728 (smsub_widen_optab, umsub_widen_optab): Define.
1729 * optabs.c (init_optabs): Initialize smsub_widen_optab and
1730 umsub_widen_optab.
1731 * genopinit.c (optabs): Fill in smsub_widen_optab and
1732 umsub_widen_optab.
1733 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
1734 and umsub_widen_optab to implement multiply-subtract sequences.
1735 * config/mips/mips.md (*msac<u>_di): Rename to...
1736 (<u>msubsidi4): ...this. Extend condition to include
1737 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
1738 of operand 0 to "ka" and use the three-operand form of msub<u>
1739 for TARGET_DSPR2.
1740 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
1741 to define_expands.
1742
1743 2007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
1744
1745 PR rtl-optimization/28011
1746 * reload.c (push_reload): Set dont_share if IN appears in OUT
1747 also when IN is a PLUS rtx.
1748 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
1749 are same PLUS rtx.
1750
1751 2007-05-08 Kazu Hirata <kazu@codesourcery.com>
1752
1753 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
1754 call unshare_all_decls.
1755 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
1756 (unshare_all_decls): Remove.
1757
1758 2007-05-08 Simon Martin <simartin@users.sourceforge.net>
1759
1760 PR 31847
1761 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
1762 dumps.
1763
1764 2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
1765 Nigel Stephens <nigel@mips.com>
1766
1767 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
1768 Update comments and all uses.
1769 (MIN_FPRS_PER_FMT): Define.
1770 * config/mips/mips.c (function_arg): Fix to correctly handle
1771 the -mips32r2 -mfp64 -mabi=32 case.
1772 (override_options): Enable use of odd-numbered registers for
1773 SFmode values on MIPS32.
1774 (mips_save_reg_p): Save whole floating-point register pair if
1775 either half is used.
1776 (compute_frame_size): Fix comment.
1777
1778 2007-05-08 Jie Zhang <jie.zhang@analog.com>
1779
1780 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
1781 argument of type bool.
1782 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
1783 argument. Safely select temporary P register according to it.
1784 (do_link): Change call site of add_to_reg accordingly.
1785 (do_unlink): Add epilogue_p as a fourth argument and pass it
1786 to add_to_reg.
1787 (expand_interrupt_handler_epilogue): Change call of do_unlink
1788 accordingly.
1789 (bfin_expand_prologue): Add a third argument sibcall_p.
1790 * config/bfin/bfin.md (epilogue): Change call of
1791 bfin_expand_epilogue accordingly.
1792 (sibcall_epilogue): Likewise.
1793 (eh_return_internal): Likewise.
1794
1795 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
1796 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
1797 * config/bfin/bfin.c (bfin_handle_option): Handle
1798 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
1799 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
1800 Support bf534, bf536 and bf561.
1801 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
1802
1803 2007-05-08 Uros Bizjak <ubizjak@gmail.com>
1804
1805 PR target/31854
1806 * config/i386/i386.c (ix86_function_regparm): Process local
1807 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
1808
1809 2007-05-07 Mike Stump <mrs@apple.com>
1810
1811 * doc/invoke.texi (Warning Options): Document that -Wempty-body
1812 also checks for and while statements in C++.
1813
1814 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
1815
1816 * gcc.c (at_file_supplied): New variable.
1817 (main): Set it if we expanded argv.
1818 (do_spec_1): Pass an @-file to the linker if we were called with
1819 an @-file argument and HAVE_GNU_LD.
1820 * collect2.c (at_file_supplied): New variable.
1821 (response_file): New variable.
1822 (collect_exit): Unlink response_file if necessary.
1823 (handler): Likewise.
1824 (do_wait): Likewise.
1825 (main): Set at_file_supplied if we expanded argv.
1826 (collect_execute): Pass an @-file to subprocesses if we were called
1827 with an @-file argument.
1828 * configure.ac: Add define for HAVE_GNU_LD.
1829 * configure: Regenerate.
1830 * config.in: Regenerate.
1831
1832 2007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
1833
1834 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
1835 operand to HI mode.
1836 (mulsi3): New.
1837 (divsi3): New.
1838 (udivsi3): New.
1839
1840 2007-05-07 Jayant Sonar <jayants@kpitcummins.com>
1841
1842 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1843 (TARGET_ENCODE_SECTION_INFO): Re-define.
1844 (m32c_encode_section_info): New
1845 (function_vector_handler): New
1846 (current_function_special_page_vector): New
1847 (m32c_special_page_vector_p): New.
1848 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
1849 Prototype.
1850 * config/m32c/jump.md: Added instruction JSRS for functions
1851 with attribute "function_vector".
1852 * doc/extend.texi (function_vector): Added description
1853 for M16C, M32C targets.
1854
1855 2007-05-07 DJ Delorie <dj@redhat.com>
1856
1857 PR 31794
1858 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
1859 ashrpsi3, lshrpsi3): Update shift count constraint.
1860
1861 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
1862 Nathan Froyd <froydnj@codesourcery.com>
1863
1864 PR 22133
1865 * c-incpath.c (add_path): Strip trailing path separators.
1866
1867 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
1868
1869 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
1870 Free dominance info before purging EH edges.
1871 (eliminate_degenerate_phis): Likewise.
1872 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
1873
1874 2007-05-07 Jan Hubicka <jh@suse.cz>
1875
1876 * gimplify.c (gimplify_expr): Do not crash when folding
1877 (void *)(int)&a + 4.
1878
1879 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1880
1881 PR driver/31694
1882 * c-opts.c (lang_fortran): Make it non static.
1883 * c-common.h (lang_fortran): New prototype.
1884 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
1885 -lang-fortran option was passed by the driver.
1886
1887 2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
1888
1889 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
1890 of ASSERT_CHECKING. Tweak message.
1891
1892 2007-05-06 Revital Eres <eres@il.ibm.com>
1893
1894 PR 30957
1895 * loop-unroll.c (insert_var_expansion_initialization):
1896 Initialize the expansions with -zero instead of +zero.
1897
1898 2007-05-05 Aurelien Jarno <aurelien@aurel32.net>
1899
1900 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
1901 into pic and non-pic versions. Mark r19 as used for
1902 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
1903 for tgd_load, tld_load and tie_load .
1904 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
1905 version of tgd_load, tld_load and tie_load depending on the
1906 value of flag_pic.
1907
1908 2007-05-04 Ulrich Drepper <drepper@redhat.com>
1909 Jakub Jelinek <jakub@redhat.com>
1910
1911 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
1912 (__do_global_dtors_aux): Use more paranoid loop to run
1913 destructors if HIDDEN_DTOR_LIST_END.
1914 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
1915
1916 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1917
1918 * varasm.c (align_variable): Don't increase alignment for
1919 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
1920 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
1921
1922 2007-05-04 Josh Conner <jconner@apple.com>
1923
1924 * basic-block.h (cdi_direction): Assign values to all enumeration
1925 constants.
1926 (dom_computed): Remove.
1927 (dom_info_state): New.
1928 (set_dom_info_availability): New.
1929 * tree-ssa-loop-im.c (determine_invariantness): Initialize
1930 walk_data.dom_direction.
1931 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
1932 instead of dom_computed[].
1933 (split_edge): Likewise.
1934 (create_basic_block): Likewise.
1935 (merge_blocks): Likewise.
1936 * ifcvt.c (find_if_header): Likewise.
1937 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
1938 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1939 * tree-ssa.c (verify_ssa): Likewise.
1940 * tree-cfg.c (tree_verify_flow_info): Likewise.
1941 (remove_edge_and_dominated_blocks): Likewise.
1942 * dominance.c (dom_computed): Make static.
1943 (calc_dfs_tree_nonrec): Change third param to a bool.
1944 (calc_dfs_tree): Change second param to a bool.
1945 (calc_idioms): Change second param to a bool. Use
1946 dom_convert_dir_to_idx.
1947 (init_dom_info): Validate dir before using.
1948 (dom_convert_dir_to_idx): New.
1949 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
1950 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
1951 (free_dominance_info): Use dom_convert_dir_to_idx.
1952 (get_immediate_dominator): Likewise.
1953 (set_immediate_dominator): Likewise.
1954 (get_dominated_by): Likewise.
1955 (redirect_immediate_dominators): Likewise.
1956 (nearest_common_denominator): Likewise.
1957 (dominated_by_p): Likewise.
1958 (bb_dom_dfs_in): Likewise.
1959 (bb_dom_dfs_out): Likewise.
1960 (recount_dominator): Likewise.
1961 (iterate_fix_dominators): Likewise.
1962 (add_to_dominance_info): Likewise.
1963 (delete_from_dominance_info): Likewise.
1964 (first_dom_son): Likewise.
1965 (next_dom_son): Likewise.
1966 (dom_info_available_p): Likewise.
1967 (dom_info_state): New.
1968 (set_dom_info_availability): New.
1969
1970 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
1971
1972 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
1973 Expander removed.
1974 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
1975
1976 2007-05-04 Bob Wilson <bob.wilson@acm.org>
1977
1978 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
1979 (subdi3, subdi_carry): Delete.
1980
1981 2007-05-04 Jan Hubicka <jh@suse.cz>
1982 Richard Guenther <rguenther@suse.de>
1983
1984 * opts.c (decode_options): Do not fiddle with inlining
1985 parameters in case of optimizing for size.
1986 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
1987 for size do nothing.
1988 (cgraph_decide_inlining_of_small_function): When optimizing for
1989 size never inline functions increasing caller size.
1990 (cgraph_early_inlining): Inline for size when optimizing for size.
1991
1992 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
1993
1994 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
1995 logical operations piecewise.
1996 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
1997 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
1998 subdi_sesidi_di): Delete.
1999 (add_with_carry): Produce carry in CC instead of a DREG to shorten
2000 the generated sequence. Allow three-reg add in constraints. Rewrite
2001 the rtl expression for carry to avoid zero_extend of a constant.
2002 (sub_with_carry): New pattern.
2003 (adddi3, subdi3): Change into define_expand. For subtract, generate a
2004 different sequence not involving jumps.
2005 (notbi): Now a named pattern.
2006
2007 2007-05-04 Bradley Lucier <lucier@math.purdue.edu>
2008
2009 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
2010 Add the note about a significant loss of accuracy of some
2011 mathematical routines when these options are used.
2012
2013 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2014
2015 * haifa-sched.c (rtx_vec_t): New typedef.
2016 (contributes_to_priority_p): Extract piece of priority () into new
2017 static function.
2018 (priority): Use the function. Add assertion.
2019 (rank_for_schedule, set_priorities): Add assertion to check that
2020 insn's priority is initialized.
2021 (clear_priorities, calc_priorities): Change signature. Make it update
2022 all relevant insns. Update all callers ('add_to_speculative_block ()'
2023 and 'create_block_check_twin ()').
2024 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
2025 Add new field 'priority_status'.
2026 (INSN_PRIORITY_STATUS): New macro.
2027 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
2028
2029 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2030
2031 * sched-ebb.c (debug_ebb_dependencies): New static function.
2032 (init_ready_list): Use it.
2033
2034 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
2035 with changed signature and 'debug_rgn_dependencies ()'.
2036 (debug_rgn_dependencies): New static function.
2037 (init_ready_list): Use it.
2038
2039 * sched-int.h (debug_dependencies): Declare.
2040
2041 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
2042
2043 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
2044
2045 2007-05-04 Dirk Mueller <dmueller@suse.de>
2046
2047 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
2048
2049 2007-05-03 Jan Hubicka <jh@suse.cz>
2050
2051 * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
2052 for pointer type in more cases than before.
2053
2054 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
2055
2056 * tree-object-size.c (plus_expr_object_size): When operand size is
2057 unknown, return unknown.
2058
2059 2007-05-03 Dirk Mueller <dmueller@suse.de>
2060
2061 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
2062
2063 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
2064 options.
2065
2066 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
2067
2068 2007-05-03 Janis Johnson <janis187@us.ibm.com>
2069
2070 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
2071
2072 2007-05-03 Joseph Myers <joseph@codesourcery.com>
2073
2074 * config/soft-fp/double.h, config/soft-fp/extended.h,
2075 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
2076 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
2077 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
2078 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
2079 glibc CVS.
2080
2081 2007-05-03 Ian Lance Taylor <iant@google.com>
2082
2083 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2084 MASK_PPC_GFXOPT for 8540 or 8548.
2085
2086 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
2087
2088 * tree-vect-transform.c (vect_update_inits_of_drs): Use
2089 vect_print_dump_info() to output debug information.
2090
2091 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
2092
2093 PR target/31768
2094 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
2095 operands of size 2 when operand is not MEM_P.
2096
2097 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
2098
2099 PR tree-optimization/30565
2100 * lambda-code.c (perfect_nestify): Fix updating of dominators.
2101
2102 2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
2103
2104 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
2105 (umulsi3_highpart): Use them.
2106 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
2107 for final accumulator to D regisster tranfser.
2108
2109 2007-05-03 Dorit Nuzman <dorit@il.ibm.com>
2110
2111 PR tree-optimization/31699
2112 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
2113 code.
2114 (vect_enhance_data_refs_alignment): Compute peel amount using
2115 TYPE_VECTOR_SUBPARTS instead of vf.
2116 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
2117
2118 2007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
2119
2120 PR bootstrap/31776
2121 * system.h: Remove inclusion of double-int.h
2122 * tree.h: Include double-int.h
2123 * gengtype.c: Likewise
2124 * cfgloop.h: Likewise
2125 * Makefile.in: Adjust dependencies on double-int.h
2126
2127 2007-05-02 Eric Christopher <echristo@apple.com>
2128
2129 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
2130 -shared to -Zdynamiclib.
2131
2132 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
2133
2134 PR c++/31663
2135 * c-common.c (strip_pointer_or_array_types): New function.
2136 * c-common.h (strip_pointer_or_array_types): New function declaration.
2137
2138 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
2139
2140 PR tree-optimization/31771
2141 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
2142
2143 2007-05-02 Paul Brook <paul@codesourcery.com>
2144
2145 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
2146
2147 2007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
2148
2149 PR middle-end/29715
2150 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
2151 transformation.
2152
2153 2007-05-02 Nick Clifton <nickc@redhat.com>
2154
2155 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
2156
2157 2007-05-02 Richard Guenther <rguenther@suse.de>
2158
2159 PR tree-optimization/31146
2160 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2161 argument, single_use_p. If we have a single use that is
2162 a conversion to the definition rhs type, propagate that rhs.
2163 (forward_propagate_addr_expr): Pass single_use_p argument
2164 to forward_propagate_addr_expr_1.
2165
2166 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
2167
2168 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
2169 variable.
2170
2171 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2172
2173 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
2174 'AMD Family 10 core'.
2175
2176 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2177
2178 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
2179 and athlon64-sse3 as improved versions of k8, opteron and athlon64
2180 with SSE3 instruction set support.
2181 * doc/invoke.texi: Likewise.
2182
2183 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2184
2185 * config/i386/i386.c (override_options): Tuning 32-byte loop
2186 alignment for amdfam10 architecture. Increasing the max loop
2187 alignment to 24 bytes.
2188
2189 2007-05-01 Kazu Hirata <kazu@codesourcery.com>
2190
2191 * config/m68k/constraints.md: New.
2192 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
2193 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2194 EXTRA_CONSTRAINT): Remove.
2195 * config/m68k/m68k.md: Include constraints.md.
2196 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
2197
2198 2007-05-01 Ian Lance Taylor <iant@google.com>
2199
2200 PR tree-optimization/31739
2201 * tree-vrp.c (vrp_val_is_max): New static function.
2202 (vrp_val_is_min): New static function.
2203 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
2204 copying the node.
2205 (set_value_range): Use vrp_val_is_{max,min}.
2206 (extract_range_from_assert): Likewise.
2207 (extract_range_from_binary_expr): Likewise.
2208 (extract_range_from_unary_expr): Likewise.
2209 (dump_value_range, vrp_meet): Likewise.
2210 (vrp_visit_phi_node): Likewise.
2211 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
2212
2213 2007-05-01 Mark Mitchell <mark@codesourcery.com>
2214
2215 * config/i386/gmon-sol2.c (size_t): New type.
2216 (intptr_t): Likewise.
2217 (s_textsize): Declare as size_t.
2218 (sbrk): Declare.
2219 (monstartup): Use size_t for sizes.
2220 (_mcount): Save and restore registers.
2221 (internal_mcount): Pass 0 as the first argument to monstartup
2222 in 64-bit mode.
2223 (moncontrol): Convert pointer to appropriately sized integer
2224 before passing to profil.
2225
2226 2007-05-01 Joseph Myers <joseph@codesourcery.com>
2227
2228 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
2229 __NO_FPRS__, not just if _SOFT_DOUBLE.
2230 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
2231 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
2232 also for E500 double.
2233 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
2234 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
2235 && !TARGET_FPRS).
2236
2237 2007-05-01 Richard Guenther <rguenther@suse.de>
2238
2239 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
2240 is NULL.
2241
2242 2007-05-01 Joseph Myers <joseph@codesourcery.com>
2243
2244 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
2245
2246 2007-05-01 Jan Hubicka <jh@suse.cz>
2247
2248 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
2249 invariant.
2250
2251 2007-05-01 Jan Hubicka <jh@suse.cz>
2252
2253 * tree.h (maybe_fold_offset_to_component_ref): Remove.
2254 (maybe_fold_offset_to_reference): Declare.
2255 * fold-const.c (fold_unary): Do not fold
2256 (type *)&A into &A->field_of_type_and_offset_0
2257 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
2258 size is unknown, give up.
2259 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
2260 offsets.
2261 (maybe_fold_offset_to_reference): New.
2262 (maybe_fold_stmt_indirect): Use it.
2263 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
2264 * gimplify.c (gimplify_conversion): Canonicalize conversions to
2265 field references.
2266 (gimplify_expr): Likewise for plus_expr.
2267
2268 2007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2269
2270 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
2271 bsi_after_labels. Always insert statements before bsi.
2272 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2273 * predict.c (apply_return_prediction): Check for empty blocks.
2274 * cfgexpand.c (lab_rtx_for_bb): New variable.
2275 (label_rtx_for_bb): Do not create new tree labels.
2276 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
2277 (tree_expand_cfg): Initialize lab_rtx_for_bb.
2278 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
2279 creating edges.
2280 (label_for_bb): Add field used.
2281 (update_eh_label, main_block_label): Mark the label used.
2282 (cleanup_dead_labels): Remove unused labels.
2283
2284 2007-05-01 Richard Guenther <rguenther@suse.de>
2285
2286 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
2287 if it is not about to be set.
2288 (get_value_range): Do not pre-allocate equiv bitmap.
2289 (update_value_range): No need to clear equiv field.
2290 (add_equivalence): Change prototype to get bitmap pointer.
2291 Allocate bitmap here if it is not already.
2292 (extract_range_from_assert): Do not allocate bitmap here.
2293 Update callers to add_equivalence.
2294 (extract_range_from_ssa_name): Likewise.
2295 (get_vr_for_comparison): New static helper.
2296 (compare_name_with_value): Handle NULL equiv bitmap by
2297 peeling the first iteration of the comparison loop.
2298 Use get_vr_for_comparison.
2299 (compare_names): Handle NULL equiv bitmaps by using fake
2300 ones. Use get_vr_for_comparison.
2301
2302 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
2303
2304 * double-int.c (mpz_set_double_int): Moved from
2305 tree-ssa-loop-niter.c.
2306 (mpz_get_double_int): Likewise; also, add option to wrap
2307 out-of-range integers.
2308 * double-int.h: New prototypes for above.
2309 * tree.c (get_static_type_bounds): Moved from
2310 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
2311 TYPE_MAX_VALUE if they exist..
2312 * tree.h: New prototype for above.
2313 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
2314 get_type_bounds calls.
2315 (mpz_set_double_int): Move to double-int.c.
2316 (get_type_bounds): Move to tree.c, rename to
2317 get_static_type_bounds.
2318 (mpz_to_double_int): Move to double-int.c, rename to
2319 mpz_get_double_int.
2320
2321 2007-04-30 Bob Wilson <bob.wilson@acm.org>
2322
2323 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
2324 DIV0 exception can fall through to a normal return.
2325
2326 2007-04-30 Alexandre Oliva <aoliva@redhat.com>
2327
2328 PR middle-end/22156
2329 Temporarily revert:
2330 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
2331 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
2332 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
2333 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
2334 initialize align to silence bogus warning.
2335 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
2336 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
2337 all_no_warning.
2338 (struct sra_walk_fns): Remove use_all parameter from use.
2339 (sra_hash_tree): Handle BIT_FIELD_REFs.
2340 (sra_elt_hash): Don't hash bitfld blocks.
2341 (sra_elt_eq): Skip them in parent compares as well. Handle
2342 BIT_FIELD_REFs.
2343 (sra_walk_expr): Don't maintain or pass down use_all_p.
2344 (scan_use): Remove use_all parameter.
2345 (scalarize_use): Likewise. Re-expand assignment to
2346 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
2347 output, and re-scalarize after output. Don't mark anything
2348 for no warning.
2349 (scalarize_ldst): Adjust.
2350 (scalarize_walk_gimple_modify_statement): Likewise.
2351 (build_element_name_1): Handle BIT_FIELD_REFs.
2352 (instantiate_element): Don't warn for any element whose parent
2353 is used as a whole.
2354 (instantiate_missing_elements_1): Return the sra_elt.
2355 (canon_type_for_field): New.
2356 (try_instantiate_multiple_fields): New.
2357 (instantiate_missing_elemnts): Use them.
2358 (mark_no_warning): Removed.
2359 (generate_one_element_ref): Handle BIT_FIELD_REFs.
2360 (REPLDUP, sra_build_elt_assignment): New.
2361 (generate_copy_inout): Use them.
2362 (generate_element_copy): Likewise. Handle bitfld differences.
2363 (generate_element_zero): Don't recurse for blocks. Use
2364 sra_build_elt_assignment.
2365 (generate_one_element_int): Take elt instead of var. Use
2366 sra_build_elt_assignment.
2367 (generate_element_init_1): Adjust.
2368 (scalarize_use, scalarize_copy): Use REPLDUP.
2369 (scalarize_ldst): Move assert before dereference.
2370 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
2371
2372 2007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2373
2374 PR C++/31721
2375 * tree.c (reconstruct_complex_type): Reconstruct a reference
2376 correctly.
2377 Also use the same mode for the pointer as the old pointer type.
2378
2379 2007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2380
2381 * doc/trouble.texi (Interoperation): Remove note about Ultrix
2382 Fortran compiler.
2383
2384 2007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
2385
2386 PR rtl-optimization/31676
2387 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
2388 (df_refs_record): Call it.
2389
2390 2007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2391
2392 * rtl.def (SS_ABS): New code.
2393 * config/bfin/bfin.c (print_operand): New modifier 'v'.
2394 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
2395 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
2396 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
2397 (bfin_init_builtins): Define them.
2398 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
2399 (bfin_expand_builtin): ... and handle the others here.
2400 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
2401 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
2402 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
2403 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
2404 operand is only HImode.
2405
2406 2007-04-29 Steven Bosscher <steven@gcc.gnu.org>
2407
2408 * regclass.c (scan_one_insn): Remove splitting of
2409 two address insns.
2410
2411 2007-04-28 Sandra Loosemore <sandra@codesourcery.com>
2412 Nigel Stephens <nigel@mips.com>
2413
2414 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
2415
2416 2007-04-28 Jan Hubicka <jh@suse.cz>
2417
2418 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
2419 insn_locators_alloc instead of insn_locators_initialize;
2420 call reset_block_changes.
2421 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2422 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
2423 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
2424 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2425 * config/score/score.c (th_output_mi_thunk): Likewise.
2426 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2427 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
2428 tolerate uninitialized locator info.
2429
2430 Re-apply:
2431 * function.c (init_function_start): Don't init line number info.
2432 (expand_function_end): Update.
2433 (reset_block_changes, record_block_change, finalize_block_changes,
2434 check_block_change, free_block_changes): Kill.
2435 * function.h (reset_block_changes, record_block_change,
2436 finalize_block_changes, check_block_change, free_block_changes): Remove
2437 prototypes.
2438 (struct function): Remove ib_boundaries_block.
2439 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2440 Use curr_insn_locator to initialize locator.
2441 (emit_line_note): Remove.
2442 * cfgexpand.c (expand_gimple_cond_expr): Update.
2443 (construct_exit_block): Likewise.
2444 (tree_expand_cfg): Initialize/finalize locators.
2445 * expr.c (expand_expr_real): Update.
2446 * cfglayout.c (line_locators_locs, line_locators_lines,
2447 file_locators_locs, file_locators_files): Remove.
2448 (set_block_levels): Move to cfgexpand.c.
2449 (insn_locators_initialize): Remove.
2450 (pass_insn_locators_initialize): Remove.
2451 (locations_locators_locs, locations_locators_vals): New static vars.
2452 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
2453 Likewise.
2454 (insn_locators_alloc, insn_locators_finalize,
2455 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2456 New functions.
2457 (locator_location): New.
2458 (locator_line, locator_file): Rewrite.
2459 * rtl.h (emit_line_note): Kill.
2460 (insn_locators_alloc, insn_locators_finalize,
2461 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2462 Declare.
2463 * tree-inline.c (initialize_cfun): Do not initialize
2464 ib_boundaries_block.
2465 * passes.c (pass_insn_locators_initialize): Remove.
2466
2467 2007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
2468
2469 * tree-cfg.c (move_block_to_fn): Release bb from dominance
2470 info. Update last_basic_block correctly.
2471
2472 2007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
2473
2474 PR target/31701
2475 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
2476 register itself to hold the offset constant. Tell flow the use
2477 of r4 and r5 when they are used.
2478
2479 2007-04-27 Richard Guenther <rguenther@suse.de>
2480
2481 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
2482 if we simplified anything.
2483 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
2484 warnings until we did a simplification and the stmt was not
2485 marked as TREE_NO_WARNING.
2486
2487 2007-04-27 Mike Stump <mrs@apple.com>
2488
2489 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
2490
2491 2007-04-27 Ian Lance Taylor <iant@google.com>
2492
2493 PR middle-end/31710
2494 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
2495 TYPE_MAX_VALUE exist, convert them to the new type.
2496
2497 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
2498
2499 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
2500 if it claims to be available.
2501 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
2502 edge is redirected.
2503 (perform_tree_ssa_dce): Always free postdominators.
2504
2505 2007-04-27 Richard Henderson <rth@redhat.com>
2506
2507 * config/alpha/predicates.md (aligned_memory_operand): Mark
2508 as define_special_predicate.
2509 (unaligned_memory_operand, normal_memory_operand): Likewise.
2510 (reg_or_unaligned_mem_operand): Remove.
2511 (any_memory_operand): Match the documentation and check for
2512 non-renumbered pseudos during reload.
2513 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
2514 alpha_secondary_reload_class, update to new interface, make static.
2515 Handle CQImode like HImode. Remove FP subreg check.
2516 (alpha_expand_mov): Use replace_equiv_address.
2517 (alpha_expand_mov_nobwx): Use any_memory_operand.
2518 (TARGET_SECONDARY_RELOAD): New.
2519 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
2520 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2521 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
2522 * config/alpha/alpha.md: ... here.
2523 (RELOAD12, reloadmode): New.
2524 (movcqi): New.
2525 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
2526 Don't handle the aligned case here.
2527 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
2528 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
2529 reload_inhi_help. Don't expect a scratch register.
2530 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
2531 reload_outhi_help.
2532 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
2533
2534 2007-04-27 Richard Guenther <rguenther@suse.de>
2535
2536 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
2537
2538 2007-04-27 Richard Guenther <rguenther@suse.de>
2539
2540 PR tree-optimization/30965
2541 PR tree-optimization/30978
2542 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
2543 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
2544 (find_equivalent_equality_comparison): Likewise.
2545 (simplify_cond): Likewise.
2546 (get_prop_source_stmt): New helper.
2547 (get_prop_dest_stmt): Likewise.
2548 (can_propagate_from): Likewise.
2549 (remove_prop_source_from_use): Likewise.
2550 (combine_cond_expr_cond): Likewise.
2551 (forward_propagate_comparison): New function.
2552 (forward_propagate_into_cond): Rewrite to use fold for
2553 tree combining.
2554 (tree_ssa_forward_propagate_single_use_vars): Call
2555 forward_propagate_comparison to propagate comparisons.
2556
2557 2007-04-27 Richard Guenther <rguenther@suse.de>
2558
2559 PR tree-optimization/31715
2560 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
2561 sure to do computation on the offset in an appropriate
2562 signed type.
2563
2564 2007-04-27 Richard Sandiford <richard@codesourcery.com>
2565
2566 * reload.h (elimination_target_reg_p): Declare.
2567 * reload.c (find_reloads): Don't apply the reg_rtx move
2568 optimization if the SET_DEST satisfies elimination_target_reg_p.
2569 * reload1.c (elimination_target_reg_p): New function.
2570 (gen_reload): In the move/add2 fallback, make sure that op0
2571 does not overlap the destination register.
2572
2573 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
2574
2575 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
2576 transform only GIMPLE_MODIFY_STMTs.
2577 * tree-complex.c (expand_complex_operations_1): Ditto.
2578 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
2579 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
2580 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
2581 branches.
2582 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2583 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
2584 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
2585 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
2586 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
2587 slpeel_add_loop_guard): Ditto.
2588 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
2589 * lambda-code.c (perfect_nestify): Ditto.
2590 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
2591 before the first statement.
2592 * tree-optimize.c (execute_free_datastructures): Fix comments.
2593 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
2594 * tree-flow.h (disband_implicit_edges): Declaration removed.
2595 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
2596 branches.
2597 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
2598 without gotos.
2599 (disband_implicit_edges, has_label_p): Removed.
2600 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
2601 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
2602 branches.
2603 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
2604 side effects.
2605 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
2606 also for COND_EXPRs.
2607 * cfgexpand.c (label_rtx_for_bb): New function.
2608 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
2609 Use label_rtx_for_bb to find the labels.
2610 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
2611 last block. Detect fallthru edges.
2612
2613 2007-04-26 Ian Lance Taylor <iant@google.com>
2614
2615 PR target/28675
2616 * reload.c (find_reloads_subreg_address): If the address was valid
2617 in the original mode but not in the new mode, reload the whole
2618 address.
2619
2620 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
2621
2622 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
2623 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
2624 (cleanup_control_expr_graph): Do not invalidate dominance info.
2625 Record altered blocks.
2626 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
2627 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
2628 cleanup_tree_cfg_bb): New functions.
2629 (remove_forwarder_block): Do not maintain the worklist of blocks.
2630 Record altered blocks.
2631 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
2632 not over whole cfg.
2633 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
2634 delete_unreachable_blocks if dominators are not available.
2635 * tree-inline.c (optimize_inline_calls): Free dominance information
2636 earlier.
2637 * tree-flow.h (remove_edge_and_dominated_blocks,
2638 cfgcleanup_altered_bbs): Altered.
2639 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
2640 blocks.
2641 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
2642 functions.
2643 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
2644 do not invalidate dominators.
2645
2646 2007-04-26 Anatoly Sokolov <aesok@post.ru>
2647
2648 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
2649 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
2650 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2651 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2652
2653 2007-04-26 Steve Ellcey <sje@cup.hp.com>
2654
2655 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
2656
2657 2007-04-26 Richard Guenther <rguenther@suse.de>
2658
2659 PR tree-optimization/31703
2660 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
2661 the right type for the target of the bittest.
2662
2663 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2664
2665 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
2666 ix86_sol10_return_in_memory.
2667
2668 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2669
2670 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
2671 variables.
2672
2673 2007-04-26 Jakub Jelinek <jakub@redhat.com>
2674
2675 PR c++/31598
2676 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
2677
2678 PR tree-optimization/30558
2679 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
2680 clear this_state.prev_try.
2681
2682 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2683 Mark Mitchell <mark@codesourcery.com>
2684
2685 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
2686 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
2687 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
2688
2689 2007-04-26 Richard Sandiford <richard@codesourcery.com>
2690
2691 PR driver/31107
2692 * doc/invoke.texi (%:print-asm-header): Document.
2693 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
2694 and -ftarget-help.
2695 (static_spec_functions): Add print-asm-header.
2696 (main): Print a banner before the --target-help linker options.
2697 (print_asm_header_spec_function): New function.
2698
2699 2007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
2700
2701 PR target/31403
2702 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
2703 (movsf_ie): Likewise.
2704
2705 2007-04-25 Paolo Carlini <pcarlini@suse.de>
2706
2707 * doc/extend.texi ([Type Traits]): Adjust per N2255.
2708
2709 2007-04-25 Bob Wilson <bob.wilson@acm.org>
2710
2711 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
2712 for divide-by-zero.
2713 (__umodsi3, __modsi3): Likewise.
2714
2715 2007-04-25 Dirk Mueller <dmueller@suse.de>
2716
2717 * c-typeck.c (build_compound_expr): Annotate warning()
2718 call with OPT_Wunused_value.
2719 * tree-ssa.c (warn_uninit): Annotate warning with
2720 OPT_Wunintialized.
2721 * c-common.c (handle_sentinel_attribute): Annotate warning
2722 call with OPT_Wattributes.
2723
2724 2007-04-25 Thiemo Seufer <ths@mips.com>
2725
2726 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
2727 (mips16): Fix typo.
2728 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
2729 on to the assembler. Improve handling of -mno-mips16. Add handling
2730 of -mno-mips3d, -mno-dsp, -mno-dspr2.
2731 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
2732 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
2733 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
2734
2735 2007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
2736
2737 PR target/31680
2738 * config/i386/winnt.c (i386_pe_file_end): Strip only
2739 USER_LABEL_PREFIX when writing export name.
2740
2741 2007-04-25 Richard Sandiford <richard@codesourcery.com>
2742
2743 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
2744 sh/elf.h, vx-common.h and vxworks.h.
2745 * config/sh/sh.h: Include config/vxworks-dummy.h.
2746 (SUBTARGET_OVERRIDE_OPTIONS): Define.
2747 (OVERRIDE_OPTIONS): Use it.
2748 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
2749 (vxworks_picreg): New pattern.
2750 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2751 VXWORKS_OS_CPP_BUILTINS.
2752 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
2753 to their VXWORKS_* equivalents.
2754 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
2755 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
2756 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
2757 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
2758 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
2759 -mrtp/-fPIC multilibs.
2760 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
2761 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
2762 (MULTILIB_OSDIRNAMES): Delete.
2763
2764 2007-04-25 Anatoly Sokolov <aesok@post.ru>
2765
2766 PR target/18989
2767 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
2768
2769 2007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
2770
2771 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
2772 rounding mode to be specified by the caller.
2773 (real_to_mpfr) Likewise.
2774 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
2775 include new arguments.
2776 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
2777
2778 2007-04-24 Ian Lance Taylor <iant@google.com>
2779
2780 PR tree-optimization/31605
2781 * tree-vrp.c (set_value_range): Check that min and max are not
2782 both overflow infinities.
2783 (set_value_range_to_value): New static function.
2784 (extract_range_from_binary_expr): Call set_value_range_to_value.
2785 (extract_range_from_cond_expr): Likewise.
2786 (extract_range_from_expr): Likewise.
2787 (extract_range_from_unary_expr): Likewise. Don't create a range
2788 which overflows on both sides.
2789 (vrp_meet): Check for a useless range.
2790 (vrp_visit_phi_node): If we see a constant which looks like an
2791 overflow infinity, turn off the TREE_OVERFLOW flag.
2792
2793 2007-04-24 Ian Lance Taylor <iant@google.com>
2794
2795 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
2796
2797 2007-04-24 Simon Martin <simartin@users.sourceforge.net>
2798
2799 PR diagnostic/25923
2800 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
2801 diagnostic message is being built.
2802 * tree-pretty-print.c (dump_generic_node): Only write the
2803 formatted text into BUFFER's stream if we are not building a
2804 diagnostic message.
2805 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
2806 dump_generic_node.
2807 * Makefile.in (toplev.o): Depend on tree-pass.h.
2808
2809 2007-04-24 Ian Lance Taylor <iant@google.com>
2810
2811 PR tree-optimization/31602
2812 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
2813 conditionals in the copied loop header.
2814 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
2815 warnings if TREE_NO_WARNING is set.
2816 * doc/invoke.texi (Warning Options): Clarify that
2817 -Wstrict-overflow does not warn about loops.
2818
2819 2007-04-24 Janis Johnson <janis187@us.ibm.com>
2820
2821 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
2822 expand on the comment about _Decimal128 arguments and check the
2823 integer result of the modulus operation; for 64-bit ELF ABI, ensure
2824 that _Decimal128 argument uses even/odd register pair.
2825 (function_arg): Ditto.
2826
2827 2007-04-24 Hui-May Chang <hm.chang@apple.com>
2828
2829 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
2830 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
2831
2832 2007-04-24 Richard Guenther <rguenther@suse.de>
2833 Olga Golovanevsky <olga@il.ibm.com>
2834
2835 * fold-const.c (multiple_of_p): Check for bottom
2836 to be zero.
2837
2838 2007-04-24 Richard Henderson <rth@redhat.com>
2839
2840 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
2841 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
2842 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
2843 looking for non-zero bits shifted out. Avoid a recursive call
2844 when constructing the scalar.
2845 (__floatundisf): Likewise.
2846
2847 2007-04-24 Nathan Froyd <froydnj@codesourcery.com>
2848
2849 * dwarf2out.c (field_byte_offset): Move the existing logic
2850 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
2851 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
2852
2853 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
2854
2855 PR target/31641
2856 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
2857 argument of 0 for memset.
2858 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
2859 unsigned shift instead of the signed variant.
2860
2861 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
2862
2863 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
2864 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
2865 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
2866 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
2867 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
2868 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
2869 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
2870 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
2871 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
2872 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
2873 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
2874 "mul<mode>3", "div<mode>3"): Insn definitions added.
2875 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
2876 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
2877 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
2878 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
2879 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
2880 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
2881 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
2882 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
2883 TARGET_FLOAT_FORMAT): Macro definitions removed.
2884 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
2885 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
2886 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
2887 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
2888 (s390_gen_rtx_const_DI): Function removed.
2889 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
2890
2891 2007-04-24 Richard Sandiford <richard@codesourcery.com>
2892
2893 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
2894 over an external ffs function.
2895
2896 2007-04-24 Chao-ying Fu <fu@mips.com>
2897 Richard Sandiford <richard@nildram.co.uk>
2898
2899 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
2900 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
2901 (smadd_widen_optab, umadd_widen_optab): Define.
2902 * optabs.c (init_optabs): Initialize smadd_widen_optab and
2903 umadd_widen_optab.
2904 * genopinit.c (optabs): Fill in smadd_widen_optab and
2905 umadd_widen_optab.
2906 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
2907 and umadd_widen_optab to implement multiply-add sequences.
2908 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
2909 (<u>maddsidi4): ...this. Extend condition to include
2910 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
2911 of operand 0 to "ka" and use the three-operand form of madd<u>
2912 for TARGET_DSPR2.
2913 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
2914 to define_expands.
2915 * config/mips/constraints.md (ka): New register constraint.
2916
2917 2007-04-24 Jan Hubicka <j@suse.cz>
2918
2919 Revert:
2920
2921 2007-04-23 Jan Hubicka <jh@suse.cz>
2922 * function.c (init_function_start): Don't init line number info.
2923 (expand_function_end): Update.
2924 (reset_block_changes, record_block_change, finalize_block_changes,
2925 check_block_change, free_block_changes): Kill.
2926 * function.h (reset_block_changes, record_block_change,
2927 finalize_block_changes, check_block_change, free_block_changes): Remove
2928 prototypes.
2929 (struct function): Remove ib_boundaries_block.
2930 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2931 Use curr_insn_locator to initialize locator.
2932 (emit_line_note): Remove.
2933 * cfgexpand.c (expand_gimple_cond_expr): Update.
2934 (construct_exit_block): Likewise.
2935 (tree_expand_cfg): Initialize/finalize locators.
2936 * expr.c (expand_expr_real): Update.
2937 * cfglayout.c (line_locators_locs, line_locators_lines,
2938 file_locators_locs, file_locators_files): Remove.
2939 (set_block_levels): Move to cfgexpand.c.
2940 (insn_locators_initialize): Remove.
2941 (pass_insn_locators_initialize): Remove.
2942 (locations_locators_locs, locations_locators_vals): New static vars.
2943 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
2944 Likewise.
2945 (insn_locators_alloc, insn_locators_finalize,
2946 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2947 New functions.
2948 (locator_location): New.
2949 (locator_line, locator_file): Rewrite.
2950 * rtl.h (emit_line_note): Kill.
2951 (insn_locators_alloc, insn_locators_finalize,
2952 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2953 Declare.
2954 * tree-inline.c (initialize_cfun): Do not initialize
2955 ib_boundaries_block.
2956 * passes.c (pass_insn_locators_initialize): Remove.
2957
2958 2007-04-24 Daniel Franke <franke.daniel@gmail.com>
2959
2960 * doc/invoke.texi: Removed leading '-' from option index entries.
2961
2962 2007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
2963
2964 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
2965 Use phi_nodes_ptr.
2966 (create_phi_node): Use set_phi_nodes.
2967 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
2968 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
2969 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
2970 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
2971 (bsi_start, bsi_last): Use bb_stmt_list.
2972 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
2973 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
2974 Traverse the statements using tsi iterator.
2975 * basic-block.h (struct basic_block_def): Fields stmt_list
2976 and phi_nodes moved to ...
2977 (struct tree_bb_info): ... new structure.
2978 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
2979 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
2980 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
2981 (tree_verify_flow_info): Verify that il.tree is not set for
2982 entry and exit block.
2983 (tree_split_block): Use set_bb_stmt_list.
2984
2985 2007-04-23 Mike Stump <mrs@apple.com>
2986
2987 * config/i386/i386.c (ix86_tune_features
2988 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
2989 nocona and core2.
2990
2991 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
2992
2993 * config/i386/i386.md (prefix_extra): New attribute.
2994 (length): Add prefix_extra.
2995
2996 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
2997 (sse2_movntv2di): Likewise.
2998 (sse2_cvtps2dq): Likewise.
2999 (sse2_cvtpd2pi): Likewise.
3000 (sse2_cvttpd2pi): Likewise.
3001 (*sse2_cvtpd2ps): Likewise.
3002 (*add<mode>3): Likewise.
3003 (sse2_ssadd<mode>3): Likewise.
3004 (sse2_usadd<mode>3): Likewise.
3005 (*sub<mode>3): Likewise.
3006 (sse2_sssub<mode>3): Likewise.
3007 (sse2_ussub<mode>3): Likewise.
3008 (*mulv8hi3): Likewise.
3009 (*smulv8hi3_highpart): Likewise.
3010 (*umulv8hi3_highpart): Likewise.
3011 (sse2_umulv2siv2di3): Likewise.
3012 (sse2_pmaddwd): Likewise.
3013 (ashr<mode>3): Likewise.
3014 (lshr<mode>3): Likewise.
3015 (ashl<mode>3): Likewise.
3016 (sse2_ashlti3): Likewise.
3017 (sse2_lshrti3): Likewise.
3018 (*umaxv16qi3): Likewise.
3019 (*smaxv8hi3): Likewise.
3020 (*uminv16qi3): Likewise.
3021 (*sminv8hi3): Likewise.
3022 (sse2_eq<mode>3): Likewise.
3023 (sse2_gt<mode>3): Likewise.
3024 (*and<mode>3): Likewise.
3025 (sse2_nand<mode>3): Likewise.
3026 (*ior<mode>3): Likewise.
3027 (*xor<mode>3): Likewise.
3028 (sse2_packsswb): Likewise.
3029 (sse2_packssdw): Likewise.
3030 (sse2_packuswb): Likewise.
3031 (sse2_punpckhbw): Likewise.
3032 (sse2_punpcklbw): Likewise.
3033 (sse2_punpckhwd): Likewise.
3034 (sse2_punpcklwd): Likewise.
3035 (sse2_punpckhdq): Likewise.
3036 (sse2_punpckldq): Likewise.
3037 (sse2_punpckhqdq): Likewise.
3038 (sse2_punpcklqdq): Likewise.
3039 (*sse2_pinsrw): Likewise.
3040 (*sse2_pextrw): Likewise.
3041 (sse2_pshufd_1): Likewise.
3042 (sse2_uavgv16qi3): Likewise.
3043 (sse2_uavgv8hi3): Likewise.
3044 (sse2_psadbw): Likewise.
3045 (sse2_pmovmskb): Likewise.
3046 (*sse2_maskmovdqu): Likewise.
3047 (*sse2_maskmovdqu_rex64): Likewise.
3048 (sse4a_extrqi): Likewise.
3049 (sse4a_extrq): Likewise.
3050 (sse3_lddqu): Set prefix_rep.
3051 (sse3_addsubv4sf3): Likewise.
3052 (sse3_haddv4sf3): Likewise.
3053 (sse3_hsubv4sf3): Likewise.
3054 (sse_cvtss2si): Likewise.
3055 (sse_cvtss2si_2): Likewise.
3056 (sse_cvtss2siq): Likewise.
3057 (sse_cvtss2siq_2): Likewise.
3058 (sse_cvttss2si): Likewise.
3059 (sse_cvttss2siq): Likewise.
3060 (sse2_cvttps2dq): Likewise.
3061 (sse3_movshdup): Likewise.
3062 (sse3_movsldup): Likewise.
3063 (sse2_cvtsd2si): Likewise.
3064 (sse2_cvtsd2si_2): Likewise.
3065 (sse2_cvtsd2siq): Likewise.
3066 (sse2_cvtsd2siq_2): Likewise.
3067 (sse2_cvttsd2si): Likewise.
3068 (sse2_cvttsd2siq): Likewise.
3069 (*sse2_cvtpd2dq): Likewise.
3070 (*sse2_cvttpd2dq): Likewise.
3071 (sse2_pshuflw_1): Likewise.
3072 (sse2_pshufhw_1): Likewise.
3073 (sse4a_insertqi): Likewise.
3074 (sse4a_insertq): Likewise.
3075 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
3076 (ssse3_phadddv4si3): Likewise.
3077 (ssse3_phaddswv8hi3): Likewise.
3078 (ssse3_phsubwv8hi3): Likewise.
3079 (ssse3_phsubdv4si3): Likewise.
3080 (ssse3_phsubswv8hi3): Likewise.
3081 (ssse3_pmaddubswv8hi3): Likewise.
3082 (ssse3_pmulhrswv8hi3): Likewise.
3083 (ssse3_pshufbv16qi3): Likewise.
3084 (ssse3_psign<mode>3): Likewise.
3085 (ssse3_palignrti): Likewise.
3086 (abs<mode>2): Likewise.
3087 (ssse3_phaddwv4hi3): Set prefix_extra.
3088 (ssse3_phadddv2si3): Likewise.
3089 (ssse3_phaddswv4hi3): Likewise.
3090 (ssse3_phsubwv4hi3): Likewise.
3091 (ssse3_phsubdv2si3): Likewise.
3092 (ssse3_phsubswv4hi3): Likewise.
3093 (ssse3_pmaddubswv4hi3): Likewise.
3094 (ssse3_pmulhrswv4hi3): Likewise.
3095 (ssse3_pshufbv8qi3): Likewise.
3096 (ssse3_psign<mode>3): Likewise.
3097 (ssse3_palignrdi): Likewise.
3098 (abs<mode>2): Likewise.
3099 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
3100 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
3101 (sse2_pmovmskb): Set mode to SI instead of V2DF.
3102
3103 2007-04-23 Nick Clifton <nickc@redhat.com>
3104
3105 * params.def: Fix formatting of emacs local variables.
3106
3107 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
3108
3109 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
3110 move if inter-unit move isn't allowed.
3111 Don't split moving the first element of V2DI to DI to inter-unit
3112 move if inter-unit move isn't allowed.
3113
3114 2007-04-23 Richard Guenther <rguenther@suse.de>
3115
3116 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
3117 and CDI_POST_DOMINATORS separately.
3118
3119 2007-04-23 Nick Clifton <nickc@redhat.com>
3120
3121 * c.opt (Wformat-contains-nul): Add warning attribute.
3122
3123 2007-04-23 Jan Hubicka <jh@suse.cz>
3124
3125 * function.c (init_function_start): Don't init line number info.
3126 (expand_function_end): Update.
3127 (reset_block_changes, record_block_change, finalize_block_changes,
3128 check_block_change, free_block_changes): Kill.
3129 * function.h (reset_block_changes, record_block_change,
3130 finalize_block_changes, check_block_change, free_block_changes): Remove
3131 prototypes.
3132 (struct function): Remove ib_boundaries_block.
3133 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
3134 Use curr_insn_locator to initialize locator.
3135 (emit_line_note): Remove.
3136 * cfgexpand.c (expand_gimple_cond_expr): Update.
3137 (construct_exit_block): Likewise.
3138 (tree_expand_cfg): Initialize/finalize locators.
3139 * expr.c (expand_expr_real): Update.
3140 * cfglayout.c (line_locators_locs, line_locators_lines,
3141 file_locators_locs, file_locators_files): Remove.
3142 (set_block_levels): Move to cfgexpand.c.
3143 (insn_locators_initialize): Remove.
3144 (pass_insn_locators_initialize): Remove.
3145 (locations_locators_locs, locations_locators_vals): New static vars.
3146 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3147 Likewise.
3148 (insn_locators_alloc, insn_locators_finalize,
3149 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3150 New functions.
3151 (locator_location): New.
3152 (locator_line, locator_file): Rewrite.
3153 * rtl.h (emit_line_note): Kill.
3154 (insn_locators_alloc, insn_locators_finalize,
3155 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3156 Declare.
3157 * tree-inline.c (initialize_cfun): Do not initialize
3158 ib_boundaries_block.
3159 * passes.c (pass_insn_locators_initialize): Remove.
3160
3161 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
3162
3163 PR middle-end/31448
3164 * expr.c (reduce_to_bit_field_precision): Handle
3165 CONST_INT rtx's.
3166
3167 2007-04-22 Uros Bizjak <ubizjak@gmail.com>
3168
3169 PR tree-optimization/24659
3170 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
3171 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
3172 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
3173 * genopinit.c (optabs): Rename vec_pack_mod_optab
3174 to vec_pack_trunc_optab.
3175 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
3176 early for scalar floating point operands for NOP_EXPR.
3177 (vectorizable_type_promotion): Ditto.
3178 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
3179 vec_pack_trunc_optab.
3180 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
3181
3182 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
3183 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
3184 Rename from VEC_PACK_MOD_EXPR.
3185 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
3186 * expr.c (expand_expr_real_1): Ditto.
3187 * tree-inline.c (estimate_num_insns_1): Ditto.
3188 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
3189
3190 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
3191 (vec_unpacks_lo_v4sf): Ditto.
3192 (vec_pack_trunc_v2df): Ditto.
3193 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
3194 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
3195 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
3196
3197 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
3198 vec_pack_mod_v8hi.
3199 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
3200
3201 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
3202 Rename from VEC_PACK_MOD_EXPR. This expression also represent
3203 packing of floating point operands.
3204 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
3205 represent unpacking of floating point operands.
3206 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
3207 [vec_unpacks_hi]: Ditto.
3208 [vec_unpacks_lo]: Ditto.
3209
3210 2007-04-22 Jan Hubicka <jh@suse.cz>
3211
3212 * final.c (rest_of_handle_final): Call
3213 targetm.asm_out.constructor/targetm.asm_out.destructor
3214 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
3215 proper priority via decl_*_priority_insert.
3216 * c-common.c (c_expand_body): Likewise.
3217
3218 2007-04-22 Richard Guenther <rguenther@suse.de>
3219
3220 PR tree-optimization/29789
3221 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
3222 (rewrite_reciprocal): New helper split out from
3223 determine_invariantness_stmt.
3224 (rewrite_bittest): Likewise.
3225 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
3226 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
3227 is not.
3228
3229 2007-04-22 Revital Eres <eres@il.ibm.com>
3230
3231 * loop-unroll.c (var_to_expand): New field to support also
3232 insns of the form x = something + x.
3233 (analyze_insn_to_expand_var): Use it.
3234 (expand_var_during_unrolling): Likewise.
3235
3236 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
3237
3238 * predict.c: Include pointer-set.h.
3239 (bb_predictions): New variable.
3240 (tree_predicted_by_p, tree_predict_edge,
3241 remove_predictions_associated_with_edge): Use bb_predictions map
3242 instead of bb->predictions.
3243 (clear_bb_predictions, assert_is_empty): New functions.
3244 (combine_predictions_for_bb): Use bb_predictions map. Call
3245 clear_bb_predictions.
3246 (tree_estimate_probability): Create and free bb_predictions map.
3247 * Makefile.in (predict.o): Add pointer-set.h dependency.
3248 * basic-block.h (struct basic_block_def): Remove predictions
3249 field.
3250 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
3251
3252 2007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
3253
3254 PR target/31480
3255 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
3256 is null.
3257
3258 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3259
3260 * timevar.c (timevar_print): Change reference of --disable-checking to
3261 --enable-checking=release. Also warn if assert checking is disabled.
3262
3263 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3264
3265 PR C/30265
3266 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
3267 decl as addressable if the compound literal was marked as
3268 addressable.
3269 Mark the decl as a gimple register if it is a complex or
3270 vector decl and does not live in memory.
3271
3272 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3273
3274 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
3275 (GENERIC_NEXT): New function macro.
3276 (PHI_CHAIN): Use phi_node's new chain variable.
3277 (tree_phi_node): Change tree_common to tree_base
3278 and add the chain field.
3279 * tree-phinodes.c (make_phi_node): Don't set
3280 TREE_TYPE on the new node.
3281 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
3282 instead of checking GIMPLE_TUPLE_P in chain_next.
3283 * tree-vect-transform.c
3284 (get_initial_def_for_induction): Look at
3285 PHI_RESULT_TREE for the type of the phi node.
3286 (update_vuses_to_preheader): Use PHI_CHAIN
3287 instead of TREE_CHAIN on the phi node.
3288 * tree-ssa-structalias.c (compute_points_to_sets):
3289 Likewise.
3290 (ipa_pta_execute): Likewise.
3291
3292 2007-04-21 Richard Guenther <rguenther@suse.de>
3293
3294 PR middle-end/31136
3295 * fold-const.c (fold_unary): Call fold_convert_const on the
3296 original tree.
3297
3298 2007-04-21 Alexandre Oliva <aoliva@redhat.com>
3299
3300 * gcse.c (store_killed_in_insn): Handle PARALLELs.
3301 (store_killed_in_pat): New.
3302
3303 2007-04-20 Richard Henderson <rth@redhat.com>
3304
3305 PR target/31628
3306 * config/i386/i386.c (type_has_variadic_args_p): Look for any
3307 TREE_LIST with a void_type_node value, not void_list_node exactly.
3308
3309 2007-04-21 Douglas Gregor <doug.gregor@gmail.com>
3310
3311 * doc/standards.texi: Re-arrange into language-specific
3312 subsections. Add a C++ section, documenting which standards we
3313 support.
3314
3315 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
3316
3317 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
3318 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
3319
3320 2007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
3321
3322 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
3323 ecrti.o and crtbegin.o.
3324 (LIB_DEFAULT_SPEC): Include -lc.
3325 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
3326
3327 2007-04-20 Richard Henderson <rth@redhat.com>
3328
3329 PR target/28623
3330 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
3331 argument; update all callers.
3332 (get_unaligned_offset): New.
3333 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
3334 get_unaligned_address, just pass on the address directly.
3335 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
3336 the subreg in the helper patterns.
3337 (unaligned_extendqidi_le): Use get_unaligned_offset.
3338 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
3339 (unaligned_extendhidi_be): Likewise.
3340 (unaligned_extendhidi): Tidy.
3341 * config/alpha/alpha-protos.h: Update.
3342
3343 2007-04-20 Richard Henderson <rth@redhat.com>
3344
3345 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
3346 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3347 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
3348 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3349 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3350 (CPP_SPEC): Don't include %(cpp_subtarget).
3351 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
3352 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3353 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
3354
3355 2007-04-20 Jakub Jelinek <jakub@redhat.com>
3356
3357 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
3358 for __builtin_ia32_cmpordss.
3359
3360 PR tree-optimization/31632
3361 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
3362 and arg1 for optimizations of comparison against min/max values.
3363 Fold arg0 to arg1's type for optimizations of comparison against
3364 min+1 and max-1 values.
3365
3366 2007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
3367
3368 * reload.c (combine_reloads): When trying to use a dying register,
3369 check whether it's uninitialized and don't use if so.
3370
3371 2007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
3372
3373 * fold-const.c: Remove prototypes for native_encode_expr and
3374 native_interpret_expr.
3375 (native_encode_expr): Make non-static.
3376 (native_interpret_expr): Likewise.
3377 * tree.h: Add prototypes for the above.
3378
3379 2007-04-19 Joseph Myers <joseph@codesourcery.com>
3380
3381 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
3382 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
3383 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
3384 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
3385 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
3386 Add length attributes.
3387
3388 2007-04-19 Janis Johnson <janis187@us.ibm.com>
3389
3390 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
3391 not that it is 1.
3392
3393 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
3394 __STDC_WANT_DEC_FP__.
3395
3396 2007-04-19 Joseph Myers <joseph@codesourcery.com>
3397
3398 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
3399 for long double compatibility.
3400 * configure: Regenerate.
3401
3402 2007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
3403
3404 PR rtl-optimization/29841
3405 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
3406 trap instructions.
3407 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
3408 that may cause control flow transfer from being moved.
3409
3410 2007-04-18 Jan Hubicka <jh@suse.cz>
3411
3412 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
3413 types.
3414
3415 2007-04-18 Eric Christopher <echristo@apple.com>
3416
3417 * config/rs6000/darwin.md (load_macho_picbase): Use link register
3418 only. Update operands.
3419 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
3420 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
3421 link register to pic register.
3422
3423 2007-04-18 Dirk Mueller <dmueller@suse.de>
3424
3425 PR diagnostic/31227
3426 * tree-vrp.c (search_for_addr_array): New.
3427 (check_array_bounds): Suppress warning about
3428 address taken of array refs if its not de-referenced.
3429
3430 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
3431
3432 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
3433 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
3434
3435 * tree-vectorizer.h (NITERS_KNOWN_P): New.
3436 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
3437 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
3438
3439 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
3440 dump print.
3441 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
3442 print message.
3443 (vect_analyze_scalar_cycles): Fix indentation.
3444 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
3445 (vect_mark_relevant): Include phis in relevance analysis.
3446
3447 * tree-vect-transform.c (vect_transform_loop): Add an assert.
3448
3449 2007-04-18 Anatoly Sokolov <aesok@post.ru>
3450
3451 * config/avr/avr.c (ptrreg_to_str): Replace error() with
3452 output_operand_lossage().
3453
3454 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
3455
3456 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
3457 the unused code for reduction without adjust-in-epilog to simplify the
3458 function.
3459
3460 2007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
3461
3462 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
3463 (S390_TDC_NEGATIVE_ZERO): New constant.
3464 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
3465 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
3466 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
3467 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
3468 (S390_TDC_POSITIVE_INFINITY): New constant.
3469 (S390_TDC_NEGATIVE_INFINITY): New constant.
3470 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
3471 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
3472 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
3473 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
3474 (S390_TDC_INFINITY): New constant.
3475 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
3476 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
3477 optimization for UNSPEC_CCZ_TO_INT.
3478 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
3479 ("*ccz_to_int"): New insn.
3480 ("isinf<mode>2"): New insn.
3481 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
3482 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
3483 (UNSPEC_CCZ_TO_INT): New constant.
3484
3485 2007-04-18 Richard Guenther <rguenther@suse.de>
3486
3487 PR tree-optimization/19431
3488 PR tree-optimization/21463
3489 * tree-pass.h (pass_phiprop): Declare.
3490 * passes.c (init_optimization_passes): New phiprop pass.
3491 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
3492 (phivn_valid_p): New helper function.
3493 (phiprop_insert_phi): Likewise.
3494 (propagate_with_phi): Likewise.
3495 (tree_ssa_phiprop): New propagator propagating loads
3496 through phi nodes if profitable.
3497
3498 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
3499
3500 * tree-vect-analyze.c (process_use): New function.
3501 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
3502 Check phis in all bbs.
3503 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
3504 assert.
3505
3506 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
3507
3508 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
3509 we use REG_EQUAL.
3510
3511 2007-04-17 Anatoly Sokolov <aesok@post.ru>
3512
3513 PR target/30483
3514 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
3515 error().
3516
3517 2007-04-17 H.J. Lu <hongjiu.lu@intel.com>
3518
3519 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
3520 on "0".
3521 (sse_vmmulv4sf3): Likewise.
3522 (sse2_vmaddv2df3): Likewise.
3523 (sse2_vmmulv2df3): Likewise.
3524
3525 2007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
3526
3527 PR rtl-optimization/31360
3528 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
3529 (target_reg_cost): New.
3530 (init_set_costs): Initialize target_reg_cost. Add comments
3531 regarding the rationale of the costs.
3532 (global_cost_for_size): Renamed to...
3533 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
3534 of register pressure.
3535 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
3536 estimate_reg_pressure_cost. Add number of ivs.
3537 (determine_set_costs): Dump target_reg_cost.
3538 * loop-invariant.c (gain_for_invariant): Use
3539 estimate_reg_pressure_cost. Removed n_inv_uses argument.
3540 (best_gain_for_invariant, find_invariants_to_move): Remove
3541 n_inv_uses.
3542 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
3543 (target_reg_cost): Declare.
3544 (global_cost_for_size): Declaration removed.
3545 (estimate_reg_pressure_cost): Declare.
3546
3547 2007-04-17 Peter Bergner <bergner@vnet.ibm.com>
3548
3549 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
3550 regnos into even/odd register pairs.
3551 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
3552 TDmode similar to the other floating point modes.
3553 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
3554 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
3555 define_expand's.
3556 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
3557 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
3558 (movdd_hardfloat64): Use TARGET_MFPGPR.
3559
3560 2007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
3561
3562 * reload1.c (delete_output_reload): Don't count output in n_inherited.
3563
3564 Revert
3565 2005-01-05 Richard Henderson <rth@redhat.com>
3566 PR rtl-opt/10692
3567 * reload1.c (do_input_reload): Restrict the optimization deleteing
3568 a previous output reload to RELOAD_FOR_INPUT.
3569
3570 2007-04-17 Dorit Nuzman <dorit@il.ibm.com>
3571
3572 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
3573 induc_vec_info_type.
3574 (vectorizable_induction): New function declaration.
3575 * tree-vect-transform.c (get_initial_def_for_induction): No need to
3576 check if already vectorized. Find first place in BB where new stmts
3577 can be inserted. Takes only one argument.
3578 (vectorizable_induction): New function.
3579 (vect_transform_stmt): Add case for induc_vec_info_type to call
3580 vectorizable_induction.
3581 (vect_transform_loop): Consider phis for vectorization.
3582 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
3583 condition.
3584 (analyze_operations): Call vectorizable_induction when analyzing phis.
3585 Fix comment.
3586 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
3587 (vect_mark_relevant): Include phis in relevance analysis.
3588 (vect_mark_stmts_to_be_vectorize): Likewise.
3589 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
3590
3591 2007-04-16 Lawrence Crowl <crowl@google.com>
3592
3593 * doc/invoke.texi (Debugging Options): Add documentation for the
3594 -femit-struct-debug options -femit-struct-debug-baseonly,
3595 -femit-struct-debug-reduced, and
3596 -femit-struct-debug-detailed[=...].
3597
3598 * c-opts.c (c_common_handle_option): Add
3599 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
3600 and OPT_femit_struct_debug_detailed_.
3601 * c.opt: Add specifications for
3602 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
3603 and -femit-struct-debug-detailed[=...].
3604 * opts.c (set_struct_debug_option): Parse the
3605 -femit-struct-debug-... options.
3606 * opts.c (matches_main_base, main_input_basename,
3607 main_input_baselength, base_of_path, matches_main_base): Add
3608 variables and functions to compare header base name to compilation
3609 unit base name.
3610 * opts.c (should_emit_struct_debug): Add to determine to emit a
3611 structure based on the option.
3612 (dump_struct_debug) Also disabled function to debug this
3613 function.
3614 * opts.c (handle_options): Save the base name of the
3615 compilation unit.
3616
3617 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
3618 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
3619 This hook indicates if a type is generic. Set it by default
3620 to "never generic".
3621 * langhooks.h (struct lang_hooks_for_types): Add a new hook
3622 to determine if a struct type is generic or not.
3623 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
3624 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
3625 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
3626 with live C++ hook.
3627
3628 * flags.h (enum debug_info_usage): Add an enumeration to describe
3629 a program's use of a structure type.
3630 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
3631 to indicate the program's usage of the type. Filter structs based
3632 on the -femit-struct-debug-... specification.
3633 (gen_type_die): Split into two routines, gen_type_die and
3634 gen_type_die_with_usage. gen_type_die is now a wrapper
3635 that assumes direct usage.
3636 (gen_type_die_with_usage): Replace calls to gen_type_die
3637 with gen_type_die_with_usage adding the program usage of
3638 the referenced type.
3639 (dwarf2out_imported_module_or_decl): Suppress struct debug
3640 information using should_emit_struct_debug when appropriate.
3641
3642 2007-04-16 Ian Lance Taylor <iant@google.com>
3643
3644 PR tree-optimization/31522
3645 * tree-vrp.c (vr_phi_edge_counts): New static variable.
3646 (vrp_initialize): Allocate vr_phi_edge_counts.
3647 (vrp_visit_phi_node): Don't push to infinity if we saw a new
3648 executable edge. Drop test for all constants.
3649 (vrp_finalize): Free vrp_phi_edge_counts.
3650
3651 * doc/cpp.texi (Common Predefined Macros): Clarify description of
3652 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
3653
3654 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
3655 predecessors at head rather than tail.
3656
3657 2007-04-16 Matthias Klose <doko@debian.org>
3658
3659 * config/alpha/linux.h (CPP_SPEC): Define.
3660 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
3661
3662 2007-04-16 Aldy Hernandez <aldyh@redhat.com>
3663
3664 * function.h: Remove sequence_stack extern declaration.
3665
3666 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
3667
3668 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
3669 TARGET_FIDOA.
3670 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
3671 defined.
3672
3673 2007-04-16 Anatoly Sokolov <aesok@post.ru>
3674
3675 * config/avr/avr.c (avr_arch_types): Rearranging array.
3676 (enum avr_arch): Add.
3677 (avr_mcu_types): Use avr_arch enumeration constants instead of
3678 numbers.
3679 * config/avr/avr.h (LINK_SPEC): Simplify.
3680
3681 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
3682
3683 * config/m68k/m68k.c (m68k_libcall_value,
3684 m68k_function_value): Use macros for register names more.
3685
3686 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
3687 instead.
3688 (M68K_REGNAME): Use A6_REG.
3689 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
3690
3691 2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3692
3693 PR middle-end/28071
3694 * sched-int.h (struct deps): Split field 'pending_lists_length' into
3695 'pending_read_list_length' and 'pending_write_list_length'. Update
3696 comment.
3697 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
3698 to handle two length counters instead of one. Update all uses.
3699 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
3700 two length counters instead of one.
3701 * sched-rgn.c (propagate_deps): Update to handle two length counters
3702 instead of one.
3703
3704 2007-04-16 H.J. Lu <hongjiu.lu@intel.com>
3705
3706 PR target/31582
3707 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
3708 copy of source, pass it to ix86_expand_vector_set and return
3709 it as target.
3710
3711 2007-04-16 David Ung <davidu@mips.com>
3712 Joseph Myers <joseph@codesourcery.com>
3713
3714 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
3715 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
3716 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3717 Add 74K processor information.
3718 * config/mips/mips.md: Include 74k.md.
3719 (cpu): Add 74kc,74kf,74kx.
3720 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
3721 * config/mips/74k.md: New.
3722 * doc/invoke.texi (MIPS Options): Document 74K support.
3723
3724 2007-04-16 Dorit Nuzman <dorit@il.ibm.com>
3725
3726 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
3727 vectorizable_* functions.
3728 * tree-vect-transform.c (vectorizable_call): Add check for
3729 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
3730 (vectorizable_store): likewise.
3731 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
3732 Add comments.
3733 (vectorizable_operation, vectorizable_type_demotion): Likewise.
3734 (vectorizable_type_promotion, vectorizable_load): Likewise.
3735 (vectorizable_live_operation, vectorizable_condition): Likewise.
3736 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
3737 STMT_VINFO_LIVE_P.
3738 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
3739
3740 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
3741
3742 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
3743 register numbers more.
3744 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
3745 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
3746 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
3747 FUNCTION_VALUE_REGNO_P): Likewise.
3748 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
3749 STATIC_CHAIN_REGNUM): Likewise.
3750 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
3751 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
3752 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
3753 * config/m68k/m68k.md (FP_REG): New.
3754
3755 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
3756
3757 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
3758 alignment on fido.
3759
3760 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
3761
3762 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
3763 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
3764 comment typos.
3765
3766 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
3767
3768 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
3769 cold loops.
3770
3771 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
3772
3773 PR c/31520
3774 * c-decl.c (finish_decl): Grab the type of the decl after the call
3775 to store_init_value.
3776
3777 2007-04-14 Steven Bosscher <steven@gcc.gnu.org>
3778
3779 * common.opt (fforward-propagate): Fix "Optimization" annotation.
3780
3781 2007-04-14 Jakub Jelinek <jakub@redhat.com>
3782
3783 PR c++/25874
3784 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
3785 post dominators and cleanup cfg before returning.
3786
3787 2007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
3788
3789 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
3790 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
3791
3792 2007-04-14 Kazu Hirata <kazu@codesourcery.com>
3793
3794 * config.gcc: Recognize fido.
3795 * config/m68k/m68k-devices.def (fidoa): New.
3796 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
3797 __mfido__.
3798 (FL_FIDOA, TARGET_FIDOA): New.
3799 * config/m68k/m68k.opt (mfidoa): New.
3800
3801 2007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3802
3803 PR middle-end/31322
3804 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
3805 when a personality function is used.
3806
3807 2007-04-13 Bob Wilson <bob.wilson@acm.org>
3808
3809 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
3810
3811 2007-04-13 Mike Stump <mrs@apple.com>
3812
3813 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
3814 we can...
3815 * config/darwin.opt (fapple-kext): Make C++ only.
3816 * config/darwin.c (darwin_override_options): Remove code to ensure
3817 -fapple-kext is given for C++ only.
3818
3819 2007-04-13 Richard Sandiford <richard@codesourcery.com>
3820
3821 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
3822 * config/mips/mips.c (override_options): Call
3823 SUBTARGET_OVERRIDE_OPTIONS, if defined.
3824
3825 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
3826
3827 * config/i386/i386.opt (msvr3-shlib): Removed.
3828
3829 * doc/invoke.texi: Remove -msvr3-shlib.
3830
3831 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
3832
3833 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
3834 with "popcnt" instruction.
3835
3836 2007-04-13 Richard Guenther <rguenther@suse.de>
3837
3838 PR tree-optimization/21258
3839 * tree-vrp.c (compare_case_labels): New helper.
3840 (find_switch_asserts): New function.
3841 (find_assert_locations): Call it for SWITCH_EXPRs.
3842
3843 2007-04-13 Uros Bizjak <ubizjak@gmail.com>
3844
3845 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
3846 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
3847 check is now implied in X87_FLOAT_MODE_P.
3848 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
3849 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
3850 (fix_trunc<mode>_i386_fisttp): Ditto.
3851 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
3852 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
3853 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
3854 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
3855 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
3856 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
3857 (unnamed_splitters): Ditto.
3858 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
3859 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
3860 FIRST_SSE_REG for local functions when SSE math is enabled or
3861 for functions with sseregparm attribute.
3862 (standard_80387_constant_p): Return -1 if mode is not
3863 X87_FLOAT_MODE_P.
3864 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
3865 (ix86_expand_compare): Ditto.
3866 (ix86_expand_carry_flag_compare): Ditto.
3867 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
3868 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
3869 DECIMAL_FLOAT_MODE_P.
3870 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
3871 of SCALAR_FLOAT_MODE_P.
3872 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
3873 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
3874 checks before FLOAT_MODE_P.
3875 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
3876 before FLOAT_MODE_P.
3877 [DIV]: Ditto.
3878 [NEG]: Ditto.
3879 [ABS]: Ditto.
3880 [SQRT]: Ditto.
3881 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
3882
3883 2007-04-12 Paolo Bonzini <bonzini@gnu.org>
3884 Charles Wilson <libtool@cwilson.fastmail.fm>
3885
3886 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
3887 (libgcc.mvars): Don't depend on them.
3888 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
3889 * exec-tool.in: New.
3890
3891 2007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
3892
3893 * doc/invoke.text (--help): Document --help=common.
3894
3895 2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
3896
3897 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
3898
3899 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3900
3901 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
3902 * genemit.c (main): Emit #include "integrate.h".
3903 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
3904 (LOADGP_RTP): New mips_loadgp_style.
3905 * config/mips/mips.h: Include config/vxworks-dummy.h.
3906 (TARGET_RTP_PIC): New macro.
3907 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
3908 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
3909 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
3910 for TARGET_RTP_PIC.
3911 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
3912 -mvxworks-pic when using -mrtp and a PIC option.
3913 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
3914 for RTP PIC.
3915 (mips_symbolic_constant_p, mips_symbolic_address_p)
3916 (mips_symbol_insns): Handle SYMBOL_HALF.
3917 (override_options): Warn about -G and -mrtp being used together.
3918 Initialize mips_lo_relocs[SYMBOL_HALF].
3919 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
3920 (mips_emit_loadgp): Handle LOADGP_RTP.
3921 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
3922 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
3923 (tablejump): Handle function-relative case table entries if
3924 TARGET_RTP_PIC.
3925 * config/mips/predicates.md (symbol_ref_operand): New predicate.
3926
3927 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3928
3929 * config/mips/mips.md (load_call<mode>): Allow any general register.
3930 destination.
3931 (sibcall_value_internal, sibcall_value_multiple_internal)
3932 (call_value_internal, call_value_split, call_value_multiple_internal)
3933 (call_value_multiple_split): Remove constraints from operand 0.
3934
3935 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3936
3937 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
3938 rather than loadgp_noshared.
3939 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
3940 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
3941 gen_loadgp.
3942 * config/mips/mips.md (loadgp): Rename to...
3943 (loadgp_newabi): ...this.
3944 (loadgp_noshared): Rename to...
3945 (loadgp_absolute): ...this.
3946
3947 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3948
3949 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
3950 false for locally-binding symbols.
3951 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
3952
3953 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3954
3955 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
3956 (SYMBOL_GOT_PAGE_OFST): ...this.
3957 (SYMBOL_GOT_GLOBAL): Rename to...
3958 (SYMBOL_GOT_DISP): ...this.
3959 (SYMBOL_GOTOFF_GLOBAL): Rename to...
3960 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
3961 * config/mips/mips.c (mips_global_symbol_p): New function.
3962 (mips_symbol_binds_local_p): Likewise.
3963 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
3964 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use mips_global_symbol_p
3965 and mips_symbol_binds_local_p.
3966 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
3967 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
3968 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
3969 SYMBOL_GOTOFF_DISP.
3970 (mips_ok_for_lazy_binding_p): New function.
3971 (mips_load_call_address, mips_expand_call): Use it.
3972 (mips_dangerous_for_la25_p): Likewise.
3973 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
3974 (*got_disp<mode>): Use got_disp_operand instead of
3975 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
3976 SYMBOL_GOTOFF_GLOBAL.
3977 (*got_page<mode>): Use got_page_ofst_operand instead of
3978 local_got_operand.
3979 * config/mips/predicates.md (const_call_insn_operand): Use
3980 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
3981 (global_got_operand): Rename to...
3982 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
3983 SYMBOL_GOT_GLOBAL.
3984 (local_got_operand): Rename to...
3985 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
3986 of SYMBOL_GOT_LOCAL.
3987
3988 2007-04-12 Richard Sandiford <richard@codesourcery.com>
3989
3990 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
3991 TARGET_CALL_CLOBBERED_GP.
3992 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3993 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
3994 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
3995 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
3996 of TARGET_ABICALLS && !TARGET_NEWABI.
3997 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3998 * config/mips/mips.c (mips_load_call_address): Check
3999 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
4000 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
4001 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
4002 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
4003 TARGET_ABICALLS && TARGET_NEWABI.
4004 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
4005 TARGET_ABICALLS.
4006 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
4007 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
4008 TARGET_ABICALLS && TARGET_NEWABI.
4009 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
4010 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
4011 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
4012 whether indirect calls must use $25.
4013 (mips_extra_live_on_entry): Check TARGET_GOT instead of
4014 TARGET_ABICALLS.
4015 * config/mips/mips.md (jal_macro): Check flag_pic and
4016 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
4017 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
4018 instead of TARGET_ABICALLS.
4019 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
4020 TARGET_ABICALLS && TARGET_OLDABI.
4021 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
4022 (sibcall): In the comment above the define_insn, mention
4023 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
4024 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
4025 instead of TARGET_ABICALLS.
4026
4027 2007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
4028
4029 * doc/md.texi (Blackfin family constraints): Document PA and PB.
4030 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
4031 (MACFLAGS_MATCH_P): New macro.
4032 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
4033 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
4034 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
4035 the other MACFLAG constants.
4036 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
4037 (flag_machi): Tighten constraints. Renumber some of the operands.
4038 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
4039 output template.
4040 (flag_machi_parts_acconly): New pattern.
4041 (flag_macinithi): Tighten constraints. Allow any accumulator to be
4042 used.
4043 (flag_macinit1hi): Tighten constraints.
4044 (flag_mul_macv2hi_parts_acconly): New pattern.
4045
4046 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
4047 Use a more efficient implementation.
4048 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
4049 inline sequences when not optimizing for size.
4050
4051 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
4052 movhi_high2low): Delete, merge functionality into...
4053 (packv2hi): ... this pattern.
4054
4055 2007-02-11 Jie Zhang <jie.zhang@analog.com>
4056 * config/bfin/bfin.opt (msim): New option.
4057 (mcpu=): New option.
4058 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
4059 (bfin_cpu_t): Typedef of enum bfin_cpu.
4060 (bfin_cpu_type): New declaration.
4061 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
4062 -msim and -mcpu= options.
4063 (LIB_SPEC): Likewise.
4064 * config/bfin/bfin.c (bfin_cpu_type): Define.
4065 (bfin_handle_option): Handle -mcpu= option.
4066 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
4067 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
4068 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
4069
4070 2007-04-12 Richard Sandiford <richard@codesourcery.com>
4071
4072 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
4073 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
4074 (powerpc-wrs-vxworksae): Use ${tm_file}.
4075 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
4076 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
4077 * config/i386/vx-common.h: New file.
4078
4079 2007-04-12 Richard Sandiford <richard@codesourcery.com>
4080
4081 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
4082 of crt0.o%s.
4083
4084 2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
4085
4086 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
4087 ldxtr.
4088
4089 2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
4090
4091 PR c++/31078
4092 PR c++/31103
4093 * c-common.c (c_build_qualified_type): Set canonical type
4094 appropriately.
4095
4096 2007-04-12 Richard Guenther <rguenther@suse.de>
4097
4098 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
4099 lower bound and element size if lower bound is not zero
4100 or either of the ARRAY_REF operands is set.
4101
4102 2007-04-12 Richard Guenther <rguenther@suse.de>
4103
4104 PR tree-optimization/24689
4105 PR tree-optimization/31307
4106 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
4107 indices by value.
4108 * gimplify.c (canonicalize_addr_expr): To be consistent with
4109 gimplify_compound_lval only set operands two and three of
4110 ARRAY_REFs if they are not gimple_min_invariant. This makes
4111 it never at this place.
4112 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
4113
4114 2007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4115
4116 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
4117 null before emitting a .nsubspa directive.
4118
4119 2007-04-11 Diego Novillo <dnovillo@redhat.com>
4120
4121 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
4122 need_to_partition_p if there are no memory statements in the
4123 function.
4124
4125 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
4126
4127 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
4128 (gcd_of_steps_may_divide_p): New function.
4129 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
4130
4131 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
4132
4133 * reload.c (find_reloads_toplev, find_reloads_address,
4134 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
4135 not a pointer equality test, to decide if we need to call
4136 push_reg_equiv_alt_mem.
4137
4138 2007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
4139
4140 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
4141 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
4142 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
4143
4144 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
4145
4146 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
4147 vector to be positive.
4148
4149 2007-04-11 Diego Novillo <dnovillo@redhat.com>
4150
4151 PR 30735
4152 PR 31090
4153 * doc/invoke.texi: Document --params max-aliased-vops and
4154 avg-aliased-vops.
4155 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
4156 debug_memory_partitions): Move to tree-flow.h
4157 * params.h (AVG_ALIASED_VOPS): Define.
4158 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
4159 users.
4160 (mp_info_t): Likewise.
4161 (get_mem_sym_stats_for): New.
4162 (set_memory_partition): Move from tree-flow-inline.h.
4163 (mark_non_addressable): Only clear the set of symbols for the
4164 partition if it exists.
4165 (dump_memory_partitions): Move from tree-ssa-operands.c
4166 (debug_memory_partitions): Likewise.
4167 (need_to_partition_p): New.
4168 (dump_mem_ref_stats): New.
4169 (debug_mem_ref_stats): New.
4170 (dump_mem_sym_stats): New.
4171 (debug_mem_sym_stats): New.
4172 (update_mem_sym_stats_from_stmt): New.
4173 (compare_mp_info_entries): New.
4174 (mp_info_cmp): Call it.
4175 (sort_mp_info): Change argument to a list of mem_sym_stats_t
4176 objects.
4177 (get_mpt_for): Move from tree-ssa-operands.c.
4178 (find_partition_for): New.
4179 (create_partition_for): Remove.
4180 (estimate_vop_reduction): New.
4181 (update_reference_counts): New.
4182 (build_mp_info): New.
4183 (compute_memory_partitions): Refactor.
4184 Document new heuristic.
4185 Call build_mp_info, update_reference_counts,
4186 find_partition_for and estimate_vop_reduction.
4187 (compute_may_aliases): Populate virtual operands before
4188 calling debugging dumps.
4189 (delete_mem_sym_stats): New.
4190 (delete_mem_ref_stats): New.
4191 (init_mem_ref_stats): New.
4192 (init_alias_info): Call it.
4193 (maybe_create_global_var): Remove alias_info argument.
4194 Get number of call sites and number of pure/const call sites
4195 from gimple_mem_ref_stats().
4196 (dump_alias_info): Call dump_memory_partitions first.
4197 (dump_points_to_info_for): Show how many times a pointer has
4198 been dereferenced.
4199 * opts.c (decode_options): For -O2 set --param
4200 max-aliased-vops to 500.
4201 For -O3 set --param max-aliased-vops to 1000 and --param
4202 avg-aliased-vops to 3.
4203 * fortran/options.c (gfc_init_options): Remove assignment to
4204 MAX_ALIASED_VOPS.
4205 * tree-flow-inline.h (gimple_mem_ref_stats): New.
4206 * tree-dfa.c (dump_variable): Dump memory reference
4207 statistics.
4208 Dump NO_ALIAS* settings.
4209 (referenced_var_lookup): Tidy.
4210 (mem_sym_stats): New.
4211 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
4212 and ORIG are different SSA names for a memory partition.
4213 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
4214 * tree-flow.h (struct mem_sym_stats_d): Define.
4215 (mem_sym_stats_t): Define.
4216 (struct mem_ref_stats_d): Define.
4217 (struct gimple_df): Add field mem_ref_stats.
4218 (enum noalias_state): Define.
4219 (struct var_ann_d): Add bitfield noalias_state.
4220 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
4221 debug_mem_ref_stats, debug_memory_partitions,
4222 debug_mem_sym_stats): Declare.
4223 * tree-ssa-structalias.c (update_alias_info): Update call
4224 sites, pure/const call sites and asm sites in structure
4225 returned by gimple_mem_ref_stats.
4226 Remove local variable IS_POTENTIAL_DEREF.
4227 Increase NUM_DEREFS if the memory expression is a potential
4228 dereference.
4229 Call update_mem_sym_stats_from_stmt.
4230 If the memory references memory, call
4231 update_mem_sym_stats_from_stmt for all the direct memory
4232 symbol references found.
4233 (intra_create_variable_infos): Set noalias_state field for
4234 pointer arguments according to the value of
4235 flag_argument_noalias.
4236 * tree-ssa-structalias.h (struct alias_info): Remove fields
4237 num_calls_found and num_pure_const_calls_found.
4238 (update_mem_sym_stats_from_stmt): Declare.
4239 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
4240 Set default value to 100.
4241 (PARAM_AVG_ALIASED_VOPS): Define.
4242
4243 2007-04-11 Richard Guenther <rguenther@suse.de>
4244
4245 PR middle-end/31530
4246 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
4247 a * -b + c as c - a * b if we honor sign dependent rounding.
4248
4249 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
4250
4251 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
4252 bfin_expand_strmov.
4253 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
4254 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
4255 variables.
4256 (initialize_trampoline): Don't use old-style function definition.
4257 (bfin_secondary_reload): Mark IN_P argument as unused.
4258
4259 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
4260
4261 PR tree-optimization/31343
4262 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
4263 (build_polynomial_chrec): Return a scalar when the evolution is zero.
4264 * testsuite/gcc.dg/vect/pr31343.c: New.
4265
4266 2007-04-10 Eric Christopher <echristo@apple.com>
4267
4268 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
4269 * config/i386/i386.md (*cmpfp0): Use.
4270 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
4271 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
4272 (fix_trunc<mode>_i386_fisttp): Ditto.
4273 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
4274 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
4275 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
4276 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
4277 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
4278 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
4279 (unnamed_splitters): Ditto.
4280 * config/i386/i386.c (output_fix_trunc): Assert that
4281 we're not being passed a TFmode operand.
4282
4283 2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
4284
4285 PR tree-optimization/31526
4286 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
4287 n_basic_blocks to find newly added blocks.
4288
4289 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
4290
4291 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
4292 alternative.
4293 (fix_trunc<mode>si_sse): Ditto.
4294 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
4295 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
4296 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
4297 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
4298 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
4299 expander using SSEMODEF mode macro.
4300 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
4301 expander using SSEMODEF mode macro.
4302 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
4303 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
4304 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
4305 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
4306 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
4307 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
4308 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
4309 Macroize insn using X87MODEF mode macro.
4310
4311 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
4312
4313 * config/i386/sse.md (sse2_pinsrw): Removed.
4314 (sse2_pextrw): Renamed to ...
4315 (*sse2_pextrw): This.
4316
4317 2007-04-09 Jan Hubicka <jh@suse.cz>
4318
4319 PR target/27869
4320 * config/i386/sse.md
4321 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
4322 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
4323 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
4324 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
4325
4326 2007-04-09 Jan Hubicka <jh@suse.cz>
4327
4328 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
4329 multiple fields of union.
4330
4331 2007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
4332
4333 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
4334 (create_preheaders): Check that loops are available.
4335 (fix_loop_structure): Clean up, improve comments.
4336 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
4337 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
4338 state flags.
4339 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
4340 * predict.c (tree_estimate_probability): Do not call
4341 calculate_dominance_info. Call create_preheaders.
4342 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
4343 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
4344 flags.
4345 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
4346 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
4347 * tree-cfg.c (tree_split_edge): Make an assert more precise.
4348 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
4349 arguments.
4350
4351 2007-04-08 Jan Hubicka <jh@suse.cz>
4352
4353 * tree.h (maybe_fold_offset_to_component_ref): Declare.
4354 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
4355 * fold-const.c (fold_unary): Use it.
4356
4357 2007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
4358
4359 * varasm.c (assemble_variable): Remove call to
4360 lang_hooks.decls.prepare_assemble_variable.
4361 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
4362 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
4363 * langhooks.h (lang_hooks_for_decls): Remove
4364 prepare_assemble_variable.
4365
4366 2007-04-08 Mike Stump <mrs@apple.com>
4367
4368 * config/i386/i386.c: Use inc/dec on Core2.
4369
4370 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
4371
4372 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
4373 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
4374 lhd_tree_inlining_end_inlining): Remove.
4375 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
4376 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
4377 end_inlining hooks.
4378 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
4379 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
4380 lhd_tree_inlining_end_inlining): Remove prototypes.
4381 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
4382 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
4383 LANG_HOOKS_TREE_INLINING_START_INLINING,
4384 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
4385
4386 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
4387 not set it.
4388
4389 2007-04-08 Anatoly Sokolov <aesok@post.ru>
4390
4391 PR target/29932
4392 * config/avr/predicates.md (io_address_operand): Delete predicate.
4393 (low_io_address_operand): Don't use 'mode' argument.
4394 (higth_io_address_operand): Rename ...
4395 (high_io_address_operand): ... to this. Don't use 'mode' argument.
4396 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
4397 for above change.
4398
4399 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
4400
4401 Revert change removing staticp.
4402
4403 2007-04-07 Anatoly Sokolov <aesok@post.ru>
4404
4405 PR target/30289
4406 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
4407 earlyclobber.
4408
4409 2007-04-07 Bruce Korb <bkorb@gnu.org>
4410
4411 * c.opt: Add -Wformat-contains-nul.
4412 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
4413 -Wformat setting.
4414 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
4415 the NUL byte warning.
4416
4417 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
4418
4419 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
4420
4421 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
4422
4423 * tree.c (staticp): No longer use staticp langhook.
4424 * langhooks.c (lhd_staticp): Removed.
4425 * langhooks.h (struct lang_hooks): Remove staticp.
4426 * c-common.c (c_staticp): Remove.
4427 * c-common.h (c_staticp): Ditto.
4428 * langhooks-defs.h (lhd_staticp): Ditto.
4429 (LHD_HOOKS_STATICP): Ditto
4430 * tree.h (gcc_assert_lowered): New macro.
4431
4432 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
4433
4434 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
4435 argument "reliable".
4436 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
4437 Add argument "reliable". Propagate it through calls.
4438 (infer_loop_bounds_from_undefined): Derive number of iterations
4439 estimates from references in blocks that do not dominate loop latch.
4440 (gcov_type_to_double_int): New function.
4441 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
4442 and expected_loop_iterations_unbounded.
4443 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
4444 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
4445 * tree-data-ref.c (estimated_loop_iterations): Export.
4446 (get_references_in_stmt): Fix -- do not return addresses of local
4447 objects.
4448 * cfgloop.h (expected_loop_iterations_unbounded,
4449 estimated_loop_iterations): Declare.
4450
4451 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
4452
4453 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
4454
4455 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
4456
4457 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
4458 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
4459 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
4460 Use output_387_reg_move().
4461 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
4462 expander using X87MODEF12 mode macro.
4463 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
4464 choosing register preferences. Use output_387_reg_move().
4465 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
4466 instead of "x". Use output_387_reg_move().
4467 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
4468 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
4469 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
4470 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
4471 Use output_387_reg_move().
4472 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
4473 mode macro.
4474 (*truncxf?f_i387 splitter): Ditto.
4475
4476 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
4477
4478 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
4479 LANG_HOOKS_SAFE_FROM_P.
4480 * expr.c (safe_from_p): Remove langhook call.
4481 * langhooks.h (lang_hooks): Remove safe_from_p.
4482 (lhd_safe_from_p): Remove prototype.
4483 * langhooks.c (lhd_safe_from_p): Remove.
4484
4485 2007-04-06 Jan Hubicka <jh@suse.cz>
4486
4487 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
4488 functions.
4489
4490 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
4491
4492 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
4493 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
4494 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
4495 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
4496 alternative.
4497 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
4498 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
4499
4500 2007-04-05 Richard Henderson <rth@redhat.com>
4501
4502 * config/alpha/alpha.c (print_operand) [+]: Remove.
4503 (alpha_end_function): Print nop if call at end of function.
4504 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
4505 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
4506 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
4507 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
4508 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
4509 the call pattern. Update peepholes to match.
4510
4511 2007-04-05 Janis Johnson <janis187@us.ibm.com>
4512
4513 * doc/extend.texi (Other Builtins): Add decimal float variants
4514 of signbit.
4515 * builtins.def: Ditto.
4516 * builtins.c (expand_builtin): Ditto.
4517
4518 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
4519 H.J. Lu <hongjiu.lu@intel.com>
4520
4521 PR target/31478
4522 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
4523 of V8HImode when calling ix86_binary_operator_ok.
4524 (sse2_pmaddwd): Call ix86_binary_operator_ok.
4525 (sdot_prodv8hi): Operands 1 and 2 must be register.
4526
4527 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
4528
4529 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
4530 initialize align to silence bogus warning.
4531
4532 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
4533
4534 PR middle-end/22156
4535 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
4536 all_no_warning.
4537 (struct sra_walk_fns): Remove use_all parameter from use.
4538 (sra_hash_tree): Handle BIT_FIELD_REFs.
4539 (sra_elt_hash): Don't hash bitfld blocks.
4540 (sra_elt_eq): Skip them in parent compares as well. Handle
4541 BIT_FIELD_REFs.
4542 (sra_walk_expr): Don't maintain or pass down use_all_p.
4543 (scan_use): Remove use_all parameter.
4544 (scalarize_use): Likewise. Re-expand assignment to
4545 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
4546 output, and re-scalarize after output. Don't mark anything
4547 for no warning.
4548 (scalarize_ldst): Adjust.
4549 (scalarize_walk_gimple_modify_statement): Likewise.
4550 (build_element_name_1): Handle BIT_FIELD_REFs.
4551 (instantiate_element): Don't warn for any element whose parent
4552 is used as a whole.
4553 (instantiate_missing_elements_1): Return the sra_elt.
4554 (canon_type_for_field): New.
4555 (try_instantiate_multiple_fields): New.
4556 (instantiate_missing_elemnts): Use them.
4557 (mark_no_warning): Removed.
4558 (generate_one_element_ref): Handle BIT_FIELD_REFs.
4559 (REPLDUP, sra_build_elt_assignment): New.
4560 (generate_copy_inout): Use them.
4561 (generate_element_copy): Likewise. Handle bitfld differences.
4562 (generate_element_zero): Don't recurse for blocks. Use
4563 sra_build_elt_assignment.
4564 (generate_one_element_int): Take elt instead of var. Use
4565 sra_build_elt_assignment.
4566 (generate_element_init_1): Adjust.
4567 (scalarize_use, scalarize_copy): Use REPLDUP.
4568 (scalarize_ldst): Move assert before dereference.
4569 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
4570
4571 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
4572
4573 * regmove.c: Fix unused variable warnings due to previous commit.
4574
4575 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
4576
4577 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
4578 (regmove_bb_head): Remove.
4579 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
4580 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
4581 problems with fixup_match_1.
4582 Don't initialize/free regmove_bb_head.
4583
4584 (reg_is_remote_constant_p): If an insn is in the same basic block
4585 but not before INSN, consider it remote, too.
4586
4587 2007-04-05 Anatoly Sokolov <aesok@post.ru>
4588
4589 PR target/25448
4590 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
4591 DECL_ASSEMBLER_NAME, not the DECL_NAME.
4592
4593 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
4594
4595 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
4596 (CONDITIONAL_REGISTER_USAGE): Likewise.
4597
4598 2007-04-04 Richard Henderson <rth@redhat.com>
4599
4600 * config/alpha/lib1funcs.asm: Remove unused file.
4601
4602 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
4603
4604 PR other/31356
4605 * opts.c (print_specific_help): Fix --help=<language>
4606 header line.
4607 (common_handle_option): Support --help=common.
4608
4609 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
4610
4611 PR other/31353
4612 * gcc.c (main): Do not run the linker if
4613 print_subprocess_help indicates that it shouldn't be
4614 run.
4615
4616 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
4617
4618 PR doc/31355
4619 * doc/invoke.texi (--help=): Document <languages> value, fix
4620 formatting in tables of values.
4621
4622 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
4623
4624 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
4625 dllimport attribute of virtual methods.
4626
4627 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
4628
4629 * config/score/crti.asm: Change _bss_start to __bss_start.
4630 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
4631 (OUTGOING_REG_PARM_STACK_SPACE) update.
4632 * config/score/score.opt: add options to make backend support
4633 score5, score5u, score7 and score7d.
4634 * config/score/score.md: Likewise.
4635 * config/score/misc.md: Likewise.
4636 * config/score/mac.md: Likewise.
4637 * doc/invoke.texi: Likewise.
4638 * doc/md.texi: update constraints define.
4639
4640 2007-04-03 Richard Henderson <rth@redhat.com>
4641
4642 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
4643 an appropriate type, use the mode instead.
4644
4645 2007-04-03 Richard Sandiford <richard@codesourcery.com>
4646
4647 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
4648 Set the default --with-arch setting to mips2.
4649 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
4650 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
4651 (MULTILIB_OSDIRNAMES): Delete.
4652 (MULTILIB_DIRNAMES): Define.
4653 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
4654 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
4655 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
4656 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
4657 VXWORKS_OS_CPP_BUILTINS.
4658 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
4659 (MIPS_DEBUGGING_INFO): Undefine.
4660 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
4661
4662 2007-04-03 Jakub Jelinek <jakub@redhat.com>
4663
4664 PR middle-end/30704
4665 * fold-const.c (native_encode_real): Encode real.c provided longs
4666 as a series of 32-bit native integers.
4667 (native_interpret_real): Interpret buffer as a series of 32-bit
4668 native integers.
4669
4670 2007-04-03 Richard Guenther <rguenther@suse.de>
4671
4672 * genpreds.c (write_insn_constraint_len): Write function
4673 optimized for CONSTRAINT_LEN implementation.
4674 (write_tm_preds_h): Output insn_constraint_len inline and
4675 use it for CONSTRAINT_LEN.
4676 (write_insn_preds_c): Don't output insn_constraint_len.
4677 * doc/md.texi (define_register_constraint): Document multi-letter
4678 constraints shall have the same length if they start with the same
4679 letter.
4680
4681 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
4682
4683 PR target/31175
4684 * config/i386/i386.md (isinf<mode>2): Expand only when
4685 TARGET_C99_FUNCTIONS is set.
4686
4687 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
4688
4689 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
4690 (x86_64-*-linux*): Ditto.
4691 * config/i386/i386.opt (mpc): New option.
4692 * config/i386/i386.c (overrride_options): Handle
4693 ix87_precision_string.
4694 * config/i386/crtprec.c: New file.
4695 * config/i386/t-crtpc: Ditto.
4696 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
4697 and -mpc80 options.
4698 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
4699 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
4700 crtprec32.o, crtprec64.o and crtprec80.o.
4701
4702 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
4703 and -mpc80 options.
4704 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
4705
4706 2007-04-02 Eric Christopher <echristo@apple.com>
4707
4708 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
4709 limitations on darwin.
4710
4711 2007-04-02 Anatoly Sokolov <aesok@post.ru>
4712
4713 PR target/31137
4714 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
4715
4716 2007-04-02 Dave Korn <dave.korn@artimi.com>
4717
4718 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
4719
4720 2007-04-02 Dave Korn <dave.korn@artimi.com>
4721
4722 * libgcc2.h (exception_descriptor): Don't forward-declare.
4723 (__get_eh_table_language, __get_eh_table_version): Delete
4724 prototypes of long-dead functions.
4725
4726 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
4727
4728 * ebitmap.h: New file
4729 * ebitmap.c: New file
4730 * Makefile.in (ebitmap.o): New target.
4731
4732 2007-04-01 Jan Hubicka <jh@suse.cz>
4733
4734 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
4735 before very first instruction.
4736
4737 2007-04-01 Jan Hubicka <jh@suse.cz>
4738
4739 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
4740 waring on 64bit hosts.
4741 * bitmap.h: Fix typo in bitmap_head_def.
4742
4743 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
4744
4745 PR rtl-optimization/31391
4746 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
4747 into a DELETED_LABEL note, and the label is in an empty basic
4748 block, update BB_END as well as BB_HEAD.
4749
4750 2007-04-01 Richard Henderson <rth@redhat.com>
4751
4752 PR tree-optimization/31169
4753 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
4754 to varying if the range is outside [0, prec-1].
4755
4756 2007-04-01 Richard Sandiford <richard@codesourcery.com>
4757
4758 PR target/31388
4759 * config/mips/mips.md (load_const_gp): New insn.
4760 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
4761 the MIPS16 GP pseudo register if no_new_pseudos.
4762 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
4763
4764 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
4765
4766 PR target/31364
4767 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
4768 secureplt.
4769 (call_value): Likewise.
4770
4771 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
4772 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4773
4774 PR 14737
4775 * doc/invoke.texi: (optimization options): Reword description
4776 of -ffast-math. Document its primary purpose.
4777
4778 2007-03-31 Richard Guenther <rguenther@suse.de>
4779
4780 * omp-low.c (splay-tree.h): Include.
4781 (lookup_decl): Replace splay-tree usage by pointer-map.
4782 (maybe_lookup_decl): Likewise.
4783 (new_omp_context): Likewise.
4784 (delete_omp_context): Likewise.
4785 * gimplify.c (splay-tree.h): Include.
4786 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
4787 pointer-map.
4788 (remap_ssa_name): Likewise.
4789 (remap_decl): Likewise.
4790 (remap_type_1): Likewise.
4791 (remap_type): Likewise.
4792 (copy_body_r): Likewise.
4793 (expand_call_inline): Likewise.
4794 (clone_body): Likewise.
4795 (copy_tree_r): Likewise.
4796 (remap_save_expr): Likewise.
4797 (unsave_r): Likewise.
4798 (unsave_expr_now): Likewise.
4799 (tree_function_versioning): Likewise.
4800 (build_duplicate_type): Likewise.
4801 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
4802 (struct copy_body_data): Replace splay-tree by pointer-map.
4803 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
4804 not $(SPLAY_TREE_H).
4805 (gimplify.o): Depend on $(SPLAY_TREE_H).
4806 (omp-low.p): Likewise.
4807
4808 2007-03-31 Anatoly Sokolov <aesok@post.ru>
4809
4810 * config/avr/predicates.md (even_register_operand,
4811 odd_register_operand): New predicates.
4812 * config/avr/avr.md (movw peephole2): New.
4813 (movw_r peephole2): New.
4814
4815 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
4816
4817 * tree.h (get_signed_or_unsigned_type): New.
4818 * fold-const.c (operand_equal_for_comparison_p): Use
4819 get_signed_or_unsigned_type instead of
4820 lang_hooks.types.signed_or_unsigned_type.
4821 * expr.c (store_expr): Ditto.
4822 * langhooks.c (get_signed_or_unsigned_type): New.
4823 (lhd_signed_or_unsigned_type): New.
4824 * langhooks.h (lhd_signed_or_unsigned_type): New.
4825 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
4826
4827 2007-03-30 Richard Henderson <rth@redhat.com>
4828
4829 * tree-ssa-loop-ivopts.c: Include target.h.
4830 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
4831 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
4832 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
4833 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
4834
4835 2007-03-30 Richard Henderson <rth@redhat.com>
4836 Kai Tietz <kai.tietz@onevision.com>
4837
4838 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
4839 default for 64-bit.
4840 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
4841 (TARGET_64BIT_MS_ABI): New.
4842 (DBX_REGISTER_NUMBER): Handle 64-bit.
4843 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
4844 (LONG_TYPE_SIZE): Force to 32.
4845 (REG_PARM_STACK_SPACE): New.
4846 (OUTGOING_REG_PARM_STACK_SPACE): New.
4847 (REGPARM_MAX, SSE_REGPARM_MAX): New.
4848 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
4849 (STACK_BOUNDARY): Use 128 for 64-bit.
4850 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
4851 Add 64-bit implementation.
4852 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
4853 argument unused.
4854 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
4855 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
4856 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
4857 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
4858 (ix86_handle_cconv_attribute): Don't warn when ignoring if
4859 TARGET_64BIT_MS_ABI.
4860 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
4861 (ix86_pass_by_reference): Likewise.
4862 (ix86_function_value_regno_p): Likewise.
4863 (ix86_build_builtin_va_list): Likewise.
4864 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
4865 (function_arg_advance_ms_64): New.
4866 (function_arg_advance): Call it.
4867 (function_arg_ms_64): New.
4868 (function_arg): Call it.
4869 (function_value_ms_64): New.
4870 (ix86_function_value_1): Call it.
4871 (return_in_memory_ms_64): New.
4872 (ix86_return_in_memory): Call it.
4873 (setup_incoming_varargs_ms_64): New.
4874 (ix86_setup_incoming_varargs): Call it.
4875 (ix86_expand_prologue): Handle 64-bit stack probing.
4876 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
4877 (output_pic_addr_const): Likewise.
4878 (x86_this_parameter): Likewise.
4879 (x86_output_mi_thunk): Likewise.
4880 (x86_function_profiler): Likewise.
4881 (TARGET_STRICT_ARGUMENT_NAMING): New.
4882 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
4883 (TARGET_64BIT_MS_ABI): New.
4884 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
4885 * config/i386/i386.md (allocate_stack_worker): Remove.
4886 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
4887 describe the clobber of eax without a match_scratch.
4888 (allocate_stack_worker_postreload): Remove.
4889 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
4890 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
4891 (allocate_stack_worker_rex64_postreload): Remove.
4892 (allocate_stack): Handle 64-bit.
4893 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
4894 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
4895 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
4896 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
4897 (STANDARD_STARTFILE_PREFIX_1): Likewise.
4898 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
4899 * config.build (x86_64-*-mingw*): New host.
4900 * config.host (x86_64-*-mingw*): New host.
4901 * config.gcc (x86_64-*-mingw*): New target.
4902 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
4903
4904 2007-03-30 Richard Henderson <rth@redhat.com>
4905 Kai Tietz <kai.tietz@onevision.com>
4906
4907 * c-pragma.c (struct def_pragma_macro_value): New.
4908 (struct def_pragma_macro): New.
4909 (pushed_macro_table): New.
4910 (dpm_hash, dpm_eq): New.
4911 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
4912 (init_pragma): Install them.
4913 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
4914
4915 2007-03-30 Anatoly Sokolov <aesok@post.ru>
4916
4917 * config/avr/avr.c (avr_override_options): Clear
4918 'flag_delete_null_pointer_checks'.
4919
4920 2007-03-30 Paolo Carlini <pcarlini@suse.de>
4921
4922 PR c++/26099
4923 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
4924 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
4925 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
4926 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
4927 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
4928 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
4929 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
4930 C++ extensions.
4931 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
4932
4933 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
4934
4935 * regmove.c: Move all of pass_stack_adjustments from here...
4936 * combine-stack-adj.c: ...to this new file.
4937 * Makefile.in: Add rules for combine-stack-adj.o.
4938
4939 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
4940
4941 PR tree-optimization/31383
4942 * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
4943 to have the same length.
4944
4945 2007-03-30 Jan Hubicka <jh@suse.cz>
4946
4947 PR middle-end/30700
4948 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
4949 availablility; add more sanity checking; ask varpool only about
4950 VAR_DECL.
4951
4952 2007-03-29 Richard Henderson <rth@redhat.com>
4953
4954 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
4955 to decide, but __SIZEOF_LONG_LONG__.
4956
4957 2007-03-29 Richard Henderson <rth@redhat.com>
4958
4959 * emutls.c (struct __emutls_array): New.
4960 (emutls_destroy): Use it instead of casting element 0 from void*.
4961 (__emutls_get_address): Likewise.
4962
4963 2007-03-29 Richard Henderson <rth@redhat.com>
4964
4965 * varasm.c (initializer_constant_valid_p): Don't deny
4966 DECL_DLLIMPORT_P on functions.
4967
4968 * config/i386/cygming.h: Remove function declarations.
4969 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
4970 (ASM_OUTPUT_LABELREF): Remove.
4971 (COMMON_ASM_OP): Remove.
4972 (ASM_OUTPUT_COMMON): Remove.
4973 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4974 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
4975 (ASM_DECLARE_FUNCTION_NAME): Likewise.
4976 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
4977 Rename from TARGET_ENCODE_SECTION_INFO.
4978 * config/i386/netware.h: Likewise.
4979 * config/i386/i386-protos.h: Update.
4980 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
4981 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
4982 (legitimate_constant_p): Reject dllimports.
4983 (dllimport_map, get_dllimport_decl): New.
4984 (legitimize_dllimport_symbol): New.
4985 (legitimize_address, ix86_expand_move): Use it.
4986 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
4987 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
4988 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
4989 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
4990 * config/i386/predicates.md (constant_call_address_operand): Only
4991 accept symbols; reject dllimport_p symbols.
4992 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
4993 i386_pe_maybe_record_exported_symbol.
4994 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
4995 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
4996 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
4997 trust the setting of DECL_DLLIMPORT_P.
4998 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
4999 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
5000 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
5001 tidy the argument scanning loop.
5002 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
5003 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
5004 (i386_pe_strip_name_encoding): Remove.
5005 (i386_pe_binds_local_p): New.
5006 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
5007 (i386_pe_output_labelref): Remove.
5008 (i386_pe_asm_output_aligned_decl_common): New.
5009 (i386_pe_maybe_record_exported_symbol): Rename from
5010 i386_pe_record_exported_symbol; check for dllexported symbols.
5011
5012 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
5013
5014 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
5015 add comment explaining why vsnprintf cannot be used.
5016
5017 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
5018
5019 PR tree-optimization/30666
5020 * tree.c (build_complex_type): When creating type names for DWARF2
5021 debug info, create TYPE_DECLs for TYPE_NAME instead of
5022 IDENTIFIER_NODEs.
5023 (build_common_tree_nodes_2): Use build_complex_type when building
5024 predefined complex types, to preserve canonical types.
5025
5026 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
5027
5028 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
5029 (noce_get_alt_condition): Look at it to determine whether to
5030 reverse the condition or not.
5031 (noce_get_condition): Substitute the truth for lies.
5032 (noce_find_if_block): Set the then_else_reversed field.
5033
5034 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
5035
5036 * config/fr30/fr30.md (movdi): Do not accept immediates as the
5037 destination of this insn.
5038 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
5039 than calling gen_rtx_SET directly. Use r0 to hold the value of
5040 'address + 4' rather than a stack based temporary which can be
5041 mis-optimized away.
5042
5043 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
5044
5045 * config/s390/s390.c (s390_secondary_input_reload_class,
5046 s390_secondary_output_reload_class): Functions removed.
5047 (s390_secondary_reload): New function.
5048 (TARGET_SECONDARY_RELOAD): Target macro defined.
5049 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
5050 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
5051 * config/s390/s390.md ("reload_outti", "reload_outdi",
5052 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
5053 "reload_out<mode>"): Expanders removed.
5054 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
5055 "reload<mode>_nonoffmem_out"): Expanders added.
5056
5057 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
5058
5059 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
5060 SRC->DEST replacement failed anyway.
5061
5062 2007-03-28 Mike Stump <mrs@apple.com>
5063
5064 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
5065 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
5066 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
5067
5068 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5069
5070 * config.gcc: Accept barcelona as a variant of amdfam10.
5071 * config/i386/i386.c (override_options): Likewise.
5072 * doc/invoke.texi: Likewise.
5073
5074 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
5075
5076 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
5077 offsets for BIT_FIELD_REF and COMPONENT_REF.
5078
5079 2007-03-28 Richard Guenther <rguenther@suse.de>
5080
5081 * tree.c (is_global_var): Move ...
5082 * tree-flow-inline.h (is_global_var): ... here.
5083 * tree.h (is_global_var): Remove declaration.
5084
5085 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
5086
5087 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
5088 option.
5089 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
5090 * config/i386/i386.c (ix86_tune_features): Initialize new
5091 tuning option.
5092 * config/i386/predicates.md (promotable_binary_operator): Use
5093 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
5094
5095 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
5096
5097 PR target/31380
5098 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
5099
5100 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
5101
5102 * config/fr30/fr30.md (movsi_internal): Change destination
5103 constraint from m to V and add m to the end.
5104
5105 2007-03-28 Christian Bruel <christian.bruel@st.com>
5106
5107 * config/sh/sh.md (movsi_i): Fix type attribute.
5108
5109 2007-03-28 Christian Bruel <christian.bruel@st.com>
5110
5111 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
5112 (movsf_ie): Likewise.
5113
5114 2007-03-28 Christian Bruel <christian.bruel@st.com>
5115
5116 * config.gcc: Add sh4-300 to multilib.
5117 * config/sh/t-mlib-sh4-300: New file.
5118
5119 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
5120
5121 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
5122 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
5123 fix_trunc<mode>di2.
5124 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
5125 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
5126 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
5127 "fixuns_trunctddi2"): Whitespace fix.
5128
5129 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
5130
5131 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
5132 the definition of struct sh_args.
5133 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
5134 CALL_COOKIE_INT_REG_GET): Likewise.
5135
5136 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
5137
5138 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
5139 transformations are applied successfully.
5140
5141 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
5142
5143 * tree.c (tree_contains_struct): Permit 512 tree codes.
5144 * tree.h (tree_contains_struct): Ditto.
5145 (MAX_TREE_CODES): Ditto.
5146 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
5147 SPARE member to store remaining padding bits.
5148
5149 2007-03-27 Anatoly Sokolov <aesok@post.ru>
5150
5151 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
5152 architecture.
5153
5154 2007-03-27 Janis Johnson <janis187@us.ibm.com>
5155
5156 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
5157 * configure: Regenerate.
5158
5159 * configure: Regenerate using the correct version of autoconf.
5160
5161 2007-03-27 Anatoly Sokolov <aesok@post.ru>
5162
5163 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
5164 pointer regs.
5165 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
5166 regs to "__SP_L__" and "__SP_H__".
5167
5168 2007-03-27 Richard Guenther <rguenther@suse.de>
5169
5170 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
5171 computations with it with a HOST_WIDE_INT variable.
5172
5173 2007-03-26 Mike Stump <mrs@apple.com>
5174
5175 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
5176 objective-c-header, objective-c++-header and objc++-cpp-output
5177 support.
5178 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
5179
5180 2007-03-26 Richard Henderson <rth@redhat.com>
5181
5182 PR target/31361
5183 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
5184 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
5185 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
5186 IX86_BUILTIN_PSRLQ128): New.
5187 (ix86_init_mmx_sse_builtins): Add them.
5188 (ix86_expand_builtin): Expand them.
5189 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
5190 operand 2 be TImode.
5191 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
5192 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
5193 _mm_srli_epi64): Mark __B const.
5194 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
5195 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
5196 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
5197 new two-vector shift builtins.
5198
5199 2007-03-26 Ian Lance Taylor <iant@google.com>
5200
5201 PR tree-optimization/31345
5202 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
5203 [+INF, +INF(OVF)] into VARYING.
5204
5205 2007-03-26 Zack Weinberg <zackw@panix.com>
5206
5207 * gengtype-parse.c: New file.
5208 * gengtype-yacc.y: Delete.
5209 * gengtype-lex.l: Don't include gengtype-yacc.h.
5210 Define YY_DECL and yyterminate appropriately for recursive
5211 descent parser. yylval is now a string out-parameter to yylex.
5212 (HWS, EOID): New shorthand.
5213 (IWORD): Add a couple more types.
5214 (yylex): Add a setup stanza. Remove the complex rules for
5215 detecting GTY'ed types and typedefs; replace with simple
5216 keyword detectors. Adjust everything for the changed
5217 definition of yylval. Ignore all pp-directives, not just #define.
5218 (yyerror): Delete.
5219 (parse_file): Rename yybegin; do not call yyparse.
5220 (yyend): New.
5221 * gengtype.c (xasprintf): Export again.
5222 (this_file): New. Use everywhere __FILE__ was being used.
5223 (get_lang_bitmap): Special case types defined in gengtype.c.
5224 (do_typedef, new_structure): Suppress definition of certain types.
5225 (new_structure): Improve diagnostics of duplicate definitions.
5226 Make sure location_s is associated with input.h.
5227 (nreverse_pairs, define_location_structures): New functions.
5228 (main): Improve tagging of kludge types. Remove old kludges
5229 for input.h types; use define_location_structures.
5230 * gengtype.h: Update prototypes. Define token codes here.
5231 * Makefile.in: Remove all references to gengtype-yacc.
5232 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
5233 and gengtype.
5234 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
5235 add GTY((skip)) to the field that's only conditionally there.
5236 * doc/install.texi: Document that Bison is no longer required
5237 unless building treelang.
5238
5239 * gengtype.c: Don't include gtyp-gen.h.
5240 (srcdir): Declare here.
5241 (base_files, lang_dir_names): Allocate dynamically.
5242 (gt_files, num_gt_files, num_lang_dirs): New globals.
5243 (measure_input_list, read_input_line, read_input_list)
5244 (set_lang_bitmap): New functions.
5245 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
5246 simplify, relying on read_input_list to set up the bitmaps.
5247 (main): Arguments are no longer unused. Check for correct number
5248 of command line arguments, set srcdir and srcdir_len, then call
5249 read_input_list, before doing anything else. No need to worry
5250 about duplicates in main loop.
5251 * configure.ac: Simplify the calculation of all_gtfiles.
5252 Put language tags in there. Don't set or substitute
5253 all_gtfiles_files_langs or all_gtfiles_files_frags.
5254 * Makefile.in: Revamp the way gengtype is invoked, now that it
5255 takes a file on its command line with a much simpler format.
5256 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
5257 (GTFILES): Remove duplicates and C source files.
5258 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
5259 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
5260 * configure: Regenerate.
5261
5262 * gengtype.h: Remove all type definitions to gengtype.c; leave
5263 only definitions of options_p, type_p, and pair_p as opaque
5264 pointers. Update prototypes.
5265 * gengtype.c: Many type definitions moved here from gengtype.h.
5266 Consolidate type definitions at the top of the file.
5267 (xvasprintf): Delete.
5268 (xasprintf): Make static.
5269 (create_nested_pointer_option): Add 'next' parameter.
5270 (create_field_all, create_field_at): New functions.
5271 (create_field): Now a thin wrapper around create_field_all.
5272 (create_optional_field): Rename create_optional_field_ and add
5273 line argument. Original name is now a macro which supplies
5274 __LINE__.
5275 (oprintf): Use vsnprintf directly.
5276 (close_output_files): Use fatal rather than perror/exit.
5277 (note_def_vec, note_def_vec_alloc): Use create_field_at.
5278 (main): Set progname. Don't use exit.
5279 * gengtype-yacc.y (struct_fields): Use create_field_at.
5280 (option, optionseqopt): Delete.
5281 (optionseq): Consolidate productions from option here so we
5282 can use the first argument to create_option.
5283
5284 * gengtype-lex.l: Distinguish unions from structures in the
5285 token type. Don't call find_structure; return the tag as a string.
5286 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
5287 Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
5288 Reorganize typedef_struct production accordingly.
5289 Use create_nested_ptr_option.
5290 * gengtype.c (create_nested_ptr_option): New function.
5291 * gengtype.h: Declare it.
5292
5293 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
5294 (string_type): Don't declare.
5295 (do_scalar_typedef): Declare.
5296 (create_scalar_type): Update prototype.
5297 * gengtype.c (string_type): Make static.
5298 (scalar_nonchar, scalar_char): New.
5299 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
5300 (resolve_typedef): Use scalar_nonchar for error recovery.
5301 (create_scalar_type): Remove name_len field. Return scalar_char
5302 or scalar_nonchar as appropriate.
5303 (adjust_field_type): Look at scalar_is_char boolean to decide whether
5304 to use string_type.
5305 (throughout): Use scalar_nonchar instead of calling create_scalar_type,
5306 whenever possible.
5307 (main): Initialize scalar_char and scalar_nonchar before calling
5308 gen_rtx_next.
5309 * gengtype-lex.l: Adjust for removal of second argument to
5310 create_scalar_type. Use yylval.s instead of yylval.t when
5311 returning SCALAR.
5312 * gengtype-yacc.y: Type of SCALAR is string. Call
5313 create_scalar_type from type:SCALAR rule. Adjust for removal of
5314 second argument to create_scalar_type.
5315
5316 * vec.h: Remove all #if IN_GENGTYPE blocks.
5317 Add comment saying that changes may require adjustments to gengtype.
5318 * gengtype.c: Don't include coretypes.h or tm.h.
5319 Add comment to inclusion of errors.h.
5320 (note_def_vec, note_def_vec_alloc): New functions.
5321 * gengtype.h: Declare new functions.
5322 * gengtype-lex.l: Don't include coretypes.h.
5323 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
5324 Delete.
5325 (update_lineno): Remove unnecessary prototype.
5326 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
5327 (VEC rule): Just return VEC_TOKEN.
5328 * gengtype-yacc.y (VEC_TOKEN): New token type.
5329 (type): Add a production for VEC(a,b).
5330 * Makefile.in: Update dependencies.
5331
5332 * gengtype-lex.l: Remove rules for parsing pointer-to-function
5333 typedefs that use the old PARAMS macro.
5334
5335 * gengtype-lex.l: Remove all rules and states relating to yacc
5336 input files.
5337 * gengtype-yacc.y: Similarly.
5338 * gengtype.c (note_yacc_type): Delete function.
5339 * gengtype.h: Update prototypes.
5340
5341 2007-03-26 Joseph Myers <joseph@codesourcery.com>
5342
5343 * tree-pretty-print.c (dump_generic_node): Report precision of
5344 unnamed integer types.
5345
5346 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
5347
5348 * ifcvt.c (noce_try_store_flag_constants): Don't check
5349 no_new_pseudos here.
5350 (noce_try_store_flag_constants): Don't check no_new_pseudos.
5351 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
5352 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5353 noce_try_sign_mask): Likewise.
5354 (if_convert): Check no_new_pseudos here.
5355
5356 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
5357 Remove prototypes.
5358 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
5359 (noce_get_condition): Handle new then_else_reversed argument.
5360 (noce_init_if_info): Remove, fold into noce_find_if_block.
5361 (noce_process_if_block): Take a struct noce_if_info as the
5362 argument. Don't set up one based on ce_if_info. Update pointer
5363 references accordingly.
5364 (cond_move_process_if_block): Likewise.
5365 (process_if_block): Removed.
5366 (find_if_block): Removed. Move functionality two new functions,
5367 noce_find_if_block and cond_exec_find_if_block.
5368 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
5369 blocks and the symmetric IF-ELSE-JOIN case.
5370 (cond_exec_find_if_block): Also new function mostly based on old
5371 find_if_block and process_if_block.
5372 (find_if_header): Replace find_if_block call with separately
5373 guarded calls to noce_find_if_block and cond_exec_find_if_block.
5374 (find_cond_trap): Update noce_get_condition call.
5375 (dead_or_predicable): Likewise.
5376
5377 2007-03-26 Jakub Jelinek <jakub@redhat.com>
5378
5379 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
5380 Remove.
5381 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
5382 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
5383 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
5384 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
5385 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
5386 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
5387 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
5388 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
5389 __builtin_ia32_psrad128 builtins.
5390
5391 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
5392
5393 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
5394 * config/i386/constraints.md
5395 (define_constraint "I"): Use IN_RANGE macro.
5396 (define_constraint "J"): Ditto.
5397 (define_constraint "K"): Ditto.
5398 (define_constraint "M"): Ditto.
5399 (define_constraint "N"): Ditto.
5400 (define_constraint "O"): Ditto.
5401 * config/i386/predicates.md
5402 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
5403 (define_predicate "const_0_to_3_operand"): Ditto.
5404 (define_predicate "const_0_to_7_operand"): Ditto.
5405 (define_predicate "const_0_to_15_operand"): Ditto.
5406 (define_predicate "const_0_to_63_operand"): Ditto.
5407 (define_predicate "const_0_to_255_operand"): Ditto.
5408 (define_predicate "const_1_to_31_operand"): Ditto.
5409 (define_predicate "const_2_to_3_operand"): Ditto.
5410 (define_predicate "const_4_to_7_operand"): Ditto.
5411
5412 2007-03-25 David Edelsohn <edelsohn@gnu.org>
5413
5414 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
5415 in SImode for save_world.
5416 * config/rs6000/altivec.md (save_world, restore_world): Convert to
5417 LR hard reg.
5418
5419 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
5420
5421 PR tree-optimization/30784
5422 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
5423 BIT_FIELD_REF.
5424
5425 2007-03-25 Revital Eres <eres@il.ibm.com>
5426
5427 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
5428 Fold movement_possibility function into it.
5429
5430 2007-03-25 David Edelsohn <edelsohn@gnu.org>
5431
5432 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
5433 (load_macho_picbase_{si,di}): Convert to LR hard reg.
5434 (call_indirect_nonlocal_darwin64): Same.
5435 (call_nonlocal_darwin64): Same.
5436 (call_value_indirect_nonlocal_darwin64): Same.
5437 (call_value_nonlocal_darwin64): Same.
5438 (sibcall_nonlocal_darwin64): Same.
5439 (sibcall_value_nonlocal_darwin64): Same.
5440 (sibcall_symbolic_64): Same.
5441 (sibcall_value_symbolic_64): Same.
5442 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
5443 LR pseudo.
5444 (rs6000_emit_load_toc_table): Same.
5445 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
5446 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
5447 (mull_call): Same.
5448 (divss_call): Same.
5449 (divus_call): Same.
5450 (quoss_call): Same.
5451 (quous_call): Same.
5452 (load_toc_v4_pic_si): Same
5453 (load_toc_v4_PIC_1): Same.
5454 (load_toc_v4_PIC_1b): Same.
5455 (call_indirect_aix{32,64}): Same.
5456 (call_value_indirect_aix{32,64}): Same.
5457 (call): Same.
5458 (call_value): Same.
5459 (call_local{32,64}): Same.
5460 (call_value_local{32,64}): Same.
5461 (call_indirect_nonlocal_aix{32,64}): Same.
5462 (call_nonlocal_aix{32,64}): Same.
5463 (call_value_indirect_nonlocal_aix{32,64}): Same.
5464 (call_value_nonlocal_aix{32,64}): Same.
5465 (call_indirect_nonlocal_sysv<mode>): Same.
5466 (call_nonlocal_sysv<mode>): Same.
5467 (call_value_indirect_nonlocal_sysv<mode>): Same.
5468 (call_value_nonlocal_sysv<mode>): Same.
5469 (sibcall): Same.
5470 (sibcall_local{32,64}): Same.
5471 (sibcall_value_local{32,64}): Same.
5472 (sibcall_nonlocal_aix{32,64}): Same.
5473 (sibcall_value_nonlocal_aix{32,64}): Same.
5474 (sibcall_nonlocal_sysv<mode>): Same.
5475 (sibcall_value): Same.
5476 (sibcall_value_nonlocal_sysv<mode>): Same.
5477
5478 2007-03-24 Paul Brook <paul@codesourcery.com>
5479
5480 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
5481 * config/arm/linux-eabi.h: Remove legacy syscall hack.
5482
5483 2007-03-24 Richard Henderson <rth@redhat.com>
5484
5485 * config/ia64/constraints.md: New file.
5486 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
5487 satisfies_constraint_?.
5488 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
5489 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
5490 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
5491 ia64_output_mi_thunk): Likewise.
5492 (ia64_const_ok_for_letter_p): Remove.
5493 (ia64_const_double_ok_for_letter_p): Remove.
5494 (ia64_extra_constraint): Remove.
5495 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
5496 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
5497 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
5498 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
5499 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
5500 EXTRA_MEMORY_CONSTRAINT): Remove.
5501 * config/ia64/ia64.md: Include constriants.md. Replace
5502 CONST_OK_FOR_? with satisfies_constraint_?.
5503
5504 2007-03-23 Michael Meissner <michael.meissner@amd.com>
5505 H.J. Lu <hongjiu.lu@intel.com>
5506
5507 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
5508 DPD or BID name.
5509 (name macros): Use DPD_BID_NAME to convert names properly.
5510
5511 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
5512 decimal floating point format.
5513 (init_floating_libfuncs): Change decimal functions so that they
5514 have a "bid_" prefix if the decimal system uses the BID format,
5515 and "dpd_" prefix if the decimal system uses the DPD format.
5516 (init_interclass_conv_libfuncs): Ditto.
5517 (init_intraclass_conv_libfuncs): Ditto.
5518
5519 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
5520 using the BID format.
5521
5522 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
5523 whether we are using the BID decimal format.
5524 * configure: Regenerate.
5525
5526 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
5527 the compiler has decimal floating point enabled. Define
5528 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
5529 instead of DPD.
5530
5531 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
5532 using the BID format.
5533
5534 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
5535 whether we are using the BID decimal format.
5536 * configure: Regenerate.
5537
5538 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
5539 the compiler has decimal floating point enabled. Define
5540 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
5541 instead of DPD.
5542
5543 * doc/install.texi (--enable-decimal-float): Document BID and DPD
5544 options, and that it is enabled for i386/x86_64 systems.
5545
5546 * Makefile.in (enable_decimal_float): New.
5547 (DECNUMFMT): New.
5548 (DECNUMINC): Add -I$(DECNUMFMT).
5549 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
5550 to $(DECNUMFMT) from $(DECNUM).
5551
5552 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
5553 Substitute enable_decimal_float.
5554 * configure: Regenerated.
5555
5556 PR other/30529
5557 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
5558 unsigned long.
5559
5560 * configure.ac: Enable decimal float for x86_64-*-linux*.
5561 * configure: Regenerated.
5562
5563 PR other/30530
5564 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
5565 decimal128ClearSign to flip and clear the sign bit in decimal128.
5566 (decimal_real_maxval): Set decimal128SetSign to set the sign
5567 bit in decimal128.
5568
5569 2007-03-23 Ian Lance Taylor <iant@google.com>
5570
5571 * fold-const.c (fold_binary): Correct warning for X - c >= X.
5572
5573 2007-03-23 Ian Lance Taylor <iant@google.com>
5574
5575 * tree-dump.c (dump_files): Correct comment.
5576
5577 2007-03-23 Ian Lance Taylor <iant@google.com>
5578
5579 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
5580
5581 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
5582
5583 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
5584 in cfglayout mode. Don't go into and out of cfglayout mode.
5585 Link the blocks in the order of the constructed traces.
5586 (rest_of_handle_tracer): Adjust call to tracer.
5587 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
5588 Don't go into cfglayout mode.
5589 (rtl_loop_done): Don't go out of cfglayout mode.
5590 * cfglayout.c (relink_block_chain): New function, split out from...
5591 (fixup_reorder_chain): ...here. Remove redundant checking.
5592 (cfg_layout_finalize): Don't clear the header, footer, and aux
5593 fields here, move the code to do so to relink_block_chain. Likewise
5594 for free_original_copy_tables.
5595 * rtl.h (tracer): Update prototype.
5596 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
5597 Assert we are in cfglayout mode. Don't go into and out of cfglayout
5598 mode. Use relink_block_chain to serialize the CFG according to the
5599 new basic block order. Move targetm.cannot_modify_jumps_p check from
5600 here...
5601 (gate_handle_reorder_blocks): ...to here.
5602 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
5603 from here...
5604 (gate_duplicate_computed_gotos): ...to here.
5605 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
5606 something always changes when going into and out of cfglayout mode.
5607 Perform an expensive cfg cleanup while going into cfglayout mode.
5608 Always update liveness information on HAVE_conditional_execution
5609 targets. Reserialize the basic blocks and go out of cfglayout mode.
5610 * reg-stack.c: Include cfglayout.h.
5611 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
5612 the call to reorder_basic_blocks.
5613 * basic-block.h (reorder_basic_blocks): Update prototype.
5614 (relink_block_chain): New prototype.
5615 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
5616
5617 2007-03-23 Joseph Myers <joseph@codesourcery.com>
5618
5619 * config/mips/mips.md (type, hazard, *movdi_32bit,
5620 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
5621 *movhi_internal, *movqi_internal, *movsf_hardfloat,
5622 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
5623 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
5624 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
5625 applicable.
5626 (movcc): Change first xfer to multi.
5627 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
5628 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
5629 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
5630 config/mips/generic.md: Change reservations using "xfer" to use
5631 "mfc,mtc".
5632 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
5633 using match_operand.
5634 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
5635 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
5636 examining mode.
5637 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
5638
5639 2007-03-22 Richard Henderson <rth@redhat.com>
5640
5641 * config/i386/i386.c: Remove unnecessary function declarations.
5642 Move targetm definition, and all related macros, to the end of
5643 the file. Resort some functions to put definitions before uses.
5644 (ix86_attribute_table): Make static. Move to end of file.
5645 (ix86_gimplify_va_arg): Make static.
5646
5647 2007-03-22 Richard Henderson <rth@redhat.com>
5648
5649 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
5650 don't increase local_regparm with force_align_arg_pointer check.
5651 (ix86_function_sseregparm): Assert 32-bit.
5652 (type_has_variadic_args_p): New.
5653 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
5654 type_has_variadic_args_p.
5655 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
5656 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
5657 use memset instead. Do maybe_vaarg check first; skip attribute
5658 tests if true; skip attribute tests for 64-bit.
5659 (construct_container): Remove TARGET_DEBUG_ARG.
5660 (function_arg_advance_32, function_arg_advance_64): Split out ...
5661 (function_arg_advance): ... from here.
5662 (function_arg_32, function_arg_64): Split out ...
5663 (function_arg): ... from here.
5664 (ix86_pass_by_reference): Tidy.
5665 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
5666 (function_value_32): New, from parts of ix86_function_value
5667 and ix86_value_regno.
5668 (function_value_64): New, from parts of ix86_function_value
5669 and ix86_libcall_value.
5670 (ix86_function_value_1): New.
5671 (ix86_function_value, ix86_libcall_value): Use it.
5672 (return_in_memory_32, return_in_memory_64): Split out ...
5673 (ix86_return_in_memory): ... from here.
5674 (ix86_struct_value_rtx): Skip for 64-bit.
5675 (ix86_libcall_value, ix86_value_regno): Remove.
5676 (setup_incoming_varargs_64): Split out ...
5677 (ix86_setup_incoming_varargs): ... from here.
5678 (ix86_va_start): Remove TARGET_DEBUG_ARG.
5679 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
5680 * config/i386/i386-protos.h (ix86_function_value): Remove.
5681 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
5682
5683 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5684
5685 PR other/23572
5686 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
5687 infinities not supported, otherwise emit warning if -Woverflow. On
5688 underflow, emit warning if -Woverflow.
5689 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
5690 and 0 otherwise.
5691 * real.h (real_from_string): Update declaration
5692
5693 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
5694 Richard Henderson <rth@redhat.com>
5695
5696 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
5697 * calls.c (compute_argument_block_size, expand_call,
5698 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
5699 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5700 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
5701 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
5702 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
5703 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
5704 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
5705 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
5706 Set to 1.
5707
5708 2007-03-22 Joseph Myers <joseph@codesourcery.com>
5709
5710 * c-incpath.c (add_sysroot_to_chain): New.
5711 (merge_include_chains): Add sysroot argument. Call
5712 add_sysroot_to_chain if sysrooted.
5713 (register_include_chains): Update call to merge_include_chains.
5714 * doc/cppopts.texi: Document use of '=' in include directory
5715 arguments.
5716
5717 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
5718
5719 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
5720 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
5721 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
5722 insn pattern using X87MODEF12 mode macro.
5723
5724 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
5725
5726 * regmove.c (regmove_optimize): Use reg_mentioned_p
5727 instead of reg_overlap_mentioned_p for DST.
5728
5729 2007-03-21 Mike Stump <mrs@apple.com>
5730
5731 * c.opt: Fixup for Objective-C/C++.
5732
5733 2007-03-21 Steve Ellcey <sje@cup.hp.com>
5734
5735 * explow.c (convert_memory_address): Fold memory reference when
5736 POINTERS_EXTEND_UNSIGNED < 0
5737
5738 2007-03-21 Richard Henderson <rth@redhat.com>
5739
5740 PR target/31245
5741 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
5742 * config/i386/mmintrin.h (__m64): Likewise.
5743 * config/i386/xmmintrin.h (__m128): Likewise.
5744
5745 2007-03-21 Richard Sandiford <richard@codesourcery.com>
5746
5747 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
5748 (VXWORKS_OS_CPP_BUILTINS): Define.
5749 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
5750 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
5751
5752 2007-03-21 Richard Sandiford <richard@codesourcery.com>
5753
5754 * rtl.h (constant_pool_reference_p): Delete.
5755 (find_constant_src): Declare.
5756 * rtlanal.c (find_constant_src): New function.
5757 * simplify-rtx.c (constant_pool_reference_p): Delete.
5758 * config/i386/i386.md: Use find_constant_src instead of
5759 constant_pool_reference_p/avoid_constant_pool_reference pairs.
5760
5761 2007-03-21 Richard Sandiford <richard@codesourcery.com>
5762
5763 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
5764 * c-cppbuiltin.c (c_cpp_builtins): Define them.
5765
5766 2007-03-20 Mark Mitchell <mark@codesourcery.com>
5767
5768 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
5769 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
5770 (arm_elf_asm_constructor): Use it.
5771 (arm_elf_asm_destructor): New function.
5772
5773 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
5774
5775 * jump.c (mark_jump_label): Treat SEQUENCE specially.
5776
5777 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
5778
5779 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
5780
5781 2007-03-19 Andrew Haley <aph@redhat.com>
5782
5783 PR tree-optimization/31264
5784 * tree-vrp.c (register_edge_assert_for_1): Don't look though
5785 VIEW_CONVERT_EXPRs.
5786
5787 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
5788
5789 PR rtl-optimization/30907
5790 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
5791 (fwprop_init): Always call loop_optimizer_initialize.
5792 (fwprop_done): Always call loop_optimizer_finalize.
5793 (fwprop): We always have loop info now.
5794 (gate_fwprop_addr): Remove.
5795 (pass_fwprop_addr): Use gate_fwprop as gate.
5796
5797 PR rtl-optimization/30841
5798 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
5799 df_chain_alloc): Call df_reorganize_refs unconditionally.
5800 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
5801 refs_organized to refs_organized_size.
5802 (df_ref_create_structure): Use refs_organized_size instead of
5803 bitmap_size if refs had been organized, and keep refs_organized_size
5804 up-to-date.
5805 * df.h (struct df_ref_info): Change refs_organized to
5806 refs_organized_size.
5807 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
5808 bitmap_size.
5809
5810 2007-03-19 Mark Mitchell <mark@codesourcery.com>
5811
5812 * except.c (output_function_exception_table): Do not reference the
5813 EH personality routine for functions that do not require an
5814 exception table.
5815
5816 2007-03-20 Jakub Jelinek <jakub@redhat.com>
5817
5818 PR c/30762
5819 * c-typeck.c (convert_for_assignment): Call comptypes for
5820 RECORD_TYPE or UNION_TYPE.
5821
5822 PR inline-asm/30505
5823 * reload1.c (reload): Do invalid ASM checking after
5824 cleanup_subreg_operands.
5825
5826 2007-03-19 Jeff Law <law@redhat.com>
5827
5828 * tree-cfg.c (find_taken_edge): Tighten conditions for
5829 optimizing computed gotos.
5830
5831 2007-03-19 Michael Matz <matz@suse.de>
5832
5833 * builtins.c (expand_builtin_sync_operation,
5834 expand_builtin_compare_and_swap,
5835 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
5836 correctly.
5837
5838 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
5839 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
5840 for operand 3.
5841
5842 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5843
5844 * doc/tm.texi: Add brackets around the return type of
5845 TARGET_SECONDARY_RELOAD.
5846
5847 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
5848 Richard Guenther <rguenther@suse.de>
5849
5850 PR tree-optimization/31254
5851 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
5852 Use handled_component_p () where appropriate. Continue
5853 propagating into the rhs if we propagated into an INDIRECT_REF
5854 on the lhs.
5855
5856 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5857
5858 * config/s390/s390.md (op_type attribute): RRR instruction type added.
5859 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
5860 (xde, xdee): Mode attributes adjusted to support DFP modes.
5861 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
5862 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
5863 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
5864 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
5865 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
5866 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
5867 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
5868 numbers.
5869 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
5870 "movsf"): Insn definitions removed.
5871 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
5872 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
5873 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
5874 definitions added.
5875 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
5876 "reload_in<mode>", "reload_out<mode>"): Expander added.
5877 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
5878 Expander removed.
5879
5880 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5881
5882 * config/s390/s390.md: Only non-functional changes. Renamed
5883 FPR mode macro to BFP all over the file.
5884
5885 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5886
5887 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
5888 (op_type attribute): RRF instruction type added.
5889 (fT0): New mode attribute.
5890 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
5891 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
5892 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
5893 no secondary memory is needed when moving DFmode values between GPRs
5894 and FPRs.
5895
5896 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5897
5898 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
5899 inverted and documentation adjusted.
5900 ("mhard-dfp", "msoft-dfp"): New options.
5901 * config/s390/s390.c (s390_handle_arch_option): New architecture
5902 switch: z9-ec.
5903 (override_options): Sanity checks for the new options added.
5904 * config.gcc: New architecture switch: z9-ec.
5905 * config/s390/s390.h (processor_flags): PF_DFP added.
5906 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
5907 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
5908 when the bit is NOT set so remove it from the defaults.
5909
5910 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
5911
5912 * genemit.c (main): Print include statement for dfp.h.
5913 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
5914 is not available.
5915
5916 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
5917
5918 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
5919
5920 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5921
5922 PR target/31022
5923 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
5924 instead of PATTERN.
5925
5926 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5927
5928 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
5929 attr_length_call, output_call, output_indirect_call): Cleanup
5930 formatting of targetm calls.
5931
5932 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
5933
5934 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
5935
5936 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5937
5938 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
5939 reservation, bypass and anti-bypass descriptions for these instructions.
5940 Update move patterns.
5941 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
5942 TYPE_FPSTORE.
5943
5944 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
5945
5946 * tree-vect-transform.c (get_initial_def_for_induction): Replace
5947 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
5948 (get_initial_def_for_reduction): Likewise.
5949
5950 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
5951
5952 Fix PR tree-optimization/29922
5953 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
5954 (get_representative): Removed.
5955 (value_dies_in_block_x): Update for rvuse removal.
5956 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
5957 (compute_antic_aux): Handle when PHI nodes appear in
5958 non-single-successors.
5959 (dump_bitmap_of_names): Removed.
5960 (compute_antic_safe): Renamed and removed rvuse calculation.
5961 Calculate only antic safe.
5962 (insert_into_preds_of_block): Remove assert.
5963 (execute_pre): Update for renamed functions.
5964 (defer_or_phi_translate_block): New function.
5965
5966 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
5967
5968 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
5969 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
5970 typos.
5971 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
5972 Follow spelling conventions.
5973
5974 * tree-data-ref.h: Remove the prototype for analyze_array.
5975
5976 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
5977
5978 PR tree-optimization/31041
5979 * tree-vect-transform.c (get_initial_def_for_induction): Call
5980 force_gimple_operand.
5981
5982 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
5983
5984 * ipa-type-escape.c (look_for_casts) : Revert code to use
5985 handled_component_p due to ada test a-numaux.adb.
5986
5987 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
5988
5989 * final.c (final_scan_insn): Alter the condition of a
5990 conditional trap if we have nonstandard CC.
5991
5992 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
5993
5994 * configure.ac: Remove excess quoting from asm line 0 test.
5995 * configure: Rebuilt.
5996
5997 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5998
5999 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
6000 * c-common.c (convert_and_check): Move warning logic to...
6001 (warnings_for_convert_and_check): ...here. Define.
6002 * c-common.h (warnings_for_convert_and_check): Declare.
6003
6004 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6005
6006 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
6007 (output_call): Likewise.
6008
6009 2007-03-16 Richard Sandiford <richard@codesourcery.com>
6010
6011 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
6012
6013 2007-03-16 Richard Sandiford <richard@codesourcery.com>
6014
6015 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
6016
6017 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
6018
6019 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
6020 opteron, athlon-64 and athlon-fx processor_alias_table entries.
6021
6022 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
6023
6024 PR tree-optimization/31183
6025 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
6026 Use double_int instead of unsigned int for representing access_strides.
6027 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
6028
6029 2007-03-16 Richard Guenther <rguenther@suse.de>
6030
6031 PR tree-optimization/31146
6032 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
6033 to allow recursion of forward_propagate_addr_expr.
6034 (forward_propagate_addr_into_variable_array_index): Likewise.
6035 (forward_propagate_addr_expr): Likewise.
6036 (tree_ssa_forward_propagate_single_use_vars): Likewise.
6037 (forward_propagate_addr_expr_1): Recurse on simple copies
6038 instead of propagating into them. Do so for useless conversions
6039 as well.
6040 (forward_propagate_addr_expr): Clean up unused statements after
6041 recursion.
6042
6043 2007-03-16 Richard Guenther <rguenther@suse.de>
6044
6045 * builtins.c (expand_builtin_cexpi): Use the right argument
6046 for the expansion via cexp.
6047
6048 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
6049
6050 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
6051 * configure: Rebuilt.
6052
6053 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
6054
6055 PR debug/29906
6056 * dwarf2out.c (force_type_die): Adjust comment.
6057 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
6058
6059 2007-03-15 DJ Delorie <dj@redhat.com>
6060
6061 * config/frv/predicates.md (minmax_operator): Don't check operands
6062 here.
6063
6064 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
6065
6066 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
6067 Update constant estimates of number of iterations.
6068 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
6069 argument renamed to "realistic".
6070 (compute_estimated_nb_iterations): Removed.
6071 (record_niter_bound): New function.
6072 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
6073 call record_nonwrapping_iv with upper = false.
6074 (infer_loop_bounds_from_signedness): Pass upper argument to
6075 record_nonwrapping_iv.
6076 (estimate_numbers_of_iterations_loop): Do not call
6077 compute_estimated_nb_iterations. Record estimate based on profile
6078 information. Initialize the constant estimates of number of
6079 iterations.
6080 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
6081 estimates.
6082 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
6083 number of iterations is too small.
6084 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
6085 (EST_NOT_AVAILABLE): Removed.
6086 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
6087 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
6088 fields.
6089
6090 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
6091
6092 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
6093 Handle NE_EXPR guards.
6094
6095 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6096
6097 PR c++/24924
6098 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
6099 Set also -pedantic-errors by default for the preprocessor unless
6100 -fpermissive is given.
6101
6102 2007-03-15 Richard Guenther <rguenther@suse.de>
6103
6104 PR middle-end/29719
6105 PR middle-end/31161
6106 * builtins.c (expand_builtin_cexpi): As a fallback if we
6107 don't have builtins for sincos or cexp create a function
6108 declaration for cexp and expand to a call to that.
6109 (expand_builtin_int_roundingfn): Always fall
6110 back to floor/ceil and its variants even if they may be
6111 not available.
6112
6113 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
6114
6115 PR middle-end/31159
6116 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
6117 jump tables, move the call to delete_dead_jumptables from here...
6118 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
6119 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
6120 don't allow merging of blocks that try_redirect_by_replacing_jump
6121 also does not handle when not optimizing.
6122
6123 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
6124 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6125
6126 * config/i386/i386.md (x86_sahf_1): Correctly handle
6127 HAVE_AS_IX86_SAHF.
6128
6129 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
6130
6131 PR target/31167
6132 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
6133 x86_64_general_operand as operand[2] predicate. Remove "iF"
6134 from operand constraints and use "e" constraint instead.
6135 (*subti3_1, *subti3_1 splitter): Ditto.
6136 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
6137 operand[1] predicate.
6138
6139 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
6140
6141 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
6142 arrays, multiply the access strides by the size of the sub-array.
6143 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
6144
6145 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
6146
6147 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
6148 the configured assembler supports the sahf mnemonic.
6149 * configure: Regenerate.
6150 * config.in: Regenerate.
6151
6152 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
6153 emit "sahf" or ".byte\t0x9e" as asm template.
6154
6155 2007-03-14 Michael Meissner <michael.meissner@amd.com>
6156
6157 PR 31018
6158 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
6159 option to replace hard coded TARGET_xxx in md file.
6160 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
6161 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
6162 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
6163 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
6164 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
6165 (X86_TUNE_NOT_VECTORMODE): Ditto.
6166 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
6167 (TUNE_AVOID_VECTOR_DECODE): Ditto.
6168 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
6169 (TUNE_SLOW_IMUL_IMM8): Ditto.
6170 (TUNE_MOVE_M1_VIA_OR): Ditto.
6171 (TUNE_NOT_UNPAIRABLE): Ditto.
6172 (TUNE_NOT_VECTORMODE): Ditto.
6173
6174 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
6175 options.
6176
6177 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
6178 tuning options instead of hard coded TARGET_xxx.
6179 (fix ssemode peephole2's): Ditto.
6180 (imul peephole2's): Ditto.
6181 (movsi_or): Ditto.
6182 (movdi_or_rex64): Ditto.
6183 (move peephole2): Ditto.
6184 (not peephole2's): Ditto.
6185
6186 2007-03-14 Dirk Mueller <dmueller@suse.de>
6187
6188 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
6189 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
6190 * c-parser.c (c_parser_if_body): Always add an empty statement in case
6191 of empty body.
6192 * c-parser.c (c_parser_do_statement): Warn about empty body in
6193 do/while statement.
6194 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
6195 * doc/invoke.texi (-Wempty-body): Update documentation.
6196
6197 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6198
6199 PR c/21438
6200 * c-common.h (warn_for_div_by_zero): Declare.
6201 * c-common.c (warn_for_div_by_zero): Define.
6202 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
6203 warning.
6204
6205 2007-03-14 Richard Sandiford <richard@codesourcery.com>
6206
6207 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
6208 to PREFIX and STANDARD_PREFIX.
6209
6210 2007-03-14 Richard Sandiford <richard@codesourcery.com>
6211 Phil Edwards <phil@codesourcery.com>
6212
6213 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
6214 (__gthread_once_t): Remove busy field for RTPs.
6215 (__GTHREAD_ONCE_INIT): Update accordingly.
6216
6217 2007-03-14 Richard Sandiford <richard@codesourcery.com>
6218
6219 * doc/invoke.texi: Document VxWorks options.
6220
6221 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
6222
6223 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
6224
6225 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
6226
6227 PR tree-optimization/30590
6228 * tree-nrv.c (tree_nrv): Check for the partial update of the
6229 return value.
6230
6231 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
6232
6233 * flags.h (flag_random_seed): Remove declaration, in favor of...
6234 * toplev.h (get_random_seed, set_random_seed): ... these.
6235 * tree.c (get_file_function_name): Use the former.
6236 * opts.c (common_handle_option): Use the latter.
6237 * toplev.c
6238
6239 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
6240
6241 PR middle-end/31127
6242 * cse.c (cse_find_path): Do not bail out if a basic block that
6243 we already visited now becomes part of a path that starts at a
6244 different basic block. Just disallow this, to make sure we
6245 visit each basic block at most once.
6246
6247 2007-03-13 Jan Hubicka <jh@suse.cz>
6248
6249 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
6250 when profile esitmate is present, calls with very low frequency are
6251 cold.
6252
6253 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
6254
6255 PR tree-optimization/30730
6256 PR tree-optimization/26900
6257 * tree-ssa-loop-niter.c: Include gmp.h.
6258 (bounds): New type.
6259 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
6260 split_to_var_and_offset, determine_value_range,
6261 bound_difference_of_offsetted_base, refine_bounds_using_guard,
6262 bound_difference, bounds_add, bounds_negate,
6263 number_of_iterations_ne_max, dump_affine_iv): New functions.
6264 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
6265 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
6266 difference of initial and final value of control iv to validate
6267 results.
6268 (number_of_iterations_cond): Add loop parameter. Determine bounds
6269 on the difference of the extremes of the control iv. Add dumps.
6270 (expand_simple_operations): Handle phi nodes.
6271 (simplify_using_initial_conditions): Do not record used conditions.
6272 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
6273 Do not set additional_info.
6274 (implies_nonnegative_p, implies_ge_p): Removed.
6275 (derive_constant_upper_bound): Do not use parameter `additional'.
6276 (record_estimate): Parameter `additional' removed. Parameter
6277 `i_bound' added. Do not call derive_constant_upper_bound.
6278 (record_nonwrapping_iv): Use derive_constant_upper_bound to
6279 bound the number of iterations estimate.
6280 (estimate_numbers_of_iterations_loop): Pass the estimate from
6281 the number of iterations analysis to record_estimate.
6282 * tree.h (multiple_of_p): Declare.
6283 * tree-scalar-evolution.c (expression_expensive_p): Removed.
6284 (scev_const_prop): Do not check expression_expensive_p.
6285 * fold-const.c (multiple_of_p): Exported.
6286 * double-int.c (double_int_mask): Exported.
6287 * double-int.h (double_int_mask): Declare.
6288 * tree-flow.h (struct tree_niter_desc): Removed additional_info
6289 field. Added max field.
6290
6291 2007-03-13 David Taylor <taylor@candd.org>
6292
6293 PR driver/12448:
6294 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
6295 default -MQ.
6296
6297 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6298
6299 PR target/31123
6300 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
6301 two unamed patterns.
6302
6303 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
6304
6305 * config/i386/i386.opt (mcx16, msahf): New options.
6306 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
6307 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
6308
6309 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
6310 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
6311 Output -mcx16 and -msahf options when corresponding bit is set.
6312
6313 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
6314 and -msahf options.
6315
6316 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
6317
6318 * configure.ac: Test for assembler tolerance to # 0 "".
6319 * configure, config.in: Rebuilt.
6320 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
6321
6322 2007-03-13 Geoffrey Keating <geoffk@apple.com>
6323
6324 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
6325
6326 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
6327 (handle_syscall): Handle direct system calls.
6328 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
6329
6330 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
6331
6332 * doc/invoke.texi: Fix cpp.info cross-reference.
6333 * doc/passes.texi: Fix gcc.info cross-reference.
6334
6335 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
6336
6337 PR tree-optimization/30835
6338 * lambda-code.c (can_convert_to_perfect_nest): Check whether
6339 bb_for_stmt is not NULL before accessing it.
6340
6341 2007-03-12 Joseph Myers <joseph@codesourcery.com>
6342
6343 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
6344 some multilibs.
6345
6346 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
6347
6348 PR 30635
6349 * doc/install.texi: Document --enable-stage1-languages
6350
6351 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
6352
6353 * tree-pass.h (pass_into_cfg_layout_mode,
6354 pass_outof_cfg_layout_mode): Declare.
6355 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
6356 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
6357 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
6358 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
6359
6360 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
6361
6362 * c-decl.c (warn_variable_length_array): New function.
6363 Refactored from grokdeclarator to handle warn_vla
6364 and handle unnamed array case.
6365 (grokdeclarator): Refactored VLA warning case.
6366 * c.opt (Wvla): New flag.
6367 * doc/invoke.texi (Wvla): New warning.
6368
6369 2007-03-12 Richard Henderson <rth@redhat.com>
6370
6371 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
6372 (TARGET_SECTION_TYPE_FLAGS): New.
6373
6374 2007-03-12 Richard Henderson <rth@redhat.com>
6375
6376 * config/darwin.c (machopic_reloc_rw_mask): New.
6377 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
6378 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
6379
6380 2007-03-12 Mark Mitchell <mark@codesourcery.com>
6381
6382 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
6383 * cppdefault.h (cpp_PREFIX): Document.
6384 (cpp_PREFIX_len): Likewise.
6385 (cpp_EXEC_PREFIX): New variable.
6386 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
6387 * c-incpath.c (add_standard_paths): Correct logic for relocating
6388 paths within prefix.
6389
6390 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
6391
6392 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
6393 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
6394 mode macro.
6395 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
6396 fix_truncdfdi_sse using SSEMODEF mode macro.
6397 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
6398 fix_truncdfsi_sse using SSEMODEF mode macro.
6399 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
6400 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
6401
6402 2007-03-12 Richard Sandiford <richard@codesourcery.com>
6403
6404 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
6405 elfos.h to tm_file.
6406
6407 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
6408
6409 * tree.h : Add multiple_of_p declaration.
6410 * fold-const.c (multiple_of_p): Make multiple_of_p public.
6411 * ipa-type-escape.c (results_of_malloc): Redundant.
6412 (visited_stmts): New. Visited stmt for walk_use_def_chains.
6413 (cast_type): Extended with new members.
6414 (check_cast): Returns cast_type.
6415 (cast): New structure for data of walk_use_def_chains.
6416 (is_malloc_result, is_cast_from_non_pointer_1,
6417 is_cast_from_non_pointer,
6418 is_array_access_through_pointer_and_index): New functions.
6419 (look_for_casts): Returns cast types.
6420 (check_call): Returns void.
6421 (okay_pointer_operation): Use support of pointer plus index,
6422 pointer plus constant and allow all multiplications.
6423
6424 2007-03-11 Richard Guenther <rguenther@suse.de>
6425
6426 PR tree-optimization/31115
6427 * tree-vrp.c (extract_range_from_binary_expr): Make sure
6428 the shift count is positive and non-anti-range for RSHIFT_EXPR.
6429 A shift count of zero is not special as with *_DIV_EXPR.
6430 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
6431 direction.
6432
6433 2007-03-11 Ian Lance Taylor <iant@google.com>
6434
6435 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
6436 the *_DIV_EXPR codes correctly with overflow infinities.
6437
6438 2007-03-11 Ira Rosen <irar@il.ibm.com>
6439
6440 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
6441 indicate success/failure of the analysis. Add negation to subtrahend
6442 in case of subtraction. Fail if both operands contain constants.
6443 (create_data_ref): Fail if analyze_offset fails.
6444
6445 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
6446
6447 * config/i386/i386.md (frndintxf2): Rename to ...
6448 (rintxf2): ... this. Remove expander having same name.
6449 (rintsf2, rintdf2): Implement using SSEMODEF macro.
6450 (roundsf2, rounddf2): Ditto.
6451 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
6452 (lround<mode>di2, lround<mode>si2): Ditto.
6453
6454 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
6455
6456 * lower-subreg.c: Include except.h.
6457 (decompose_multiword_subregs): Verify that the only control flow
6458 insns we can split are loads to multi-words pseudos.
6459 Handle breaking such blocks after splitting, instead of calling
6460 find_many_sub_basic_blocks.
6461
6462 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
6463 on the new basic block. Add a lengthy comment explaining why we
6464 thought this was necessary.
6465 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
6466
6467 2007-03-10 Mark Mitchell <mark@codesourcery.com>
6468
6469 PR c++/30924
6470 * tree.c (walk_type_fields): Recurse into the element type of
6471 ARRAY_TYPEs if there is a pointer set.
6472
6473 2007-03-10 Dirk Mueller <dmueller@suse.de>
6474
6475 * c-common.c (warn_logical_operator): Fix condition.
6476
6477 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
6478
6479 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
6480 quotation mark.
6481 * config/darwin.c (machopic_select_section): Remove superfluous
6482 argument in call to categorize_decl_for_section. Remove unused
6483 variable shlib.
6484
6485 2007-03-10 Joseph Myers <joseph@codesourcery.com>
6486
6487 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
6488 defined.
6489 * configure: Regenerate.
6490
6491 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
6492
6493 PR target/31101
6494 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
6495 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
6496 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
6497 Add LABEL_NUSES to emitted label.
6498 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
6499 branch probability value to emitted jump insn.
6500 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
6501 Do not check life information and do not re-arrange input operands
6502 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
6503
6504 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
6505
6506 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
6507 the change of decode_asm_operands.
6508
6509 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
6510
6511 * mode-switching.c (create_pre_exit): Skip blockage insn.
6512
6513 2007-03-09 Diego Novillo <dnovillo@redhat.com>
6514
6515 * tree-pass.h (TODO_update_smt_usage): Remove.
6516 Update all users.
6517 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6518 argument SOME.
6519 Update all users.
6520
6521 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6522
6523 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
6524 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
6525 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
6526 SOM target.
6527
6528 2007-03-09 Geoffrey Keating <geoffk@apple.com>
6529
6530 * gcc.c: Document %{, in big comment at top.
6531 (input_suffix_matches): Remove special handling for .s and
6532 .S.
6533 (input_spec_matches): New.
6534 (handle_braces): Handle %{,.
6535 (validate_switches): ',' indicates a value which is not a switch.
6536 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
6537 to detect assembler input.
6538 * config/i386/sol2.h (CPP_SPEC): Likewise.
6539 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
6540 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6541 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
6542 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6543 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
6544 -m64 causes deployment target to default to 10.5.
6545 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
6546
6547 2007-03-09 Richard Henderson <rth@redhat.com>
6548
6549 PR target/26090
6550 * target.h (targetm.asm.out.reloc_rw_mask): New.
6551 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
6552 (TARGET_ASM_OUT): Use it.
6553 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
6554 * varasm.c (categorize_decl_for_section): Remove shlib argument;
6555 use the new reloc_rw_mask target hook instead.
6556 (default_section_type_flags_1): Merge into...
6557 (default_section_type_flags): ... here.
6558 (decl_readonly_section_1): Merge into...
6559 (decl_readonly_section): ... here.
6560 (default_elf_select_section_1): Merge into...
6561 (default_elf_select_section): ... here.
6562 (default_unique_section_1): Merge into...
6563 (default_unique_section): ... here.
6564 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
6565 (default_select_rtx_section): Use it.
6566 (default_elf_select_rtx_section): Likewise.
6567 * output.h: Update to match.
6568 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
6569 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
6570 (TARGET_ASM_RELOC_RW_MASK): New.
6571 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
6572 to categorize_decl_for_section.
6573 (x86_64_elf_unique_section): Likewise.
6574 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
6575 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
6576 (TARGET_ASM_RELOC_RW_MASK): New.
6577 * config/ia64/ia64.c (ia64_rwreloc_select_section,
6578 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
6579 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
6580 (TARGET_RWRELOC): Remove.
6581 (ia64_section_type_flags): Adjust call to default_section_type_flags.
6582 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
6583 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
6584 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
6585 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
6586 (rs6000_xcoff_select_section): Use decl_readonly_section.
6587 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
6588 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
6589 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
6590 (TARGET_SECTION_TYPE_FLAGS): Remove.
6591 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
6592
6593 2007-03-09 Roger Sayle <roger@eyesopen.com>
6594
6595 * fold-const.c (fold_comparison): Remove compile-time evaluation of
6596 complex constant equality/inequality comparisons for here.
6597 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
6598 known at compile-time or can be simplified to a scalar comparison.
6599 (fold_relational_const): Move compile-time evaluation of complex
6600 constant equality/inequality comparisons to here.
6601
6602 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6603
6604 PR rtl-optimization/30643
6605 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
6606 dest_addr_elt.
6607 (fold_rtx): Recurse, like before 2006-11-03.
6608
6609 2007-03-09 DJ Delorie <dj@redhat.com>
6610
6611 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
6612 m32c-pragma.o.
6613
6614 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
6615
6616 PR tree-optimization/30375
6617 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
6618 LHS of statements is not the same.
6619 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
6620
6621 2007-03-09 Chao-ying Fu <fu@mips.com>
6622
6623 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
6624 REV 2.
6625 * doc/invoke.texi (-mdspr2): Document new option.
6626 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
6627 New unspec for DSP REV 2.
6628 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
6629 these instructions are extended in DSP REV 2.
6630 (mips-dspr2.md): Include.
6631 * config/mips/mips.opt (mdspr2): New option.
6632 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
6633 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
6634 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
6635 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
6636 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
6637 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
6638 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
6639 and 2 builtins.
6640 (bdesc_map): Add one field of unsupported_target_flags.
6641 (bdesc_arrays): Update entries to have extra fields. Add
6642 dsp_32only_bdesc.
6643 (mips_init_builtins): Initialize new function types.
6644 Check unsupported_target_fileds to filter out builtins.
6645 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
6646 TARGET_DSPR2.
6647 (ASM_SPEC): Pass mdspr2 to the assembler.
6648 * config/mips/mips-dspr2.md: New file.
6649
6650 2007-03-09 Sa Liu <saliu@de.ibm.com>
6651
6652 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
6653
6654 2007-03-09 Ian Lance Taylor <iant@google.com>
6655
6656 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
6657 argument) like -Wstrict-overflow=2.
6658 * doc/invoke.texi (Warning Options): Update documentation.
6659
6660 2007-03-09 Dirk Mueller <dmueller@suse.de>
6661
6662 PR c++/17946
6663 * doc/invoke.texi (-Wlogical-op): Document.
6664 * common.opt (-Wlogical-op): New.
6665 * c-common.h (warn_logical_operator): Declare.
6666 * c-common.c (warn_logical_operator): Define.
6667 * c-typeck.c (parser_build_binary_op): Call
6668 warn_logical_operator.
6669
6670 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6671
6672 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
6673 * final.c (final_scan_insn): Test for non-"" file name.
6674
6675 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
6676
6677 * doc/loop.texi: Document the Omega linear constraints solver.
6678 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
6679 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
6680 omega-hash-table-size, omega-max-keys, and
6681 omega-eliminate-redundant-constraints.
6682 * tree-pass.h (pass_check_data_deps): Declared.
6683 * omega.c: New.
6684 * omega.h: New.
6685 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
6686 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
6687 pass_check_data_deps): New.
6688 * tree-data-ref.c (init_data_ref): Remove declaration.
6689 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
6690 (analyze_array): Renamed init_array_ref, move up initializations.
6691 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
6692 Removed arguments that are set to NULL.
6693 (analyze_indirect_ref): Correct indentation, correct call to
6694 init_pointer_ref.
6695 (object_analysis): Call init_array_ref instead of analyze_array.
6696 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
6697 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
6698 of DR_ACCESS_FNS_ADDR.
6699 (init_omega_eq_with_af, omega_extract_distance_vectors,
6700 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
6701 ddr_consistent_p): New.
6702 (compute_affine_dependence): Check consistency of ddrs when
6703 flag_check_data_deps is passed.
6704 (analyze_all_data_dependences): Uncomment.
6705 (tree_check_data_deps): New.
6706 * tree-data-ref.h: Include omega.h.
6707 (DR_ACCESS_FNS_ADDR): Removed.
6708 (data_dependence_relation): Add inner_loop.
6709 (DDR_INNER_LOOP): New.
6710 * common.opt (fcheck-data-deps): New.
6711 * tree-flow.h (tree_check_data_deps): Declare.
6712 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
6713 (OBJS-common): Depend on omega.o.
6714 (omega.o): Define.
6715 * passes.c (pass_check_data_deps): Scheduled.
6716 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6717 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6718 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
6719 PARAM_VECT_MAX_VERSION_CHECKS,
6720 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
6721
6722 2007-03-09 Richard Guenther <rguenther@suse.de>
6723
6724 PR tree-optimization/30904
6725 PR middle-end/31058
6726 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
6727 the same way as *_DIV_EXPR.
6728
6729 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6730
6731 * recog.c (decode_asm_operands): No mixed declarations and code.
6732
6733 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
6734
6735 * rtl.def (ASM_INPUT): Add location.
6736 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
6737 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
6738 (decode_asm_operands): Add loc operand.
6739 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
6740 * stmt.c (expand_asm): Rename to...
6741 (expand_asm_loc): ... this. Add locus argument. Pass it on to
6742 gen_rtx_ASM_INPUT_loc.
6743 (expand_asm_expr): Adjust.
6744 * recog.c (decode_asm_operands): Add loc operand.
6745 (check_asm_operands, extract_insn): Adjust.
6746 * reload1.c (maybe_fix_stack_asms): Likewise.
6747 * final.c (asm_insn_count): Likewise.
6748 (final_scan_insn): Output # line before and after asm.
6749
6750 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
6751
6752 * tree-ssa-structalias.c (variable_info): Remove
6753 finished_solution.
6754 (new_var_info): Ditto.
6755 (shared_bitmap_info_t): New structure.
6756 (shared_bitmap_table): New variable.
6757 (shared_bitmap_hash): New function.
6758 (shared_bitmap_eq): Ditto
6759 (shared_bitmap_lookup): Ditto.
6760 (shared_bitmap_add): Ditto.
6761 (merge_smts_into): Change to take bitmap directly.
6762 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
6763 (init_alias_vars): Init shared bitmap hashtable.
6764 (delete_points_to_sets): Delete shared bitmap hashtable.
6765 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
6766 is_aliased removal as a change that was still necessary was
6767 deleted.
6768
6769 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
6770
6771 * config/i386/i386.h (override_options): Conditionally disable
6772 x86_sahf for 64bit targets only.
6773
6774 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
6775
6776 PR C/31072
6777 * c-decl.c (merge_decls): Don't call make_var_volatile.
6778 * varasm.c (make_var_volatile): Remove.
6779 * output.h (make_var_volatile): Remove.
6780
6781 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
6782
6783 PR tree-optimization/31085
6784 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
6785
6786 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6787
6788 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
6789 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
6790 ATTR_CONST_NOTHROW_LIST.
6791
6792 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
6793 FIX_TRUNC_EXPR.
6794
6795 2007-03-08 Diego Novillo <dnovillo@redhat.com>
6796
6797 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
6798
6799 2007-03-08 Geoffrey Keating <geoffk@apple.com>
6800
6801 PR 31013
6802 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
6803 is declared.
6804 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
6805 passed, use shared libgcc.
6806
6807 2007-03-08 Roger Sayle <roger@eyesopen.com>
6808
6809 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
6810 instead of calling build2 with a GIMPLE_MODIFY_STMT.
6811 (honor_protect_cleanup_actions, lower_try_finally_switch):
6812 Likewise.
6813 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
6814 ifc_temp_var): Likewise.
6815 * tree-inline.c (setup_one_parameter): Likewise.
6816 * tree-mudflap.c (mf_decl_cache_locals,
6817 mf_build_check_statement_for): Likewise.
6818 * tree-nested.c (init_tmp_var, save_tmp_var,
6819 finalize_nesting_tree_1): Likewise.
6820 * tree-outof-ssa.c (insert_copy_on_edge,
6821 insert_backedge_copies): Likewise.
6822 * tree-profile.c (tree_gen_edge_profiler,
6823 tree_gen_ic_profiler): Likewise.
6824 * tree-scalar-evolution.c (scev_const_prop): Likewise.
6825 * tree-sra.c (sra_build_assignment): Likewise.
6826 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
6827 * tree-ssa-math-opts.c (insert_reciprocals,
6828 execute_cse_sincos_1): Likewise.
6829 * tree-tailcall.c (adjust_accumulator_values,
6830 adjust_return_value): Likewise.
6831 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
6832 * tree-vect-transform.c (vect_create_data_ref_ptr,
6833 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
6834 vect_create_epilog_for_reduction, vectorizable_reduction,
6835 vectorizable_call, vectorizable_conversion,
6836 vectorizable_assignment, vectorizable_operation,
6837 vectorizable_type_demotion, vect_gen_widened_results_half,
6838 vect_permute_store_chain, vectorizable_store,
6839 vect_setup_realignment, vect_permute_load_chain,
6840 vectorizable_load, vectorizable_condition,
6841 vect_create_cond_for_align_checks): Likewise.
6842 * tree-vrp.c (build_assert_expr_for): Likewise.
6843
6844 2007-03-08 Ian Lance Taylor <iant@google.com>
6845
6846 * tree-vrp.c: Include "intl.h".
6847 (usable_range_p): New static function.
6848 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
6849 overflowed values, juts set *strict_overflow_p.
6850 (compare_values): Only return -2 if one of the operands is not a
6851 constant.
6852 (compare_ranges): Call usable_range_p.
6853 (compare_range_with_value): Likewise.
6854 (vrp_evaluate_conditional_warnv): Rename from
6855 vrp_evaluate_conditional. Make static. Change all callers.
6856 (vrp_evaluate_conditional): New function.
6857 (simplify_div_or_mod_using_ranges): Issue warning about reliance
6858 on signed overflow.
6859 (simplify_abs_using_ranges): Likewise.
6860 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
6861 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
6862 within_stmt parameter.
6863 * tree-ssa-propagate.c (fold_predicate_in): Update call to
6864 vrp_evaluate_conditional.
6865 * tree-ssa-threadedge.c
6866 (record_temporary_equivalences_from_stmts_at_dest): Change
6867 simplify parameter to take a second tree parameter.
6868 (simplify_control_stmt_condition): Likewise.
6869 (thread_across_edge): Likewise.
6870 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
6871 (thread_across_edge): Likewise.
6872 * Makefile.in (tree-vrp.o): Depend upon intl.h.
6873
6874 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
6875
6876 * config/i386/i386.h (TARGET_SAHF): New define.
6877 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
6878 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
6879 (x86_sahf): New global variable.
6880 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
6881 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
6882 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
6883 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
6884 for 64-bit.
6885 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
6886 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
6887 when expanding fcomi/sahf based tests.
6888 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
6889 expanding sahf based alternative. Emit sahf based sequence when
6890 optimizing for code size.
6891 * config/i386/i386.md (x86_sahf_1): Do not disable for
6892 TARGET_64BIT, enable for TARGET_SAHF.
6893
6894 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
6895
6896 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
6897 spurious whitespace from error message.
6898
6899 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
6900
6901 PR c++/30852
6902 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
6903
6904 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
6905
6906 * c-decl.c (grokdeclarator): Disable warnings for anonymous
6907 bitfields.
6908 * tree-sra.c (instantiate_element): Propagate disabled warnings
6909 from the element itself to the created variable.
6910
6911 2007-03-07 Richard Henderson <rth@redhat.com>
6912
6913 PR target/30848
6914 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
6915 silently fix up the stack in the case of a missing register.
6916
6917 2007-03-07 Paul Brook <paul@codesourcery.com>
6918
6919 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
6920
6921 2007-03-07 Joseph Myers <joseph@codesourcery.com>
6922
6923 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
6924 New.
6925 (phase1_vrs): Use them.
6926 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
6927 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
6928 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
6929 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
6930 __gnu_Unwind_Restore_WMMXC if required.
6931 (_Unwind_VRS_Pop): Implement iWMMXt support.
6932 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
6933 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
6934 gnu_Unwind_Save_WMMXC): Define.
6935
6936 2007-03-07 Richard Sandiford <richard@codesourcery.com>
6937
6938 * config/vxworks.h (vxworks_override_options): Declare.
6939 (VXWORKS_OVERRIDE_OPTIONS): Use it.
6940 * config/vxworks.c: Include target.h and toplev.h.
6941 (vxworks_override_options): New function.
6942 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
6943
6944 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
6945
6946 * config/s390/s390.c (override_options): Don't emit an error when
6947 -mstack-size is used without providing -mstack-guard.
6948 (s390_emit_prologue): Choose stack_guard value automatically if not
6949 provided via command line.
6950 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
6951
6952 2007-03-07 Richard Sandiford <richard@codesourcery.com>
6953
6954 * config/i386/i386.c (output_set_got): Add a GOT initialization
6955 sequence for VxWorks PIC.
6956 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
6957 around labels as well as symbols. Use gotoff_operand instead
6958 of local_symbolic_operand.
6959 (legitimize_pic_address): Use gotoff_operand instead of
6960 local_symbolic_operand. Use @GOT accesses for labels as
6961 well as symbols.
6962 (ix86_output_addr_diff_elt): Use PC-relative rather than
6963 GP-relative offsets for VxWorks PIC.
6964 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
6965 no_new_pseudos. Check whether the returned register is op0.
6966 * config/i386/i386.md (tablejump): Use PC-relative rather than
6967 GP-relative offsets for VxWorks PIC.
6968 * config/i386/predicates.md (gotoff_operand): New predicate.
6969
6970 2007-03-06 Richard Sandiford <richard@codesourcery.com>
6971
6972 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
6973 before defining.
6974 * config/vxworks-dummy.h: New file.
6975 * config/i386/i386.h: Include it.
6976
6977 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
6978
6979 * dwarf2out.c (is_inlined_entry_point): New
6980 (add_high_low_attributes): Emit DW_AT_entry_pc along with
6981 DW_AT_ranges if the first subblock is the entry point.
6982
6983 2007-03-06 David Daney <ddaney@avtrex.com>
6984
6985 * doc/install.texi (mips-*-*): Change recommended binutils
6986 version.
6987
6988 2007-03-06 Anatoly Sokolov <aesok@post.ru>
6989
6990 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
6991 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
6992 devices.
6993 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6994 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6995
6996 2007-03-06 Jan Hubicka <jh@suse.cz>
6997
6998 * errors.h (warning, error, fatal, internal_error): Mark as cold.
6999 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
7000 are hot.
7001 (probably_cold_bb_p): Cold functions are cold.
7002 (probably_never_executed_bb_p): Cold functions are cold.
7003 (tree_bb_level_predictions): Predict calls to cold functions as not
7004 taken.
7005 (compute_function_frequency): Check hot/cold attributes.
7006 * function.h (function_frequency): Update comments.
7007 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
7008 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
7009 (c_common_att): Add cold and hot.
7010
7011 * doc/extend.texi (hot,cold attributes): Document.
7012
7013 2007-03-06 Andrew Haley <aph@redhat.com>
7014
7015 * function.c (expand_function_end): Move blockage to just after we
7016 emit the label for the naked return from the function.
7017
7018 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7019
7020 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
7021 before redefining.
7022
7023 2007-03-06 Jan Hubicka <jh@suse.cz>
7024
7025 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
7026 loaded for constant large models. Non-large 64bit PIC can do.
7027 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
7028 * cmodel.h: Add LARGE PIC.
7029 * i386.md (UNSPEC_PLTOFF): New.
7030 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
7031 needed.
7032 (*call_1_rex64): Disable for large models.
7033 (*call_1_rex64_large): New.
7034 (*call_value_1_rex64): Disable for large models.
7035 (*call_value_1_rex64_large): New.
7036 (set_rip_rex4): New.
7037 (set_got_offset_rex64): New.
7038 * predicates.md (constant_call_address_operand): For large model
7039 constant calls are not possible.
7040 * i386-protos.h (construct_plt_address): Declare.
7041 * i386.c (override_options): Accept large models.
7042 (ix86_expand_prologue): Expand large PIC GOT pointer load.
7043 (legitimate_constant_p): Add new UNSPECs.
7044 (legitimate_pic_operand_p): Likewise.
7045 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
7046 (legitimize_pic_address): Do easy RIP relative way for TLS only for
7047 non-large model.
7048 (output_pic_addr_const): Add PLTOFF.
7049 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
7050 (ix86_expand_move): Legitimize pic address when in PIC mode.
7051 (construct_plt_address): New function.
7052 (ix86_expand_call): Offload the address to register and use GOT pointer
7053 for large model.
7054 * invoke.texi (mcmodel=large): Update documentation.
7055
7056 2007-03-06 Richard Henderson <rth@redhat.com>
7057
7058 * config/i386/i386.c (x86_use_leave, x86_push_memory,
7059 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
7060 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
7061 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
7062 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
7063 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
7064 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
7065 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
7066 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
7067 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
7068 x86_partial_reg_dependency, x86_memory_mismatch_stall,
7069 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
7070 x86_sse_partial_reg_dependency, x86_sse_split_regs,
7071 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
7072 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
7073 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
7074 x86_schedule, x86_use_bt, x86_pad_returns,
7075 x86_use_xchgb): Merge into ...
7076 (ix86_tune_features): ... here. New array.
7077 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
7078 x86_bswap): Merge into ...
7079 (ix86_arch_features): ... here. New array.
7080 (x86_3dnow_a): Remove.
7081 (x86_accumulate_outgoing_args): Make static.
7082 (x86_arch_always_fancy_math_387): Make static.
7083 (ix86_tune_mask, ix86_arch_mask): Move ...
7084 (override_options): ... to local variables here. Apply the
7085 appropriate mask to each element of ix86_arch_features and
7086 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
7087 as were done in the old macros.
7088 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
7089 * config/i386/i386.h (x86_use_leave, x86_push_memory,
7090 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
7091 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
7092 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
7093 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
7094 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
7095 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
7096 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
7097 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
7098 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
7099 x86_partial_reg_dependency, x86_memory_mismatch_stall,
7100 x86_accumulate_outgoing_args, x86_prologue_using_move,
7101 x86_epilogue_using_move, x86_decompose_lea,
7102 x86_arch_always_fancy_math_387, x86_shift1,
7103 x86_sse_partial_reg_dependency, x86_sse_split_regs,
7104 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
7105 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
7106 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
7107 x86_use_incdec, x86_pad_returns, x86_bswap,
7108 x86_partial_flag_reg_stall): Remove.
7109 (enum ix86_tune_indices): New.
7110 (ix86_tune_features): New.
7111 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
7112 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
7113 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
7114 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
7115 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
7116 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
7117 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
7118 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
7119 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
7120 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
7121 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
7122 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
7123 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
7124 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
7125 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
7126 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
7127 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
7128 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
7129 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
7130 TARGET_EXT_80387_CONSTANTS): Use it.
7131 (enum ix86_arch_indices): New.
7132 (ix86_arch_features): New.
7133 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
7134 TARGET_BSWAP): Use it.
7135 (ix86_tune_mask, ix86_arch_mask): Remove.
7136
7137 2007-03-06 Joseph Myers <joseph@codesourcery.com>
7138
7139 PR bootstrap/31020
7140 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
7141 Define using $${sysroot_headers_suffix}.
7142 * configure: Regenerate.
7143 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
7144 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
7145 defined.
7146 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
7147 * gcc.c (print_sysroot_headers_suffix): New.
7148 (option_map): Include --print-sysroot-headers-suffix.
7149 (display_help): Mention -print-sysroot-headers-suffix.
7150 (process_command): Handle -print-sysroot-headers-suffix.
7151 (do_spec_1): Append multilib directory to include-fixed path if
7152 sysroot suffixes in use.
7153 (main): Handle -print-sysroot-headers-suffix.
7154 * Makefile.in (start.encap): Don't depend on xlimits.h
7155 (xlimits.h): Remove.
7156 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
7157 limits.h for each multilib in fixinc_list.
7158 (fixinc_list, s-fixinc_list): New.
7159 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
7160 generate them for each multilib in fixinc_list.
7161 (stmp-fixproto): Use include-fixed. Run fixproto for each
7162 multilib in fixinc_list.
7163 (mostlyclean): Don't remove xlimits.h.
7164 (clean): Remove include-fixed.
7165 (real-install-headers-tar, real-install-headers-cpio,
7166 real-install-headers-cp): Don't copy include, only include-fixed.
7167 (install-mkheaders): Depend on fixinc_list. Don't depend on
7168 xlimits.h. Save limits.h files for each multilib in fixinc_list.
7169 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
7170 SYSTEM_HEADER_DIR setting in mkheaders.conf.
7171
7172 2007-03-06 Jan Hubicka <jh@suse.cz>
7173
7174 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
7175 NANs easilly.
7176
7177 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7178
7179 * configure.ac: Allow tm_file to contain build-directory files.
7180 * configure: Regenerate.
7181 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
7182 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
7183 * config/m68k/print-sysroot-suffix.sh: New file.
7184
7185 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7186
7187 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
7188 of pic_offset_table_rtx if reload_completed.
7189 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
7190 PIC_OFFSET_TABLE_REGNUM.
7191 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
7192 return true.
7193 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
7194 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
7195
7196 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7197
7198 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
7199 functions that call eh_return.
7200
7201 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7202
7203 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
7204 functions that need a constant pool.
7205
7206 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7207
7208 PR target/28181
7209 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
7210 (m68k_preferred_reload_class): Likewise.
7211 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
7212 (SECONDARY_RELOAD_CLASS): Define.
7213 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
7214 (LIMIT_RELOAD_CLASS): Delete.
7215 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
7216 registers from storing bytes.
7217 (m68k_secondary_reload_class): New function.
7218 (m68k_preferred_reload_class): Likewise.
7219
7220 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7221
7222 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
7223 leaf functions.
7224 (m68k_expand_prologue): Likewise.
7225
7226 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7227
7228 * config/m68k/m68k-protos.h (output_sibcall): Declare.
7229 (mips_expand_epilogue): Add a bool parameter.
7230 (m68k_legitimize_sibcall_address): Declare.
7231 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
7232 (m68k_expand_epilogue): Add a parameter to select between sibling
7233 and normal epilogues. Only generate a return for the latter.
7234 (m68k_ok_for_sibcall_p): New function.
7235 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
7236 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
7237 (sibcall_value, *sibcall_value): Likewise.
7238 (*call, *call_value): Require !SIBLING_CALL_P.
7239 (epilogue): Update call to m68k_expand_epilogue.
7240 (sibcall_epilogue): New pattern.
7241 * config/m68k/predicates.md (const_call_operand): Say that this
7242 predicate applies to sibling calls too.
7243 (sibcall_operand): New predicate.
7244
7245 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7246
7247 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
7248 alternatives as movsi_cf.
7249 (movsf_cf_hard): Add commentary.
7250
7251 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
7252 Richard Sandiford <richard@codesourcery.com>
7253
7254 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
7255 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
7256 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
7257 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
7258 as being live on exit from an interrupt function.
7259 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
7260 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
7261 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
7262 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
7263 (m68k_interrupt_function_p): Globalize.
7264 (m68k_compute_frame_layout): Remove reverse mask code.
7265 (m68k_emit_movem, m68k_set_frame_related): New functions.
7266 (m68k_output_function_prologue): Delete in favor of...
7267 (m68k_expand_prologue): ...this new function.
7268 (m68k_output_function_epilogue): Delete in favor of...
7269 (m68k_expand_epilogue): ...this new function.
7270 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
7271 functions.
7272 (print_operand): Handle %?.
7273 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
7274 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
7275 (prologue, epilogue): New patterns.
7276 (return): Turn into a define_expand.
7277 (*return): New pattern, derived from old "return" pattern. Use rte
7278 rather than rts for interrupt functions. Only use rtd if the pop
7279 count is nonzero.
7280 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
7281 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
7282 (link, *link, unlink, *unlink, load_got): Likewise.
7283
7284 2007-03-06 Richard Sandiford <richard@codesourcery.com>
7285
7286 PR target/23482
7287 PR target/17114
7288 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
7289 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
7290 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
7291 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
7292 and m68k_matches_u_p.
7293 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
7294 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
7295 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
7296 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
7297 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
7298 (REG_STRICT_P): New macro.
7299 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
7300 PCREL_GENERAL_OPERAND_OK.
7301 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
7302 m68k_legitimate_base_reg_p.
7303 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
7304 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
7305 (PIC_CASE_VECTOR_ADDRESS): Update comment.
7306 * config/m68k/m68k.c (m68k_address): New structure.
7307 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
7308 (m68k_decompose_index, m68k_legitimate_constant_address_p)
7309 (m68k_jump_table_ref_p, m68k_decompose_address)
7310 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
7311 (m68k_matches_u_p): New functions.
7312 (print_operand_address): Rewrite to use m68k_decompose_index.
7313
7314 2007-03-05 David Taylor <dtaylor@emc.com>
7315
7316 * gcc.c: Correct copyright date in --version output.
7317
7318 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7319
7320 * pa.md: In unamed move patterns, disparge copies between general
7321 and floating point registers using '?' modifier. Don't include 'f'
7322 constraint for register preferences in DImode, SImode, HImode and
7323 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
7324 Remove constraints for copies between general and floating registers
7325 in soft-float DFmode pattern.
7326 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
7327 floating register.
7328 (movsf): Likewise.
7329
7330 2007-03-05 Mike Stump <mrs@apple.com>
7331
7332 * c-common.c (targetcm): Add.
7333 * c-opts.c (c_common_handle_option): Handle language specific
7334 target options.
7335 * opts.c (handle_option): Verify language for target options, if
7336 any are given.
7337 * opth-gen.awk: Add CL_LANG_ALL.
7338 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
7339 (TARGETCM_INITIALIZER): Add.
7340 * target.h (struct gcc_targetcm): Add.
7341 (targetcm): Add.
7342 * targhooks.c (default_handle_c_option): Add.
7343 * targhooks.h (default_handle_c_option): Add.
7344 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
7345
7346 * config/darwin.opt (iframework): Add.
7347 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
7348 * config/darwin-c.c (handle_c_option): Add.
7349 (TARGET_HANDLE_C_OPTION): Add.
7350 (targetcm): Add.
7351 * doc/invoke.texi (Darwin Options): Add -iframework.
7352
7353 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7354
7355 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
7356 conversion.
7357
7358 2007-03-05 Ian Lance Taylor <iant@google.com>
7359
7360 * c.opt (fgnu89-inline): New option.
7361 * c-opts.c (c_common_post_options): Set default value for
7362 flag_gnu89_inline.
7363 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
7364 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
7365 inline functions.
7366 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
7367 (grokdeclarator, start_function): Likewise.
7368 * c-cppbuiltin.c (c_cpp_builtins): Define either
7369 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
7370 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
7371 (C Dialect Options): Document -fgnu89-inline.
7372 * doc/extend.texi (Function Attributes): Explain what the
7373 gnu_inline attribute does.
7374 * doc/cpp.texi (Common Predefined Macros): Document
7375 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
7376
7377 2007-03-05 Ian Lance Taylor <iant@google.com>
7378
7379 PR tree-optimization/31034
7380 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
7381 half-range if the other side is an overflow infinity.
7382
7383 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
7384
7385 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
7386 (bfin*-linux-uclibc*): New configuration.
7387 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
7388 defining.
7389 * config/bfin/linux.h: New file.
7390 * config/bfin/libgcc-bfin.ver: New file.
7391 * config/bfin/t-bfin-uclinux: New file.
7392 * config/bfin/t-bfin-linux: New file.
7393 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
7394 (TARGET_OS_CPP_BUILTINS): New macro.
7395
7396 2007-03-05 Richard Guenther <rguenther@suse.de>
7397
7398 * fold-const.c (fold_binary): Remove duplicate folding
7399 of comparison of non-null ADDR_EXPR against null.
7400
7401 2007-03-05 Richard Guenther <rguenther@suse.de>
7402 Dorit Nuzman <dorit@il.ibm.com>
7403
7404 PR tree-optimization/26420
7405 * tree-vectorizer.c (vectorize_loops): Bail out early if there
7406 are no loops in the function. Only print the number of
7407 vectorized loops if it is greater than zero or we are supposed
7408 to print information about unvectorized loops.
7409
7410 2007-03-05 Revital Eres <eres@il.ibm.com>
7411
7412 * gcc.dg/var-expand1.c: New test.
7413 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
7414 when an accumulator is expanded.
7415
7416 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7417
7418 PR other/30465
7419 * c-common.c (convert_and_check): Don't give warnings for
7420 conversion if 'expr' already overflowed.
7421
7422 2007-03-04 Roger Sayle <roger@eyesopen.com>
7423
7424 PR middle-end/30744
7425 * fold-const.c (fold_comparison): Enforce type consistency when
7426 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
7427
7428 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
7429
7430 * tree-ssa-address.c (create_mem_ref): Do not put an expression
7431 containing a cast to the base of TARGET_MEM_REF.
7432
7433 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
7434
7435 * tree.c (tree_contains_struct_check_failed): Remove spurious
7436 whitespace from error message.
7437
7438 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
7439
7440 PR target/30406
7441 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
7442 instead of precision.
7443
7444 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
7445 Nathan Sidwell <nathan@codesourcery.com>
7446
7447 * emit-rtl.c (find_auto_inc): New.
7448 (try_split): recreate REG_INC notes,
7449 Use regular for loops rather than whiles.
7450
7451 2007-03-03 Andreas Schwab <schwab@suse.de>
7452
7453 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
7454 * configure: Regenerate.
7455
7456 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7457
7458 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
7459 flag_rounding_math, not flag_unsafe_math_optimizations.
7460
7461 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
7462 fold_build2.
7463 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
7464 alpha_fold_vector_minmax): Likewise.
7465 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7466 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7467
7468 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
7469
7470 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
7471 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
7472 if the lhs has side-effects.
7473 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
7474
7475 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
7476
7477 * config/i386/i386.h (TUNEMASK): Remove define.
7478 (ARCHMASK): Remove define.
7479 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
7480 Use ix86_arch_mask variable instead of ARCHMASK.
7481 * config/i386/i386.c (override_options): Ditto.
7482 (standard_80387_constant_p): Ditto.
7483
7484 2007-03-02 Ian Lance Taylor <iant@google.com>
7485
7486 Used signed infinities in VRP.
7487 * tree-vrp.c (uses_overflow_infinity): New static function.
7488 (supports_overflow_infinity): New static function.
7489 (make_overflow_infinity): New static function.
7490 (negative_overflow_infinity): New static function.
7491 (positive_overflow_infinity): New static function.
7492 (is_negative_overflow_infinity): New static function.
7493 (is_positive_overflow_infinity): New static function.
7494 (is_overflow_infinity): New static function.
7495 (overflow_infinity_range_p): New static function.
7496 (compare_values_warnv): New function split out of compare_values.
7497 (compare_value): Call it.
7498 (set_value_range_to_nonnegative): Add overflow_infinity
7499 parameter. Change caller.
7500 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
7501 Change callers.
7502 (vrp_expr_computes_nonzero): Likewise.
7503 (compare_ranges, compare_range_with_value): Likewise.
7504 (compare_name_with_value, compare_names): Likewise.
7505 (vrp_evaluate_conditional): Likewise.
7506 (set_value_range): Handle infinity
7507 (vrp_operand_equal_p, operand_less_p): Likewise.
7508 (extract_range_from_assert): Likewise.
7509 (vrp_int_const_binop): Likewise.
7510 (extract_range_from_binary_expr): Likewise.
7511 (extract_range_from_unary_expr): Likewise.
7512 (extract_range_from_comparison): Likewise.
7513 (extract_range_from_expr): Likewise.
7514 (dump_value_range): Likewise.
7515 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
7516 (test_for_singularity): Likewise.
7517 (vrp_int_const_binop): Remove inline qualifier.
7518 (adjust_range_with_scev): Add comment.
7519 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
7520
7521 2007-03-02 Diego Novillo <dnovillo@redhat.com>
7522
7523 * tree-ssa-structalias.c (could_have_pointers): Tidy.
7524 (get_constraint_for): Likewise.
7525 (do_structure_copy): Likewise.
7526 (find_func_aliases): Fix references to MODIFY_EXPR.
7527 (intra_create_variable_infos): Tidy.
7528 * tree-ssa-operands.c (add_virtual_operand): Add argument
7529 IS_CALL_SITE.
7530 When adding members of alias sets, if IS_CALL_SITE is true and
7531 the symbol is not call-clobbered, skip it.
7532 Adjust all callers.
7533
7534 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
7535
7536 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
7537 entry by means of emit_insn_at_entry.
7538
7539 2007-03-02 Richard Henderson <rth@redhat.com>
7540
7541 * expr.h (promoted_input_arg): Remove decl.
7542 * function.c (promoted_input_arg): Merge into ...
7543 * combine.c (setup_incoming_promotions): ... only caller.
7544 Rearrange to avoid double loop.
7545
7546 2007-03-02 Ben Elliston <bje@au.ibm.com>
7547 Peter Bergner <bergner@vnet.ibm.com>
7548 Janis Johnson <janis187@us.ibm.com>
7549
7550 * config/rs6000/dfp.md: New file.
7551 * config/rs6000/rs6000.md: Include dfp.md.
7552 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
7553 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
7554 and TDmode decimal float modes in FP registers.
7555 (num_insns_constant): Likewise.
7556 (rs6000_legitimate_offset_address_p): Likewise.
7557 (rs6000_legitimize_address): Likewise.
7558 (rs6000_legitimize_reload_address): Likewise.
7559 (rs6000_legitimate_address): Likewise.
7560 (rs6000_emit_move): Likewise.
7561 (function_arg_boundary): Likewise.
7562 (function_arg_advance): Likewise.
7563 (rs6000_darwin64_record_arg_recurse): Likewise.
7564 (function_arg): Likewise.
7565 (rs6000_gimplify_va_arg): Likewise.
7566 (rs6000_split_multireg_move): Likewise.
7567 (rs6000_output_function_epilogue): Likewise.
7568 (rs6000_output_function_epilogue): Likewise.
7569 (rs6000_register_move_cost): Likewise.
7570 (rs6000_function_value): Likewise.
7571 (rs6000_libcall_value): Likewise.
7572
7573 2007-03-02 Richard Sandiford <richard@codesourcery.com>
7574
7575 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
7576
7577 2007-03-02 Richard Sandiford <richard@codesourcery.com>
7578
7579 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
7580 Use $MULTIDIR to choose between the kernel and RTP headers,
7581 and use $WIND_BASE and $WIND_USR to locate them.
7582
7583 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
7584
7585 * config/i386/i386.c (override_options): Put initialization of
7586 ix86_tune_mask and ix86_arch_mask to the correct place.
7587
7588 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
7589 Michael Meissner <michael.meissner@amd.com>
7590
7591 PR target/31019
7592 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
7593 (ARCHMASK): Define.
7594 (TARGET_CMOVE): Use ARCHMASK.
7595 (TARGET_CMPXCHG): Ditto.
7596 (TARGET_CMPXCHG8B): Ditto.
7597 (TARGET_XADD): Ditto.
7598 (TARGET_BSWAP): Ditto.
7599 * config/i386/i386.c (ix86_tune_mask): New global variable.
7600 (ix86_arch_mask): Ditto.
7601 (override_options): Initialize ix86_tune_mask and
7602 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
7603 target_flags.
7604
7605 2007-03-02 Ben Elliston <bje@au.ibm.com>
7606
7607 PR 30992
7608 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
7609
7610 2007-03-02 Joseph Myers <joseph@codesourcery.com>
7611
7612 * target.h (init_dwarf_reg_sizes_extra): New target hook.
7613 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
7614 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
7615 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
7616 hook.
7617 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
7618 rs6000_init_dwarf_reg_sizes_extra): New.
7619 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
7620 SPE register high parts.
7621
7622 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
7623
7624 * Makefile.in: Add install-pdf target as
7625 copied from automake v1.10 rules.
7626 * configure.ac: Add install-pdf to target list.
7627 * configure: Regenerate.
7628
7629 2007-03-01 Paul Brook <paul@codesourcery.com>
7630
7631 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
7632 modes to LDRD for DImode.
7633 (output_move_double): Fixup out of range ldrd/strd.
7634 (vfp_secondary_reload_class): Rename...
7635 (coproc_secondary_reload_class): ... to this. Add wb argument.
7636 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
7637 coproc_secondary_reload_class for CLASS_IWMMXT.
7638 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
7639 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
7640
7641 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
7642
7643 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
7644 factor by the estimated number of iterations.
7645 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
7646 prefetch latency.
7647
7648 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
7649 decode_caches_intel, detect_caches_intel): New functions.
7650 (host_detect_local_cpu): Use detect_caches_amd and
7651 detect_caches_intel.
7652
7653 2007-03-01 Richard Henderson <rth@redhat.com>
7654
7655 * expr.c (emit_move_complex_push): Export.
7656 (emit_move_complex_parts): Split out from ...
7657 (emit_move_complex): ... here.
7658 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
7659 * config/i386/i386.md (movcdi): New.
7660
7661 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
7662
7663 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
7664 size of mode1 to check for tieable modes in MMX case.
7665
7666 2007-03-01 Richard Sandiford <richard@codesourcery.com>
7667
7668 * Makefile.in (rtlanal.o): Depend on tree.h.
7669 * rtl.h (offset_within_section_p, split_const): Declare.
7670 * rtlanal.c: Include tree.h.
7671 (offset_within_block_p): New function, taken from
7672 mips_offset_within_object_p.
7673 (split_const): New function, taken from mips_split_const.
7674 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
7675 Declare.
7676 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
7677 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
7678 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
7679 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7680 (m68k_illegitimate_symbolic_constant_p): New function.
7681 * config/m68k/m68k.md (movsi): Remove misleading predicates.
7682 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
7683 symbolic constant that might be outside the symbol's section,
7684 move the symbol first and then add the offset.
7685 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
7686 Override.
7687 * config/mips/mips.c (mips_split_const): Delete.
7688 (mips_offset_within_object_p): Delete.
7689 (mips_symbolic_constant_p): Use offset_within_section_p and
7690 split_const instead of mips_offset_within_object_p and
7691 mips_split_const.
7692 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
7693 (mips_legitimize_const_move, print_operand_reloc)
7694 (mips_dangerous_for_la25_p): Use split_const instead of
7695 mips_split_const.
7696
7697 2007-02-28 Eric Christopher <echristo@apple.com>
7698
7699 * Makefile.in (install-include-dir): Don't rm -rf include.
7700
7701 2007-02-28 Richard Guenther <rguenther@suse.de>
7702
7703 PR middle-end/30364
7704 * fold-const.c (fold_binary): Do not associate expressions
7705 with more than one variable for integer types that do not wrap.
7706
7707 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
7708
7709 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
7710 Delete, and replace with...
7711 (fold_builtin_call_array): This. Update callers to use it.
7712 * fold-const.c (fold_build_call_list): Delete, and replace with...
7713 (fold_build_call_array): This.
7714 (fold_build_call_list_initializer): Delete, and replace with...
7715 (fold_build_call_array_initializer): This.
7716 * tree.h: Update declarations to reflect above changes.
7717
7718 * c-typeck.c (build_function_call): Store converted arguments
7719 in a stack-allocated array instead of building a list.
7720 (convert_arguments): Store arguments in the array passed in as an
7721 argument, and return the actual number of arguments.
7722 * c-format.c: (check_function_format): Pass arguments in an
7723 array instead of a list.
7724 * c-common.c (check_function_nonnull): Likewise.
7725 (check_function_sentinel): Likewise.
7726 (check_function_arguments): Likewise.
7727 * c-common.h: Update declarations to reflect above changes.
7728
7729 2007-02-28 Jan Hubicka <jh@suse.cz>
7730
7731 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
7732 PRED_NEGATIVE_RETURN): Update outcomes.
7733
7734 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
7735
7736 * calls.c (emit_library_call_value_1): Handle partial registers
7737 correctly when building up CALL_INSN_FUNCTION_USAGE.
7738
7739 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7740
7741 * pa/predicates.md (move_src_operand): Allow zero for mode.
7742 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
7743 move pattern.
7744
7745 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
7746
7747 PR target/30970
7748 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
7749 *movv2df_internal): Enable pattern only for valid operand
7750 combinations.
7751 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
7752 tie only 128bit modes. For MMX registers, tie only 64bit modes.
7753
7754 2007-02-27 Mike Stump <mrs@apple.com>
7755
7756 * config/darwin-crt3.c: Avoid compilation when compiling for a
7757 kext multilib.
7758
7759 2007-02-27 Joseph Myers <joseph@codesourcery.com>
7760
7761 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
7762 FIXED_INCLUDE_DIR.
7763 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
7764 for fixed headers and limits.h.
7765 (install-include-dir, install-headers-tar, install-headers-cpio,
7766 install-headers-cp, real-install-headers-tar,
7767 real-install-headers-cpio, real-install-headers-cp): Handle
7768 include-fixed as well as include.
7769 (install-mkheaders): Don't install files that go only in include
7770 not include-fixed.
7771 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
7772 from GCC_INCLUDE_DIR.
7773 * gcc.c (process_command): Remove special -BstageN/ handling.
7774 (do_spec_1): Add include-fixed directories.
7775
7776 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
7777
7778 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
7779 _smulsi3_highpart.
7780 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
7781 New functions.
7782 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
7783 patterns.
7784
7785 2007-02-27 Mark Mitchell <mark@codesourcery.com>
7786
7787 * c-common.c (get_priority): Add check for
7788 SUPPORTS_INIT_PRIORITY.
7789
7790 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
7791
7792 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
7793
7794 * config/bfin/bfin.c: Include "cfglayout.h".
7795 (MAX_LSETUP_DISTANCE): New macro.
7796 (struct loop_info): New members incoming, incoming_src and
7797 incoming_dest. Delete member predecessor.
7798 (length_for_loop): New function.
7799 (bfin_optimize_loop): Handle more different loop structures.
7800 (bfin_discover_loop): Rework detection of predecessor blocks by
7801 examining incoming edges.
7802 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
7803 bfin_reorg_loops.
7804 (bfin_reorder_loops): New function.
7805 (bfin_reorg_loops): Use these three new functions.
7806
7807 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
7808 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
7809 (CONSTRAINT_LEN): Add entry for 'q'.
7810 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
7811 Add 'q' constraints.
7812 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
7813 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
7814
7815 * config/bfin/bfin.md (add_with_carry): New pattern.
7816 (s_or_u, su_optab, su_modifier): New code macros/attrs.
7817 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
7818 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
7819 support unsigned multiplies too. Removed incorrect commutativity from
7820 operand 1 constraint where appropriate.
7821 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
7822 patterns.
7823 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
7824 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
7825 New patterns.
7826 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
7827 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
7828 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
7829 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
7830 usmulhisi_hh_huh): New patterns.
7831
7832 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
7833 lshifthi3): Fix output template to use half reg for operand 2.
7834
7835 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
7836 instead of R2.
7837
7838 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
7839
7840 2007-02-27 Andreas Schwab <schwab@suse.de>
7841
7842 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
7843
7844 2007-02-27 Jan Hubicka <jh@suse.cz>
7845
7846 * predict.c (last_basic_block_p): Remove.
7847 (tree_estimate_probability): Update return heuristic for commonized
7848 return blocks.
7849
7850 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
7851
7852 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
7853
7854 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
7855
7856 * doc/include/gcc-common.texi (versionsubtitle): New macro.
7857 * doc/cpp.texi: Standardize title page.
7858 * doc/cppinternals.texi: Likewise.
7859 * doc/gcc.texi: Standardize title page, remove version number
7860 from copyright page.
7861 * doc/gccint.texi: Likewise.
7862 * doc/install.texi: Standardize title page, add table of
7863 contents.
7864
7865 2007-02-26 Jan Hubicka <jh@suse.cz>
7866
7867 * predict.def: Set outcomes according to more recent results.
7868 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
7869 Remove dead predictors.
7870 * predict.c (return_prediction): Fix pasto.
7871
7872 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
7873
7874 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
7875 change; avoid a memory leak when returning early.
7876
7877 2007-02-26 Mark Mitchell <mark@codesourcery.com>
7878
7879 * c-decl.c (static_ctors): Move to c-common.c.
7880 (static_dtors): Likewise.
7881 (finish_function): Use c_record_cdtor_fn.
7882 (build_cdtor): Move to c-common.c.
7883 (c_write_global_declarations): Use c_build_cdtor_fns.
7884 * c-common.h (static_ctors): Declare.
7885 (static_dtors): Likewise.
7886 (c_record_cdtor_fn): Likewise.
7887 (c_build_cdtor_fns): Likewise.
7888 * c-common.c (static_ctors): New variable.
7889 (static_dtors): Likewise.
7890 (c_record_cdtor_fn): New function.
7891 (build_cdtor): Move from c-decl.c
7892 (c_build_cdtor_fns): New function.
7893
7894 * output.h (assemble_addr_to_section): Declare.
7895 (get_cdtor_priority_section): Likewise.
7896 * varasm.c (assemble_addr_to_section): New function.
7897 (get_cdtor_priority_section): Likewise.
7898 (default_named_section_asm_out_destructor): Use them.
7899 (destor_dtor_section_asm_out_destructor): Likewise.
7900 (default_named_section_asm_out_constructor): Likewise.
7901 (default_ctor_section_asm_out_constructor): Likewise.
7902 * config.gcc (*-*-vxworks*): Include vxworks.o.
7903 * config/t-vxworks (vxworks.o): New target.
7904 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
7905 (TARGET_ASM_CONSTRUCTOR): Define.
7906 (TARGET_ASM_DESTRUCTOR): Likewise.
7907 (vxworks_asm_out_constructor): Declare.
7908 (vxworks_asm_out_destructor): Likewise.
7909
7910 * c-common.c (get_priority): Check that we have not just an
7911 INTEGER_CST, but an integer constant with integeral type.
7912
7913 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
7914
7915 PR tree-optimization/30938
7916 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
7917 use &dt[nargs-1] instead of &dt[nargs] in the call to
7918 vect_is_simple_use().
7919
7920 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
7921
7922 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
7923 from register elimination as PRE_MODIFY / POST_MODIFY increments.
7924 Do not attempt to handle MEM inside auto-inc expressions.
7925 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
7926 of a register modified by an auto-inc expression. However, do handle
7927 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
7928 (elimination_effects): Prohibit elimination of a register modified
7929 by an auto-inc expression. Disable register elimination rules whose
7930 target register is modified by an auto-inc expression with variable
7931 increment.
7932
7933 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
7934
7935 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
7936 off-by-one error.
7937 (array_at_struct_end_p): New function.
7938 (idx_infer_loop_bounds): Use it.
7939 (estimate_numbers_of_iterations_loop): Export.
7940 * predict.c (predict_loops): Use estimated_loop_iterations_int.
7941 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
7942 (tree_estimate_probability): Call record_loop_exits.
7943 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
7944 (estimated_loop_iterations, estimated_loop_iterations_int,
7945 estimated_loop_iterations_tree): New functions.
7946 (analyze_siv_subscript_cst_affine,
7947 compute_overlap_steps_for_affine_1_2,
7948 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
7949 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
7950 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
7951 (PRED_LOOP_ITERATIONS_GUESSED): New.
7952 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
7953 * cfgloop.h (estimate_numbers_of_iterations_loop,
7954 estimated_loop_iterations_int): Declare.
7955
7956 2007-02-25 Mark Mitchell <mark@codesourcery.com>
7957
7958 * doc/extend.texi: Document optional priority argument to
7959 constructors and destructors.
7960 * tree.c (init_priority_for_decl): Adjust GTY markers.
7961 (init_ttree): Use priority-info hash functions for
7962 init_priority_for_decl.
7963 (tree_map_eq): Rename to ...
7964 (tree_map_base_eq): ... this.
7965 (tree_map_marked_p): Rename to ...
7966 (tree_map_base_marked_p): ... this.
7967 (tree_map_base_hash): New function.
7968 (decl_init_priority_lookup): Rework.
7969 (decl_fini_priority_lookup): New function.
7970 (decl_priority_info): New function.
7971 (decl_init_priority_insert): Use it.
7972 (decl_fini_priority_insert): Likewise.
7973 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
7974 hierarchy.
7975 (decl_restrict_base_insert): Likewise.
7976 (decl_debug_expr_insert): Likewise.
7977 (decl_value_expr_lookup): Likewise.
7978 (decl_value_expr_insert): Likewise.
7979 * tree.h (priority_type): New type.
7980 (decl_init_priority_lookup): Use priority_type.
7981 (decl_fini_priority_lookup): New function.
7982 (decl_init_priority_insert): Use priority_type.
7983 (decl_fini_priority_insert): New function.
7984 (DECL_HAS_INIT_PRIORITY): Tweak comments.
7985 (DECL_INIT_PRIORITY): Likewise.
7986 (SET_DECL_INIT_PRIORITY): Add comment.
7987 (DECL_FINI_PRIORITY): New macro.
7988 (SET_DECL_FINI_PRIORITY): Likewise.
7989 (DEFAULT_INIT_PRIORITY): Document.
7990 (MAX_INIT_PRIORITY): Likewise.
7991 (MAX_RESERVED_INIT_PRIORITY): Likewise.
7992 (tree_map_base): New type.
7993 (tree_map_base_eq): New function.
7994 (tree_map_base_hash): Likewise.
7995 (tree_map_base_marked_p): Likewise.
7996 (tree_map): Inherit from tree_map_base.
7997 (tree_map_eq): Make it a macro.
7998 (tree_map_marked_p): Likewise.
7999 (tree_int_map): Inherit from tree_map_base.
8000 (tree_int_map_eq): Make it a macro.
8001 (tree_int_map_hash): Likewise.
8002 (tree_int_map_marked_p): Likewise.
8003 (tree_priority_map): New type.
8004 (tree_priority_map_eq): New macro.
8005 (tree_priority_map_hash): Likewise.
8006 (tree_priority_map_marked_p): Likewise.
8007 * varasm.c (emults_decl): Adjust for refactoring of tree_map
8008 hierarchy.
8009 (emutls_common_1): Likewise.
8010 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
8011 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
8012 of tree_map hierarchy.
8013 * tree-cfg.c (move_stmt_r): Likewise.
8014 (new_label_mapper): Likewise.
8015 * c-tree.h (c_expand_body): Move to ...
8016 * c-common.h (c_expand_body): ... here.
8017 * c-decl.c (c_expand_body): Move to ...
8018 * c-common.c (c_expand_body): ... here.
8019 (c_common_attribute_table): Allow 1 argument for the constructor
8020 and destructor attributes.
8021 (get_priority): New function.
8022 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
8023 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
8024
8025 2007-02-24 Jan Hubicka <jh@suse.cz>
8026
8027 PR middle-end/30509
8028 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
8029
8030 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
8031 Jan Hubicka <jh@suse.cz>
8032
8033 PR target/30778
8034 * i386.c (counter_mode): New function.
8035 (expand_set_or_movmem_via_loop): Use it.
8036 (expand_movmem_epilogue): Likewise; fix pasto.
8037 (ix86_expand_movmem): Do emit guard even for constant counts.
8038 (ix86_expand_setmem): Likewise.
8039
8040 2007-02-25 Nick Clifton <nickc@redhat.com>
8041
8042 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
8043 (JUMP_TABLES_IN_TEXT_SECTION): Define.
8044
8045 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
8046
8047 PR target/30770
8048 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
8049 count argument with 0x10, not with 0x16.
8050 (expand_setmem_epilogue): Ditto.
8051
8052 2007-02-24 Mike Stump <mrs@apple.com>
8053
8054 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
8055 symbols.
8056
8057 2007-02-24 Richard Guenther <rguenther@suse.de>
8058
8059 PR middle-end/30951
8060 * fold-const.c (fold_binary): Fold x +- CST op x for
8061 EQ_EXPR and NE_EXPR.
8062
8063 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8064
8065 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
8066
8067 2007-02-24 Jan Hubicka <jh@suse.cz>
8068
8069 * cgraphunit.c (decide_is_function_needed): Honor
8070 -fkeep-inline-functions.
8071
8072 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8073
8074 * builtins.c (fold_builtin_modf): New.
8075 (fold_builtin_2): Use it.
8076
8077 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
8078
8079 * loop-iv.c (implies_p): Detect additional cases where A implies B.
8080 (determine_max_iter): Take additional LOOP arg; all callers changed.
8081 Lose broken logic dealing with PLUS. Try to limit the upper bound by
8082 one using simplifications.
8083 (simplify_using_initial_values): Return if the expression becomes
8084 invalid due to altered regs.
8085
8086 2007-02-23 DJ Delorie <dj@redhat.com>
8087
8088 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
8089
8090 2007-02-23 Mike Stump <mrs@apple.com>
8091
8092 * tlink.c (scan_linker_output): Parse linker messages from
8093 darwin9's linker better.
8094
8095 2007-02-23 Steve Ellcey <sje@cup.hp.com>
8096
8097 PR debug/29614
8098 * varpool.c (varpool_assemble_pending_decls): Set
8099 varpool_last_needed_node to null.
8100
8101 2007-02-23 DJ Delorie <dj@redhat.com>
8102
8103 * config/i386/i386.c (ix86_data_alignment): Don't specify an
8104 alignment bigger than the object file can handle.
8105
8106 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
8107
8108 PR target/30825
8109 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
8110 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
8111 (*movsf_1): Penalize MMX moves.
8112
8113 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
8114
8115 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
8116 2^32-1 or more times unless flag_unsafe_loop_optimizations.
8117
8118 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
8119
8120 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8121
8122 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
8123 (fold_builtin_1): Use them.
8124 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
8125 BUILT_IN_SIGNIFICAND.
8126
8127 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
8128
8129 * config/i386/i386.c (bdesc_1arg): Initialize
8130 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
8131 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
8132 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
8133 and IX86_BUILTIN_MOVSLDUP.
8134
8135 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
8136
8137 PR rtl-optimization/30841
8138 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
8139
8140 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8141
8142 * builtins.c (fold_builtin_frexp): New.
8143 (fold_builtin_2): Use it.
8144
8145 2007-02-22 Mark Mitchell <mark@codesourcery.com>
8146
8147 * doc/invoke.texi (Spec Files): Document getenv spec function.
8148
8149 * gcc.c (getenv_spec_function): New function.
8150 (static_spec_functions): Add it.
8151 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
8152 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
8153 header files.
8154
8155 2007-02-22 Michael Matz <matz@suse.de
8156
8157 PR c++/29433
8158 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
8159 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
8160
8161 2007-02-22 Ian Lance Taylor <iant@google.com>
8162
8163 PR debug/30898
8164 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
8165 (mem_loc_descriptor): Call it.
8166
8167 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
8168 Ira Rosen <irar@il.ibm.com>
8169
8170 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
8171
8172 2007-02-22 Ira Rosen <irar@il.ibm.com>
8173
8174 PR tree-optimization/30843
8175 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
8176 stores only after all the group is vectorized.
8177
8178 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
8179
8180 PR tree-optimization/30858
8181 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
8182 in the reduction cycle have a single use in the loop.
8183 * tree-vectorizer.h (relevant): Add documentation.
8184
8185 2007-02-20 Mike Stump <mrs@apple.com>
8186
8187 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
8188 * configure: Regenerate.
8189
8190 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8191
8192 Change the defaults of some parameters and options.
8193 * config/spu/spu-protos.h (spu_optimization_options): Declare.
8194 * config/spu/spu.c (spu_optimization_options): Add.
8195 (spu_override_options): Change params in spu_optimization_options.
8196 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
8197
8198 Register 127 is only 16 byte aligned when used as a frame pointer.
8199 * config/spu/spu-protos.h (spu_init_expanders): Declare.
8200 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
8201 HARD_FRAME_POINTER_REGNUM.
8202 (spu_legitimate_address): Use regno_aligned_for_reload.
8203 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
8204 aligned when frame_pointer_needed is true.
8205 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
8206 to 8 bits.
8207 * config/spu/spu.h (INIT_EXPANDERS): Define.
8208
8209 Make sure shift and rotate instructions have valid immediate operands.
8210 * config/spu/predicates.md (spu_shift_operand): Remove.
8211 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
8212 * config/spu/constraints.md (W, O): Extend range.
8213 * config/spu/spu.md (umask, nmask): Define.
8214 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
8215 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
8216 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
8217 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
8218 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
8219 (lshr<mode>3_reg): Fix rtl description.
8220
8221 Make sure mulhisi immediate operands are valid.
8222 * config/spu/predicates.md (imm_K_operand): Add.
8223 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
8224
8225 Generate constants using fsmbi and andi.
8226 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
8227 (print_operand, spu_split_immediate, classify_immediate,
8228 fsmbi_const_p): Handle IC_FSMBI2.
8229
8230 Correctly handle a CONST_VECTOR containing symbols.
8231 * config/spu/spu.c (print_operand): Handle HIGH correctly.
8232 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
8233 (immediate_load_p): Allow symbols that use 2 instructions to create.
8234 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
8235 with symbols when flag_pic is set.
8236 (const_vector_immediate_p): New.
8237 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
8238 accept a CONST_VECTOR with symbols.
8239 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
8240 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
8241 correctly.
8242 * config/spu/spu.md (high, low): Delete.
8243 (low_<mode>): Define.
8244
8245 Remove INTRmode and INTR_REGNUM, which didn't work.
8246 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
8247 of INTR_REGNUM.
8248 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
8249 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
8250 peephole2 pattern): Don't use INTR or 131.
8251 (movintrcc): Delete.
8252 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
8253 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
8254 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
8255 (UNSPEC_SET_INTR): Add.
8256 * config/spu/spu-modes.def (INTR): Remove.
8257
8258 More accurate warnings about run-time relocations.
8259 * config/spu/spu.c (reloc_diagnostic): Test in_section.
8260
8261 Correctly warn about immediate arguments to specific intrinsics.
8262 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
8263 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
8264 the instruction predicate.
8265
8266 Fix tree check errors with latest update.
8267 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
8268 CALL_EXPR_ARG.
8269 (spu_expand_builtin): Use CALL_EXPR_FN.
8270
8271 Add missing specific intrinsics.
8272 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
8273 si_bislede.
8274 * config/spu/spu_internals.h: Ditto.
8275
8276 Fix incorrect operand modifiers.
8277 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
8278 * config/spu/spu.md (xor<mode>3): Change %S to %J.
8279
8280 Optimize one case of zero_extend of a vec_select.
8281 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
8282
8283 Accept any immediate for hbr.
8284 * config/spu/spu.md (hbr): Change s constraints to i.
8285
8286 2007-02-21 Paul Brook <paul@codesourcery.com>
8287
8288 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
8289 condexec_count when skipping USE and CLOBBER.
8290
8291 2007-02-21 Nick Clifton <nickc@redhat.com>
8292
8293 * common.opt (Warray-bounds): Add Warning attribute.
8294 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
8295 Likewise.
8296 (fsized-zeroes): Add Optimization attribute.
8297 (fsplit-wide-types, ftree-scev-cprop): Likewise.
8298 * c.opt (Wc++0x-compat): Add Warning attribute.
8299
8300 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8301
8302 PR middle-end/30761
8303 * reload1.c (eliminate_regs_in_insn): In the single_set special
8304 case, attempt to re-recognize the insn before falling back to
8305 having reload fix it up.
8306
8307 2007-02-20 Eric Christopher <echristo@gmail.com>
8308
8309 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
8310 Rewrite accordingly.
8311 (frv_read_iacc_argument): Ditto.
8312 (frv_expand_set_builtin): Take a call instead of arglist, update for
8313 above changes.
8314 (frv_expand_unop_builtin): Ditto.
8315 (frv_expand_binop_builtin): Ditto.
8316 (frv_expand_cut_builtin): Ditto.
8317 (frv_expand_binopimm_builtin): Ditto.
8318 (frv_expand_voidbinop_builtin): Ditto.
8319 (frv_expand_int_void2arg): Ditto.
8320 (frv_expand_prefetches): Ditto.
8321 (frv_expand_voidtriop_builtin): Ditto.
8322 (frv_expand_voidaccop_builtin): Ditto.
8323 (frv_expand_load_builtin): Ditto.
8324 (frv_expand_store_builtin): Ditto.
8325 (frv_expand_mdpackh_builtin): Ditto.
8326 (frv_expand_mclracc_builtin): Ditto.
8327 (frv_expand_mrdacc_builtin): Ditto.
8328 (frv_expand_mwtacc_builtin): Ditto.
8329 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
8330 calls for above.
8331
8332 2007-02-20 Janis Johnson <janis187@us.ibm.com>
8333
8334 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
8335 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
8336 cmpb instruction.
8337 (HAVE_GAS_DFP): Check for assembler support of decimal floating
8338 point instructions.
8339 * configure: Regenerate.
8340 * config.in: Regenerate.
8341 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
8342 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
8343 masks to power6 and power6x and to POWERPC_MASKS.
8344 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8345 _ARCH_PWR6.
8346 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
8347 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
8348 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8349 Access PROTOTYPE as variable, not mask.
8350
8351 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
8352
8353 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
8354 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
8355 * combine.c (adjust_for_new_dest): Use it.
8356 * postreload.c (reload_combine): Likewise.
8357
8358 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
8359
8360 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
8361 notes on an insn with multiple sets, even if single_set returns
8362 non-NULL for that insn.
8363
8364 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8365
8366 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
8367 scalbn and scalbln.
8368
8369 2007-02-20 Geoffrey Keating <geoffk@apple.com>
8370
8371 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
8372 if user didn't pass it.
8373 * config/i386/darwin.h (CC1_SPEC): Likewise.
8374 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
8375 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
8376 -mmacosx-version-min.
8377
8378 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8379 Uros Bizjak <ubizjak@gmail.com>
8380
8381 * optabs.h (enum optab_index): Add new OTI_scalb.
8382 (scalb_optab): Define corresponding macro.
8383 * optabs.c (init_optabs): Initialize scalb_optab.
8384 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
8385 patterns.
8386 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
8387 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
8388 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
8389 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
8390 flag_unsafe_math_optimizations is set.
8391
8392 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
8393 to implement scalbf, scalb and scalbl built-ins as inline x87
8394 intrinsics.
8395
8396 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8397 DJ Delorie <dj@redhat.com>
8398
8399 PR other/30824
8400 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
8401 (diagnostic_report_diagnostic): ... here, and turn them into real
8402 errors. If warnings are inhibited, no need to do anything.
8403
8404 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
8405
8406 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
8407 better code generation.
8408
8409 2007-02-20 Ben Elliston <bje@au.ibm.com>
8410
8411 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
8412
8413 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
8414
8415 * config/alpha/alpha.c, config/alpha/alpha.md,
8416 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
8417 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
8418 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
8419 config/arm/lib1funcs.asm: Follow spelling conventions.
8420
8421 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
8422 config/fr30/fr30.md, config/i386/i386.h,
8423 config/iq2000/iq2000.h, config/iq2000/predicates.md,
8424 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
8425 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
8426 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
8427 config/rs6000/altivec.md, config/rs6000/rs6000.c,
8428 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
8429 config/sparc/sparc.c, config/sparc/sparc.h,
8430 config/sparc/sparc.md, config/spu/constraints.md,
8431 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
8432 conventions.
8433
8434 2007-02-20 Alan Modra <amodra@bigpond.net.au>
8435
8436 PR target/29943
8437 * varasm.c (use_blocks_for_decl_p): Return false for decls with
8438 alias attribute.
8439
8440 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
8441
8442 * doc/invoke.texi (-ftree-lrs): Remove.
8443
8444 2007-02-19 Diego Novillo <dnovillo@redhat.com>
8445
8446 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
8447 NULL.
8448
8449 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
8450
8451 * config/ia64/ia64.c (ia64_expand_builtin): Use the
8452 new CALL_EXPR_FN macro for retrieving the function
8453 declaration of the input expression.
8454
8455 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8456
8457 * c.opt (Waddress): New.
8458 * common.opt (Walways-true): Delete.
8459 (Wstring-literal-comparison): Delete.
8460 * doc/invoke.texi (Warning Options): Delete -Walways-true and
8461 -Wstring-literal-comparison. Add -Waddress.
8462 (Waddress): New.
8463 (Walways-true): Delete.
8464 (Wstring-literal-comparison): Delete.
8465 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
8466 consistently instead of -Walways-true in example.
8467 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
8468 * c-typeck.c (parser_build_binary_op): Replace
8469 -Wstring-literal-comparison and -Walways-true with -Waddress.
8470 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
8471 with -Waddress.
8472
8473 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
8474
8475 * tree-cfg.c (dump_function_to_file): Be prepared for functions
8476 without DECL_STRUCT_FUNCTION initialized.
8477
8478 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
8479
8480 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
8481 due to calls to functions taking pointers as parameters.
8482
8483 2007-02-19 Richard Henderson <rth@redhat.com>
8484
8485 PR debug/29558
8486 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
8487 in memory.
8488
8489 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
8490
8491 * config/s390/s390.c (s390_call_saved_register_used,
8492 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
8493 accessed to the new scheme.
8494
8495 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8496
8497 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
8498 (cris_print_index, cris_print_operand, cris_print_operand_address)
8499 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
8500 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
8501 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
8502 GET_CODE () == xxx.
8503 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
8504 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
8505 GO_IF_LEGITIMATE_ADDRESS): Ditto.
8506 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
8507 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
8508 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
8509 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
8510 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
8511 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
8512 (uminsi3, call, call_value): Ditto.
8513 (define_split: indir_to_reg_split, unnamed): Ditto.
8514
8515 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
8516
8517 PR tree-optimization/30975
8518 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
8519 wrong assert.
8520
8521 2007-02-18 Eric Christopher <echristo@gmail.com>
8522
8523 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
8524 Remove use of arglist.
8525 (mips_expand_builtin): Remove use of arglist, pass in expr.
8526 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
8527 (mips_expand_builtin_movtf): Ditto.
8528 (mips_expand_builtin_compare): Ditto.
8529
8530 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
8531
8532 * tree-sra.c (sra_build_assignment): Replace assertion
8533 checking with a comment explaining why it can't be done.
8534
8535 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
8536
8537 PR middle-end/30833
8538 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
8539 during CALL_EXPR representation conversion.
8540 * tree-ssa-propagate.c (set_rhs): Likewise.
8541
8542 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
8543
8544 * tree-sra.c (sra_build_assignment): Disable assertion checking
8545 for now.
8546
8547 2007-02-18 Roger Sayle <roger@eyesopen.com>
8548
8549 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
8550 instead of calling build2 with a GIMPLE_MODIFY_STMT.
8551 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
8552 Likewise.
8553 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
8554 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
8555 gimplify_init_ctor_eval_range, gimple_push_cleanup,
8556 gimplify_omp_for, gimplify_omp_atomic_pipeline,
8557 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
8558 force_gimple_operand): Likewise.
8559 * ipa-cp.c (constant_val_insert): Likewise.
8560 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
8561 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
8562 perfect_nestify): Likewise.
8563 * langhooks.c (lhd_omp_assignment): Likewise.
8564 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
8565 lower_copyprivate_clauses, lower_send_clauses,
8566 lower_send_shared_vars, expand_parallel_call,
8567 expand_omp_for_generic, expand_omp_for_static_nochunk,
8568 expand_omp_for_static_chunk, expand_omp_sections,
8569 lower_omp_single_copy, lower_omp_for_lastprivate,
8570 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
8571 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
8572 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
8573 Likewise.
8574
8575 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
8576
8577 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
8578 config/sh/sh.md: Follow spelling conventions.
8579
8580 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
8581 config/frv/predicates.md: Follow spelling conventions.
8582
8583 * config/m68k/linux-unwind.h: Fix a comment typo.
8584 * target.h: Follow spelling conventions.
8585
8586 2007-02-18 Roger Sayle <roger@eyesopen.com>
8587
8588 PR rtl-optimization/28173
8589 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
8590 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
8591 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
8592 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
8593 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
8594
8595 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8596
8597 * builtins.c (fold_builtin_load_exponent): New.
8598 (fold_builtin_2): Use it.
8599
8600 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
8601
8602 PR rtl-optimization/30773
8603 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
8604 if we fail to attach a REG_EQUIV note.
8605
8606 2007-02-18 David Edelsohn <edelsohn@gnu.org>
8607 Roger Sayle <roger@eyesopen.com>
8608
8609 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
8610
8611 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
8612
8613 * calls.c (initialize_argument_information): Pass original EXP
8614 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
8615 code to split complex arguments here, as part of initializing the
8616 ARGS array.
8617 (expand_call): Remove code that builds a list of arguments and
8618 inserts implicit arguments into it. Instead, just count how many
8619 implicit arguments there will be so we can determine the size of
8620 the ARGS array, and let initialize_argument_information do the work.
8621 (split_complex_values): Delete unused function.
8622
8623 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
8624
8625 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
8626
8627 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
8628
8629 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
8630 for arg pointer based indexed addressing.
8631
8632 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
8633
8634 * config/ia64/ia64.h, config/ia64/ia64.md,
8635 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
8636 spelling conventions.
8637
8638 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
8639
8640 * config/m68k/m68k.c (split_di): New.
8641 * config/m68k/m68k-protos.h: Declare split_di.
8642 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
8643 Improve predicate handling and split constant shifts.
8644
8645 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
8646
8647 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
8648 parameter for register bitfield operations, general predicates
8649 cleanup
8650
8651 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
8652
8653 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
8654 * config/m68k/linux-unwind.h: New file.
8655
8656 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
8657
8658 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
8659 config/i386/athlon.md, config/ia64/ia64.md,
8660 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
8661 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
8662 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
8663 tree-ssa-loop-niter.c, tree-vect-analyze.c,
8664 tree-vect-transform.c: Fix comment typos.
8665
8666 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
8667
8668 * sched-deps.c (find_insn_list): Remove.
8669 * sched-int.h: Remove the prototype for find_insn_list.
8670
8671 2007-02-16 Geoffrey Keating <geoffk@apple.com>
8672
8673 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
8674 to linker.
8675 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
8676 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
8677 darwin_rs6000_override_options.
8678 (C_COMMON_OVERRIDE_OPTIONS): Expect
8679 darwin_macosx_version_min to be non-NULL always.
8680 (TARGET_C99_FUNCTIONS): Likewise.
8681 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
8682 (DARWIN_MINVERSION_SPEC): New.
8683 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
8684 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
8685 to cc1*.
8686 (DARWIN_MINVERSION_SPEC): New.
8687 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
8688 value.
8689 * config/darwin-c.c (darwin_cpp_builtins): Expect
8690 darwin_macosx_version_min to be non-NULL always.
8691
8692 * config/rs6000/rs6000.c: Clean up trailing whitespace.
8693
8694 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
8695
8696 * config/i386/i386.h (x86_use_xchgb): New.
8697 (TARGET_USE_XCHGB): New macro.
8698 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
8699 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
8700 Split after reload into bswaphi for shifts of 8.
8701 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
8702 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
8703 or when optimizing for size.
8704
8705 2007-02-16 Richard Guenther <rguenther@suse.de>
8706 Christian Bruel <christian.bruel@st.com>
8707
8708 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
8709 DECLs but prefer SSA_NAMEs over DECLs.
8710
8711 2007-02-16 Richard Guenther <rguenther@suse.de>
8712
8713 * tree-flow-inline.h (single_imm_use_p): Remove.
8714 (zero_imm_uses_p): Likewise.
8715 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
8716 instead of single_imm_use_p.
8717 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
8718 zero_imm_uses_p.
8719
8720 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8721
8722 PR other/27843
8723 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
8724 nested double- and backquotes.
8725
8726 2007-02-15 Roger Sayle <roger@eyesopen.com>
8727
8728 PR middle-end/30391
8729 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
8730 should be unreachable.
8731 (build2_stat): Allow construction of MODIFY_EXPR at any time.
8732 For the time being redirect GIMPLE_MODIFY_STMT to the new
8733 (renamed) build_gimple_modify_stmt_stat.
8734 (build2_gimple_stat): Rename to...
8735 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
8736 Always build a GIMPLE_MODIFY_STMT node.
8737 * tree.h (build2_gimple, build2_gimple_stat): Delete.
8738 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
8739 declarations.
8740
8741 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
8742 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
8743 * tree-complex.c (set_component_ssa_name, expand_complex_move,
8744 expand_complex_div_wide): Likewise.
8745 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
8746 * tree-ssa-loop-im.c (schedule_sm): Likewise.
8747 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
8748 * tree-ssa-loop-manip.c (create_iv): Likewise.
8749 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
8750 abs_replacement): Likewise.
8751 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
8752 realify_fake_stores): Likewise.
8753
8754 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
8755 node rather than a GIMPLE_MODIFY_STMT node.
8756 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
8757 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
8758 Likewise.
8759 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
8760 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
8761 GIMPLE_MODIFY_STMT.
8762
8763 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
8764
8765 PR middle-end/30433
8766 * fold-const.c (fold_comparison): Add back the
8767 folding of constant complex comparisions.
8768
8769 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
8770
8771 PR middle-end/30729
8772 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
8773 effects unknown to this function, return early.
8774
8775 2007-02-15 Ian Lance Taylor <iant@google.com>
8776
8777 * lower-subreg.c (move_eh_region_note): New static function.
8778 (resolve_simple_move): Call it.
8779 (decompose_multiword_subregs): Track blocks for which we resolve a
8780 simple move which is also a control flow insn. Pass them to
8781 find_many_sub_basic_blocks.
8782 (pass_lower_subreg): Add TODO_verify_flow.
8783 (pass_lower_subreg2): Likewise.
8784
8785 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
8786 Brooks Moses <brooks.moses@codesourcery.com>
8787 Lee Millward <lee.millward@codesourcery.com>
8788
8789 * tree.h (enum tree_code_class): Add tcc_vl_exp.
8790 (VL_EXP_CLASS_P): New.
8791 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
8792 TREE_CODE_LENGTH.
8793 (TREE_OPERAND_CHECK_CODE): Likewise.
8794 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
8795 (TREE_RTL_OPERAND_CHECK): Likewise.
8796 (tree_operand_check_failed): Make second parameter the whole tree
8797 instead of its code. Fixed callers.
8798 (VL_EXP_CHECK): New.
8799 (TREE_OPERAND_LENGTH): New.
8800 (VL_EXP_OPERAND_LENGTH): New.
8801 (CALL_EXPR_FN): New.
8802 (CALL_EXPR_STATIC_CHAIN): New.
8803 (CALL_EXPR_ARGS): New.
8804 (CALL_EXPR_ARG): New.
8805 (call_expr_nargs): New.
8806 (CALL_EXPR_ARGP): New.
8807 (build_nt_call_list): Declare.
8808 (build_vl_exp_stat): Declare.
8809 (build_vl_exp): New.
8810 (build_call_list): Declare.
8811 (build_call_nary): Declare.
8812 (build_call_valist): Declare.
8813 (build_call_array): Declare.
8814 (call_expr_arg): Declare.
8815 (call_expr_argp): Declare.
8816 (call_expr_arglist): Declare.
8817 (fold_build_call_list): Declare.
8818 (fold_build_call_list_initializer): Declare.
8819 (fold_call_expr): Declare to replace fold_builtin.
8820 (fold_builtin_fputs): Update to agree with modified definition.
8821 (fold_builtin_strcpy): Likewise.
8822 (fold_builtin_strncpy): Likewise.
8823 (fold_builtin_memory_chk): Likewise.
8824 (fold_builtin_stxcpy_chk): Likewise.
8825 (fold_builtin_strncpy_chk): Likewise.
8826 (fold_builtin_next_arg): Likewise.
8827 (fold_build_call_expr): Declare.
8828 (fold_builtin_call_list): Declare.
8829 (fold_builtin_call_valist): Declare.
8830 (build_call_expr): Declare.
8831 (validate_arglist): Update to agree with modified definition.
8832 (tree_operand_length): New.
8833 (call_expr_arg_iterator): New.
8834 (init_call_expr_arg_iterator): New.
8835 (next_call_expr_arg): New.
8836 (first_call_expr_arg): New.
8837 (more_call_expr_args_p): New.
8838 (FOR_EACH_CALL_EXPR_ARG): New.
8839
8840 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
8841 and tcc_gimple_stmt.
8842 (tree_code_size): Update documentation. Use sizeof (tree) rather
8843 than sizeof (char *).
8844 (tree_size): Likewise. Add case for tcc_vl_exp.
8845 (tree_node_structure): Add case for tcc_vl_exp.
8846 (contains_placeholder_p): Likewise.
8847 (substitute_in_expr): Likewise.
8848 (substitute_placeholder_in_expr): Likewise.
8849 (stabilize_reference_1): Likewise.
8850 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
8851 to diagnose breakage of this interface for constructing CALL_EXPRs.
8852 (build_nt): Add similar assertion here.
8853 (build_nt_call_list): New.
8854 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
8855 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
8856 TREE_CODE_LENGTH.
8857 (get_callee_fndecl): Use new CALL_EXPR accessors.
8858 (tree_operand_check_failed): Change parameters to pass entire node
8859 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
8860 (process_call_operands): New.
8861 (build_vl_exp_stat): New.
8862 (build_call_list): New.
8863 (build_call_nary): New.
8864 (build_call_valist): New.
8865 (build_call_array): New.
8866 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
8867 (call_expr_arglist): New.
8868
8869 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
8870 tcc_vl_exp instead of a fixed-size tcc_expression.
8871
8872 * doc/c-tree.texi (CALL_EXPR): Document new representation and
8873 accessors for CALL_EXPRs.
8874 (AGGR_INIT_EXPR): Likewise.
8875
8876 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
8877 Brooks Moses <brooks.moses@codesourcery.com>
8878 Lee Millward <lee.millward@codesourcery.com>
8879
8880 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
8881 (expand_builtin_nonlocal_goto): Change parameter to be entire
8882 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
8883 (expand_builtin_prefetch): Likewise.
8884 (expand_builtin_classify_type): Likewise.
8885 (mathfn_built_in): Return NULL_TREE instead of 0.
8886 (expand_errno_check): Use new CALL_EXPR accessors.
8887 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
8888 Return NULL_RTX instead of 0.
8889 (expand_builtin_mathfn_2): Likewise.
8890 (expand_builtin_mathfn_3): Likewise.
8891 (expand_builtin_interclass_mathfn): Likewise.
8892 (expand_builtin_sincos): Likewise.
8893 (expand_builtin_cexpi): Likewise.
8894 (expand_builtin_int_roundingfn): Likewise.
8895 (expand_builtin_int_roundingfn_2): Likewise.
8896 (expand_builtin_pow): Likewise.
8897 (expand_builtin_powi): Likewise.
8898 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
8899 of arglist, fixing callers appropriately. Use new CALL_EXPR
8900 accessors and constructors. Return NULL_RTX instead of 0.
8901 (expand_builtin_strstr): Likewise.
8902 (expand_builtin_strchr): Likewise.
8903 (expand_builtin_strrchr): Likewise.
8904 (expand_builtin_strpbrk): Likewise.
8905 (expand_builtin_memcpy): Likewise.
8906 (expand_builtin_mempcpy): Likewise.
8907 (expand_builtin_mempcpy_args): New.
8908 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
8909 (expand_builtin_memmove_args): New.
8910 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
8911 (expand_movstr): Likewise.
8912 (expand_builtin_strcpy): Likewise.
8913 (expand_builtin_strcpy_args): New.
8914 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
8915 (expand_builtin_strncpy): Likewise.
8916 (expand_builtin_memset): Likewise.
8917 (expand_builtin_memset_args): New.
8918 (expand_builtin_bzero): Similarly to expand_builtin_memset.
8919 (expand_builtin_memcmp): Likewise.
8920 (expand_builtin_strcmp): Likewise.
8921 (expand_builtin_strncmp): Likewise.
8922 (expand_builtin_strcat): Likewise.
8923 (expand_builtin_strncat): Likewise.
8924 (expand_builtin_strspn): Likewise.
8925 (expand_builtin_strcspn): Likewise.
8926 (expand_builtin_args_info): Likewise.
8927 (expand_builtin_va_start): Likewise.
8928 (gimplify_va_arg_expr): Likewise.
8929 (expand_builtin_va_end): Likewise.
8930 (expand_builtin_va_copy): Likewise.
8931 (expand_builtin_frame_address): Likewise.
8932 (expand_builtin_alloca): Likewise.
8933 (expand_builtin_bswap): Likewise.
8934 (expand_builtin_unop): Likewise.
8935 (expand_builtin_fputs): Likewise.
8936 (expand_builtin_expect): Likewise.
8937 (expand_builtin_fabs): Likewise.
8938 (expand_builtin_copysign): Likewise.
8939 (expand_builtin_printf): Likewise.
8940 (expand_builtin_fprintf): Likewise.
8941 (expand_builtin_sprintf): Likewise.
8942 (expand_builtin_init_trampoline): Likewise.
8943 (expand_builtin_signbit): Likewise.
8944 (expand_builtin_fork_or_exec): Likewise.
8945 (expand_builtin_sync_operation): Likewise.
8946 (expand_builtin_compare_and_swap): Likewise.
8947 (expand_builtin_lock_test_and_set): Likewise.
8948 (expand_builtin_lock_release): Likewise.
8949 (expand_builtin): Likewise.
8950 (builtin_mathfn_code): Likewise.
8951
8952 (fold_builtin_constant_p): Pass call arguments individually instead
8953 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
8954 accessors and constructors. Return NULL_TREE instead of 0.
8955 (fold_builtin_expect): Likewise.
8956 (fold_builtin_classify_type): Likewise.
8957 (fold_builtin_strlen): Likewise.
8958 (fold_builtin_nan): Likewise.
8959 (integer_valued_real_p): Likewise.
8960 (fold_trunc_transparent_mathfn): Likewise.
8961 (fold_fixed_mathfn): Likewise.
8962 (fold_builtin_cabs): Likewise.
8963 (fold_builtin_sqrt): Likewise.
8964 (fold_builtin_cbrt): Likewise.
8965 (fold_builtin_cos): Likewise.
8966 (fold_builtin_cosh): Likewise.
8967 (fold_builtin_tan): Likewise.
8968 (fold_builtin_sincos): Likewise.
8969 (fold_builtin_cexp): Likewise.
8970 (fold_builtin_trunc): Likewise.
8971 (fold_builtin_floor): Likewise.
8972 (fold_builtin_ceil): Likewise.
8973 (fold_builtin_round): Likewise.
8974 (fold_builtin_int_roundingfn): Likewise.
8975 (fold_builtin_bitop): Likewise.
8976 (fold_builtin_bswap): Likewise.
8977 (fold_builtin_logarithm): Likewise.
8978 (fold_builtin_hypot): Likewise.
8979 (fold_builtin_pow): Likewise.
8980 (fold_builtin_powi): Likewise.
8981 (fold_builtin_exponent): Likewise.
8982 (fold_builtin_memset): Likewise.
8983 (fold_builtin_bzero): Likewise.
8984 (fold_builtin_memory_op): Likewise.
8985 (fold_builtin_bcopy): Deleted; call site changed to invoke
8986 fold_builtin_memory_op directly.
8987 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
8988 (fold_builtin_strncpy): Likewise.
8989 (fold_builtin_memcmp): Likewise.
8990 (fold_builtin_strcmp): Likewise.
8991 (fold_builtin_strncmp): Likewise.
8992 (fold_builtin_signbit): Likewise.
8993 (fold_builtin_copysign): Likewise.
8994 (fold_builtin_isascii): Likewise.
8995 (fold_builtin_toascii): Likewise.
8996 (fold_builtin_isdigit): Likewise.
8997 (fold_builtin_fabs): Likewise.
8998 (fold_builtin_abs): Likewise.
8999 (fold_builtin_fmin_fmax): Likewise.
9000 (fold_builtin_carg): Likewise.
9001 (fold_builtin_classify): Likewise.
9002 (fold_builtin_unordered_cmp): Likewise.
9003
9004 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
9005 New functions split out from fold_builtin_1.
9006 (fold_builtin_n): New.
9007 (fold_builtin_varargs): New.
9008 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
9009 instead.
9010 (fold_call_expr): New.
9011 (build_function_call_expr): Rewrite to use new helper function.
9012 (fold_builtin_call_list): New.
9013 (build_call_expr): New.
9014 (fold_builtin_call_valist): New.
9015 (rewrite_call_expr): New.
9016 (validate_arg): New.
9017 (validate_arglist): Change parameter to be entire CALL_EXPR instead
9018 of an arglist. Change return type to bool. Use new CALL_EXPR
9019 accessors.
9020
9021 (fold_builtin_strstr): Pass call arguments individually instead
9022 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
9023 accessors and constructors. Return NULL_TREE instead of 0.
9024 (fold_builtin_strchr): Likewise.
9025 (fold_builtin_strrchr): Likewise.
9026 (fold_builtin_strpbrk): Likewise.
9027 (fold_builtin_strcat): Likewise.
9028 (fold_builtin_strncat): Likewise.
9029 (fold_builtin_strspn): Likewise.
9030 (fold_builtin_strcspn): Likewise.
9031 (fold_builtin_fputs): Likewise.
9032 (fold_builtin_next_arg): Likewise.
9033 (fold_builtin_sprintf): Likewise.
9034
9035 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
9036 NULL_RTX instead of 0.
9037 (expand_builtin_memory_chk): Likewise.
9038 (maybe_emit_chk_warning): Likewise.
9039 (maybe_emit_sprintf_chk_warning): Likewise.
9040
9041 (fold_builtin_object_size): Pass call arguments individually instead
9042 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
9043 accessors and constructors. Return NULL_TREE instead of 0.
9044 (fold_builtin_memory_chk): Likewise.
9045 (fold_builtin_stxcpy_chk): Likewise.
9046 (fold_builtin_strncpy_chk): Likewise.
9047 (fold_builtin_strcat_chk): Likewise.
9048 (fold_builtin_strcat_chk): Likewise.
9049 (fold_builtin_strncat_chk): Likewise.
9050 (fold_builtin_sprintf_chk): Likewise.
9051 (fold_builtin_snprintf_chk): Likewise.
9052 (fold_builtin_printf): Likewise.
9053 (fold_builtin_vprintf): Likewise.
9054
9055 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
9056 constructors.
9057 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
9058 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9059 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
9060 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
9061 (fold_unary): Likewise.
9062 (fold_binary): Likewise.
9063 (fold_ternary): Remove CALL_EXPR case, since they are no longer
9064 ternary expressions.
9065 (fold): Add logic for tcc_vl_exp.
9066 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
9067 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9068 (fold_build3_stat): Add assertion to flag broken interface for
9069 constructing CALL_EXPRs.
9070 (fold_build_call_list): New.
9071 (fold_build_call_list_initializer): New.
9072 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
9073 constructors.
9074 (fold_strip_sign_ops): Likewise.
9075
9076 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
9077 Brooks Moses <brooks.moses@codesourcery.com>
9078 Lee Millward <lee.millward@codesourcery.com>
9079
9080 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
9081 accessors and dump arguments explicitly.
9082
9083 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
9084 TREE_CODE_LENGTH.
9085 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
9086 explicitly.
9087 (print_call_name): Use new CALL_EXPR accessors.
9088
9089 * print-tree.c (print_node): Add case tcc_vl_exp. Print
9090 CALL_EXPR arguments explicitly instead of as a list. Use
9091 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9092
9093 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
9094 (vrp_visit_stmt): Likewise.
9095
9096 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
9097 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
9098 TREE_CODE_LENGTH.
9099 (force_move_till_expr): Likewise.
9100
9101 * targhooks.c (default_external_stack_protect_fail): Use
9102 build_call_expr instead of build_function_call_expr.
9103 (default_hidden_stack_protect_fail): Likewise.
9104
9105 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
9106 build the call.
9107
9108 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
9109 and walk arguments explicitly.
9110
9111 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
9112 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9113 (expand_simple_operations): Likewise.
9114 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
9115
9116 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
9117 of TREE_CODE_LENGTH.
9118 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
9119
9120 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
9121 instead of TREE_CODE_LENGTH.
9122
9123 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
9124 (tree_ic_transform): Likewise.
9125 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
9126 parameter instead of arglist. Fix callers.
9127 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
9128 (tree_stringops_transform): Likewise.
9129 (tree_indirect_call_to_profile): Likewise.
9130 (tree_stringops_values_to_profile): Likewise.
9131
9132 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
9133 (eliminate_tail_call): Likewise.
9134
9135 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
9136
9137 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9138 Use TREE_OPERAND_LENGTH and generalize to handle any number of
9139 operands.
9140 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
9141
9142 * omp-low.c (build_omp_barrier): Use build_call_expr.
9143 (lower_rec_input_clauses): Likewise.
9144 (lower_reduction_clauses): Likewise.
9145 (expand_parallel_call): Likewise.
9146 (maybe_catch_exception): Likewise.
9147 (expand_omp_for_generic): Likewise.
9148 (expand_omp_for_static_nochunk): Likewise.
9149 (expand_omp_sections): Likewise.
9150 (lower_omp_single_simple): Likewise.
9151 (lower_omp_single_copy): Likewise.
9152 (lower_omp_master): Likewise.
9153 (lower_omp_ordered): Likewise.
9154 (lower_omp_critical): Likewise.
9155
9156 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
9157 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
9158
9159 * tree-gimple.c (is_gimple_call_addr): Fix doc.
9160 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
9161 TREE_CODE_LENGTH. Add tcc_vl_exp case.
9162
9163 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
9164 and generalize to handle any number of operands.
9165 (chrec_contains_undetermined): Likewise.
9166 (tree_contains_chrecs): Likewise.
9167 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
9168
9169 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
9170
9171 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
9172 fold_call_expr instead of fold_builtin.
9173 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
9174 match declarations there.
9175 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
9176 updates.
9177
9178 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
9179 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9180
9181 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
9182 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
9183
9184 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
9185 accessors.
9186
9187 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
9188 (execute_cse_sincos): Use new CALL_EXPR accessors.
9189
9190 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
9191
9192 * gimple-low.c (lower_function_body): Use build_call_expr.
9193 (lower_builtin_setjmp): Likewise.
9194
9195 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
9196 (set_storage_via_libcall): Likewise.
9197 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
9198 instead of TREE_CODE_LENGTH.
9199 (expand_expr_real_1): Use new CALL_EXPR accessors.
9200
9201 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
9202 generalize to handle any number of operands.
9203 (TB_parent_eq): Likewise.
9204
9205 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
9206 (strip_builtin_expect): Likewise.
9207
9208 * function.c (gimplify_parameters): Use build_call_expr.
9209
9210 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
9211 instead of TREE_CODE_LENGTH.
9212
9213 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
9214 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
9215
9216 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
9217 iterators.
9218
9219 * gimplify.c (build_stack_save_restore): Use build_call_expr.
9220 (gimplify_decl_expr): Likewise.
9221 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
9222 Use new CALL_EXPR iterators.
9223 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
9224 (gimplify_modify_expr_to_memset): Likewise.
9225 (gimplify_variable_sized_compare): Likewise.
9226 (gimplify_omp_atomic_fetch_op): Likewise.
9227 (gimplify_omp_atomic_pipeline): Likewise.
9228 (gimplify_omp_atomic_mutex): Likewise.
9229 (gimplify_function_tree): Likewise.
9230
9231 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
9232 (call_expr_flags): Likewise.
9233 (expand_call): Likewise.
9234
9235 * except.c (expand_builtin_eh_return_data_regno): Pass entire
9236 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
9237 accessors.
9238
9239 * coverage.c (create_coverage): Use build_call_expr.
9240
9241 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
9242 (temp_call_expr_obstack): New.
9243 (pool_copy_list): Delete.
9244 (temp_copy_call_expr): New.
9245 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
9246 CALL_EXPR accessors. Get rid of special goo for copying argument
9247 lists and use temp_copy_call_expr instead.
9248 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
9249 CALL_EXPR accessors.
9250 (create_expression_by_pieces): Likewise. Use build_call_array
9251 to construct the result instead of fold_build3.
9252 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
9253 dealing with argument lists.
9254 (init_pre): Remove references to expression_node_pool and
9255 list_node_pool. Init temp_call_expr_obstack instead.
9256 (fini_pre): Remove references to expression_node_pool and
9257 list_node_pool.
9258
9259 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
9260 and walk arguments explicitly instead of as a list.
9261
9262 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
9263 (mx_register_decls): Likewise.
9264 (mudflap_register_call): Likewise.
9265 (mudflap_finish_file): Likewise.
9266
9267 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
9268 (ipa_callsite_compute_param): Likewise.
9269
9270 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
9271 accessors and constructor.
9272
9273 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
9274 accessors and constructor.
9275 (convert_tramp_reference): Likewise.
9276 (convert_call_expr): Likewise.
9277 (finalize_nesting_tree_1): Likewise.
9278
9279 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
9280 accessors.
9281
9282 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
9283
9284 * tree-inline.c (initialize_inlined_parameters): Pass entire
9285 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
9286 accessors.
9287 (estimate_num_insns_1): Use new CALL_EXPR accessors.
9288 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
9289
9290 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
9291 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9292 (vectorizable_reduction): Likewise.
9293 (vectorizable_call): Use new CALL_EXPR iterators.
9294 (vectorizable_conversion): Use build_call_expr.
9295 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
9296 (vect_gen_widened_results_half): Use build_call_expr.
9297 (vect_setup_realignment): Likewise.
9298 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
9299
9300 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
9301 (pass_through_call): Likewise.
9302 (compute_object_sizes): Likewise. Use fold_call_expr instead of
9303 fold_builtin.
9304
9305 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
9306 (tree_gen_pow2_profiler): Likewise.
9307 (tree_gen_one_value_profiler): Likewise.
9308 (tree_gen_ic_func_profiler): Likewise.
9309 (tree_gen_average_profiler): Likewise.
9310 (tree_gen_ior_profiler): Likewise.
9311
9312 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
9313 (find_func_aliases): Use new CALL_EXPR accessors. Add case
9314 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
9315
9316 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
9317 of TREE_CODE_LENGTH.
9318
9319 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
9320 of TREE_CODE_LENGTH.
9321
9322 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
9323 constructor.
9324 (convert_to_integer): Likewise.
9325
9326 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
9327 accessors.
9328
9329 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
9330 Brooks Moses <brooks.moses@codesourcery.com>
9331 Lee Millward <lee.millward@codesourcery.com>
9332
9333 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
9334 accessors.
9335 * config/frv/frv.c (frv_expand_builtin): Likewise.
9336 * config/s390/s390.c (s390_expand_builtin): Likewise.
9337
9338 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
9339 (sparc_expand_builtin): Use new CALL_EXPR accessors.
9340
9341 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
9342 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
9343 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
9344 (ix86_expand_store_builtin): Likewise.
9345 (ix86_expand_unop_builtin): Likewise.
9346 (ix86_expand_unop1_builtin): Likewise.
9347 (ix86_expand_sse_compare): Likewise.
9348 (ix86_expand_sse_comi): Likewise.
9349 (ix86_expand_vec_init_builtin): Likewise.
9350 (ix86_expand_vec_ext_builtin): Likewise.
9351 (ix86_expand_vec_set_builtin): Likewise.
9352 (ix86_expand_builtin): Use new CALL_EXPR accessors.
9353
9354 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
9355 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
9356
9357 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
9358 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
9359 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
9360
9361 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
9362 build_call_expr.
9363 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
9364 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
9365 arglist. Use new CALL_EXPR accessors. Fix callers.
9366 (altivec_expand_abs_builtin): Likewise.
9367 (rs6000_expand_binop_builtin): Likewise.
9368 (altivec_expand_predicate_builtin): Likewise.
9369 (altivec_expand_lv_builtin): Likewise.
9370 (spe_expand_stv_builtin): Likewise.
9371 (altivec_expand_stv_builtin): Likewise.
9372 (rs6000_expand_ternop_builtin): Likewise.
9373 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
9374 (altivec_expand_st_builtin): Likewise.
9375 (altivec_expand_dst_builtin): Likewise.
9376 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
9377 arglist. Use new CALL_EXPR accessors. Fix callers.
9378 (altivec_expand_vec_set_builtin): Likewise.
9379 (altivec_expand_vec_ext_builtin): Likewise.
9380 (altivec_expand_builtin): Use new CALL_EXPR accessors.
9381 (spe_expand_builtin): Likewise.
9382 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
9383 arglist. Use new CALL_EXPR accessors. Fix callers.
9384 (spe_expand_evsel_builtin): Likewise.
9385 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
9386 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
9387
9388 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
9389 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
9390 (arm_expand_unop_builtin): Likewise.
9391 (arm_expand_builtin): Use new CALL_EXPR accessors.
9392
9393 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
9394 accessors.
9395
9396 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
9397 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
9398 (bfin_expand_unop_builtin): Likewise.
9399 (bfin_expand_builtin): Use new CALL_EXPR accessors.
9400
9401 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
9402 Brooks Moses <brooks.moses@codesourcery.com>
9403 Lee Millward <lee.millward@codesourcery.com>
9404
9405 * c-semantics.c (build_stmt): Add internal diagnostic check.
9406
9407 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
9408 accessors. Print arguments explicitly instead of as a list.
9409
9410 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
9411
9412 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
9413 (c_finish_omp_flish): Likewise.
9414
9415 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
9416 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
9417 instead of TREE_CODE_LENGTH.
9418 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
9419 (c_warn_unused_result): Likewise.
9420
9421 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9422
9423 PR c/26494
9424 * doc/invoke.texi (Warning Options): Remove
9425 -Werror-implicit-function-declaration.
9426 (Wimplicit-function-declaration): Update description.
9427 * opts.c (common_handle_option): Move handling of -Werror=* to...
9428 (enable_warning_as_error): ...here.
9429 * opts.h (enable_warning_as_error): Declare.
9430 * c-decl.c (implicit_decl_warning): Unless
9431 -Wno-implicit-function-declaration is given, emit a pedwarn if
9432 -std=c99 or emit a warning if -Wimplicit-function-declaration.
9433 * c.opt (Wimplicit-function-declaration): Replace
9434 mesg_implicit_function_declaration with
9435 warn_implicit_function_declaration.
9436 * c-opts.c (c_common_handle_option):
9437 -Werror-implicit-function-declaration is exactly equal as
9438 -Werror=implicit-function-declaration.
9439 (set_Wimplicit): Replace mesg_implicit_function_declaration with
9440 warn_implicit_function_declaration.
9441 (c_common_post_options): -Wimplict-function-declaration is enabled
9442 by default by -std=c99, otherwise is disabled by default.
9443 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
9444
9445 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
9446
9447 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
9448 DECL on the rhs to a DECL on the lhs for debug info purposes if the
9449 former is ignored but not the latter.
9450
9451 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
9452
9453 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
9454 is made and the reference doesn't use the alias set of its type,
9455 do not create the temporary using that type.
9456
9457 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
9458
9459 * jump.c: Remove prototypes for delete_computation and
9460 delete_prior_computation.
9461
9462 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
9463
9464 * jump.c (get_label_after): Delete.
9465 (get_label_before, delete_computation, delete_jump,
9466 delete_prior_computation, follow_jumps): Move...
9467 * reorg.c (delete_computation, delete_prior_computation): ... here...
9468 (get_label_before, delete_jump): ... making these static ...
9469 (follow_jumps): ... and simplifying this since it only runs after
9470 reload.
9471 * rtl.h (get_label_after, get_label_before, delete_jump,
9472 follow_jumps): Delete prototypes.
9473
9474 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
9475
9476 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
9477
9478 2007-02-15 Nick Clifton <nickc@redhat.com>
9479
9480 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
9481 order to prevent it from being munged by the target.
9482
9483 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
9484
9485 * config/i386/i386.md: Remove misleading comment.
9486
9487 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9488
9489 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
9490 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
9491 invalid patterns.
9492
9493 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9494
9495 * tree-sra.c (instantiate_missing_elements): Canonicalize
9496 bit-field types.
9497 (sra_build_assignment): New.
9498 (generate_copy_inout, generate_element_copy,
9499 generate_element_zero, generate_one_element_init): Use it.
9500
9501 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9502
9503 * tree-sra.c (instantiate_missing_elements): Canonicalize
9504 bit-field types.
9505 (sra_build_assignment): New.
9506 (generate_copy_inout, generate_element_copy,
9507 generate_element_zero, generate_one_element_init): Use it.
9508
9509 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
9510
9511 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
9512 limbo die nodes.
9513
9514 2007-02-14 Joseph Myers <joseph@codesourcery.com>
9515
9516 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
9517 types as aggregates not scalars.
9518 * function.c (assign_stack_temp_for_type): Likewise.
9519
9520 2007-02-14 Roger Sayle <roger@eyesopen.com>
9521 Zdenek Dvorak <dvorakz@suse.cz>
9522
9523 * tree-dump.c (dump_switch_p_1): Require exact match of the option
9524 name.
9525
9526 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
9527
9528 * passes.c (next_pass_1): Clear the next field of the copied
9529 pass structure.
9530
9531 2007-02-14 Richard Henderson <rth@redhat.com>
9532
9533 * tree-sra.c (early_sra): New.
9534 (decl_can_be_decomposed_p): Deny va_list if early_sra.
9535 (tree_sra_early, pass_sra_early): New.
9536 * tree-pass.h (pass_sra_early): Declare.
9537 * passes.c (init_optimization_passes): Use it.
9538
9539 2007-02-14 Richard Guenther <rguenther@suse.de>
9540
9541 * flags.h (issue_strict_overflow_warning): Convert to a macro.
9542
9543 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
9544
9545 PR tree-optimization/30771
9546 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
9547 also phi nodes.
9548 (vect_analyze_operations): Induction phis can now be marked as
9549 used_in_loop.
9550 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
9551 Update documentation accordingly.
9552
9553 2007-02-14 Nick Clifton <nickc@redhat.com>
9554
9555 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
9556 most 3 arguments are supported.
9557 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
9558
9559 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
9560
9561 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
9562 Ensure dst->current is valid.
9563
9564 2007-02-13 Paul Brook <paul@codesourcery.com>
9565
9566 * config.gcc: Add arm*-*-uclinux-*eabi.
9567 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
9568 (SUBTARGET_EXTRA_LINK_SPEC): Define.
9569 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
9570 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9571 (LINK_SPEC): Define.
9572 (LIB_SPEC): Define.
9573 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
9574 register.
9575 * config/arm/uclinux-eabi.h: New file.
9576 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
9577 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
9578 based targets.
9579
9580 2007-02-13 Ian Lance Taylor <iant@google.com>
9581
9582 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
9583 * flags.h (warn_strict_overflow): Declare.
9584 (enum warn_strict_overflow_code): Define.
9585 (issue_strict_overflow_warning): New static inline function.
9586 * opts.c (warn_strict_overflow): New variable.
9587 (common_handle_option): Handle OPT_Wstrict_overflow and
9588 OPT_Wstrict_overflow_.
9589 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
9590 OPT_Wall.
9591 * fold-const.c: Include intl.h.
9592 (fold_deferring_overflow_warnings): New static variable.
9593 (fold_deferred_overflow_warning): New static variable.
9594 (fold_deferred_overflow_code): New static variable.
9595 (fold_defer_overflow_warnings): New function.
9596 (fold_undefer_overflow_warnings): New function.
9597 (fold_undefer_and_ignore_overflow_warnings): New function.
9598 (fold_deferring_overflow_warnings_p): New function.
9599 (fold_overflow_warning): New static function.
9600 (make_range): Add strict_overflow_p parameter. Change all
9601 callers.
9602 (extract_muldiv, extract_muldiv_1): Likewise.
9603 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
9604 tree_expr_nonnegative_p.
9605 (fold_negate_expr): Call fold_overflow_warning.
9606 (fold_range_test): Likewise.
9607 (fold_comparison): Likewise.
9608 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
9609 instead of tree_expr_nonnegative_p.
9610 (tree_expr_nonnegative_warnv_p): Rename from
9611 tree_expr_nonnegative_p, add strict_overflow_p parameter.
9612 (tree_expr_nonnegative_p): New function.
9613 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
9614 strict_overflow_p parameter.
9615 (tree_expr_nonzero_p): New function.
9616 * passes.c (verify_interpass_invariants): New static function.
9617 (execute_one_pass): Call it.
9618 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
9619 warnings.
9620 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
9621 (estimate_numbers_of_iterations): Likewise.
9622 (scev_probably_wraps_p): Likewise.
9623 * tree-ssa-ccp.c: Include "toplev.h".
9624 (evaluate_stmt): Defer fold overflow warnings until we know we are
9625 going to optimize.
9626 (struct fold_stmt_r_data): Add stmt field.
9627 (fold_stmt_r): Defer fold overflow warnings until we know we
9628 optimized.
9629 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
9630 (fold_stmt_inplace): Likewise.
9631 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
9632 (cleanup_control_expr_graph): Defer fold overflow warnings until
9633 we know we are going to optimize.
9634 * tree-cfg.c (fold_cond_expr_cond): Likewise.
9635 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
9636 Likewise.
9637 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
9638 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
9639 * tree-ssa-loop-manip.c (create_iv): Likewise.
9640 * c-typeck.c (build_conditional_expr): Likewise.
9641 (build_binary_op): Likewise.
9642 * tree-vrp.c (vrp_expr_computes_nonzero): Call
9643 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
9644 (extract_range_from_unary_expr): Likewise.
9645 * simplify-rtx.c (simplify_const_relational_operation): Warn when
9646 assuming that signed overflow does not occur.
9647 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
9648 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
9649 (fold_defer_overflow_warnings): Declare.
9650 (fold_undefer_overflow_warnings): Declare.
9651 (fold_undefer_and_ignore_overflow_warnings): Declare.
9652 (fold_deferring_overflow_warnings_p): Declare.
9653 (tree_expr_nonzero_warnv_p): Declare.
9654 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
9655 of warning options.
9656 (Warning Options): Document -Wstrict-overflow.
9657 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
9658 (tree-ssa-ccp.o): Likewise.
9659 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
9660 (fold-const.o): Depend on intl.h.
9661
9662 2007-02-13 Ian Lance Taylor <iant@google.com>
9663
9664 PR middle-end/30751
9665 * lower-subreg.c (resolve_simple_move): Decompose subregs in
9666 addresses.
9667
9668 2007-02-13 Stuart Hastings <stuart@apple.com>
9669
9670 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
9671
9672 2007-02-13 Richard Henderson <rth@redhat.com>
9673
9674 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
9675 handled_component_p before looking for the indirect_ref.
9676
9677 2007-02-13 Richard Henderson <rth@redhat.com>
9678
9679 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
9680 remove flags clobber.
9681 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
9682 (bswaphi_lowpart): New.
9683 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
9684 remove TARGET_BSWAP test. Delete expander of the same name.
9685
9686 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
9687 (expand_unop): Use them.
9688
9689 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
9690
9691 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
9692 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
9693 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
9694 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
9695 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
9696 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
9697 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
9698 assembler dialect choice from asm templates.
9699
9700 2007-02-12 Richard Henderson <rth@redhat.com>
9701
9702 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
9703 (fixuns_trunc<SSEMODEF>si2): Use it.
9704 * config/i386/sse.md (vec_setv4sf_0): Export.
9705 * config/i386/i386.c (ix86_build_const_vector): Export.
9706 (ix86_split_convert_uns_si_sse): Rename from
9707 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
9708 * config/i386/i386-protos.h: Update.
9709
9710 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9711
9712 PR c/29521
9713 * c-typeck.c (c_finish_return): Improve warning message.
9714
9715 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9716
9717 * alias.c (find_symbolic_term): Delete unused function.
9718
9719 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
9720
9721 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
9722 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
9723 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
9724
9725 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
9726
9727 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
9728 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
9729 the function, temporarily point the debug interface to the null one.
9730
9731 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
9732
9733 * dwarf2out.c (round_up_to_align): New static function.
9734 (field_byte_offset): Use it to round the offset.
9735
9736 2007-02-12 Richard Henderson <rth@redhat.com>
9737
9738 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
9739 (inswl_const): Export.
9740
9741 2007-02-12 Richard Henderson <rth@redhat.com>
9742
9743 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
9744 result mode of the libcall, convert back to outmode.
9745
9746 2007-02-12 Roger Sayle <roger@eyesopen.com>
9747
9748 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
9749 (bswapdi2): New define_expand to implement 32-bit implementation.
9750
9751 2007-02-12 Nick Clifton <nickc@redhat.com>
9752
9753 * doc/invoke.texi (Overall Options): Document --help=.
9754 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
9755 (cc1_options): Pass --help= on to cc1.
9756 (display_help): Add description of --help=.
9757 (process_command): Add code to handle --help=. Allow translated
9758 --help and --target-help switches to be passed on to compiler
9759 sub-process.
9760 (main): Remove unused if statement.
9761 * opts.c (columns): Remove.
9762 (LEFT_COLUMN): Define.
9763 (wrap_help): Add columns argument.
9764 (print_filtered_help): Change parameters to be an include bitmask,
9765 an exclude bitmask, an any bitmask and the column width. Move the
9766 code to display the params list here. Add code to display the
9767 status of options rather than their descriptions if the quiet flag
9768 is not active.
9769 (print_specific_help): Change parameters to be an include bitmask,
9770 an exclude bitmask and an any bitmask. Move code to look up the
9771 column width here. Decide upon the title for an options listing.
9772 (common_handle_options): Add code to handle --help=. Adapt code
9773 for --help and --target-help to use the revised form of the
9774 print_specific_help function.
9775 (print_help): Delete.
9776 (print_param_help): Delete.
9777 (print_switch): Delete.
9778 * opts.h (cl_lang_count): Add prototype.
9779 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
9780 CL_MAX_OPTION_CLASS): New defines.
9781 * optc-gen.awk: Add construction of cl_lang_count.
9782 * c.opt: Add Warning attribute to warning options and Optimization
9783 attribute to optimization options.
9784 * common.opt: Likewise.
9785 Add --help=.
9786 Add -fhelp and -ftarget-help as aliases for the transformed --help
9787 and --target-help options.
9788 * opt-functions.awk: Add code to handle Warning and Optimization
9789 attributes.
9790
9791 2007-02-12 Richard Henderson <rth@redhat.com>
9792
9793 * config/alpha/constraints.md: New file.
9794 * config/alpha/alpha.c: Include tm-constrs.h.
9795 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
9796 alpha_extra_constraint): Remove.
9797 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
9798 * config/alpha/alpha-protos.h: Update.
9799 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
9800 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
9801 (EXTRA_CONSTRAINT): Remove.
9802 * config/alpha/alpha.md: Include constraints.md.
9803 (adddi splitter): Use satisfies_constraint_*.
9804 * config/alpha/predicates.md (add_operand): Likewise.
9805 (sext_add_operand, addition_operation): Likewise.
9806
9807 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
9808
9809 PR tree-optimization/29145
9810 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
9811 in our handling of restrict qualified pointers.
9812
9813 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9814
9815 PR middle-end/7651
9816 * doc/invoke.texi (Wunused-value): Update description.
9817 (Wextra): Delete item.
9818 * opts.c (set_Wextra): Don't use the value of Wextra to set the
9819 value of Wunused-value.
9820 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
9821 (c_finish_stmt_expr): Don't check extra_warnings.
9822 (emit_side_effect_warnings): The caller is responsible to check
9823 warn_unused_value.
9824
9825 2007-02-11 Roger Sayle <roger@eyesopen.com>
9826 Matt Thomas <matt@3am-software.com>
9827
9828 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
9829
9830 2007-02-11 Roger Sayle <roger@eyesopen.com>
9831
9832 * simplify-rtx.c (simplify_relational_operation_1): Optimize
9833 comparisons of POPCOUNT against zero.
9834 (simplify_const_relational_operation): Likewise.
9835
9836 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9837
9838 * doc/invoke.texi (Wextra): Delete outdated paragraph.
9839
9840 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9841
9842 * dwarf2out.c (root_type): Delete unused function.
9843
9844 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9845
9846 * genattrtab.c (contained_in_p): Delete unused function.
9847 (write_expr_attr_cache): Likewise.
9848
9849 2007-02-11 Jan Hubicka <jh@suse.cz>
9850
9851 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
9852 previous patch.
9853
9854 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
9855
9856 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
9857 to add the REG_EQ* note.
9858 * see.c (see_merge_one_use_extension): Likewise.
9859 * local-alloc.c (update_equiv_regs): Likewise. Also don't
9860 turn REG_EQUAL notes into REG_EQUIV notes if the target
9861 register may have more than one set.
9862 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
9863 * gcse.c (try_replace_reg): Likewise.
9864 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
9865 * calls.c (fixup_tail_calls): Likewise. Abort if there is
9866 more than one REG_EQUIV note.
9867 * reload1.c (gen_reload): Use set_unique_reg_note.
9868
9869 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
9870
9871 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
9872 (ix86_builtin_conversion): New function.
9873
9874 2007-02-06 Mark Mitchell <mark@codesourcery.com>
9875
9876 PR target/29487
9877 * tree.h (DECL_REPLACEABLE_P): New macro.
9878 * except.c (set_nothrow_function_flags): Likewise.
9879
9880 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
9881 Ira Rosen <irar@il.ibm.com>
9882 Dorit Nuzman <dorit@il.ibm.com>
9883
9884 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
9885 * targhooks.c (default_builtin_vectorized_conversion): New.
9886 * targhooks.h (default_builtin_vectorized_function): New declaration.
9887 * target.h (struct vectorize): Add builtin_conversion field.
9888 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
9889 stmt_vec_info_type value.
9890 (vectorizable_conversion): New declaration.
9891 * tree-vect-analyze.c (vect_analyze_operations): Add
9892 vectorizable_conversion call.
9893 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
9894 * tree-vect-transform.c (vectorizable_conversion): New function.
9895 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
9896 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
9897 mode.
9898 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
9899 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
9900 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
9901 or ALTIVEC_BUILTIN_VCFSX.
9902
9903 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9904
9905 PR target/30634
9906 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
9907 CONST_DOUBLE and operand 0 is a hard register.
9908 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
9909 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
9910 is a hard floating-point register.
9911
9912 2007-02-10 Richard Henderson <rth@redhat.com>
9913 Jakub Jelinek <jakub@redhat.com>
9914 Alexandre Oliva <aoliva@redhat.com>
9915
9916 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
9917 * builtin-types.def (BT_WORD): Make unsigned.
9918 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
9919 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
9920 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
9921 * c-decl.c (grokdeclarator): Don't error if !have_tls.
9922 * c-parser.c (c_parser_omp_threadprivate): Likewise.
9923 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
9924 emulated tls.
9925 * expr.c (emutls_var_address): New.
9926 (expand_expr_real_1): Expand emulated tls.
9927 (expand_expr_addr_expr_1): Likewise.
9928 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
9929 * output.h (emutls_finish): Declare.
9930 * toplev.c (compile_file): Call it.
9931 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
9932 address before wrapping in CONST.
9933 * varasm.c (emutls_htab, emutls_object_type): New.
9934 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
9935 (get_emutls_object_name, get_emutls_object_type): New.
9936 (get_emutls_init_templ_addr, emutls_decl): New.
9937 (emutls_common_1, emutls_finish): New.
9938 (assemble_variable): When emulating tls, swap decls; generate
9939 constructor for the emutls objects.
9940 (do_assemble_alias): When emulating tls, swap decl and target name.
9941 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
9942 for emulated tls.
9943 * varpool.c (decide_is_variable_needed): Look at force_output.
9944 Recurse for emulated tls.
9945 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
9946 with decide_is_variable_needed.
9947 * emutls.c: New file.
9948 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
9949 tls_object for real tls.
9950
9951 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
9952
9953 PR rtl-optimization/29599
9954 * reload1.c (eliminate_regs_in_insn): Take the destination
9955 mode into account when computing the offset.
9956
9957 2007-02-09 Stuart Hastings <stuart@apple.com>
9958 Richard Henderson <rth@redhat.com>
9959
9960 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
9961 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
9962 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
9963 fixuns_truncdfhi2): New.
9964 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
9965 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
9966 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
9967 (floatunssidf2): Allow nonimmediate source.
9968 * config/i386/sse.md (movdi_to_sse): New.
9969 (vec_concatv2di): Drop '*'.
9970 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
9971 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
9972 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
9973 New.
9974 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
9975 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
9976 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
9977 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
9978 (ix86_build_signbit_mask): Fix decl of v, refactor to call
9979 ix86_build_const_vector.
9980 (x86_emit_floatuns): Rewrite.
9981
9982 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9983
9984 * genautomata.c (longest_path_length): Delete unused function.
9985 (struct state): Delete unused longest_path_length.
9986 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
9987 (get_free_state): Delete unused.
9988
9989 2007-02-09 Jan Hubicka <jh@suse.cz>
9990
9991 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
9992 * doc/invoke.texi (inline-unit-growth): Update default value.
9993
9994 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
9995 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
9996 (rebuild_cgraph_edges): Likewise.
9997 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
9998 (dump_cgraph_node): Dump frequencies.
9999 (cgraph_clone_edge): Add frequency scales.
10000 (cgraph_clone_node): Add freuqnecy.
10001 * cgraph.h (cgraph_edge): Add freuqnecy argument.
10002 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
10003 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
10004 * tree-pass.h (TODO_rebuild_frequencies): New constant.
10005 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
10006 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
10007 (save_inline_function_body): Likewise.
10008 * ipa-inline.c: inluce rtl.h
10009 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
10010 (cgraph_edge_badness): Use frequencies.
10011 (cgraph_decide_recursive_inlining): Update clonning.
10012 (cgraph_decide_inlining_of_small_function): Dump frequency.
10013 * predict.c (estimate_bb_frequencies): Export.
10014 * predict.h (estimate_bb_frequencies): Declare.
10015 * tree-inline.c (copy_bb): Watch overflows.
10016 (expand_call_inline): Update call of cgraph_create_edge.
10017 (optimize_inline_calls): Use TODO flags to update frequnecies.
10018 * passes.h: Include predict.h
10019 (init_optimization_passes): Move profile ahead.
10020 (execute_function_todo): Handle TODO_rebuild_frequencies.
10021
10022 2007-02-09 Roger Sayle <roger@eyesopen.com>
10023
10024 * config/alpha/alpha.c (emit_insxl): Force the first operand of
10025 the insbl or inswl pattern into a register.
10026
10027 2007-02-09 Roger Sayle <roger@eyesopen.com>
10028
10029 * config/ia64/ia64.md (bswapdi2): New define_insn.
10030
10031 2007-02-09 Richard Henderson <rth@redhat.com>
10032
10033 * config/i386/constraints.md (Ym): New constraint.
10034 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
10035 (movdi_1_rex64): Split sse and xmm general register moves from
10036 memory move alternatives. Use conditional register constraints.
10037 (movsf_1, movdf_integer): Likewise.
10038 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
10039 (movdf_integer_rex64): New.
10040 (pushsf_rex64): Fix output constraints.
10041 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
10042 (sse2_stored): Likewise.
10043 (sse2_storeq_rex64): New.
10044 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
10045 amd and not generic.
10046 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
10047 for optimize_size. Remove SF/DFmode hack.
10048
10049 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
10050
10051 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
10052 (bit_SSE4a): New.
10053
10054 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
10055 Richard Sandiford <richard@codesourcery.com>
10056
10057 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
10058 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
10059 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
10060 m68k/t-mlib to tmake_file.
10061 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
10062 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
10063 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
10064 Allow it to be cf or m68k. Set m68k_arch_family. If that
10065 variable is not empty, add t-$m68k_arch_family to tmake_file.
10066 Add t-mlibs to tmake_file.
10067 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
10068 * config/m68k/t-cf: New file.
10069 * config/m68k/t-m68k: Likewise.
10070 * config/m68k/t-mlibs: Likewise.
10071 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10072 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
10073 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
10074 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10075 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
10076 Delete.
10077 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
10078 (INSTALL_LIBGCC): Delete.
10079 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
10080 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10081 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
10082 (M68K_MLIB_CPU): Define.
10083 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10084 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
10085 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
10086
10087 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
10088 Richard Guenther <rguenther@suse.de>
10089
10090 PR middle-end/23361
10091 * fold-const.c (fold_comparison): Handle obfuscated comparisons
10092 against INT_MIN/INT_MAX.
10093 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
10094 file if a loop is removed.
10095
10096 2007-02-09 Joseph Myers <joseph@codesourcery.com>
10097
10098 * calls.c (store_one_arg): Pass correct alignment to
10099 emit_push_insn for non-BLKmode values.
10100 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
10101 unaligned stack slot via a suitably aligned slot.
10102
10103 2007-02-08 DJ Delorie <dj@redhat.com>
10104
10105 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
10106 warnings.
10107 (legal_subregs): Use unsigned char, make const.
10108 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
10109
10110 2007-02-08 Paul Brook <paul@codesourcery.com>
10111
10112 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
10113 special interworking needed.
10114
10115 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
10116
10117 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
10118 conditional to __SSE2__.
10119 (Entries below should have been added to first ChangeLog
10120 entry for amdfam10 dated 2007-02-05)
10121 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
10122 defined.
10123 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
10124 defined.
10125 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
10126 defined.
10127
10128 2007-02-08 DJ Delorie <dj@redhat.com>
10129
10130 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
10131 * config/m32c/m32c.c (legal_subregs): New.
10132 (m32c_illegal_subreg_p): New.
10133 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
10134 unsupported subregs of hard regs.
10135
10136 2007-02-08 Jan Hubicka <jh@suse.cz>
10137
10138 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
10139 the same one; always update histograms.
10140
10141 2007-02-08 Diego Novillo <dnovillo@redhat.com>
10142
10143 * passes.c (init_optimization_passes): Tidy comment.
10144
10145 2007-02-08 Roger Sayle <roger@eyesopen.com>
10146
10147 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
10148 strip zero_extend, bswap and rotates from POCOUNT's argument.
10149 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
10150 zero_extend and rotates from PARITY's argument.
10151 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
10152 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
10153 of an integer constant at compile-time.
10154
10155 2007-02-08 Diego Novillo <dnovillo@redhat.com>
10156
10157 PR 30562
10158 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
10159 Update all users.
10160 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
10161 users.
10162 (init_alias_info):
10163 * tree-ssa-live.c (remove_unused_locals): Do not remove
10164 TREE_ADDRESSABLE variables.
10165 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
10166 * tree-ssa-operands.c (add_virtual_operand): Remove argument
10167 FOR_CLOBBER. Update all users.
10168 If VAR has an associated alias set, add a virtual operand for
10169 it if no alias is found to conflict with the memory reference.
10170
10171 2007-02-07 Jan Hubicka <jh@suse.cz>
10172 Robert Kidd <rkidd@crhc.uiuc.edu>
10173
10174 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
10175
10176 2007-02-07 Ian Lance Taylor <iant@google.com>
10177
10178 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
10179
10180 2007-02-07 Roger Sayle <roger@eyesopen.com>
10181
10182 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
10183 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
10184 tablejumpdi, movsi_to_cr_one): Remove constraints from
10185 define_expand's match_operands.
10186
10187 2007-02-07 Roger Sayle <roger@eyesopen.com>
10188
10189 * global.c (compute_regsets): Move declatation of "i" inside of
10190 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
10191
10192 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10193
10194 PR c++/30703
10195 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
10196 of INDIRECT_REF <RESULT_DECL>.
10197
10198 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
10199
10200 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
10201 Kaz Kojima <kkojima@gcc.gnu.org>
10202
10203 PR target/29746
10204 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
10205 properly.
10206 (sh_initialize_trampoline): Add parentheses to avoid a warning.
10207
10208 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
10209
10210 * doc/loop.texi: Document possibility not to perform disambiguation
10211 of loops with multiple latches.
10212 * cfgloopmanip.c (alp_enum_p): Removed.
10213 (add_loop): Handle subloops. Use get_loop_body_with_size.
10214 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
10215 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
10216 the new forwarder block.
10217 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
10218 Handle the case latch is NULL.
10219 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
10220 when marking loop exits.
10221 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
10222 be modified.
10223 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
10224 disambiguate_loops_with_multiple_latches.
10225 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
10226 before fix_loop_structure.
10227 * cfgloop.c: Include pointer-set.h and output.h.
10228 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
10229 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
10230 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
10231 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
10232 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
10233 disambiguate_multiple_latches, get_loop_body_with_size,
10234 disambiguate_loops_with_multiple_latches): New functions.
10235 (flow_loop_dump): Dump multiple latch edges.
10236 (flow_loop_nodes_find): Handle loops with multiple latches.
10237 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
10238 (glb_enum_p): Modified.
10239 (get_loop_body): Use get_loop_body_with_size.
10240 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
10241 (AVOID_CFG_MODIFICATIONS): New constant.
10242 (disambiguate_loops_with_multiple_latches, add_loop,
10243 get_loop_body_with_size): Declare.
10244 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
10245
10246 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
10247
10248 PR inline-asm/28686
10249 * global.c (compute_regsets): New function.
10250 (global_alloc): Refactored ELIMINABLE_REGSET
10251 and NO_GLOBAL_ALLOC_REGS computation out.
10252 (rest_of_handle_global_alloc): Call compute_regsets()
10253 for non-optimizing case.
10254
10255 2007-02-06 Richard Henderson <rth@redhat.com>
10256
10257 * config/i386/constraints.md (Y2): Rename from Y.
10258 (Yi): New constraint.
10259 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
10260 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
10261 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
10262 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
10263 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
10264 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
10265 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
10266 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
10267 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
10268 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
10269 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
10270 vec_extractv2si_1): Change Y constraints to Y2.
10271 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
10272 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
10273 Change Y constraints to Y2.
10274 (sse2_loadld): Change Y constraints to x.
10275
10276 2007-02-06 Roger Sayle <roger@eyesopen.com>
10277
10278 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
10279 (parity<mode>2): New define_expand using rs6000_emit_parity.
10280 * config/rs6000/rs6000.c (rs6000_emit_popcount,
10281 rs6000_emit_parity): New functions.
10282 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
10283 rs6000_emit_parity): Prototype here.
10284
10285 2007-02-06 Ian Lance Taylor <iant@google.com>
10286
10287 * lower-subreg.c (simple_move_operand): Reject CONST.
10288 (resolve_clobber): Call validate_change rather than directly
10289 assigning to XEXP (pat, 0).
10290
10291 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
10292
10293 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
10294 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
10295 (tree-cfg.o): Remove hashtab.h dependency.
10296
10297 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
10298 (struct ivopts_data): Change niters to pointer_map_t.
10299 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
10300 (niter_for_exit): Create pointer_map on demand. Change for
10301 pointer_map API.
10302 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
10303 (free_loop_data): Destroy data->niters if created and reset field.
10304 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
10305 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
10306
10307 * tree-ssa-reassoc.c: Include pointer-set.h.
10308 (bb_rank): Change to long *.
10309 (operand_rank): Change to pointer_map_t.
10310 (find_operand_rank): Return long, -1 if not found. Declare as inline.
10311 (insert_operand_rank): Accept long.
10312 (operand_entry_hash, operand_entry_eq): Remove.
10313 (get_rank): Return long. Adjust for changes above.
10314 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
10315 and operand_rank.
10316 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
10317
10318 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
10319 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
10320 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
10321 is not NULL.
10322 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
10323 directly since it cannot be NULL.
10324 (get_vi_for_tree): Rewrite for pointer_map API.
10325 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
10326 (init_alias_vars): Create vi_for_tree as pointer_map.
10327 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
10328
10329 * tree-cfg.c: Don't include hashtab.h.
10330 (edge_to_cases): Declare as pointer_map.
10331 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
10332 Delete.
10333 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
10334 (start_recording_case_labels): Create edge_to_cases as pointer_map.
10335 (end_recoding_case_labels): Cleanup edge_to_cases manually before
10336 destroying it.
10337 (record_switch_edge): Delete.
10338 (get_cases_for_edge): Adjust for pointer_map API, inline
10339 record_switch_edge (rewritten for new API), remove goto.
10340
10341 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
10342
10343 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
10344 * tree-nested.c: Include pointer-set.h.
10345 (var_map_elt, var_map_eq, var_map_hash): Delete.
10346 (struct nesting_info): Remove GTY marker. Change the two htab_t's
10347 to pointer_map_t's.
10348 (nesting_info_bitmap_obstack): New.
10349 (lookup_field_for_decl): Adjust for pointer_map API.
10350 (lookup_tramp_for_decl): Adjust for pointer_map API.
10351 (get_nonlocal_debug_decl): Adjust for pointer_map API.
10352 (get_local_debug_decl): Adjust for pointer_map API.
10353 (convert_nl_goto_reference): Adjust for pointer_map API.
10354 (convert_nl_goto_receiver): Adjust for pointer_map API.
10355 (create_nesting_tree): Create outside GGC space. Create bitmap on
10356 the new obstack. Create field_map and var_map as pointer_maps.
10357 (free_nesting_tree): Adjust for changes to create_nesting_tree.
10358 (root): Delete.
10359 (lower_nested_functions): Move root here, no need to NULL it.
10360 Initialize and release the obstack.
10361
10362 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
10363
10364 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
10365 Remove prototypes and make them non-static.
10366 (struct tree_int_map): Remove.
10367 * tree.h (struct tree_int_map): Move here, turning TO into an
10368 unsigned int.
10369 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
10370
10371 * tree.h (TREE_COMPLEXITY): Remove.
10372 (struct tree_exp): Remove complexity field.
10373 * tree.c (build1_stat): Don't set it.
10374
10375 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
10376 Victor Kaplansky <victork@il.ibm.com>
10377
10378 * tree-vectorizer.c (vect_is_simple_use): Support induction.
10379 (vect_is_simple_reduction): Support reduction with induction as
10380 one of the operands.
10381 (vect_is_simple_iv_evolution): Fix formatting.
10382 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
10383 formatting. Don't mark induction phis for vectorization.
10384 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
10385 * tree-vect-transform.c (get_initial_def_for_induction): New function.
10386 (vect_get_vec_def_for_operand): Support induction.
10387 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
10388 induction case.
10389 (vectorizable_reduction): Support reduction with induction as one of
10390 the operands.
10391 (vectorizable_type_demotion): Use def-type of stmt argument rather
10392 than dummy def-type.
10393
10394 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
10395 flag_tree_scev_cprop.
10396 * common.opt (tree-scev-cprop): New flag.
10397
10398 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
10399 call to vect_get_new_vect_var.
10400
10401 2007-02-06 Ira Rosen <irar@il.ibm.com>
10402
10403 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
10404 vectype is not NULL.
10405 (vect_pattern_recog_1): Likewise.
10406
10407 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10408
10409 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
10410 (fold_negate_expr): Likewise.
10411
10412 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
10413
10414 PR debug/30189
10415 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
10416 even if cv-qualification is the same.
10417
10418 2007-02-05 Geoffrey Keating <geoffk@apple.com>
10419
10420 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
10421 __enable_execute_stack on completion.
10422
10423 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10424
10425 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
10426 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
10427 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
10428 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
10429 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
10430 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
10431 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
10432 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
10433
10434 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10435
10436 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
10437 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
10438 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
10439 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
10440 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
10441 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
10442 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
10443 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
10444 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
10445 umuldi3_highpart_rex64, umulsi3_highpart_insn,
10446 umulsi3_highpart_zext, smuldi3_highpart_rex64,
10447 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
10448 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
10449 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
10450 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
10451 sqrtextenddfxf2_i387): Added amdfam10_decode.
10452
10453 * config/i386/athlon.md (athlon_idirect_amdfam10,
10454 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
10455 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
10456 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
10457 athlon_ivector_store_amdfam10): New define_insn_reservation.
10458 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
10459 amdfam10.
10460
10461 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10462
10463 * config/i386/athlon.md (athlon_call_amdfam10,
10464 athlon_pop_amdfam10, athlon_lea_amdfam10): New
10465 define_insn_reservation.
10466 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
10467 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
10468 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
10469
10470 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10471
10472 * config/i386/athlon.md (athlon_sseld_amdfam10,
10473 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
10474 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
10475
10476 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10477
10478 * config/i386/athlon.md (athlon_sseins_amdfam10): New
10479 define_insn_reservation.
10480 * config/i386/i386.md (sseins): Added sseins to define_attr type
10481 and define_attr unit.
10482 * config/i386/sse.md: Set type attribute to sseins for insertq
10483 and insertqi.
10484
10485 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10486
10487 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
10488 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
10489 ssecomi_load_amdfam10, ssecomi_amdfam10,
10490 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
10491 define_insn_reservation.
10492 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
10493
10494 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10495
10496 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
10497 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
10498 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
10499 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
10500 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
10501 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
10502 define_insn_reservation.
10503
10504 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
10505 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
10506 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
10507 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
10508 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
10509
10510 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10511
10512 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
10513 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
10514 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
10515 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
10516 athlon_ssemul_load_k8): Added amdfam10.
10517
10518 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10519
10520 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
10521 (x86_sse_unaligned_move_optimal): New variable.
10522
10523 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
10524 m_AMDFAM10.
10525 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
10526 for unaligned vector SSE double/single precision loads for AMDFAM10.
10527
10528 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10529
10530 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
10531 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
10532 Define TARGET_CPU_DEFAULT_amdfam10.
10533 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
10534 (processor_type): Add PROCESSOR_AMDFAM10.
10535
10536 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
10537 processor_type in config/i386/i386.h.
10538 Enable imul peepholes for TARGET_AMDFAM10.
10539
10540 * config.gcc: Add support for --with-cpu option for amdfam10.
10541
10542 * config/i386/i386.c (amdfam10_cost): New variable.
10543 (m_AMDFAM10): New macro.
10544 (m_ATHLON_K8_AMDFAM10): New macro.
10545 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
10546 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
10547 x86_promote_QImode, x86_integer_DFmode_moves,
10548 x86_partial_reg_dependency, x86_memory_mismatch_stall,
10549 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10550 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
10551 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
10552 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
10553 Enable/disable for amdfam10.
10554 (override_options): Add amdfam10_cost to processor_target_table.
10555 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
10556 processor_alias_table.
10557 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
10558 (ix86_adjust_cost): Add code for amdfam10.
10559
10560 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
10561
10562 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
10563 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
10564 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
10565 * config/i386/i386.h: Add builtin definition for SSE4A.
10566 * config/i386/i386.md: Add support for ABM instructions
10567 (popcnt and lzcnt).
10568 * config/i386/sse.md: Add support for SSE4A instructions
10569 (movntss, movntsd, extrq, insertq).
10570 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
10571 Add -march=amdfam10 flag.
10572 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
10573 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
10574 and amdfam10.
10575 * doc/extend.texi: Add documentation for SSE4A builtins.
10576
10577 2007-02-05 Bob Wilson <bob.wilson@acm.org>
10578
10579 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
10580
10581 2007-02-05 Richard Guenther <rguenther@suse.de>
10582
10583 * tree-vectorizer.h (vectorizable_function): Add argument type
10584 argument, change return type.
10585 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
10586 * tree-vect-transform.c (vectorizable_function): Handle extra
10587 argument, return vectorized function decl.
10588 (build_vectorized_function_call): Remove.
10589 (vectorizable_call): Handle calls with result and argument types
10590 differing. Handle loop vectorization factor correctly.
10591 * targhooks.c (default_builtin_vectorized_function): Adjust for
10592 extra argument.
10593 * targhooks.h (default_builtin_vectorized_function): Likewise.
10594 * target.h (builtin_vectorized_function): Add argument type
10595 argument.
10596 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
10597 extra argument, allow vectorizing of lrintf.
10598 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
10599 documentation of target hook.
10600
10601 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
10602
10603 PR target/30665
10604 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
10605 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
10606 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
10607
10608 2007-02-05 Roger Sayle <roger@eyesopen.com>
10609
10610 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
10611 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
10612 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
10613 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
10614 before canonicalizing sincos to cexpi.
10615 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
10616
10617 2007-02-05 Roger Sayle <roger@eyesopen.com>
10618
10619 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
10620 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
10621 (alpha_init_builtins): Use alpha_add_builtins to process tables.
10622
10623 2007-02-05 Roger Sayle <roger@eyesopen.com>
10624
10625 * mips-tfile.c (initialize_init_file): Correct endianness test.
10626
10627 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
10628
10629 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
10630 the 'y' constraint.
10631
10632 2007-02-05 Richard Sandiford <richard@codesourcery.com>
10633
10634 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
10635 saves in a PARALLEL before the register assignments.
10636
10637 2007-02-05 Richard Sandiford <richard@codesourcery.com>
10638
10639 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
10640 DWARF_FRAME_RETURN_COLUMN to be a general register.
10641 * dwarf2out.c (init_return_column_size): New function, split from...
10642 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
10643 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
10644 to be nongeneral registers.
10645 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
10646 integer registers.
10647 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
10648 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
10649
10650 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
10651
10652 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
10653
10654 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
10655
10656 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
10657 (remove_path): Use can_remove_branch_p and remove_branch instead
10658 of loop_delete_branch_edge.
10659 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
10660 (tree_transform_and_unroll_loop): Remove dead branches immediately.
10661 Update profile using scale_dominated_blocks_in_loop.
10662 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
10663 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
10664 (can_remove_branch_p, remove_branch): Declare.
10665 * tree-cfg.c (tree_can_remove_branch_p): New function.
10666 (tree_cfg_hooks): Add tree_can_remove_branch_p.
10667 * cfgrtl.c (rtl_can_remove_branch_p): New function.
10668 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
10669
10670 2007-02-05 Jan Hubicka <jh@suse.cz>
10671
10672 PR middle-end/30696
10673 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
10674 nodes in cgraph, don't remove offline copy of the function.
10675
10676 2007-02-04 Jan Hubicka <jh@suse.cz>
10677
10678 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
10679 vectors might cause maybe_lookup_element_for_expr to be called
10680 on non-sra-candidate.
10681
10682 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
10683
10684 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
10685 config/bfin/bfin.md, config/bfin/predicates.md: Follow
10686 spelling conventions.
10687
10688 2007-02-04 Richard Guenther <rguenther@suse.de>
10689
10690 PR middle-end/30636
10691 * fold-const.c (try_move_mult_to_index): Make sure to not
10692 overflow one dimension of a multi-dimensional array access.
10693
10694 2007-02-04 Jan Hubicka <jh@suse.cz>
10695
10696 * passes.c (init_optimization_passes): Reindent.
10697
10698 2007-02-04 Jan Hubicka <jh@suse.cz>
10699 Eric Botcazou <ebotcazou@adacore.com>
10700
10701 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
10702 (execute_fixup_cfg): Break out the abnormal goto code.
10703 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
10704 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
10705 (optimize_inline_calls): Call make_nonlocal_label_edges.
10706
10707 2007-02-04 Jan Hubicka <jh@suse.cz>
10708
10709 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
10710 true when something was changed.
10711 (rename_ssa_copies): When something was changed, do
10712 TODO_remove_unused_locals.
10713 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
10714 add TODO_remove_unused_locals when instruction was removed.
10715
10716 2007-02-04 Jan Hubicka <jh@suse.cz>
10717
10718 * ipa-inline.c (try_inline): Improve debug output; work on already
10719 inline edges too.
10720 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
10721 call try_inline for already inlined edges too when flattening;
10722 inline also functions that make callee growth but overall unit size
10723 reduce.
10724
10725 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
10726
10727 * config/m32c/bitops.md, config/m32c/jump.md,
10728 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
10729 config/m32r/m32r.h, config/m32r/m32r.md,
10730 config/m32r/predicates.md, config/m68hc11/larith.asm,
10731 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
10732 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
10733 config/mips/mips-protos.h, config/mips/mips.c,
10734 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
10735 config/mn10300/mn10300.h, config/mn10300/predicates.md,
10736 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
10737 spelling conventions.
10738
10739 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
10740 Follow spelling conventions.
10741
10742 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
10743
10744 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
10745 warn about C++0x compatibility.
10746
10747 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
10748
10749 * config/h8300/h8300.c, config/h8300/h8300.h,
10750 config/h8300/h8300.md: Follow spelling conventions.
10751
10752 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
10753
10754 PR middle-end/30667
10755 * combine.c (try_combine): Do not substitute source operand
10756 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
10757
10758 2007-02-03 Jan Hubicka <jh@suse.cz>
10759
10760 PR gcov-profile/30650
10761 * value-prof.c (stringop_block_profile): Fix handling of size counter;
10762 do not divide by zero for never executed counters.
10763 (tree_find_values_to_profile): Fix counters.
10764 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
10765
10766 2007-02-03 Ian Lance Taylor <iant@google.com>
10767
10768 * lower-subreg.c (simple_move_operand): New static function,
10769 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
10770 operands.
10771 (simple_move): Call simple_move_operand.
10772 (find_decomposable_subregs): Add special handling of MEMs.
10773 (can_decompose_p): Rename from cannot_decompose_p. Reverse
10774 meaning of return value. If we see a hard register, test whether
10775 it can store a word_mode value. Change all callers.
10776
10777 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10778
10779 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
10780 ftrapv insns and expanders.
10781 (subdi3): Change define_expand operand 1 to arith11_operand, and
10782 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
10783 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
10784 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
10785 respectively.
10786
10787 PR middle-end/30174
10788 * varasm.c (notice_global_symbol): Treat global objects as weak when
10789 flag_shlib is true.
10790
10791 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10792
10793 * emit-rtl.c (dconstpi): Delete.
10794 (dconstsqrt2): New.
10795 (init_emit_once): Delete dconstpi and init dconstsqrt2.
10796 * real.h (dconstpi): Delete.
10797 (dconstsqrt2): New.
10798 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
10799 (fold_builtin_hypot): Likewise.
10800
10801 2007-02-03 Tom Tromey <tromey@redhat.com>
10802
10803 PR driver/30246
10804 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
10805 -gcoff3, -gxcoff3, -gvms3 implies -dD.
10806
10807 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
10808
10809 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
10810 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
10811 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
10812 config/rs6000/cell.md, config/rs6000/darwin.h,
10813 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
10814 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
10815 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
10816 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
10817 typos. Follow spelling conventions.
10818 * doc/invoke.texi: Follow spelling conventions.
10819
10820 2007-02-03 Roger Sayle <roger@eyesopen.com>
10821
10822 * simplify-rtx.c (simplify_relational_operation_1): Implement some
10823 canonicalization transformations that attempt to simplify integer
10824 constant comparisons to become comparisons against zero.
10825
10826 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10827
10828 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
10829 fabs(x)*sqrt(2).
10830 * fold-const.c (fold_binary): Fix comment typos. Fold complex
10831 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
10832
10833 2007-02-02 Mike Stump <mrs@apple.com>
10834
10835 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
10836 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
10837 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
10838 generate a branch island.
10839
10840 2007-02-02 Bob Wilson <bob.wilson@acm.org>
10841
10842 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
10843 (xtensa_legitimate_address_p): New.
10844 (xtensa_legitimize_address): New.
10845 (xtensa_output_addr_const_extra): New.
10846 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
10847 (BASE_REG_P): New.
10848 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
10849 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
10850 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
10851 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
10852 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
10853 (xtensa_legitimize_address): New.
10854 (xtensa_output_addr_const_extra): New.
10855
10856 2007-02-02 Steve Ellcey <sje@cup.hp.com>
10857
10858 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
10859
10860 2007-02-02 Ian Lance Taylor <iant@google.com>
10861
10862 * expmed.c (expand_divmod): Add comment.
10863
10864 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
10865
10866 * emit-rtl.c (renumber_insns): Remove.
10867 * flags.h: Remove the extern for flag_renumber_insns.
10868 * rtl.h: Remove the prototype for renumber_insns.
10869 * toplev.c (flag_renumber_insns): Remove.
10870
10871 2007-02-02 Hui-May Chang <hm.chang@apple.com>
10872
10873 Revert for x86 darwin:
10874 2005-06-19 Uros Bizjak <uros@kss-loka.si>
10875
10876 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
10877 code before the following patch under TARGET_MACHO.
10878 (ix86_function_value_regno_p): Likewise.
10879
10880 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10881
10882 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
10883 COMPLEX_EXPR.
10884
10885 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10886
10887 PR target/29682
10888 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
10889 general or fp registers. Add comments.
10890 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
10891
10892 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
10893
10894 * pointer-set.c (insert_aux): Only return insertion slot.
10895 (pointer_set_insert): Adjust.
10896 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
10897 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
10898 pointer_map_traverse): New.
10899 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
10900 pointer_map_create, pointer_map_destroy, pointer_map_insert,
10901 pointer_map_contains, pointer_map_traverse): Declare.
10902
10903 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10904
10905 PR middle-end/30473
10906 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
10907 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
10908
10909 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10910
10911 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
10912
10913 (struct _dep): New type.
10914 (dep_t): New typedef.
10915 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
10916 (DEP_STATUS): New access macro. The macro with the same name was
10917 renamed to DEP_LINK_STATUS.
10918 (dep_init): Declare function
10919
10920 (struct _dep_link): New type.
10921 (dep_link_t): New typedef.
10922 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
10923 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
10924 (DEP_LINK_STATUS): New macro.
10925 (debug_dep_links): New debug function.
10926
10927 (struct _deps_list): New type.
10928 (deps_list_t): New typedef.
10929 (DEPS_LIST_FIRST): New access macro.
10930 (FOR_EACH_DEP_LINK): New cycle macro.
10931 (create_deps_list, free_deps_list, delete_deps_list): Declare
10932 functions.
10933 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
10934 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
10935 (copy_deps_list_change_con): Ditto.
10936
10937 (move_dep_link): Declare function.
10938
10939 (struct _dep_node): New type.
10940 (dep_node_t): New typedef.
10941 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
10942
10943 (struct haifa_insn_data.back_deps): New field to hold backward
10944 dependencies of the insn.
10945 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
10946 to deps_list_t.
10947 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
10948 Change its type to deps_list_t.
10949 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
10950 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
10951 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
10952
10953 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
10954
10955 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
10956
10957 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
10958 all callers.
10959 (dep_cost): Declare.
10960
10961 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
10962 (ds_to_dk, dk_to_ds): New functions.
10963
10964 (init_dep_1): New static function.
10965 (init_dep): New function.
10966 (copy_dep): New static function.
10967
10968 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
10969 functions.
10970 (detach_dep_link): New static function.
10971 (move_dep_link): New function.
10972
10973 (dep_links_consistent_p, dump_dep_links): New static functions.
10974 (debug_dep_links): New debugging function.
10975
10976 (deps_obstack, dl_obstack, dn_obstack): New static variables.
10977
10978 (alloc_deps_list, init_deps_list): New static functions.
10979 (create_deps_list): New function.
10980 (clear_deps_list): New static function.
10981 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
10982 (deps_list_consistent_p, dump_deps_list): New static functions.
10983 (debug_deps_list): New function.
10984 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
10985 functions.
10986 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
10987
10988 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
10989 use new scheduler dependencies lists.
10990 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
10991 (sched_analyze): Ditto. Initialize dependencies lists.
10992 (add_forw_dep, compute_forward_dependences): Update to use new
10993 scheduler dependencies lists.
10994
10995 (init_dependency_caches): Init deps_obstack.
10996 (free_dependency_caches): Free deps_obstack.
10997
10998 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
10999 new scheduler dependencies lists.
11000 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
11001 (add_back_forw_dep, delete_back_forw_dep): Ditto.
11002
11003 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
11004 Update to use new scheduler dependencies lists.
11005 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
11006 (debug_dependencies): Ditto.
11007 (schedule_region): Update comments.
11008
11009 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
11010 scheduler dependencies lists.
11011 (schedule_ebb): Update comments.
11012
11013 * rtl.def (DEPS_LIST): Remove.
11014
11015 * lists.c (unused_deps_list): Remove.
11016 (free_list): Update assertions.
11017
11018 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
11019 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
11020
11021 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
11022 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
11023
11024 * haifa-sched.c (comments): Update.
11025 (insn_cost1): Remove. Inline the code into insn_cost ().
11026 (insn_cost): Update to use new scheduler dependencies lists. Move
11027 processing of the dependency cost to dep_cost ().
11028 (dep_cost): New function. Use it instead of insn_cost () when
11029 evaluating cost of the dependency. Use compatible interface to
11030 interact with the target.
11031 (priority): Update to use new scheduler dependencies lists.
11032 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
11033 with greater number of insns that depend on the insn.
11034 (schedule_insn): Update to use new scheduler dependencies lists. Add
11035 code to free backward dependencies lists. Inline and optimize code
11036 from resolve_dep () - see PR28071.
11037 (ok_for_early_queue_removal): Update to use new scheduler dependencies
11038 lists. Update call to targetm.sched.is_costly_dependence hook.
11039
11040 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
11041 scheduler dependencies lists.
11042
11043 (resolve_dep): Remove. Move the logic to schedule_insn ().
11044 (init_h_i_d): Initialize dependencies lists.
11045
11046 (process_insn_depend_be_in_spec): Rename to
11047 process_insn_forw_deps_be_in_spec. Update to use new scheduler
11048 dependencies lists.
11049 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
11050 Update to use new scheduler dependencies lists.
11051 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
11052
11053 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
11054 new scheduler dependencies lists.
11055 (build_intra_loop_deps): Ditto.
11056
11057 * target.h (struct _dep): Declare to use in
11058 gcc_target.sched.is_costly_dependence.
11059 (struct gcc_target.sched.adjust_cost): Fix typo.
11060 (struct gcc_target.sched.is_costly_dependence): Change signature to use
11061 single dep_t parameter instead of an equivalent triad.
11062 (struct gcc_target.sched.adjust_cost_2): Remove.
11063
11064 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
11065
11066 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
11067
11068 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
11069 documentation.
11070 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
11071
11072 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
11073 (REG_DEP_TRUE): Document.
11074
11075 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
11076 Change signature to correspond to the targetm.sched.adjust_cost hook.
11077 Update use in TARGET_SCHED_ADJUST_COST_2.
11078 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
11079 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
11080 new scheduler dependencies lists.
11081 (ia64_gen_check): Ditto.
11082
11083 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
11084 dependencies lists.
11085
11086 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
11087 signature to correspond to the targetm.sched.is_costly_dependence hook.
11088 (is_costly_group): Update to use new scheduler dependencies lists.
11089
11090 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
11091 instead of INSN_COST () macro.
11092
11093 2007-02-01 Ian Lance Taylor <iant@google.com>
11094
11095 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
11096
11097 2007-02-01 Guy Martin <gmsoft@gentoo.org>
11098
11099 * pa.md (tp_load): Correct mfctl instruction syntax.
11100
11101 2007-02-01 Geoffrey Keating <geoffk@apple.com>
11102
11103 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
11104 altivec_padding_size calculation on AIX. Improve comment, add
11105 assert to verify that it's right.
11106
11107 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
11108 64-bit.
11109
11110 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
11111
11112 PR inline-asm/28686
11113 * global.c (global_alloc): Add mising initialization of
11114 ELIMINABLE_REGSET.
11115
11116 2007-02-01 Roger Sayle <roger@eyesopen.com>
11117
11118 * alias.c (init_alias_analysis): Correct whitespace.
11119 * bb-reorder.c (fix_edges_for_rarely_executed_code,
11120 partition_hot_cold_basic_blocks): Likewise.
11121 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
11122 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
11123 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
11124 fold_builtin_snprintf_chk, fold_builtin_printf,
11125 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
11126 do_mpfr_arg3, do_mpfr_sincos): Likewise.
11127 * cfgcleanup.c (cleanup_cfg): Likewise.
11128 * cfgexpand.c (tree_expand_cfg): Likewise.
11129 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
11130 * function.c (get_next_funcdef_no): Likewise.
11131 * gengtype.c (main): Likewise.
11132 * genmodes.c (main): Likewise.
11133 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
11134 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
11135 * ifcvt.c (noce_emit_move_insn): Likewise.
11136 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
11137 Likewise.
11138 * stor-layout.c (get_best_mode): Likewise.
11139 * tree-ssa-loop-niter.c (get_val_for): Likewise.
11140 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
11141 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
11142 perform_var_substitution, solve_graph): Likewise.
11143 * tree-vrp.c (vrp_finalize): Likewise.
11144
11145 2007-02-01 Ian Lance Taylor <iant@google.com>
11146
11147 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
11148 high part of a paradoxical subreg, return a constant zero.
11149
11150 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
11151
11152 * toplev.c (lang_dependent_init): Call init_set_costs.
11153 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
11154
11155 2007-02-01 Richard Guenther <rguenther@suse.de>
11156
11157 PR middle-end/30656
11158 * fold-const.c (fold_negate_expr): Allow negating a
11159 constant if overflow does not change.
11160
11161 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11162
11163 * doc/c-tree.texi (Expression trees): Improve markup.
11164 * doc/tm.texi (Register Classes, Addressing Modes)
11165 (Floating Point): Fix spacing after abbreviations. Fix some
11166 typos.
11167
11168 2007-02-01 Ben Elliston <bje@au.ibm.com>
11169
11170 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
11171 * doc/contrib.texi: Likewise.
11172 * doc/install.texi: Likewise.
11173
11174 2007-01-31 Richard Henderson <rth@redhat.com>
11175 Ian Lance Taylor <iant@google.com>
11176
11177 * lower-subreg.c: New file.
11178 * rtl.def (CONCATN): Define.
11179 * passes.c (init_optimization_passes): Add pass_lower_subreg and
11180 pass_lower_subreg2.
11181 * emit-rtl.c (update_reg_offset): New static function, broken out
11182 of gen_rtx_REG_offset.
11183 (gen_rtx_REG_offset): Call update_reg_offset.
11184 (gen_reg_rtx_offset): New function.
11185 * regclass.c: Revert patch of 2006-03-05, restoring
11186 reg_scan_update.
11187 (clear_reg_info_regno): New function.
11188 * dwarf2out.c (concatn_loc_descriptor): New static function.
11189 (loc_descriptor): Handle CONCATN.
11190 * common.opt (fsplit_wide_types): New option.
11191 * opts.c (decode_options): Set flag_split_wide_types when
11192 optimizing.
11193 * timevar.def (TV_LOWER_SUBREG): Define.
11194 * rtl.h (gen_reg_rtx_offset): Declare.
11195 (reg_scan_update): Declare.
11196 * regs.h (clear_reg_info_regno): Declare.
11197 * tree-pass.h (pass_lower_subreg): Declare.
11198 (pass_lower_subreg2): Declare.
11199 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
11200 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
11201 -fsplit-wide-types.
11202 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
11203 * Makefile.in (OBJS-common): Add lower-subreg.o.
11204 (lower-subreg.o): New target.
11205
11206 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
11207
11208 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
11209
11210 2007-01-31 Anatoly Sokolov <aesok@post.ru>
11211
11212 PR target/19087
11213 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
11214
11215 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11216
11217 PR middle-end/29335
11218 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
11219
11220 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
11221
11222 * cfgloop.h: Include vec-prim.h.
11223 (enum li_flags): Remove LI_ONLY_OLD.
11224 (loop_iterator): Changed.
11225 (fel_next, fel_init): Iterate over loop tree.
11226 (FOR_EACH_LOOP_BREAK): New macro.
11227 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
11228 FOR_EACH_LOOP.
11229 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
11230 * modulo-sched.c (sms_schedule): Ditto.
11231 * tree-vectorizer.c (vectorize_loops): Ditto.
11232 * doc/loop.texi: Update information on loop numbering and behavior of
11233 FOR_EACH_LOOP wrto new loops.
11234 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
11235 add_to_evolution_1): Test nestedness of loops instead of comparing
11236 their numbers.
11237 * tree-chrec.c (chrec_fold_plus_poly_poly,
11238 chrec_fold_multiply_poly_poly, chrec_evaluate,
11239 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
11240 reset_evolution_in_loop): Ditto.
11241 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
11242
11243 2007-01-31 Dirk Mueller <dmueller@suse.de>
11244
11245 * c-common.c (warn_about_parentheses): Separate warning about
11246 un-parenthized sequence of comparison operators from the one
11247 which is supposed to warn about x <= y <= z.
11248
11249 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
11250
11251 * optabs.h (enum optab_index): Add new OTI_isinf.
11252 (isinf_optab): Define corresponding macro.
11253 * optabs.c (init_optabs): Initialize isinf_optab.
11254 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
11255 patterns.
11256 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
11257 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
11258 using isinf_optab.
11259 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
11260 expand_builtin_interclass_mathfn.
11261 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
11262 * config/i386/i386.md (UNSPEC_FXAM): New constant.
11263 (fxam<mode>2_i387): New insn pattern.
11264 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
11265 built-in functions as x87 inline asm.
11266
11267 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
11268
11269 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
11270
11271 2007-01-30 Eric Christopher <echristo@apple.com>
11272
11273 * config.gcc: Add geode.
11274
11275 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
11276
11277 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
11278 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
11279 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
11280 value-prof.c: Fix comment typos.
11281
11282 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11283
11284 PR c++/24745
11285 * doc/invoke.texi (Wpointer-arith): Document warning.
11286
11287 2007-01-30 Janis Johnson <janis187@us.ibm.com>
11288
11289 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
11290 the list of discrepancies from the draft TR.
11291
11292 2007-01-30 Dirk Mueller <dmueller@suse.de>
11293
11294 PR c++/30601
11295 * doc/invoke.texi (-Wreturn-type): Update description to
11296 match new behavior.
11297
11298 2007-01-30 Richard Sandiford <richard@codesourcery.com>
11299
11300 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
11301
11302 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
11303
11304 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
11305 to handle optabs that operate on floating point input argument and
11306 output to integer output.
11307 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
11308 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
11309 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
11310 expand_builtin_interclass_mathfn ().
11311 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
11312 (ilogbsi2): Remove.
11313 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
11314 ilogbl built-in functions as x87 intrinsics.
11315
11316 2007-01-30 Richard Guenther <rguenther@suse.de>
11317
11318 PR middle-end/27657
11319 * dwarf2out.c (reference_to_unused): Query varpool if the
11320 variable was output.
11321
11322 2007-01-30 Richard Guenther <rguenther@suse.de>
11323
11324 PR middle-end/30313
11325 * passes.c (execute_one_pass): Reset in_gimple_form to not
11326 confuse non-unit-at-a-time mode.
11327
11328 2007-01-29 Roger Sayle <roger@eyesopen.com>
11329 Richard Guenther <rguenther@suse.de>
11330
11331 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
11332 avoid undefined behaviour on overflow. Use force_fit_type_double
11333 to construct the constant with the specified TREE_OVERFLOW.
11334
11335 2007-01-29 Janis Johnson <janis187@us.ibm.com>
11336
11337 * config/dfp-bit.c: Add parameterized support for fp exceptions.
11338 * config/dfp-bit.h: Ditto.
11339
11340 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11341
11342 * c-decl.c (pop_scope): Replace warnings with call to
11343 warn_for_unused_label.
11344 * c-common.h (warn_for_unused_label): Declare.
11345 * c-common.c (warn_for_unused_label): Define.
11346
11347 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11348
11349 * tree-optimize.c (update_inlined_to_pointers): Delete unused
11350 function.
11351
11352 2007-01-29 Janis Johnson <janis187@us.ibm.com>
11353
11354 * Makefile.in (USER_H): Remove decfloat.h.
11355 * ginclude/decfloat.h: Delete, moving contents to ...
11356 * ginclude/float.h: Add support for decimal floating point,
11357 guarded by __STDC_WANT_DEC_FP__.
11358
11359 2007-01-29 Mike Stump <mrs@apple.com>
11360
11361 * doc/gccint.texi (Top): Rename Loop Representation to Loop
11362 Analysis and Representation to resolve case insensitive conflict.
11363 * doc/loop.texi (Loop Analysis and Representation): Likewise.
11364
11365 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
11366
11367 * tree.h (struct tree_memory_tag): Add aliases member.
11368 (MTAG_ALIASES): New macro.
11369 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
11370 (add_may_alias): Remove pointer-set. Update for may_aliases being
11371 a bitmap.
11372 (mark_aliases_call_clobbered): Update for may_aliases being a
11373 bitmap.
11374 (compute_tag_properties): Ditto.
11375 (create_partition_for): Ditto.
11376 (compute_memory_partitions): Ditto.
11377 (dump_may_aliases_for): Ditto.
11378 (is_aliased_with): Ditto.
11379 (add_may_alias_for_new_tag): Ditto.
11380 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
11381 (compute_is_aliased): New function.
11382 (compute_may_aliases): Call compute_is_aliased).
11383 (init_alias_info): Initialize alias_bitmap_obstack.
11384 (union_alias_set_into): New function.
11385 (compute_flow_sensitive_aliasing): Use union_aliases_into.
11386 (have_common_aliases_p): Rewrite to take two bitmaps and use
11387 intersection.
11388 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
11389 Update for bitmaps.
11390 (finalize_ref_all_pointers): Update for add_may_alias changes.
11391 (new_type_alias): Ditto.
11392 * tree-flow-inline.h (may_aliases): Return a bitmap.
11393 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
11394 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
11395 may_aliases being a bitmap.
11396 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
11397 may_aliases now returns a bitmap.
11398 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
11399 being a bitmap.
11400 * tree-ssa-operands.c (add_virtual_operand): Update for
11401 may_aliases being a bitmap.
11402
11403 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
11404
11405 PR tree-optimization/30630
11406 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
11407 variable as changed.
11408
11409 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
11410
11411 PR c++/28266
11412 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
11413 expanded only once even if an error occurs.
11414
11415 2007-01-29 Ben Elliston <bje@au.ibm.com>
11416
11417 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
11418 (__gcov_average_profiler): Likewise.
11419 (__gcov_ior_profiler): Likewise.
11420 (__gcov_merge_ior): Likewise.
11421
11422 2007-01-28 Jan Hubicka <jh@suse.cz>
11423
11424 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
11425 * value-prof.c (stringop_block_profile): Likewise.
11426
11427 2007-01-28 Jan Hubicka <jh@suse.cz>
11428
11429 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
11430 variant handling histograms; add wrapper.
11431 (clear_storage_via_libcall): Export.
11432 (emit_block_move_hints): Break out from ...; add histograms.
11433 (emit_block_move): ... this one.
11434 (clear_storage_hints): Break out from ...; add histograms.
11435 (clear_storage): ... this one.
11436 (set_storage_via_memset): Handle histogram.
11437 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
11438 (clear_storage_hints, clear_storage_via_libcall): Declare.
11439 (set_storage_via_setmem): Update prototype.
11440 * doc/md.texi (movmem, setmem): Document new arguments.
11441
11442 * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
11443 new histograms.
11444 (stringop_block_profile): New global function.
11445 (tree_stringops_values_to_profile): Profile block size and alignment.
11446 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
11447 HIST_TYPE_IOR.
11448 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
11449 (stringop_block_profile): Declare.
11450 * builtins.c: Include value-prof.h.
11451 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
11452 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
11453 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
11454 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
11455 * profile.c (instrument_values): Add new counters.
11456 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
11457 calls.
11458 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
11459 (tree_init_edge_profiler): Build new profilers.
11460 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
11461 (pass_tree_profile): Add dump.
11462 (tree_profile_hooks): Update.
11463 * Makefile.in (LIBGCOV): Add new constants.
11464 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
11465 __gcov_ior_profiler): New.
11466 * i386.md (movmem/setmem expanders): Add new optional arguments.
11467
11468 2007-01-28 David Edelsohn <edelsohn@gnu.org>
11469
11470 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
11471
11472 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
11473
11474 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
11475 (tree_unswitch_single_loop): Pass eni_size_weights to
11476 tree_num_loop_insns.
11477 * tree-ssa-loop-manip.c: Include tree-inline.h.
11478 (can_unroll_loop_p): Pass eni_size_weights to
11479 tree_num_loop_insns.
11480 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
11481 Pass eni_size_weights to estimate_num_insns.
11482 * tree.h (init_inline_once): Export.
11483 * toplev.c (backend_init): Call init_inline_once.
11484 * cgraphunit.c (cgraph_process_new_functions,
11485 cgraph_analyze_function): Pass eni_inlining_weights to
11486 estimate_num_insns.
11487 * ipa-inline.c (compute_inline_parameters): Ditto.
11488 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
11489 to estimate_num_insns.
11490 (try_unroll_loop_completely): Pass eni_size_weights to
11491 tree_num_loop_insns.
11492 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
11493 ot estimate_num_insns.
11494 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
11495 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
11496 * tree-inline.c (eni_inlining_weights, eni_size_weights,
11497 eni_time_weights): New variables.
11498 (init_inline_once): Initialize them.
11499 (struct eni_data): Mew.
11500 (estimate_num_insns_1, estimate_num_insns): Use weights.
11501 * tree-inline.h (struct eni_weights_d): New.
11502 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
11503 (estimate_num_insns): Declaration changed.
11504 * cfgloop.h (tree_num_loop_insns): Declaration changed.
11505 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
11506 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
11507
11508 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
11509
11510 * tree-data-ref.c (conflict_fn): Assert that the number of affine
11511 relations in the conflict function is valid.
11512
11513 2007-01-27 Ian Lance Taylor <iant@google.com>
11514
11515 * common.opt: Add fstrict-overflow.
11516 * opts.c (decode_options): Set flag_strict_overflow if -O2.
11517 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
11518 (TYPE_OVERFLOW_UNDEFINED): Define.
11519 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
11520 Replace all uses.
11521 * tree.h (TYPE_TRAP_SIGNED): Don't define.
11522 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
11523 (fold_negate_expr): Likewise.
11524 (make_range): Likewise.
11525 (extract_muldiv_1): Likewise.
11526 (maybe_canonicalize_comparison): Likewise.
11527 (fold_comparison): Likewise.
11528 (fold_binary): Likewise.
11529 (tree_expr_nonnegative_p): Likewise.
11530 (tree_expr_nonzero_p): Likewise.
11531 * tree-vrp.c (compare_values): Likewise.
11532 (extract_range_from_binary_expr): Likewise.
11533 (extract_range_from_unary_expr): Likewise.
11534 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
11535 Likewise.
11536 (nowrap_type_p): Likewise.
11537 * tree-scalar-evolution.c (simple_iv): Likewise.
11538 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
11539 (build_range_check): Likewise.
11540 (extract_muldiv_1): Likewise.
11541 (fold_comparison): Likewise.
11542 * tree-vrp.c (vrp_int_const_binop): Likewise.
11543 (extract_range_from_unary_expr): Likewise.
11544 * convert.c (convert_to_integer): Likewise.
11545 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
11546 (fold_comparison): Likewise.
11547 (fold_binary): Likewise.
11548 * optabs.c (optab_for_tree_code): Likewise.
11549 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
11550 * simplify-rtx.c (simplify_const_relational_operation): Check
11551 flag_strict_overflow and flag_trapv.
11552 (simplify_const_relational_operation): Likewise.
11553 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
11554 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
11555 -fstrict-overflow.
11556
11557 2007-01-27 Roger Sayle <roger@eyesopen.com>
11558
11559 * tree.c (tree_fold_gcd): Delete.
11560 * tree.h (tree_fold_gcd): Remove prototype.
11561 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
11562 test whether one constant integer is a multiple of another. Instead
11563 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
11564 * fold-const.c (multiple_of_p): We've determined both TOP and
11565 BOTTOM are integer constants so we can call int_const_binop directly
11566 instead of the more generic const_binop.
11567
11568 2007-01-27 Roger Sayle <roger@eyesopen.com>
11569
11570 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
11571 1*X check that the constant hasn't overflowed, to preserve the
11572 TREE_OVERFLOW bit.
11573 (round_up): Provide an efficient implementation when rouding-up an
11574 INTEGER_CST to a power-of-two.
11575
11576 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11577
11578 * doc/sourcebuild.texi: Add comma for clarity.
11579 * doc/extend.texi: Fix some typos.
11580 * doc/passes.texi: Likewise.
11581 * doc/cppinternals.texi: Likewise.
11582 * doc/c-tree.texi: Likewise.
11583 * doc/tree-ssa.texi: Likewise.
11584 * doc/install.texi: Likewise.
11585
11586 2007-01-27 Jan Hubicka <jh@suse.cz>
11587
11588 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
11589 (pass_sra): Do not require alias information.
11590 * passes.c (init_optimization_passes): Add SRA
11591
11592 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
11593
11594 * tracer.c (rest_of_handle_tracer): We already cleaned
11595 up the CFG in tracer() so don't do it here again.
11596 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
11597 cleanup_cfg here, either. And don't call renumber_insns.
11598
11599 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
11600 and BB_HEAD are in the insn stream here. Instead make sure
11601 that BB_INSN is valid on all insns. Also, do check here that
11602 there are no pending branch predictions...
11603 (rtl_verify_flow_info): ...instead of doing it here. Checks
11604 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
11605 here.
11606
11607 2007-01-26 Roger Sayle <roger@eyesopen.com>
11608
11609 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
11610 function to simplify/factorize operand order canonicalization.
11611 (ix86_fixup_binary_operands): Reorganize using the above function.
11612 (ix86_binary_operator_ok): Likewise.
11613
11614 2007-01-27 Jakub Jelinek <jakub@redhat.com>
11615
11616 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
11617 file scope from optimize_attrs.
11618 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
11619 up search.
11620 (optimize_attrs): Clear insn_code_values after freeing it.
11621
11622 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
11623
11624 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
11625 a parts.base assignment.
11626
11627 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
11628
11629 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
11630 (compute_subscript_distance, initialize_data_dependence_relation,
11631 finalize_ddr_dependent, analyze_ziv_subscript,
11632 analyze_siv_subscript_cst_affine,
11633 compute_overlap_steps_for_affine_univar,
11634 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
11635 analyze_siv_subscript, analyze_miv_subscript,
11636 analyze_overlapping_iterations, subscript_dependence_tester_1,
11637 compute_self_dependence, free_dependence_relation): Work
11638 with affine_fn instead of chrecs.
11639 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
11640 common_affine_function, affine_function_base,
11641 affine_function_constant_p, affine_fn_op, affine_fn_plus,
11642 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
11643 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
11644 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
11645 (all_chrecs_equal_p): Removed.
11646 * tree-data-ref.h (affine_fn, conflict_function): New types.
11647 (struct subscript): Change type of conflicting_iterations_in_a
11648 and conflicting_iterations_in_b.
11649
11650 2007-01-26 Steve Ellcey <sje@cup.hp.com>
11651
11652 PR other/30182
11653 * config/pa/pa.h (TARGET_HPUX_11): New.
11654 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
11655 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
11656
11657 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
11658 Richard Guenther <rguenther@suse.de>
11659
11660 * tree-ssa-structalias.c (solve_graph): Handle case
11661 we merged the variable to another.
11662
11663 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11664
11665 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
11666 functions.
11667
11668 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
11669 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
11670
11671 2007-01-25 DJ Delorie <dj@redhat.com>
11672
11673 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
11674 allow changes to modes which don't fit in those registers.
11675
11676 * reload1.c (choose_reload_regs): Check for invalid subregs before
11677 computing their locations, not after.
11678
11679 2007-01-25 Geoffrey Keating <geoffk@apple.com>
11680
11681 PR 25127
11682 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
11683 save Altivec registers in an eh_return function.
11684 (compute_vrsave_mask): Likewise.
11685 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
11686 for saving Altivec registers.
11687 (rs6000_emit_prologue): Don't allocate stack twice in
11688 eh_return function. Correct expected value of altivec_save_offset
11689 when using save_world. Describe save of R0 to stack when using
11690 save_world. Describe stack pointer adjustment when using
11691 save_world. Remove duplicated eh_return parameter register saving.
11692 Update sp_offset variable after save_world.
11693 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
11694 darwin-world.asm.
11695 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
11696 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
11697 implies Altivec.
11698
11699 2007-01-25 Steve Ellcey <sje@cup.hp.com>
11700
11701 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
11702
11703 2007-01-25 Steve Ellcey <sje@cup.hp.com>
11704
11705 PR other/30182
11706 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
11707 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
11708
11709 2007-01-25 Richard Guenther <rguenther@suse.de>
11710
11711 * doc/invoke.texi (-Wcoverage-mismatch): Document.
11712 * common.opt (-Wcoverage-mismatch): New warning option.
11713 * coverage.c (get_coverage_counts): Ignore coverage mismatch
11714 if -Wcoverage-mismatch is given.
11715
11716 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
11717
11718 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
11719 (ipcp_driver): Change to static definition.
11720 Add dumping of the ifunctions.
11721 (constant_val_insert): Remove unused parameter. Support for SSA.
11722 (ipcp_propagate_const): Support for SSA.
11723 (ipcp_profile_bb_print): Print only analyzed nodes.
11724 (ipcp_replace_map_create): Remove support for Fortran constant
11725 for now.
11726 * ipa-prop.c (ipa_method_modify_stmt,
11727 ipa_callsite_compute_param): Support for SSA.
11728 * ipa-prop.h (ipcp_driver): Remove declaration.
11729 (IS_VALID_TREE_MAP_INDEX): Add define.
11730
11731 2007-01-24 Geoffrey Keating <geoffk@apple.com>
11732
11733 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
11734
11735 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11736
11737 PR middle-end/30447
11738 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
11739 constant argument to cabs and do it without checking for
11740 -funsafe-math-optimizations.
11741
11742 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
11743
11744 * c-common.h (RID_FIRST_CXX0X): New.
11745 (RID_LAST_CXX0X): New.
11746 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
11747 by -Wall.
11748 * c.opt (Wc++0x-compat): New.
11749 * doc/invoke.texi (-Wc++0x-compat): Document.
11750
11751 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11752
11753 * builtins.c (fold_builtin_carg): New.
11754 (fold_builtin_1): Use it.
11755
11756 2007-01-24 Jan Hubicka <jh@suse.cz>
11757
11758 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
11759
11760 * ipa-inline.c (initial_insns, max_insns): Delete.
11761 (compute_max_insns): New function.
11762 (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
11763 of insns as base for code growth.
11764 (cgraph_decide_inlining): Make initial_insns local; do not compute
11765 max_insns.
11766 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
11767 * doc/invoke.texi (inline-unit-growth): Update docs.
11768
11769 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11770
11771 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
11772 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
11773 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
11774 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
11775 for CPUs that have PTA_CX16 set.
11776
11777 PR middle-end/27416
11778 * gimplify.c (omp_check_private): New function.
11779 (gimplify_scan_omp_clauses): Use it for
11780 firstprivate/lastprivate/reduction.
11781
11782 PR middle-end/30494
11783 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
11784 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
11785
11786 PR middle-end/30421
11787 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
11788 If lower_lastprivate_clauses emits some statements, append them
11789 to dlist rather than body_p and to body_p append an initializer.
11790 (lower_omp_for): Adjust caller.
11791
11792 2007-01-24 Steve Ellcey <sje@cup.hp.com>
11793
11794 * target.h (globalize_decl_name): New.
11795 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
11796 * output.h (default_globalize_decl_name): New.
11797 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
11798 globalize_label.
11799 (globalize_decl): Ditto.
11800 (default_globalize_decl_name): New.
11801 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
11802 (ia64_handle_version_id_attribute): New.
11803 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
11804 (ia64_asm_output_external): Use globalize_decl_name instead
11805 of globalize_label.
11806 * doc/extend.texi (version_id): New pragma.
11807 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
11808
11809 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11810
11811 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
11812 _uleb128_t and _Unwind_SWord with _sleb128_t.
11813 * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
11814 uw_frame_state_for, uw_update_context_1): Likewise.
11815 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
11816 * unwind-pe.h (read_uleb128, read_sleb128,
11817 read_encoded_value_with_base): Likewise.
11818 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
11819
11820 2007-01-24 Richard Guenther <rguenther@suse.de>
11821
11822 * builtins.c (expand_builtin_cexpi): Get the fndecl
11823 for cexp in the correct way.
11824
11825 2007-01-24 Jan Hubicka <jh@suse.cz>
11826
11827 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
11828
11829 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11830
11831 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
11832 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
11833 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
11834 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
11835 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
11836 __SIZEOF_PTRDIFF_T__.
11837 * doc/cpp.texi: Documentation for the new builtin macros added.
11838
11839 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
11840
11841 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
11842 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
11843 instead of operands[2] to avoid access past the end of array.
11844
11845 2007-01-24 Richard Sandiford <richard@codesourcery.com>
11846
11847 * reload1.c (emit_reload_insns): Pass the reload register
11848 for a non-spill output reload through forget_old_reloads_1.
11849
11850 2007-01-23 Joseph Myers <joseph@codesourcery.com>
11851
11852 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11853 _SOFT_DOUBLE if doubles use software floating-point.
11854 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
11855 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
11856 * config/rs6000/darwin-ldouble.c: Also compile functions for
11857 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
11858 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
11859 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
11860 commented-out long double override.
11861 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
11862 * config/rs6000/eabispe.h: Likewise.
11863 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
11864 long double for non-SPE.
11865 (rs6000_handle_option): Likewise.
11866 (invalid_e500_subreg): Disallow more subregs involding DImode,
11867 DFmode, TImode or TFmode.
11868 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
11869 E500 double.
11870 (legitimate_lo_sum_address_p): Also check for TFmode for E500
11871 double.
11872 (rs6000_legitimize_address): Also handle TFmode for E500 double.
11873 (rs6000_legitimize_reload_address): Also handle TFmode for E500
11874 double.
11875 (rs6000_legitimate_address): Also check for TFmode for E500
11876 double.
11877 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
11878 (spe_build_register_parallel): Handle TFmode and TCmode.
11879 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
11880 double.
11881 (function_arg): Handle TFmode and TCmode for E500 double.
11882 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
11883 in general.
11884 (print_operand): Handle TFmode and TImode for %y.
11885 (rs6000_generate_compare): Handle TFmode comparisons for E500
11886 double.
11887 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
11888 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
11889 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
11890 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
11891 TFmode for E500 double.
11892 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
11893 (floatsidf2): Enable for E500 double.
11894 (movtf_softfloat): Use rs6000_nonimmediate_operand.
11895 (extenddftf2): Change to extenddftf2_fprs.
11896 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
11897 depending on TARGET_E500_DOUBLE.
11898 (extendsftf2): Enable for E500 double.
11899 (trunctfdf2): Enable for E500 double.
11900 (trunctfsf2): Change to trunctfsf2_fprs.
11901 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
11902 depending on TARGET_E500_DOUBLE.
11903 (floatsitf2): Enable for E500 double.
11904 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
11905 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
11906 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
11907 (negtf2): Change to negtf2_internal.
11908 (negtf2): New expander.
11909 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
11910 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
11911 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
11912 (movdi_internal32): Use rs6000_nonimmediate_operand.
11913 (unnamed splitter): Likewise.
11914 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
11915 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
11916 (SPE64TF, DITI): New mode macros.
11917 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
11918 modes.
11919 (frob_tf_ti): New.
11920 (frob_<mode>_di_2): New.
11921 (frob_tf_di_8_2): New.
11922 (frob_di_df): Change to frob_di_<mode>; allow more modes.
11923 (frob_ti_tf): New.
11924 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
11925 more modes.
11926 (frob_ti_<mode>_8_2): New.
11927 (frob_ti_tf_2): New.
11928 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
11929 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
11930 TFmode.
11931 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
11932 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
11933 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
11934 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
11935 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
11936 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
11937 tsttflt_gp): New.
11938
11939 2007-01-23 Ian Lance Taylor <iant@google.com>
11940
11941 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
11942 insn-*.o first.
11943 (OBJS-archive): Reformat, alphabetize.
11944 (OBJS): Change out_object_file to OBJS-md.
11945
11946 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
11947
11948 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
11949 JUMP_P and CALL_P predicates where applicable.
11950 * config/i386/i386.c: Ditto.
11951 * config/i386/i386.md: Ditto.
11952 * config/i386/mmx.md: Ditto.
11953 * config/i386/predicates.md: Ditto.
11954
11955 2007-01-22 Andreas Schwab <schwab@suse.de>
11956
11957 * config/m68k/m68k.h: Fix comment.
11958
11959 2007-01-22 Jan Hubicka <jh@suse.cz>
11960
11961 * passes.c (init_optimization_passes): Do not rerun
11962 pass_early_warn_uninitialized.
11963
11964 2007-01-22 Richard Guenther <rguenther@suse.de>
11965
11966 PR tree-optimization/30038
11967 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
11968 function.
11969 (execute_cse_sincos_1): Likewise.
11970 (execute_cse_sincos): Likewise.
11971 (gate_cse_sincos): Likewise.
11972 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
11973 the cexpi() canonicalization of sincos().
11974 * tree-pass.h (pass_cse_sincos): Declare.
11975 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
11976
11977 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
11978
11979 PR rtl-optimization/29329
11980 * combine.c (replaced_rhs_insn): Rename to i2mod.
11981 (replaced_rhs_value): Rename to i2mod_new_rhs.
11982 (i2mod_old_rhs): New global variable.
11983 (combine_instructions): Adjust for above change. Save a copy of
11984 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
11985 note are substituted in the second instruction.
11986 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
11987 ditch the note if it pertains to the second eliminated register
11988 and this register is mentioned in i2mod_old_rhs.
11989
11990 Revert:
11991 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
11992
11993 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
11994 the insn to which the note was originally attached.
11995
11996 2007-01-21 Jan Hubicka <jh@suse.cz>
11997
11998 * ipa-inline.c (inlining_mode): Comment, move up.
11999 (cgraph_decide_inlining_incrementally): Do not perform inlining
12000 itself; fix handling of flattening of self recursive functions.
12001 (cgraph_find_cycles): Remove.
12002 (cgraph_flatten_node): Remove.
12003 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
12004 (try_inline): New function.
12005 (cgraph_early_inlining): Update call of
12006 cgraph_decide_inlining_incrementally. Apply inlining here.
12007 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
12008
12009 2007-01-21 Dirk Mueller <dmueller@suse.de>
12010
12011 PR bootstrap/30511
12012 * tree-vrp.c (check_array_bounds): do not warn
12013 about ADDR_EXPR's of ARRAY_REF's which are immediately
12014 used in binary expressions.
12015
12016 2007-01-21 Ira Rosen <irar@il.ibm.com>
12017
12018 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
12019 read_write_dep and macros for its access.
12020 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
12021 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
12022 argument, call vect_check_interleaving for every independent pair of
12023 data-refs. Mark loads that access the same memory location as a store
12024 in the loop.
12025 (vect_check_dependences): Remove.
12026 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
12027 call, fix the call to vect_analyze_data_ref_dependence.
12028 (vect_analyze_data_ref_access): For statements that access the same
12029 data-ref, check that they are not stores; for loads, check that there
12030 is no store that access the same location.
12031
12032 2007-01-20 Roger Sayle <roger@eyesopen.com>
12033 Joseph Myers <joseph@codesourcery.com>
12034
12035 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
12036 (-fdump-rtl-stack): Likewise.
12037 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
12038 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
12039 (-mpt-fixed): Use @minus{} for minus sign.
12040 (Using Precompiled Headers): Fix under/overfull hbox.
12041
12042 2007-01-20 Jan Hubicka <jh@suse.cz>
12043
12044 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
12045 place within annotation.
12046
12047 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12048
12049 * pa.c (output_move_double): Change array size of xoperands to 4.
12050
12051 2007-01-20 Jan Hubicka <jh@suse.cz>
12052
12053 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
12054 as temporary.
12055
12056 2007-01-19 Ian Lance Taylor <iant@google.com>
12057
12058 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
12059 constant to unsigned HOST_WIDE_INT before negating.
12060
12061 2007-01-19 Ian Lance Taylor <iant@google.com>
12062
12063 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
12064 to unsigned.
12065 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
12066 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
12067 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
12068 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
12069 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
12070 (realloc_vdef, realloc_vuse): Change second parameter to
12071 unsigned.
12072 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
12073 fields to unsigned.
12074 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
12075 unsigned. Change x and lim locals to unsigned.
12076 (realloc_vdef, realloc_vuse): Change num_elem parameter to
12077 unsigned.
12078 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
12079 (copy_virtual_operands): Change i and n locals to unsigned.
12080
12081 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12082
12083 PR middle-end/29335
12084 * builtins.c (fold_builtin_1): Handle builtin fdim.
12085
12086 2007-01-20 Jan Hubicka <jh@suse.cz>
12087
12088 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
12089 * tree-ssa-structalias.c (compute_points_to_sets): Do call
12090 init_alias_heapvars.
12091 (init_alias_heapvars): Initialize only when not already initialized.
12092 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
12093
12094 2007-01-19 Roger Sayle <roger@eyesopen.com>
12095
12096 * common.opt (fsigned-zeros): New command line option.
12097 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
12098 of flag_unsafe_math_optimizations.
12099 * opts.c (set_fast_math_flags): The -ffast-math command line option
12100 implies -fno-signed-zeros.
12101 (fast_math_flags_set_p): Likewise.
12102
12103 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
12104 the documentation of -ffast-math appropriately. Wrap long lines.
12105
12106 2007-01-19 Steve Ellcey <sje@cup.hp.com>
12107
12108 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
12109 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
12110
12111 2007-01-19 Tomas Bily <tbily@suse.cz>
12112
12113 * cgraphunit.c (cgraph_finalize_function): Updating of pid
12114 * tree-profile.c:
12115 (tree_init_ic_make_global_vars): New function
12116 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
12117 (tree_gen_ic_profiler): New function
12118 (tree_gen_ic_func_profiler): New function
12119 (tree_profiling): Added calling of tree_gen_ic_func_profiler
12120 (tree_profile_hooks): Added hook for indirec/virtual calls
12121 * value-prof.c (tree_find_values_to_profile): New case for
12122 indirect calls
12123 (tree_values_to_profile): Call for determining indirect/virtual
12124 counters
12125 (tree_indirect_call_to_profile): New function
12126 (tree_ic_transform): New function
12127 (tree_ic): New function
12128 (find_func_by_pid): New function
12129 (init_pid_map): New function
12130 (tree_value_profile_transformations): Added check for
12131 indirect/virtual call transformation
12132 * value-prof.h (enum hist_type): New counter type for
12133 indirect/virtual calls
12134 (profile_hooks): Added new hook for profiling indirect/virtual
12135 calls
12136 * profile.c (instrument_values): New case for indirect/virtual
12137 call added
12138 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
12139 (GCOV_COUNTER_V_INDIR): New counter type
12140 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
12141 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
12142 call added
12143 * cgraph.c: Definition of cgraph_max_pid
12144 (cgraph_create_node): Default init of pid attribute
12145 * cgraph.h: Declaration of cgraph_max_pid
12146 (struct cgraph_node): Added pid attribute
12147 * libgcov.c (__gcov_indirect_call_profiler): New function
12148 (__gcov_one_value_profiler_body): New function
12149 (__gcov_one_value_profiler): Body was moved to
12150 __gcov_one_value_profiler_body and calls it
12151
12152 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
12153
12154 * doc/gty.texi (Options): Document the mark_hook option to GTY.
12155 * gengtype.c (write_types_data, write_func_for_structure,
12156 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
12157 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
12158 (walk_type, write_func_for_structure): Generate the mark_hook if
12159 needed.
12160
12161 2007-01-19 Jan Hubicka <jh@suse.cz>
12162
12163 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
12164 'early' argument take inlining mode argument specifying whether to
12165 inline for size/speeed or all functions; add support for flattening;
12166 improve dumpting.
12167 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
12168
12169 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12170
12171 PR c++/17947
12172 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
12173 the name of the declared identifier.
12174
12175 2007-01-19 Dirk Mueller <dmueller@suse.de>
12176
12177 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
12178 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
12179 duplicate evaluation.
12180
12181 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
12182
12183 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
12184 Macroize expander using X87MODEF12 mode macro. Extend operand 1
12185 to XFMode, use acosxf2 and truncate result to requested mode.
12186 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
12187 (asin<mode>2): Similarly, with asin expanders.
12188 (*fscalexf4_i387): Rename from *fscalexf4.
12189 (expNcorexf3): New expander.
12190 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
12191 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
12192 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
12193 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
12194 patterns for SSE math.
12195 (exp10<mode>2): Similarly, with exp10 expanders.
12196 (exp2<mode>2): Similarly, with exp2 expanders.
12197 (expm1<mode>2): Similarly, with expm1 expanders.
12198 (ldexp<mode>3): Similarly, with ldexp expanders.
12199 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
12200 Use gen_truncxf<mode>2_i387_noop to truncate result.
12201
12202 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12203
12204 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
12205 for ColdFire targets.
12206
12207 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
12208 Richard Sandiford <richard@codesourcery.com>
12209
12210 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
12211 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
12212 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
12213 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
12214 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
12215 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
12216
12217 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12218
12219 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
12220 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
12221 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
12222 (*adddi_dilshr32_cf): New pattern.
12223 (adddi3, subdi3): Remove first alternatives.
12224
12225 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12226
12227 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
12228 implemented using move.l, do not use its cc result for floating-point
12229 comparisons.
12230
12231 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12232
12233 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
12234 from accepting 's' constraints if flag_pic.
12235
12236 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12237
12238 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
12239 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
12240 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
12241 condition from TARGET_68881 to TARGET_HARD_FLOAT.
12242
12243 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
12244
12245 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
12246 ColdFire alternatives.
12247 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
12248 * config/m68k/m68k.md (clzsi2): Define for ColdFire
12249 architectures that support ff1 instruction.
12250
12251 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12252 Julian Brown <julian@codesourcery.com>
12253
12254 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
12255 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
12256 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
12257 Add commentary.
12258
12259 2007-01-19 Richard Sandiford <richard@codesourcery.com>
12260
12261 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
12262 and return a bool.
12263 (output_move_const_into_data_reg, output_move_simode_const): Delete.
12264 * config/m68k/m68k.c (const_method, const_int_cost): Take a
12265 HOST_WIDE_INT instead of an rtx.
12266 (m68k_rtx_costs): Update call accordingly.
12267 (output_move_const_into_data_reg): Likewise. Fix formatting.
12268 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
12269 Return a bool.
12270 (output_move_simode_const): Update calls after above changes.
12271 Rework to use automatic variables and predicates like MEM_P.
12272 * config/m68k/m68k.md (pushexthisi_const): Update call to
12273 valid_mov3q_const.
12274
12275 2007-01-19 Dirk Mueller <dmueller@suse.de>
12276
12277 * tree-ssa-alias.c (perform_var_substitution): Fix typo
12278 in dump_flags test.
12279
12280 2007-01-19 Richard Guenther <rguenther@suse.de>
12281
12282 * builtins.c (expand_builtin_cexpi): Fall back to expanding
12283 via cexp in case sincos is not available.
12284
12285 2007-01-19 Richard Guenther <rguenther@suse.de>
12286
12287 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
12288 * defaults.h (TARGET_HAS_SINCOS): Default to off.
12289 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
12290 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
12291 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
12292 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
12293 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
12294 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
12295
12296 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
12297
12298 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
12299 New insn patterns.
12300 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
12301 (atan2xf3): Directly generate RTL pattern.
12302 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
12303 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
12304 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
12305 disable patterns for SSE math.
12306 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
12307 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
12308 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
12309 disable patterns for SSE math.
12310
12311 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
12312
12313 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
12314
12315 2007-01-18 Roger Sayle <roger@eyesopen.com>
12316
12317 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
12318 VIEW_CONVERT_EXPR to the same type as it's operand.
12319
12320 2007-01-18 David Edelsohn <edelsohn@gnu.org>
12321
12322 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
12323 configured for long double 128.
12324
12325 2007-01-18 Mike Stump <mrs@apple.com>
12326
12327 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
12328 error.
12329
12330 2007-01-18 Michael Meissner <michael.meissner@amd.com>
12331
12332 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
12333 type correct.
12334
12335 2007-01-18 Jan Hubicka <jh@suse.cz>
12336
12337 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
12338 greater than NUM_VOP_FREE_BUCKETS.
12339
12340 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
12341
12342 * tree-ssa-structalias.c: Update comments.
12343 (ptabitmap_obstack): Removed.
12344 (pta_obstack): New.
12345 (oldpta_obstack): Ditto.
12346 (stats): Add a few members.
12347 (struct variable_info): Remove node, complex, address_taken, and
12348 indirect_target members. Add oldsolution member.
12349 (new_var_info): Do not initialize removed members.
12350 (constraint_expr_type): Remove INCLUDES.
12351 (constraint_graph): Add size, implicit_preds, rep,
12352 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
12353 (FIRST_REF_NODE): New macro.
12354 (LAST_REF_NODE): Ditto.
12355 (FIRST_ADDR_NODE): Ditto.
12356 (find): New function.
12357 (unite): Ditto.
12358 (dump_constraint): Do not handle INCLUDES.
12359 (insert_into_complex): Do not insert duplicate constraints.
12360 (condense_varmap_nodes): Renamed and rewritten into ...
12361 (merge_node_constraints): This. Also fix bug in handling of
12362 offseted copy constraints.
12363 (clear_edges_for_node): No longer need to deal with preds at all,
12364 or removing associated preds/succs.
12365 (merge_graph_nodes): Deal with indirect_cycles.
12366 Don't deal with predecessors.
12367 (add_implicit_graph_edge): New function.
12368 (add_pred_graph_edge): Ditto.
12369 (add_graph_edge): Don't deal with predecessors.
12370 (build_constraint_graph): Removed.
12371 (build_pred_graph): New function.
12372 (build_succ_graph): Ditto.
12373 (struct scc_info): Removed in_component. Added roots, dfs, and
12374 node_mapping. Remove visited_index, unification_queue.
12375 (scc_visit): Deal with union-find we do now.
12376 Deal with cycles with REF nodes.
12377 (collapse_nodes): Renamed and rewritten to ...
12378 (unify_nodes): This.
12379 (process_unification_queue): Removed.
12380 (topo_visit): Cleanup
12381 (do_da_constraint): Use find.
12382 (do_sd_constraint): Ditto.
12383 (do_ds_constraint): Ditto.
12384 (do_complex_constraint): Ditto.
12385 (init_scc_info): Update for removed and added members.
12386 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
12387 (find_indirect_cycles): This.
12388 (equivalence_class): New variable.
12389 (label_visit): New function.
12390 (perform_variable_substitution): Rewritten.
12391 (free_var_substitution_info): New function.
12392 (find_equivalent_node): Ditto.
12393 (move_complex_constraints): Ditto.
12394 (eliminate_indirect_cycles): Ditto.
12395 (solve_graph): Only propagate changed bits.
12396 Use indirect cycle elimination.
12397 Use find.
12398 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
12399 (tree_id_eq): Renamed to ...
12400 (tree_vi_eq): This. Update for member change
12401 (insert_id_for_tree): Renamed and rewritten to ...
12402 (insert_vi_for_tree): This.
12403 (lookup_id_for_tree): Renamed and rewritten to ...
12404 (lookup_vi_for_tree): This.
12405 (get_id_for_tree): Renamed and rewritten to ...
12406 (get_vi_for_tree): Ditto.
12407 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
12408 (process_constraint): Don't handle INCLUDES.
12409 Remove special ADDRESSOF case.
12410 (find_func_aliases): Rewrite to use vi functions instead of id
12411 ones.
12412 (create_function_info_for): Ditto.
12413 (create_variable_info_for): Ditto.
12414 (intra_create_variable_infos): Ditto.
12415 (merge_smts_into): Ditto.
12416 (find_what_p_points_to): Ditto.
12417 (init_base_vars): Ditto.
12418 (init_alias_vars): Ditto.
12419 (remove_preds_and_fake_succs): New function.
12420 (dump_sa_points_to_info): Dump new stats.
12421 (dump_solution_for_var): Use find.
12422 (set_used_smts): Fix formatting.
12423 (compute_points_to_sets): Updated for new functions.
12424 (ipa_pta_execute): Ditto.
12425
12426 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12427 Richard Sandiford <richard@codesourcery.com>
12428
12429 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
12430 parallels.
12431 * calls.c (expand_call): If the return value is a PARALLEL,
12432 extract its first member.
12433 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
12434 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
12435 use FUNCTION_EXTRA_EPILOGUE.
12436 (m68k_function_value): Return a PARALLEL if the return value
12437 is of a pointer type.
12438 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
12439 (FUNCTION_EXTRA_EPILOGUE): Remove.
12440 * config/m68k/m68k.md (D0_REG): New constant.
12441
12442 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12443
12444 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
12445 output a NOP for empty epilogues.
12446
12447 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12448
12449 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
12450 before function. Extend register save check to include all
12451 registers, not just integer ones.
12452
12453 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12454
12455 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
12456 (m68k_use_return_insn): ...this.
12457 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
12458 * config/m68k/m68k.c (use_return_insn): Rename to...
12459 (m68k_use_return_insn): ...this.
12460 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
12461 of USE_RETURN_INSN.
12462
12463 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12464
12465 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
12466 nearest even, fix denormal rounding overflow.
12467
12468 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12469
12470 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
12471 f%$smove and f%$move.
12472 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
12473 (extendsfdf2_cf): Use fdmove instead of f%&move.
12474 (truncdfsf2_cf): Use fsmove instead of f%$smove.
12475 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
12476
12477 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12478
12479 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
12480 GPR<-GPR moves.
12481
12482 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12483
12484 * real.h (real_format): Add a canonical_nan_lsbs_set field.
12485 (coldfire_single_format): Declare.
12486 (coldfire_double_format): Likewise.
12487 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
12488 of qnan_msb_set to determine the lower bits of a canonical
12489 NaN significand.
12490 (encode_ieee_double): Likewise.
12491 (encode_ieee_quad): Likewise.
12492 (ieee_single_format): Initialize canonical_nan_lsbs_set.
12493 (mips_single_format): Likewise.
12494 (ieee_double_format): Likewise.
12495 (mips_double_format): Likewise.
12496 (ieee_extended_motorola_format): Likewise.
12497 (ieee_extended_intel_96_format): Likewise.
12498 (ieee_extended_intel_128_format): Likewise.
12499 (ieee_extended_intel_96_round_53_format): Likewise.
12500 (ibm_extended_format): Likewise.
12501 (mips_extended_format): Likewise.
12502 (ieee_quad_format): Likewise.
12503 (mips_quad_format): Likewise.
12504 (vax_f_format): Likewise.
12505 (vax_d_format): Likewise.
12506 (vax_g_format): Likewise.
12507 (i370_single_format): Likewise.
12508 (i370_double_format): Likewise.
12509 (decimal_single_format): Likewise.
12510 (decimal_double_format): Likewise.
12511 (decimal_quad_format): Likewise.
12512 (c4x_single_format): Likewise.
12513 (c4x_extended_format): Likewise.
12514 (real_internal_format): Likewise.
12515 (coldfire_single_format): New real_format.
12516 (coldfire_double_format): Likewise.
12517 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
12518 canonical_nan_lsbs_set.
12519 (pdp11_d_format): Likewise.
12520 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
12521 if TARGET_COLDFIRE_CPU.
12522
12523 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12524
12525 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
12526 (output_call, m68k_legitimize_call_address): Declare.
12527 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
12528 parenthesees. Add support for a 'W' constraint.
12529 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
12530 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
12531 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
12532 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
12533 variables.
12534 (override_options): Initialize them. Do not set flag_no_function_cse
12535 for TARGET_ID_SHARED_LIBRARY.
12536 (m68k_output_pic_call): Delete.
12537 (m68k_legitimize_call_address): New function.
12538 (print_operand): Remove the %o prefix. Handle the %p prefix.
12539 (output_call): New function.
12540 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
12541 target address from the GOT if symbolic jumps are not allowed.
12542 * config/m68k/m68k.md (call, general_operand): Do not set
12543 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
12544 Merge separate flag_pic and !flag_pic define_insns into...
12545 (*call, *call_value): ...these new patterns. Match the address
12546 rather than the containing MEM and require it to be a call_operand.
12547 Use output_call to generate the asm template.
12548 * config/m68k/predicates.md (const_call_operand): New predicate.
12549 (call_operand): Likewise.
12550
12551 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12552
12553 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
12554 (STACK_GROWS_DOWNWARD): Define to 1.
12555 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
12556 comments, emphasizing that these values are only defaults.
12557 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
12558 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
12559
12560 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12561
12562 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
12563
12564 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
12565 Richard Sandiford <richard@codesourcery.com>
12566
12567 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
12568 (FP_REGNO_P): New macros.
12569 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
12570 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
12571 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
12572 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
12573
12574 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12575
12576 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
12577 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
12578 to $tmake_file.
12579 * config/m68k/t-floatlib: New file, extracting common code from...
12580 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
12581 * config/m68k/t-uclinux: Here.
12582 * config/m68k/fpgnulib.c: Do not compile extendeed precision
12583 routines on ColdFire targets.
12584
12585 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
12586
12587 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
12588 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
12589 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
12590 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
12591 explicitly set MOTOROLA to 1.
12592 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
12593
12594 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12595 Nathan Sidwell <nathan@codesourcery.com>
12596
12597 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
12598 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
12599 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
12600 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
12601 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
12602 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
12603 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
12604 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
12605 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
12606 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
12607 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
12608 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
12609 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
12610 (DBX_REGISTER_NUMBER): Delete.
12611 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
12612 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
12613 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
12614
12615 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12616
12617 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
12618 * config/flat.h: New file.
12619 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
12620 OBJECT_FORMAT_FLAT.
12621 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
12622 indirect references for -msep-data or -mid-shared-library.
12623 Do not use PC-relative code addresses either.
12624 * config/m68k/m68k.c (override_options): Restrict -fPIC error
12625 to -mpcrel.
12626 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
12627 for shared libraries and crt1.o for executables. Use crti.o and
12628 crtbegin.o.
12629 (ENDFILE_SPEC): Use crtend.o and crtn.o.
12630 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
12631 Do not add -elf2flt or -shared-lib-id options here.
12632 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
12633 Pass -shared-lib-id if -mid-shared-library, taking the library
12634 identifier from -mshared-library-id if given, otherwise
12635 defaulting to 0.
12636 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
12637 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
12638 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
12639 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
12640 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
12641 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
12642 and crtend.o.
12643 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
12644 jump sequence for ISA A and ISA A+.
12645 (PICJUMP): Likewise.
12646
12647 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12648
12649 * config.gcc (m68k-*-uclinux*): Base the port on the common
12650 and m68k GNU/Linux files rather than on the generic ELF ones.
12651 * config/m68k/uclinux.h (TARGET_VERSION): Override.
12652 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
12653
12654 2007-01-18 Julian Brown <julian@codesourcery.com>
12655 Richard Sandiford <richard@codesourcery.com>
12656
12657 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
12658 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12659 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
12660 before redefining.
12661 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
12662 80 unconditionally.
12663 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12664
12665 2007-01-18 Richard Sandiford <richard@codesourcery.com>
12666
12667 * doc/install.texi: Document m68k-uclinuxoldabi.
12668 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
12669 * config/m68k/uclinux-oldabi.h: New file, copied from
12670 config/m68k/uclinux.h.
12671
12672 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12673
12674 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
12675 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
12676 (m32r_compute_frame_size): Use unsigned for regno.
12677 (m32r_reload_lr): Use gen_frame_mem.
12678 (pop): New.
12679 (m32r_output_function_epilogue): Don't output the function epilogue
12680 textually here.
12681 (m32r_expand_epilogue): New.
12682 (direct_return): Return false if the function has the interrupt
12683 attribute.
12684 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
12685 * config/m32r/m32r.md (epilogue): New expander.
12686 (return_lr, return_rte): New insns.
12687 (return): Make it expander.
12688 (return_normal): New expander.
12689
12690 2007-01-18 Josh Conner <jconner@apple.com>
12691
12692 PR target/30485
12693 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
12694 support for UNLE, UNLT, UNGE, and UNGT.
12695
12696 2007-01-18 Jan Hubicka <jh@suse.cz>
12697
12698 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
12699 * tree-tailcall (add_virtual_phis): Likewise.
12700 (optimize_tail_call): Return TODOs.
12701 (execute_tail_calls): Return TODOs.
12702 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
12703 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
12704 changed.
12705 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
12706 Cleanup cfg using TODO.
12707 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
12708 * passes.c (execute_function_todo): When cleanup did something, remove
12709 unused locals.
12710 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
12711 (make_edges): Don't cleanup_cfg.
12712
12713 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
12714
12715 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
12716 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
12717 operate on the top of stack.
12718 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
12719 register handling of instructions that output to the second
12720 stack slot.
12721 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
12722 (move_for_stack_reg): Special-case check for dead destination
12723 stack slot for constant load of 1.0 inside UNSPEC_TAN.
12724
12725 * config/i386/i386.md (UNSPEC_TAN): New constant.
12726 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
12727 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
12728 to correctly model move of constant 1.0 to top stack slot.
12729 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
12730 (unnamed peephole2 pattern): Remove corresponding peephole2
12731 pattern that optimizes tan insn and loading of constant 1.0.
12732 (tanxf2): Use fptanxf4_i387.
12733 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
12734 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
12735 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
12736 disable patterns for SSE math.
12737 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
12738 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
12739
12740 2007-01-18 Dirk Mueller <dmueller@suse.de>
12741 Richard Guenther <rguenther@suse.de>
12742
12743 PR diagnostic/8268
12744 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
12745 * common.opt (Warray-bounds): Add new warning option.
12746 * c-opts.c (c_common_handle_option): Define -Warray-bounds
12747 if -Wall is given.
12748 * Makefile.in: make tree-vrp.o depend on toplev.h
12749 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
12750 is enabled.
12751 (check_array_refs, check_array_bounds, check_array_ref): New.
12752
12753 2007-01-18 Jan Hubicka <jh@suse.cz>
12754
12755 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
12756 (execute_ssa_ccp): Return flags conditionally.
12757 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
12758 changed.
12759 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
12760
12761 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
12762
12763 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
12764 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
12765
12766 * Makefile.c (GTFILES): Add cfglayout.h.
12767 * gengtype.c (open_base_files): Likewise.
12768 * cfglayout.c (cfg_layout_function_footer,
12769 cfg_layout_function_header) Reindent to make gengtype happy.
12770 * cfglayout.h (cfg_layout_function_footer,
12771 cfg_layout_function_header): Add GTY(()) marker.
12772
12773 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
12774
12775 2007-01-18 Ben Elliston <bje@au.ibm.com>
12776
12777 * genautomata.c (write_automata): Include xstrerror output in the
12778 error message if writing the DFA description file fails.
12779
12780 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
12781
12782 * config/mips/mips-protos.h (mips_output_external): Make it
12783 return void.
12784 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
12785 * config/mips/mips.c (irix_output_external_libcall): Likewise.
12786 (extern_list): Likewise.
12787 (extern_head): Likewise.
12788 (TARGET_ASM_FILE_END): Likewise.
12789 (mips_file_end): Likewise.
12790 (mips_output_external): Rewritten.
12791
12792 2007-01-18 Ben Elliston <bje@au.ibm.com>
12793
12794 * genpreds.c (write_insn_preds_c): Only write out the function
12795 body for regclass_for_constraint if we have register constraints.
12796
12797 2007-01-17 Tom Tromey <tromey@redhat.com>
12798
12799 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
12800 * doc/install.texi (Testing): Use sourceware.org.
12801 (Binaries): Likewise.
12802 (Specific): Likewise.
12803 * doc/contrib.texi (Contributors): Use sourceware.org.
12804
12805 2007-01-17 Anatoly Sokolov <aesok@post.ru>
12806
12807 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
12808 (AVR_ENHANCED): Rename to ...
12809 (AVR_HAVE_MUL): ... new.
12810 (avr_enhanced_p): Rename to ...
12811 (avr_have_mul_p): ... new.
12812 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
12813 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
12814 * config/avr/avr.c (avr_enhanced_p): Rename to ...
12815 (avr_have_mul_p): ... new.
12816 (base_arch_s): Rename 'enhanced' to 'have_mul'.
12817 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
12818 'avr_enhanced_p' and 'enhanced'.
12819 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
12820 AVR_HAVE_MUL instead of AVR_ENHANCED.
12821 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
12822 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
12823 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
12824 instead of AVR_ENHANCED.
12825 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
12826 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
12827 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
12828
12829 2007-01-17 Ian Lance Taylor <iant@google.com>
12830
12831 * vec.h (VEC_reserve_exact): Define.
12832 (vec_gc_p_reserve_exact): Declare.
12833 (vec_gc_o_reserve_exact): Declare.
12834 (vec_heap_p_reserve_exact): Declare.
12835 (vec_heap_o_reserve_exact): Declare.
12836 (VEC_OP (T,A,reserve_exact)): New static inline function, three
12837 versions.
12838 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
12839 negative parameter.
12840 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
12841 (VEC_OP (T,A,copy)) [all versions]: Likewise.
12842 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
12843 * vec.c (calculate_allocation): Add exact parameter. Change all
12844 callers.
12845 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
12846 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
12847 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
12848 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
12849 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
12850 (vec_heap_p_reserve_exact): New function.
12851 (vec_heap_o_reserve_exact): New function.
12852
12853 2007-01-17 Jan Hubicka <jh@suse.cz>
12854
12855 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
12856
12857 2007-01-17 Eric Christopher <echristo@apple.com>
12858
12859 * config.gcc: Support core2 processor.
12860
12861 2007-01-16 Jan Hubicka <jh@suse.cz>
12862
12863 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
12864 the names, just unlink the chain so we don't crash on dangling pointers
12865 to dead SSA names.
12866
12867 2007-01-16 Jan Hubicka <jh@suse.cz>
12868
12869 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
12870 * tree-pass.h: Reorder to make IPA passes appear toegher.
12871 (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
12872 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
12873 parameters, do not call early inliner.
12874 * ipa-inline.c: Update comments. Include tree-flow.h
12875 (cgraph_decide_inlining): Do not compute inlining parameters.
12876 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
12877 be called with function context set up.
12878 (pass_ipa_inline): Remove unreachable functions before pass.
12879 (cgraph_early_inlining): Simplify assuming to be called from the
12880 PM as local pass.
12881 (pass_early_inline): New pass.
12882 (cgraph_gate_ipa_early_inlining): New gate.
12883 (pass_ipa_early_inline): Turn into simple wrapper.
12884 (compute_inline_parameters): New function.
12885 (gate_inline_passes): New gate.
12886 (pass_inline_parameters): New pass.
12887 (apply_inline): Move here from tree-optimize.c
12888 (pass_apply_inline): New pass.
12889 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
12890 transforming.
12891 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
12892 doing them by hand.
12893 (tree_function_versioning): Do not allocate dummy struct function.
12894 * tree-inline.h (optimize_inline_calls): Update prototype.
12895 * tree-optimize.c (execute_fixup_cfg): Export.
12896 (pass_fixup_cfg): Remove
12897 (tree_rest_of_compilation): Do not apply inlines.
12898 * tree-flow.h (execute_fixup_cfg): Declare.
12899 * Makefile.in (gt-passes.c): New.
12900 * passes.c: Include gt-passes.h
12901 (init_optimization_passes): New passes.
12902 (nnodes, order): New static vars.
12903 (do_per_function_toporder): New function.
12904 (execute_one_pass): Dump current pass here.
12905 (execute_ipa_pass_list): Don't dump current pass here.
12906
12907 2007-01-16 Janis Johnson <janis187@us.ibm.com>
12908
12909 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
12910 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
12911
12912 2007-01-16 David Edelsohn <edelsohn@gnu.org>
12913
12914 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
12915 (strong_alias): Define.
12916 (__gcc_qmul): Provide non-FMA for soft-float.
12917 (__gcc_qdiv): Same.
12918 (__gcc_qneg): New.
12919 (__gcc_qeq): New.
12920 (__gcc_qle): New.
12921 (__gcc_qge): New.
12922 (__gcc_qunord): New.
12923 (__gcc_stoq): New.
12924 (__gcc_dtoq): New.
12925 (__gcc_qtos): New.
12926 (__gcc_qtod): New.
12927 (__gcc_qtoi): New.
12928 (__gcc_qtou): New.
12929 (__gcc_itoq): New.
12930 (__gcc_utoq): New.
12931 (fmsub): New.
12932 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
12933 soft-float functions.
12934 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
12935 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
12936 about long double soft float.
12937
12938 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
12939 Tehila Meyzels <tehila@il.ibm.com>
12940
12941 * tree-vectorizer.h (is_pattern_stmt_p): New.
12942 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
12943 formatting (tabs instead of spaces). Cleanup and clarify setting
12944 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
12945 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
12946 (vectorizable_type_demotion): Check that types are integral.
12947 (vectorizable_type_promotion): Likewise.
12948 (vectorizable_store): Fix typo. Eliminate new-line at end of
12949 comments.
12950
12951 2007-01-16 Jan Hubicka <jh@suse.cz>
12952
12953 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
12954 cgraph edges too.
12955
12956 2007-01-15 Eric Christopher <echristo@apple.com>
12957
12958 * ifcvt.c: Include vec.h, vecprim.h.
12959 (check_cond_move_block): New argument regs.
12960 Reorganize. Add registers used to regs.
12961 (cond_move_process_if_block): Use regs set above as
12962 loop bounds.
12963
12964 2007-01-15 Eric Christopher <echristo@apple.com>
12965
12966 * config/darwin.h: Update copyright.
12967 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
12968 (LINK_COMMAND_SPEC): Add -u.
12969 (LINK_SPEC): Fix umbrella for above.
12970
12971 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
12972
12973 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
12974 glibc CVS.
12975
12976 2007-01-15 Tom Tromey <tromey@redhat.com>
12977
12978 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
12979 * doc/install.texi (Testing): Don't mention jacks.
12980 (Configuration): Document --enable-java-maintainer-mode. Move
12981 --with-java-home to libgcj-specific section. Document
12982 --with-ecj-jar.
12983 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
12984
12985 2007-01-15 Jan Hubicka <jh@suse.cz>
12986
12987 * tree-ssa-dce.c (DCE_TODOs): New.
12988 (propagate_necessity): Return if something changed.
12989 (eliminate_unnecessary_stmts): Likewise.
12990 (perform_tree_ssa_dce): Return TODO flags when needed.
12991 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
12992
12993 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
12994
12995 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
12996 (fyl2x_extend<mode>xf3_i387): New insn pattern.
12997 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
12998 patterns using X87MODEF12 mode macro. Extend operand 1
12999 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
13000 (log10<mode>2): Ditto.
13001 (log2<mode>2): Ditto.
13002 (log1p<mode>2): Ditto.
13003 (logb<mode>2): Ditto.
13004 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
13005 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
13006 (*fxtractxf3_i387): Rename from *fxtractxf3.
13007 (fxtract_extend<mode>xf3_i387): New insn pattern.
13008 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
13009 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
13010 and gen_fyl2xxf3_i387().
13011
13012 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
13013
13014 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
13015 * cfgloopmanip.c (fix_loop_placement): Made static. Use
13016 get_loop_exit_edges. Changed return type to bool.
13017 * cfgloop.h (fix_loop_placement): Declaration removed.
13018
13019 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
13020
13021 * param.h (MIN_VECT_LOOP_BOUND): New.
13022 * params.def (MIN_VECT_LOOP_BOUND): New.
13023 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
13024 argument - minimum threshold for number of iterations.
13025 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
13026 argument to declaration.
13027 * tree-vect-analyze.c (vect_analyze_operations): Check value of
13028 MIN_VECT_LOOP_BOUND.
13029 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
13030 slpeel_tree_peel_loop_to_edge with additional argument.
13031 (vect_do_peeling_for_alignment): Likewise.
13032 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
13033
13034 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
13035
13036 PR target/30413
13037 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
13038 operands of size 1.
13039
13040 2007-01-14 Jan Hubicka <jh@suse.cz>
13041
13042 * tree-dfa.c (remove_referenced_var): New function.
13043 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
13044 prune referenced vars list too.
13045 * tree-flow.h (remove_referenced_var): Declare.
13046
13047 2007-01-14 Jan Hubicka <jh@suse.cz>
13048
13049 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
13050 separately.
13051 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
13052 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
13053 * except.h (verify_eh_throw_table_statements): Kill prototype.
13054 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
13055 into call exrepssions.
13056 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
13057 eh trhow verifier.
13058 * tree-cfg.c: Include pointer-set.h.
13059 (verify_node_sharing): Work on pointer set.
13060 (verify_eh_throw_stmt_node): New.
13061 (verify_stmts): Use pointers sets, verify throw_stmt.
13062
13063 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
13064
13065 * ipa-reference.c (analyze_function): Consider also addresses taken
13066 in phi nodes.
13067
13068 2007-01-12 Roger Sayle <roger@eyesopen.com>
13069
13070 * c-typeck.c (null_pointer_constant_p): Replace use of
13071 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
13072 (build_c_cast): Likewise.
13073
13074 2007-01-12 Roger Sayle <roger@eyesopen.com>
13075
13076 * tree.h (force_fit_type_double): Remove unused final argument.
13077 * c-common.c (constant_expression_warning): Replace use of
13078 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
13079 (convert_and_check): Likewise.
13080 (shorten_compare): Update call to force_fit_type_double.
13081 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
13082 * convert.c (convert_to_pointer): Update call to
13083 force_fit_type_double.
13084 * fold-const.c (force_fit_type_double): Remove overflowed_const
13085 argument.
13086 (int_const_binop, fold_convert_const_int_from_int,
13087 fold_convert_const_int_from_real, fold_div_compare,
13088 fold_sign_changed_comparison, fold_unary, fold_negate_const,
13089 fold_abs_const, fold_not_const): Remove the final argument from
13090 calls to force_fit_type_double.
13091
13092 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
13093
13094 * configure.ac: Set insn to "nop" for spu-*-* also.
13095 * configure: Regenerate.
13096
13097 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
13098
13099 * builtins.def : Add BUILT_IN_FREE.
13100
13101 2007-01-12 Jan Hubicka <jh@suse.cz>
13102
13103 PR tree-optimization/30443
13104 * tree-inline.c (tree_function_versioning): Do not optimize when
13105 cloning for inlining.
13106
13107 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
13108
13109 * doc/loop.texi: Document recording of loop exits.
13110 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
13111 (update_single_exits_after_duplication,
13112 update_single_exit_for_duplicated_loop,
13113 update_single_exit_for_duplicated_loops): Removed.
13114 (duplicate_loop_to_header_edge): Do not call
13115 update_single_exits_after_duplication and
13116 update_single_exit_for_duplicated_loops.
13117 (loop_version): Do not update single_exit information.
13118 (fix_loop_structure): Use record_loop_exits instead of
13119 mark_single_exit_loops.
13120 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
13121 the lists of loop exits.
13122 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
13123 split_edge, merge_blocks): Update the lists of loop exits.
13124 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
13125 loop_optimizer_init.
13126 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
13127 of mark_single_exit_loops.
13128 (loop_optimizer_finalize): Call release_recorded_exits.
13129 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
13130 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
13131 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
13132 update single exit information.
13133 * lambda-code.c (perfect_nestify): Ditto.
13134 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
13135 (mark_single_exit_loops): Removed.
13136 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
13137 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
13138 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
13139 functions.
13140 (get_loop_exit_edges, single_exit): Use recorded exit lists.
13141 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
13142 (verify_loop_structure): Verify consistency of the exit lists.
13143 (flow_loops_find): Use alloc_loop. Initialize exits hash.
13144 (set_single_exit): Removed.
13145 * cfgloop.h (struct loop_exit): New function.
13146 (struct loop): single_exit_ field replaced by exits field.
13147 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
13148 (struct loops): Added exits hash.
13149 (mark_single_exit_loops, set_single_exit): Declaration removed.
13150 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
13151
13152 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13153
13154 * doc/invoke.texi: Avoid use of @headitem.
13155
13156 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13157
13158 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
13159
13160 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13161
13162 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
13163 list of targets.
13164
13165 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
13166 Richard Sandiford <richard@codesourcery.com>
13167
13168 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
13169 * config/m68k/m68k.opt: Resort options.
13170 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
13171
13172 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
13173 Richard Sandiford <richard@codesourcery.com>
13174
13175 * doc/invoke.texi: Document the macros that are defined by
13176 m68k's -mtune and -mhard-float options.
13177 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
13178 (m68k_cpp_cpu_family): Likewise.
13179 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
13180 of __ucfv*__ macros. Define __mcffpu__ if generating code for
13181 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
13182 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
13183 (m68k_cpp_cpu_family): Likewise.
13184
13185 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13186
13187 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
13188 macros besides mc68000 as tuning macros. Use a switch statement
13189 to set them and mcpu32.
13190
13191 2007-01-12 Julian Brown <julian@codesourcery.com>
13192
13193 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
13194 (TARGET_68040_ONLY): Rename to...
13195 (TARGET_68040): ...this.
13196 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
13197 * config/m68k/m68k.md: Likewise.
13198
13199 2007-01-12 Julian Brown <julian@codesourcery.com>
13200 Nathan Sidwell <nathan@codesourcery.com>
13201 Richard Sandiford <richard@codesourcery.com>
13202
13203 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
13204 the -mcpu= argument associated with the --with-cpu setting.
13205 Define M68K_DEFAULT_TUNE to the default -mtune= option,
13206 if different from the one implied by the -mcpu setting.
13207 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
13208 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
13209 * doc/invoke.texi: Mention ColdFire in the introduction to the
13210 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
13211 -mno-div and -mhard-float options. Make -m68881 a synonym for
13212 -mhard-float. Document the previously-undocumented -m5206e,
13213 -m528x, -m5307 and -m5407 options. Tweak the existing option
13214 documentation for consistency.
13215 * doc/install.texi: Mention new --with-cpu arguments.
13216 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
13217 default CPU if neither -mcpu nor -march are specified.
13218 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
13219 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
13220 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
13221 using m68k_tune to decide between families that implement the
13222 same ISA. Use m68k_tune to set __mcfv4e__.
13223 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
13224 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
13225 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
13226 (FL_ISA_C, FL_ISA_MMU): New macros.
13227 (MASK_COLDFIRE): Delete.
13228 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
13229 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
13230 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
13231 (TARGET_HARD_FLOAT): Do not define here.
13232 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
13233 (TUNE_68000): New macro.
13234 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
13235 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
13236 (TUNE_CFV2): Redefine in terms of m68k_tune.
13237 (uarch_type, target_device, fpu_type): New enums.
13238 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
13239 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
13240 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
13241 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
13242 (FL_FOR_isa_c): New macros.
13243 (m68k_isa): New enum.
13244 (m68k_target_selection): New structure.
13245 (all_devices, all_isas, all_microarchs): New tables.
13246 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
13247 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
13248 (MASK_ALL_CPU_BITS): Delete.
13249 (m68k_find_selection): New function.
13250 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
13251 Map the legacy target options to a combination of the new ones.
13252 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
13253 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
13254 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
13255 settings.
13256 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
13257 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
13258 properties.
13259 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
13260 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
13261 * config/m68k/m68k-devices.def: New file.
13262
13263 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13264 Nathan Sidwell <nathan@codesourcery.com>
13265
13266 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
13267 (SUBTARGET_EXTRA_SPECS): New macros.
13268 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
13269 use %(asm_cpu_spec) instead.
13270 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
13271 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13272 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13273 (EXTRA_SPECS): Rename to...
13274 (SUBTARGET_EXTRA_SPECS): ...this.
13275
13276 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
13277 Richard Sandiford <richard@codesourcery.com>
13278 Julian Brown <julian@codesourcery.com>
13279
13280 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
13281 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
13282 to the configuration's default CPU.
13283 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
13284 Remove default masks.
13285 (m680[012]0-*-*): Set the default with_cpu to the first part of
13286 the target name.
13287 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
13288 (m68k*-*-linux): Extend the --with-cpu handling to...
13289 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
13290 and m68010. Don't set target_cpu_default2.
13291 * doc/install.texi: Document --with-cpu for m68k.
13292 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
13293 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
13294 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
13295 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
13296 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
13297 (ASM_SPEC): Remove use of %(asm_cpu_default).
13298 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
13299 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
13300 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
13301 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
13302 __HAVE_FPU__ if TARGET_HARD_FLOAT.
13303 (TARGET_DEFAULT): Delete.
13304 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
13305 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
13306 (CPP_CPU_SPEC): Delete.
13307 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
13308 the appropriate string.
13309 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
13310 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
13311 (ASM_SPEC): Don't use %(asm_default_spec).
13312 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
13313 TARGET_DEFAULT and add MASK_68881.
13314 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
13315
13316 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13317
13318 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
13319 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
13320 MASK_68010 alongside MASK_68020.
13321 * doc/invoke.texi: Document -m68010.
13322 * config/m68k/m68k.opt (m68010): New.
13323 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
13324 if TUNE_68010.
13325 (TUNE_68010): New macro.
13326 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
13327 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
13328 (M68K_CPU_m68332): Add MASK_68010.
13329 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
13330 fallback definition.
13331 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
13332 defines.
13333 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
13334 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
13335 to all entries that use MASK_68020.
13336 (output_move_simode_const, output_move_himode, output_move_qimode)
13337 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
13338 instead of TARGET_68020 to select clr behavior. Remove comment
13339 about there being no TARGET_68010.
13340 * config/m68k/m68k.md: Likewise throughout.
13341
13342 2007-01-12 Julian Brown <julian@codesourcery.com>
13343
13344 * config/m68k/m68k.h (TARGET_ISAB): New macro.
13345 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
13346 * config/m68k/m68k.md: Likewise.
13347
13348 2007-01-12 Julian Brown <julian@codesourcery.com>
13349
13350 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
13351 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
13352
13353 2007-01-12 Julian Brown <julian@codesourcery.com>
13354
13355 * config/m68k/m68k.h (TUNE_68040_60): New macro.
13356 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
13357 * config/m68k/m68k.md: Likewise.
13358
13359 2007-01-12 Julian Brown <julian@codesourcery.com>
13360 Richard Sandiford <richard@codesourcery.com>
13361
13362 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
13363 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
13364 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
13365 TARGET_CPU32.
13366 (TARGET_CPU32): Rename to...
13367 (TUNE_CPU32): ...this.
13368 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
13369 (TUNE_CFV2): New macros.
13370 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
13371 remove conditions that are implied by TARGET_68020.
13372 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
13373 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
13374 (m68k_output_function_epilogue): Likewise.
13375 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
13376 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
13377 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
13378 non-68000 timings. Refactor multiplication and division costs.
13379 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
13380 TUNE_CPU32 instead of TARGET_CPU32.
13381 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
13382 and TUNE_68060 instead of TARGET_68060.
13383 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
13384 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
13385 TARGET_CPU32.
13386 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
13387 && !TARGET_COLDFIRE" to choose between moveq and clr.
13388 Likewise in the unnamed movsf pattern.
13389 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
13390 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
13391 ashiftrt pattern.
13392
13393 2007-01-12 Richard Sandiford <richard@codesourcery.com>
13394
13395 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
13396 of tabbing before backslashes.
13397
13398 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13399
13400 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
13401 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
13402 (ASM_OUTPUT_INTERNAL_LABEL): Define.
13403
13404 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
13405
13406 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
13407 find_interesting_uses_cond.
13408 (find_interesting_uses_cond): Use extract_cond_operands.
13409 (rewrite_use_compare): Use extract_cond_operands and
13410 force_gimple_operand_bsi. Do not call update_stmt.
13411 (determine_use_iv_cost_condition): Use extract_cond_operands.
13412 Return cheaper of using original bound and changing the exit bound.
13413
13414 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
13415
13416 PR tree-optimization/29516
13417 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
13418 most_expensive_mult_to_index, addr_to_parts,
13419 create_mem_ref, maybe_fold_tmr): Make the type of
13420 fields of TARGET_MEM_REF sizetype.
13421 (move_fixed_address_to_symbol, move_pointer_to_base):
13422 New functions.
13423 * tree.def (TARGET_MEM_REF): Add comment on types of
13424 the operands.
13425
13426 2007-01-11 Joseph Myers <joseph@codesourcery.com>
13427
13428 * c-common.c (vector_types_convertible_p): Treat opaque types as
13429 always convertible if they have the same size, but not otherwise.
13430
13431 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
13432
13433 * ifcvt.c (struct noce_if_info): Add comments to the fields.
13434 Remove the b_unconditional field.
13435 (noce_try_sign_mask): Do not look at b_unconditional.
13436 (noce_process_if_block): Do not use merge_if_blocks. Update
13437 the CFG here. Do not set b_unconditional.
13438 (cond_move_process_if_block): Likewise.
13439 (find_cond_trap): Likewise.
13440 (check_cond_move_block): Require simple jump insns at the end
13441 of the basic block.
13442
13443 2007-01-11 Jan Hubicka <jh@suse.cz>
13444
13445 PR tree-optimization/1046
13446 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
13447 when alias info is not ready.
13448 (pass_tail_recursion): Do not require aliasing.
13449 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
13450 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
13451 * tree-ssa-copy.c (pass_copy_prop): Likewise.
13452 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
13453 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
13454 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
13455 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
13456 before inlining.
13457 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
13458 When aliasing is not build, mark statement as volatile.
13459
13460 2007-01-11 Tom Tromey <tromey@redhat.com>
13461
13462 PR preprocessor/15185, PR preprocessor/20989:
13463 * doc/cppopts.texi <-MT>: Update description of algorithm for
13464 computing default target.
13465 <-M, -MD>: Reword "basename" text.
13466
13467 2007-01-11 Roger Sayle <roger@eyesopen.com>
13468
13469 * builtins.c (expand_builtin_pow, expand_builtin_powi,
13470 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
13471 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
13472 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
13473 fold_builtin_bswap, real_constp, fold_builtin_pow,
13474 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
13475 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
13476 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
13477 * convert.c (convert_to_pointer): Likewise.
13478 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13479 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
13480 const_binop, fold_convert_const_int_from_int,
13481 fold_convert_const_int_from_real,
13482 fold_convert_const_real_from_real, sign_bit_p,
13483 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
13484 fold_sign_changed_comparison, fold_unary, fold_comparison,
13485 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
13486 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
13487 * print-tree.c (print_node_brief, print_node): Likewise.
13488 * stor-layout.c (place_field, layout_type): Likewise.
13489 * tree-chrec.c (keep_cast): Likewise.
13490 * tree.c (build_vector, build_real, build_real_from_int_cst,
13491 build_complex): Likewise.
13492
13493 2007-01-11 Roger Sayle <roger@eyesopen.com>
13494
13495 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
13496 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
13497
13498 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
13499
13500 * configure.ac (strict1_warn): Rename to strict_warn.
13501 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
13502 cc_set_by_configure, quoted_cc_set_by_configure,
13503 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
13504 all_boot_languages, all_stagestuff): Remove.
13505 (target_list): Remove bootstrap targets.
13506 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
13507 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
13508 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
13509 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
13510 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
13511 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
13512 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
13513 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
13514 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
13515 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
13516 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
13517 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
13518 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
13519 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
13520 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
13521 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
13522 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
13523 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
13524 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
13525 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
13526 (mostlyclean): Adjust.
13527 (clean, distclean): Don't mention bootstrap stuff.
13528 * configure: Regenerate.
13529 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
13530 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
13531 treelang/config-lang.in (stagestuff): Remove.
13532 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
13533 stageprofile, stagefeedback, stagestuff): Remove mention.
13534
13535 2007-01-11 Nick Clifton <nickc@redhat.com>
13536
13537 * config/mcore/predicates.md (mcore_general_movesrc_operand):
13538 Accept CONSTs.
13539 (mcore_general_movdst_operand): Do not accept CONST_INTs.
13540 (mcore_arith_K_S_operand): Run the test for the S constraint not
13541 the test for the M constraint.
13542 (mcore_addsub_operand): Do not accept integer values that are
13543 larger than 32 bits.
13544 * config/mcore/mcore.md: Remove unused constraints from split.
13545 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
13546 (addsi3): Likewise.
13547 (allocate_stack): Likewise.
13548 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
13549 operands to 32 bits.
13550 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
13551 INTVAL.
13552 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
13553 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
13554 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
13555 mcore_output_bclri, mcore_output_andn, output_inline_const,
13556 mcore_output_move, mcore_output_movedouble): Likewise.
13557 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
13558 (output_inline_const): Likewise.
13559 (output_inline_const): Fix format strings used in sprintf
13560 statements.
13561 * config/mcore/mcore-protos.h: Update prototypes for changed
13562 functions in mcore.c.
13563 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
13564 HOST_WIDE_INT and not int.
13565 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
13566 CONST_OK_FOR_N): Likewise.
13567 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
13568 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
13569 an INTVAL.
13570
13571 2007-01-10 Jan Hubicka <jh@suse.cz>
13572
13573 * tree-vrp.c (remove_range_assertions): Release defs.
13574 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
13575 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
13576
13577 2007-01-10 Paul Brook <paul@codesourcery.com>
13578
13579 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
13580 * config/arm/arm.md (mulsi3subsi): New insn.
13581
13582 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
13583
13584 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
13585 (tree_transform_and_unroll_loop): New.
13586 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
13587 Declare.
13588
13589 2007-01-10 Robert Kennedy <jimbob@google.com>
13590
13591 * fold-const.c (fold_comparison): Fold comparisons like (x *
13592 1000 < 0) to (x < 0).
13593
13594 2007-01-10 Ian Lance Taylor <iant@google.com>
13595
13596 * tree-pretty-print.c (dump_generic_node): Print parentheses when
13597 operands have the same priority.
13598
13599 2007-01-10 Tom Tromey <tromey@redhat.com>
13600
13601 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
13602 (fold_binary): Likewise.
13603 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
13604 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
13605 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
13606 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
13607 * langhooks.h (struct lang_hooks): Removed field
13608 'can_use_bit_fields_p'.
13609
13610 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
13611
13612 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
13613
13614 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
13615
13616 * function.c (get_last_funcdef_no): New function.
13617 * function.h (get_last_funcdef_no): Declare.
13618 * tree-inline.c (initialize_cfun): Add initialization.
13619 (tree_function_versioning): Cleanup.
13620
13621 2007-01-10 Jan Hubicka <jh@suse.cz>
13622
13623 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
13624 PHIs.
13625
13626 2007-01-10 Sa Liu <saliu@de.ibm.com>
13627 Ben Elliston <bje@au.ibm.com>
13628
13629 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
13630 for SAVE_NONLOCAL and Pmode for any other save level.
13631 * spu-protos.h (spu_restore_stack_block): Declare.
13632 * spu.md (save_stack_block): Remove.
13633 (restore_stack_block): Call spu_restore_stack_block.
13634 * spu.c (spu_restore_stack_block): New function.
13635 (spu_expand_epilogue): Remove old comment.
13636
13637 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
13638
13639 PR tree-optimization/30322
13640 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
13641 (cand_value_at): Return the value as aff_tree.
13642 (may_eliminate_iv): Convert the bound from aff_tree to tree.
13643 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
13644 aff_combination_mult): New functions.
13645 (aff_combination_add): Use aff_combination_add_cst.
13646 (aff_combination_convert): Allow conversions to a wider type.
13647 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
13648 * tree-affine.h (aff_combination_mult): Declare.
13649
13650 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
13651
13652 * doc/tm.texi: Update documentation to reflect reality of exec
13653 and start file search behaviours. Update copyright year.
13654 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
13655 header file directories.
13656
13657 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
13658
13659 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
13660 (*cosxf2): Rename to cosxf2_i387.
13661 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
13662 using X87MODEF12 mode macro. Rename patterns to
13663 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
13664 for SSE math.
13665 (*cosdf2, *cossf2): Ditto.
13666 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
13667 to match extended input operands.
13668 (sincos<mode>3): New expander.
13669 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
13670 insn patterns and corresponding splitters.
13671
13672 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
13673
13674 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
13675 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
13676
13677 2007-01-09 Nicolas Pitre <nico@cam.org>
13678
13679 PR target/30173
13680 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
13681
13682 2007-01-08 Geoffrey Keating <geoffk@apple.com>
13683
13684 * target.h (struct gcc_target): New field library_rtti_comdat.
13685 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
13686 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
13687 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
13688 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
13689
13690 2007-01-08 Geoffrey Keating <geoffk@apple.com>
13691
13692 * doc/invoke.texi (Optimize Options): Correct description of -O0.
13693
13694 2007-01-08 Richard Guenther <rguenther@suse.de>
13695
13696 * tree.h (force_fit_type_double): Export.
13697 (force_fit_type): Remove.
13698 * fold-const.c (force_fit_type_double): New function.
13699 (force_fit_type): Remove.
13700 (int_const_binop): Use it.
13701 (fold_convert_const_int_from_int): Likewise.
13702 (fold_convert_const_int_from_real): Likewise.
13703 (fold_div_compare): Likewise.
13704 (fold_sign_changed_comparison): Likewise.
13705 (fold_unary): Likewise.
13706 (fold_negate_const): Likewise.
13707 (fold_abs_const): Likewise.
13708 (fold_not_const): Likewise.
13709 * c-common.c (shorten_compare): Use force_fit_type_double.
13710 * convert.c (convert_to_pointer): Likewise.
13711
13712 2007-01-08 Richard Guenther <rguenther@suse.de>
13713
13714 * tree.h (build_int_cst_wide_type): Export.
13715 * tree.c (build_int_cst_wide_type): New function.
13716 (build_int_cst_wide): Fix comment.
13717 * builtins.c (fold_builtin_object_size): Use build_int_cst
13718 to build -1 or 0 of the correct type. Use fit_double_type
13719 to check for overflow.
13720 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
13721 to build the mask.
13722 (decode_field_reference): Likewise.
13723 (all_ones_mask_p): Likewise.
13724 (native_interpret_int): Use build_int_cst_wide_type.
13725 (fold_binary): Use build_int_cst_type to build an all-ones
13726 value.
13727 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
13728
13729 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
13730
13731 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
13732
13733 2007-01-09 Ben Elliston <bje@au.ibm.com>
13734
13735 * genautomata.c (STATS_OPTION): New option.
13736 (stats_flag): New flag.
13737 (gen_automata_option): Handle it.
13738 (initiate_automaton_gen): Ditto.
13739 (write_automata): Output statistics only if stats_flag is
13740 set. Likewise, output time statistics only if time_flag is set.
13741 * doc/md.texi (Processor pipeline description): Document new flag.
13742
13743 2007-01-08 Richard Guenther <rguenther@suse.de>
13744
13745 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
13746 * tree.c (build_int_cst_type): Likewise.
13747 (size_in_bytes): Don't call force_fit_type on the result.
13748 (int_fits_type_p): Use fit_double_type.
13749 * fold-const.c (fit_double_type): New function.
13750 (force_fit_type): Use it.
13751 * tree.h (fit_double_type): Export.
13752
13753 2007-01-08 Jan Hubicka <jh@suse.cz>
13754
13755 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
13756 * ipa.c (function_and_variable_visibility): Fix return type.
13757
13758 2007-01-08 Richard Guenther <rguenther@suse.de>
13759
13760 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
13761 of offset to build the index.
13762 * tree-pretty-print.c (dump_generic_node): Don't build negated
13763 const just for printing.
13764 * c-pretty-print.c (pp_c_integer_constant): Likewise.
13765 * builtins.c (fold_builtin_int_roundingfn): Check if result
13766 fits the type by using force_fit_type and comparing the result.
13767 * predict.c (predict_loops): Use compare_tree_int for comparison.
13768 * tree.c (build_int_cst): Fall back to integer_type_node for
13769 NULL_TREE type.
13770 (build_int_cst_wide): Assert type is non-null.
13771
13772 2007-01-08 Roberto Costa <roberto.costa@st.com>
13773
13774 * tree-vrp.c (extract_range_from_cond_expr): New.
13775 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
13776 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
13777 as expressions.
13778 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
13779 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
13780 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
13781 used as expressions.
13782 * tree-object-size.c (cond_expr_object_size): New.
13783 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
13784
13785 2007-01-08 Jan Hubicka <jh@suse.cz>
13786
13787 * tree-ssa-forwprop.c (forward_propagate_into_cond,
13788 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
13789 statement.
13790
13791 2007-01-08 Richard Guenther <rguenther@suse.de>
13792
13793 PR tree-optimization/23603
13794 * tree-vrp.c (set_value_range_to_truthvalue): New function.
13795 (extract_range_from_binary): Fall back to truthvalue instead of
13796 varying for TRUTH_*_EXPR.
13797 (extract_range_from_comparison): Fall back to truthvalue instead of
13798 varying.
13799 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
13800 if all visited PHI values were constant.
13801
13802 2007-01-08 Jan Hubicka <jh@suse.cz>
13803
13804 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
13805 (cgraph_analyze_function): break out from ...
13806 (cgraph_finalize_compilation_unit): ... here.
13807 (cgraph_expand_function): Remove forgoten commented out line.
13808 (cgraph_optimize): Analyze functions.
13809
13810 2007-01-08 Jan Hubicka <jh@suse.cz>
13811
13812 * tree-pas.h (TODO_remove_function): New flag.
13813 (TODO_update*): Renumber.
13814 (pass_ipa_increase_alignment,
13815 pass_ipa_function_and_variable_visibility): New passes.
13816 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
13817 (cgraph_function_and_variable_visibility): Move to ipa.c
13818 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
13819 cgraph_increase_alignment.
13820 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
13821 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
13822 calling tree-inline.
13823 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
13824 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
13825 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
13826 (gate_increase_alignment): New function.
13827 (pass_ipa_increase_alignment): New pass.
13828 * ipa.c: Inline tree-pass.h and timevar.h
13829 (function_and_variable_visibility): Move here from cgraphunit.c
13830 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
13831 * passes.c (init_optimization_passes): Add the two new passes.
13832 (execute_todo): Handle cgraph_remove_functions.
13833
13834 2007-01-08 Nick Clifton <nickc@redhat.com>
13835
13836 * config/frv/predicates.md (reg_or_0_operand): Accept
13837 CONST_DOUBLEs.
13838
13839 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
13840
13841 * config/bfin/rtems.h, config/bfin/t-rtems: New.
13842 * config.gcc: Add bfin*-rtems*.
13843
13844 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
13845
13846 * c.opt: Add -flax-vector-conversions.
13847 * c-typeck.c (convert_for_assignment): Pass flag to
13848 vector_types_convertible_p to allow emission of note.
13849 (digest_init): Likewise.
13850 * c-opts.c: Handle -flax-vector-conversions.
13851 * c-common.c (flag_lax_vector_conversions): New.
13852 (vector_types_convertible_p): Unless -flax-vector conversions
13853 has been passed, disallow conversions between vectors with
13854 differing numbers of subparts and/or element types. If such
13855 a conversion is disallowed, possibly emit a note on the first
13856 occasion only to inform the user of -flax-vector-conversions.
13857 The new last argument specifies this.
13858 * c-common.h (flag_lax_vector_conversions): New.
13859 (vector_types_convertible_p): Add extra argument.
13860 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
13861 char_type_node for V*QI type vectors.
13862 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
13863 Update to satisfy new typechecking rules.
13864 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
13865 C and C++ variants.
13866 * doc/invoke.texi (C Dialect Options): Document
13867 -flax-vector-conversions.
13868
13869 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
13870
13871 PR tree-optimization/29877
13872 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
13873 a register variable on the RHS to not be replaceable.
13874
13875 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
13876 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
13877 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
13878 const_simm15, const_pow2, const_npow2): Added.
13879 * config/score/misc.md (insv, extv, extzv, movmemsi,
13880 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
13881 * config/score/score.c (score_address_cost, score_select_cc_mode):
13882 Added.
13883 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
13884 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
13885 Update score_print_operand.
13886 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
13887 Adjust register allocate order and update some macro define.
13888 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
13889 mdx_block_move_straight, mdx_block_move_loop_head,
13890 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
13891 mdx_block_move): Added.
13892 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
13893 mdp_limm): Updated and fix some bug and typo.
13894 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
13895 (movsf, movdf, doloop_end): Added.
13896
13897 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
13898
13899 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
13900 config/arm/thumb2.md: Fix comment typos.
13901 * doc/extend.texi: Fix a typo.
13902
13903 2007-01-07 Eric Christopher <echristo@apple.com>
13904
13905 * configure.ac: Check for __stack_chk_fail for darwin.
13906 * configure: Regenerate.
13907
13908 2007-01-07 Richard Guenther <rguenther@suse.de>
13909
13910 * tree-vrp.c (extract_range_from_assert): CSE calls to
13911 compare_values where possible.
13912 (extract_range_from_unary_expr): Likewise.
13913
13914 2007-01-07 Anatoly Sokolov <aesok@post.ru>
13915
13916 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
13917 * config/avr/avr.c (call_insn_operand): Delete function.
13918 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
13919 instead of register number. Use predicates.
13920 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
13921 call_insn_operand): Add.
13922
13923 2007-01-06 Jan Hubicka <jh@suse.cz>
13924
13925 * tree-pass.h (pass_build_cgraph_edges): Declare.
13926 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
13927 (visited_nodes): Remove.
13928 (cgraph_create_edges): Move to cgraphbuild.c; rename to
13929 build_cgrpah_edges; make visited_nodes local.
13930 (cgraph_process_new_functions): DO not call initialize_inline_failed.
13931 (record_references_in_initializer): Move to cgraphbuild.c
13932 (initialize_inline_failed, rebuild_cgraph_edges,
13933 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
13934 (verify_cgraph_node): Make visited_nodes local.
13935 (cgraph_analyze_function): Do not call cgraph_create_edges and
13936 initialize_inline_failed.
13937 (cgraph_expand_function): Do not call cgraph_lower_function;
13938 assert that function is already lowered.
13939 * Makefile.in (cgraphbuild.o): New.
13940 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
13941 at the end of lowering passes.
13942
13943 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
13944
13945 * ifcvt.c (cond_move_convert_if_block): New function, code
13946 factored out from...
13947 (cond_move_process_if_block): ...here. Call the new function
13948 on the THEN and ELSE blocks.
13949 (merge_if_block): Do not copy global_live_at_end, merge_blocks
13950 already takes care of this.
13951
13952 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13953
13954 PR c/19978
13955 * tree.h (TREE_OVERFLOW_P): New.
13956 * c-typeck.c (parser_build_unary_op): Warn only if result
13957 overflowed and operands did not.
13958 (parser_build_binary_op): Likewise.
13959 (convert_for_assignment): Remove redundant overflow_warning.
13960 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
13961
13962 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13963
13964 * c-typeck.c (store_init_value): Split over two lines to follow
13965 the GNU coding style.
13966
13967 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
13968
13969 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
13970 __GXX_EXPERIMENTAL_CXX0X__.
13971 * doc/cpp.texi: Same.
13972
13973 2007-01-05 Richard Guenther <rguenther@suse.de>
13974
13975 PR middle-end/27826
13976 * tree.c (get_narrower): Do not construct COMPONENT_REFs
13977 with mismatched types. Instead explicitly build a
13978 conversion NOP_EXPR.
13979
13980 2007-01-05 Ian Lance Taylor <iant@google.com>
13981
13982 * c-common.c (decl_with_nonnull_addr_p): New function.
13983 (c_common_truthvalue_conversion): Call it.
13984 * c-typeck.c (build_binary_op): Likewise.
13985 * c-common.h (decl_with_nonnull_addr_p): Declare.
13986
13987 2007-01-05 Jakub Jelinek <jakub@redhat.com>
13988
13989 PR c/30360
13990 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
13991 denom against 0.0.
13992
13993 2007-01-05 Joel Brobecker <brobecker@adacore.com>
13994
13995 * doc/install.texi (Final install): Document the fact that
13996 the GNAT runtime should not be stripped.
13997
13998 2007-01-04 Jan Hubicka <jh@suse.cz>
13999
14000 * tree-inline.c (fold_marked_statements): Update operand caches
14001 and EH after folding
14002
14003 2007-01-04 Ian Lance Taylor <iant@google.com>
14004
14005 * c-common.c (check_function_nonnull): Whitespace fix.
14006
14007 2007-01-04 Jan Hubicka <jh@suse.cz>
14008
14009 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
14010 comitted older version of patch.
14011 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
14012 function, celanup cfg and collect garbage.
14013
14014 2007-01-04 Mike Stump <mrs@apple.com>
14015
14016 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
14017 (clean): Likewise.
14018
14019 2007-01-04 Eric Christopher <echristo@apple.com>
14020
14021 * libgcc2.c (__bswapsi2): Use SItype.
14022 (__bswapdi2): Use DItype.
14023 * libgcc2.h: Update for above.
14024
14025 2007-01-04 Paul Brook <paul@codesourcery.com>
14026
14027 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
14028 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
14029 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
14030 umulsidi3, umulsidi3adddi, smulsi3_highpart,
14031 umulsi3_highpart): Make conditional on !arm_arch6.
14032 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
14033 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
14034 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
14035 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
14036 umulsi3_highpart_v6): New insns.
14037
14038 2007-01-04 Roger Sayle <roger@eyesopen.com>
14039
14040 * fold-const.c (fold_convert): When casting an expression to void,
14041 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
14042 have a type. Instead of attempting to build a NOP_EXPR, return
14043 these "special" trees directly.
14044
14045 2007-01-04 Joseph Myers <joseph@codesourcery.com>
14046
14047 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
14048 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
14049 rs6000_cost->fp not 0 as adjustment for outer NEG.
14050
14051 2007-01-04 Jan Hubicka <jh@suse.cz>
14052
14053 * cgraph.c (cgraph_release_function_body): New function.
14054 (cgraph_remove_node): Use it.
14055 * cgraph.h (cgraph_release_function_body): Declare.
14056 * cgraphunit.c (cgraph_expand_function): Use it.
14057 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
14058 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
14059 is initialized and while compilation of other function is running.
14060 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
14061 statement CFG annotations from here to ...
14062 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
14063
14064 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
14065
14066 * cfgloop.h (enum li_flags): Make the constants powers of two.
14067
14068 2007-01-04 Jan Hubicka <jh@suse.cz>
14069
14070 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
14071 set.
14072 (fold_marked_statements): New function.
14073 (optimize_inline_calls, tree_function_versioning): Fold new statements.
14074 * tree-inline.h (copy_body_data): Add statements_to_fold.
14075
14076 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
14077
14078 * config.gcc: Mention libgcc/config.host.
14079 * Makefile.in: Update comments mentioning libgcc.
14080 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
14081 (all.cross, start.encap, rest.encap, rest.cross): Update
14082 dependencies for libgcc move.
14083 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
14084 (clean-target, clean-target-libgcc): Delete.
14085 (srcdirify, GCC_EXTRA_PARTS): New macros.
14086 (libgcc-support, libgcc.mvars): New rules.
14087 (distclean): Remove mention of mklibgcc.
14088 (install): Don't reference INSTALL_LIBGCC.
14089 (install-common): Don't reference EXTRA_PARTS.
14090 (install-libgcc, install-multilib): Delete rules.
14091 * mklibgcc.in: Delete file.
14092 * doc/configfiles.texi: Don't mention mklibgcc.
14093
14094 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
14095 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
14096 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
14097 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
14098 (mklibgcc, ldblspecs): Likewise.
14099
14100 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
14101 (posixpre.def): Use $(T).
14102 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
14103 (SHLIB_SRC, SHLIB_INSTALL): Delete.
14104 (SHLIB_LINK): Make dummy.
14105 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
14106
14107 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
14108
14109 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
14110 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
14111 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
14112 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
14113
14114 * configure.ac (all_outputs): Remove mklibgcc.
14115 * configure: Regenerated.
14116
14117 2007-01-03 Josh Conner <jconner@apple.com>
14118
14119 PR middle-end/29683
14120 * calls.c (compute_argument_addresses): Set stack and stack_slot
14121 for partial args, too.
14122 (store_one_arg): Use locate.size.constant for the size when
14123 generating a save_area.
14124
14125 2007-01-03 Robert Kennedy <jimbob@google.com>
14126
14127 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
14128 whose definitions are deleted due to basic block merging.
14129
14130 2007-01-03 Paul Brook <paul@codesourcery.com>
14131
14132 PR target/16634
14133 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
14134 functions.
14135 (use_return_insn): Return 0 for Thumb interrupt functions.
14136 (print_multi_reg): Add rfe argument for IRQ returns.
14137 (arm_output_epilogue): Pop interrupt return address directly into PC.
14138 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
14139
14140 2007-01-03 Paul Brook <paul@codesourcery.com>
14141
14142 Merge from sourcerygxx-4_1.
14143 * config/arm/thumb2.md: New file.
14144 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
14145 Thumb-2.
14146 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
14147 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
14148 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
14149 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
14150 tables.
14151 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
14152 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
14153 comptibility.
14154 * config/arm/ieee754-sf.S: Ditto.
14155 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
14156 (thumb1_base_register_rtx_p): ... to this.
14157 (thumb_index_register_rtx_p): Rename...
14158 (thumb1_index_register_rtx_p): ... to this.
14159 (thumb_output_function_prologue): Rename...
14160 (thumb1_output_function_prologue): ... to this.
14161 (thumb_legitimate_address_p): Rename...
14162 (thumb1_legitimate_address_p): ... to this.
14163 (thumb_rtx_costs): Rename...
14164 (thumb1_rtx_costs): ... to this.
14165 (thumb_compute_save_reg_mask): Rename...
14166 (thumb1_compute_save_reg_mask): ... to this.
14167 (thumb_final_prescan_insn): Rename...
14168 (thumb1_final_prescan_insn): ... to this.
14169 (thumb_expand_epilogue): Rename...
14170 (thumb1_expand_epilogue): ... to this.
14171 (arm_unwind_emit_stm): Rename...
14172 (arm_unwind_emit_sequence): ... to this.
14173 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
14174 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
14175 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
14176 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
14177 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
14178 thumb2_output_casesi): New functions.
14179 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
14180 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
14181 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
14182 THUMB2_WORK_REGS): Define.
14183 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
14184 arm_condexec_mask, arm_condexec_masklen)): New variables.
14185 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
14186 (arm_override_options): Check new CPU capabilities.
14187 Set new architecture flag variables.
14188 (arm_isr_value): Handle v7m interrupt functions.
14189 (user_return_insn): Return 0 for v7m interrupt functions. Handle
14190 Thumb-2.
14191 (const_ok_for_arm): Handle Thumb-2 constants.
14192 (arm_gen_constant): Ditto. Use movw when available.
14193 (arm_function_ok_for_sibcall): Return false for v7m interrupt
14194 functions.
14195 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
14196 (thumb_find_work_register, arm_load_pic_register,
14197 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
14198 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
14199 print_multi_reg, output_mov_long_double_fpa_from_arm,
14200 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
14201 output_mov_double_fpa_from_arm, output_move_double,
14202 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
14203 output_return_instruction, arm_output_function_prologue,
14204 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
14205 arm_output_mi_thunk, thumb_set_return_address): Ditto.
14206 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
14207 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
14208 (arithmetic_instr, shift_op): Use arm_shift_nmem.
14209 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
14210 '!' and 'L'.
14211 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
14212 (thumb_expand_prologue): Use thumb_set_frame_pointer.
14213 (arm_file_start): Output directive for unified syntax.
14214 (arm_unwind_emit_set): Handle stack alignment instruction.
14215 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
14216 Add v6t2, v7, v7a, v7r and v7m.
14217 (RETLDM): Add Thumb-2 code.
14218 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
14219 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
14220 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
14221 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
14222 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
14223 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
14224 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
14225 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
14226 ADJUST_INSN_LENGTH): Define.
14227 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
14228 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
14229 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
14230 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
14231 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
14232 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
14233 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
14234 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
14235 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
14236 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
14237 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
14238 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
14239 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
14240 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
14241 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
14242 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
14243 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
14244 cortex-m3.
14245 * config/arm/arm-tune.md: Regenerate.
14246 * config/arm/arm-protos.h: Update prototypes.
14247 * config/arm/vfp.md: Enable patterns for Thumb-2.
14248 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
14249 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
14250 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
14251 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
14252 * config/arm/libunwind.S: Add Thumb-2 code.
14253 * config/arm/constraints.md: Update include Thumb-2.
14254 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
14255 * config/arm/ieee754-df.S: Ditto.
14256 * config/arm/bpabi.S: Ditto.
14257 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
14258 * config/arm/predicates.md (low_register_operand,
14259 low_reg_or_int_operand, thumb_16bit_operator): New.
14260 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
14261 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
14262 * config/arm/t-arm-elf: Add armv7 multilib.
14263 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
14264 Include thumb2.md.
14265 (UNSPEC_STACK_ALIGN, ce_count): New.
14266 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
14267 arm_zero_extendsidi2, arm_zero_extendqidi2): New
14268 insns/expanders.
14269 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
14270 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
14271 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
14272 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
14273 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
14274 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
14275 insns.
14276 * doc/extend.texi: Document ARMv7-M interrupt functions.
14277 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
14278
14279 2007-01-03 Jakub Jelinek <jakub@redhat.com>
14280
14281 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
14282 (struct _Unwind_Context): Rename args_size to flags, remove
14283 signal_frame field, add a new args_size field and version field.
14284 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
14285 _Unwind_IsExtendedContext): New inline functions.
14286 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
14287 Assume by_value array is only present if _Unwind_IsExtendedContext.
14288 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
14289 _Unwind_IsSignalFrame.
14290 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
14291 (uw_update_context_1): Use _Unwind_SetSignalFrame.
14292 (uw_init_context_1): Initialize context->flags to
14293 EXTENDED_CONTEXT_BIT.
14294 * config/rs6000/linux-unwind.h (frob_update_context): Use
14295 _Unwind_SetSignalFrame.
14296
14297 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
14298
14299 PR middle-end/30353
14300 * gimplify.c (gimplify_modify_expr_complex_part): Move below
14301 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
14302 the value.
14303
14304 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
14305
14306 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
14307 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
14308 RET, AT_SP): Remove.
14309 * config/i386/i386.md (*sse_prologue_save_insn): Use return
14310 instead of RET.
14311
14312 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
14313 * cfgbuild.c (find_basic_blocks): Likewise.
14314 * cfgrtl.c (rtl_create_basic_block): Likewise.
14315 * function.c (temp_slots_at_level): Likewise.
14316 * reg-stack.c (stack_regs_mentioned): Likewise.
14317 * regclass.c (allocate_reg_info): Likewise.
14318 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
14319 set_bb_for_stmt, move_block_to_fn): Likewise.
14320 * tree-complex.c (tree_lower_complex): Likewise.
14321 * vec.h (VEC_safe_grow_cleared): New.
14322
14323 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
14324
14325 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
14326
14327 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
14328 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
14329 to loop_version.
14330 * cfgloopmanip.c (scale_loop_frequencies): Export.
14331 (loopify): Scale the frequencies by prescribed coefficients.
14332 (set_zero_probability): New function.
14333 (duplicate_loop_to_header_edge): Improve updating of frequencies.
14334 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
14335 and frequencies according to arguments.
14336 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
14337 correctly.
14338 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
14339 * modulo-sched.c (sms_schedule): Set probabilities for entering
14340 versioned loop correctly.
14341 * tree-vect-transform.c (vect_transform_loop): Ditto.
14342 * cfgloop.h (loopify, loop_version): Declaration changed.
14343 (scale_loop_frequencies): Declared.
14344
14345 2007-01-02 Jan Hubicka <jh@suse.cz>
14346
14347 * cgraph.c: Include tree-flow.h
14348 (cgraph_add_new-function): Handle IPA_SSA mode; execute
14349 early_local_passes.
14350 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
14351 * tree-pass.h (pass_all_early_optimizations): Declare.
14352 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
14353 early_local_passes.
14354 (cgraph_analyze_function): Do early_local_passes.
14355 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
14356 Do not add referenced vars.
14357 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
14358 SSA form.
14359 (gate_all_early_local_passes): New gate.
14360 (pass_early_local_passes): Use new gate.
14361 (execute_early_local_optimizations): New functions.
14362 (gate_all_early_optimizations): New gate.
14363 (pass_all_early_optimizations): New pass.
14364 (execute_free_datastructures): Free SSA only when initialized.
14365 (gate_init_datastructures): Init only when optimizing.
14366 (tree_lowering_passes): Do early local passes when called late.
14367 * tree-profile.c (do_tree_profiling): Don't profile functions added
14368 late.
14369 (do_early_tree_profiling, pass_early_tree_profile): Kill.
14370 * tree-cfg.c (update_modified_stmts): Do not update when operands are
14371 not active.
14372 * passes.c (init_optimizations_passes): Reorder so we go into SSA
14373 during early_local_passes.
14374 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
14375
14376
14377 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
14378
14379 * Makefile.in: Update copyright year.
14380
14381 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
14382
14383 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
14384 in $(lang_checks) and check-consistency targets.
14385
14386 2007-01-02 Jan Hubicka <jh@suse.cz>
14387
14388 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
14389 Do not add referenced vars.
14390 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
14391 are not active.
14392 * passes.c (init_optimization_passes): Put mudflap_2 after
14393 free_datastructures.
14394
14395 2007-01-02 Jan Hubicka <jh@suse.cz>
14396
14397 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
14398 Set NOTHROW flag on call statements proved to be nothrow.
14399 Update statement of local calls so new pure/const functions are
14400 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
14401 goto receivers.
14402 (tree_rest_of_compilation): Register hooks and initialize bitmap
14403 early. Do not set after_inlining flag.
14404
14405 2007-01-02 Steve Ellcey <sje@cup.hp.com>
14406
14407 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
14408 HOST_BITS_PER_LONGLONG
14409
14410 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14411
14412 PR c/19977
14413 * c-typeck.c (store_init_value): Don't emit pedantic overflow
14414 warning for non-static initializers.
14415
14416 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
14417
14418 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
14419 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
14420 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
14421 Always use set_unique_reg_note to add REG_EQUAL notes.
14422
14423 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
14424
14425 Revert:
14426 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
14427
14428 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
14429 * cfgbuild.c (find_basic_blocks): Likewise.
14430 * cfgrtl.c (rtl_create_basic_block): Likewise.
14431 * function.c (temp_slots_at_level): Likewise.
14432 * reg-stack.c (stack_regs_mentioned): Likewise.
14433 * regclass.c (allocate_reg_info): Likewise.
14434 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
14435 set_bb_for_stmt, move_block_to_fn): Likewise.
14436 * tree-complex.c (tree_lower_complex): Likewise.
14437 * vec.h (VEC_safe_grow_cleared): New.
14438
14439 2007-01-02 Ian Lance Taylor <iant@google.com>
14440
14441 * c-common.c (c_common_truthvalue_conversion): When warning about
14442 using an assignment as a truth value, set TREE_NO_WARNING.
14443
14444 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14445
14446 PR middle-end/7651
14447 * c.opt (Wold-style-declaration): New.
14448 * doc/invoke.texi (C-only Warning Options): New.
14449 (Wold-style-declaration): Document it.
14450 (Wextra): Enabled by -Wextra.
14451 * c-opts.c (c_common_post_options): Enabled by -Wextra.
14452 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
14453 -Wold-style-declaration.
14454
14455 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
14456
14457 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
14458 * cfgbuild.c (find_basic_blocks): Likewise.
14459 * cfgrtl.c (rtl_create_basic_block): Likewise.
14460 * function.c (temp_slots_at_level): Likewise.
14461 * reg-stack.c (stack_regs_mentioned): Likewise.
14462 * regclass.c (allocate_reg_info): Likewise.
14463 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
14464 set_bb_for_stmt, move_block_to_fn): Likewise.
14465 * tree-complex.c (tree_lower_complex): Likewise.
14466 * vec.h (VEC_safe_grow_cleared): New.
14467
14468 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
14469
14470 * c-common.c (c_common_nodes_and_builtins): Since variants of
14471 void_type_node get built before it is given a name, we need to
14472 give those variants the name, too.
14473 (complete_array_type): We need to work with the canonical main
14474 type of the array, from which we will build the qualified version.
14475 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
14476 * print-tree.c (print_node): Display canonical type information
14477 for each type.
14478 * stor-layout.c (layout_type): When we don't know the
14479 alignment of a type for which we're building an array, we end up
14480 guessing wrong, so make the type require structural equality.
14481 * tree.c (make_node_stat): When we build a new type, it is its
14482 own canonical type.
14483 (build_type_attribute_qual_variant): When building an attribute
14484 variant, its canonical type is the non-attribute variant. However,
14485 if the attributes are target-dependent and they differ, we need to
14486 use structural equality checks for this type.
14487 (build_qualified_type): A qualified type is not equivalent to its
14488 unqualified variant; set the canonical type appropriately.
14489 (build_distinct_type_copy): When building a distinct type from
14490 another type, the new type is its own canonical type.
14491 (build_variant_type_copy): When building a new type variant, we
14492 assume that it is equivalent to the original type.
14493 (build_pointer_type_for_mode): When building a pointer type, also
14494 build a canonical type pointer.
14495 (build_reference_type_for_mode): When building a reference type,
14496 also build a canonical type reference.
14497 (build_index_type): When we can't hash an index type (e.g.,
14498 because its maximum value is negative), the index type requires
14499 structural equality tests.
14500 (build_array_type): Build the canonical form of an array type.
14501 (build_function_type): Function types require structural equality,
14502 because they contain default arguments, attributes, etc.
14503 (build_method_type_directly): Ditto for method types.
14504 (build_offset_type): Build the canonical offset type.
14505 (build_complex_type): Build the canonical vector type.
14506 (make_vector_type): Build the canonical vector type.
14507 * tree.h (TYPE_CANONICAL): New.
14508 (TYPE_STRUCTURAL_EQUALITY_P): New.
14509 (SET_TYPE_STRUCTURAL_EQUALITY): New.
14510 (struct tree_type): Added "canonical" field.
14511 * params.h (VERIFY_CANONICAL_TYPES): New.
14512 * doc/c-tree.texi (TYPE_CANONICAL): Document.
14513 (TYPE_STRUCTURAL_EQUALITY_P): Document.
14514 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
14515 * doc/invoke.texi (verify-canonical-types): Document --param
14516 parameter for verifying canonical types.
14517
14518 2007-01-02 Joseph Myers <joseph@codesourcery.com>
14519
14520 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
14521 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
14522 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
14523 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
14524 tm_file.
14525 * config/rs6000/e500.h: New.
14526 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
14527 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
14528 Remove.
14529 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
14530 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
14531 TARGET_E500_DOUBLE): Remove.
14532 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
14533 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
14534 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
14535 * config/rs6000/rs6000.c (rs6000_override_options): Use
14536 CHECK_E500_OPTIONS.
14537
14538 2007-01-02 Joseph Myers <joseph@codesourcery.com>
14539
14540 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
14541 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
14542 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
14543 rs6000_emit_cmove): Don't check TARGET_E500.
14544 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
14545 sordered): Don't check TARGET_E500.
14546
14547 2007-01-01 Eric Christopher <echristo@apple.com>
14548
14549 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
14550 HARD_REGISTER_NUM_P.
14551
14552 2007-01-01 Roger Sayle <roger@eyesopen.com>
14553
14554 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
14555 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
14556 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
14557 eq/ne Y".
14558
14559 2007-01-01 Mike Stump <mrs@apple.com>
14560
14561 * configure.ac: Remove support for building with Apple's gcc-3.1.
14562
14563 2007-01-02 Joseph Myers <joseph@codesourcery.com>
14564
14565 PR middle-end/30311
14566 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
14567 REG is a hard register. Do not modify REG before calling
14568 subreg_nregs.
14569 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
14570 multiple of the size of YMODE for certain lowpart cases.
14571
14572 2007-01-01 Andrew Pinski <pinskia@gmail.com>
14573
14574 PR middle-end/30253
14575 * gimplify (voidify_wrapper_expr): Update for
14576 GIMPLE_MODIFY_STMT.
14577
14578 2007-01-01 Andreas Schwab <schwab@suse.de>
14579
14580 PR target/29166
14581 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
14582 save of BR0 in extra_spill_size instead of spill_size.
14583 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
14584 area.
14585 (ia64_expand_epilogue): Restore BR0 from its new location.
14586
14587 2007-01-01 Andrew Pinski <pinskia@gmail.com>
14588
14589 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
14590 Use a temporary variable if the left hand side is not a gimple
14591 register.
14592
14593 2007-01-01 Andrew Pinski <pinskia@gmail.com>
14594
14595 * gimplify.c (gimplify_return_expr): Make the temporary variable
14596 for the return expression, a gimple register variable.
14597
14598 2007-01-01 Jan Hubicka <jh@suse.cz>
14599
14600 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
14601 INSN_LIST.
14602
14603 2007-01-01 Mike Stump <mrs@apple.com>
14604
14605 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
14606 .literal16.
14607 * config/darwin.c (machopic_select_rtx_section): Use
14608 HAVE_GAS_LITERAL16.
14609 (darwin_mergeable_constant_section): Likewise.
14610 * configure: Regenerate.
14611 * config.in: Regenerate.
14612
14613 2007-01-01 Jan Hubicka <jh@suse.cz>
14614 Andrew Pinski <pinskia@gmail.com>
14615
14616 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
14617 before starting IPA passes.