1 2008-08-12 Jakub Jelinek <jakub@redhat.com>
4 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
5 on the VAR_DECL instead of TYPE_READONLY on its type.
7 2008-08-12 Ira Rosen <irar@il.ibm.com>
9 * tree-vectorizer.c: Depend on langhooks.h.
10 (supportable_widening_operation): Add two arguments. Support double
12 (supportable_narrowing_operation): Likewise.
13 * tree-vectorizer.h (supportable_widening_operation): Add two
15 (supportable_narrowing_operation): Likewise.
16 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
17 supportable_widening_operation with correct arguments.
18 * tree-vect-transform.c (vectorizable_conversion): Likewise.
19 (vectorizable_type_demotion): Support double type conversions.
20 (vectorizable_type_promotion): Likewise.
21 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
23 2008-08-11 Michael Matz <matz@suse.de>
25 * i386/i386.c (override_options): Move initialisation from
26 flag_schedule_insns_after_reload to here from ...
27 (optimization_options): ... here.
29 2008-08-11 Jakub Jelinek <jakub@redhat.com>
31 PR rtl-optimization/36998
32 * dwarf2out.c (compute_barrier_args_size_1,
33 compute_barrier_args_size): Temporarily remove assertions.
35 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
38 * tree-ssa.c (struct walk_data): Add new flag
39 warn_possibly_uninitialized.
40 (warn_uninitialized_var): Use it.
41 (warn_uninitialized_vars): New.
42 (execute_early_warn_uninitialized): Call it.
43 (execute_late_warn_uninitialized): Likewise.
45 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
48 * reload1.c (gen_reload): Guard calls to get_secondary_mem
51 2008-08-09 Jan Hubicka <jh@suse.cz>
54 * optabs.c (maybe_emit_unop_insn): Remove produced code if
56 (expand_fix): Be prepared for expansion to fail.
57 (expand_sfix_optab): Remove instructions if expansion failed.
59 2008-08-09 Anatoly Sokolov <aesok@post.ru>
61 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
63 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
64 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
66 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
68 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
69 mips/t-libgcc-mips16 to tmake_file.
70 * config/mips/mips-protos.h (mips_call_type): New enum.
71 (mips_pic_base_register, mips_got_load): Declare.
72 (mips_restore_gp): Take an rtx argument.
73 (mips_use_pic_fn_addr_reg_p): Declare.
74 (mips_expand_call): Replace the sibcall_p argument with
75 a mips_call_type argument. Add a lazy_p parameter.
76 (mips_split_call): Declare.
77 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
78 (MIPS16_PIC_TEMP): Likewise.
79 (reg_class): Delete M16_NA_REGS.
80 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
81 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
82 (mips_split_hi_p): Declare.
83 * config/mips/mips.c (mips_split_hi_p): New array.
84 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
85 (mips_got_symbol_type_p): New function.
86 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
87 (mips16_stub_function_p): New function.
88 (mips16_local_function_p): Likewise.
89 (mips_use_pic_fn_addr_reg_p): Likewise.
90 (mips_cannot_force_const_mem): Return false for HIGHs.
91 Extend CONST_INT and symbolic handling to MIPS16, using
92 mips_symbol_insns to check that the base symbol type is a
93 legitimate constant. Reject GOT-based constants if
94 TARGET_MIPS16_PCREL_LOADS.
95 (mips_const_insns): Check targetm.cannot_force_const_mem when
96 decomposing a symbolic base and a large offset.
97 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
98 When calling a function that needs $25 from MIPS16 code,
99 move the target address into $25 separately and add a USE
101 (mips16_gp_pseudo_reg): Insert the initializer immediately
102 before the first real insn.
103 (mips_pic_base_register, mips_got_load): New functions.
104 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
105 parameter to LOW_OUT. Say that it can be any valid SET_SRC
106 when splitting a load-address operation. Split SYMBOL_GOT_DISP
107 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
108 (mips_call_tls_get_addr): Update the call to mips_expand_call,
109 also passing NULL_RTX rather than const0_rtx as the aux argument.
110 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
111 instead of TARGET_EXPLICIT_RELOCS.
112 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
113 (mips_load_call_address): Replace the sibcall_p argument with
114 a mips_call_type argument. Use mips_got_load.
115 (mips16_local_alias): New structure.
116 (mips16_local_aliases): New variable.
117 (mips16_local_aliases_hash): New function.
118 (mips16_local_aliases_eq): Likewise.
119 (mips16_local_alias): Likewise.
120 (mips16_stub_function): Likewise.
121 (mips16_build_function_stub): Create a local alias for the target
122 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
123 .cpload directive and an R_MIPS_NONE relocation for the target
124 function, then load the alias rather than the function itself.
125 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
126 (mips16_copy_fpr_return_value): Use mips16_stub_function and
127 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
128 (mips16_build_call_stub): Replace the FN parameter with an
129 FN_PTR parameter. Force the address into a register if it
130 isn't a call_insn_operand; don't rely on the caller to do this.
131 If a call to a locally-defined and locally-binding MIPS16
132 function must be made indirectly, redirect the call to the
133 function's local alias. Use mips16_stub_function_p,
134 mips16_stub_function, mips_expand_call and use_reg.
135 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
136 Use explicit %hi and %lo accesses where possible.
137 Use MIPS_CALL to generate the correct code form of a
138 jal instruction. Add clobbers of $18 instead of uses.
139 Update the call to mips_emit_call_insn.
140 (mips_expand_call): Replace the SIBCALL_P argument with a
141 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
142 Take a LAZY_P parameter. Call mips16_build_call_stub first,
143 allowing it to modify the call address. Update the calls to
144 mips_load_call_address and mips_emit_call_insn.
145 (mips_split_call): New function.
146 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
147 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
148 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
149 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
150 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
152 (mips_cprestore_slot): New function.
153 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
154 and use mips_cprestore_slot.
155 (mips_output_function_prologue): Handle TARGET_MIPS16 for
157 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
158 then use a copygp_mips16 instruction to set up $28.
159 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
160 (mips16_lay_out_constants): Call split_all_insns_noflow.
161 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
162 false if TARGET_MIPS16.
163 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
164 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
165 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
166 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
167 MIPS16 code. Allow MIPS16 o32 PIC.
168 (mips_override_options): Allow MIPS16 o32 PIC.
169 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
170 after reload if TARGET_USE_GOT.
171 (UNSPEC_COPYGP): New constant.
172 (length): Use a default length of 8 for MIPS16 GOT loads.
173 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
174 (*got_page<mode>): Check mips_split_hi_p.
175 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
176 (unspec_got<mode>, unspec_call<mode>): New expanders.
177 (load_got<mode>, load_call<mode>): Remove the length attributes.
178 Use a got attribute instead of a type attribute.
179 (copygp_mips16): New insn.
180 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
181 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
182 (sibcall, sibcall_value, call, call_value): Update the calls
184 (call_internal, call_value_internal): Use mips_split_call.
185 (call_value_multiple_internal): Likewise.
186 (call_split): Move after call_internal (the insn it is split from).
187 (call_internal_direct, call_value_internal_direct): Turn into
188 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
189 (call_direct_split, call_value_direct_split): New patterns.
190 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
191 and use M16_REGS instead of M16_NA_REGS.
192 * config/mips/predicates.md (const_call_insn_operand): Replace
193 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
194 mips_use_pic_fn_addr_reg_p check.
195 (move_operand): Reject HIGHs if mips_split_hi_p.
196 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
197 (__mips16_floatunsisf): Inline __mips16_floatsisf.
198 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
199 * config/mips/libgcc-mips16.ver: New file.
200 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
201 $(srcdir)/config/mips/libgcc-mips16.ver.
203 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
205 * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
206 (mips_unspec_address, mips_unspec_offset_high): Likewise.
207 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
208 (mips16_cfun_returns_in_fpr_p): Likewise.
210 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
212 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
213 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
216 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
218 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
219 (FUNCTION_PROFILER): Save the static chain pointer into $2
220 beforehand and restore it aftewards.
221 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
222 address directly into $25 and call the function through $25;
223 do not clobber $3. Pad the DImode version to cover the space
224 left by the deleted $25 <- $3 move.
225 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
226 the removal of the $25 <- $3 move.
227 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
228 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
230 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
231 Daniel Jacobowitz <dan@codesourcery.com>
233 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
234 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
235 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
236 * config/mips/mips.c (mips_start_function_definition): New function.
237 (mips_end_function_definition): Likewise.
238 (mips_output_function_prologue): Use mips_start_function_definition.
239 (mips_output_function_epilogue): Use mips_end_function_definition.
240 (build_mips16_function_stub): Use mips_start_function_definition
241 and mips_end_function_definition.
242 (build_mips16_call_stub): Likewise.
244 2008-08-09 Richard Guenther <rguenther@suse.de>
246 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
247 * gimple.h (gimple_call_fn): Adjust comment.
248 (gimple_call_set_fndecl): New function.
249 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
250 longer having bare FUNCTION_DECL operand.
251 (gimple_call_return_type): Likewise.
252 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
254 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
255 (gimple_mod_pow2): Likewise.
256 (gimple_mod_subtract): Likewise.
257 (gimple_ic): Likewise.
258 (gimple_stringop_fixed_value): Likewise.
259 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
260 longer having bare FUNCTION_DECL operand.
261 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
262 * omp-low.c (optimize_omp_library_calls): Likewise.
263 * cgraphunit.c (update_call_expr): Likewise.
264 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
265 (execute_convert_to_rsqrt): Likewise.
266 * cfgexpand.c (gimple_to_tree): Simplify.
267 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
268 bare FUNCTION_DECL operand.
269 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
270 (convert_gimple_call): Use gimple_call_fndecl.
271 * c-common.c (c_warn_unused_result): Likewise.
273 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
276 * c-typeck.c (digest_init): Call verify_sequence_points from here.
277 (c_finish_return): Likewise.
278 (c_start_case): Likewise.
279 * c-common.c (warn_for_collisions_1): Use explicit location in
281 * c-parser.c (c_parser_condition): New. Call
282 verify_sequence_points.
283 (c_parser_paren_condition): Call c_parser_condition.
284 (c_parser_for_statement): Call c_parser_condition.
286 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
289 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
290 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
291 Moved from diagnostic.h
292 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
294 (emit_diagnostic): New.
295 (warning0, pedwarn0): Delete.
296 (warning, warning_at, pedwarn, permerror): Return bool.
297 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
298 Moved to diagnostic.c.
299 (struct diagnostic_context): Use correct type for
301 (diagnostic_report_diagnostic): Update declaration.
302 (emit_diagnostic): Declare.
303 * errors.c (warning): Return bool.
304 * errors.h (warning): Update declaration.
305 * toplev.h (warning0, pedwarn0): Delete.
306 (warning, warning_at, pedwarn, permerror): Return bool.
307 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
308 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
309 inform. Update all calls.
310 (diagnose_mismatched_decls): Check return value of warning/pedwarn
311 before giving informative note.
312 (implicit_decl_warning): Likewise.
313 * c-typeck.c (build_function_call): Likewise.
314 * tree-sssa.c (warn_uninit): Likewise.
315 * builtins.c (gimplify_va_arg_expr): Likewise.
317 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
320 * doc/invoke.texi (-Wextra): Move warning from here...
321 (-Wuninitialized): ... to here.
323 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
326 * flags.h (set_Wunused): Delete
327 * toplev.c (process_options): Handle Wunused flags here.
328 * opts.c (maybe_warn_unused_parameter): Delete.
329 (common_handle_option): Replace set_Wunused by warn_unused.
330 (set_Wextra): Do not handle Wunused-parameter here.
331 (set_Wunused): Delete.
332 * c-opts.c (c_common_handle_option): Replace set_Wunused by
334 * common.opt (Wunused): Add Var and Init.
335 (Wunused-function): Likewise.
336 (Wunused-label): Likewise.
337 (Wunused-parameter): Likewise.
338 (Wunused-value): Likewise.
339 (Wunused-variable): Likewise.
341 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
343 * doc/invoke.texi: Add cpu_type power7.
344 * config.in (HAVE_AS_VSX): New.
345 * config.gcc: Add cpu_type power7.
346 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
348 * configure: Regenerate.
349 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
351 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
352 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
353 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
355 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
357 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
358 type to vectorize.builtin_conversion.
359 (vectorizable_conversion): Likewise.
360 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
361 integral type as input.
362 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
364 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
365 and ALTIVEC_BUILTIN_VCTSXS.
366 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
369 2008-08-08 Richard Guenther <rguenther@suse.de>
371 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
372 (surely_varying_stmt_p): Calls are varying only if they are
373 non-builtin and not indirect or have no result.
374 (ccp_fold): Re-instantiate code before the tuples merge.
376 2008-08-08 Richard Guenther <rguenther@suse.de>
378 PR tree-optimization/37056
379 * gimple.h (gimple_assign_rhs_class): New helper function.
380 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
381 unary operations properly.
383 2008-08-07 Jan Hubicka <jh@suse.cz>
385 * i386.h (ix86_size_cost): Declare.
386 (ix86_cur_cost): New function macro.
387 * i386.md (peepholes expanding size and splitters): Predicate by
388 optimize_insn_for_speed_p.
389 (peepholes reduce size and splitters): Predicate by
390 optimize_insn_for_size_p.
391 * i386.c (ix86_size_cost): Rename from ...
392 (size_cost): This one.
393 (override_options): Update.
394 (decide_alg): Likewise.
395 (ix86_expand_clear): Use RTL profile.
396 (ix86_pad_returns): Use RTL profile.
398 2008-08-07 Jan Hubicka <jh@suse.cz>
400 * recog.c (split_all_insns): Set RTL profile
401 (peephole2_optimize): Likewise.
402 * function.c (thread_prologue_and_epilogue_insns): Likewise.
403 * combine.c (combine_instructions): Likewise.
405 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
407 * c-common.c (c_common_reswords): Also warn about keyword "bool".
409 2008-08-07 Bob Wilson <bob.wilson@acm.org>
411 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming value
412 in a6 after the set_frame_ptr insn.
414 2008-08-07 Richard Henderson <rth@redhat.com>
417 * gcc.c (cpp_options): Pass along -g*.
419 2008-08-07 Joseph Myers <joseph@codesourcery.com>
421 * config/arm/arm.c (output_move_neon): Update comment describing
422 big-endian vector layout.
423 (arm_assemble_integer): Do not handle big-endian NEON vectors
425 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
426 neon_vget_lane<mode>_sext_internal,
427 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
428 element indices for big-endian.
430 2008-08-07 Richard Henderson <rth@redhat.com>
432 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
433 * configure, config.in: Rebuild.
434 * debug.h (dwarf2out_do_cfi_asm): Declare.
435 * c-cppbuiltin.c (c_cpp_builtins): Use it.
436 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
437 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
438 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
440 2008-08-07 Joseph Myers <joseph@codesourcery.com>
442 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
443 movv2si_internal): Combine into mov<mode>_internal.
444 (movv2si_internal_2): Remove.
446 2008-08-07 Jan Hubicka <jh@suse.cz>
449 * i386.md (single stringop patterns): Enable unconditionally.
451 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
454 * config/i386/emmintrin.h (_mm_move_epi64): Use
455 __builtin_ia32_movq128.
457 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
458 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
460 * config/i386/sse.md (sse2_movq128): New.
462 * doc/extend.texi: Document __builtin_ia32_movq128.
464 2008-08-07 Richard Guenther <rguenther@suse.de>
467 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
468 pointers can access anything.
470 2008-08-06 Jan Hubicka <jh@suse.cz>
472 * optabs.c (emit_unop_insn): Break out to ...
473 (maybe_emit_unop_insn): ... this one.
474 (expand_sfix_optab): Use maybe variant.
475 * optabs.h (maybe_emit_unop_insn): Declare.
477 * i386.md (mov0 patterns): Enable by default.
478 (FP conversion expanders): Disable expansion of code expanding
479 sequences when instruction should be optimized for size.
480 (single strinop patterns): Enable when optimizing for size.
481 (string expanders): Disable expanding of code expanding sequences
482 when optimizning instruction for size.
483 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
485 (ix86_fp_comparison_sahf_cost): Likewise.
486 (ix86_expand_branch): Likewise.
487 (ix86_expand_ashl_const): Likewise.
488 (ix86_split_ashl): Likewise.
489 (ix86_expand_strlen): Likewise.
490 (ix86_emit_fp_unordered_jump): Likewie.
492 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
494 * c-common.c: Fix typo.
495 (c_common_reswords): Activate more C++ keyword warnings.
497 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
499 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
502 * diagnostic.c (permerror_at): New.
503 * toplev.h (permerror_at): Declare.
505 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
506 Ira Rosen <irar@il.ibm.com>
508 * tree-vect-transform.c (vect_model_simple_cost): Return
509 immediately if stmt is pure SLP.
510 (vect_model_store_cost): Ditto.
511 (vect_model_load_cost): Ditto.
512 (vectorizable_store): Remove PURE_SLP check before call
513 to vect_model_store_cost.
514 (vect_model_store_cost): When checking whether stmt describe
515 strided access, add a check that it is not slp_node.
517 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
520 * c-common.c (warn_for_sign_compare): New. Handle separately the
521 case that 'constant' is zero.
522 * c-typeck.c (build_binary_op): Move code to c-common.c
524 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
526 * config/alpha/alpha.c (alpha_preferred_reload_class,
527 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
528 alpha_output_mi_thunk_osf): Avoid C++ keywords.
529 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
530 * config/arm/arm.md: Likewise.
531 * config/avr/avr-protos.h (preferred_reload_class,
532 test_hard_reg_class, avr_simplify_comparison_p,
533 out_shift_with_cnt, class_max_nregs): Likewise.
534 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
535 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
536 preferred_reload_class, test_hard_reg_class): Likewise.
537 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
538 bfin_memory_move_cost, bfin_secondary_reload,
539 bfin_output_mi_thunk): Likewise.
540 * config/crx/crx.c (crx_secondary_reload_class,
541 crx_memory_move_cost): Likewise.
542 * config/frv/frv-protos.h (frv_secondary_reload_class,
543 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
544 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
545 frv_secondary_reload_class, frv_class_likely_spilled_p,
546 frv_class_max_nregs): Likewise.
547 * config/h8300/h8300.c (h8300_classify_operand,
548 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
550 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
551 * config/ia64/ia64.c (ia64_preferred_reload_class,
552 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
553 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
554 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
556 * config/m68hc11/m68hc11.c (preferred_reload_class,
557 m68hc11_memory_move_cost): Likewise.
558 * config/mcore/mcore.c (mcore_secondary_reload_class,
559 mcore_reload_class): Likewise.
560 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
561 mips_class_max_nregs, mips_cannot_change_mode_class,
562 mips_preferred_reload_class, mips_secondary_reload_class,
563 mips_output_mi_thunk): Likewise.
564 * config/mmix/mmix.c (mmix_preferred_reload_class,
565 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
567 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
569 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
570 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
571 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
572 * config/rs6000/rs6000.c (paired_expand_vector_init,
573 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
574 compare_section_name, rs6000_memory_move_cost): Likewise.
575 * config/s390/s390.c (s390_emit_compare_and_swap,
576 s390_preferred_reload_class, s390_secondary_reload,
577 legitimize_pic_address, legitimize_tls_address,
578 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
579 s390_class_max_nregs): Likewise.
580 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
581 * config/s390/s390.md: Likewise.
582 * config/score/score-protos.h (score_secondary_reload_class,
583 score_preferred_reload_class): Likewise.
584 * config/score/score.c (score_preferred_reload_class,
585 score_secondary_reload_class): Likewise.
586 * config/score/score3.c (score3_output_mi_thunk,
587 score3_preferred_reload_class, score3_secondary_reload_class,
588 score3_hard_regno_mode_ok): Likewise.
589 * config/score/score3.h (score3_preferred_reload_class,
590 score3_secondary_reload_class): Likewise.
591 * config/score/score7.c (score7_output_mi_thunk,
592 score7_preferred_reload_class, score7_secondary_reload_class,
593 score7_hard_regno_mode_ok): Likewise.
594 * config/score/score7.h (score7_preferred_reload_class,
595 score7_secondary_reload_class): Likewise.
596 * config/sh/sh.c (prepare_move_operands, output_far_jump,
597 output_branchy_insn, add_constant, gen_block_redirect,
598 sh_insn_length_adjustment, sh_cannot_change_mode_class,
599 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
601 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
602 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
603 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
604 xstormy16_preferred_reload_class): Likewise.
605 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
606 xtensa_expand_atomic, override_options,
607 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
609 * reorg.c (try_merge_delay_insns): Likewise.
610 * tree.c (merge_dllimport_decl_attributes): Likewise.
612 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
614 2008-08-06 Michael Matz <matz@suse.de>
616 * Makefile.in (write_entries_to_file): Quote words.
617 * gengtype.c: (read_input_line): Skip over leading white-space.
619 2008-08-06 Marc Gauthier <marc@tensilica.com>
621 * config.gcc: Match more processor names for Xtensa.
622 * configure.ac: Likewise.
623 * doc/install.texi (Specific): Likewise.
624 * configure: Regenerate.
626 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
628 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
629 * calls.c (avoid_likely_spilled_reg): Likewise.
630 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
631 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
632 * config/i386/i386.c (ix86_expand_special_args_builtin,
633 ix86_secondary_reload): Likewise.
634 * except.c (struct eh_region, gen_eh_region_catch,
635 remove_unreachable_regions, duplicate_eh_regions,
636 assign_filter_values, build_post_landing_pads,
637 sjlj_find_directly_reachable_regions, remove_eh_handler,
638 reachable_next_level, foreach_reachable_handler,
639 can_throw_internal_1, can_throw_external_1,
640 collect_one_action_chain): Likewise.
641 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
642 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
643 * function.c (update_temp_slot_address, instantiate_new_reg,
644 instantiate_virtual_regs_in_rtx,
645 instantiate_virtual_regs_in_insn): Likewise.
646 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
647 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
648 gimplify_cleanup_point_expr): Likewise.
649 * ipa-cp.c (ipcp_lattice_changed): Likewise.
650 * passes.c (next_pass_1): Likewise.
651 * print-tree.c (print_node_brief, print_node): Likewise.
652 * profile.c (branch_prob): Likewise.
653 * tree-dump.c (dump_register): Likewise.
654 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
656 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
657 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
658 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
659 copy_arguments_for_versioning, copy_static_chain): Likewise.
660 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
661 add_new_name_mapping, register_new_name_mapping): Likewise.
662 * tree-mudflap.c (mf_xform_derefs): Likewise.
663 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
664 get_init_expr, combine_chains): Likewise.
665 * tree-pretty-print.c (dump_generic_node): Likewise.
666 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
667 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
668 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
669 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
671 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
674 * calls.c (expand_call): Use the biggest preferred stack
677 2008-08-06 Michael Matz <matz@suse.de>
680 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
681 for reused reload, instead of overwriting them.
683 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
686 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
687 for incoming stack boundary.
689 * function.c (assign_parm_find_entry_rtl): Update
692 * function.h (rtl_data): Add parm_stack_boundary.
694 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
695 parm_stack_boundary for incoming stack boundary.
697 2008-08-06 Joseph Myers <joseph@codesourcery.com>
699 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
700 for unrepresentable subregs or treat them as equal to other regs
701 or subregs with the same register number.
703 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
706 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
709 2008-08-06 Jan Hubicka <jh@suse.cz>
711 * predict.c (maybe_hot_frequency_p): When profile is absent, all
712 frequencies might be hot.
714 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
716 * reload.c (find_reloads): Force constants into literal pool
717 also if they are wrapped in a SUBREG.
719 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
722 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
723 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
724 Don't allow predicated instructions for data speculation.
725 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
728 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
730 * haifa-sched.c (extend_global): Split to extend_global_data and
731 extend_region_data. Update all uses.
732 (extend_all): Rename to extend_block_data.
734 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
736 * sched-rgn.c (new_ready): Check if instruction can be
737 speculatively scheduled before attempting speculation.
738 (debug_rgn_dependencies): Remove wrongful assert.
740 2008-08-05 Bob Wilson <bob.wilson@acm.org>
742 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
744 2008-08-05 Bob Wilson <bob.wilson@acm.org>
746 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
747 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
748 va_size, and type_size.
750 2008-08-04 Jason Merrill <jason@redhat.com>
753 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
754 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
756 2008-08-05 Richard Henderson <rth@redhat.com>
758 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
759 * configure: Rebuild.
761 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
764 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
765 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
768 2008-08-05 Richard Henderson <rth@redhat.com>
770 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
771 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
772 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
773 * common.opt (fdwarf2-cfi-asm): New.
774 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
775 * config.in, configure: Rebuild.
776 * dwarf2asm.c (dw2_asm_output_data_raw): New.
777 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
778 (dw2_force_const_mem): Externalize.
779 * dwarf2asm.h: Update.
780 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
781 generate a real label.
782 (output_cfi_directive): New.
783 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
784 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
785 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
787 (dwarf2out_end_epilogue): Emit .cfi_endproc.
788 (output_loc_operands_raw, output_loc_sequence_raw): New.
789 (output_cfa_loc_raw): New.
791 2008-08-05 Paul Brook <paul@codesourcery.com>
793 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
794 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
795 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
796 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
797 * config/arm/arm.h (TARGET_VFPD32): Define.
798 (TARGET_VFP3): Use TARGET_VFPD32.
799 (fputype): Add FPUTYPE_VFP3D16.
800 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
801 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
802 * config/arm/arm-cores.def: Add cortex-r4f.
803 * config/arm/arm-tune.md: Regenerate.
805 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
807 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
808 Reword some comments throughout the file.
810 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
811 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
812 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
813 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
815 (MFC_START_ENABLE): Remove PPU-only define.
816 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
817 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
819 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
820 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
821 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
822 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
823 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
824 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
825 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
827 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
828 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
829 (mfc_sdcrt, mfc_sdcrtst): Likewise.
830 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
832 (spu_read_machine_status): Fix typo.
834 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
836 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
837 SUBREG of multi-word hard register.
838 * config/spu/spu.c (valid_subreg): Likewise.
839 (adjust_operand): Handle SUBREGs of multi-word hard registers.
841 2008-08-04 Richard Guenther <rguenther@suse.de>
843 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
844 the candidate with the stripped base if that base is different
845 from the original base even for offset zero.
847 2008-08-04 Richard Guenther <rguenther@suse.de>
850 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
851 check for no_overflow.
853 2008-08-04 Richard Guenther <rguenther@suse.de>
855 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
857 2008-08-04 Paul Brook <paul@codesourcery.com>
859 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
860 (arm_order_regs_for_local_alloc): New function.
861 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
863 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
865 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
868 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
869 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
870 (ix86_expand_epilogue): Likewise.
872 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
874 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
877 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
879 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
880 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
881 (*movv2sf_internal_rex64): Ditto.
883 2008-08-03 Jan Hubicka <jh@suse.cz>
885 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
886 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
887 * expmed.c (expand_smod_pow2): Likewise.
889 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
892 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
893 alternative 0 of operand 1.
894 (*vec_concatv2di_rex64_sse): Ditto.
895 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
897 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
898 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
899 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
900 (*movv2sf_internal_rex64): Ditto.
902 2008-08-02 Richard Guenther <rguenther@suse.de>
905 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
906 (ssedoublesizemode): New mode attribute.
907 (sse_shufps): Call gen_sse_shufps_v4sf.
908 (sse_shufps_1): Macroize.
909 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
910 (sse2_shufpd_1): Macroize.
911 (vec_extract_odd, vec_extract_even): New expanders.
912 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
913 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
914 * i386.c (ix86_expand_vector_init_one_nonzero): Call
915 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
916 (ix86_expand_vector_set): Likewise.
917 (ix86_expand_reduc_v4sf): Likewise.
919 2008-08-01 Doug Kwan <dougkwan@google.com>
921 * matrix-reorg.c: Re-enable all code.
922 (struct malloc_call_data): Change CALL_STMT to gimple type.
923 (collect_data_for_malloc_call): Tuplify.
924 (struct access_site_info): Change STMT to gimple type.
925 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
926 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
927 (struct free_info): Change STMT to gimple type.
928 (struct matrix_access_phi_node): Change PHI to gimple type.
929 (get_inner_of_cast_expr): Remove.
930 (may_flatten_matrices_1): Tuplify.
931 (may_flatten_matrices): Ditto.
932 (mark_min_matrix_escape_level): Ditto.
933 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
934 (ssa_accessed_in_call_rhs): New
935 (ssa_accessed_in_assign_rhs): New
936 (record_access_alloc_site_info): Tuplify.
937 (add_allocation_site): Ditto.
938 (analyze_matrix_allocation_site): Ditto.
939 (analyze_transpose): Ditto.
940 (get_index_from_offset): Ditto.
941 (update_type_size): Ditto.
942 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
943 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
944 (analyze_accesses_for_phi_node): Tuplify.
945 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
946 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
947 (analyze_matrix_accesses): Tuplify.
948 (check_var_data): New call-back type for check_var_notmodified_p.
949 (check_var_notmodified_p): Tuplify and use call-back struct to
950 return statement found.
951 (can_calculate_expr_before_stmt): Factor out statement related code
953 (can_calculate_stmt_before_stmt): New.
954 (check_allocation_function): Tuplify.
955 (find_sites_in_func): Ditto.
956 (record_all_accesses_in_func): Ditto.
957 (transform_access_sites): Ditto.
958 (transform_allocation_sites): Ditto.
959 (matrix_reorg): Re-enable.
960 (gate_matrix_reorg): Re-enable.
962 2008-08-01 Jakub Jelinek <jakub@redhat.com>
964 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
965 for labels for which it hasn't been set yet. If it has been set,
966 stop walking insns and continue with next worklist item.
967 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
968 if the only BARRIER is at the very end of a function.
970 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
972 * cfgexpand.c (expand_stack_alignment): Assert that
973 stack_realign_drap and drap_rtx must match.
975 * function.c (instantiate_new_reg): If DRAP is used to realign
976 stack, replace virtual_incoming_args_rtx with internal arg
979 2008-08-01 Richard Guenther <rguenther@suse.de>
981 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
982 loop information only if we initialized it.
983 (execute_pre): Call fini_pre with in_fre.
984 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
985 if we do not unroll because we hit max-completely-peeled-insns.
986 Use our estimation for consistency, do allow shrinking.
988 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
990 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
991 with MIN_STACK_BOUNDARY.
992 (ix86_update_stack_boundary): Likewise.
993 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
996 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
997 (MIN_STACK_BOUNDARY): This.
999 2008-08-01 Richard Guenther <rguenther@suse.de>
1002 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
1004 2008-08-01 Richard Guenther <rguenther@suse.de>
1006 PR tree-optimization/36988
1007 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
1008 do not matter if that doesn't change volatile qualification.
1010 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
1012 * configure.ac: Do not generate libada-mk. Do not subst
1014 * libada-mk.in: Remove.
1015 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
1016 * configure: Regenerate.
1018 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
1020 * tree-pass.h: Added comment about not dumping passes with name
1021 starting with star in struct opt_pass.
1022 * passes.c (register_dump_files_1): Don't do dump for a pass with
1023 name starting with star.
1024 * doc/passes.texi (Pass manager): Mention pass names and special
1025 meaning of star prefix to avoid dump.
1027 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
1029 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
1031 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
1032 (ISA_MIPS64R2): New macro.
1033 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
1034 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
1035 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
1036 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
1037 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
1038 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
1039 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
1040 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
1041 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
1042 Move up to keep list alphabetically sorted.
1043 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
1044 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
1046 * doc/invoke.texi (MIPS Options): Add -mips64r2.
1047 (-march=@var{arch}): Add mips64r2.
1049 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
1051 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
1053 2008-07-31 Steve Ellcey <sje@cup.hp.com>
1055 * expr.c (expand_assignment): Check for complete type.
1057 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
1060 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
1062 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
1063 for stack alignment.
1065 * function.h (rtl_data): Add stack_realign_tried. Update comments.
1067 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1069 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
1070 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
1072 2008-07-31 Jakub Jelinek <jakub@redhat.com>
1074 PR rtl-optimization/36419
1075 * dwarf2out.c (barrier_args_size): New variable.
1076 (compute_barrier_args_size, compute_barrier_args_size_1): New
1078 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
1079 if not called yet in the current function, use barrier_args_size
1080 array to find the new args_size value.
1081 (dwarf2out_frame_debug): Free and clear barrier_args_size.
1083 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
1086 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
1089 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
1092 * dwarf2out.c (dwarf2out_args_size_adjust): New.
1093 (dwarf2out_stack_adjust): Use it.
1094 (dwarf2out_frame_debug_expr): Likewise.
1096 2008-07-31 Richard Guenther <rguenther@suse.de>
1098 PR tree-optimization/36978
1099 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
1100 the generated condition.
1102 2008-07-31 Richard Guenther <rguenther@suse.de>
1104 * passes.c (init_optimization_passes): Always call
1105 pass_early_warn_uninitialized.
1106 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
1107 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
1108 * doc/passes.texi (Warn for uninitialized variables): Adjust.
1110 2008-07-31 Jakub Jelinek <jakub@redhat.com>
1113 * builtins.c (maybe_emit_free_warning): New function.
1114 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
1115 maybe_emit_free_warning for BUILT_IN_FREE.
1118 * dwarf2out.c (get_context_die): New function.
1119 (force_decl_die, force_type_die): Use it.
1120 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
1121 returns NULL, force generation of DW_TAG_typedef and put that into
1124 PR preprocessor/36649
1125 * c-pch.c (c_common_read_pch): Save and restore
1126 line_table->trace_includes across PCH restore.
1128 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
1131 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
1133 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
1136 * final.c (call_from_call_insn): Handle COND_EXEC.
1138 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
1140 * builtins.c (std_gimplify_va_arg_expr): Replace
1141 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
1142 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1144 2008-07-30 Joey Ye <joey.ye@intel.com>
1145 H.J. Lu <hongjiu.lu@intel.com>
1147 * builtins.c (expand_builtin_setjmp_receiver): Replace
1148 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
1149 (expand_builtin_apply_args_1): Likewise.
1150 (expand_builtin_longjmp): Need DRAP for stack alignment.
1151 (expand_builtin_apply): Likewise.
1153 * caller-save.c (setup_save_areas): Call assign_stack_local_1
1154 instead of assign_stack_local to allow alignment reduction.
1156 * calls.c (emit_call_1): Need DRAP for stack alignment if
1158 (expand_call): Replace virtual_incoming_args_rtx with
1159 crtl->args.internal_arg_pointer.
1160 * stmt.c (expand_nl_goto_receiver): Likewise.
1162 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
1163 alignment and store to stack_alignment_estimated and
1164 max_used_stack_slot_alignment.
1165 (expand_one_var): Likewise.
1166 (expand_stack_alignment): New function.
1167 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
1168 and stack_alignment_estimated fields in rtl_data. Call
1169 expand_stack_alignment at end.
1171 * defaults.h (INCOMING_STACK_BOUNDARY): New.
1172 (MAX_STACK_ALIGNMENT): Likewise.
1173 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
1174 (SUPPORTS_STACK_ALIGNMENT): Likewise.
1176 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
1177 stack alignment when generating virtual registers.
1179 * function.c (assign_stack_local): Renamed to ...
1180 (assign_stack_local_1): This. Add a parameter to indicate
1181 if it is OK to reduce alignment.
1182 (assign_stack_local): Use it.
1183 (instantiate_new_reg): Instantiate virtual incoming args rtx
1184 to vDRAP if stack realignment and DRAP is needed.
1185 (assign_parms): Collect parameter/return type alignment and
1186 contribute to stack_alignment_estimated.
1187 (locate_and_pad_parm): Likewise.
1188 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
1189 with crtl->args.internal_arg_pointer.
1191 * function.h (rtl_data): Add new field drap_reg,
1192 max_used_stack_slot_alignment, stack_alignment_estimated,
1193 stack_realign_needed, need_drap, stack_realign_processed and
1194 stack_realign_finalized.
1195 (stack_realign_fp): New macro.
1196 (stack_realign_drap): Likewise.
1198 * global.c (compute_regsets): Frame pointer is needed when
1199 stack is realigned. Can eliminate frame pointer when stack is
1200 realigned and dynamic realigned argument pointer isn't used.
1202 * reload1.c (update_eliminables): Frame pointer is needed
1203 when stack is realigned.
1204 (init_elim_table): Can eliminate frame pointer when stack is
1205 realigned and dynamic realigned argument pointer isn't used.
1207 * rtl.h (assign_stack_local_1): Declare new funtion.
1209 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
1210 (TARGET_GET_DRAP_RTX): Likewise.
1211 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
1212 TARGET_GET_DRAP_RTX.
1214 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
1216 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
1217 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
1219 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
1220 H.J. Lu <hongjiu.lu@intel.com>
1222 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
1223 vdrap_reg, stack_realign and drap_reg_saved.
1224 (add_cfi): Don't allow redefining CFA when DRAP is used.
1225 (reg_save): Handle stack alignment.
1226 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
1227 alignment. Don't generate DWARF information for (set fp sp)
1229 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
1231 (int_loc_descriptor): Move prototype forward. Also define if
1232 DWARF2_UNWIND_INFO is true.
1233 (output_cfa_loc): Handle DW_CFA_expression.
1234 (build_cfa_aligned_loc): New.
1235 (based_loc_descr): Update assert for stack realign. For local
1236 variables, use sp+offset when stack is aligned without drap and
1237 fp+offset when stack is aligned with drap. For arguments, use
1238 cfa+offset when drap is used to align stack.
1240 2008-07-30 Joey Ye <joey.ye@intel.com>
1241 H.J. Lu <hongjiu.lu@intel.com>
1243 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
1245 (ix86_gen_andsp): New.
1246 (ix86_user_incoming_stack_boundary): Likewise.
1247 (ix86_default_incoming_stack_boundary): Likewise.
1248 (ix86_incoming_stack_boundary): Likewise.
1249 (ix86_can_eliminate): Likewise.
1250 (find_drap_reg): Likewise.
1251 (ix86_update_stack_boundary): Likewise.
1252 (ix86_get_drap_rtx): Likewise.
1253 (ix86_finalize_stack_realign_flags): Likewise.
1254 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
1255 (TARGET_GET_DRAP_RTX): Likewise.
1256 (override_options): Overide option value for new options.
1257 (ix86_function_ok_for_sibcall): Remove check for
1258 force_align_arg_pointer.
1259 (ix86_handle_cconv_attribute): Likewise.
1260 (ix86_function_regparm): Likewise.
1261 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
1262 (ix86_va_start): Replace virtual_incoming_args_rtx with
1263 crtl->args.internal_arg_pointer.
1264 (ix86_select_alt_pic_regnum): Check DRAP register.
1265 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
1266 (ix86_compute_frame_layout): Compute frame layout wrt stack
1268 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
1269 (ix86_expand_prologue): Decide if stack realignment is needed
1270 and generate prologue code accordingly.
1271 (ix86_expand_epilogue): Generate epilogue code wrt stack
1272 realignment is really needed or not.
1274 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
1275 (ABI_STACK_BOUNDARY): Likewise.
1276 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
1277 (STACK_REALIGN_DEFAULT): Likewise.
1278 (INCOMING_STACK_BOUNDARY): Likewise.
1279 (MAX_STACK_ALIGNMENT): Likewise.
1280 (ix86_incoming_stack_boundary): Likewise.
1281 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
1282 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
1283 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
1284 (machine_function): Remove force_align_arg_pointer.
1286 * config/i386/i386.md (BX_REG): New.
1287 (R13_REG): Likewise.
1289 * config/i386/i386.opt (mforce_drap): New.
1290 (mincoming-stack-boundary): Likewise.
1291 (mstackrealign): Add Init(-1).
1293 * config/i386/i386-protos.h (ix86_can_eliminate): New
1295 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
1297 * doc/extend.texi: Update force_align_arg_pointer.
1299 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
1302 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
1303 (INCOMING_STACK_BOUNDARY): Likewise.
1304 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
1305 (TARGET_GET_DRAP_RTX): Likewise.
1307 2008-07-30 Andreas Schwab <schwab@suse.de>
1309 PR rtl-optimization/36929
1310 * dse.c (replace_inc_dec): Use emit_insn_before instead of
1311 add_insn_before and fix argument order.
1312 (replace_inc_dec_mem): Handle NULL rtx.
1314 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
1316 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
1318 (arm_compute_initial_elimination_offset): Use it.
1319 (arm_compute_save_reg_mask): Include static chain save slot when
1320 calculating alignment.
1321 (arm_get_frame_offsets): Ditto.
1322 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
1323 that we can use to decrement the stack when the stack decrement
1324 could be too big for an immediate value in a single insn.
1325 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
1327 2008-07-30 Richard Guenther <rguenther@suse.de>
1329 PR tree-optimization/36967
1330 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
1331 Release defs of statements we remove.
1333 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
1335 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
1336 instead of NULL_RTVEC.
1338 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
1342 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
1345 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
1347 * final.c (call_from_call_insn): New.
1348 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
1350 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
1352 * configure.ac: Substitute ADA_CFLAGS.
1353 * configure: Regenerate.
1354 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
1355 * Makefile.in: Remove mention of X_* variables.
1356 * config/pa/x-ada-hpux10: Remove.
1357 * config/pa/x-ada: Remove.
1359 * doc/fragments.texi: Update.
1361 2008-07-30 Olivier Hainque <hainque@adacore.com>
1363 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
1364 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
1365 __dso_handle explicitly here.
1367 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1370 * c-typeck.c (build_binary_op): Encapsulate code into...
1371 * c-common.c (shorten_binary_op): ...this new function.
1372 (conversion_warning): Use the new function. Handle non-negative
1373 constant in bitwise-and.
1374 * c-common.h (shorten_binary_op): Declare.
1376 2008-07-30 Olivier Hainque <hainque@adacore.com>
1378 * scan.c (make_sstring_space): Add explicit conversions of
1379 allocator's return value.
1380 * fix-header.c (recognized_function): Likewise.
1382 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1384 * doc/cpp.texi: Update to GFDL 1.2.
1385 * doc/gcc.texi: Do not list GPL as Invariant Section.
1386 * doc/gccint.texi: Likewise. Update copyright years.
1387 * doc/install.texi: Update copyright years.
1389 2008-07-30 Alan Modra <amodra@bigpond.net.au>
1392 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
1393 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
1395 2008-07-29 Jan Hubicka <jh@suse.cz>
1397 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
1398 (grokdeclarator): Likewise.
1399 * langhooks.c (lhd_warn_unused_global_decl): Use
1400 DECL_DECLARED_INLINE_P.
1401 * print-tree.c (print_node): Remove DECL_INLINE check.
1403 2008-07-29 Richard Guenther <rguenther@suse.de>
1405 PR tree-optimization/36945
1406 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
1407 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
1408 Record invariant addresses un-decomposed.
1409 (copy_reference_ops_from_call): Record reference call
1410 arguments properly. Simplify.
1411 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
1412 helper split out from ...
1413 (create_component_ref_by_pieces): ... here. Simplify.
1414 Prepare for recursive invocation for call arguments.
1415 (create_expression_by_pieces): Adjust call to
1416 create_component_ref_by_pieces.
1417 (compute_avail): Process operand 2 of reference ops.
1419 2008-07-29 Richard Guenther <rguenther@suse.de>
1421 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
1423 2008-07-29 Jakub Jelinek <jakub@redhat.com>
1425 * c-format.c (check_format_types): Revert unwanted checkin.
1427 2008-07-29 Jan Hubicka <jh@suse.cz>
1429 * flags.h (flag_really_no_inline): Remove.
1430 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
1431 * toplev.c (flag_really_no_inline): Remove.
1432 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
1433 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
1434 (cgraph_decide_inlining_incrementally): Likewise.
1435 (compute_inline_parameters): Likewise.
1436 * opts.c (decode_options): Simplify.
1437 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
1438 * common.opt (finline): Initialize to 1.
1439 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
1441 2008-07-29 Jan Hubicka <jh@suse.cz>
1443 * predict.c (always_optimize_for_size_p): New function.
1444 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1445 optimize_edge_for_size_p, optimize_edge_for_speed_p,
1446 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
1448 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
1449 * function.c (prepare_function_start): Set default profile.
1450 * function.h (rtl_data): Add maybe_hot_insn_p.
1451 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
1452 (construct_exit_block): Likewise.
1453 (tree_expand_cfg): Likewise.
1455 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1456 optimize_edge_for_size_p, optimize_edge_for_speed_p,
1457 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1458 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
1461 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1464 * c-decl.c (merge_decls): Merge USED flags.
1466 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
1468 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
1469 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
1470 next_stack, lab_false and lab_over trees.
1472 2008-07-28 Richard Guenther <rguenther@suse.de>
1474 PR tree-optimization/36957
1475 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
1476 (useless_type_conversion_p): Remove.
1477 (types_compatible_p): Remove.
1478 * gimple.h (tree_ssa_useless_type_conversion): Declare.
1479 (useless_type_conversion_p): Declare.
1480 (types_compatible_p): Declare.
1481 (gimple_expr_type): Return the base type only if it is
1482 trivially convertible to the subtype.
1484 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
1486 * configure.ac: Use the m4_do macro to concatenate the warnings into
1487 one string in ACX_PROG_CC_WARNING_OPTS,
1488 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
1489 * configure: Regenerate.
1491 2008-07-28 Richard Guenther <rguenther@suse.de>
1493 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
1494 (insert_fake_stores): Remove.
1495 (realify_fake_stores): Likewise.
1496 (execute_pre): Remove dead code.
1497 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
1498 (find_func_aliases): Deal with it here instead.
1499 Re-enable gcc_unreachable call.
1501 2008-07-28 Richard Guenther <rguenther@suse.de>
1503 Merge from gimple-tuples-branch.
1505 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
1506 * gimple.def: New file.
1507 * gsstruct.def: Likewise.
1508 * gimple-iterator.c: Likewise.
1509 * gimple-pretty-print.c: Likewise.
1510 * tree-gimple.c: Removed. Merged into ...
1511 * gimple.c: ... here. New file.
1512 * tree-gimple.h: Removed. Merged into ...
1513 * gimple.h: ... here. New file.
1515 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
1516 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
1517 --enable-checking=gimple flag.
1518 * config.in: Likewise.
1519 * configure: Regenerated.
1521 * tree-ssa-operands.h: Tuplified.
1522 * tree-vrp.c: Likewise.
1523 * tree-loop-linear.c: Likewise.
1524 * tree-into-ssa.c: Likewise.
1525 * tree-ssa-loop-im.c: Likewise.
1526 * tree-dump.c: Likewise.
1527 * tree-complex.c: Likewise.
1528 * cgraphbuild.c: Likewise.
1529 * tree-ssa-threadupdate.c: Likewise.
1530 * tree-ssa-loop-niter.c: Likewise.
1531 * tree-pretty-print.c: Likewise.
1532 * tracer.c: Likewise.
1533 * gengtype.c: Likewise.
1534 * tree-loop-distribution.c: Likewise.
1535 * tree-ssa-loop-unswitch.c: Likewise.
1536 * cgraph.c: Likewise.
1537 * cgraph.h: Likewise.
1538 * tree-ssa-loop-manip.c: Likewise.
1539 * value-prof.c: Likewise.
1540 * tree-ssa-loop-ch.c: Likewise.
1541 * tree-tailcall.c: Likewise.
1542 * value-prof.h: Likewise.
1545 * tree-pass.h: Likewise.
1546 * ipa-cp.c: Likewise.
1547 * tree-scalar-evolution.c: Likewise.
1548 * tree-scalar-evolution.h: Likewise.
1549 * target.h: Likewise.
1550 * lambda-mat.c: Likewise.
1551 * tree-phinodes.c: Likewise.
1552 * diagnostic.h: Likewise.
1553 * builtins.c: Likewise.
1554 * tree-ssa-alias-warnings.c: Likewise.
1555 * cfghooks.c: Likewise.
1556 * fold-const.c: Likewise.
1557 * cfghooks.h: Likewise.
1558 * omp-low.c: Likewise.
1559 * tree-ssa-dse.c: Likewise.
1560 * ipa-reference.c: Likewise.
1561 * tree-ssa-uncprop.c: Likewise.
1562 * toplev.c: Likewise.
1563 * tree-gimple.c: Likewise.
1564 * tree-gimple.h: Likewise.
1565 * tree-chrec.c: Likewise.
1566 * tree-chrec.h: Likewise.
1567 * tree-ssa-sccvn.c: Likewise.
1568 * tree-ssa-sccvn.h: Likewise.
1569 * cgraphunit.c: Likewise.
1570 * tree-ssa-copyrename.c: Likewise.
1571 * tree-ssa-ccp.c: Likewise.
1572 * tree-ssa-loop-ivopts.c: Likewise.
1573 * tree-nomudflap.c: Likewise.
1574 * tree-call-cdce.c: Likewise.
1575 * ipa-pure-const.c: Likewise.
1576 * c-format.c: Likewise.
1577 * tree-stdarg.c: Likewise.
1578 * tree-ssa-math-opts.c: Likewise.
1579 * tree-ssa-dom.c: Likewise.
1580 * tree-nrv.c: Likewise.
1581 * tree-ssa-propagate.c: Likewise.
1582 * ipa-utils.c: Likewise.
1583 * tree-ssa-propagate.h: Likewise.
1584 * tree-ssa-alias.c: Likewise.
1585 * gimple-low.c: Likewise.
1586 * tree-ssa-sink.c: Likewise.
1587 * ipa-inline.c: Likewise.
1588 * c-semantics.c: Likewise.
1589 * dwarf2out.c: Likewise.
1591 * tree-ssa-loop-ivcanon.c: Likewise.
1592 * predict.c: Likewise.
1593 * tree-ssa-loop.c: Likewise.
1594 * tree-parloops.c: Likewise.
1595 * tree-ssa-address.c: Likewise.
1596 * tree-ssa-ifcombine.c: Likewise.
1597 * matrix-reorg.c: Likewise.
1598 * c-decl.c: Likewise.
1599 * tree-eh.c: Likewise.
1600 * c-pretty-print.c: Likewise.
1601 * lambda-trans.c: Likewise.
1602 * function.c: Likewise.
1603 * langhooks.c: Likewise.
1604 * ebitmap.h: Likewise.
1605 * tree-vectorizer.c: Likewise.
1606 * function.h: Likewise.
1607 * langhooks.h: Likewise.
1608 * tree-vectorizer.h: Likewise.
1609 * ipa-type-escape.c: Likewise.
1610 * ipa-type-escape.h: Likewise.
1611 * domwalk.c: Likewise.
1612 * tree-if-conv.c: Likewise.
1613 * profile.c: Likewise.
1614 * domwalk.h: Likewise.
1615 * tree-data-ref.c: Likewise.
1616 * tree-data-ref.h: Likewise.
1617 * tree-flow-inline.h: Likewise.
1618 * tree-affine.c: Likewise.
1619 * tree-vect-analyze.c: Likewise.
1620 * c-typeck.c: Likewise.
1621 * gimplify.c: Likewise.
1622 * coretypes.h: Likewise.
1623 * tree-ssa-phiopt.c: Likewise.
1624 * calls.c: Likewise.
1625 * tree-ssa-coalesce.c: Likewise.
1626 * tree.def: Likewise.
1627 * tree-dfa.c: Likewise.
1628 * except.c: Likewise.
1629 * except.h: Likewise.
1630 * cfgexpand.c: Likewise.
1631 * tree-cfgcleanup.c: Likewise.
1632 * tree-ssa-pre.c: Likewise.
1633 * tree-ssa-live.c: Likewise.
1634 * tree-sra.c: Likewise.
1635 * tree-ssa-live.h: Likewise.
1636 * tree-predcom.c: Likewise.
1637 * lambda.h: Likewise.
1638 * tree-mudflap.c: Likewise.
1639 * ipa-prop.c: Likewise.
1640 * print-tree.c: Likewise.
1641 * tree-ssa-copy.c: Likewise.
1642 * ipa-prop.h: Likewise.
1643 * tree-ssa-forwprop.c: Likewise.
1644 * ggc-page.c: Likewise.
1645 * c-omp.c: Likewise.
1646 * tree-ssa-dce.c: Likewise.
1647 * tree-vect-patterns.c: Likewise.
1648 * tree-ssa-ter.c: Likewise.
1649 * tree-nested.c: Likewise.
1650 * tree-ssa.c: Likewise.
1651 * lambda-code.c: Likewise.
1652 * tree-ssa-loop-prefetch.c: Likewise.
1653 * tree-inline.c: Likewise.
1654 * tree-inline.h: Likewise.
1655 * tree-iterator.c: Likewise.
1656 * tree-optimize.c: Likewise.
1657 * tree-ssa-phiprop.c: Likewise.
1658 * tree-vect-transform.c: Likewise.
1659 * tree-object-size.c: Likewise.
1660 * tree-outof-ssa.c: Likewise.
1661 * cfgloop.c: Likewise.
1662 * system.h: Likewise.
1663 * tree-profile.c: Likewise.
1664 * cfgloop.h: Likewise.
1665 * c-gimplify.c: Likewise.
1666 * c-common.c: Likewise.
1667 * tree-vect-generic.c: Likewise.
1668 * tree-flow.h: Likewise.
1669 * c-common.h: Likewise.
1670 * basic-block.h: Likewise.
1671 * tree-ssa-structalias.c: Likewise.
1672 * tree-switch-conversion.c: Likewise.
1673 * tree-ssa-structalias.h: Likewise.
1674 * tree-cfg.c: Likewise.
1675 * passes.c: Likewise.
1676 * ipa-struct-reorg.c: Likewise.
1677 * ipa-struct-reorg.h: Likewise.
1678 * tree-ssa-reassoc.c: Likewise.
1679 * cfgrtl.c: Likewise.
1680 * varpool.c: Likewise.
1682 * tree-ssanames.c: Likewise.
1683 * tree-ssa-threadedge.c: Likewise.
1684 * langhooks-def.h: Likewise.
1685 * tree-ssa-operands.c: Likewise.
1686 * config/alpha/alpha.c: Likewise.
1687 * config/frv/frv.c: Likewise.
1688 * config/s390/s390.c: Likewise.
1689 * config/m32c/m32c.c: Likewise.
1690 * config/m32c/m32c-protos.h: Likewise.
1691 * config/spu/spu.c: Likewise.
1692 * config/sparc/sparc.c: Likewise.
1693 * config/i386/i386.c: Likewise.
1694 * config/sh/sh.c: Likewise.
1695 * config/xtensa/xtensa.c: Likewise.
1696 * config/stormy16/stormy16.c: Likewise.
1697 * config/ia64/ia64.c: Likewise.
1698 * config/rs6000/rs6000.c: Likewise.
1699 * config/pa/pa.c: Likewise.
1700 * config/mips/mips.c: Likewise.
1702 2008-07-28 Simon Baldwin <simonb@google.com>
1704 * c-pragma.c (handle_pragma_message): New function.
1705 (init_pragma): Register handle_pragma_message.
1706 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
1709 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
1711 PR tree-optimization/35252
1712 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
1713 REALPART_EXPR to be considered as same load operation.
1715 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
1717 PR tree-optimization/36830
1718 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
1719 (expressions_equal_p): Return false if only one operand is null.
1721 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
1723 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
1724 version requirements.
1726 2008-07-26 Olivier Hainque <hainque@adacore.com>
1728 * collect2.c (symkind): New enum. Symbol kinds we care about.
1729 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
1730 code and head comment accordingly.
1731 (scan_prog_file): Use symkind names instead of bare integers.
1733 2008-07-25 Jan Hubicka <jh@suse.cz>
1735 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
1737 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
1738 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
1739 * dojump.c (clear_pending_stack_adjust): Likewise.
1740 * print-tree.c (print_node): Ignore DECL_INLINE.
1741 * tree-inline.c (inlinable_function_p): Likewise.
1743 2008-07-25 Michael Meissner <gnu@the-meissners.org>
1745 * doc/extend.texi (hot attribute): Document that the hot attribute
1746 turns on -O3 for some ports.
1747 (cold attribute): Document that the cold attribute turns on -Os
1750 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
1751 reflect function specific option support.
1753 * target.h (struct target_option_hooks): Add fields to say whether
1754 the cold attribute implies -Os and the hot attribute implies -O3.
1756 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
1757 By default, do not turn on -Os for cold functions.
1758 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
1759 not turn on -O3 for hot functions.
1761 * c-common.c (handle_hot_attribute): Use target hook to determine
1762 if hot functions should enable -O3.
1763 (handle_cold_attribute): Use target hook to determine if cold
1764 functions should enable -Os.
1766 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
1767 (override_options): Move disable scheduling to
1768 optimization_options.
1769 (optimization_options): Disable scheduling here, not
1771 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1772 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1774 * config/ia64/ia64.c (ia64_override_options): Move setting
1775 scheduling flags to ia64_optimization_options.
1776 (ia64_optimization_options): Disable scheduling options here, and
1777 not in ia64_override_options.
1778 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1779 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1781 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
1784 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
1786 2008-07-25 Martin Jambor <mjambor@suse.cz>
1788 PR tree-optimization/36926
1789 * ipa-prop.c (ipa_analyze_call_uses): Call
1790 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
1792 2008-07-25 Joseph Myers <joseph@codesourcery.com>
1794 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1795 movv2si_internal): Add mem = reg alternative.
1797 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
1800 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
1801 DEFAULT_PCC_STRUCT_RETURN to 127.
1803 2008-07-24 Jan Hubicka <jh@suse.cz>
1805 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
1806 (build_cgraph_edges): Likewise.
1807 * cgraph.c (cgraph_node): Do not update assembler hash.
1808 (cgraph_remove_node): Drop non-unit-at-a-time code.
1809 * tree-pass.h (pass_O0_always_inline): Remove.
1810 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
1811 * toplev.c (process_options): Flag unit-at-a-time does not imply
1813 * cgraphunit.c: Update comments.
1814 (decide_is_function_needed): Drop non-unit-at-a-time mode.
1815 (cgraph_assemble_pending_functions): Remove.
1816 (cgraph_reset_node): Drop non-unit-at-a-time code.
1817 (cgraph_finalize_function): Likewise.
1818 (cgraph_analyze_function): Likewise.
1819 (cgraph_finalize_compilation_unit): Likewise.
1820 (cgraph_expand_function): Likewise.
1821 (cgraph_optimize): Likesise.
1822 (save_inline_function_body): Likewise.
1823 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
1824 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
1825 * ipa-inline.c: Update comments.
1826 (enum inlining_mode): remove INLINE_SPEED.
1827 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
1828 (cgraph_mark_inline_edge): Likewise.
1829 (try_inline): Likewise.
1830 (cgraph_decide_inlining_incrementally): Likewise.
1831 (cgraph_gate_inlining): Remove.
1832 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
1833 (cgraph_gate_early_inlining): Likewise.
1834 (gate_inline_passes): Remove.
1835 (pass_inline_parameters, pass_ipa_inline): Remove gates.
1836 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1837 pass_O0_always_inline): Remove.
1838 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
1839 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
1840 * opts.c (no_unit_at_a_time_default): Remove.
1841 (decode_options): Remove flag_unit_at_a_time reset and warning.
1842 * opts.h (no_unit_at_a_time_default): Remove.
1843 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
1844 early in GNU dialect.
1845 (merge_decls): Update comment; drop unit-at-a-time check.
1846 (finish_decl): Likewise.
1847 (grok_declaration): Remove flag_inline_trees code.
1848 (finish_functions): Return on function returning non-void on all
1850 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
1851 * cfgexpand.c (expand_one_static_var): Remove.
1852 (expand_one_var): Remove expand_one_static_var call.
1853 (expand_used_vars_for_block): Remove flag_unit_a_time check.
1854 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
1855 and flag_unit_at_a-time compatibility checks.
1856 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1857 * tree-inline.c (flag_inline_trees): Remove.
1858 (inlinable_function_p): Don't check it.
1859 (expand_call_inline): Remove non-unit-at-a-time code.
1860 * tree-inline.h (flag_inline_trees): Remove.
1861 * tree-optimize.c (execute_early_local_optimizations): Remove
1862 unit-at-a-time checks.
1863 (tree_rest_of_compilation): Likewise.
1864 * combine.c (setup_incoming_promotions): Likewise.
1865 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1866 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1867 * passes.c (pass_inline_parameters): Update comments; remove
1868 O0_alwaysinline pass.
1869 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1870 (execute_one_pass): Likewise.
1871 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1872 (ix86_function_sseregparm): Likewise.
1873 * arm.c (arm_function_in_section_p): Likewise.
1874 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1875 * varpool.c: Update comments.
1876 (decide_is_variable_needed): Remove unit-at-a-time checks.
1877 (varpool_finalize_decl): Likewise.
1879 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
1881 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1883 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
1885 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
1887 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1888 imp symbol extension.
1890 2008-07-23 Ian Lance Taylor <iant@google.com>
1892 * tree-vrp.c (infer_value_range): Ignore asm statements when
1893 looking for memory accesses for -fdelete-null-pointer-checks.
1895 2008-07-24 Ben Elliston <bje@au.ibm.com>
1897 * config/spu/spu-c.c (__vector_keyword): New variable.
1898 (vector_keyword): Likewise.
1899 (spu_categorize_keyword): New function.
1900 (spu_macro_to_expand): Likewise.
1901 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1902 compiling an ISO C dialect.
1904 2008-07-24 Ben Elliston <bje@au.ibm.com>
1906 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1909 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1911 * configure: Regenerate.
1912 * configure.ac: Require texinfo 4.7.
1913 * doc/install.texi: Document texinfo 4.7 requirement.
1915 2008-07-23 Martin Jambor <mjambor@suse.cz>
1917 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
1918 rather than for DECL_SAVED_TREE.
1919 * ipa-prop.c: Include diagnostic.h.
1920 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
1922 (ipa_detect_param_modifications): Function rewritten from scratch.
1923 (ipa_compute_jump_functions): Changed accesses to modification flags.
1924 (ipa_free_node_params_substructures): Update flags destruction.
1925 (ipa_node_duplication_hook): Update flags duplication.
1926 (ipa_print_all_params_modified): Updated flag access.
1927 * ipa-prop.h (struct ipa_param_flags): New structure.
1928 (struct ipa_node_params): New field modification_analysis_done,
1929 modified_flags changed into param_flags.
1930 (ipa_is_ith_param_modified): Changed to use new flags.
1931 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1933 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1934 ipa-cp.c and split into two functions.
1935 (ipa_print_node_jump_functions): New function.
1936 (compute_scalar_jump_functions): New function.
1937 (type_like_member_ptr_p): New function.
1938 (compute_pass_through_member_ptrs): New function.
1939 (fill_member_ptr_cst_jump_function): New function.
1940 (determine_cst_member_ptr): New function.
1941 (compute_cst_member_ptr_arguments): New function.
1942 (ipa_compute_jump_functions): Complete rewrite.
1943 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1944 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1945 (struct ipa_member_ptr_cst): New structure.
1946 (union jump_func_value): New field member_cst.
1947 * ipa-cp.c (ipcp_lat_is_insertable): New function.
1948 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1949 jump function types.
1950 (ipcp_print_all_lattices): Slight fprintf rearrangement.
1951 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1952 instead of ipcp_print_all_jump_functions.
1953 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1954 only for replacable scalars.
1956 * doc/invoke.texi (Optimize options): Add description of
1957 -findirect-inlining.
1958 * common.opt (flag_indirect_inlining): New flag.
1959 * opts.c (decode_options): Set flag_indirect_inlining when
1962 * ipa-inline.c: Include ipa-prop.h.
1963 (inline_indirect_intraprocedural_analysis): New function.
1964 (inline_generate_summary): Allocate parameter and argument info
1965 structures, call inline_indirect_intraprocedural_analysis on each
1966 node when doing indirect inlining and deallocate indirect inlining
1967 data structures in the end.
1968 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1969 (free_all_ipa_structures_after_iinln): New function.
1970 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1972 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1974 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1975 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1976 of computing the frequency separately.
1977 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1978 of computing the frequency separately.
1979 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1980 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1981 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1982 (ipa_get_stmt_member_ptr_load_param): New function.
1983 (ipa_is_ssa_with_stmt_def): New function.
1984 (ipa_note_param_call): New function.
1985 (ipa_analyze_call_uses): New function.
1986 (ipa_analyze_stmt_uses): New function.
1987 (ipa_analyze_params_uses): New function.
1988 (ipa_free_node_params_substructures): Also free the param_calls linked
1990 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1991 (ipa_print_node_param_flags): New function.
1992 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1993 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1994 * ipa-prop.h (struct ipa_param_flags): New field called.
1995 (struct ipa_param_call_note): New structure.
1996 (struct ipa_node_params): New fields param_calls and
1998 (ipa_is_ith_param_called): New function.
1999 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2000 ipa_analyze_params_uses and dump parameter flags.
2002 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
2003 ipa_propagate_indirect_call_infos if performing indirect inlining,
2004 pass a new parameter new_edges to it.
2005 (add_new_edges_to_heap): New fucntion.
2006 (cgraph_decide_inlining_of_small_functions): New vector
2007 new_indirect_edges for newly found indirect edges , call
2008 ipa_propagate_indirect_call_infos after inlining.
2009 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
2010 inlining if performing indirect inlining. Call
2011 free_all_ipa_structures_after_iinln when doing so too.
2012 (inline_generate_summary): Do not call
2013 free_all_ipa_structures_after_iinln here.
2014 * ipa-prop.c (update_jump_functions_after_inlining): New function.
2015 (print_edge_addition_message): New function.
2016 (update_call_notes_after_inlining): New function.
2017 (propagate_info_to_inlined_callees): New function.
2018 (ipa_propagate_indirect_call_infos): New function.
2019 * ipa-prop.h: Include cgraph.h
2020 (struct ipa_param_call_note): Fields reordered, new field processed.
2021 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
2023 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
2024 rediscovered call statements.
2025 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
2026 (dump_cgraph_node): Dump also the indirect_call flag.
2027 (cgraph_clone_edge): Copy also the indirect_call flag.
2028 * tree-inline.c (copy_bb): Do not check for fndecls from call
2029 expressions, check for edge availability when moving clones.
2030 (get_indirect_callee_fndecl): New function.
2031 (expand_call_inline): If callee declaration is not apprent from
2032 the statement, try calling get_indirect_callee_fndecl. Do not
2033 issue warnings or call sorry when not inlinings an indirect edge.
2034 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
2036 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
2037 bit more frandly to matching.
2038 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
2039 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
2040 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
2042 2008-07-23 Michael Meissner <gnu@the-meissners.org>
2045 * opth-gen.awk: Suppress function specific features when building
2047 * optc-gen.awk: Ditto.
2049 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2052 * diagnostic.c (pedwarn): Add opt parameter.
2054 * c-tree.h (pedwarn_init): Add opt parameter.
2055 (pedwarn_c90): Likewise.
2056 (pedwarn_c99): Likewise.
2057 * c-errors.c (pedwarn_c99): Likewise.
2058 (pedwarn_c90): Likewise.
2059 * toplev.h (pedwarn): Update declaration.
2060 (pedwarn0): Declare.
2061 * c-lex.c: All calls to pedwarn changed.
2062 * builtins.c: All calls to pedwarn changed.
2063 * toplev.c: All calls to pedwarn changed.
2064 * c-decl.c: All calls to pedwarn changed.
2065 * c-typeck.c: All calls to pedwarn changed.
2066 * c-common.c: All calls to pedwarn changed.
2067 * c-parser.c: All calls to pedwarn changed.
2069 2008-07-23 Michael Meissner <gnu@the-meissners.org>
2070 Karthik Kumar <karthikkumar@gmail.com>
2072 * attribs.c (file scope): Include c-common.h.
2073 (decl_attributes): Add support for #pragma GCC optimize and
2076 * targhooks.c (default_can_inline_p): New function that is the
2077 default for the TARGET_CAN_INLINE_P target hook.
2079 * targhooks.h (default_can_inline_p): Add declaration.
2081 * tree.c (cl_optimization_node): New static tree for building
2082 OPTIMIZATION_NODE tree.
2083 (cl_target_option_node): New static tree for building
2084 TARGET_OPTION_NODE tree.
2085 (cl_option_hash_table): New hash table for hashing
2086 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2087 (cl_option_hash_hash): New function to provide the hash value for
2088 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2089 (cl_option_hash_eq): New function to provide an equality test for
2090 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2091 (tree_code_size): Add support for OPTIMIZATION_NODE and
2092 TARGET_OPTION_NODE trees.
2093 (tree_code_structure): Add support for OPTIMIZATION_NODE and
2094 TARGET_OPTION_NODE trees.
2095 (build_optimization_node): Build a tree that has all of the
2096 current optimization options.
2097 (build_target_option_node): Build a tree that has the target
2098 options that might be changed on a per function basis.
2100 * tree.h (file scope): Include options.h.
2101 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
2102 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
2103 (TREE_OPTIMIZATION): Ditto.
2104 (TREE_TARGET_SPECIFIC): Ditto.
2105 (struct tree_function_decl): Add fields for remembering the
2106 current optimization options and target specific options.
2107 (struct tree_optimization_option): New tree variant that remembers
2108 the optimization options.
2109 (struct tree_target_option): New tree variant that remembers the
2110 target specific flags that might change for compiling a particular
2112 (union tree_node): Include tree_optimization_option and
2113 tree_target_option fields.
2114 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
2115 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
2116 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
2117 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
2118 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
2119 optimization and target options.
2120 (optimization_default_node): New macro to refer to global_trees
2122 (optimization_current_node): Ditto.
2123 (optimization_cold_node): Ditto.
2124 (optimization_hot_node): Ditto.
2125 (target_option_default_node): Ditto.
2126 (target_option_current_node): Ditto.
2127 (current_option_pragma): Ditto.
2128 (current_optimize_pragma): Ditto.
2130 * target.h (struct gcc_target): Add valid_option_attribute_p,
2131 target_option_save, target_option_restore, target_option_print,
2132 target_option_pragma_parse, and can_inline_p hooks.
2134 * toplev.h (parse_optimize_options): Add declaration.
2135 (fast_math_flags_struct_set_p): Ditto.
2137 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
2138 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
2141 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
2142 tree_can_inline_p hook to see if one function can inline another.
2143 (cgraph_decide_inlining): Ditto.
2144 (cgraph_decide_inlining_incrementally): Ditto.
2146 * opts.c (decode_options): Add support for running multiple times
2147 to allow functions with different target or optimization options
2148 than was specified on the command line.
2149 (fast_math_flags_struct_set_p): New function that is similar to
2150 fast_math_flags_set_p, except it uses the values in the
2151 cl_optimization structure instead of global variables.
2153 * optc-gen.awk: Add support for TargetSave to allow a back end to
2154 declare new fields that need to be saved when using function
2155 specific options. Include flags.h and target.h in the options.c
2156 source. Add support for Save to indicate which options can be set
2157 for individual functions. Generate cl_optimize_save,
2158 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
2159 cl_target_option_restore, cl_target_option_print functions to
2160 allow functions to use different optimization or target options.
2162 * opt-functions.awk (var_type_struct): Return the type used for
2163 storing the field in a structure.
2165 * opth-gen.awk: Add support for TargetSave to allow a back end to
2166 declare new fields that need to be saved when using function
2167 specific options. Add support for Save to indicate which options
2168 can be set for individual functions. Only generate one extern for
2169 Mask fields. Generate cl_optimization and cl_target_option
2170 structures to remember optimization and target options.
2172 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
2173 collecting new tree nodes.
2174 (TS_TARGET_OPTION): Ditto.
2176 * c-decl.c (merge_decls): Merge function specific target and
2177 optimization options.
2179 * function.c (invoke_set_current_function_hook): If the function
2180 uses different optimization options, change the global variables
2183 * coretypes.h (struct cl_optimization): Add forward reference.
2184 (struct cl_target_option): Ditto.
2186 * c-pragma.c (option_stack): New static vector to remember the
2187 current #pragma GCC option stack.
2188 (handle_pragma_option): New function to support #pragma GCC option
2189 to change target options.
2190 (optimize_stack): New static vector to remember the current
2191 #pragma GCC optimize stack.
2192 (handle_pragma_optimize): New function to support #pragma GCC
2193 optimize to change optimization options.
2194 (init_pragma): Add support for #pragma GCC optimize and #pragma
2197 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
2198 optimization options.
2199 (TARGET_OPTION_NODE): New tree code for remembering certain target
2202 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
2203 TARGET_OPTION_NODE trees.
2205 * common.opt (-O): Add Optimization flag.
2207 (-fmath-errno): Ditto.
2208 (-falign-functions): Add UInteger flag to make sure flag gets full
2209 int in cl_optimization structure.
2210 (-falign-jumps): Ditto.
2211 (-falign-labels): Ditto.
2212 (-falign-loops): Ditto.
2213 (-fsched-stalled-insns): Ditto.
2214 (-fsched-stalled-insns-dep): Ditto.
2216 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
2218 (TARGET_OPTION_SAVE): Ditto.
2219 (TARGET_OPTION_RESTORE): Ditto.
2220 (TARGET_OPTION_PRINT): Ditto.
2221 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
2222 (TARGET_CAN_INLINE_P): Ditto.
2223 (TARGET_INITIALIZER): Add new hooks.
2225 * tree-inline.c (tree_can_inline_p): New function to determine
2226 whether one function can inline another. Check if the functions
2227 use compatible optimization options, and also call the backend
2230 * tree-inline.h (tree_can_inline_p): Add declaration.
2232 * c-common.c (c_common_attribute): Add support for option and
2233 optimize attributes.
2234 (handle_option_attribute): Add support for the option attribute to
2235 allow the user to specify different target options for compiling a
2237 (handle_optimize_attribute): Add support for the optimize
2238 attribute to allow the user to specify different optimization
2239 options for compiling a specific function.
2240 (handle_hot_attribute): Turn on -O3 optimization for this one
2241 function if it isn't the default optimization level.
2242 (handle_cold_attribute): Turn on -Os optimization for this one
2243 function if it insn't the default optimization.
2244 (const_char_p): New const char * typedef.
2245 (optimize_args): New static vector to remember the optimization
2247 (parse_optimize_options): New function to set up the optimization
2248 arguments from either the optimize attribute or #pragma GCC optimize.
2250 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
2251 (builtin_define_std): Ditto.
2253 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
2254 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
2255 (x86_64-*-*): Ditto.
2257 * Makefile.in (TREE_H): Add options.h.
2258 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
2260 * doc/extend.texi (option attribute): Document new attribute.
2261 (optimize attribute): Ditto.
2262 (hot attribute): Document hot attribute sets -O3.
2263 (cold attribute): Document cold attribute sets -Os.
2264 (#pragma GCC option): Document new pragma.
2265 (#pragma GCC optimize): Ditto.
2267 * doc/options.texi (TargetSave): Document TargetSave syntax.
2268 (UInteger): Document UInteger must be used for certain flags.
2269 (Save): Document Save option to create target specific options
2270 that can be saved/restored on a function specific context.
2272 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
2273 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
2275 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
2276 (TARGET_OPTION_SAVE): Ditto.
2277 (TARGET_OPTION_RESTORE): Ditto.
2278 (TARGET_OPTION_PRINT): Ditto.
2279 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
2280 (TARGET_CAN_INLINE_P): Ditto.
2282 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
2284 (-mfpmath=both): Ditto.
2286 2008-07-23 Michael Meissner <gnu@the-meissners.org>
2287 Karthik Kumar <karthikkumar@gmail.com>
2289 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
2290 (TARGET_POPCNT): Ditto.
2291 (TARGET_SAHF): Ditto.
2292 (TARGET_AES): Ditto.
2293 (TARGET_PCLMUL): Ditto.
2294 (TARGET_CMPXCHG16B): Ditto.
2295 (TARGET_RECIP): Move switch into target_flags.
2296 (TARGET_FUSED_MADD): Ditto.
2297 (ix86_arch_features): Make an unsigned char type.
2298 (ix86_tune_features): Ditto.
2299 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
2300 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
2301 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
2303 * config/i386/i386.opt (arch): New TargetSave field to define
2304 fields that need to be saved for function specific option support.
2307 (branch_cost): Ditto.
2308 (ix86_isa_flags_explicit): Ditto.
2309 (tune_defaulted): Ditto.
2310 (arch_specified): Ditto.
2311 (-m128-long-double): Add Save flag to save option for target
2312 specific option support.
2314 (-maccumulate-outgoing-args): Ditto.
2315 (-malign-double): Ditto.
2316 (-malign-stringops): Ditto.
2317 (-mfancy-math-387): Ditto.
2318 (-mhard-float): Ditto.
2320 (-minline-all-stringops): Ditto.
2321 (-minline-stringops-dynamically): Ditto.
2322 (-mms-bitfields): Ditto.
2323 (-mno-align-stringops): Ditto.
2324 (-mno-fancy-math-387): Ditto.
2325 (-mno-push-args): Ditto.
2326 (-mno-red-zone): Ditto.
2327 (-mpush-args): Ditto.
2328 (-mred-zone): Ditto.
2330 (-msseregparm): Ditto.
2331 (-mstack-arg-probe): Ditto.
2346 (-mrecip): Move flag into target_flags.
2348 (-mno-fused-madd): Ditto.
2349 (-mfused-madd): Ditto.
2350 (-mabm): Move flag into ix86_isa_flags.
2357 * config/i386/i386-c.c: New file for #pragma support.
2358 (ix86_target_macros_internal): New function to #define or #undef
2359 target macros based when the user uses the #pragma GCC option to
2360 change target options.
2361 (ix86_pragma_option_parse): New function to add #pragma GCC option
2363 (ix86_target_macros): Move defining the target macros here from
2364 TARGET_CPU_CPP_BUILTINS in i386.h.
2365 (ix86_register_pragmas): Register the #pragma GCC option hook. If
2366 defined, initialize any subtarget #pragmas.
2368 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
2369 REGISTER_TARGET_PRAGMAS.
2371 * config/i386/t-i386: New file for x86 dependencies.
2372 (i386.o): Make dependencies mirror the include files used.
2373 (i386-c.o): New file, add dependencies.
2375 * config/i386/i386-protos.h (override_options): Add bool argument.
2376 (ix86_valid_option_attribute_tree): Add declaration.
2377 (ix86_target_macros): Ditto.
2378 (ix86_register_macros): Ditto.
2380 * config/i386/i386.c (ix86_tune_features): Move initialization of
2381 the target masks to initial_ix86_tune_features to allow functions
2382 to have different target options. Make type unsigned char,
2383 instead of unsigned int.
2384 (initial_ix86_tune_features): New static vector to hold processor
2385 masks for the tune variables.
2386 (ix86_arch_features): Move initialization of the target masks to
2387 initial_ix86_arch_features to allow functions to have different
2388 target options. Make type unsigned char, instead of unsigned int.
2389 (initial_ix86_arch_features): New static vector to hold processor
2390 masks for the arch variables.
2391 (enum ix86_function_specific_strings): New enum to describe the
2392 string options used for attribute((option(...))).
2393 (ix86_target_string): New function to return a string that
2394 describes the target options.
2395 (ix86_debug_options): New function to print the current options in
2397 (ix86_function_specific_save): New function hook to save the
2398 function specific global variables in the cl_target_option structure.
2399 (ix86_function_specific_restore): New function hook to restore the
2400 function specific variables from the cl_target_option structure to
2401 the global variables.
2402 (ix86_function_specific_print): New function hook to print the
2403 target specific options in the cl_target_option structure.
2404 (ix86_valid_option_attribute_p): New function hook to validate
2405 attribute((option(...))) arguments.
2406 (ix86_valid_option_attribute_tree): New function that is common
2407 code between attribute((option(...))) and #pragma GCC option
2408 support that parses the options and returns a tree holding the options.
2409 (ix86_valid_option_attribute_inner_p): New helper function for
2410 ix86_valid_option_attribute_tree.
2411 (ix86_can_inline_p): New function hook to decide if one function
2412 can inline another on a target specific basis.
2413 (ix86_set_current_function); New function hook to switch target
2414 options if the user used attribute((option(...))) or #pragma GCC
2416 (ix86_tune_defaulted): Move to static file scope from
2418 (ix86_arch_specified): Ditto.
2419 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
2421 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
2422 (OPTION_MASK_ISA_ABM_SET): Ditto.
2423 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
2424 (OPTION_MASK_ISA_CX16_SET): Ditto.
2425 (OPTION_MASK_ISA_SAHF_SET): Ditto.
2426 (OPTION_MASK_ISA_AES_UNSET): Ditto.
2427 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
2428 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
2429 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
2430 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
2431 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
2432 (struct ptt): Move to static file scope from override_options.
2433 (processor_target_table): Ditto.
2435 (ix86_handle_option): Add support for options that are now isa options.
2436 (override_options): Add support for declaring functions that
2437 support different target options than were specified on the
2438 command line. Move struct ptt, processor_target_table, cpu_names,
2439 ix86_tune_defaulted, ix86_arch_specified to static file scope.
2440 Add bool argument. Fix up error messages so the appropriate error
2441 is given for either command line or attribute.
2442 (ix86_previous_fndecl): New static to remember previous function
2443 declaration to see if we need to change target options.
2444 (ix86_builtins_isa): New array to record the ISA of each builtin
2446 (def_builtin): Always create the builtin function, even if the
2447 current ISA doesn't support it.
2448 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
2449 tests for those builtins.
2450 (ix86_init_builtins): Remove TARGET_MMX test for calling
2451 ix86_init_mmx_sse_builtins.
2452 (ix86_expand_builtin): If the current ISA doesn't support a given
2453 builtin, signal an error.
2454 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
2455 (TARGET_SET_CURRENT_FUNCTION): Ditto.
2456 (TARGET_OPTION_SAVE): Ditto.
2457 (TARGET_OPTION_RESTORE): Ditto.
2458 (TARGET_OPTION_PRINT): Ditto.
2459 (TARGET_CAN_INLINE_P): Ditto.
2461 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
2463 * c-typeck.c (build_external_ref): Don't call assemble_external.
2464 * final.c (output_operand): Call assemble_external.
2466 2008-07-21 DJ Delorie <dj@redhat.com>
2468 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
2469 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2471 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2473 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
2474 original insn and splitter contents into ...
2475 ("*div<mode>3_fast"): ... this new pattern. Enable only if
2476 flag_unsafe_math_optimizations. Add dummy scratch register.
2477 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
2478 !flag_unsafe_math_optimizations. Returns number with next
2479 highest magnitude if this is still less or equal to the true
2480 quotient in magnitude.
2482 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
2484 * Makefile.in: Replace toplev.h with TOPLEV_H.
2485 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
2486 * c-lex.c (fe_file_change): Don't set in_system_header.
2487 * c-parser.c (c_token): Remove in_system_header.
2488 (c_lex_one_token): Don't set in_system_header.
2489 (c_parser_set_source_position_from_token): Don't set in_system_header.
2490 * diagnostic.c (diagnostic_report_diagnostic): Use location from
2493 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
2494 * flags.h (in_system_header): Remove.
2495 * function.c (saved_in_system_header): Remove.
2496 (push_cfun): Don't set in_system_header.
2497 (pop_cfun): Don't set in_system_header.
2498 (push_struct_function): Don't set in_system_header.
2499 * input.h (expanded_location): Add sysp.
2500 (in_system_header_at): New.
2501 (in_system_header): New.
2502 * toplev.c (in_system_header): Remove.
2503 * toplev.h: Include input.h
2505 * tree-cfg.c (execute_warn_function_return): Call warning_at.
2506 * tree-ssa.c (warn_uninit): Call warning_at.
2507 (warn_uninitialized_var): Update calls to warn_uninit.
2508 (warn_uninitialized_phi): Update calls to warn_uninit.
2509 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
2510 (expand_location): Initialize xloc.sysp.
2511 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
2512 (tree_decl_with_vis): Remove in_system_header_flag.
2514 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2517 * recog.c (asm_operand_ok): Change the order of the extra
2518 memory constraint checks.
2520 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
2523 * tree-switch-conversion.c (build_one_array): Call
2524 varpool_mark_needed_node and varpool_finalize_decl
2525 instead of assemble_variable.
2527 2008-07-19 Jan Hubicka <jh@suse.cz>
2529 * cgraph.c (cgraph_add_new_function): Do early local passes.
2530 * tree-nrv.c (gate_pass_return_slot): New gate.
2531 (pass_nrv): Add the gate.
2532 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
2534 (coalesce_ssa_name): Coalesce SSA names.
2535 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
2536 not optimizing so unused user vars remains visible.
2537 * common.opt (flag_tree_ter): Always enable by default.
2538 * tree-ssa-ter.c: Include flags.h
2539 (is_replaceable_p): Check that locations match; when aliasing is missing
2540 be conservative about loads.
2541 * tree-optimize.c (gate_init_datastructures): Remove.
2542 (pass_init_datastructures): New.
2543 * passes.c: Reorder passes so we always go into SSA.
2545 2008-07-19 Jan Hubicka <jh@suse.cz>
2547 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
2548 * doc/invoke.texi (--combine): Likewise.
2549 (-finline-functions-called-once): Update levels when enabled.
2550 (-funit-at-a-time): Document new behaviour.
2551 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
2552 -fno-section-anchors when disabled explicitly.
2553 (inline params): They are not ignored now.
2554 (precompiled headers): Remove unit-at-a-time as being incompatible.
2555 * opts.c (decode_options): Handle unit-at-a-time as alias;
2556 imply -fno-section-anchors when toplevel reorder is disabled
2558 * common.opt (ftoplevel-reorder): Set default value to 2.
2559 (funit-at-a-time): Set default value to 1.
2560 * config/rs6000/rs6000.c (optimization_options): Set section anchors
2563 2008-07-19 Jan Hubicka <jh@suse.cz>
2565 * builtins.c (expand_builtin_int_roundingfn,
2566 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
2569 2008-07-19 Richard Guenther <rguenther@suse.de>
2572 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
2573 * tree-ssa-sccvn.c (get_constant_value_id): New function.
2574 * tree-ssa-pre.c (get_expr_value_id): For newly created
2575 constant value-ids make sure to add the expression to its
2578 2008-07-19 Jakub Jelinek <jakub@redhat.com>
2581 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
2582 return value of the builtin is ignored.
2584 2008-07-19 Olivier Hainque <hainque@adacore.com>
2586 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
2587 bits, a C conformant malloc implementation has to provide.
2588 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
2590 2008-07-19 Joseph Myers <joseph@codesourcery.com>
2594 * reload.c (find_reloads_subreg_address): Only reload address if
2595 reloaded == 0, not for reloaded != 1.
2598 2008-07-16 Joseph Myers <joseph@codesourcery.com>
2599 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2600 (m32c_legitimate_address_p): Handle "++rii" addresses created by
2601 m32c_legitimize_reload_address.
2603 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2604 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2605 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2607 2008-07-19 Olivier Hainque <hainque@adacore.com>
2609 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
2610 argument, saying whether nested array are to be collapsed
2611 into a single array type DIE with multiple subscripts.
2612 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
2613 issues, centralize the nested array types collapsing control and
2614 disable the transformation for Ada.
2616 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
2619 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
2621 (x86_64_shift_adj_2): New expander.
2622 (x86_64_shift_adj_3): Ditto.
2623 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
2624 to split TImode operands.
2625 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
2626 (ix86_split_lshr): Ditto.
2628 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
2630 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
2631 and __CHAR32_TYPE__.
2632 * c-typeck.c (digest_init): Support char16_t and char32_t.
2633 (set_nonincremental_init_from_string): Idem.
2635 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
2638 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
2639 PREFERRED_STACK_BOUNDARY.
2640 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2642 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
2645 * function.c (locate_and_pad_parm): Cap boundary earlier.
2647 2008-07-17 Julian Brown <julian@codesourcery.com>
2649 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
2650 no-op for targets which don't use DLLs.
2652 2008-07-17 Martin Jambor <mjambor@suse.cz>
2654 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
2655 that nodes are relevant by examining the node->analyzed flag.
2656 (ipcp_init_stage): Check which nodes are relevant, assert that the
2657 relevant ones are also required.
2658 (ipcp_propagate_stage): Check on the side arrays are properly
2660 (ipcp_print_all_jump_functions): Make sure not to touch any node
2661 that is not analyzed or an edge that does not have a corresponding
2662 entry in the on-the-side vectors.
2663 (ipcp_function_scale_print): Likewise.
2664 (ipcp_update_callgraph): Check that the node is relevant.
2665 (ipcp_insert_stage): Check that the node is relevant. Check there is
2666 an info for every node and edge.
2667 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
2668 (ipa_print_all_tree_maps): Likewise and a new variable info.
2669 (ipa_print_all_params_modified): Likewise.
2670 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
2672 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
2675 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
2677 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
2679 PR rtl-optimization/36753
2680 * fwprop.c (use_killed_between): Don't shortcut
2681 single-definition global registers.
2683 2008-07-16 Jan Hubicka <jh@suse.cz>
2685 * cgraph.h (varpool_empty_needed_queue): Declare.
2686 * cgraphunit.c (output_in_order): Mark all variables as needed;
2688 * varpool.c (varpool_assemble_node): Update debug queue.
2689 (varpool_assemble_pending_decls): Don't do it here.
2690 (varpool_empty_needed_queue): New function.
2692 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2694 * recog.c (peephole2_optimize): Fix formatting.
2696 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2698 * c-pch.c (get_ident): Avoid C++ keywords.
2699 * combine-stack-adj.c (single_set_for_csa): Likewise.
2700 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
2701 output_asm_insn): Likewise.
2702 * reload.c (push_secondary_reload, find_reusable_reload,
2703 push_reload, combine_reloads, find_reloads,
2704 debug_reload_to_stream): Likewise.
2705 * reload.h (struct reload): Likewise.
2706 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
2707 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
2708 emit_output_reload_insns): Likewise.
2709 * targhooks.c (default_secondary_reload): Likewise.
2710 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
2712 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2714 * recog.c (validate_change_1, validate_change,
2715 validate_unshare_change, validate_replace_rtx_1, struct
2716 funny_match, constrain_operands, peephole2_optimize): Avoid C++
2718 * reload.c (push_secondary_reload, secondary_reload_class,
2719 scratch_reload_class, find_valid_class, find_reusable_reload,
2720 push_reload, find_dummy_reload, find_reloads_address_1,
2721 find_reloads_address_part, find_equiv_reg): Likewise.
2722 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
2723 choose_reload_regs): Likewise.
2724 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
2726 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
2727 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2728 * sched-rgn.c (concat_INSN_LIST): Likewise.
2729 * stor-layout.c (mode_for_size, mode_for_size_tree,
2730 smallest_mode_for_size): Likewise.
2732 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2734 * cfg.c (dump_reg_info): Avoid C++ keywords.
2735 * dwarf2asm.c (dw2_force_const_mem,
2736 dw2_asm_output_encoded_addr_rtx): Likewise.
2737 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
2738 * expmed.c (expand_shift): Likewise.
2739 * global.c (find_reg): Likewise.
2740 * graph.c (draw_edge): Likewise.
2741 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
2742 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
2743 widen_clz, widen_bswap, expand_parity, expand_unop,
2744 emit_cmp_and_jump_insn_1): Likewise.
2745 * postreload.c (reload_cse_simplify_operands): Likewise.
2746 * ra.h (add_neighbor): Likewise.
2747 * reg-stack.c (remove_regno_note, change_stack): Likewise.
2748 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
2749 record_reg_classes, copy_cost, record_address_regs,
2750 invalid_mode_change_p): Likewise.
2751 * regrename.c (regrename_optimize, scan_rtx_reg,
2752 dump_def_use_chain, find_oldest_value_reg,
2753 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
2755 2008-07-16 David Edelsohn <edelsohn@gnu.org>
2757 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
2758 MASK_POWERPC64 for power4 in previous commit.
2760 2008-07-16 Olivier Hainque <hainque@adacore.com>
2762 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
2763 instead of bare conversion to cast const-ness away.
2765 2008-07-16 Anatoly Sokolov <aesok@post.ru>
2767 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
2768 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
2769 * config/xtensa/xtensa.c (xtensa_function_value): New function.
2770 (TARGET_FUNCTION_VALUE): Define.
2772 2008-07-16 David Edelsohn <edelsohn@gnu.org>
2774 * config/rs6000/rs6000.c (processor_target_table): Add
2775 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
2777 2008-07-16 Joseph Myers <joseph@codesourcery.com>
2780 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2781 (m32c_legitimate_address_p): Handle "++rii" addresses created by
2782 m32c_legitimize_reload_address.
2784 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
2786 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
2787 DECL_IN_SYSTEM_HEADER in sync.
2789 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
2791 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
2792 * tree-ssa-pre.c (pre_expr_eq): Ditto
2793 (get_constant_for_value_id): Take a type as an argument.
2794 (fully_constant_expression): Pass in type.
2795 (find_or_generate_expression): Short circuit constant case.
2796 (create_expression_by_pieces): Remove special casing of
2798 (do_regular_insertion): Short circuit constant case.
2799 (do_partial_partial_insertion): Ditto.
2801 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2804 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
2806 2008-07-15 Bob Wilson <bob.wilson@acm.org>
2808 * config/xtensa/libgcc-xtensa.ver: New file.
2809 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
2811 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2813 * df-problems.c (df_set_note): Avoid C++ keywords.
2814 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
2815 * dse.c (record_store, remove_useless_values): Likewise.
2816 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
2817 gen_reg_rtx_offset, operand_subword, change_address_1,
2818 change_address, adjust_address_1, offset_address,
2819 widen_memory_access, emit_copy_of_insn_after): Likewise.
2820 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
2821 * fwprop.c (should_replace_address, propagate_rtx_1,
2822 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
2824 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
2825 gcse_emit_move_after, update_ld_motion_stores): Likewise.
2826 * lcm.c (compute_insert_delete, pre_edge_lcm,
2827 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
2828 * lower-subreg.c (resolve_reg_notes): Likewise.
2829 * mode-switching.c (optimize_mode_switching): Likewise.
2831 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2833 * bt-load.c (add_btr_def, migrate_btr_def,
2834 branch_target_load_optimize): Avoid C++ keywords.
2835 * caller-save.c (insert_restore, insert_save, insert_one_insn):
2837 * combine.c (subst, simplify_set, make_extraction,
2838 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
2839 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
2840 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
2842 2008-07-15 Richard Guenther <rguenther@suse.de>
2845 * c-common.c (strict_aliasing_warning): Do not warn for
2846 TYPE_REF_CAN_ALIAS_ALL pointers.
2847 (c_common_get_alias_set): may_alias types are not special.
2848 * tree.c (build_pointer_type_for_mode): Look up the may_alias
2849 attribute and set can_ref_all accordingly.
2850 (build_reference_type_for_mode): Likewise.
2851 * doc/extend.texi (may_alias): Clarify.
2853 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2856 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2857 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2859 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2862 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2863 gcc_assert, instead call output_operand_lossage.
2865 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
2867 * builtins.c (std_canonical_va_list): Treat structure based
2870 2008-07-15 Ben Elliston <bje@au.ibm.com>
2872 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2874 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
2876 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2879 2008-07-14 Jan Hubicka <jh@suse.cz>
2881 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2882 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2883 fix predicates and constraints.
2884 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2885 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2887 2008-07-14 Doug Kwan <dougkwan@google.com>
2889 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2890 additional option file arm/eabi.opt.
2891 * config/arm/eabi.h (File): New configuration file for EABI targets.
2892 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2893 SUBSUBTARGET_EXTRA_SPECS.
2894 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2895 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2896 from STARTFILE_SPEC so that it can be referenced in an override.
2897 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2898 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2899 can be referenced in an override.
2900 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2901 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2902 so that it can be referenced in an override.
2903 (LINK_SPEC): Use BPABI_LINK_SPEC.
2904 * config/arm/eabi.opt (File): New.
2906 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2908 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2909 (FIXED_VALUE_H): New variable.
2910 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2911 input.h, fixed-value.h.
2912 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2913 (BASIC_BLOCK_H): Use $(BITMAP_H).
2914 (FUNCTION_H): Add varray.h.
2915 (IPA_REFERENCE_H): Use $(BITMAP_H).
2916 (CGRAPH_H): Add $(BASIC_BLOCK_H).
2917 (DF_H): Use $(BITMAP_H).
2918 (GGC_H): Add statistics.h.
2920 (INSN_ATTR_H): Use it.
2921 (SYSTEM_H): Add safe-ctype.h, filenames.h.
2923 (SYMTAB_H): Add $(OBSTACK_H).
2924 (CPP_INTERNAL_H): New.
2925 (TREE_DUMP_H): Add tree-pass.h.
2926 (TREE_FLOW_H): Use $(BITMAP_H)
2927 (PRETTY_PRINT_H): Use $(INPUT_H).
2928 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2931 (many object files): Fix lots of header dependencies throughout.
2933 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2935 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2937 (s-gtyp-input): Use them to write tmp-gi.list.
2938 (echo_to_gi.list): Remove.
2940 2008-07-14 Richard Guenther <rguenther@suse.de>
2942 * tree-ssa-sccvn.c (pre_info): Remove.
2943 (switch_to_PRE_table): Likewise.
2944 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
2945 (set_hashtable_value_ids): Do not create value-ids for the
2947 (run_scc_vn): Remove double test. Remove bogus special-case
2948 in value-number printing.
2949 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2950 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2952 * tree-flow-inline.h (get_value_handle): Remove.
2953 * tree-flow.h (get_value_handle): Remove.
2955 2008-07-14 Martin Jambor <mjambor@suse.cz>
2957 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2958 in which we generate arithmetics is not a subrange.
2960 2008-07-14 Martin Jambor <mjambor@suse.cz>
2962 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2964 2008-07-14 Richard Guenther <rguenther@suse.de>
2966 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2968 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
2971 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2972 reload for symbol refs moved to r0 with -fPIC.
2973 (legitimize_pic_address): Use the target register as temporary
2975 (emit_symbolic_move): Adjust comment.
2976 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2979 2008-07-14 Ben Elliston <bje@au.ibm.com>
2981 * c-common.h (C_CPP_HASHNODE): New macro.
2982 * coretypes.h (struct cpp_token): Forward declare.
2983 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2984 the context-sensitive keyword method.
2985 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2986 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2987 expand_bool_pixel): New.
2988 (altivec_categorize_keyword): New function.
2989 (init_vector_keywords): New function.
2990 (rs6000_macro_to_expand): Likewise.
2991 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2992 compiling an ISO C dialect.
2994 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
2996 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2997 (create_expression_by_pieces): Fix typo.
2998 (do_regular_insertion): Use debug counter here too.
3000 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
3003 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
3004 CONST_OK_FOR_LETTER_P. All port-local users changed.
3005 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
3006 implement Kp matching power-of-two.
3007 (CONSTRAINT_LEN): Define to match.
3008 * config/cris/cris.md: Replace all use of constraint K with Kc.
3009 ("*btst*): Use Kp for operand 0 of last alternative.
3011 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3014 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
3017 2008-07-13 Jan Hubicka <jh@suse.cz>
3019 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
3022 2008-07-13 Richard Guenther <rguenther@suse.de>
3025 * langhooks.c (lhd_print_error_function): Deal with recursive
3028 2008-07-12 Jan Hubicka <jh@suse.cz>
3030 * cgraph.c (assembler_name_hash): New static var.
3031 (hash_node_by_assembler_name, eq_assembler_name): New.
3032 (cgraph_node_for_asm): Use hashtable.
3033 (cgraph_remove_node): Maintain hashtable.
3034 (change_decl_assembler_name): Sanity check that names are not changing
3035 after aliasing was processed.
3036 * cgraph.h (varpoon_node): Add next GGC marker.
3037 * tree.c (decl_assembler_name_equal): Constify.
3038 (decl_assembler_name_hash): New.
3039 * tree.h (decl_assembler_name_equal): Constify.
3040 (decl_assembler_name_hash): Update.
3042 2008-07-12 David Daney <ddaney@avtrex.com>
3044 * config/mips/driver-native.c (host_detect_local_cpu): Handle
3047 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3049 * doc/md.texi: Document the MIPS "v" constraint.
3050 * config/mips/mips.h (reg_class): Revert last change.
3051 (REG_CLASS_NAMES): Likewise.
3052 (REG_CLASS_CONTENTS): Likewise.
3053 * config/mips/mips.c (mips_regno_to_class): Likewise.
3054 * config/mips/constraints.md (v): Likewise, but add documentation.
3055 Add a comment to say that this constraint should not be used in
3058 2008-07-11 DJ Delorie <dj@redhat.com>
3060 * config/h8300/h8300.md (length): Fix branch offset limit.
3062 2008-07-11 Anatoly Sokolov <aesok@post.ru>
3064 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
3065 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
3066 (avr_hard_regno_scratch_ok): New function.
3067 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
3068 * config/avr/avr.md (all peepholes that request a scratch register):
3069 Remove avr_peep2_scratch_safe use.
3071 2008-07-11 Tom Tromey <tromey@redhat.com>
3072 Ian Lance Taylor <iant@google.com>
3074 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
3075 (struct c_common_resword): Define.
3076 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
3077 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
3078 (c_common_reswords, num_c_common_reswords): Declare.
3079 * c-common.c (c_common_reswords): New global const array.
3080 (num_c_common_reswords): New const int.
3081 * c-parser.c (struct resword, reswords): Don't define.
3082 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
3083 (c_parse_init): Clarify mask code. Use c_common_reswords rather
3084 than reswords. If warning about C++ keywords, give them a special
3086 (c_lex_one_token): Warn about C++ keywords. Call
3087 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
3088 (c_parser_external_declaration): Look for RID_xxx rather than
3089 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
3090 (c_parser_statement_after_labels): Likewise.
3091 (c_parser_objc_class_instance_variables): Likewise.
3092 (c_parser_objc_class_declaration): Likewise.
3093 (c_parser_objc_try_catch_statement): Likewise.
3094 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
3095 (declspecs_add_type): Likewise.
3097 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
3099 * ggc-page.c (alloc_page):
3100 Substituting xmalloc, xcalloc with
3101 XNEWVEC and XCNEWVAR macros which add the
3104 2008-07-11 Richard Guenther <rguenther@suse.de>
3106 PR tree-optimization/36765
3107 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
3108 aliases from HEAP vars to SMTs.
3110 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3112 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
3113 * configure.ac (loose_warn): Move -Wc++-compat from here...
3114 (strict_warn): ...to here.
3115 * configure: Regenerate.
3117 2008-07-10 Joseph Myers <joseph@codesourcery.com>
3119 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
3120 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
3121 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
3122 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
3123 excluding more specific h8300-*-* and sh-*-* targets.
3125 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
3127 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
3129 (execute_pre): Call loop_optimizer_finalize in early exit.
3131 2008-07-10 Jakub Jelinek <jakub@redhat.com>
3134 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
3135 uids in the bitmap, not just VAR_DECL uids.
3137 PR rtl-optimization/36419
3138 * combine-stack-adj.c (adjust_frame_related_expr): New function.
3139 (combine_stack_adjustments_for_block): Call it if needed. Delete
3141 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
3142 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
3143 prologue sp adjustment.
3145 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
3148 * opts.c (print_ignored_options): Report postponed diagnostics for
3149 unknown -Wno-* options as warnings, not errors.
3150 (postpone_unknown_option_error): Renamed to...
3151 (postpone_unknown_option_warning): ... this.
3153 2008-07-09 Doug Kwan <dougkwan@google.com>
3156 2008-07-08 Doug Kwan <dougkwan@google.com>
3158 * config/arm/arm.opt (mandroid): New option.
3159 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
3160 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
3162 (CC1PLUS_SPEC): Same.
3164 (STARTFILE_SPEC): Same.
3165 (ENDFILE_SPEC): Same.
3166 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
3169 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
3172 * config/mips/mips.h (reg_class): Remove V1_REG.
3173 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3174 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
3176 (mips_get_tp): New function.
3177 (mips_legitimize_tls_address): Use it.
3178 * config/mips/constraints.md (v): Delete.
3179 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
3180 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
3181 After reload, split into a move and ...
3182 (*tls_get_tp_<mode>_split): ...this new instruction.
3184 2008-07-09 David Daney <ddaney@avtrex.com>
3186 * config/mips/driver-native.c: Include coretypes.h and tm.h.
3188 2008-07-09 Jakub Jelinek <jakub@redhat.com>
3190 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
3191 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
3193 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
3194 htab_delete should be called. Don't free c.
3195 (lookup_tmp_var): Create temp_htab lazily.
3196 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
3197 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
3199 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
3200 lower_omp_ordered, lower_omp_critical, lower_omp_for,
3201 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
3202 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
3203 * tree-sra.c (generate_element_init): Likewise.
3204 * tree-mudflap.c (execute_mudflap_function_ops,
3205 execute_mudflap_function_decls): Likewise.
3206 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
3207 * tree-gimple.h (struct gimplify_ctx): New type.
3208 (push_gimplify_context): Adjust prototype.
3210 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
3212 * tree-ssa-pre.c (phi_translate_1): Update placement of
3215 2008-07-09 Anatoly Sokolov <aesok@post.ru>
3217 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
3218 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
3219 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
3220 * targhooks.c (default_hard_regno_scratch_ok): New function.
3221 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
3222 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
3223 * recog.c: Include "target.h".
3224 (peep2_find_free_register): Add check for global regs. Add target
3226 * Makefile.in (recog.o): Depend on target.h.
3228 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
3230 * config/sh/sh.c (sh_canonical_va_list_type): New.
3231 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
3233 2008-07-09 Raksit Ashok <raksit@google.com>
3235 * doc/invoke.texi (Option Summary): Mention new option
3236 -Wdisallowed-function-list=...
3237 (Warning Options): Document -Wdisallowed-function-list=...
3238 * common.opt (Wdisallowed-function-list=): New flag.
3239 * flags.h (warn_disallowed_functions): External definition of new
3240 boolean warning flag.
3241 (warn_if_disallowed_function_p): Declare new function.
3242 * opts.c (warning_disallowed_functions): New static variable.
3243 (warn_disallowed_functions): New boolean warning flag.
3244 (warn_if_disallowed_function_p): New function.
3245 (add_comma_separated_to_vector): Rename
3246 add_instrument_functions_exclude_list to this.
3247 (common_handle_option): Handle new option. Rename calls to
3248 add_instrument_functions_exclude_list into calls to
3249 add_comma_separated_to_vector.
3250 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
3251 based on flag warn_disallowed_functions.
3253 2008-07-09 Christian Bruel <christian.bruel@st.com>
3255 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
3256 instead of get_attr_length.
3258 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3260 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
3262 * genemit.c (gen_insn): Likewise.
3263 * gengtype.c (note_def_vec): Likewise.
3264 * gengtype.h (note_def_vec): Likewise.
3265 * genoutput.c (struct data, output_insn_data, process_template,
3266 gen_expand, gen_split, note_constraint): Likewise.
3267 * genrecog.c (new_decision, add_to_sequence, factor_tests,
3268 make_insn_sequence): Likewise.
3269 * gensupport.c (record_insn_name): Likewise.
3271 2008-07-08 Doug Kwan <dougkwan@google.com>
3273 * config/arm/arm.opt (mandroid): New option.
3274 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
3275 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
3277 (CC1PLUS_SPEC): Same.
3279 (STARTFILE_SPEC): Same.
3280 (ENDFILE_SPEC): Same.
3281 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
3284 2008-07-08 Raksit Ashok <raksit@google.com>
3286 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
3287 (set_storage_via_setmem): Fix expected_align parameter.
3288 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
3289 missing from the list.
3290 * doc/md.texi (movmem): Explicitly state that expected alignment is
3291 to be expressed in bytes.
3292 (setmem): Explicitly state that expected alignment is to be expressed
3295 2008-07-08 Joseph Myers <joseph@codesourcery.com>
3297 * reload.c (find_reloads_subreg_address): Do not require validity
3298 of address in original mode before reloading address.
3300 2008-07-07 Tianwei Sheng <tianweis@google.com>
3302 * df-core.c (df_remove_problem): Adjust the access to avoid out of
3303 bounds array access.
3305 2008-07-08 Jakub Jelinek <jakub@redhat.com>
3307 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
3309 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
3311 Fix PR tree-optimization/23455
3312 Fix PR tree-optimization/35286
3313 Fix PR tree-optimization/35287
3314 * Makefile.in (OBJS-common): Remove tree-vn.o.
3315 (tree-vn.o): Remove.
3316 * dbgcnt.def: Add treepre_insert debug counter.
3317 * gcc/tree-flow.h (add_to_value): Updated for other changes.
3318 (debug_value_expressions): Ditto.
3319 (print_value_expressions): Ditto.
3320 * tree-pretty-print.c (dump_generic_node): Updated for
3321 VALUE_HANDLE removal.
3322 * tree-ssa-dom.c (record_equality): Ditto.
3323 (cprop_operand): Ditto.
3324 (lookup_avail_expr): Ditto.
3325 * tree-ssa-threadedge.c
3326 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
3327 (simplify_control_stmt_condition): Ditto.
3328 * tree.c (tree_code_size): Ditto.
3329 (tree_node_structure): Ditto.
3330 (iterative_hash_expr): Ditto.
3332 * tree.h (VALUE_HANDLE_ID): Ditto.
3333 (VALUE_HANDLE_EXPR_SET): Ditto.
3334 (struct tree_value_handle): Ditto.
3335 (union tree_node): Ditto.
3336 * treestruct.def: Ditto.
3337 * tree-vn.c: Removed.
3338 * tree-ssa-pre.c: Rewritten entirely.
3339 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
3340 (constant_value_ids): Ditto.
3341 (vn_nary_op_t): Moved to header.
3343 (vn_reference_op_t): Ditto
3344 (vn_reference_t): Ditto.
3345 (next_value_id): New variable.
3346 (VN_INFO): Add an assert.
3347 (vn_constant_eq): New function.
3348 (vn_constant_hash): Ditto.
3349 (get_or_alloc_constant_value_id): Ditto.
3350 (value_id_constant_p): Ditto.
3351 (vn_reference_compute_hash): De-staticify.
3352 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
3353 Disable some code with a FIXME. Remove VALUE_HANDLE use.
3354 (valueize_refs): Update opcode if it changes from ssa name to constant.
3355 (vn_reference_lookup_1): Add new argument.
3356 (vn_reference_lookup): Ditto.
3357 (vn_reference_lookup_pieces): New function.
3358 (vn_reference_insert): Add return type. Modify to deal with value ids.
3359 (vn_reference_insert_pieces): New function.
3360 (vn_nary_op_compute_hash): De-staticify.
3361 (vn_nary_op_eq): Ditto.
3362 (vn_nary_op_lookup_pieces): New function.
3363 (vn_nary_op_lookup): Add new argument.
3364 (vn_nary_op_insert_pieces): New function.
3365 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
3366 (vn_phi_insert): Ditto.
3367 (visit_unary_op): Update for callee changes.
3368 (visit_binary_op): Ditto.
3369 (visit_reference_op_load): Ditto.
3370 (visit_reference_op_store): Ditto.
3371 (init_scc_vn): Init next_value_id, constant_to_value_id and
3373 (free_scc_vn): Free them.
3374 (set_hashtable_value_ids): New function.
3375 (run_scc_vn): Use it.
3376 (get_max_value_id): New function.
3377 (get_next_value_id): Ditto.
3378 (expressions_equal_p): Moved from tree-vn.c
3379 (sort_vuses): Ditto.
3380 (sort_vuses_heap): Ditto.
3381 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
3383 * tree.c (iterative_hash_hashval_t): Made non-static
3384 * tree.h (iterative_hash_hashval_t): Declare it.
3386 2008-07-08 Martin Jambor <mjambor@suse.cz>
3388 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
3389 instead of ipa_create_node_params.
3390 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
3391 ipa_check_create_edge_args, free them with
3392 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
3394 * ipa-prop.c: Include flags.h and tree-inline.h.
3395 (ipa_node_params_vector): New variable.
3396 (ipa_edge_args_vector): New variable.
3397 (edge_removal_hook_holder): New variable.
3398 (node_removal_hook_holder): New variable.
3399 (edge_duplication_hook_holder): New variable.
3400 (node_duplication_hook_holder): New variable.
3401 (ipa_detect_param_modifications): Check for presence of modified flags.
3402 (ipa_compute_jump_functions): Check for presence of jump functions.
3403 (ipa_free_edge_args_substructures): New function.
3404 (ipa_create_node_params): Removed.
3405 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
3406 (ipa_free_node_params_substructures): New function.
3407 (ipa_free_all_node_params): Changed to deallocate the on-the-side
3409 (ipa_edge_removal_hook): New function.
3410 (ipa_node_removal_hook): New function.
3411 (duplicate_array): New function.
3412 (ipa_edge_duplication_hook): New function.
3413 (ipa_node_duplication_hook): New function.
3414 (ipa_register_cgraph_hooks): New function.
3415 (ipa_unregister_cgraph_hooks): New function.
3416 (free_all_ipa_structures_after_ipa_cp): New function.
3418 * ipa-prop.h: Include vec.h.
3419 (ipa_node_params_t): New typedef with vector types for it.
3420 (ipa_edge_args_t): New typedef with vector types for it.
3421 (IPA_NODE_REF): Changed to access an on-the-side vector.
3422 (IPA_EDGE_REF): Changed to access an on-the-side vector.
3423 (ipa_check_create_node_params): New function.
3424 (ipa_check_create_edge_args): New function.
3426 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
3429 2008-07-07 Tom Tromey <tromey@redhat.com>
3431 * configure, config.in: Rebuilt.
3432 * configure.ac: Don't check for scandir or alphasort.
3434 2008-07-07 Joseph Myers <joseph@codesourcery.com>
3436 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
3437 types immediately after creating them.
3439 2008-07-07 Joseph Myers <joseph@codesourcery.com>
3441 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
3443 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
3445 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
3446 dump_constraint_graph.
3447 (dump_constraint_edge): New function.
3448 (dump_constraint_graph): New function.
3449 (debug_constraint_graph): New function.
3450 (dump_constraint): Removed useless comparison.
3451 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
3452 (dump_constraint_graph): Declare.
3453 (debug_constraint_graph): Declare.
3454 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
3456 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
3458 * config/i386/i386.c (is_va_list_char_pointer): New.
3459 (ix86_va_start): Replace compare with ms_va_list_type_node
3460 by is_va_list_char_pointer.
3461 (ix86_gimplify_va_arg): Likewise.
3463 2008-07-07 Martin Jambor <mjambor@suse.cz>
3465 * cgraph.c (cgraph_edge_max_uid): New variable.
3466 (struct cgraph_edge_hook_list): New type.
3467 (struct cgraph_node_hook_list): New type.
3468 (struct cgraph_2edge_hook_list): New type.
3469 (struct cgraph_2node_hook_list): New type.
3470 (first_cgraph_edge_removal_hook): New variable.
3471 (first_cgraph_node_removal_hook): New variable.
3472 (first_cgraph_edge_duplicated_hook): New variable.
3473 (first_cgraph_node_duplicated_hook): New variable.
3474 (cgraph_add_edge_removal_hook): New function.
3475 (cgraph_remove_edge_removal_hook): New function.
3476 (cgraph_call_edge_removal_hooks): New function.
3477 (cgraph_add_node_removal_hook): New function.
3478 (cgraph_remove_node_removal_hook): New function.
3479 (cgraph_call_node_removal_hooks): New function.
3480 (cgraph_add_edge_duplication_hook): New function.
3481 (cgraph_remove_edge_duplication_hook): New function.
3482 (cgraph_call_edge_duplication_hooks): New function.
3483 (cgraph_add_node_duplication_hook): New function.
3484 (cgraph_remove_node_duplication_hook): New function.
3485 (cgraph_call_node_duplication_hooks): New function.
3486 (cgraph_create_edge): Assign to edge uid.
3487 (cgraph_remove_edge): Call edge removal hooks.
3488 (cgraph_node_remove_callees): Call edge removal hooks.
3489 (cgraph_node_remove_callers): Call edge removal hooks.
3490 (cgraph_remove_node): Call node removal hooks.
3491 (cgraph_clone_edge): Call edge duplication hooks.
3492 (cgraph_clone_node): Call node duplication hooks.
3494 * cgraph.h (cgraph_edge): New field uid.
3495 (cgraph_edge_hook): New type.
3496 (cgraph_node_hook): New type.
3497 (cgraph_2edge_hook): New type.
3498 (cgraph_2node_hook): New type.
3500 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
3502 * config.in: Regenerate.
3504 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
3506 * gcc.c (print_sysroot): New.
3507 (option_map, display_help, process_command): Handle the
3508 -print-sysroot option.
3509 (main): Print the sysroot if requested.
3510 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
3512 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3515 * unwind-pe.h (size_of_encoded_value): add attribute unused.
3517 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
3519 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
3520 (assign_parm_setup_block_p): Also check mode of entry_parm.
3522 2008-07-07 Richard Guenther <rguenther@suse.de>
3524 * tree-ssa-structalias.h (set_used_smts): Remove.
3525 * tree-ssa-structalias.c (used_smts): Likewise.
3526 (set_used_smts): Likewise.
3527 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
3528 call to set_used_smts.
3530 2008-07-07 Richard Guenther <rguenther@suse.de>
3532 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
3533 (new_var_info): Set it to false.
3534 (solution_set_add): Correctly handle pointers outside a var and
3536 (type_safe): Treat variables with is_full_var properly.
3537 (do_sd_constraint): Likewise.
3538 (do_ds_constraint): Likewise.
3539 (process_constraint): Remove zeroing offset for !use_field_sensitive.
3540 (get_constraint_for_ptr_offset): New function.
3541 (get_constraint_for_component_ref): For addresses at least include
3542 the last field of the variable. Handle is_full_vars properly.
3543 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
3544 (handle_ptr_arith): Remove.
3545 (find_func_aliases): Simplify assignment handling.
3546 (create_function_info_for): For parameter and result varinfos set
3548 (create_variable_info_for): Set is_full_var flag whenever we
3549 just created a single varinfo for a decl.
3550 (init_alias_vars): Initialize use_field_sensitive from
3551 max-fields-for-field-sensitive parameter.
3553 2008-07-07 Richard Guenther <rguenther@suse.de>
3555 PR tree-optimization/36713
3556 * tree-flow-inline.h (is_call_used): New function.
3557 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
3558 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3559 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
3561 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3563 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
3565 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
3567 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
3569 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3570 Nathan Sidwell <nathan@codesourcery.com>
3572 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
3573 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
3575 * config/m68k/t-linux: New.
3576 * doc/install.texi: Document m68k-*-linux is now multilibbed by
3579 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
3581 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
3582 * config/m68k/m68k-devices.def: Remove multilibs that only differ
3585 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3587 * gcc.c (execute): Fix -Wc++-compat warning.
3589 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
3592 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
3593 constant for little endian.
3595 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
3597 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
3598 mips_base_mips16 instead of TARGET_MIPS16.
3599 (mips_base_mips16): Declare.
3600 * config/mips/mips.c (mips_base_mips16): Make global.
3601 (was_mips16_p): Remove GTY marker.
3602 (was_mips16_pch_p): New variable.
3603 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
3604 (mips_override_options): Force to non-MIPS16 mode initially.
3605 Do not complain about MIPS16 PIC incompatibilities here.
3606 Only allow -mgpopt if -mexplicit-relocs is in force for
3609 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
3611 * configure.ac: Check for caddr_t, define to char * if not defined.
3612 * configure: Regenerate.
3613 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
3614 (mmap_gt_pch_use_address): Likewise.
3615 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
3617 2008-07-06 Richard Guenther <rguenther@suse.de>
3619 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
3620 (new_var_info): Deal with it.
3621 (solution_set_add): Likewise.
3622 (bitpos_of_field): Make signed, fix.
3623 (struct fieldoff): Remove type and decl fields. Make size field
3624 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
3626 (fieldoff_compare): Deal with it.
3627 (push_fields_onto_fieldstack): Remove has_union argument, glob
3628 adjacent non-pointer fields together.
3629 (create_function_info_for): Do not set has_union.
3630 (create_variable_info_for): Simplify.
3632 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
3634 * config.gcc (extra_headers): Add cross-stdarg.h for target
3635 x86_64-*-* and i?86-*-*.
3636 * config/i386/cross-stdarg.h: New.
3637 * builtins.c (std_fn_abi_va_list): New.
3638 (std_canonical_va_list_type): New.
3639 (stabilize_va_list): Replace va_list_type_node use by
3640 mtarget.canonical_va_list_type.
3641 (gimplify_va_arg_expr): Likewise.
3642 (expand_builtin_va_copy): Replace va_list_type_node use by
3643 mtarget.fn_abi_va_list.
3644 * tree-sra.c (is_va_list_type): New helper.
3645 (decl_can_be_decomposed_p): Replace
3646 va_list_type_node use by is_va_list_type.
3647 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
3648 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3649 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
3650 * config/i386/i386-protos.h (ix86_get_valist_type): New.
3651 (ix86_enum_va_list): New.
3652 * config/i386/i386.c (sysv_va_list_type_node): New.
3653 (ms_va_list_type_node): New.
3654 (ix86_function_type_abi): Remove sorry.
3655 (ix86_build_builtin_va_list_abi): New.
3656 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
3658 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
3659 (ix86_init_builtins_va_builtins_abi): New.
3660 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
3662 (ix86_handle_abi_attribute): New.
3663 (attribute_spec): Add sysv_abi and ms_abi.
3664 (ix86_fn_abi_va_list): New.
3665 (ix86_canonical_va_list_type): New.
3666 (ix86_enum_va_list): New.
3667 (TARGET_FN_ABI_VA_LIST): New.
3668 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3669 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
3670 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
3671 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3672 (TARGET_ENUM_VA_LIST): New.
3673 * expr.h (std_fn_abi_va_list): New.
3674 (std_canonical_va_list_type): New.
3675 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
3676 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3677 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
3678 TARGET_CANONICAL_VA_LIST_TYPE.
3679 * target.h (struct gcc_target): Add fn_abi_va_list hook
3680 and canonical_va_list_type hook.
3682 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3684 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
3685 integral and pointer types.
3687 2008-07-04 Roger Sayle <roger@eyesopen.com>
3689 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
3690 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
3692 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
3695 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
3697 2008-07-04 Jakub Jelinek <jakub@redhat.com>
3699 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
3700 build_gimple_modify_stmt.
3701 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
3702 gimple operand. Use fold_build* instead of build*.
3704 2008-07-04 Richard Guenther <rguenther@suse.de>
3706 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
3707 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
3708 properly to compute the reachability set if we do field-sensitive PTA.
3709 * invoke.texi (max-fields-for-field-sensitive): Document default.
3710 * opts.c (decode_options): Set max-fields-for-field-sensitive to
3711 100 for optimize >= 2.
3713 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3715 * ggc-zone.c (lookup_page_table_if_allocated,
3716 set_page_table_entry, zone_find_object_size, alloc_small_page,
3717 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
3718 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
3719 -Wc++-compat and/or -Wcast-qual warnings.
3721 2008-07-04 Alan Modra <amodra@bigpond.net.au>
3724 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
3725 pic_offset_table_rtx to be marked as used here.
3726 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
3727 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
3728 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
3729 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
3732 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3734 * alloc-pool.c (hash_descriptor, eq_descriptor,
3735 alloc_pool_descriptor): Fix -Wc++-compat warnings.
3736 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
3738 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
3739 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
3740 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
3741 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
3744 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
3746 * tree-flow.h (loop_only_exit_p): Declare.
3747 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
3748 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
3749 the number of iterations if it is constant. Otherwise, if this is the
3750 only possible exit of the loop, use the conservative estimate on the
3751 number of iterations of the entire loop if available.
3753 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
3755 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
3756 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
3757 Add synchronization functions.
3758 * config/sync.c: New file.
3759 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
3760 (LIBGCC_SYNC_CFLAGS): Likewise.
3762 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
3765 * config/i386/i386.md (mode): Add TF to "mode" attribute.
3766 (*pushtf_sse): New insn pattern.
3767 (pushtf splitters): New splitters.
3769 2008-07-03 Michael Meissner <gnu@the-meissners.org>
3772 * predict.c (build_predict_expr): Use void_type_node for the tree
3773 type, instead of NULL_TREE.
3775 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
3777 * config/i386/i386.c (contains_aligned_value_p): Return true
3779 (ix86_data_alignment): Align TCmode to 128bits.
3780 (ix86_local_alignment): Likewise.
3782 2008-07-03 Andrew Haley <aph@redhat.com>
3785 * vec.h (VEC_TA): New.
3786 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
3787 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
3788 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
3789 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
3790 (C_COMMON_FIXED_TYPES): Remove first arg.
3791 (C_COMMON_FIXED_MODE_TYPES): Likewise.
3792 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
3793 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
3794 not to use empty macro arguments.
3796 2008-07-02 Joseph Myers <joseph@codesourcery.com>
3798 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
3799 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
3800 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
3801 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
3802 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
3803 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
3804 config/ia64/crtn.asm, config/m68hc11/larith.asm,
3805 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
3806 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
3807 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3808 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3809 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3810 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
3811 config/rs6000/e500crtres64gpr.asm,
3812 config/rs6000/e500crtres64gprctr.asm,
3813 config/rs6000/e500crtrest32gpr.asm,
3814 config/rs6000/e500crtrest64gpr.asm,
3815 config/rs6000/e500crtresx32gpr.asm,
3816 config/rs6000/e500crtresx64gpr.asm,
3817 config/rs6000/e500crtsav32gpr.asm,
3818 config/rs6000/e500crtsav64gpr.asm,
3819 config/rs6000/e500crtsav64gprctr.asm,
3820 config/rs6000/e500crtsavg32gpr.asm,
3821 config/rs6000/e500crtsavg64gpr.asm,
3822 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
3823 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
3824 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
3825 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
3826 config/sparc/sol2-cn.asm: Remove .file directives.
3828 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
3830 * resource.c (mark_referenced_resources): Look inside
3831 UNSPEC_VOLATILEs and ASM_INPUTs.
3833 2008-07-02 Ian Lance Taylor <iant@google.com>
3835 * rtlanal.c (add_reg_note): New function.
3836 * rtl.h (add_reg_note): Declare.
3837 * auto-inc-dec.c (attempt_change): Use add_reg_note.
3838 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
3839 * builtins.c (expand_builtin_longjmp): Likewise.
3840 (expand_builtin_nonlocal_goto): Likewise.
3841 * calls.c (emit_call_1, expand_call): Likewise.
3842 * cfgexpand.c (add_reg_br_prob_note): Likewise.
3843 * cfglayout.c (fixup_reorder_chain): Likewise.
3844 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3845 (commit_one_edge_insertion): Likewise.
3846 * combine.c (move_deaths, distribute_notes): Likewise.
3847 * df-problems.c (df_set_note): Likewise.
3848 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
3849 (set_unique_reg_note): Likewise.
3850 (emit_copy_of_insn_after): Likewise.
3851 * expr.c (expand_expr_real): Likewise.
3852 * gcse.c (add_label_notes): Likewise.
3853 * haifa-sched.c (create_check_block_twin): Likewise.
3854 * jump.c (mark_jump_label_1): Likewise.
3855 * loop-doloop.c (add_test, doloop_modify): Likewise.
3856 * loop-unswitch.c (compare_and_jump_seq): Likewise.
3857 * lower-subreg.c (move_eh_region_note): Likewise.
3858 * optabs.c (emit_libcall_block): Likewise.
3859 * predict.c (predict_insn): Likewise.
3860 (combine_predictions_for_insn): Likewise.
3861 * recog.c (peephole2_optimize): Likewise.
3862 * regmove.c (try_auto_increment): Likewise.
3863 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3864 * reload.c (find_reloads): Likewise.
3865 * reload1.c (fixup_eh_region_note): Likewise.
3866 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3867 * reorg.c (delete_prior_computation): Likewise.
3868 (delete_computation, dbr_schedule): Likewise.
3869 * config/pa/pa.c (legitimize_pic_address): Likewise.
3870 * config/sh/sh.c (sh_reorg): Likewise.
3872 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3875 * config/libgcc-glibc.ver: Add %exclude.
3876 * config/m32r/libgcc-glibc.ver: Likwise.
3877 * config/s390/libgcc-glibc.ver: Likwise.
3878 * config/sh/libgcc-glibc.ver: Likwise.
3879 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3881 * config/i386/libgcc-glibc.ver: New.
3883 * config/i386/libgcc-x86_64-glibc.ver: Removed.
3885 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3887 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3888 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3889 i[34567]86-*-linux*, x86_64-*-linux*. Add
3890 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3891 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3892 x86_64-*-linux*. Add i386/t-linux to tmake_file for
3893 i[34567]86-*-linux*, x86_64-*-linux*.
3895 * libgcc-std.ver: Add empty GCC_4.4.0.
3897 * mkmap-symver.awk: Support multiple versions per symbol.
3899 * config/i386/i386.c (ix86_init_builtins): Always define
3900 __builtin_fabsq and __builtin_copysignq with fallbacks.
3901 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3902 and __builtin_copysignq if SSE2 isn't available.
3904 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3905 (LIBGCC2_TF_CEXT): Likwise.
3908 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3910 * config/i386/sfp-machine.h: Moved to libgcc.
3912 * config/i386/sfp-machine.h: New.
3913 * config/i386/t-linux: Likwise.
3915 * config/i386/t-darwin: Remove softfp_wrap_start and
3917 * config/i386/t-darwin64: Likewise.
3919 * config/i386/t-fprules-softfp64: Renamed to ...
3920 * config/i386/t-fprules-softfp: This.
3922 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3923 and softfp_wrap_end.
3925 2008-07-02 Jason Merrill <jason@redhat.com>
3927 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3929 * tree.c (ctor_to_list): New fn.
3930 * tree.h: Declare it.
3931 (CONSTRUCTOR_ELT): New macro.
3932 (CONSTRUCTOR_NELTS): New macro.
3934 2008-07-02 Richard Guenther <rguenther@suse.de>
3936 * tree-ssa-structalias.c (struct variable_info): Reorder
3937 to fill padding on 64bit hosts. Make collapsed_to an int.
3938 (get_varinfo_fc): Deal with that.
3939 (new_var_info): Likewise.
3940 (collapse_rest_of_var): Likewise.
3942 2008-07-02 Joshua Sumali <jsumali@redhat.com>
3944 * doc/install.texi (--enable-java-home): Document.
3945 (--enable-aot-compile-rpm): Likewise.
3946 (--with-arch-directory): Likewise.
3947 (--with-os-directory): Likewise.
3948 (--with-origin-name): Likewise.
3949 (--with-arch-suffix): Likewise.
3950 (--with-jvm-root-dir): Likewise.
3951 (--with-jvm-jar-dir): Likewise.
3952 (--with-python-dir): Likewise.
3954 2008-07-02 Richard Guenther <rguenther@suse.de>
3956 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3957 from decls explicitly. Merge operand checking from tuples.
3959 2008-07-02 Martin Jambor <mjambor@suse.cz>
3961 * tree-switch-conversion.c: Included timevar.h which I forgot before.
3963 2008-07-02 Martin Jambor <mjambor@suse.cz>
3965 * tree-switch-conversion.c: Included timevar.h
3966 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3968 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3970 2008-07-02 Martin Jambor <mjambor@suse.cz>
3972 * tree-switch-conversion.c: Corrected various comments and
3974 (build_constructors): Fixed minor formatting mistakes.
3976 * invoke.texi (Optimize Options): Corrected the
3977 switch-conversion-max-branch-ratio parameter.
3979 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
3981 * final.c (asm_insn_count): Return zero for an empty asm body.
3983 2008-07-02 Richard Guenther <rguenther@suse.de>
3985 * bitmap.h (bitmap_set_bit): Return bool.
3986 (bitmap_clear_bit): Likewise.
3987 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
3988 write to the bitmap if it would.
3989 (bitmap_clear_bit): Likewise.
3990 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3991 bitmap_set_bit return value.
3992 (add_pred_graph_edge): Likewise.
3993 (add_graph_edge): Likewise.
3994 (do_sd_constraint): Likewise.
3995 (do_ds_constraint): Likewise.
3997 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3999 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
4000 Fix -Wc++-compat and/or -Wcast-qual warnings.
4001 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
4002 gen_regparm_prefix): Likewise.
4003 * vmsdbgout.c (write_modbeg, lookup_filename,
4004 vmsdbgout_source_line, vmsdbgout_init): Likewise.
4006 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
4008 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
4009 defaults.h definition apply.
4011 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4013 * function.c (assign_parm_remove_parallels): New.
4014 (assign_parm_setup_block_p): Do not return true for non-BLKmode
4016 (assign_parm_setup_block): Do not handle them.
4017 (assign_parm_setup_reg, assign_parm_setup_stack): Call
4018 assign_parm_remove_parallels.
4020 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4022 * c-typeck.c (convert_for_assignment): Use
4023 vector_targets_convertible_p.
4024 * c-common.c (vector_targets_convertible_p): New.
4025 * c-common.h (vector_targets_convertible_p): New prototype.
4026 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
4027 opaque_p_V2SI_type_node.
4029 2008-07-01 Steve Ellcey <sje@cup.hp.com>
4031 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
4034 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
4036 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
4037 TFmode constants via two element DImode vector for hosts with
4038 HOST_BITS_PER_WIDE_INT < 64.
4039 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
4040 also for HOST_BITS_PER_WIDE_INT < 64.
4042 2008-07-01 Richard Guenther <rguenther@suse.de>
4044 PR tree-optimization/36666
4045 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
4046 (get_constraint_exp_from_ssa_var): Split into ...
4047 (get_constraint_exp_for_temp): ... this ...
4048 (get_constraint_for_ssa_var): ... and that.
4049 Return constraint expressions for all touched sub-fields
4050 if the results address is not taken.
4051 (process_constraint): Remove assertion that aggregate
4052 assignments do not happen at this place.
4053 (get_constraint_for_component_ref): Add address_p argument.
4054 Return constraint expressions for all touched sub-fields
4055 if the results address is not taken.
4056 (do_deref): Use get_constraint_exp_for_temp.
4057 (get_constraint_for_1): Rename from ...
4058 (get_constraint_for): ... this. Add the old function as wrapper.
4059 (do_structure_copy): Use get_constraint_for_1.
4061 2008-07-01 Martin Jambor <mjambor@suse.cz>
4063 * Makefile.in (tree-switch-conversion.o): Add.
4064 (OBJS-common): Add tree-swtch-conversion.o.
4065 * passes.c (init_optimization_passes): Add pass_convert_switch.
4066 * tree-pass.h: (pass_convert_switch): Add.
4067 * tree-switch-conversion.c: New file.
4068 * gcc.dg/tree-ssa/cswtch.c: New testcase.
4069 * common.opt (ftree-cswtch): New option.
4070 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
4071 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
4072 * opts.c (decode_options): Set flag_tree_switch_conversion when
4073 optimization level is >= 2.
4074 * doc/invoke.texi (Optimize Options): Added description of
4075 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
4077 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4079 * config/darwin-driver.c (darwin_default_min_version): Fix
4080 -Wc++-compat warnings.
4082 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
4084 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
4087 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
4089 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
4091 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
4093 PR rtl-optimization/34744
4094 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
4095 (df_scan_free_internal): Free data structures not
4096 allocated in storage pools.
4097 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
4098 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
4099 df_scan_free_mws_vec.
4100 * dse.c (dse_step6): Free offset_map_p and offset_map_n
4103 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
4105 * config/i386/i386.c (contains_aligned_value_p): Return true
4107 (ix86_function_arg_boundary): Return its natural boundary
4109 (return_in_memory_32): Don't check TDmode.
4110 (ix86_split_to_parts): Support splitting into 4 parts and
4111 support TFmode for 32bit target.
4112 (ix86_split_long_move): Support splitting into 4 parts.
4113 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
4115 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
4116 (ix86_init_builtins): Here.
4117 (ix86_scalar_mode_supported_p): Always return true for TFmode.
4118 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
4119 'q' and 'w', respectively.
4121 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
4123 (movtf_internal): Likewise.
4124 (<code>tf2): Likewise.
4125 (*absnegtf2_sse): Likewise.
4126 (copysign<mode>3): Likewise.
4127 (copysign<mode>3_const): Likewise.
4128 (copysign<mode>3_var): Likewise.
4129 (define_split UNSPEC_COPYSIGN): Likewise.
4130 * config/i386/sse.md (*nandtf3): Likewise.
4131 (<code>tf3): Likewise.
4132 (*<code>tf3): Likewise.
4134 2008-06-30 Joey Ye <joey.ye@intel.com>
4135 H.J. Lu <hongjiu.lu@intel.com>
4137 * global.c (compute_regsets): Set frame_pointer_needed here.
4138 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
4140 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4142 * doc/install.texi (specific): Expand Windows build notes.
4144 2008-06-30 Ira Rosen <irar@il.ibm.com>
4146 PR tree-optimization/36648
4147 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
4148 number of prolog iterations by step. Fix the comment.
4150 2008-06-30 Richard Guenther <rguenther@suse.de>
4153 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
4154 handle calls from ECF_MALLOC functions.
4155 (handle_pure_call): ECF_MALLOC functions do not return
4157 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
4159 2008-06-29 Andreas Schwab <schwab@suse.de>
4161 * config/m68k/m68k.c (print_operand): Always print a float
4163 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
4164 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
4167 * config/rs6000/x-linux64: Remove never used file.
4169 2008-06-29 Richard Guenther <rguenther@suse.de>
4171 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
4173 (struct alias_info): Move ...
4174 * tree-ssa-alias.c: ... here.
4175 (update_alias_info): Declare.
4176 (compute_may_aliases): Call it.
4177 (update_alias_info): New function.
4178 * tree-ssa-structalias.c (update_alias_info): Move ...
4179 * tree-ssa-alias.c (update_alias_info_1): ... here.
4180 * tree-ssa-structalias.c (process_constraint_1): Remove
4181 unused from_call argument. Rename to ...
4182 (process_constraint): ... this. Delete old wrapper.
4183 (make_constraint_to): Adjust callers.
4184 (handle_const_call): Likewise.
4185 (handle_pure_call): Likewise.
4186 (init_base_vars): Likewise.
4187 (handle_lhs_call): Likewise. Remove unnecessary constraint.
4188 (find_func_aliases): We don't need structure copies for
4190 (make_constraint_from_anything): Remove.
4191 (create_variable_info_for): For globals make constraints
4192 from escaped, not from anything.
4193 (compute_points_to_sets): Do not call update_alias_info.
4194 (ipa_pta_execute): Use make_constraint_from.
4196 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4198 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
4199 (bitmap.o-warn, dominance.o-warn): New.
4200 * configure.ac (cxx_compat_warn): Delete.
4201 (loose_warn): Add -Wcast-qual and -Wc++-compat.
4202 * system.h: Remove #pragma diagnostic for -Wcast-qual and
4204 * configure: Regenerate.
4206 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
4209 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4211 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
4212 * df-scan.c (df_notes_rescan): Likewise.
4213 * ggc-page.c (set_page_table_entry): Likewise.
4214 * intl.c (gcc_gettext_width): Likewise.
4215 * varasm.c (get_unnamed_section, get_noswitch_section,
4216 get_section): Likewise.
4218 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
4220 * regrename.c (build_def_use): Don't copy RTX.
4222 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
4224 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
4225 (Type Attributes): Fix nesting of @table and @subsection. Adjust
4226 punctuation. Use @ref instead of @xref.
4227 (Function Names): Remove stray @display/@end display.
4228 (C++ Attributes): Use @ref instead of @xref.
4229 (Deprecated Features): Fix punctuation around @xref.
4230 (Backwards Compatibility): Likewise.
4231 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
4233 2008-06-28 Joseph Myers <joseph@codesourcery.com>
4235 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
4236 constants for E500 double.
4238 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4240 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
4241 element type of const_vector.
4243 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
4245 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
4246 Remove FLAGS_REG clobber from expander pattern.
4247 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
4248 (anddi3, andsi3, andhi3, andqi3): Ditto.
4249 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
4250 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
4251 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
4252 (ashlsi3, ashlhi3, ashlqi3): Ditto.
4253 (ashrsi3, ashrhi3, ashrqi3): Ditto.
4254 (lshrsi3, lshrhi3, lshrqi3): Ditto.
4255 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
4256 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
4258 2008-06-28 Richard Guenther <rguenther@suse.de>
4260 * tree-ssa-structalias.c (callused_id, var_callused,
4261 callused_tree): Add.
4262 (handle_pure_call): New function.
4263 (find_func_aliases): Call it.
4264 (find_what_p_points_to): Handle the call-used set.
4265 (clobber_what_escaped): Likewise.
4266 (compute_call_used_vars): New function.
4267 (init_base_vars): Init the call-used variable.
4268 (do_sd_constraint): Do not propagate the solution from CALLUSED
4269 but use CALLUSED as a placeholder.
4270 (solve_graph): Likewise.
4271 * tree-flow-inline.h (gimple_call_used_vars): New function.
4272 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
4273 (compute_call_used_vars): Declare.
4274 * tree-ssa-alias.c (set_initial_properties): Call
4275 compute_call_used_vars.
4276 (reset_alias_info): Clear call-used variables.
4277 (add_call_clobber_ops): Assert we are not called for const/pure
4278 functions. Remove handling of them.
4279 (add_call_read_ops): Handle pure functions by adding the
4280 call-used set of variables as VUSEs.
4281 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
4282 (delete_tree_ssa): Free it.
4283 * tree-dfa.c (remove_referenced_var): Clear the var from the
4286 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
4288 * tree.c (build_varargs_function_type_list): New.
4289 (build_function_type_list_1): New.
4290 (build_function_type_list): Use build_function_type_list_1.
4291 * tree.h (build_varargs_function_type_list): New.
4293 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4296 * config/spu/spu.c (spu_builtin_splats): Do not generate
4297 invalid CONST_VECTOR expressions.
4298 (spu_expand_vector_init): Likewise.
4300 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
4302 * optabs.c (libfunc_decls): New variable.
4303 (libfunc_decl_hash, libfunc_decl_eq): New functions.
4304 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
4305 for the same function twice.
4307 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
4309 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
4310 ix86_expand_binary_operator directly.
4311 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
4313 (*ashrti3_1): Ditto.
4314 (*lshrti3_1): Ditto.
4315 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
4316 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
4317 using only one splitter. Conditionaly execute splitter before or
4318 after peephole2 pass.
4319 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
4320 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
4321 Use only one alternative in asm template.
4322 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
4324 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
4325 "J" operand constraint for operand 2.
4326 (*ashldi3_cconly_rex64): Ditto.
4327 (*ashrdi3_cmp_rex64): Ditto.
4328 (*ashrdi3_cconly_rex64): Ditto.
4329 (*lshrdi3_cmp_rex64): Ditto.
4330 (*lshrdi3_cconly_rex64): Ditto.
4331 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
4332 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
4333 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
4336 2008-06-27 Jakub Jelinek <jakub@redhat.com>
4338 * gimplify.c (omp_is_private): Don't return true if decl is not
4339 already private on #pragma omp for or #pragma omp parallel for.
4342 * tree-cfg.c (struct move_stmt_d): Replace block field with
4343 orig_block and new_block fields.
4344 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
4345 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
4346 (move_block_to_fn): Replace vars_map and new_label_map arguments
4347 with struct move_stmt_d pointer.
4348 (replace_block_vars_by_duplicates): New function.
4349 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
4350 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
4351 all subblocks of ORIG_BLOCK to the new function. Call
4352 replace_block_vars_by_duplicates.
4353 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
4354 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
4355 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
4356 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
4357 (expand_omp): Temporarily set input_location to the location of
4358 region's controlling stmt.
4359 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
4360 BIND_EXPR, push ctx->block_vars and gimplification vars into
4361 the BIND_EXPR and its block's BLOCK_VARS instead of directly
4363 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
4364 there are any BLOCK_VARS.
4365 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
4366 OMP_PARALLEL or OMP_TASK stmt.
4367 (lower_omp): Save and restore input_location around the lower_omp_1
4370 2008-06-27 Richard Guenther <rguenther@suse.de>
4372 PR tree-optimization/36400
4373 PR tree-optimization/36373
4374 PR tree-optimization/36344
4375 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
4376 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
4377 (update_alias_info): Remove call clobbering code.
4378 (make_constraint_to): New helper function.
4379 (make_escape_constraint): Likewise.
4380 (handle_rhs_call): Use it on all pointer containing arguments.
4381 Also mark the static chain escaped.
4382 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
4383 instead of ANYTHING.
4384 (make_constraint_from): New helper split out from ...
4385 (make_constraint_from_anything): ... here.
4386 (find_func_aliases): Add constraints for escape sites.
4387 (intra_create_variable_infos): Make constraints from NONLOCAL
4389 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
4391 (clobber_what_p_points_to): Remove.
4392 (clobber_what_escaped): New function.
4393 (init_base_vars): Init NONLOCAL and ESCAPED.
4394 (do_sd_constraint): Do not propagate the solution from ESCAPED
4395 but use ESCAPED as a placeholder.
4396 (solve_graph): Likewise.
4397 * tree-flow.h (clobber_what_p_points_to): Remove.
4398 (clobber_what_escaped): Declare.
4399 * tree-ssa-alias.c (set_initial_properties): Call it.
4400 Remove code clobbering escaped pointers.
4402 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
4404 * function.c (allocate_struct_function): Only allocate a unique
4405 funcdef_no if the decl is nonzero.
4407 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
4409 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
4410 * config/mips/mips.c (mips_split_const_insns): New function.
4411 * config/mips/mips.md (move_type): New attribute.
4412 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
4413 (dword_mode): New attribute.
4414 (type): Avoid long line. Map "move_type"s to "type"s,
4415 choosing "multi" for doubleword moves if appropriate.
4416 Swap MTC/MFC comments to match their declaration order.
4417 (extended_mips16): Default to "yes" if "move_type" is "sll0",
4418 "type" is "branch" or "jal" is "direct".
4419 (length): Handle "extended_mips16" first. Make the default
4420 "0" for "ghost" instructions. Set the length from "move_type".
4421 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
4422 of "type", with "sll0" for the register alternative. Remove the
4423 "extended_mips16" attribute.
4424 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
4425 of "type", with "shift_shift" for the register alternative.
4426 Remove the "length" attribute.
4427 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
4428 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
4429 of "type", with "andi" for the register alternative.
4430 (*zero_extendqihi2): Likewise.
4431 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
4432 of "andi" instead of a "type" of "arith".
4433 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
4435 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
4436 (mov_<store>r, *mov<mode>_ra): Likewise.
4437 (extendsidi2): Use "move_type" instead of "type", with "move"
4438 for the register alternative.
4439 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
4440 of "type", with "signext" for the register alternative.
4441 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
4442 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
4443 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
4444 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
4445 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
4446 (unnamed branch insn): Likewise.
4447 (*movdi_gp32_fp64): Fold into...
4448 (*movdi_32bit): ...here.
4449 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
4450 (*movdf_hardfloat): ...this new pattern.
4451 (*movdf_softfloat): Remove redundant FPR alternatives.
4452 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
4453 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
4454 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
4455 the "move" attribute.
4456 (*movdi_32bit): Use "move_type" instead of "type" and remove the
4457 "length" attribute. Use "fpload" and "fpstore" instead of "load"
4458 and "store" for COP loads and stores.
4459 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
4460 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
4461 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
4462 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
4463 (*movtf_mips16, *movv2sf): Likewise.
4464 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
4465 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
4466 (mfhc1<mode>): Use "move_type" instead of "move".
4467 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
4468 (loadgp_blockage): Remove the "length" attribute.
4469 (blockage, set_got_version, update_got_version): Likewise.
4470 (call_internal): Remove the "extended_mips16" attribute.
4471 (call_value_internal, call_value_multiple_internal): Likewise.
4472 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
4474 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
4475 the "length" attribute.
4477 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4479 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
4480 -Wcast-qual warnings.
4481 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
4482 handle_pragma_pop_macro): Likewise.
4483 * collect2.c (resolve_lib_name): Likewise.
4484 * config/arc/arc.c (arc_init): Likewise.
4485 * config/arm/arm.c (neon_builtin_compare,
4486 locate_neon_builtin_icode): Likewise.
4487 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
4488 * config/bfin/bfin.c (bfin_init_machine_status,
4489 bfin_optimize_loop): Likewise.
4490 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4491 * config/cris/cris.c (cris_init_expanders): Likewise.
4492 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
4493 * config/darwin.c (machopic_indirection_eq,
4494 machopic_indirection_name, machopic_output_indirection): Likewise.
4495 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
4496 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
4497 frv_optimize_membar): Likewise.
4498 * config/i386/cygwin.h (mingw_scan,
4499 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
4500 * config/i386/cygwin1.c (mingw_scan): Likewise.
4501 * config/i386/i386.c (machopic_output_stub): Likewise.
4502 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
4503 i386_pe_unique_section): Likewise.
4504 * config/ia64/ia64.c (ia64_init_machine_status,
4505 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
4507 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
4508 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
4509 * config/m68k/m68k.c (m68k_handle_option,
4510 m68k_sched_md_init_global): Likewise.
4511 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
4512 mcore_unique_section): Likewise.
4513 * config/mips/mips.c (mips_block_move_straight,
4514 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
4516 * config/mmix/mmix.c (mmix_init_machine_status,
4517 mmix_encode_section_info): Likewise.
4518 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
4519 * config/rs6000/rs6000.c (rs6000_init_machine_status,
4520 print_operand_address, output_toc, redefine_groups,
4521 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
4522 * config/s390/s390.c (s390_init_machine_status): Likewise.
4523 * config/score/score.c (score_block_move_straight,
4524 score_block_move_loop_body): Likewise.
4525 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4526 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4527 * emit-rtl.c (find_auto_inc): Likewise.
4528 * gcc.c (translate_options, process_command): Likewise.
4529 * reorg.c (dbr_schedule): Likewise.
4530 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
4531 * xcoffout.c (xcoffout_declare_function): Likewise.
4533 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
4535 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
4536 ipa-pta working again.
4538 2008-06-27 David Edelsohn <edelsohn@gnu.org>
4540 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
4543 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
4545 * config.gcc (powerpc*-*-*): Add new core e500mc.
4546 * config/rs6000/e500mc.md: New file.
4547 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4549 (rs6000_override_options): Add e500mc case to
4550 processor_target_table. Altivec and Spe options not allowed
4551 with e500mc. Add isel instruction to e500mc by
4552 default. Initialize rs6000_cost for e500mc.
4553 (rs6000_issue_rate): Set issue rate for e500mc.
4554 * config/rs6000/rs6000.h (processor_type): Add
4555 PROCESSOR_PPCE500MC.
4556 (ASM_CPU_SPEC): Add e500mc.
4557 Set TARGET_ISEL to rs6000_isel.
4558 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
4559 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
4560 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
4562 * doc/invoke.texi: Add e500mc to list of cpus.
4564 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4567 * c-lex.c (lex_charconst): Initialize unsignedp.
4569 2008-06-27 Olivier Hainque <hainque@adacore.com>
4571 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
4572 documented assumptions.
4574 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
4576 * dwarf2out.c: Remove trailing white spaces. Break long line
4579 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
4581 * libfuncs.h (LTI_synchronize): New libfunc_index.
4582 (synchronize_libfunc): Declare.
4583 * builtins.c (expand_builtin_synchronize): Consider using
4584 synchronize_libfunc before falling back on an asm blockage.
4585 * config/mips/mips.c: Include libfuncs.h
4586 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
4588 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
4590 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
4591 parameter. Copy stack_reg to r11 where appropriate.
4592 (no_global_regs_above): Add gpr parameter.
4593 (rs6000_stack_info): Only add padding for SPE save area if we
4594 are saving SPE GPRs and CR.
4595 (saveres_routine_syms): New variable.
4596 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
4598 (rs6000_savres_routine_sym): New function.
4599 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
4601 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
4602 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
4603 Tweak FPR out-of-line saving.
4604 (rs6000_make_savres_rtx): New function.
4605 (rs6000_use_multiple_p): New function.
4606 (rs6000_savres_strategy): New function.
4607 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
4608 out-of-line if appropriate.
4609 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
4610 if we are optimizing for size.
4611 (GP_SAVE_INLINE): Define.
4612 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
4613 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
4614 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
4615 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
4616 (*save_fpregs_<mode>): Add use of r11.
4617 (*restore_gpregs_<mode>): New insn.
4618 (*return_and_restore_gpregs_<mode>): New insn.
4619 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
4621 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
4622 (*restore_gpregs_spe): New insn.
4623 (*return_and_restore_gpregs_spe): New insn.
4624 * config/rs6000/predicates.md (save_world_operation): Fix check.
4626 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
4628 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
4629 this point, so assert that.
4631 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
4633 * cfganal.c: Include vec.h and vecprim.h.
4634 (compute_idf): Import from...
4635 * tree-into-ssa (compute_idf): ...here.
4636 * basic-block.h (compute_idf): Export.
4638 2008-06-26 Joseph Myers <joseph@codesourcery.com>
4640 * c-decl.c (merge_decls): Use !current_function_decl to check for
4641 extern declaration of C99 inline function being at file scope.
4643 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
4645 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
4647 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4649 * alias.c (record_alias_subset, init_alias_analysis): Fix
4650 -Wc++-compat and/or -Wcast-qual warnings.
4651 * attribs.c (lookup_attribute_spec): Likewise.
4652 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
4653 copy_bb, connect_traces,
4654 find_rarely_executed_basic_blocks_and_cr): Likewise.
4655 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
4656 note_btr_set, migrate_btr_defs): Likewise.
4657 * builtins.c (result_vector, expand_builtin_memcpy,
4658 expand_builtin_mempcpy_args, expand_builtin_strncpy,
4659 builtin_memset_read_str, expand_builtin_printf,
4660 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
4662 * caller-save.c (mark_set_regs): Likewise.
4663 * calls.c (expand_call, emit_library_call_value_1): Likewise.
4664 * cgraph.c (cgraph_edge): Likewise.
4665 * combine.c (likely_spilled_retval_1): Likewise.
4666 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
4667 htab_counts_entry_del, get_coverage_counts): Likewise.
4668 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
4669 new_cselib_val): Likewise.
4670 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
4671 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
4673 * df-core.c (df_compact_blocks): Likewise.
4674 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
4675 * df-scan.c (df_grow_reg_info, df_ref_create,
4676 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
4677 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
4678 df_record_entry_block_defs, df_record_exit_block_uses,
4679 df_bb_verify): Likewise.
4680 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
4681 DF_REF_EXTRACT_MODE_CONST): New.
4682 * dominance.c (get_immediate_dominator, get_dominated_by,
4683 nearest_common_dominator, root_of_dom_tree,
4684 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
4685 -Wc++-compat and/or -Wcast-qual warnings.
4686 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
4687 record_store, replace_read, check_mem_read_rtx, scan_insn,
4688 dse_step1, dse_record_singleton_alias_set): Likewise.
4689 * dwarf2asm.c (dw2_force_const_mem): Likewise.
4691 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4693 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
4694 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
4695 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
4696 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
4697 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
4698 add_ranges_num, add_ranges_by_labels, file_info_cmp,
4699 file_name_acquire, output_file_names, add_const_value_attribute,
4700 premark_used_types_helper, file_table_eq, file_table_hash,
4701 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
4702 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
4703 -Wcast-qual warnings.
4704 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
4705 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
4706 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
4707 gen_reg_rtx, start_sequence, init_emit): Likewise.
4708 * et-forest.c (et_new_occ, et_new_tree): Likewise.
4709 * except.c (init_eh_for_function, gen_eh_region,
4710 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
4711 arh_to_landing_pad, arh_to_label, add_action_record,
4712 add_call_site, switch_to_exception_section): Likewise.
4713 * expmed.c (synth_mult): Likewise.
4714 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
4715 store_expr): Likewise.
4716 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
4718 * function.c (assign_stack_temp_for_type,
4719 allocate_struct_function, match_asm_constraints_1): Likewise.
4720 * gcov-io.c (gcov_allocate): Likewise.
4721 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
4722 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
4723 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
4724 record_one_set, insert_expr_in_table, insert_set_in_table,
4725 dump_hash_table, compute_hash_table_work, alloc_hash_table,
4726 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
4727 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
4728 -Wcast-qual warnings.
4730 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4732 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
4733 -Wcast-qual warnings.
4734 * gcc.c (process_command): Likewise.
4735 * genattrtab.c (oballoc): Use XOBNEW.
4736 (oballocvec): Define.
4737 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
4738 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
4739 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
4740 -Wc++-compat and/or -Wcast-qual warnings.
4741 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
4742 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
4743 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4744 gen_presence_absence_set, gen_automaton, gen_regexp_el,
4745 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4746 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
4747 add_excls, process_presence_absence_names,
4748 process_presence_absence_patterns, add_presence_absence,
4749 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
4750 get_free_state, add_arc, get_free_automata_list_el,
4751 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
4752 transform_3, cache_presence, create_ainsns, create_automata,
4753 create_state_ainsn_table, dfa_insn_code_enlarge,
4754 output_trans_func, output_min_issue_delay_func,
4755 output_dead_lock_func, output_reset_func,
4756 output_get_cpu_unit_code_func, output_dfa_start_func,
4757 expand_automata): Likewise.
4758 * genextract.c (gen_insn): Likewise.
4759 * gengtype-lex.l: Likewise.
4760 * gengtype.c (read_input_list, adjust_field_type,
4761 process_gc_options): Likewise.
4762 * genoutput.c (note_constraint): Likewise.
4763 * genpreds.c (mangle, add_constraint): Likewise.
4764 * genrecog.c (process_define_predicate, new_decision,
4765 add_to_sequence): Likewise.
4766 * gensupport.c (record_insn_name): Likewise.
4768 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4770 * config/i386/driver-i386.c (detect_caches_amd,
4771 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
4772 and/or -Wcast-qual warnings.
4773 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
4774 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
4775 gt_pch_save): Likewise.
4776 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
4777 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
4778 * global.c (compute_regsets): Likewise.
4779 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4780 finish_graph_dump_file): Likewise.
4781 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
4782 unlink_bb_notes): Likewise.
4783 * integrate.c (get_hard_reg_initial_val): Likewise.
4784 * ipa-prop.c (ipa_push_func_to_list): Likewise.
4785 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
4786 * local-alloc.c (update_equiv_regs): Likewise.
4787 * loop-invariant.c (check_invariant_table_size,
4788 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
4790 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
4791 altered_reg_used, mark_altered): Likewise.
4792 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
4793 insert_var_expansion_initialization,
4794 combine_var_copies_in_loop_exit, apply_opt_in_copies,
4795 release_var_copies): Likewise.
4796 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
4797 analyze_matrix_decl, add_allocation_site, analyze_transpose,
4798 analyze_accesses_for_phi_node, check_var_notmodified_p,
4799 check_allocation_function, find_sites_in_func,
4800 record_all_accesses_in_func, transform_access_sites,
4801 transform_allocation_sites): Likewise.
4802 * omp-low.c (new_omp_region, create_omp_child_function_name,
4803 check_omp_nesting_restrictions, check_combined_parallel,
4804 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
4805 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
4806 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4807 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
4809 * opts-common.c (prune_options): Likewise.
4810 * opts.c (add_input_filename, print_filtered_help,
4811 get_option_state): Likewise.
4812 * params.c (add_params): Likewise.
4813 * passes.c (set_pass_for_id, next_pass_1,
4814 do_per_function_toporder, pass_fini_dump_file): Likewise.
4815 * postreload.c (reload_cse_simplify_operands): Likewise.
4816 * predict.c (tree_predicted_by_p, tree_predict_edge,
4817 clear_bb_predictions, combine_predictions_for_bb): Likewise.
4819 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4821 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
4823 * recog.c (check_asm_operands, validate_change_1): Likewise.
4824 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
4825 subst_asm_stack_regs): Likewise.
4826 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
4827 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
4828 * regmove.c (reg_is_remote_constant_p): Likewise.
4829 * regrename.c (regrename_optimize, scan_rtx_reg,
4830 kill_clobbered_value, kill_set_value, kill_autoinc_value):
4832 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
4833 regstat_compute_calls_crossed): Likewise.
4834 * reload1.c (init_reload, new_insn_chain,
4835 has_nonexceptional_receiver, reload, copy_reloads,
4836 calculate_needs_all_insns, init_elim_table): Likewise.
4837 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
4838 * rtl.c (shallow_copy_rtx_stat): Likewise.
4839 * rtlanal.c (parms_set): Likewise.
4840 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
4841 sbitmap_resize, sbitmap_vector_alloc): Likewise.
4842 * sched-ebb.c (earliest_block_with_similiar_load,
4843 add_deps_for_risky_insns): Likewise.
4844 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
4845 schedule_region): Likewise.
4846 * see.c (eq_descriptor_pre_extension,
4847 hash_descriptor_pre_extension, hash_del_pre_extension,
4848 eq_descriptor_properties, hash_descriptor_properties,
4849 hash_del_properties, see_seek_pre_extension_expr,
4850 see_initialize_data_structures, see_print_register_properties,
4851 see_print_pre_extension_expr, see_delete_merged_def_extension,
4852 see_delete_unmerged_def_extension, see_emit_use_extension,
4853 see_pre_delete_extension, see_map_extension, see_commit_changes,
4854 see_analyze_merged_def_local_prop,
4855 see_analyze_merged_def_local_prop,
4856 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4857 see_set_prop_merged_def, see_set_prop_unmerged_def,
4858 see_set_prop_unmerged_use, see_print_one_extension,
4859 see_merge_one_use_extension, see_merge_one_def_extension,
4860 see_store_reference_and_extension, see_update_uses_relevancy,
4861 see_update_defs_relevancy): Likewise.
4862 * statistics.c (hash_statistics_hash, hash_statistics_eq,
4863 hash_statistics_free, curr_statistics_hash): Likewise.
4864 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4865 expand_asm_operands, expand_return, case_bit_test_cmp,
4866 expand_case): Likewise.
4867 * stor-layout.c (start_record_layout): Likewise.
4868 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4869 gt_pch_save_stringpool): Likewise.
4870 * tree-data-ref.c (hash_stmt_vertex_info,
4871 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4872 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4874 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
4877 * config/i386/i386.md : Change constraints of HImode and QImode
4878 immediate operands from "i" to "n". Change SImode "ni" constraint to
4879 "i" and SImode "rmi" constraint to "g". Remove all constraints
4880 from const0_operand and const1_operand predicated operands.
4881 (i): Change QImode and HImode attribute from "i" to "n".
4882 (*subqi_2): Change HImode operands to QImode.
4885 2008-06-25 Olivier Hainque <hainque@adacore.com>
4887 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4890 2008-06-25 Richard Guenther <rguenther@suse.de>
4892 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4893 not overflow the result type.
4895 2008-06-25 Richard Guenther <rguenther@suse.de>
4897 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4898 (vn_lookup): Likewise.
4900 2008-06-25 Richard Guenther <rguenther@suse.de>
4902 PR tree-optimization/35518
4903 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4904 * tree-sra.c (instantiate_element): Use fold_build3 to build
4906 (try_instantiate_multiple_fields): Likewise.
4908 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4910 * config/rs6000/rs6000.md: Change all string instruction's clobber to
4913 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4915 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4916 use_backchain_to_restore_sp to true
4917 if the offset of the link register save area would go over the 32k - 1
4918 offset limit of the load
4921 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
4923 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4924 anchor for the type-punning blurb. Cross-reference "Structures
4925 unions enumerations and bit-fields implementation". Provide a
4926 cast-through-pointer example. Make final sentence self-contained.
4927 * doc/implement-c.texi (Structures unions enumerations and
4928 bit-fields implementation): Cross-reference the type-punning blurb
4929 in the -fstrict-aliasing documentation.
4931 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4934 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4935 the memory instead of the memory itself for the save area.
4937 2008-06-24 Olivier Hainque <hainque@adacore.com>
4938 Nicolas Roche <roche@adacore.com>
4940 * gengtype.c (srcdir_len): size_t instead of int.
4941 (get_file_realbasename): New function. For F a filename, the real
4942 basename of F, with all the path components stripped.
4943 (get_file_srcdir_relative_path): New function. For F a filename, the
4944 relative path to F from $(srcdir).
4945 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4946 get_file_realbasename. Adjust the head comment.
4947 (get_prefix_langdir_index): New function. For F a filename, return the
4948 lang_dir_names[] relative index of the language directory that is
4950 (get_file_langdir): For F a filename, return the name of the language
4951 directory where F is located.
4952 (get_file_gtfilename): New function. The gt- output file name for an
4954 (get_output_file_with_visibility): Replace in-line computations with
4955 uses of get_file_gtfilename and get_prefix_langdir_index.
4956 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4958 2008-06-24 Jakub Jelinek <jakub@redhat.com>
4960 PR tree-optimization/36504
4961 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4962 references without base address.
4964 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4967 * calls.c (expand_call): Increase alignment for recursive functions.
4969 2008-06-23 Anatoly Sokolov <aesok@post.ru>
4971 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4972 (TARGET_FUNCTION_VALUE): New define.
4973 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4974 * config/avr/avr.h (FUNCTION_VALUE): Remove.
4976 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4978 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4979 (fmod<mode>3): Ditto.
4980 (remainderxf3): Ditto.
4981 (remainder<mode>3): Ditto.
4983 2008-06-23 Jakub Jelinek <jakub@redhat.com>
4986 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4987 REG is a hard register.
4989 PR tree-optimization/36508
4990 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4991 499, don't check it at all in release compilers.
4993 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4995 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4996 together with SSE_TARGET_MATH to disable insn pattern.
4997 (*fop_<MODEF:mode>_2_i387): Ditto.
4998 (*fop_<MODEF:mode>_3_i387): Ditto.
5000 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
5002 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
5004 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5007 * gimplify.c (gimplify_asm_expr): Check the return code of
5008 parse_output_constraint call, set function return and is_inout
5011 2008-06-22 Ian Lance Taylor <iant@google.com>
5013 * c-lex.c (narrowest_unsigned_type): Change itk to int.
5014 (narrowest_signed_type): Likewise.
5015 * c-typeck.c (c_common_type): Change local variable mclass to enum
5017 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
5018 tcc_comparison, not the tree code itself.
5019 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
5020 (c_expand_expr): Cast modifier to enum expand_modifier.
5021 * c-common.h (C_RID_CODE): Add casts.
5022 (C_SET_RID_CODE): Define.
5023 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
5024 (c_lex_one_token): Add cast to avoid warning.
5025 (c_parser_objc_type_name): Rename local typename to type_name.
5026 (check_no_duplicate_clause): Change code parameter to enum
5028 (c_parser_omp_var_list_parens): Change kind parameter to enum
5030 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
5031 c_parser_omp_list_var_parens.
5032 (c_parser_omp_threadprivate): Likewise.
5033 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
5034 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
5035 * c-format.c (NO_FMT): Define.
5036 (printf_length_specs): Use NO_FMT.
5037 (asm_fprintf_length_specs): Likewise.
5038 (gcc_diag_length_specs): Likewise.
5039 (scanf_length_specs): Likewise.
5040 (strfmon_length_specs): Likewise.
5041 (gcc_gfc_length_specs): Likewise.
5042 (printf_flag_specs): Change 0 to STD_C89.
5043 (asm_fprintf_flag_specs): Likewise.
5044 (gcc_diag_flag_specs): Likewise.
5045 (gcc_cxxdiag_flag_specs): Likewise.
5046 (scanf_flag_specs): Likewise.
5047 (strftime_flag_specs): Likewise.
5048 (strfmon_flag_specs): Likewise.
5049 (print_char_table): Likewise.
5050 (asm_fprintf_char_table): Likewise.
5051 (gcc_diag_char_table): Likewise.
5052 (gcc_tdiag_char_table): Likewise.
5053 (gcc_cdiag_char_table): Likewise.
5054 (gcc_cxxdiag_char_table): Likewise.
5055 (gcc_gfc_char_table): Likewise.
5056 (scan_char_table): Likewise.
5057 (time_char_table): Likewis.
5058 (monetary_char_table): Likewise.
5059 * c-format.h (BADLEN): Likewise.
5061 2008-06-21 Ian Lance Taylor <iant@google.com>
5063 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
5064 Define END_OF_BASE_TREE_CODES around inclusion.
5065 * tree.c (tree_code_type): New global array.
5066 (tree_code_length, tree_code_name): Likewise.
5067 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
5069 (all-tree.def, s-alltree): New targets.
5070 (gencheck.h, s-gencheck): Remove.
5071 (tree.o): Depend upon all-tree.def.
5072 (build/gencheck.o): Remove gencheck.h dependency.
5073 (mostlyclean): Don't remove gencheck.h.
5074 * c-common.h (enum c_tree_code): Remove.
5075 * c-lang.c (tree_code_type): Remove.
5076 (tree_code_length, tree_code_name): Remove.
5077 * gencheck.c (tree_codes): Include all-tree.def, rather than
5078 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
5080 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
5082 * cp/cp-tree.h (enum cplus_tree_code): Remove.
5083 (operator_name_info): Size to MAX_TREE_CODES.
5084 (assignment_operator_name_info): Likewise.
5085 * cp/cp-lang.c (tree_code_type): Remove.
5086 (tree_code_length, tree_code_name): Remove.
5087 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
5088 (assignment_operator_name_info): Likewise.
5089 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
5091 * cp/mangle.c (write_expression): Likewise.
5092 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
5093 * fortran/f95-lang.c (tree_code_type): Remove.
5094 (tree_code_length, tree_code_name): Remove.
5095 * java/java-tree.h (enum java_tree_code): Remove.
5096 * java/lang.c (tree_code_type): Remove.
5097 (tree_code_length, tree_code_name): Remove.
5098 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
5099 * objc/objc-act.h (enum objc_tree_code): Remove.
5100 * objc/objc-lang.c (tree_code_type): Remove.
5101 (tree_code_length, tree_code_name): Remove.
5102 * objcp/objcp-lang.c (tree_code_type): Remove.
5103 (tree_code_length, tree_code_name): Remove.
5104 * ada/ada-tree.h (enum gnat_tree_code): Remove.
5105 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
5106 * ada/misc.c (tree_code_type): Remove.
5107 (tree_code_length, tree_code_name): Remove.
5109 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
5111 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
5112 the grand_bitmap_obstack.
5114 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5116 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
5117 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
5118 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
5119 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
5120 move_stmt_r, new_label_mapper): Likewise.
5121 * tree-complex.c (cvc_lookup): Likewise.
5122 * tree-dfa.c (create_function_ann): Likewise.
5123 * tree-dump.c (dump_register): Likewise.
5124 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
5125 find_phi_replacement_condition): Likewise.
5126 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
5127 tree_function_versioning): Likewise.
5128 * tree-into-ssa.c (cmp_dfsnum): Likewise.
5129 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
5130 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
5131 get_nonlocal_debug_decl, convert_nonlocal_reference,
5132 convert_nonlocal_omp_clauses, get_local_debug_decl,
5133 convert_local_reference, convert_local_omp_clauses,
5134 convert_nl_goto_reference, convert_nl_goto_receiver,
5135 convert_tramp_reference, convert_call_expr): Likewise.
5136 * tree-outof-ssa.c (contains_tree_r): Likewise.
5137 * tree-parloops.c (reduction_phi, initialize_reductions,
5138 eliminate_local_variables_1, add_field_for_reduction,
5139 add_field_for_name, create_phi_for_local_result,
5140 create_call_for_reduction_1, create_loads_for_reductions,
5141 create_stores_for_reduction, create_loads_and_stores_for_name):
5143 * tree-phinodes.c (allocate_phi_node): Likewise.
5144 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
5145 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
5146 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
5147 * tree-ssa-coalesce.c (compare_pairs): Likewise.
5148 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
5149 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
5150 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
5151 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
5152 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
5153 vn_nary_op_insert): Likewise.
5154 * tree-ssa.c (redirect_edge_var_map_add,
5155 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
5156 * tree-vectorizer.c (vectorize_loops): Likewise.
5157 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
5158 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
5159 tree_cons_stat, build1_stat, build_variant_type_copy,
5160 decl_init_priority_lookup, decl_fini_priority_lookup,
5161 decl_priority_info, decl_restrict_base_lookup,
5162 decl_restrict_base_insert, decl_debug_expr_lookup,
5163 decl_debug_expr_insert, decl_value_expr_lookup,
5164 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
5165 type_hash_add, get_file_function_name, tree_check_failed,
5166 tree_not_check_failed, tree_range_check_failed,
5167 omp_clause_range_check_failed, build_omp_clause,
5168 build_vl_exp_stat): Likewise.
5169 * value-prof.c (gimple_histogram_value,
5170 gimple_duplicate_stmt_histograms): Likewise.
5171 * var-tracking.c (attrs_list_insert, attrs_list_copy,
5172 unshare_variable, variable_union_info_cmp_pos, variable_union,
5173 dataflow_set_different_1, dataflow_set_different_2,
5174 vt_find_locations, variable_was_changed, set_variable_part,
5175 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
5176 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
5177 section_entry_hash, object_block_entry_eq,
5178 object_block_entry_hash, create_block_symbol,
5179 initialize_cold_section_name, default_function_rodata_section,
5180 strip_reg_name, set_user_assembler_name, const_desc_eq,
5181 build_constant_desc, output_constant_def, lookup_constant_def,
5182 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
5183 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
5184 default_internal_label): Likewise.
5185 * varray.c (varray_init, varray_grow): Likewise.
5186 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
5188 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
5190 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
5191 operators for "test" insn. Macroize insn using SWI mode macro.
5192 (*jcc_fused_2): Ditto.
5193 (*jcc_fused_3): Macroize insn using SWI mode macro.
5194 (*jcc_fused_4): Ditto.
5196 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
5198 * tree-ssa-pre.c: Fix typo in comment.
5199 (init_antic, fini_antic): Add explicit funtions for
5200 initializing and deinitializing ANTIC and AVAIL sets.
5201 (create_expression_by_pieces): Fix typo in comment.
5202 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
5203 (execute_pre): Eventually dump details about ANTIC_IN.
5205 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5207 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
5208 * gcc.c (translate_options, init_spec, store_arg, read_specs,
5209 add_to_obstack, file_at_path, find_a_file, execute,
5210 add_preprocessor_option, add_assembler_option, add_linker_option,
5211 process_command, insert_wrapper, do_option_spec, do_self_spec,
5212 spec_path, do_spec_1, is_directory, main, used_arg,
5213 getenv_spec_function): Likewise.
5214 * tlink.c (symbol_hash_lookup, file_hash_lookup,
5215 demangled_hash_lookup, symbol_push, file_push, frob_extension):
5218 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
5220 * doc/rtl.texi: Updated subreg section.
5222 2008-06-19 Jakub Jelinek <jakub@redhat.com>
5225 * cgraphunit.c (cgraph_process_new_functions): Don't clear
5226 node->needed and node->reachable.
5227 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
5228 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
5229 (expand_task_call): Don't call expand_task_copyfn.
5230 (expand_task_copyfn): Renamed to...
5231 (finalize_task_copyfn): ... this.
5233 2008-06-19 Jan Hubicka <jh@suse.cz>
5235 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
5236 clobbering framepointer.
5238 2008-06-19 Jan Hubicka <jh@suse.cz>
5240 * tree-optimize.c (execute_early_local_optimizations): Set
5241 cgraph_state only at first invocation.
5243 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5245 * system.h (-Wc++-compat): Activate as a warning, no an error.
5247 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
5249 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
5250 instead of "#" in insn asm template.
5251 (*jcc_fused_2): Ditto.
5253 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
5255 * config/i386/i386.h (ix86_tune_indices)
5256 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
5257 (TARGET_FUSE_CMP_AND_BRANCH): New define.
5258 * config/i386/i386.md (*jcc_fused_1): New insn pattern
5259 (*jcc_fused_2): Ditto.
5260 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
5261 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
5262 (print operand): Handle 'E' and 'e' code.
5264 2008-06-19 Anatoly Sokolov <aesok@post.ru>
5266 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
5267 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
5268 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5270 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
5272 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
5274 (cgraph_expand_function): Use local copy of decl.
5275 (cgraph_expand_all_functions): Remove redundant initialization of
5277 (cgraph_optimize): Reword internal_error message.
5279 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
5281 * arm-protos.h (arm_return_in_memory): Remove public
5282 arm_return_in_memory() prototype.
5283 * arm.c (arm_return_in_memory): Add static prototype, add target
5284 hook macro, change definition and comments.
5285 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
5287 2008-06-19 Ben Elliston <bje@au.ibm.com>
5289 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
5290 real.c: Remove references to IEEE 754R.
5291 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
5292 * doc/libgcc.texi (Decimal float library routines): Likewise.
5294 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5296 * targhooks.h (struct gcc_target): New member unwind_word_mode.
5297 (default_unwind_word_mode): Add prototype.
5298 * targhooks.c (default_unwind_word_mode): New function.
5299 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
5300 instead of word_mode.
5301 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
5302 (TARGET_INITIALIZER): Use it.
5304 * c-common.c (handle_mode_attribute): Support "unwind_word"
5306 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
5308 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
5309 word_mode to access SjLj_Function_Context member "data".
5310 (sjlj_emit_dispatch_table): Likewise. Also, perform type
5311 conversion from targetm.eh_return_filter_mode () to
5312 targetm.unwind_word_mode () if they differ.
5314 * builtin-types.def (BT_UNWINDWORD): New primitive type.
5315 (BT_FN_UNWINDWORD_PTR): New function type.
5316 (BT_FN_WORD_PTR): Remove.
5317 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
5318 * except.c (expand_builtin_extend_pointer): Convert pointer to
5319 targetm.unwind_word_mode () instead of word_mode.
5321 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
5322 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
5323 (spu_unwind_word_mode): New function.
5324 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
5325 (TARGET_UNWIND_WORD_MODE): Define.
5326 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
5328 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5330 * config/spu/spu.c (reg_align): Remove.
5331 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
5332 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
5333 (spu_split_store): Likewise.
5335 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
5337 * gcc/tree-vn.c: Fix typo in comment.
5339 2008-06-18 Jan Hubicka <jh@suse.cz>
5341 * cgraphunit.c (cgraph_optimize): Output debug info when doing
5342 toplevel reorder too.
5344 2008-06-18 Jan Hubicka <jh@suse.cz>
5346 * c-opts.c (c_common_post_options): PCH is not compatible with
5348 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
5349 -fno-toplevel-reorder by default now.
5351 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5353 PR documentation/30739
5354 * doc/install.texi (Prerequisites): Document dependency on awk.
5356 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
5357 Ian Lance Taylor <iant@google.com>
5359 PR rtl-optimization/35604
5360 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
5361 only want to change jump destinations, not eventual label comparisons.
5363 2008-06-16 Jan Hubicka <jh@suse.cz>
5365 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
5367 (cgraph_analyze_function): Likewise.
5369 2008-06-16 Jan Hubicka <jh@suse.cz>
5371 * cgraph.h (cgraph_mark_if_needed): New function.
5372 * cgraphunit.c (cgraph_mark_if_needed): New function.
5373 * c-decl.c (duplicate_decl): Use it.
5375 2008-06-16 Jan Hubicka <jh@suse.cz>
5377 * cgraph.c (cgraph_add_new_function): When in expansion state, do
5380 2008-06-16 Jan Hubicka <jh@suse.cz>
5382 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
5384 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
5385 Kazu Hirata <kazu@codesourcery.com>
5386 Maxim Kuvyrkov <maxim@codesourcery.com
5388 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
5389 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
5390 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
5391 EXTRA_SPEC_FUNCTIONS.
5392 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
5393 (DRIVER_SELF_SPECS): Adjust.
5394 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
5395 * config/mips/st.h, config/mips/t-st: New.
5396 * config/mips/driver-native.c, config/mips/x-native: New.
5397 * doc/invoke.texi (MIPS): Document 'native' value for -march and
5400 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5402 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
5404 (ISA_HAS_FP_CONDMOVE): New macro.
5405 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
5406 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
5407 (ISA_HAS_NMADD3_NMSUB3): New macro.
5408 * config/mips/mips.c (mips_rtx_costs): Update.
5409 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
5410 compiling for ST Loongson 2E/2F.
5411 (madd<mode>): Rename to madd4<mode>. Update.
5412 (madd3<mode>): New pattern.
5413 (msub<mode>): Rename to msub4<mode>. Update.
5414 (msub3<mode>): New pattern.
5415 (nmadd<mode>): Rename to nmadd4<mode>. Update.
5416 (nmadd3<mode>): New pattern.
5417 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
5418 (nmadd3<mode>_fastmath): New pattern.
5419 (nmsub<mode>): Rename to nmsub4<mode>. Update.
5420 (nmsub3<mode>): New pattern.
5421 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
5422 (nmsub3<mode>_fastmath): New pattern.
5423 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
5425 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
5427 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
5428 (DF_REF_INSN_INFO): New.
5429 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
5430 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
5431 with a NULL DF_REF_INSN_INFO.
5432 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
5434 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
5435 DF_INSN_INFO_EQ_USES): New.
5436 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
5437 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
5438 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
5439 * df-core.c: Update comment for above changes.
5440 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
5441 DF_INSN_UID_* macros.
5442 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
5443 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
5444 insn rtx. Update all callers.
5445 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
5446 df_ref_create_structure, df_insn_refs_collect): Likewise.
5447 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
5448 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
5449 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
5450 macros to access the insn refs.
5451 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
5452 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
5453 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
5454 for accessing the refs.
5455 (try_fwprop_subst): Likewise.
5456 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
5457 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
5458 for accessing the refs.
5459 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
5460 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
5461 to look at the insn refs.
5462 (record_uses): Likewise.
5463 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
5465 (mark_artificial_uses): Don't mark_insn for artificial refs.
5466 (mark_reg_rependencies): Likewise.
5468 * doc/rtl.texi: Remove documentation of ADDRESSOF.
5470 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5472 * configure: Regenerate.
5474 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
5476 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
5477 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5478 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5480 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
5482 * config/avr/avr.c (avr_mcu_t): Add attiny167.
5483 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5484 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5486 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
5488 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
5489 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5490 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5492 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
5494 * tree-ssa-sccvn.c: Fix format of comments.
5496 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
5498 * cgraph.c: Remove unneeded forward declarations of eq_node()
5501 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
5503 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
5505 (see_update_relevancy): Likewise.
5506 * fwprop.c (try_fwprop_subst): Likewise.
5507 * rtlanal.c (noop_move_p): Likewise.
5508 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
5509 notes to non-existing libcall blocks.
5510 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
5512 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
5513 (dead_libcall_p): Remove.
5514 (delete_trivially_dead_insns): Don't use it.
5515 * web.c (union_defs): Remove comment about keeping nops.
5516 * gcse.c (hash_scan_insn): Don't take libcall pointers.
5517 (compute_hash_table_work): Don't track libcall notes.
5518 (do_local_cprop): Don't take libcall pointers. Don't update
5520 (adjust_libcall_notes): Deleted.
5521 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
5522 ever have existed in the first place).
5523 (replace_store_insn): Don't try to remove libcall notes.
5524 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
5525 (resolve_reg_notes): Don't call them.
5526 (resolve_simple_move): Likewise.
5527 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
5528 Don't remove REG_RETVAL notes.
5529 * emit-rtl.c (try_split): Don't update libcall notes.
5530 (emit_copy_of_insn_after): Dito.
5531 * cselib.c (cselib_current_insn_in_libcall): Remove.
5532 (cselib_process_insn): Don't set/clear it.
5533 (new_elt_loc_list): Don't record it.
5534 (cselib_init): Don't initialize it.
5535 * cselib.c (struct elt_loc_list): Remove in_libcall field.
5536 * loop-invariant.c (find_invariant_insn): Don't look for libcall
5538 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
5539 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
5540 (init_deps): Don't initialize it.
5541 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
5542 * combine.c (delete_noop_moves): Don't update libcall notes.
5543 (can_combine_p): Remove now pointless #if 0 block.
5544 (try_combine): Remove another obsolete #if 0 block.
5545 (distribute_notes): Don't distribute libcall notes.
5546 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
5547 * dce.c (libcall_dead_p): Remove.
5548 (delete_unmarked_insns): Don't handle libcall blocks.
5549 (preserve_libcall_for_dce): Remove.
5550 (prescan_insns_for_dce): Don't special-case libcall block insns.
5551 * reload1 (reload): Don't handle libcall notes.
5552 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
5555 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
5557 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
5558 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5559 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5561 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
5563 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
5564 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5565 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5567 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5569 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
5571 2008-06-16 Ira Rosen <irar@il.ibm.com>
5573 PR tree-optimization/36493
5574 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
5575 the arguments list. Use VECTYPE to create vector pointer.
5576 (vectorizable_store): Fail if accesses through a pointer to vectype
5577 do not alias the original memory reference operands.
5578 Call vect_create_data_ref_ptr without the removed argument.
5579 (vectorizable_load): Likewise.
5580 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
5583 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
5586 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
5589 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5591 * config/mips/loongson2ef.md: New file.
5592 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5593 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5594 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5595 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
5596 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
5598 (loongson2ef.md): New include.
5599 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
5600 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
5601 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
5602 (loongson_gt_<mode>, loongson_extract_halfword)
5603 (loongson_insert_halfword_0, loongson_insert_halfword_2)
5604 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
5605 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
5606 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
5607 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
5608 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
5609 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
5610 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
5611 (vec_interleave_low<mode>): Define type attribute.
5612 * config/mips/mips.c (mips_ls2): New static variable.
5613 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
5614 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
5615 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
5616 Implement target scheduling hooks.
5617 (mips_multipass_dfa_lookahead): Update to handle tuning for
5619 (mips_sched_init): Initialize data for Loongson scheduling.
5620 (mips_ls2_variable_issue): New static function.
5621 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
5623 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
5624 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
5625 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
5626 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
5627 Handle ST Loongson 2E/2F cores.
5628 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
5630 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5632 * omp-low.c (extract_omp_for_data): Fix comment typo.
5635 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5637 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
5638 FIXME note about gcc/config.guess.
5639 * doc/options.texi (Option file format): Remove non-ASCII bytes.
5640 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
5641 * doc/cppopts.texi: Likewise.
5642 * doc/extend.texi: Likewise.
5643 * doc/gcc.texi: Likewise.
5644 * doc/gccint.texi: Likewise.
5645 * doc/gcov.texi: Likewise.
5646 * doc/gty.texi: Likewise.
5647 * doc/hostconfig.texi: Likewise.
5648 * doc/install.texi: Likewise.
5649 * doc/invoke.texi: Likewise.
5650 * doc/loop.texi: Likewise.
5651 * doc/makefile.texi: Likewise.
5652 * doc/md.texi: Likewise.
5653 * doc/passes.texi: Likewise.
5654 * doc/tm.texi: Likewise.
5655 * doc/tree-ssa.texi: Likewise.
5656 * doc/trouble.texi: Likewise.
5658 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
5659 Nathan Sidwell <nathan@codesourcery.com>
5660 Maxim Kuvyrkov <maxim@codesourcery.com>
5661 Richard Sandiford <rdsandiford@googlemail.com>
5663 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
5664 * config/mips/mips-protos.h (mips_expand_vector_init): New.
5665 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
5667 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
5668 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
5669 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
5671 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
5672 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
5673 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
5674 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
5675 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
5676 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
5677 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
5678 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
5679 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
5680 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
5681 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
5682 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
5683 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
5684 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
5685 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
5686 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
5687 (mips_builtins): Add Loongson builtins.
5688 (mips_loongson_2ef_bdesc): New.
5689 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
5690 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
5691 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
5692 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
5694 (mips_expand_vector_init): New.
5695 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
5696 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
5698 * config/mips/mips.md: Add unspec numbers for Loongson
5699 builtins. Include loongson.md.
5700 (MOVE64): Include Loongson vector modes.
5701 (SPLITF): Include Loongson vector modes.
5702 (HALFMODE): Handle Loongson vector modes.
5703 * config/mips/loongson.md: New.
5704 * config/mips/loongson.h: New.
5705 * config.gcc: Add loongson.h header for mips*-*-* targets.
5706 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
5708 2008-06-14 Joseph Myers <joseph@codesourcery.com>
5710 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
5711 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
5712 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
5713 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
5714 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
5715 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
5716 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
5717 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
5718 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
5719 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
5720 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
5721 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
5722 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
5723 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
5724 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
5725 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
5726 Remove use_fixproto=yes.
5727 (ia64*-*-hpux*): Remove comment about using fixproto.
5728 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
5730 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5732 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
5734 * configure: Regenerate.
5736 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
5739 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
5740 before evaluating it.
5742 2008-06-13 Jakub Jelinek <jakub@redhat.com>
5745 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
5746 nested inline functions.
5747 (start_decl, start_function): Don't invert DECL_EXTERNAL
5748 for nested inline functions.
5750 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5752 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
5753 splits that must be made for correctness.
5755 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5757 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
5758 (AVAIL_NON_MIPS16): Likewise.
5759 (mips_builtin_description): Replace target_flags with a predicate.
5760 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
5761 (dspr2_32): New availability predicates.
5762 (MIPS_BUILTIN): New macro.
5763 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
5764 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
5765 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
5766 Replace the TARGET_FLAGS parameters with AVAIL parameters.
5767 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
5768 (mips_dsp_32only_bdesc): Merge into...
5769 (mips_builtins): ...this new array.
5770 (mips_bdesc_map, mips_bdesc_arrays): Delete.
5771 (mips_init_builtins): Update after above changes.
5772 (mips_expand_builtin_1): Merge into...
5773 (mips_expand_builtin): ...here and update after above changes.
5775 2008-06-12 Paul Brook <paul@codesourcery.com>
5777 * longlong.h (__arm__): Define count_leading_zeros.
5778 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
5779 (clzsi2, clzdi2): New functions.
5780 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
5781 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
5782 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
5783 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
5784 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
5785 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
5786 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
5787 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5788 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
5789 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
5791 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
5793 * config/m68k/m68k.c (m68k_tune_flags): New.
5794 (override_options): Compute m68k_tune_flags.
5795 (MULL_COST, MULW_COST): Update for various variants of CFV2.
5796 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
5798 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5801 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
5803 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5805 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
5806 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
5808 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5810 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
5811 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
5813 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5816 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
5819 2008-06-12 Richard Guenther <rguenther@suse.de>
5821 PR tree-optimization/36345
5822 * tree-flow.h (struct ptr_info_def): Align escape_mask,
5823 add memory_tag_needed flag.
5824 (may_alias_p): Declare.
5825 * tree-ssa-alias.c (may_alias_p): Export.
5826 (set_initial_properties): Use memory_tag_needed flag.
5827 (update_reference_counts): Likewise.
5828 (reset_alias_info): Reset memory_tag_needed flag.
5829 (create_name_tags): Check memory_tag_needed flag.
5830 (dump_points_to_info_for): Dump it.
5831 * tree-ssa-structalias.c (struct variable_info): Remove
5832 directly_dereferenced flag.
5833 (new_var_info): Do not initialize it.
5834 (process_constraint_1): Do not set it.
5835 (update_alias_info): Set is_dereferenced flag.
5836 (set_uids_in_ptset): Use may_alias_p.
5837 (set_used_smts): Check memory_tag_needed flag.
5838 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
5839 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
5840 memory_tag_needed flag.
5841 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
5844 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
5846 * config/i386/i386.c (ix86_compute_frame_layout): Disable
5847 red zone for w64 abi.
5848 (ix86_expand_prologue): Likewise.
5849 (ix86_force_to_memory): Likewise.
5850 (ix86_free_from_memory): Likewise.
5852 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
5855 * config/rs6000/rs6000.c (rs6000_override_options): Set
5856 rs6000_isel conditionally to the absence of comand line override.
5857 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5858 Remove duplicate rs6000_isel setting.
5859 * config/rs6000/eabispe.h: Ditto.
5861 2008-06-11 Richard Guenther <rguenther@suse.de>
5863 * alias.c (get_alias_set): Use the element alias-set for arrays.
5864 (record_component_aliases): For arrays and vectors do nothing.
5865 * c-common.c (strict_aliasing_warning): Handle the cases
5866 of alias set zero explicitly.
5867 * Makefile.in (dfp.o-warn): Add -Wno-error.
5869 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5871 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5873 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5874 tune_32 tune_64 to supported_defaults. Allow values not
5875 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5876 x86_64. Do not override cpu_32 or cpu_64 values from target name.
5877 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5878 with_cpu_64 to generic for 64-bit-supporting configurations, not
5879 with_cpu. Remove FIXMEs.
5880 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5881 --with-arch-64, --with-tune-32, --with-tune-64): Document.
5882 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5883 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5884 arch_32 and arch_64.
5886 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
5887 Olivier Hainque <hainque@adacore.com>
5889 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5890 Use DECL_SIZE_UNIT to retrieve the size of the field.
5892 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5894 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5895 with function calls after declarations. Lay out
5896 neon_float_type_node before further use.
5898 2008-06-11 Richard Guenther <rguenther@suse.de>
5900 * tree-flow.h (may_point_to_global_var): Declare.
5901 * tree-ssa-alias.c (may_point_to_global_var): New function.
5902 * tree-ssa-sink.c (is_hidden_global_store): Use it.
5904 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
5906 * configure.ac: Teach that fido supports .debug_line.
5907 * configure: Regenerate.
5909 2008-06-10 Tom Tromey <tromey@redhat.com>
5911 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5914 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5916 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5917 (encode_decimal64, decode_decimal64, encode_decimal128,
5918 decode_decimal128): Reverse order of 32-bit parts of value if host
5919 and target endianness differ.
5921 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
5923 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5924 Avoid division by 0.
5925 (tree_mod_pow2_value_transform): Likewise.
5926 (tree_ic_transform): Likewise.
5927 (tree_stringops_transform): Likewise.
5928 (tree_mod_subtract_transform): Likewise.
5929 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5930 (copy_edges_for_bb): Likewise.
5931 (initialize_cfun): Likewise.
5933 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5935 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5936 nonmemory_operand. Add "N" operand constraint.
5938 (*jcc_btdi_mask_rex64): New instruction and split pattern.
5939 (*jcc_btsi_mask): Ditto.
5940 (*jcc_btsi_mask_1): Ditto.
5942 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5944 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5945 TYPE_CANONICAL for copied element type.
5947 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5950 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5951 Add m_CORE2 and m_GENERIC.
5952 * config/i386/predicates.md (bt_comparison_operator): New predicate.
5953 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5955 (*jcc_btdi_rex64): New instruction and split pattern.
5957 (*jcc_btsi_1): Ditto.
5958 (*btsq): Fix Intel asm dialect operand order.
5962 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
5965 * simplify-rtx.c (simplify_subreg): Add check for shift count
5968 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
5970 * doc/md.texi: Synchronize with later constraints.md change.
5971 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5972 with a C implementation.
5973 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5975 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5976 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5977 when moving to and from MD_REGNUM.
5978 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5979 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5980 Handle byte and halfword moves.
5981 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5983 * config/mips/constraints.md (h): Turn into NO_REGS.
5984 (l, x): Update documentation.
5985 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5986 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5987 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5988 (HILO): New mode iterator.
5990 (any_div): New code iterator.
5991 (u): Extend code attribute to div and udiv.
5992 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5993 d_operand in the splitters. Remove redundant CONST_INT checks.
5994 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5995 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5996 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
5997 accordingly, using normal moves instead of unspecs to move LO into
5998 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
5999 (<u>mulsidi3): Handle expansion in C code.
6000 (<u>mulsidi3_32bit_internal): Rename to...
6001 (<u>mulsidi3_32bit): ...this.
6002 (<u>mulsidi3_32bit_r4000): Fix insn separator.
6003 (*<u>mulsidi3_64bit): Rename to...
6004 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
6005 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
6006 to set LO and HI to the multiplication result. Use a normal move
6007 for MFLO and an unspec for MFHI.
6008 (*<u>mulsidi3_64bit_parts): Replace with...
6009 (<u>mulsidi3_64bit_hilo): ...this new instruction.
6010 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
6011 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
6012 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
6013 instead of HI. Split the instruction into a separate multiplication
6014 and MFHI if !TARGET_FIX_R4000.
6015 (<su>muldi3_highpart): Likewise.
6016 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
6017 and the "=h" clobber.
6018 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
6019 (<u>mulditi3): New expander.
6020 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
6021 (madsi): Remove "=h" clobber.
6022 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
6023 Force the modulus result to be a GPR and split the instruction into
6024 a division followed by an MFHI after reload.
6025 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
6026 (*lea_high64): Use d_operand in the define_peephole2. Likewise
6027 the MIPS16 HIGH define_split.
6028 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
6029 of acc<->gpr moves to "multi".
6030 (*movdi_64bit): Replace the single "x" alternative with
6031 alternatives for moving into and out of "a".
6032 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
6033 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
6034 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
6035 Use d_operand in the splitters. Remove redundant CONST_INT checks.
6036 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
6037 (movti): New expander.
6038 (*movti, *movti_mips16): New insns.
6039 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
6040 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
6041 (mthi<GPR:mode>_<HILO:mode>): Likewise.
6042 * config/mips/predicates.md (fpr_operand): Delete.
6043 (d_operand): New predicate.
6045 2008-06-09 Michael Meissner <michael.meissner@amd.com>
6047 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
6048 failure on some Bourne shells.
6049 (x86_64-*-*): Ditto.
6051 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
6053 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
6055 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
6057 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
6058 (sparc-sun-solaris2*): Likewise.
6060 2008-06-09 Arnaud Charlet <charlet@adacore.com
6062 * doc/install.texi: Update requirements to build the Ada compiler.
6064 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
6066 * df-scan.c (struct df_scan_problem_data): Remove the
6067 mw_link_pool alloc pool.
6068 (df_scan_free_internal): Don't free it.
6069 (df_scan_alloc): Don't allocate it.
6070 * df.h (struct df_link): Update comment.
6072 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
6074 * except.h: Correct checks for when SJLJ exceptions must be used.
6076 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6078 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
6081 2008-06-08 Joseph Myers <joseph@codesourcery.com>
6083 PR tree-optimization/36218
6084 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
6085 configure for the build system.
6086 (BUILD_LDFLAGS): Define.
6087 * configure: Regenerate.
6088 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
6090 2008-07-08 Anatoly Sokolov <aesok@post.ru>
6093 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
6094 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
6095 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
6097 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
6099 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
6101 2008-06-07 Joseph Myers <joseph@codesourcery.com>
6103 * config.gcc (Obsolete configurations): Remove list of
6105 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
6106 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
6107 targets matched by those patterns.
6108 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
6109 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
6110 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
6111 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
6112 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
6113 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
6114 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
6115 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
6116 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
6117 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
6118 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
6119 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
6120 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
6121 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
6122 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
6123 Make code for Solaris 7 and greater unconditional for Solaris.
6124 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
6125 Remove --with-* handling.
6126 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
6127 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
6128 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
6129 LINK_OS_WINDISS_SPEC): Remove.
6130 * config/rs6000/sysv4.opt (mwindiss): Remove.
6131 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
6132 * configure: Regenerate.
6133 * doc/cpp.texi: Don't mention BeOS.
6134 * doc/extend.texi (interrupt): Don't mention MS1.
6135 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
6136 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
6137 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
6138 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
6139 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
6141 * doc/invoke.texi (MT Options): Remove.
6142 (-mwindiss): Remove.
6143 (CRIS Options): Remove cris-axis-aout references.
6144 (HPPA Options): Don't mention hppa1.1-*-pro.
6145 * doc/md.texi: (MorphoTech family): Remove.
6146 * libgcc2.c: Don't handle UWIN.
6147 * config/alpha/t-unicosmk: Remove.
6148 * config/alpha/unicosmk.h: Remove.
6149 * config/arm/kaos-arm.h: Remove.
6150 * config/arm/kaos-strongarm.h: Remove.
6151 * config/arm/strongarm-coff.h: Remove.
6152 * config/arm/strongarm-elf.h: Remove.
6153 * config/arm/strongarm-pe.h: Remove.
6154 * config/arm/t-strongarm-pe: Remove.
6155 * config/arm/t-xscale-coff: Remove.
6156 * config/arm/t-xscale-elf: Remove.
6157 * config/arm/xscale-coff.h: Remove.
6158 * config/arm/xscale-elf.h: Remove.
6159 * config/chorus.h: Remove.
6160 * config/cris/aout.h: Remove.
6161 * config/cris/aout.opt: Remove.
6162 * config/cris/t-aout: Remove.
6163 * config/i386/beos-elf.h: Remove.
6164 * config/i386/kaos-i386.h: Remove.
6165 * config/i386/ptx4-i.h: Remove.
6166 * config/i386/sco5.h: Remove.
6167 * config/i386/sco5.opt: Remove.
6168 * config/i386/sysv4-cpp.h: Remove.
6169 * config/i386/sysv5.h: Remove.
6170 * config/i386/t-beos: Remove.
6171 * config/i386/t-sco5: Remove.
6172 * config/i386/t-uwin: Remove.
6173 * config/i386/uwin.asm: Remove.
6174 * config/i386/uwin.h: Remove.
6175 * config/kaos.h: Remove.
6176 * config/mips/windiss.h: Remove.
6177 * config/mt: Remove directory.
6178 * config/pa/pa-osf.h: Remove.
6179 * config/pa/pa-pro-end.h: Remove.
6180 * config/pa/t-pro: Remove.
6181 * config/ptx4.h: Remove.
6182 * config/rs6000/beos.h: Remove.
6183 * config/rs6000/kaos-ppc.h: Remove.
6184 * config/rs6000/t-beos: Remove.
6185 * config/rs6000/windiss.h: Remove.
6186 * config/sh/kaos-sh.h: Remove.
6187 * config/sol2-6.h: Remove.
6188 * config/sparc/sol26-sld.h: Remove.
6189 * config/sparc/sysv4-only.h: Remove.
6190 * config/vax/bsd.h: Remove.
6191 * config/vax/t-memfuncs: Remove.
6192 * config/vax/ultrix.h: Remove.
6193 * config/vax/vaxv.h: Remove.
6194 * config/windiss.h: Remove.
6196 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
6198 PR rtl-optimization/36438
6199 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
6200 for vector shifts with constant scalar shift operands.
6202 2008-06-06 Sandip Matte <sandip@rmicorp.com>
6204 * doc/invoke.texi: Document -march=xlr.
6205 * config/mips/xlr.md: New file.
6206 * config/mips/mips.md: Include it.
6208 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
6209 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
6210 (mips_rtx_cost_data): Likewise.
6212 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
6214 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
6215 PRE_INC and PRE_DEC cases.
6217 2008-06-06 Jakub Jelinek <jakub@redhat.com>
6219 PR rtl-optimization/36419
6220 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
6221 the emitting jump insn.
6224 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
6225 is not bool, boolify the whole *expr_p and convert to the desired type.
6227 2008-06-06 Jakub Jelinek <jakub@redhat.com>
6229 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
6230 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
6231 Add omp_private_outer_ref hook, add another argument to
6232 omp_clause_default_ctor hook.
6233 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
6234 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
6235 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
6236 hook_tree_tree_tree_tree_null.
6237 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
6238 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
6239 * hooks.c (hook_tree_tree_tree_tree_null): New function.
6240 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
6241 * tree.def (OMP_TASK): New tree code.
6242 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
6243 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
6244 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
6245 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
6246 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
6247 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
6248 OMP_CLAUSE_COLLAPSE_EXPR): Define.
6249 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
6250 (OMP_DIRECTIVE_P): Add OMP_TASK.
6251 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
6252 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
6253 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
6254 and OMP_CLAUSE_UNTIED entries.
6255 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
6257 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6258 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
6259 * tree-pretty-print.c (dump_omp_clause): Handle
6260 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
6261 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
6262 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
6263 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
6264 warning about unsigned iterators. Change decl/init/cond/incr
6265 arguments to TREE_VECs, check arguments for all collapsed loops.
6266 (c_finish_omp_taskwait): New function.
6267 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
6269 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
6270 default_function_array_conversion on init. Add par_clauses argument.
6271 If decl is present in parallel's lastprivate clause, change it to
6272 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
6273 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
6274 collapse count in clauses.
6275 (c_parser_omp_for, c_parser_omp_parallel): Adjust
6276 c_parser_omp_for_loop callers.
6277 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
6278 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
6279 (c_parser_omp_clause_name): Handle collapse and untied clauses.
6280 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
6282 (c_parser_omp_clause_schedule): Handle schedule(auto).
6283 Include correct location in the error message.
6284 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
6285 and PRAGMA_OMP_CLAUSE_UNTIED.
6286 (OMP_TASK_CLAUSE_MASK): Define.
6287 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
6288 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
6289 * tree-nested.c (convert_nonlocal_omp_clauses,
6290 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
6291 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
6292 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6293 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
6295 (conver_nonlocal_reference, convert_local_reference,
6296 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
6297 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
6298 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
6299 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
6300 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
6301 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
6302 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
6303 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
6304 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
6306 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
6307 * c-common.h (c_finish_omp_taskwait): New prototype.
6308 * gimple-low.c (lower_stmt): Handle OMP_TASK.
6309 * tree-parloops.c (create_parallel_loop): Create 1 entry
6310 vectors for OMP_FOR_{INIT,COND,INCR}.
6311 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6312 (make_edges): Handle OMP_TASK.
6313 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
6314 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6315 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
6316 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
6317 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
6318 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
6319 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
6320 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
6321 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
6322 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
6323 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
6324 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
6325 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
6326 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
6327 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
6328 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
6329 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
6330 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
6331 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
6332 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
6333 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
6334 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
6335 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
6336 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
6337 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
6338 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
6339 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
6340 original iterator is present in lastprivate clause or if
6341 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
6342 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6343 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
6344 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
6345 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
6346 if it is set, lookup var in outer contexts too. Handle
6347 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
6348 to be implicitly determined firstprivate for task regions.
6349 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
6350 if it is set, lookup var in outer contexts too. Set
6351 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
6352 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
6353 OMP_CLAUSE_UNTIED. Take region_type as last argument
6354 instead of in_parallel and in_combined_parallel.
6355 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
6357 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
6358 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
6359 (new_omp_context): Set default_kind to
6360 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
6361 (omp_region_type): New enum.
6362 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
6363 fields, add region_type.
6364 (new_omp_context): Take region_type as argument instead of is_parallel
6365 and is_combined_parallel.
6366 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
6367 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
6368 ctx->is_combined_parallel checks.
6369 (gimplify_omp_task): New function.
6370 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
6372 * omp-low.c (extract_omp_for_data): Use schedule(static)
6373 for schedule(auto). Handle pointer and unsigned iterators.
6374 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
6375 Add loops argument. Extract data for collapsed OMP_FOR loops.
6376 (expand_parallel_call): Assert sched_kind isn't auto,
6377 map runtime schedule to index 3.
6378 (struct omp_for_data_loop): New type.
6379 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
6380 Add loop, loops, collapse and iter_type fields.
6381 (workshare_safe_to_combine_p): Disallow combined for if
6382 iter_type is unsigned long long. Don't combine collapse > 1 loops
6383 unless all bounds and steps are constant. Adjust extract_omp_for_data
6385 (expand_omp_for_generic): Handle pointer, unsigned and long long
6386 iterators. Handle collapsed OMP_FOR loops. Adjust
6387 for struct omp_for_data changes. If libgomp function doesn't return
6388 boolean_type_node, add comparison of the return value with 0.
6389 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
6390 pointer, unsigned and long long iterators. Adjust for struct
6391 omp_for_data changes.
6392 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
6393 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
6394 unsigned long long. Allocate loops array, pass it to
6395 extract_omp_for_data. For collapse > 1 loops use always
6396 expand_omp_for_generic.
6397 (omp_context): Add sfield_map and srecord_type fields.
6398 (is_task_ctx, lookup_sfield): New functions.
6399 (use_pointer_for_field): Use is_task_ctx helper. Change first
6400 argument's type from const_tree to tree. Clarify comment.
6401 In OMP_TASK disallow copy-in/out sharing.
6402 (build_sender_ref): Call lookup_sfield instead of lookup_field.
6403 (install_var_field): Add mask argument. Populate both record_type
6404 and srecord_type if needed.
6405 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
6407 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
6408 and DECL_FIELD_OFFSET.
6409 (scan_sharing_clauses): Adjust install_var_field callers. For
6410 firstprivate clauses on explicit tasks allocate the var by value in
6411 record_type unconditionally, rather than by reference.
6412 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
6413 Use is_taskreg_ctx instead of is_parallel_ctx.
6414 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6415 (create_omp_child_function_name): Add task_copy argument, use
6416 *_omp_cpyfn* names if it is true.
6417 (create_omp_child_function): Add task_copy argument, if true create
6418 *_omp_cpyfn* helper function.
6419 (scan_omp_parallel): Adjust create_omp_child_function callers.
6420 Rename parallel_nesting_level to taskreg_nesting_level.
6421 (scan_omp_task): New function.
6422 (lower_rec_input_clauses): Don't run constructors for firstprivate
6423 explicit task vars which are initialized by *_omp_cpyfn*.
6424 Pass outer var ref to omp_clause_default_ctor hook if
6425 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
6426 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
6427 OMP_CLAUSE_REDUCTION_INIT.
6428 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
6429 avoid duplicate setting of fields. Handle
6430 OMP_CLAUSE_PRIVATE_OUTER_REF.
6431 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
6432 copy-out if TREE_READONLY, only copy-in.
6433 (expand_task_copyfn): New function.
6434 (expand_task_call): New function.
6435 (struct omp_taskcopy_context): New type.
6436 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
6438 (lower_omp_parallel): Rename to...
6439 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
6440 Call create_task_copyfn if srecord_type is needed. Adjust
6442 (task_shared_vars): New variable.
6443 (check_omp_nesting_restrictions): Warn if work-sharing,
6444 barrier, master or ordered region is closely nested inside OMP_TASK.
6445 Add warnings for barrier if closely nested inside of work-sharing,
6446 ordered, or master region.
6447 (scan_omp_1): Call check_omp_nesting_restrictions even for
6448 GOMP_barrier calls. Rename parallel_nesting_level to
6449 taskreg_nesting_level. Handle OMP_TASK.
6450 (lower_lastprivate_clauses): Even if some lastprivate is found on a
6451 work-sharing construct, continue looking for them on parent parallel
6453 (lower_omp_for_lastprivate): Add lastprivate clauses
6454 to the beginning of dlist rather than end. Adjust for struct
6455 omp_for_data changes.
6456 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
6457 not after it. Handle collapsed OMP_FOR loops, adjust for
6458 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
6459 (get_ws_args_for): Adjust extract_omp_for_data caller.
6460 (scan_omp_for): Handle collapsed OMP_FOR
6461 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6462 (lower_omp_single_simple): If libgomp function doesn't return
6463 boolean_type_node, add comparison of the return value with 0.
6464 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
6465 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
6466 (parallel_nesting_level): Rename to...
6467 (taskreg_nesting_level): ... this.
6468 (is_taskreg_ctx): New function.
6469 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
6471 (execute_lower_omp): Rename parallel_nesting_level to
6472 taskreg_nesting_level.
6473 (expand_omp_parallel): Rename to...
6474 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
6475 Call omp_task_call for OMP_TASK regions.
6476 (expand_omp): Adjust caller, handle OMP_TASK.
6477 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
6479 * bitmap.c (bitmap_default_obstack_depth): New variable.
6480 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
6481 if argument is NULL and bitmap_default_obstack is already initialized.
6482 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
6484 * matrix-reorg.c (matrix_reorg): Likewise.
6486 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
6488 * config/i386/i386.md (*indirect_jump): Macroize using P
6489 mode iterator. Remove !TARGET_64BIT from insn constraints.
6490 (*tablejump_1): Ditto.
6491 (*indirect_jump_rex64): Remove insn pattern.
6492 (*tablejump_1_rex64): Ditto.
6493 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
6494 and eh_return_si insn patterns.
6496 2008-06-06 Richard Guenther <rguenther@suse.de>
6498 * tree-ssa-structalias.c (merge_smts_into): Remove.
6499 (find_what_p_points_to): Do not bother to compute the
6500 points-to set for pt_anything pointers.
6501 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
6502 for pt_anything pointers is ok.
6504 2008-06-06 Jan Hubicka <jh@suse.cz>
6506 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
6508 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6510 * cgraph.c: Fix typos in comments.
6511 (cgraph_availability_names): Fix string typo.
6512 * fold-const.c: Fix typos in comments.
6513 (fold_binary): Fix typo in warning.
6514 * genautomata.c: Fix typos in comments.
6515 (check_presence_pattern_sets): Fix typo in local variable.
6516 (output_description): Fix typo in output.
6517 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
6518 * hwint.h: Likewise.
6519 * matrix-reorg.c (check_allocation_function): Likewise.
6520 * omega.c (smooth_weird_equations): Likewise.
6521 * auto-inc-dec.c: Fix typos in comments.
6522 * bb-reorder.c: Likewise.
6523 * builtins.c: Likewise.
6524 * c-common.c: Likewise.
6525 * c-cppbuiltin.c: Likewise.
6526 * c-parser.c: Likewise.
6527 * c-pretty-print.c: Likewise.
6528 * cfgcleanup.c: Likewise.
6529 * cfgexpand.c: Likewise.
6530 * cfghooks.c: Likewise.
6531 * cfglayout.c: Likewise.
6532 * cfgloopmanip.c: Likewise.
6533 * cgraphunit.c: Likewise.
6534 * coverage.c: Likewise.
6535 * dbxout.c: Likewise.
6536 * df-byte-scan.c: Likewise.
6537 * df-core.c: Likewise.
6538 * df-problems.c: Likewise.
6539 * df-scan.c: Likewise.
6541 * dominance.c: Likewise.
6542 * domwalk.c: Likewise.
6544 * dwarf2out.c: Likewise.
6545 * emit-rtl.c: Likewise.
6546 * et-forest.c: Likewise.
6547 * function.c: Likewise.
6548 * function.h: Likewise.
6550 * gcov-io.c: Likewise.
6553 * genattrtab.c: Likewise.
6554 * ggc-page.c: Likewise.
6555 * gimplify.c: Likewise.
6556 * gthr-lynx.h: Likewise.
6557 * haifa-sched.c: Likewise.
6558 * ipa-cp.c: Likewise.
6559 * ipa-inline.c: Likewise.
6560 * ipa-prop.h: Likewise.
6561 * ipa-pure-const.c: Likewise.
6562 * ipa-struct-reorg.c: Likewise.
6563 * ipa-struct-reorg.h: Likewise.
6564 * ipa-type-escape.c: Likewise.
6566 * loop-doloop.c: Likewise.
6567 * mips-tfile.c: Likewise.
6568 * mkmap-flat.awk: Likewise.
6569 * mkmap-symver.awk: Likewise.
6570 * modulo-sched.c: Likewise.
6571 * omp-low.c: Likewise.
6572 * optabs.c: Likewise.
6573 * optabs.h: Likewise.
6575 * passes.c: Likewise.
6576 * postreload-gcse.c: Likewise.
6577 * postreload.c: Likewise.
6578 * predict.c: Likewise.
6579 * pretty-print.h: Likewise.
6580 * profile.c: Likewise.
6581 * protoize.c: Likewise.
6582 * ra-conflict.c: Likewise.
6584 * recog.c: Likewise.
6585 * regclass.c: Likewise.
6587 * reload.c: Likewise.
6588 * rtl-error.c: Likewise.
6589 * rtlanal.c: Likewise.
6591 * sched-rgn.c: Likewise.
6594 * target.h: Likewise.
6595 * tree-dfa.c: Likewise.
6596 * tree-eh.c: Likewise.
6597 * tree-flow-inline.h: Likewise.
6598 * tree-inline.c: Likewise.
6599 * tree-into-ssa.c: Likewise.
6600 * tree-loop-distribution.c: Likewise.
6601 * tree-nested.c: Likewise.
6602 * tree-parloops.c: Likewise.
6603 * tree-pass.h: Likewise.
6604 * tree-pretty-print.c: Likewise.
6605 * tree-profile.c: Likewise.
6606 * tree-scalar-evolution.c: Likewise.
6607 * tree-sra.c: Likewise.
6608 * tree-ssa-alias-warnings.c: Likewise.
6609 * tree-ssa-ccp.c: Likewise.
6610 * tree-ssa-coalesce.c: Likewise.
6611 * tree-ssa-dom.c: Likewise.
6612 * tree-ssa-dse.c: Likewise.
6613 * tree-ssa-forwprop.c: Likewise.
6614 * tree-ssa-live.c: Likewise.
6615 * tree-ssa-live.h: Likewise.
6616 * tree-ssa-loop-im.c: Likewise.
6617 * tree-ssa-loop-ivopts.c: Likewise.
6618 * tree-ssa-loop-niter.c: Likewise.
6619 * tree-ssa-loop-prefetch.c: Likewise.
6620 * tree-ssa-phiopt.c: Likewise.
6621 * tree-ssa-phiprop.c: Likewise.
6622 * tree-ssa-sccvn.c: Likewise.
6623 * tree-ssa-ter.c: Likewise.
6624 * tree-ssa-threadupdate.c: Likewise.
6625 * tree-ssa.c: Likewise.
6626 * tree-vect-analyze.c: Likewise.
6627 * tree-vect-transform.c: Likewise.
6628 * tree-vectorizer.c: Likewise.
6629 * tree-vn.c: Likewise.
6630 * tree-vrp.c: Likewise.
6632 * tree.def: Likewise.
6634 * unwind-dw2-fde.c: Likewise.
6635 * unwind.inc: Likewise.
6636 * value-prof.c: Likewise.
6637 * vmsdbgout.c: Likewise.
6639 2008-06-05 David Edelsohn <edelsohn@gnu.org>
6641 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
6642 always place FP constants in the TOC for TARGET_POWERPC64.
6643 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
6645 2008-06-05 Joseph Myers <joseph@codesourcery.com>
6647 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
6648 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
6649 enable for TARGET_E500_DOUBLE.
6650 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
6651 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
6652 floating-point modes like integer modes for E500 double.
6653 (rs6000_legitimate_offset_address_p): Likewise.
6654 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
6655 addressing for DDmode for E500 double.
6656 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
6657 modes as using 64-bits of registers for E500 double.
6658 (spe_build_register_parallel): Do not handle DDmode or TDmode.
6659 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
6660 specially for E500 double.
6661 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
6662 TDmode for E500 double.
6663 (rs6000_gimplify_va_arg): Only handle SDmode in registers
6664 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
6665 (rs6000_split_multireg_move): Do not handle TDmode specially for
6667 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
6668 using 64-bit registers for E500 double.
6669 (emit_frame_save): Do not handle DDmode specially for E500 double.
6670 (gen_frame_mem_offset): Likewise.
6671 (rs6000_function_value): Do not call spe_build_register_parallel
6672 for DDmode or TDmode.
6673 (rs6000_libcall_value): Likewise.
6674 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
6675 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
6678 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
6680 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
6683 2008-06-04 Junjie Gu <jgu@tensilica.com>
6685 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
6686 comparison for frame pointers.
6688 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6691 * config/avr/avr.h (PUSH_ROUNDING): Remove.
6693 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6696 * builtins.c (expand_builtin_signbit): Don't take lowpart when
6697 register is already smaller or equal to required mode.
6699 2008-06-04 Xinliang David Li <davidxl@google.com>
6701 * tree-call-cdce.c: New file.
6702 (cond_dead_built_in_calls): New static variable.
6703 (input_domain): New struct.
6704 (check_pow): New function.
6705 (check_builtin_call): Ditto.
6706 (check_target_format): Ditto.
6707 (is_call_dce_candidate): Ditto.
6708 (gen_one_condition): Ditto.
6709 (gen_conditions_for_domain): Ditto.
6710 (get_domain): Ditto.
6711 (gen_conditions_for_pow_cst_base): Ditto.
6712 (gen_conditions_for_pow_int_base): Ditto.
6713 (gen_conditions_for_pow): Ditto.
6714 (get_no_error_domain): Ditto.
6715 (gen_shrink_wrap_conditions): Ditto.
6716 (shrink_wrap_one_built_in_call): Ditto.
6717 (shink_wrap_conditional_dead_built_in_calls): Ditto.
6718 (tree_call_cdce): Ditto.
6719 (gate_call_cdce): Ditto.
6720 (pass_call_cdce): New gimple pass.
6721 * passes.c: (init_optimization_passes): New pass.
6722 * tree-pass.h: New pass declaration.
6723 * opts.c (decode_options): New flag setting.
6724 * common.opt: Add -ftree-builtin-call-dce flag.
6725 * Makefile.in: Add new source file.
6726 * tempvar.def: New tv_id.
6727 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
6729 2008-06-04 Richard Guenther <rguenther@suse.de>
6731 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
6732 (is_call_clobbered): Always check var_ann->call_clobbered.
6733 (mark_call_clobbered): Always set var_ann->call_clobbered.
6734 (clear_call_clobbered): Always clear var_ann->call_clobbered.
6735 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
6736 (reset_alias_info): Clear call clobbering info on MTAGs and
6738 (set_pt_anything): Set pt_global_mem.
6739 (create_tag_raw): Adjust comment.
6740 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
6742 2008-06-04 Joseph Myers <joseph@codesourcery.com>
6743 Maxim Kuvyrkov <maxim@codesourcery.com>
6745 * config/m68k/m68k.opt (mxgot): New option.
6746 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
6747 (m68k_output_addr_const_extra): New.
6748 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
6749 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
6750 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
6751 * doc/invoke.texi (M680x0 Options): Document -mxgot.
6753 2008-06-04 Richard Guenther <rguenther@suse.de>
6755 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
6756 negative or non-representable offsets.
6758 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
6760 * config/i386/i386.c (ix86_gen_leave): New.
6761 (ix86_gen_pop1): Likewise.
6762 (ix86_gen_add3): Likewise.
6763 (ix86_gen_sub3): Likewise.
6764 (ix86_gen_sub3_carry): Likewise.
6765 (ix86_gen_one_cmpl2): Likewise.
6766 (ix86_gen_monitor): Likewise.
6767 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
6768 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6769 ix86_gen_one_cmpl2 and ix86_gen_monitor.
6770 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
6771 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
6772 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
6773 (ix86_expand_epilogue): Updated.
6774 (print_operand): Handle integer register operand for 'z'.
6775 (ix86_expand_strlensi_unroll_1): Likewise.
6776 (ix86_expand_strlen): Likewise.
6777 (ix86_expand_builtin): Likewise.
6778 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
6779 mov{q}/mov{l} and add{q}/add{l}.
6781 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6783 * config/i386/i386.md (P): New mode iterator.
6784 (SFmode push_operand splitter): Macroize DImode and SImode pushes
6785 using P mode iterator.
6786 (DFmode push_operand splitter): Ditto.
6787 (XFmode push_operand splitter): Ditto.
6788 (DFmode float_extend SFmode push_operand splitter): Ditto.
6789 (XFmode float_extend SFmode push_operand splitter): Do not generate
6790 SImode pushes for 64bit target. Macroize Dimode and SImode
6791 pushes using P mode iterator.
6792 (XFmode float_extend DFmode push_operand splitter): Ditto.
6794 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6796 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
6797 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
6798 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
6800 (ix86_call_abi_override): Remove check for call_used_regs.
6802 2008-06-03 Richard Guenther <rguenther@suse.de>
6804 * tree-ssa-structalias.c (find_func_aliases): Add constraints
6805 for the lhs of calls if the return type contains pointers.
6807 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6809 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
6810 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
6811 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
6812 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
6813 of cfun and DEFAULT_ABI to deceide abi mode.
6815 (REG_PARM_STACK_SPACE): Removed.
6816 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
6817 (STACK_BOUNDARY): Use default target to deceide stack boundary.
6818 * config/i386/i386-protos.h (ix86_cfun_abi): New.
6819 (ix86_function_abi): Likewise.
6820 (ix86_function_type_abi): Likewise.
6821 (ix86_call_abi_override): Likewise.
6822 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
6823 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
6824 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
6825 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
6827 (X86_64_REGPARM_MAX): New.
6828 (X86_64_SSE_REGPARM_MAX): New.
6829 (X64_REGPARM_MAX): New.
6830 (X64_SSE_REGPARM_MAX): New.
6831 (X86_32_REGPARM_MAX): New.
6832 (X86_32_SSE_REGPARM_MAX): New.
6833 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
6834 (ix86_function_regparm): Handle user calling abi.
6835 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
6836 by DEFAULT_ABI versus SYSV_ABI check.
6837 (ix86_reg_parm_stack_space): New.
6838 (ix86_function_type_abi): New.
6839 (ix86_call_abi_override): New.
6840 (ix86_function_abi): New.
6841 (ix86_cfun_abi): New.
6842 (init_cumulative_args): Call abi specific initialization.
6843 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
6844 (function_arg_64): Extend SSE_REGPARM_MAX check.
6845 (function_arg (): Remove TARGET_64BIT_MS_ABI.
6846 (ix86_pass_by_reference): Likewise.
6847 (ix86_function_value_regno_p): Likewise.
6848 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
6849 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
6850 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
6851 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
6852 (setup_incoming_varargs_64): Adjust regparm for call abi.
6853 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
6854 (ix86_va_start): Likewise.
6855 (ix86_gimplify_va_arg): Likewise.
6856 (ix86_expand_prologue): Likewise.
6857 (output_pic_addr_const): Likewise.
6858 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6859 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6860 (x86_output_mi_thunk): Likewise.
6861 (x86_function_profiler): Likewise.
6862 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6863 (SYSV_ABI, MS_ABI): New constants.
6865 (init_regs): Add prototype of function in regclass.c file.
6866 (OVERRIDE_ABI_FORMAT): New.
6867 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6868 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6869 (OUTGOING_REG_PARM_STACK_SPACE): New.
6870 (ix86_reg_parm_stack_space): New prototype.
6871 (CUMULATIVE_ARGS): Add call_abi member.
6872 (machine_function): Add call_abi member.
6873 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6874 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
6876 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
6879 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6880 (avr_builtin_setjmp_frame_value): New function.
6881 * config/avr/avr.md (nonlocal_goto_receiver): Define.
6882 (nonlocal_goto): Define.
6884 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
6886 * config/mips/mips.c (mips_emit_loadgp): Return early if
6887 there is nothing do to, otherwise emit a blockage if
6888 !TARGET_EXPLICIT_RELOCS || crtl->profile.
6889 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6891 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6893 * configure.ac: Drop unneeded backslash ending up in config.in.
6894 * acinclude.m4: Likewise.
6895 * config.in: Regenerate.
6897 2008-05-26 Jan Hubicka <jh@suse.cz>
6899 * predict.c (maybe_hot_frequency_p): Break out of...
6900 (maybe_hot_bb_p): ... here.
6901 (maybe_hot_edge_p): New.
6902 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6903 * basic-block.h (maybe_hot_edge_p): Declare.
6905 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6907 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6908 (*cmpfp_<mode>_cc): Ditto.
6909 (*fp_jcc_8<mode>_387): Ditto.
6910 (*fop_<MODEF:mode>_2_i387): Ditto.
6911 (*fop_<MODEF:mode>_3_i387): Ditto.
6912 (*fop_xf_2_i387): Ditto.
6913 (*fop_xf_3_i387): Ditto.
6915 2008-06-02 Tomas Bily <tbily@suse.cz>
6917 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
6919 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6921 * config/mips/mips.c (mips_valid_offset_p): New function.
6922 (mips_valid_lo_sum_p): Likewise.
6923 (mips_classify_address): Use them.
6924 (mips_force_address): New function.
6925 (mips_legitimize_address): Use it.
6926 * config/mips/mips.md (MOVE128): New mode iterator.
6927 (movtf): Require TARGET_64BIT. Remove empty strings.
6928 (*movtf_internal): Rename to...
6929 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
6930 of "R" and use {,fp}{load,store} attributes instead of "multi".
6931 Use a separate define_split.
6932 (*movtf_mips16): New pattern.
6934 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6936 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6937 * config/mips/mips.c (mips_expand_before_return): New function.
6938 (mips_expand_epilogue): Call it.
6939 * config/mips/mips.md (return): Turn into a define_expand.
6940 (*return): New insn.
6942 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6944 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6945 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6946 functions. Do not emit uses and clobbers of CONCATs; individually
6947 use and clobber their operands.
6948 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6949 gen_clobber, emit_use and gen_use.
6950 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6951 (expand_builtin_return): Likewise.
6952 * cfgbuild.c (count_basic_blocks): Likewise.
6953 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6954 * explow.c (emit_stack_restore): Likewise.
6955 * expmed.c (extract_bit_field_1): Likewise.
6956 * expr.c (convert_move, emit_move_complex_parts): Likewise.
6957 (emit_move_multi_word, store_constructor): Likewise.
6958 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6959 (thread_prologue_and_epilogue_insns): Likewise.
6960 * lower-subreg.c (resolve_simple_move): Likewise.
6961 * optabs.c (widen_operand, expand_binop): Likewise.
6962 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6963 * reload.c (find_reloads): Likewise.
6964 * reload1.c (eliminate_regs_in_insn): Likewise.
6965 * stmt.c (expand_nl_goto_receiver): Likewise.
6966 * config/alpha/alpha.md (builtin_longjmp): Likewise.
6967 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6968 * config/arm/arm.c (arm_load_pic_register): Likewise.
6969 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6970 * config/arm/arm.md (untyped_return): Likewise.
6971 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6972 * config/avr/avr.c (expand_prologue): Likewise.
6973 * config/bfin/bfin.c (do_unlink): Likewise.
6974 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6975 * config/cris/cris.c (cris_expand_prologue): Likewise.
6976 * config/darwin.c (machopic_indirect_data_reference): Likewise.
6977 (machopic_legitimize_pic_address): Likewise.
6978 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6979 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6980 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6981 (ix86_expand_convert_uns_didf_sse): Likewise.
6982 (ix86_expand_vector_init_general): Likewise.
6983 * config/ia64/ia64.md (eh_epilogue): Likewise.
6984 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6985 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6986 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6987 (config/iq2000/iq2000.c): Likewise.
6988 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6989 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6990 (builtin_longjmp): Likewise.
6991 * config/mn10300/mn10300.md (call, call_value): Likewise.
6992 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6993 * config/pdp11/pdp11.md (abshi2): Likewise.
6994 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6995 * config/s390/s390.c (s390_emit_prologue): Likewise.
6996 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6997 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6998 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6999 * config/sh/sh.c (prepare_move_operands): Likewise.
7000 (output_stack_adjust, sh_expand_epilogue): Likewise.
7001 (sh_set_return_address, sh_expand_t_scc): Likewise.
7002 * config/sparc/sparc.c (load_pic_register): Likewise.
7003 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
7004 * config/spu/spu.c (spu_expand_epilogue): Likewise.
7005 * config/v850/v850.c (expand_epilogue): Likewise.
7007 2008-05-31 Anatoly Sokolov <aesok@post.ru>
7009 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
7010 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
7011 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
7012 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
7013 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
7014 stack pointer register.
7015 (output_movhi): Remove code for interrupt specific writing to the
7016 stack pointer register.
7018 2008-05-31 Richard Guenther <rguenther@suse.de>
7020 PR tree-optimization/34244
7021 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
7022 (tree_expr_nonzero_warnv_p): Likewise.
7023 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
7024 ssa_name_nonnegative_p.
7025 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
7026 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
7027 not tree_expr_nonzero_warnv_p.
7029 PR tree-optimization/36262
7031 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
7033 PR tree-optimization/34244
7034 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
7035 (record_numbers_of_iterations): New function.
7036 (execute_vrp): Cache the numbers of iterations of loops.
7037 * tree-scalar-evolution.c (scev_reset_except_niters):
7039 (scev_reset): Use scev_reset_except_niters.
7040 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
7042 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
7044 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7045 __WORKAROUND_RETS when appropriate.
7047 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
7049 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
7050 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
7052 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
7053 *fop_df_comm_sse insn patterns using MODEF mode iterator.
7054 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
7055 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
7056 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
7057 *fop_df_1_mixed insn patterns using MODEF mode iterator.
7058 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
7059 *fop_df_1_sse insn patterns using MODEF mode iterator.
7060 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
7061 *fop_df_1_i387 insn patterns using MODEF mode iterator.
7062 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
7063 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
7064 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
7065 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
7066 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
7067 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
7068 (*fop_xf_4_i387): Use <MODE> for mode attribute.
7069 (*fop_xf_5_i387): Ditto.
7070 (*fop_xf_6_i387): Ditto.
7072 2008-05-30 Richard Guenther <rguenther@suse.de>
7074 * builtins.c (build_string_literal): Avoid generating
7075 a non-gimple_val result.
7077 2008-05-30 DJ Delorie <dj@redhat.com>
7079 * exec-tool.in: Use an environment variable (private) instead of a
7080 file (shared) as a semaphore, so as to not break parallel builds.
7082 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
7084 * optabs.c (maybe_encapsulate_block): Remove.
7085 (emit_libcall_block): Adjust accordingly.
7086 * optabs.h (maybe_encapsulate_block): Remove prototype.
7088 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
7089 Don't use maybe_encapsulate_block.
7091 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
7093 * config/rs6000/rs6000.c (rs6000_legitimize_address,
7094 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
7095 rtx is a SYMBOL_REF before calling get_pool_constant.
7097 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
7099 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
7101 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
7103 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
7104 rather than OS names to choose INO_T_EQ definition.
7105 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
7106 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
7108 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
7111 * config/darwin-f.c: New.
7112 * config/t-darwin: Added rule to build darwin-f.o.
7113 * config.gcc: Defined new variable, fortran_target_objs.
7114 (*-*-darwin*): Set fortran_target_objs.
7115 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
7116 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
7117 * configure: Regenerated.
7119 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
7122 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
7123 canonical type if needed.
7125 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
7127 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
7129 2008-05-29 Richard Guenther <rguenther@suse.de>
7131 PR tree-optimization/36343
7132 PR tree-optimization/36346
7133 PR tree-optimization/36347
7134 * tree-flow.h (clobber_what_p_points_to): Declare.
7135 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
7136 pointed-to variable is dereferenced is irrelevant to whether
7137 the pointer can access the pointed-to variable.
7138 (clobber_what_p_points_to): New function.
7139 * tree-ssa-alias.c (set_initial_properties): Use it.
7140 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
7141 call clobber check for NMTs.
7143 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
7145 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
7146 for printing gcov_type.
7148 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
7150 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
7151 and the eh region information.
7152 * value-prof.c (gimple_move_stmt_histograms): New function.
7153 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
7155 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
7157 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
7159 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
7161 * value-prof.c (tree_ic_transform): Print counts.
7162 * tree-profile.c (tree_gen_ic_func_profiler):
7163 Clear __gcov_indreict_call_callee variable to avoid misattribution
7166 2008-05-28 Rafael Espindola <espindola@google.com>
7168 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
7171 2008-05-28 Richard Guenther <rguenther@suse.de>
7173 PR tree-optimization/36339
7174 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
7175 and clobbering code out of the loop.
7177 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
7179 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
7182 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
7183 s390_contiguous_bitmask_p, s390_symref_operand_p,
7184 s390_check_symref_alignment, s390_reload_larl_operand,
7185 s390_reload_symref_address): New functions.
7186 (s390_branch_condition_mnemonic): Support compare and branch
7188 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
7189 and 'W' constraints.
7190 (s390_secondary_reload): Add secondary reloads for unaligned
7191 symbol refs or symbol refs to floating point or QI/TI mode
7193 (legitimate_address_p): Accept symbol references as addresses.
7194 (s390_expand_insv): Use rotate and insert selected bits
7195 instruction for insv when building for z10.
7196 (print_operand_address): Handle symbol ref addresses.
7197 (print_operand): Output modifier 'c' added for signed byte values.
7198 (s390_encode_section_info): Mark symbol refs with
7199 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
7201 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
7202 (length attribute): RRF, RRR have 4 byte length.
7203 (FPALL, INTALL): New mode iterators added.
7204 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
7205 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
7206 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
7207 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
7208 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
7209 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
7210 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
7211 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
7213 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
7214 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
7215 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
7216 reload<INTALL:mode><P:mode>_toreg_z10,
7217 reload<FPALL:mode><P:mode>_tomem_z10,
7218 reload<FPALL:mode><P:mode>_toreg_z10,
7219 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
7220 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
7221 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
7222 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
7224 (movmem, clrmem, cmpmem): New splitters added.
7226 * config/s390/predicates.md (larl_operand): Use
7227 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
7228 SYMBOL_REF_ALIGN1_P.
7229 (s390_signed_integer_comparison,
7230 s390_unsigned_integer_comparison): New predicates.
7232 * config/s390/s390-protos.h (s390_check_symref_alignment,
7233 s390_contiguous_bitmask_p, s390_reload_larl_operand,
7234 s390_reload_symref_address,
7235 s390_compare_and_branch_condition_mask): Prototypes added.
7237 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
7238 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
7239 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
7241 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
7243 * config/s390/s390.c (z10_cost): New cost function for z10.
7244 (s390_handle_arch_option, override_options): Support -march=z10 switch.
7245 (s390_issue_rate): Adjust issue rate for z10.
7246 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
7247 (processor_flags): Add PF_Z10.
7248 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
7249 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
7250 * gcc/config.gcc: Add z10.
7252 2008-05-28 Richard Guenther <rguenther@suse.de>
7254 PR tree-optimization/36291
7255 * tree-flow. h (struct gimple_df): Remove var_anns member.
7256 * tree-flow-inline.h (gimple_var_anns): Remove.
7257 (var_ann): Simplify.
7258 * tree-dfa.c (create_var_ann): Simplify.
7259 (remove_referenced_var): Clear alias info from var_anns of globals.
7260 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
7261 (delete_tree_ssa): Clear alias info from var_anns of globals.
7262 Do not free var_anns.
7263 (var_ann_eq): Remove.
7264 (var_ann_hash): Likewise.
7266 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
7268 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
7269 and loongson2f entries.
7270 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
7271 * config/mips/mips.h (processor_type): Add Loongson-2E
7272 and Loongson-2F entries.
7273 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
7274 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
7275 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
7276 * doc/invoke.texi (MIPS Options): Document loongson2e
7277 and loongson2f processor names.
7279 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
7283 * config/i386/i386.c (ix86_function_arg_boundary): Use
7284 alignment of canonical type.
7285 (ix86_expand_vector_move): Check unaligned memory access for
7288 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
7290 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
7291 Moved to the front of file.
7293 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
7294 H.J. Lu <hongjiu.lu@intel.com>
7296 * dwarf2out.c (current_fde): New.
7298 (lookup_cfa:): Likewise.
7299 (dwarf2out_end_epilogue): Likewise.
7300 (dwarf2out_note_section_used): Likewise.
7302 2008-05-27 Michael Matz <matz@suse.de>
7305 * c.opt (Wenum-compare): New warning option.
7306 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
7308 2008-05-27 Michael Matz <matz@suse.de>
7311 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
7313 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
7314 into memory as tail calls.
7316 2008-05-27 Richard Guenther <rguenther@suse.de>
7318 PR tree-optimization/36339
7319 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
7320 pointers cause all addressable variables to be call clobbered.
7322 2008-05-27 Richard Guenther <rguenther@suse.de>
7324 PR tree-optimization/36245
7325 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
7327 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
7329 * config/s390/s390.md: Replace all occurences of the 'm'
7330 constraint with 'RT'.
7332 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
7334 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
7336 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
7338 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
7339 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
7340 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
7342 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
7344 * reload.c: (find_reloads): Skip alternatives according to the
7345 "enabled" attribute. Constify the constraint variable.
7346 * recog.c (get_attr_enabled): Add default implementation.
7347 (extract_insn): Set the alternative_enabled_p array
7348 in the recog_data struct.
7349 (preprocess_constraints, constrain_operands): Skip
7350 alternatives according to the "enabled" attribute
7351 * recog.h (struct recog_data): New field alternative_enabled_p.
7352 (skip_alternative): New inline function.
7353 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
7354 (record_reg_classes): Skip alternative according to the
7355 "enabled" attribute.
7357 * doc/md.texi: Add documention for the "enabled" attribute.
7359 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
7361 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
7362 * postreload.c (reload_cse_simplify_operands): Replace 'm'
7363 constraint with TARGET_MEM_CONSTRAINT.
7364 * recog.c (asm_operand_ok, preprocess_constraints,
7365 constrain_operands): Likewise.
7366 * regclass.c (record_reg_classes): Likewise.
7367 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
7368 * reload1.c (maybe_fix_stack_asms): Likewise.
7369 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7370 * recog.h: Adjust comment.
7371 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
7372 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
7373 * doc/md.texi: Add a note to description of 'm' constraint.
7374 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
7376 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
7378 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
7379 that the bitfield is of integral type before testing its precision.
7381 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
7382 Sa Liu <saliu@de.ibm.com>
7384 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
7385 __modti3, __udivti3, __umodti3 and __udivmodti4.
7386 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
7387 that implement TImode mul and div functions.
7388 * config/spu/multi3.c: New. Implement __multi3.
7389 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
7390 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
7393 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
7395 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
7396 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
7397 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
7398 tls_sysv_suffix): New mode and mode attribute iterators.
7399 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
7400 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
7401 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
7402 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
7403 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
7406 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
7408 PR tree-optimization/36329
7409 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
7410 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
7411 * cgraphbuild.c (initialize_inline_failed): Use the latter
7412 macro in lieu of the former.
7413 * ipa-inline.c (cgraph_mark_inline): Likewise.
7414 (cgraph_decide_inlining_of_small_function): Likewise.
7415 (cgraph_decide_inlining): Likewise.
7416 (cgraph_decide_inlining_incrementally): Likewise.
7418 2008-05-26 Tristan Gingold <gingold@adacore.com>
7419 Anatoly Sokolov <aesok@post.ru>
7421 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
7422 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
7423 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
7424 optimization for 'avr6' architecture.
7426 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
7429 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
7431 2008-05-26 Richard Guenther <rguenther@suse.de>
7433 * tree-ssa-sccvn.c (expr_has_constants): Declare.
7434 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
7436 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
7439 * caller-save.c (insert_restore): Verify alignment of spill space.
7440 (insert_save): Likewise.
7441 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
7442 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
7443 (STACK_SLOT_ALIGNMENT): Likewise.
7444 * function.c (LOCAL_ALIGNMENT): Removed.
7445 (get_stack_local_alignment): New.
7446 (assign_stack_local): Use it. Set alignment on stack slot.
7447 (assign_stack_temp_for_type): Use get_stack_local_alignment.
7448 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
7449 (STACK_SLOT_ALIGNMENT): New.
7450 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
7451 stack slot in XFmode.
7453 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
7455 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
7458 * config/i386/i386.md (allocate_stack_worker_64): Make sure
7459 argument operand in rax isn't removed.
7461 2008-05-26 Richard Guenther <rguenther@suse.de>
7464 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
7465 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
7467 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
7470 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
7472 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
7474 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
7475 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
7477 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
7479 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
7480 build a trampoline if we don't want one.
7481 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
7482 return zero for nested functions if we don't want a trampoline.
7484 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
7486 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
7488 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
7491 * c.opt: Removed undocumented option '-lang-fortran'.
7492 * c-common.h: Removed global variable 'lang_fortran'.
7493 * c-opts.c (c_common_handle_option): Removed code to handle
7494 option '-lang-fortran'. Updated includes.
7495 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
7496 definition of '__GFORTRAN__'.
7497 (define__GNUC__): Reimplemented to use BASEVER and
7498 cpp_define_formatted.
7499 (builtin_define_with_value_n): Removed.
7500 * c-incpath.h: Renamed to ...
7501 * incpath.h: ... this.
7502 * c-incpath.c: Renamed to ...
7503 * incpath.c: ... this. Updated includes.
7504 * fix-header.c: Updated includes.
7505 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
7506 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
7507 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
7509 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
7511 * tree.h: Update the table of flags used on tree nodes.
7512 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
7513 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
7514 (FORCED_LABEL): Add access check.
7515 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
7516 (ASM_INPUT_P): Likewise.
7517 (ASM_VOLATILE_P): Likewise.
7518 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
7519 (OMP_SECTION_LAST): Access private_flag directly.
7520 (OMP_RETURN_NOWAIT): Likewise.
7521 (OMP_PARALLEL_COMBINED): Likewise.
7522 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
7523 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
7524 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
7525 deprecated_flag directly.
7527 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
7529 * final.c (frame_pointer_needed): Removed.
7530 * flags.h (frame_pointer_needed): Likewise.
7532 * function.h (rtl_data): Add frame_pointer_needed.
7533 (frame_pointer_needed): New.
7535 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
7537 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
7539 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
7541 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
7544 2008-05-25 Alan Modra <amodra@bigpond.net.au>
7546 * c-common.c (strip_array_types): Move function to..
7548 (get_inner_array_type): Delete.
7549 * c-common.h (strip_array_types): Move declaration to..
7551 (get_inner_array_type): Delete.
7552 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
7553 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
7554 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7555 * config/pa/pa.c (emit_move_sequence): Likewise.
7557 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
7559 * config/i386/i386.md (*sse_prologue_save_insn): Set length
7562 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
7564 * function.c: Include target hook for nonlocal_goto frame value.
7566 2008-05-24 Richard Guenther <rguenther@suse.de>
7568 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
7569 variable can be only accessed through a pointer or a union.
7571 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7573 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
7574 * doc/extend.texi: Likewise.
7576 2008-05-23 DJ Delorie <dj@redhat.com>
7578 * config/m32c/jump.md (untyped_call): Add.
7580 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
7582 (m32c_address_cost): Detail costs for indirect offsets.
7584 2008-05-23 Rafael Espindola <espindola@google.com>
7586 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
7587 if a node is a SUBREG.
7588 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
7591 2008-05-23 Paul Brook <paul@codesourcery.com>
7592 Carlos O'Donell <carlos@codesourcery.com>
7594 * doc/extend.texi: Clarify use of __attribute__((naked)).
7595 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7596 * target.h (gcc_target): Add allocate_stack_slots_for_args.
7597 * function.c (use_register_for_decl): Use
7598 targetm.calls.allocate_stack_slots_for_args.
7599 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7600 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
7601 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
7603 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
7605 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
7607 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
7609 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
7610 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
7611 is only rounded once.
7613 2008-05-23 Richard Guenther <rguenther@suse.de>
7615 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
7617 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
7618 Jakub Jelinek <jakub@redhat.com>
7621 * configure.ac: Handle --enable-cld.
7622 * configure: Regenerated.
7623 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
7624 * config/i386/i386.h (struct machine_function): Add needs_cld field.
7625 (ix86_current_function_needs_cld): New define.
7626 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
7627 (cld): New isns pattern.
7628 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
7629 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
7630 * config/i386/i386.opt (mcld): New option.
7631 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
7632 TARGET_CLD and ix86_current_function_needs_cld.
7633 (override_options): Use -mcld by default for 32-bit code if
7636 * doc/install.texi (Options specification): Document --enable-cld.
7637 * doc/invoke.texi (Machine Dependent Options)
7638 [i386 and x86-64 Options]: Add -mcld option.
7639 (Intel 386 and AMD x86-64 Options): Document -mcld option.
7641 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
7642 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
7643 (return_in_memory_64): Likewise.
7644 (return_in_memory_ms_64): Likewise.
7646 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7648 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
7649 * builtins.c (fold_builtin_fpclassify): New.
7650 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
7651 * builtins.def (BUILT_IN_FPCLASSIFY): New.
7652 * c-common.c (handle_type_generic_attribute): Adjust to accept
7653 fixed arguments before an elipsis.
7654 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
7655 * doc/extend.texi: Document __builtin_fpclassify.
7657 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
7659 * omp-low.c (gate_expand_omp_ssa): Remove.
7660 (pass_expand_omp_ssa): Remove.
7661 (gate_expand_omp): Do not check for flag_openmp_ssa.
7662 * common.opt (-fopenmp-ssa): Remove.
7663 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
7665 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
7667 * config/sh/sh.opt (mfixed-range): New option.
7668 * config/sh/sh-protos.h (sh_fix_range): Declare.
7669 * config/sh/sh.c (sh_fix_range): New function.
7670 * config/sh/sh.h (sh_fixed_range_str): Declare.
7671 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
7673 * doc/invoke.texi (SH Options): Document -mfixed-range.
7675 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
7677 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
7678 it before the redeclaration.
7680 2008-05-22 Anatoly Sokolov <aesok@post.ru>
7682 * config/avr/avr.c (get_sequence_length): Add new function.
7683 (expand_prologue, expand_epilogue): Remove duplicate code.
7685 2008-05-22 Rafael Espindola <espindola@google.com>
7687 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
7690 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
7692 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
7693 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
7695 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
7696 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
7697 (vect_update_misalignment_for_peel): Likewise.
7698 (vector_alignment_reachable_p): Likewise.
7699 * tree-vect-transform.c (vectorizable_load): Likewise.
7700 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
7701 (get_vectype_for_scalar_type): Pass mode of scalar_type
7702 to UNITS_PER_SIMD_WORD.
7704 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
7705 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7706 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7707 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7708 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7710 2008-05-22 Ira Rosen <irar@il.ibm.com>
7712 PR tree-optimization/36293
7713 * tree-vect-transform.c (vect_transform_strided_load): Don't check
7714 if the first load must be skipped because of a gap.
7716 2008-05-22 Richard Guenther <rguenther@suse.de>
7718 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
7719 more cases of offset disambiguation that is possible if
7720 strict-aliasing rules apply.
7721 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
7722 for basic offset and type-based disambiguation.
7724 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7726 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
7727 ix86_expand_vector_set on V16QImode for SSE4.1.
7729 2008-05-21 Tom Tromey <tromey@redhat.com>
7731 * c.opt (Wimport): Mark as undocumented.
7732 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
7734 (Warning Options): Likewise.
7735 * doc/cppopts.texi: Don't mention -Wimport.
7737 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7739 PR tree-optimization/36287
7740 PR tree-optimization/36286
7741 * lambda-code.c (build_access_matrix): Do not use the loop->num
7742 for computing the number of induction variables: use the loop depth
7745 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
7748 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
7749 option -f(no-)leading-underscore.
7751 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7753 * config/i386/i386.c (ix86_expand_vector_init_general): Use
7754 GET_MODE_NUNITS (mode).
7756 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
7758 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
7759 (-mmulhw): Add 464 to description.
7760 (-mdlmzb): Likewise.
7761 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
7762 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
7764 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
7765 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
7766 * config/rs6000/rs6000.md: Update comments for 464.
7768 2008-05-21 Janis Johnson <janis187@us.ibm.com>
7770 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
7772 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7774 * config/i386/sse.md (vec_extractv4sf): Removed.
7775 (vec_extractv2df): Likewise.
7776 (vec_extractv2di): Likewise.
7777 (vec_extractv4si): Likewise.
7778 (vec_extractv8hi): Likewise.
7779 (vec_extractv16qi): Likewise.
7780 (vec_extract<mode>): New.
7782 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7784 * config/i386/sse.md (vec_setv4sf): Removed.
7785 (vec_setv2df): Likewise.
7786 (vec_setv2di): Likewise.
7787 (vec_setv4si): Likewise.
7788 (vec_setv8hi): Likewise.
7789 (vec_setv16qi): Likewise.
7790 (vec_set<mode>): New.
7792 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7794 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
7795 goto for vec_concat and vec_interleave.
7797 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7799 * config/i386/sse.md (vec_initv4sf): Removed.
7800 (vec_initv2df): Likewise.
7801 (vec_initv2di): Likewise.
7802 (vec_initv4si): Likewise.
7803 (vec_initv8hi): Likewise.
7804 (vec_initv16qi): Likewise.
7805 (vec_init<mode>): New.
7807 2008-05-21 Joseph Myers <joseph@codesourcery.com>
7809 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
7811 2008-05-21 Tom Tromey <tromey@redhat.com>
7813 * ggc-zone.c (lookup_page_table_if_allocated): New function.
7814 (zone_find_object_offset): Likewise.
7815 (gt_ggc_m_S): Likewise.
7816 (highest_bit): Likewise.
7817 * ggc-page.c (gt_ggc_m_S): New function.
7818 * stringpool.c (string_stack): Remove.
7819 (init_stringpool): Update.
7820 (ggc_alloc_string): Use ggc_alloc.
7821 (maybe_delete_ident): New function.
7822 (ggc_purge_stringpool): Likewise.
7823 (gt_ggc_m_S): Remove.
7824 * ggc-common.c (ggc_protect_identifiers): New global.
7825 (ggc_mark_roots): Call ggc_purge_stringpool. Use
7826 ggc_protect_identifiers.
7827 * ggc.h (ggc_protect_identifiers): Declare.
7828 (gt_ggc_m_S): Update.
7829 (ggc_purge_stringpool): Declare.
7830 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
7831 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
7833 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
7835 2008-05-21 David S. Miller <davem@davemloft.net>
7837 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
7840 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
7842 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
7845 2008-05-20 David Daney <ddaney@avtrex.com>
7847 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
7848 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
7849 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7850 UNSPEC_UPDATE_GOT_VERSION): Renumber.
7851 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
7852 (atomic_hiqi_op): New define_code_iterator.
7853 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
7854 mips_expand_compare_and_swap_12.
7855 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
7856 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
7857 (sync_<optab><mode>, sync_old_<optab><mode>,
7858 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7859 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
7860 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7861 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
7862 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
7863 (test_and_set_12): New insn.
7864 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7865 sync_new_<optab><mode>, sync_old_nand<mode>,
7866 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
7867 clobber to operand 0 for SI and DI mode insns.
7868 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7869 mips_gen_fn_4): New typedefs.
7870 (mips_gen_fn_ptrs): Define new union type.
7871 (mips_expand_compare_and_swap_12): Remove declaration.
7872 (mips_expand_atomic_qihi): Declare function.
7873 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7874 (mips_expand_atomic_qihi): ... this. Use new generator function
7876 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7877 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
7878 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
7879 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7880 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7881 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7882 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7883 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7884 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
7885 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7888 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
7890 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7893 2008-05-20 Anatoly Sokolov <aesok@post.ru>
7895 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7896 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7897 (avr_attribute_table): Add 'OS_main' function attribute.
7898 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7899 functions with 'OS_main' attribute.
7901 2008-05-20 Richard Guenther <rguenther@suse.de>
7903 PR tree-optimization/35204
7904 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7905 helper, split out from ...
7906 (DFS): ... here. Make the DFS walk non-recursive.
7908 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7909 Jan Sjodin <jan.sjodin@amd.com>
7911 PR tree-optimization/36181
7912 * tree-parloops.c (loop_has_vector_phi_nodes): New.
7913 (parallelize_loops): Don't parallelize when the loop has vector
7916 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7917 Sebastian Pop <sebastian.pop@amd.com>
7919 * tree-loop-linear.c (gather_interchange_stats): Look in the access
7920 matrix, and never look at the tree representation of the memory
7922 (linear_transform_loops): Computes parameters and access matrices.
7923 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7925 (access_matrix_get_index_for_parameter): New.
7926 * tree-data-ref.h (struct access_matrix): New.
7927 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7928 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7929 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7930 am_vector_index_for_loop): New.
7931 (struct data_reference): Add field access_matrix.
7932 (DR_ACCESS_MATRIX): New.
7933 (compute_data_dependences_for_loop): Update declaration.
7934 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7935 * lambda.h (lambda_vector_vec_p): Declared.
7936 * lambda-code.c: Depend on pointer-set.h.
7937 (lambda_collect_parameters_from_af, lambda_collect_parameters,
7938 av_for_af_base, av_for_af, build_access_matrix,
7939 lambda_compute_access_matrices): New.
7940 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7942 2008-05-20 Joseph Myers <joseph@codesourcery.com>
7944 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7947 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7948 Sebastian Pop <sebastian.pop@amd.com>
7950 PR tree-optimization/36206
7951 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7953 (instantiate_scev_1): Rename flags to fold_conversions.
7954 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7955 outeside instantiation_loop.
7956 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7957 (evolution_function_is_affine_or_constant_p): Removed.
7958 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7960 (analyze_siv_subscript): Pass in the loop nest number.
7961 Call evolution_function_is_affine_in_loop instead of
7962 evolution_function_is_affine_p.
7963 (analyze_overlapping_iterations): Pass in the loop nest number.
7965 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7966 Sebastian Pop <sebastian.pop@amd.com>
7968 PR tree-optimization/36206
7969 * tree-chrec.h (chrec_fold_op): New.
7970 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7973 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
7975 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7977 (remove_duplicates): Do not set inode on non-inode systems.
7980 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
7982 * config.gcc (tm_file): Update comments about relative pathnames.
7984 2008-05-20 Richard Guenther <rguenther@suse.de>
7986 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7987 * tree-ssa-sccvn.c (process_scc): Likewise.
7988 * tree-ssa-sink.c (execute_sink_code): Likewise.
7989 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7990 * tree-vrp.c (process_assert_insertions): Likewise.
7991 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7992 (perform_tree_ssa_dce): Likewise.
7993 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7994 (dump_dominator_optimization_stats): Likewise.
7995 * tree-vectorizer.c (vectorize_loops): Likewise.
7997 2008-05-20 Richard Guenther <rguenther@suse.de>
7999 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
8001 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
8003 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
8004 (ix86_i386elf_return_in_memory): Likewise.
8005 (ix86_i386interix_return_in_memory): Likewise.
8006 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
8007 (SUBTARGET_RETURN_IN_MEMORY): New.
8008 * config/i386/i386elf.h: Likewise.
8009 * config/i386/ptx4-i.h: Likewise.
8010 * config/i386/sol2-10.h: Likewise.
8011 * config/i386/sysv4.h: Likewise.
8012 * config/i386/vx-common.h: Likewise.
8013 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
8014 * config/i386/i386.c (ix86_return_in_memory): Made static and
8015 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
8016 (ix86_i386elf_return_in_memory): Removed.
8017 (ix86_i386interix_return_in_memory): Removed.
8018 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
8019 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
8021 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
8023 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
8025 2008-05-19 Xinliang David Li <davidxl@google.com>
8027 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
8029 * common.opt: Ditto.
8030 * doc/invoke.texi: Ditto.
8032 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
8034 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
8035 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
8037 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
8039 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
8040 sizes of operand array from 8/4 to 4/2.
8041 (ix86_expand_vector_init_general): Change size of operand array
8042 from 32 to 16. Remove op0, op1 and half_mode.
8044 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
8046 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
8047 (ix86_expand_vector_init_interleave): Likewise.
8048 (ix86_expand_vector_init_general): Use them. Assert
8049 word_mode == SImode when n_words == 4.
8051 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
8053 * config/i386/i386.c (ix86_secondary_reload): New static function.
8054 (TARGET_SECONDARY_RELOAD): New define.
8055 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
8056 * config/i386/i386.md (reload_outqi): Remove.
8058 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8061 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
8062 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
8063 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
8064 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
8065 (fold_builtin_1): Likewise.
8066 * builtins.def (BUILT_IN_ISINF_SIGN): New.
8067 c-common.c (check_builtin_function_arguments): Handle
8068 BUILT_IN_ISINF_SIGN.
8069 * doc/extend.texi: Document __builtin_isinf_sign.
8070 * fold-const.c (operand_equal_p): Handle COND_EXPR.
8072 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
8074 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
8075 EH cleanup at the end of the pass, search for those that have been
8076 turned into forwarder blocks and do the cleanup on their successor.
8078 2008-05-18 Richard Guenther <rguenther@suse.de>
8080 * tree-cfg.c (verify_gimple_expr): Allow conversions from
8081 pointers to sizetype and vice versa.
8083 2008-05-18 Xinliang David Li <davidxl@google.com>
8085 * gcc/tree-ssa-dce.c: Coding style fix.
8086 (check_pow): Documentation comment.
8087 (check_log): Documenation comment. Coding style fix.
8088 (is_unnecessary_except_errno_call): Ditto.
8089 (gen_conditions_for_pow): Ditto.
8090 (gen_conditions_for_log): Ditto.
8091 (gen_shrink_wrap_conditions): Ditto.
8092 (shrink_wrap_one_built_in_calls): Ditto.
8093 * gcc/doc/invoke.texi: Better documentation string.
8094 * ChangeLog: Fix wrong change log entries from
8095 May 17 checkin on function call DCE.
8097 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
8099 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
8101 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
8103 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
8104 * df-problems.c (simulation routines): Fixed block comment to
8105 properly say how to add forwards scanning functions.
8107 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
8109 * tree-inline.c (setup_one_parameter): Remove dead code.
8111 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
8113 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
8114 a BIT_AND_EXPR only for an INTEGER_TYPE.
8116 2008-05-17 Xinliang David Li <davidxl@google.com>
8118 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
8119 (check_pow, check_log, is_unnecessary_except_errno_call): New
8120 functions to check for eliminating math functions that are pure
8121 except for setting errno.
8122 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
8123 general condition expressions for shrink-wrapping pow/log calls.
8124 (gen_shrink_wrap_conditions): Ditto.
8125 (shrink_wrap_one_built_in_call): Ditto.
8126 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
8127 (mark_operand_necessary): If debugging, output if OP is necessary.
8128 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
8130 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
8132 * gcc/common.opt: New user flag -ftree-builtin-dce.
8133 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
8135 2008-05-16 David S. Miller <davem@davemloft.net>
8137 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
8138 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8140 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
8143 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
8145 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
8147 * ifcvt.c (dead_or_predicable): Rename
8148 df_simulate_one_insn_backwards to df_simulate_one_insn.
8149 * recog.c (peephole2_optimize): Ditto.
8150 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
8152 * df.h: Rename df_simulate_one_insn_backwards to
8153 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
8154 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
8155 scanning of defs and uses.
8156 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
8157 (df_simulate_one_insn_forwards): Removed.
8159 2008-05-16 Doug Kwan <dougkwan@google.com>
8161 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
8163 (real_from_string): Handle NaNs and Inf as approriate.
8165 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
8167 * doc/gty.texi (Source Files Containing Type Information): Note
8168 that headers should appear first in the gtfiles list.
8170 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
8172 * tree.def (COND_EXEC): Properly documented this code.
8174 2008-05-16 Diego Novillo <dnovillo@google.com>
8176 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
8177 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
8180 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
8182 * tree-ssa-dse (max_stmt_uid): Removed.
8183 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
8184 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
8185 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
8186 * function.h (cfun.last_stmt_uid): New field.
8187 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
8188 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
8190 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
8191 (create_stmt_ann): Initialize the ann->uid field.
8192 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
8194 * tree-flow.h (renumber_gimple_stmt_uids): New function.
8196 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
8198 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
8199 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
8200 (init_empty_tree_cfg): Call it.
8202 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
8204 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
8207 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
8209 * doc/invoke.text (-fdump-tree-*-verbose): New option.
8210 * tree-dump.c (dump_options): New verbose option.
8211 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
8213 * tree-pass.h (TDF_VERBOSE): New dump flag.
8214 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
8215 (tree-flow.h): Added include.
8216 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
8218 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
8220 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
8222 From Jie Zhang <jie.zhang@analog.com>
8223 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8224 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
8225 mcpu=bf561-none and mcpu=bf561-0.2.
8226 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8227 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8228 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8229 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8230 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
8231 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
8232 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
8234 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
8235 (cputype_selected): Remove.
8236 (bfin_handle_option): Don't use cputype_selected.
8237 (override_options): When no mcpu option, enable all workarounds.
8238 Don't use bfin_workarounds.
8239 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
8241 (DEFAULT_CPU_TYPE): Don't define.
8243 2008-05-16 Richard Guenther <rguenther@suse.de>
8245 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
8246 on deletion of the last stmt.
8248 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
8250 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
8251 V8HImode for SSE2 and V16QImode for SSE4.1.
8253 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
8255 * cgraph.h (compute_inline_parameters): Made public.
8256 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
8257 variable_generate_summary, function_write_summary,
8258 variable_write_summary, variable_read_summary. Added generate_summary,
8259 write_summary, read_summary.
8260 * cgraphunit.c (cgraph_process_new_functions): Changed call from
8261 pass_ipa_inline.function_generate_summary, to
8262 compute_inline_parameters.
8263 * ipa-inline.c (compute_inline_parameters): Made public and added
8265 (compute_inline_parameters_for_current): New function.
8266 (pass_inline_param): Now calls compute_inline_parameters_for_current.
8267 (inline_generate_summary): Removed parameter and made to loop over
8269 (pass_ipa_inline): Updated for new IPA_PASS structure.
8270 * passes.c (execute_ipa_summary_passes): Now is called once per
8271 pass rather than once per node*pass.
8273 2008-05-15 Anatoly Sokolov <aesok@post.ru>
8275 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
8276 avr_have_mul_p, avr_asm_only_p): Remove variables.
8277 (avr_override_options): Remove initialization of removed variables.
8278 (avr_file_start): Convert removed variables to fields of
8279 'struct base_arch_s *avr_current_arch'.
8280 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
8281 (AVR_HAVE_MUL): (Ditto.).
8282 (AVR_HAVE_MOVW): (Ditto.).
8283 (AVR_HAVE_LPMX): (Ditto.).
8284 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
8285 avr_asm_only_p): Remove declaration.
8287 2008-05-15 Diego Novillo <dnovillo@google.com>
8289 * config/arm/arm.c (arm_return_in_memory): Fix return type.
8290 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
8292 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
8295 * combine.c (check_conversion): Rename back to check_promoted_subreg.
8296 Don't call record_truncated_value from here.
8297 (record_truncated_value): Turn it into a for_each_rtx callback.
8298 (record_truncated_values): New function.
8299 (combine_instructions): Call note_uses with record_truncated_values.
8300 Change name of check_conversion to check_promoted_subreg.
8302 2008-05-15 Janis Johnson <janis187@us.ibm.com>
8304 * doc/sourcebuild.texi: Document support for torture tests.
8306 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
8308 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
8309 to alternative 4 of operand 2.
8311 2008-05-15 Richard Guenther <rguenther@suse.de>
8313 * tree-pass.h (current_pass): Declare.
8314 (get_pass_for_id): Likewise.
8315 * passes.c (passes_by_id, passes_by_id_size): New globals.
8316 (set_pass_for_id): New function.
8317 (get_pass_for_id): Likewise.
8318 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
8319 (execute_function_todo): Flush per function statistics.
8320 * toplev.c (compile_file): Init statistics.
8321 (general_init): Do early statistics initialization.
8322 (finalize): Finish statistics.
8323 * statistics.h (statistics_early_init): Declare.
8324 (statistics_init): Likewise.
8325 (statistics_fini): Likewise.
8326 (statistics_fini_pass): Likewise.
8327 (statistics_counter_event): Likewise.
8328 (statistics_histogram_event): Likewise.
8329 * statistics.c: New file.
8330 * Makefile.in (OBJS-common): Add statistics.o.
8331 (statistics.o): Add dependencies.
8332 * doc/invoke.texi (-fdump-statistics): Document.
8334 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
8336 (execute_pre): Use statistics_counter_event.
8337 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
8338 (substitute_and_fold): Increment it. Use statistics_counter_event.
8340 2008-05-15 Diego Novillo <dnovillo@google.com>
8342 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
8344 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
8345 * tree-ssa-alias.c (new_type_alias): Remove references to
8346 sub-variables from comment.
8347 * tree-ssa-operands.c (swap_tree_operands): Likewise.
8349 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
8351 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
8352 attribute to 1 only for insertps alternative.
8354 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
8356 * config/bfin/bfin.md (loadbytes): New pattern.
8357 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
8358 (bfin_init_builtins): Initialize it.
8359 (bdesc_1arg): Add it.
8361 2008-05-15 Sa Liu <saliu@de.ibm.com>
8363 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
8364 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
8365 * testsuite/lib/target-supports.exp: Add
8366 check_effective_target_fortran_integer_16.
8368 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
8370 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
8371 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
8372 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
8373 (TARGET_RETURN_IN_MEMORY): Define.
8375 2008-05-15 Richard Guenther <rguenther@suse.de>
8378 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
8379 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
8380 represent unmodifiable vars.
8382 2008-05-15 Richard Guenther <rguenther@suse.de>
8384 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
8385 INDIRECT_REF and TARGET_MEM_REF.
8386 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
8389 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
8390 H.J. Lu <hongjiu.lu@intel.com>
8392 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
8393 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
8394 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
8395 insn alternatives. Add missing alternatives.
8396 (*vec_concatv2di_rex64_sse4_1): Likewise.
8397 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
8398 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
8401 2008-05-15 Richard Guenther <rguenther@suse.de>
8403 PR tree-optimization/36009
8404 PR tree-optimization/36204
8405 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
8406 (determine_invariantness_stmt): Record the loop a store is
8408 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
8411 2008-05-15 Richard Guenther <rguenther@suse.de>
8413 PR tree-optimization/34330
8414 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
8415 through the pointer will alias the SMT.
8417 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
8419 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
8421 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
8423 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
8425 2008-05-14 Michael Meissner <michael.meissner@amd.com>
8426 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8428 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
8429 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
8430 (vashl_optab): New optab for vector/vector shifts.
8431 (vashr_optab): Ditto.
8432 (vlshr_optab): Ditto.
8433 (vrotl_optab): Ditto.
8434 (vrotr_optab): Ditto.
8435 (optab_subtype): New enum for optab_for_tree_code call.
8436 (optab_for_tree_code): Add enum optab_subtype argument.
8438 * optabs.c (optab_for_tree_code): Take an additional argument to
8439 distinguish between a vector shift by a scalar and vector shift by
8440 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
8441 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
8442 vector shift by a vector.
8443 (expand_widen_pattern_expr): Pass additional argument to
8444 optab_for_tree_code.
8446 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
8447 vrotl_optab, vrotr_optab.
8449 * expr.c (expand_expr_real_1): Update calls to
8450 optab_for_tree_code to distinguish between vector shifted by a
8451 scalar and vector shifted by a vector.
8452 * tree-vectorizer.c (supportable_widening_operation): Ditto.
8453 (supportable_narrowing_operation): Ditto.
8454 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
8455 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
8456 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
8457 (vect_create_epilog_for_reduction): Ditto.
8458 (vectorizable_reduction): Ditto.
8459 (vectorizable_operation): Ditto.
8460 (vect_strided_store_supported): Ditto.
8461 (vect_strided_load_supported): Ditto.
8462 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
8463 * expmed.c (expand_shift): Ditto.
8465 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
8467 (ashr@var{m}3): Ditto.
8468 (vashl@var{m}3): Document new vector/vector shift standard name.
8469 (vashr@var{m}3): Ditto.
8470 (vlshr@var{m}3): Ditto.
8471 (vrotl@var{m}3): Ditto.
8472 (vrotr@var{m}3): Ditto.
8474 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
8475 (PPERM_INVERT): Ditto.
8476 (PPERM_REVERSE): Ditto.
8477 (PPERM_REV_INV): Ditto.
8478 (PPERM_ZERO): Ditto.
8479 (PPERM_ONES): Ditto.
8480 (PPERM_SIGN): Ditto.
8481 (PPERM_INV_SIGN): Ditto.
8482 (PPERM_SRC1): Ditto.
8483 (PPERM_SRC2): Ditto.
8485 * config/i386/sse.md (mulv2di3): Add SSE5 support.
8486 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
8487 allows a memory operand to be the value being added, and split it
8488 to improve vectorization.
8489 (sse5_pmacsdqh_mem): Ditto.
8490 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
8491 (sse5_mulv2div2di3_high): Ditto.
8492 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
8493 (vec_pack_trunc_v4si): Ditto.
8494 (vec_pack_trunc_v2di): Ditto.
8495 (sse5_pcmov_<mode>): Remove code that tried to use use
8496 andps/andnps instead of pcmov.
8497 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
8498 pmacsdqh instructions.
8499 (vec_widen_smult_lo_v4si): Ditto.
8501 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
8502 (PPERM_INVERT): Ditto.
8503 (PPERM_REVERSE): Ditto.
8504 (PPERM_REV_INV): Ditto.
8505 (PPERM_ZERO): Ditto.
8506 (PPERM_ONES): Ditto.
8507 (PPERM_SIGN): Ditto.
8508 (PPERM_INV_SIGN): Ditto.
8509 (PPERM_SRC1): Ditto.
8510 (PPERM_SRC2): Ditto.
8511 (ix86_expand_sse_movcc): Move the SSE5 test after the if
8513 (ix86_expand_int_vcond): If SSE5 generate all possible integer
8515 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
8516 says ignore whether the last reference is a memory operand.
8518 2008-05-14 Michael Meissner <michael.meissner@amd.com>
8519 Paolo Bonzini <bonzini at gnu dot org>
8521 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
8524 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
8525 (vlshr<mode>3): Rename from vlshr<mode>3.
8526 (vashr<mode>3): Rename from vashr<mode>3.
8527 (mulv4sf3): Change the names of vector shift patterns.
8531 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
8534 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
8559 * config/spu/spu.md (v): New iterator macro to add v for vector types.
8560 (floatunssidf2_internal): Change vector/vector shift names.
8561 (floatunsdidf2_internal): Ditto.
8568 (vashl<mode>3): Rename from ashl<mode>3.
8569 (vashr<mode>3): Rename from ashr<mode>3.
8570 (vlshr<mode>3): Rename from lshr<mode>3.
8571 (vrotl<mode>3): Rename from rotl<mode>3.
8573 2008-05-14 Michael Meissner <michael.meissner@amd.com>
8576 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
8577 multiply gives the wrong value when doing widening multiplies.
8578 (vec_widen_smult_lo_v4si): Ditto.
8580 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
8582 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
8583 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
8584 emit_library_call_value.
8585 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
8586 * tree.h (ECF_LIBCALL_BLOCK): Removed.
8587 * calls.c (initialize_argument_information, precompute_arguments,
8588 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
8589 (precompute_arguments): Removed flags parameter.
8590 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
8592 2008-05-14 Richard Guenther <rguenther@suse.de>
8594 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
8595 Make sure to register the store if the use is a PHI_NODE.
8597 2008-05-14 Olivier Hainque <hainque@adacore.com>
8599 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
8600 memory if the component is to be referenced in BLKmode according
8601 to get_inner_reference.
8603 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
8605 * calls.c (emit_library_call_value_1): Restore code clearing
8606 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
8608 2008-05-14 Olivier Hainque <hainque@adacore.com>
8609 Nicolas Roche <roche@adacore.com>
8611 * configure.ac: Add support for a "gcc_subdir" variable in
8612 config-lang.in, to denote a subdirectory where the language/GCC
8613 integration files are to be found.
8614 * configure: Regenerate.
8616 2008-05-14 Ira Rosen <irar@il.ibm.com>
8618 PR tree-optimization/36098
8619 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
8620 value for the first load in the group in case of a gap.
8621 (vect_build_slp_tree): Check that there are no gaps in loads.
8623 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
8625 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
8626 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
8627 expand_copysign_bit, ): Change call to emit_no_conflict_block to
8628 emit_insn and remove unneeded code to construct extra args.
8629 (emit_no_conflict_block): Removed.
8630 * optabls.h: (emit_no_conflict_block): Removed.
8631 * cse.c (cse_extended_basic_block): Remove search for
8632 REG_NO_CONFLICT note.
8633 * global.c: Removed incorrect comment added in revision 117.
8634 * expr.c (convert_move): Change call to emit_no_conflict_block to
8636 * recog.c: Change comments so that they do not mention
8638 * local_alloc.c (combine_regs): Removed last parameter.
8639 (no_conflict_p): Removed.
8640 (block_alloc): Removed note, no_conflict_combined_regno and set
8641 local vars. Removed all code to process REG_NO_CONFLICT blocks.
8642 (combine_regs): Removed already_dead and code to look for
8643 REG_NO_CONFLICT notes.
8644 * lower_subreg (remove_retval_note): Removed code to look for
8645 REG_NO_CONFLICT block.
8646 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
8647 (resolve_clobber): Remove code to process libcalls that have
8648 REG_NO_CONFLICT notes.
8649 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
8651 * combine.c (can_combine_p, distribute_notes): Removed
8652 REG_NO_CONFLICT case.
8653 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
8655 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
8656 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
8658 * reg-notes.def (NO_CONFLICT): Removed.
8660 2008-05-14 David S. Miller <davem@davemloft.net>
8662 * config/sparc/sparc.c (sparc_profile_hook): If
8663 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
8664 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
8665 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8667 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
8669 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
8671 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
8674 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
8675 and op1 expansion before vector concat to have less live pseudos.
8677 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
8679 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8680 ix86_expand_vector_set if supported.
8682 2008-05-13 Diego Novillo <dnovillo@google.com>
8683 Kenneth Zadeck <zadeck@naturalbridge.com>
8685 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
8687 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
8688 phinodes_print_statistics, init_ssanames, fini_ssanames,
8689 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
8690 release_ssa_name, release_defs, replace_ssa_name_symbol,
8691 ssanames_print_statistics): Move ...
8692 * tree-flow.h: ... here.
8693 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
8694 Use FN instead of cfun.
8695 (make_ssa_name_fn): Rename from make_ssa_name.
8696 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
8697 * tree-flow-inline.h (make_ssa_name): Move from
8698 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
8699 * omp-low.c (expand_omp_parallel):
8700 * tree-flow-inline.h (redirect_edge_var_map_result):
8701 * tree-ssa.c (init_tree_ssa): Add argument FN.
8702 Use it instead of cfun. Update all users.
8704 2008-05-13 Tom Tromey <tromey@redhat.com>
8706 PR preprocessor/22168:
8707 * doc/cpp.texi (Top): Update menu.
8708 (Alternatives to Wrapper #ifndef): New node.
8709 (Other Directives): Document deprecation.
8710 (Obsolete Features): Remove menu.
8711 (Assertions): Merge node into Obsolete Features.
8712 (Obsolete once-only headers): Move earlier; rename to Alternatives
8714 * doc/cppopts.texi: Update.
8715 * c.opt (Wdeprecated): Enable for C and ObjC.
8716 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
8717 (C++ Dialect Options): Move -Wno-deprecated from here to...
8718 (Warning Options): ... here.
8720 2008-05-13 Richard Guenther <rguenther@suse.de>
8723 * fold-const.c (fold_sign_changed_comparison): Do not allow
8724 changes in pointer-ness.
8726 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
8729 * config/sh/sh.c (sh_expand_prologue): Don't clear
8730 RTX_FRAME_RELATED_P for push insns.
8732 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
8734 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
8736 2008-05-12 Anatoly Sokolov <aesok@post.ru>
8738 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
8739 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
8740 Use 'machine->is_leaf' instead of 'leaf_func_p'.
8742 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
8744 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
8745 (*vec_concatv4sf_sse): This.
8746 (*sse2_concatv2si): Renamed to ...
8747 (*vec_concatv2si_sse2): This.
8748 (*sse1_concatv2si): Renamed to ...
8749 (*vec_concatv2si_sse): This.
8750 (*vec_concatv2di_rex): Renamed to ...
8751 (*vec_concatv2di_rex64): This.
8752 (*vec_concatv2si_sse4_1): New.
8753 (*vec_concatv2di_rex64_sse4_1): Likewise.
8755 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
8757 PR rtl-optimization/36111
8758 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
8759 that was created for swappable operands.
8761 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
8764 * Makefile.in: Substitute GNATMAKE and GNATBIND.
8765 * configure.ac: Add call to ACX_PROG_GNAT.
8767 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
8769 * optc-gen.awk: Fix comment typo.
8771 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8773 * pretty-print.c (pp_integer_with_precision): Use
8774 HOST_LONG_LONG_FORMAT.
8776 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
8778 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
8780 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
8782 * config/i386/i386.c (bdesc_ptest): Removed.
8783 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
8784 (bdesc_args): Add __builtin_ia32_ptestz128,
8785 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
8786 (ix86_init_mmx_sse_builtins): Updated.
8787 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
8788 (ix86_expand_builtin): Updated.
8790 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
8792 * tree-cfg.c (valid_fixed_convert_types_p): New function.
8793 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
8795 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
8797 * value-prof.c (interesting_stringop_to_profile): Do not
8798 return early for BUILT_IN_MEMPCPY.
8800 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
8802 * calls.c (expand_call): Don't use callgraph to increase
8803 preferred_stack_boundary.
8805 * cgraph.h (cgraph_rtl_info): Use unsigned on
8806 preferred_incoming_stack_boundary.
8808 * final.c (rest_of_clean_state): Use unsigned on
8809 preferred_stack_boundary.
8811 2008-05-09 Tom Tromey <tromey@redhat.com>
8813 PR preprocessor/22231:
8814 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
8817 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
8819 PR tree-optimization/36129
8820 * tree-ssa-ccp.c: Include value-prof.h.
8821 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
8822 built-in function was folded to a constant.
8823 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
8825 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
8826 Sebastian Pop <sebastian.pop@amd.com>
8828 * tree-scalar-evolution.c: Document instantiate_scev.
8829 (instantiate_parameters_1): Renamed instantiate_scev_1.
8830 Don't use the same loop for instantiation_loop and evolution_loop.
8831 (instantiate_scev): New.
8832 (instantiate_parameters): Moved...
8833 (resolve_mixers): Update call to instantiate_scev_1 to pass the
8834 same loop twice. Maintains the semantics for this function.
8835 * tree-scalar-evolution.h (instantiate_scev): Declare.
8836 (instantiate_parameters): ...here. Now static inline.
8837 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
8838 instead of resolve_mixers.
8840 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
8842 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
8844 2008-05-09 Tomas Bily <tbily@suse.cz>
8846 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
8847 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
8848 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8849 * c-common.c (c_common_truthvalue_conversion): Likewise.
8850 * tree-object-size.c (compute_object_offset): Likewise.
8851 * tree-inline.c (estimate_num_insns_1): Likewise.
8852 * varasm.c (const_hash_1, compare_constant, copy_constant)
8853 (compute_reloc_for_constant, output_addressed_constants)
8854 (initializer_constant_valid_p): Likewise.
8855 * c-omp.c (check_omp_for_incr_expr): Likewise.
8856 * gimplify.c (gimplify_expr): Likewise.
8857 * c-typeck.c (c_finish_return): Likewise.
8858 * tree-vectorizer.c (supportable_widening_operation)
8859 (supportable_narrowing_operation): Likewise.
8860 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8861 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8862 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8863 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8864 (descr_info_loc): Likewise.
8865 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8866 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8867 (fold_unary): Likewise.
8868 * builtins.c (get_pointer_alignment): Likewise.
8869 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8870 (instantiate_parameters_1): Likewise.
8871 * tree.c (expr_align, stabilize_reference): Likewise.
8872 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8873 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8874 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8875 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8876 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
8877 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8879 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8880 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8881 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8882 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8883 (forward_propagate_comparison)
8884 (tree_ssa_forward_propagate_single_use_vars): Likewise.
8885 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8886 * emit-rtl.c (component_ref_for_mem_expr)
8887 (set_mem_attributes_minus_bitpos): Likewise.
8888 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8889 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8891 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8892 (build_function_call, pointer_diff, build_compound_expr)
8893 (c_finish_return): Likewise.
8894 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
8895 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8897 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8898 * expr.c (is_aligning_offset): Likewise.
8899 * tree-ssa-alias.c (is_escape_site): Likewise.
8900 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8901 (check_all_va_list_escapes): Likewise.
8902 * tree-ssa-loop-ivopts.c (determine_base_object)
8903 (determine_common_wider_type): Likewise.
8904 * dojump.c (do_jump): Likewise.
8905 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8906 * tree-gimple.c (is_gimple_cast): Likewise.
8907 * fold-const.c (decode_field_reference, )
8908 (fold_sign_changed_comparison, fold_unary, fold_comparison)
8909 (fold_binary): Likewise.
8910 * tree-ssa-alias-warnings.c (find_alias_site_helper)
8911 (already_warned_in_frontend_p): Likewise.
8912 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8913 * tree.c (really_constant_p, get_unwidened): Likewise.
8914 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8915 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
8916 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8918 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8920 (CONVERT_EXPR_P): Define.
8921 (CASE_CONVERT): Define.
8923 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8926 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8927 (delete_unmarked_insns): When deleting a call, call
8928 delete_unreachable_blocks.
8929 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8930 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8932 2008-05-08 Richard Guenther <rguenther@suse.de>
8934 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8935 (-ftree-salias): Likewise.
8936 (salias-max-implicit-fields): Remove param documentation.
8937 (salias-max-array-elements): Likewise.
8938 * tree-pass.h (pass_create_structure_vars): Remove.
8939 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8940 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8941 * tree-ssa-alias.c (create_structure_vars): Remove.
8942 (gate_structure_vars): Likewise.
8943 (pass_create_structure_vars): Likewise.
8944 (gate_build_alias): Likewise.
8945 (pass_build_alias): Adjust to run always and dump the function.
8946 * common.opt (ftree-salias): Hide.
8947 * passes.c (init_optimization_passes): Remove
8948 pass_create_structure_vars, adjust comment.
8949 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8950 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8951 * opts.c (decode_options): Do not set flag_tree_salias.
8952 (common_handle_option): Add OPT_ftree_salias to the backward
8953 compatibility section.
8955 2008-05-08 Richard Guenther <rguenther@suse.de>
8957 * tree-flow-inline.h (var_can_have_subvars): Move ...
8958 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8959 * tree-flow.h (var_can_have_subvars): Remove.
8960 (push_fields_onto_fieldstack): Remove.
8961 (sort_fieldstack): Likewise.
8962 (struct fieldoff): Move ...
8963 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
8964 alias_set and base_for_components fields.
8965 (sort_fieldstack): Make static.
8966 (push_fields_onto_fieldstack): Likewise. Remove code that
8967 handles anything but RECORD_TYPEs. Remove alias_set and
8968 base_for_components handling.
8969 (create_variable_info_for): Adjust.
8971 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
8973 * common.opt (Wframe-larger-than=): Shorten the help message
8975 * doc/invoke.texi (Wframe-larger-than=): Add more description.
8977 2008-05-08 Rafael Espindola <espindola@google.com>
8979 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8981 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8982 trap and that both operands are gimple values.
8983 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8984 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8987 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8989 * read-rtl.c (join_c_conditions): Return the first string if the
8990 two strings are equal.
8992 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8994 * gensupport.h (pred_data): Add a "num_codes" field.
8995 (add_predicate_code): Declare.
8996 * gensupport.c (add_predicate_code): New function.
8997 (std_pred_table): Add an "allows_const_p" field.
8998 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8999 Remove the (incomplete) list of such codes from the codes field.
9000 (init_predicate_table): Use add_predicate_code. Add all
9001 RTX_CONST_OBJs if allows_const_p is true.
9002 * genrecog.c (process_define_predicate): Use add_predicate_code.
9004 2008-05-08 David Daney <ddaney@avtrex.com>
9005 Richard Sandiford <rsandifo@nildram.co.uk>
9007 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
9008 special case of constant zero operands.
9009 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
9010 old and new values. Special case constant zero values.
9011 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
9013 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
9014 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
9016 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
9019 * simplify-rtx.c (simplify_plus_minus): Create CONST of
9020 similar RTX_CONST_OBJ before CONST_INT.
9022 2008-05-08 Steve Ellcey <sje@cup.hp.com>
9024 * stmt.c (expand_stack_restore): Change sa mode if needed.
9026 2008-05-08 Richard Guenther <rguenther@suse.de>
9028 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
9029 return type to bool.
9030 (ix86_sol10_return_in_memory): Likewise.
9031 (ix86_i386elf_return_in_memory): Likewise.
9032 (ix86_i386interix_return_in_memory): Likewise.
9033 * config/i386/i386.c (ix86_return_in_memory): Likewise.
9034 (ix86_sol10_return_in_memory): Likewise.
9035 (ix86_i386elf_return_in_memory): Likewise.
9036 (ix86_i386interix_return_in_memory): Likewise.
9038 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
9041 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
9043 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
9044 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
9047 2008-05-08 Richard Guenther <rguenther@suse.de>
9049 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
9050 * tree-data-ref.h (struct dr_alias): Remove subvars field.
9051 (DR_SUBVARS): Remove.
9052 * tree-dfa.c (dump_subvars_for): Remove.
9053 (debug_subvars_for): Likewise.
9054 (dump_variable): Do not dump subvars.
9055 (remove_referenced_var): Do not remove subvars.
9056 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
9057 (lookup_subvars_for_var): Remove.
9058 (get_subvars_for_var): Likewise.
9059 (get_subvars_at): Likewise.
9060 (get_first_overlapping_subvar): Likewise.
9061 (overlap_subvar): Likewise.
9062 * tree-flow.h (subvar_t): Remove.
9063 (struct var_ann_d): Remove subvars field.
9064 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
9065 argument. Remove special handling of SFTs.
9066 (compute_tag_properties): Likewise.
9067 (set_initial_properties): Likewise.
9068 (compute_call_clobbered): Likewise.
9069 (count_mem_refs): Likewise.
9070 (compute_memory_partitions): Likewise.
9071 (compute_flow_insensitive_aliasing): Likewise.
9072 (setup_pointers_and_addressables): Likewise.
9073 (new_type_alias): Likewise.
9074 (struct used_part): Remove.
9075 (used_portions): Likewise.
9076 (struct used_part_map): Likewise.
9077 (used_part_map_eq): Likewise.
9078 (used_part_map_hash): Likewise.
9079 (free_used_part_map): Likewise.
9080 (up_lookup): Likewise.
9081 (up_insert): Likewise.
9082 (get_or_create_used_part_for): Likewise.
9083 (create_sft): Likewise.
9084 (create_overlap_variables_for): Likewise.
9085 (find_used_portions): Likewise.
9086 (create_structure_vars): Likewise.
9087 * tree.def (STRUCT_FIELD_TAG): Remove.
9088 * tree.h (MTAG_P): Adjust.
9089 (struct tree_memory_tag): Remove base_for_components and
9090 unpartitionable flags.
9091 (struct tree_struct_field_tag): Remove.
9092 (SFT_PARENT_VAR): Likewise.
9093 (SFT_OFFSET): Likewise.
9094 (SFT_SIZE): Likewise.
9095 (SFT_NONADDRESSABLE_P): Likewise.
9096 (SFT_ALIAS_SET): Likewise.
9097 (SFT_UNPARTITIONABLE_P): Likewise.
9098 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
9099 (union tree_node): Remove sft field.
9100 * alias.c (get_alias_set): Remove special handling of SFTs.
9101 * print-tree.c (print_node): Remove handling of SFTs.
9102 * tree-dump.c (dequeue_and_dump): Likewise.
9103 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
9104 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
9105 * tree-predcom.c (set_alias_info): Do not set subvars.
9106 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
9107 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
9108 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
9109 (add_vars_for_offset): Remove.
9110 (add_virtual_operand): Remove special handling of SFTs.
9111 (add_call_clobber_ops): Likewise.
9112 (add_call_read_ops): Likewise.
9113 (get_asm_expr_operands): Likewise.
9114 (get_modify_stmt_operands): Likewise.
9115 (get_expr_operands): Likewise.
9116 (add_to_addressable_set): Likewise.
9117 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
9118 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9119 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
9120 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
9121 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
9122 (tree_node_structure): Likewise.
9123 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
9125 (find_what_p_points_to): Likewise.
9127 2008-05-08 Sa Liu <saliu@de.ibm.com>
9129 * config/spu/spu.md: Fixed subti3 pattern.
9131 2008-05-08 Richard Guenther <rguenther@suse.de>
9134 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9135 sure to create a representative for trailing arrays for PTA.
9137 2008-05-08 Richard Guenther <rguenther@suse.de>
9140 * fold-const.c (operand_equal_p): Two objects which types
9141 differ in pointerness are not equal.
9143 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
9145 * calls.c (compute_argument_block_size): Add argument tree fndecl.
9146 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
9147 (emit_library_call_value_1): Add new variable fndecl initialized by
9148 NULL_TREE. It should be the decl type of orgfun, but this information
9149 seems not to be available here, so it uses the default calling abi.
9150 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
9151 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
9152 by TARGET_RETURN_IN_MEMORY.
9153 * config/i386/i386-interix.h: Likewise.
9154 * config/i386/i386.h: Likewise.
9155 * config/i386/i386elf.h: Likewise.
9156 * config/i386/ptx4-i.h: Likewise.
9157 * config/i386/sol2-10.h: Likewise.
9158 * config/i386/sysv4.h: Likewise.
9159 * config/i386/vx-common.h: Likewise.
9160 * config/cris/cris.h: Removed #if 0 clause.
9161 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
9162 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
9164 (ix86_sol10_return_in_memory): Likewise.
9165 (ix86_i386elf_return_in_memory): New.
9166 (ix86_i386interix_return_in_memory): New.
9167 * config/mt/mt-protos.h (mt_return_in_memory): New.
9168 * config/mt/mt.c: Likewise.
9169 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
9170 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
9171 * config/bfin/bfin.h: Likewise.
9172 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
9174 * config/bfin/bfin.c: Likewise.
9175 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
9176 * config/alpha/unicosmk.h: Likewise.
9177 * config/i386/cygming.h: Likewise.
9178 * config/iq2000/iq2000.h: Likewise.
9179 * config/mips/mips.h: Likewise.
9180 * config/mn10300/mn10300.h: Likewise.
9181 * config/rs6000/rs6000.h: Likewise.
9182 * config/score/score.h: Likewise.
9183 * config/spu/spu.h: Likewise.
9184 * config/v850/v850.h: Likewise.
9185 * defaults.h: Likewise.
9186 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
9187 * expr.c (emit_block_move): Adjust use of
9188 OUTGOING_REG_PARM_STACK_SPACE.
9189 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
9190 OUTGOING_REG_PARM_STACK_SPACE.
9191 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
9193 2008-05-08 Jakub Jelinek <jakub@redhat.com>
9195 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
9196 on OMP_RETURN for OMP_FOR.
9199 * dwarf2out.c (dw_expand_expr, common_check): Removed.
9200 (fortran_common): New function.
9201 (gen_variable_die): Call fortran_common instead of common_check,
9202 adjust for it returning tree instead of rtx. Formatting.
9204 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
9208 * see.c (see_copy_insn): Copy new pure const attributes for new call.
9209 * c-decl.c (merge_decls): Ditto.
9210 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
9211 to RTL_CONST_OR_PURE_CALL_P.
9212 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
9213 Initialized DECL_LOOPING_CONST_PURE.
9214 (process_call_operands): Set tree_side_effects properly.
9215 * tree.h (TREE_READONLY_DECL_P): Removed.
9216 (DECL_IS_PURE): Renamed to DECL_PURE_P.
9217 (DECL_LOOPING_OR_CONST_P): New macro.
9218 (struct tree_function_decl): Added looping_const_or_pure_p.
9220 (ECF_LOOPING_OR_CONST_P): New macro.
9221 * rtlanal.c (pure_const_p): Removed.
9222 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
9223 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
9224 to RTL_CONST_CALL_P.
9225 * ipa-pure-const.c (pure_const_state_e): Added looping field.
9226 (check_decl, check_tree, check_call, scan_function): Initialize
9228 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
9229 (static_execute): Set looping true for recursive functions.
9230 Undo setting state to IPA_NEITHER for recursive functions.
9232 * ifcvt.c (noce_can_store_speculate_p): Changed
9233 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
9234 RTL_CONST_OR_PURE_CALL_P.
9235 * dse.c (scan_insn): Ditto.
9236 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
9237 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
9238 RTL_CONST_OR_PURE_CALL_P.
9239 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
9240 pure_call_p to RTL_CONST_CALL_P.
9241 * gimplify.c (gimplify_call_expr): Clear side effects for
9242 non-looping pure and constant calls.
9243 * calls.c (emit_call_1): Set rtl flags from ecf flags.
9244 (flags_from_decl_or_type): Set ecf flags from decl flags.
9245 (initialize_argument_information): Turn off
9246 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
9247 Change const to pure if callee_copies is true rather than just
9249 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
9250 way of marking pure calls.
9251 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
9252 Remove hack that was supposed to fix pr7335 and remove old
9253 way of marking pure calls.
9254 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
9255 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
9256 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
9257 RTL_CONST_OR_PURE_CALL_P.
9258 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
9259 * loop-invariant.c (find_exits, find_invariant_bb): Changed
9260 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
9261 * sched-deps.c (schedule_analyze): Ditto.
9262 * rtl.h (struct rtx_def): Use call field, unchanging field, and
9263 return_val field of calls to represent pure and const function info.
9264 (CONST_OR_PURE_CALL_P): Deleted macro.
9265 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
9266 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
9267 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
9269 * tree-optimize.c (execute_fixup_cfg): Added test for
9270 ECF_LOOPING_CONST_OR_PURE.
9271 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
9273 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
9274 effects for looping pure or const calls.
9275 (verify_gimple_expr): Added verification code.
9276 * config/alpha/alpha.c (alpha_legitimize_address,
9277 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
9279 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
9280 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
9281 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
9282 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
9283 RTL_CONST_OR_PURE_CALL_P.
9284 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
9285 and const calls to be deleted.
9287 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
9290 * config/i386/mmx.md (mmx_subv2sf3): New expander.
9291 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
9292 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
9293 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
9294 to handle nonimmediate operands.
9295 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
9296 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
9297 to handle nonimmediate operands.
9298 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
9299 (mmx_pmulhrwv4hi3): New expander. Use
9300 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9301 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
9302 (sse2_umulv1siv1di3): New expander. Use
9303 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9304 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
9305 (mmx_eq<mode>3): New expander. Use
9306 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9307 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
9308 (mmx_uavgv8qi3): New expander. Use
9309 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9310 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
9311 (mmx_uavgv4hi3): New expander. Use
9312 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9314 * config/i386/sse.md
9315 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
9316 to handle nonimmediate operands.
9317 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
9318 to handle nonimmediate operands.
9319 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
9320 to handle nonimmediate operands.
9321 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
9322 to handle nonimmediate operands.
9323 (sse2_unpckhpd_exp): New expander. Use
9324 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9325 (sse2_unpcklpd_exp): New expander. Use
9326 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9327 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
9328 to handle nonimmediate operands.
9329 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
9330 to handle nonimmediate operands.
9331 (*sse2_<plusminus_insn><mode>3): Rename from
9332 sse2_<plusminus_insn><mode>3 insn pattern.
9333 (sse2_<plusminus_insn><mode>3): New expander. Use
9334 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9335 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
9336 (sse2_umulv2siv2di3): New expander. Use
9337 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9338 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
9339 (sse4_1_mulv2siv2di3): New expander. Use
9340 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9341 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
9342 (sse2_pmaddwd): New expander. Use
9343 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9344 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
9345 (sse2_eq<mode>3): New expander. Use
9346 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9347 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
9348 (sse4_1_eqv2di3): New expander. Use
9349 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9350 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
9351 (sse2_uavgv16qi3): New expander. Use
9352 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9353 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
9354 (sse2_uavgv16qi3): New expander. Use
9355 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9356 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
9357 (sse2_uavgv8hi3): New expander. Use
9358 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9359 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
9360 (ssse3_pmulhrswv8hi3): New expander. Use
9361 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9362 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
9363 (ssse3_pmulhrswv4hi3): New expander. Use
9364 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9366 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
9367 (<sse>_vmmul<mode>3): Ditto.
9368 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
9370 (ssse3_pmaddubsw128): Use register_operand for operand 1.
9371 (ssse3_pmaddubsw): Ditto.
9373 * config/i386/i386.c (struct_builtin_description)
9374 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
9375 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
9376 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
9377 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
9378 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
9379 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
9380 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
9381 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
9382 (ix86_fixup_binary_operands): Assert that src1
9383 and src2 must have the same mode when swapped.
9384 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
9385 and ix86_binary_operator_ok. Do not force operands in registers
9388 2008-05-07 Jan Hubicka <jh@suse.cz>
9390 * cgraph.c (dump_cgraph_node): Update.
9391 * cgraph.h (cgraph_local_info): Break out inline summary.
9392 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
9394 * ipa-inline (inline_summary): New accestor function.
9395 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
9396 cgraph_decide_inlining, compute_inline_parameters): Update.
9397 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
9399 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9401 Cleanup ColdFire scheduling support and add V4 pipeline model.
9403 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
9404 (define_attr cpu): Add cfv4 value.
9405 (define_attr type, define_attr type1): Merge into a single 'type'
9406 attribute. Update all uses.
9407 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
9408 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
9410 (define_attr opx_mem, define_attr opy_mem): Remove.
9411 (define_attr op_mem): Clean up, update comment.
9412 (define_attr size): Use specific values instead of general int.
9413 (define_attr guess, define_attr split): Remove. Update all uses.
9414 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
9415 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
9416 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
9417 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
9418 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
9419 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
9420 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
9421 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
9422 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
9423 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
9424 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
9425 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
9426 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
9427 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
9428 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
9429 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
9430 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
9431 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
9432 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
9433 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
9434 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
9435 Update or set attributes.
9436 (stack_tie): New fake instruction.
9438 * config/m68k/m68k.h (TUNE_CFV4): New macro.
9439 (m68k_sched_attr_size): Update declaration.
9440 (m68k_sched_attr_type2): Remove.
9441 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
9442 Declare new bypass predicates.
9444 * config/m68k/m68k.c (m68k_sched_issue_rate,
9445 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
9447 (TARGET_SCHED_ISSUE_RATE,
9448 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
9449 (override_options): Handle scheduling for ColdFire V4 core.
9450 (m68k_expand_prologue): Emit stack_tie.
9451 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
9452 'OP_TYPE_FPN'. Update all uses.
9453 (sched_guess_p): Remove.
9454 (sched_address_type): Handle symbolic addresses.
9455 (sched_get_operand): New static function.
9456 (sched_operand_type): Merge into sched_attr_op_type.
9457 (sched_attr_op_type): Handle FP registers, handle quick constants,
9459 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
9460 (m68k_sched_attr_size): Update. Move logic to ...
9461 (sched_get_attr_size_int): New static function.
9462 (sched_get_opxy_mem_type): New static function.
9463 (m68k_sched_attr_op_mem): Update.
9464 (m68k_sched_attr_type2): Remove.
9465 (sched_cfv4_bypass_data): New static variable.
9466 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
9467 (m68k_sched_issue_rate): Implement scheduler hook.
9468 (struct _sched_ib: enabled_p): New field.
9469 (m68k_sched_variable_issue): Update. Handle V4.
9470 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
9471 sched_dump_class_func_t, sched_dump_split_class,
9472 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
9473 sched_dump_dfa_class, m68k_sched_dump): Remove.
9474 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
9476 (m68k_sched_init_global): Remove statisctics dumping, introduce
9477 sanity check that all instructions have pipeline reservations. Handle
9479 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9480 Handle ColdFire V4 core.
9481 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
9482 New static functions.
9483 (m68k_sched_address_bypass_p): New bypass predicate.
9484 (sched_get_indexed_address_scale): New static function.
9485 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
9487 * cf.md: Update comments.
9488 (define_attr type2): Remove. Use 'type' attribute instead.
9490 (cf_ib): Rename to cfv123_ib. Update all uses.
9491 (cf_oep): Rename to cfv123_oep. Update all uses.
9492 (cf_chr): Rename to cfv123_chr. Update all uses.
9493 (cf_mem): Rename to cfv123_mem. Update all uses.
9494 (cf_mac): Move to more appropriate place.
9495 (cfv123_guess): New automaton and cpu_unit.
9496 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
9497 Update uses of 'size' attribute. Handle before reload scheduling.
9498 (cfv123_guess): New dummy reservation for unhandled instructions.
9499 (cfv4_*): Pipeline description of ColdFire V4 core.
9500 (ignore): New reservation to handle 'ignore' type.
9502 2008-05-07 Ian Lance Taylor <iant@google.com>
9505 * gimplify.c (find_single_pointer_decl_1): Don't look through
9507 (find_single_pointer_decl): Adjust comments.
9509 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9512 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
9513 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
9516 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
9517 integral type rather than floating point, then VIEW_CONVERT_EXPR
9518 to the floating point type.
9520 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
9522 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
9523 TFmode op0 to register.
9525 2008-05-07 Alan Modra <amodra@bigpond.net.au>
9527 * c-decl.c (grokdeclarator): Comment typo.
9529 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
9531 * tree-flow.h: Remove prototype for computed_goto_p.
9532 * tree-cfg.c (computed_goto_p): Make static.
9534 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
9537 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
9538 (contains_aligned_value_p): This. Handle _Decimal128.
9539 (ix86_function_arg_boundary): Only align _Decimal128 to its
9540 natural boundary and handle it properly.
9542 2008-05-06 Martin Jambor <mjambor@suse.cz>
9544 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
9545 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
9546 (ipcp_method_set_orig_node): Removed.
9547 (ipcp_cval_get_cvalue_type): Removed.
9548 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
9549 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
9550 (ipcp_cval_set_cvalue_type): Removed.
9551 (ipcp_cval_get_cvalue): Removed.
9552 (ipcp_cval_set_cvalue): Removed.
9553 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
9554 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
9555 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
9556 (ipcp_cval_meet): Renamed to ipa_lattice_meet
9557 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
9558 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
9559 (ipcp_get_ith_lattice): Changed parameters.
9560 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
9561 (ipcp_lattice_from_jfunc): Changed parameters.
9562 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
9563 (ipcp_method_cval_print): Added temporary variable info.
9564 (ipcp_redirect): Removed already unused local variable caller.
9565 (ipcp_redirect): New temporary variable orig_callee_info
9566 (ipcp_redirect): Removed newly unused local variable callee.
9567 (ipcp_redirect): Removed (a bit confusing) local variable type.
9568 (ipcp_insert_stage): Added local variable info.
9569 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
9571 (ipcp_formal_create): Removed.
9572 (ipcp_method_cval_set): Removed.
9573 (ipcp_propagate_stage): Renamed lattice variables.
9574 (ipcp_method_cval_set_cvalue_type): Removed.
9575 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
9576 (ipcp_print_all_lattices): Changed printed strings to refer to
9577 lattices rather than cvals.
9578 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
9579 (ipcp_propagate_const): Changed formal parameters.
9580 (build_const_val): Changed formal parameters.
9581 (ipcp_insert_stage): Removed useless variable cvalue
9582 (build_const_val): Changed formal parameters.
9583 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
9584 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
9585 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
9586 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
9587 (ipcp_print_func_profile_counts): Changed string from "method" to
9589 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
9590 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
9591 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
9592 (ipcp_structures_print): Renamed to ipcp_print_all_structures
9593 (ipcp_profile_print): Renamed to ipcp_print_profile_data
9594 (ipcp_lat_is_const): Changed parameters and made inline.
9595 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
9596 (ipcp_redirect): Renamed to ipcp_need_redirect_p
9597 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
9598 the predicate condition directly
9599 (ipcp_propagate_stage): Added local variable args. Removed local
9600 variable callee. (Both are mere code simplifications.)
9601 (ipcp_method_dont_insert_const): Renamed to
9602 ipcp_node_not_modifiable_p.
9603 (ipcp_node_not_modifiable_p): Made inline.
9604 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
9605 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
9606 (ipcp_print_all_lattices): Removed variable cvalue
9607 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
9610 2008-05-06 Olivier Hainque <hainque@adacore.com>
9612 * tree-sra.c (try_instantiate_multiple_fields): Early return
9613 if field has POINTER_TYPE.
9615 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
9617 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
9618 by using 'q' specifier for instruction.
9619 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
9621 2008-05-06 Anatoly Sokolov <aesok@post.ru>
9623 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9624 Change mode of zero_extract from QImode to HImode.
9625 (sign bit tests peepholes): (Ditto.).
9627 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
9629 * config/i386/mmx.md: Remove double backslashes from asm templates.
9630 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
9631 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
9632 to handle nonimmediate operands.
9633 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
9634 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
9635 to handle nonimmediate operands.
9636 (*mmx_<code>v2sf3_finite): New insn pattern.
9637 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
9638 (mmx_<code>v2sf3): New expander. Use
9639 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9640 (mmx_<plusminus_insn><mode>3): New expander. Use
9641 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9642 (*mmx_<plusminus_insn><mode>3): New insn pattern.
9643 (mmx_add<mode>3): Removed.
9644 (mmx_ssadd<mode>3): Ditto.
9645 (mmx_usadd<mode>3): Ditto.
9646 (mmx_sub<mode>3): Ditto.
9647 (mmx_sssub<mode>3): Ditto.
9648 (mmx_ussub<mode>3): Ditto.
9649 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
9650 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
9651 to handle nonimmediate operands.
9652 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
9654 (mmx_smulv4hi3_highpart): New expander. Use
9655 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9656 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
9658 (mmx_umulv4hi3_highpart): New expander. Use
9659 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9660 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
9661 (mmx_<code>v4hi3): New expander. Use
9662 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9663 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
9664 (mmx_<code>v8qi3): New expander. Use
9665 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9666 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
9667 (mmx_<code><mode>3): New expander. Use
9668 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9670 2008-05-05 Jan Hubicka <jh@suse.cz>
9672 PR tree-optimization/36118
9673 * passes.c (pass_init_dump_file): Fix dump header.
9675 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9678 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
9679 VCE for function decls.
9681 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9683 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
9685 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9687 * config/i386/i386.md (sat_plusminus): New.
9688 (plusminus_insn): Likewise.
9689 (plusminus_mnemonic): Likewise.
9691 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
9692 (*<addsub><mode>3_cc_overflow): Renamed to ...
9693 (*<plusminus_insn><mode>3_cc_overflow): This.
9694 (*<addsub>si3_zext_cc_overflow): Renamed to ...
9695 (*<plusminus_insn>si3_zext_cc_overflow): This.
9697 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
9698 (<plusminus_insn><mode>3): This.
9699 (*<addsub><mode>3): Renamed to ...
9700 (*<plusminus_insn><mode>3): This.
9701 (<sse>_vm<addsub><mode>3): Renamed to ...
9702 (<sse>_vm<plusminus_insn><mode>3): This.
9703 (sse3_h<addsub>v4sf3): Renamed to ...
9704 (sse3_h<plusminus_insn>v4sf3): This.
9705 (sse3_h<addsub>v2df3): Renamed to ...
9706 (sse3_h<plusminus_insn>v2df3): This.
9707 (<plusminus_insn><mode>3): New.
9708 (*<plusminus_insn><mode>3): Likewise.
9709 (sse2_<plusminus_insn><mode>3): Likewise.
9710 (add<mode>): Removed.
9711 (*add<mode>3): Likewise.
9712 (sse2_ssadd<mode>3): Likewise.
9713 (sse2_usadd<mode>3): Likewise.
9714 (sub<mode>3): Likewise.
9715 (*sub<mode>3): Likewise.
9716 (sse2_sssub<mode>3): Likewise.
9717 (sse2_ussub<mode>3): Likewise.
9719 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
9721 * gthr-single.h: Add in required interface elements as per gthr.h.
9722 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
9723 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
9724 Generalize UNUSED macro.
9725 (__gthread_once): Add.
9726 (__gthread_key_create): Add.
9727 (__gthread_key_delete): Add.
9728 (__gthread_getspecific): Add.
9729 (__gthread_setspecific): Add.
9731 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
9733 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
9734 the same size types for the indirect reference on the rhs, then
9737 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
9739 * config/i386/i386.md
9740 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
9741 one insn template instead of template series.
9742 (*xordi_1_rex64): Ditto.
9743 (*xordi_2_rex64): Ditto.
9745 2008-05-05 Ira Rosen <irar@il.ibm.com>
9747 PR tree-optimization/36119
9748 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
9751 2008-06-04 Jan Hubicka <jh@suse.cz>
9753 tree-optimization/36100
9754 * tree-pass.h (pass_O0_always_inline): Declare.
9755 * ipa-inline.c (inline_transform): Remove dead code.
9756 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
9757 pass_O0_always_inline): New.
9758 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
9760 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
9762 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
9763 mnemonic in this_param move for TARGET_64BIT.
9765 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
9767 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
9768 (*strmovsi_rex_1): Ditto.
9769 (*strsetsi_1): Ditto.
9770 (*strsetsi_rex_1): Ditto.
9772 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
9773 adddicc expanders using SWI mode iterator.
9775 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
9778 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
9781 2008-05-04 David S. Miller <davem@davemloft.net>
9783 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
9784 (sparc*-*-linux*): Use linux.h in tm_file.
9785 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
9786 compiler defaulting to 32-bit.
9787 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
9789 * config/sparc/linux.h: Remove definitions now obtained
9790 properly from linux.h
9791 * config/sparc/linux64.h: Likewise.
9792 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
9793 don't want this setting for 32-bit builds in a biarch compiler.
9794 * doc/install.texi: Add sparc-linux to list of targets
9795 supporting --enable-targets=all.
9797 2008-05-03 Andrew Pinski <pinskia@gmail.com>
9799 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
9801 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
9803 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
9804 after V4SI_FTYPE_V8HI.
9805 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
9806 case V4SI_FTYPE_V2DF.
9808 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9810 * doc/invoke.texi (max-flow-memory-locations): Removed.
9811 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
9813 2008-05-03 Richard Guenther <rguenther@suse.de>
9816 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
9818 2008-05-02 David S. Miller <davem@davemloft.net>
9820 * config.gcc (need_64bit_hwint): Document libcpp dependency.
9822 2008-05-02 Simon Baldwin <simonb@google.com>
9825 * c-common.h (warn_array_subscript_range): Removed.
9826 * c-common.c (warn_array_subscript_range): Ditto.
9827 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
9828 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
9830 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9832 * config/i386/i386.c (ix86_special_builtin_type): New.
9833 (bdesc_special_args): Likewise.
9834 (ix86_expand_special_args_builtin): Likewise.
9835 (ix86_init_mmx_sse_builtins): Updated.
9836 (ix86_expand_builtin): Updated.
9837 (ix86_expand_store_builtin): Removed.
9838 (ix86_expand_unop_builtin): Likewise.
9840 * config/i386/mm3dnow.h (__v2sf): Moved to ...
9841 * config/i386/mmintrin.h (__v2sf): Here.
9843 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
9845 (_mm_loadl_pi): Likewise.
9846 (_mm_storeh_pi): Replace __v2si with __v2sf.
9847 (_mm_storel_pi): Likewise.
9849 * doc/extend.texi: Correct __builtin_ia32_loadhps,
9850 __builtin_ia32_loadlps, __builtin_ia32_storehps,
9851 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
9852 __builtin_ia32_loadlpd.
9854 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9856 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9857 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9858 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
9859 (ix86_init_mmx_sse_builtins): Updated.
9860 (ix86_expand_args_builtin): Likewise.
9861 (ix86_expand_builtin): Likewise.
9862 (ix86_expand_unop1_builtin): Renamed to ...
9863 (ix86_expand_unop_vec_merge_builtin): This.
9865 2008-05-01 Jan Hubicka <jh@suse.cz>
9868 * ipa-inline.c (inline_generate_summary): Make static.
9869 (inline_transform): Do not call inlining at -O0; make static.
9870 * passes.c (execute_todo): Add sanity check.
9871 (execute_one_ipa_transform_pass): Execute proper flags.
9873 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
9875 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9876 (DECL_NONADDRESSABLE_P): Likewise.
9877 * alias.c (record_component_aliases): Fix comment.
9879 2008-05-01 Simon Baldwin <simonb@google.com>
9881 * c-common.h (warn_array_subscript_range): New function.
9882 * c-common.c (warn_array_subscript_range): Ditto.
9883 * tree-vrp.c (check_array_ref): Corrected code to agree with
9884 comment, ignoring only arrays of size 0 or size 1.
9885 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9887 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9889 * config/i386/i386.c (ix86_builtin_type): Replace
9890 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9891 (bdesc_args): Updated.
9892 (ix86_init_mmx_sse_builtins): Likewise.
9893 (ix86_expand_args_builtin): Likewise.
9895 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9898 * doc/extend.texi: Correct __builtin_ia32_palignr.
9900 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9903 * config/i386/i386.c (bdesc_crc32): Removed.
9904 (ix86_expand_crc32): Likewise.
9905 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9906 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9907 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
9908 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9909 UINT_FTYPE_UINT_UCHAR.
9910 (bdesc_args): Updated. Add crc32 builtins.
9911 (ix86_init_mmx_sse_builtins): Updated.
9912 (ix86_expand_args_builtin): Updated to support subreg.
9914 * doc/extend.texi: Correct __builtin_ia32_crc32di.
9916 2008-05-01 Jan Hubicka <jh@suse.cz>
9918 * tree-pass.h (opt_pass): Add IPA_PASS.
9919 (varpool_node, cgraph_node): Forward declare.
9920 (ipa_opt_pass): Define.
9921 (pass_ipa_inline): Turn into ipa_opt_pass.
9922 (pass_apply_inline): Remove.
9923 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9924 (apply_inline): Turn into ....
9925 (inline_transform): ... this one.
9926 (inline_generate_summary): New function.
9927 (pass_apply_inline): Remove.
9928 * function.h (ipa_opt_pass): Forward declare structure; typedef;
9930 (struct function): Add ipa_transforms_to_apply.
9931 * passes.c (register_one_dump_file): Work on IPA_PASS.
9932 (init_optimization_passes): Remove pass_inline_parameters and
9934 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9935 (execute_one_pass) ... here; apply transforms when possible.
9936 (add_ipa_transform_pass, execute_ipa_summary_asses,
9937 execute_one_ipa_transform_pass): New.
9938 (execute_ipa_pass_list): Update for IPA_PASS type.
9940 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9942 * config/i386/i386.c (ix86_builtin_type): Add
9943 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9944 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9945 (bdesc_args): Add SSE4a builtins.
9946 (ix86_init_mmx_sse_builtins): Updated.
9947 (ix86_expand_args_builtin): Likewise.
9948 (ix86_expand_builtin): Likewise.
9950 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9952 * config/i386/i386.c (ix86_builtin_type): Add
9953 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9954 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9955 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9956 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9957 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9958 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9959 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9960 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9961 and DI_FTYPE_DI_DI_INT.
9962 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9963 (ix86_init_mmx_sse_builtins): Updated.
9964 (ix86_expand_args_builtin): Likewise.
9965 (ix86_expand_builtin): Likewise.
9966 (ix86_expand_binop_imm_builtin): Removed.
9968 * doc/extend.texi: Correct __builtin_ia32_palignr128.
9970 2008-04-30 Richard Guenther <rguenther@suse.de>
9972 PR tree-optimization/32921
9973 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9975 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
9977 * config/arm/arm.c (arm_unwind_emit): Use
9978 crtl->all_throwers_are_sibcalls instead of
9979 cfun->all_throwers_are_sibcalls.
9980 (arm_output_fn_unwind): Likewise.
9981 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9982 instead of cfun->uses_pic_offset_table.
9983 (frv_expand_prologue): Likewise.
9984 (frv_frame_pointer_required): Likewise.
9985 (frv_expand_fdpic_call): Likewise.
9986 (frv_emit_movsi): Likewise.
9987 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9988 cfun->returns_pcc_struct instead of
9989 current_function_returns_pcc_struct.
9990 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9991 instead of cfun->calls_eh_return.
9992 (m32c_pushm_popm): Likewise.
9993 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9994 "extern" declaration.
9996 2008-04-30 Richard Guenther <rguenther@suse.de>
9998 PR tree-optimization/21636
9999 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
10001 (evaluate_stmt): Print the likely value.
10002 (ccp_visit_stmt): Avoid excessive vertical spacing.
10004 2008-04-30 Rafael Espindola <espindola@google.com>
10006 * builtins.c (fold_call_expr): Return realret.
10007 * tree-ssa-threadedge.c
10008 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
10009 __builtin_object_size.
10011 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
10013 * gcc.c (wrapper_string): New variable.
10014 (insert_wrapper): New function.
10015 (execute): New option -wrapper.
10016 * doc/invoke.texi (Overall Options): New driver option -wrapper.
10018 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
10020 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
10021 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
10022 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
10024 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
10025 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
10026 config/rs6000/e500crtres64gprctr.asm,
10027 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
10028 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
10029 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
10030 config/rs6000/e500crtsav64gprctr.asm,
10031 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
10032 config/rs6000/e500crtsavg64gprctr.asm: New files.
10033 * config/rs6000/t-ppccomm: Add build rules for new files.
10034 (LIB2FUNCS_STATIC_EXTRA): Add new files.
10035 * config/rs6000/t-netbsd: Add build rules for new files.
10036 (LIB2FUNCS_STATIC_EXTRA): New variable.
10037 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
10038 (CRTSAVRES_DEFAULT_SPEC): Likewise.
10039 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
10041 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
10043 * config/i386/i386.c (ix86_builtin_type): Add
10044 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
10045 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
10046 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
10047 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
10048 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
10049 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
10050 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
10051 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
10052 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
10053 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
10054 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
10055 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
10056 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
10057 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
10058 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
10059 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
10060 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
10061 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
10062 V1DI_FTYPE_V2SI_V2SI.
10063 (bdesc_2arg): Moved to ...
10064 (bdesc_args): Here.
10065 (ix86_init_mmx_sse_builtins): Updated.
10066 (ix86_expand_args_builtin): Updated. Take a pointer
10067 to const struct builtin_description. Handle comparison
10069 (ix86_expand_sse_compare): Take a new argument for swapping operands.
10070 (ix86_expand_builtin): Updated.
10072 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
10073 (ssse3_pmaddubsw128): This.
10074 (ssse3_pmaddubswv4hi3): Renamed to ...
10075 (ssse3_pmaddubsw): This.
10077 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
10078 (__builtin_ia32_packssdw128): Likewise.
10079 (__builtin_ia32_packuswb128): Likewise.
10080 (__builtin_ia32_pmaddubsw): Likewise.
10081 (__builtin_ia32_pmaddubsw128): Likewise.
10083 2008-04-30 Richard Guenther <rguenther@suse.de>
10085 PR tree-optimization/14847
10086 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
10087 (recognize_bits_test): Use it.
10088 (recognize_single_bit_test): Likewise.
10090 2008-04-30 Martin Jambor <mjambor@suse.cz>
10092 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
10093 instead of setting number of formal parameters to zero.
10094 (ipcp_init_stage): Do not set the number of actual parameters to zero
10096 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
10097 which are called with variable number of arguments.
10098 (ipcp_insert_stage): Explicitely skipping all nodes which are
10099 called with variable number of arguments.
10100 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
10101 number of parameters.
10103 * ipa-prop.h (struct ipa_node_params): Added flag
10104 called_with_var_arguments
10105 (ipa_set_param_count): Added. Changed sole setter to use it.
10106 (ipa_get_param_count): Added. All readers of param_count
10107 converted to use it instead.
10108 (ipa_set_called_with_variable_arg): Added.
10109 (ipa_is_called_with_var_arguments): Added.
10110 (ipa_get_ith_param): Added. All readers of param_decls converted
10112 (ipa_set_cs_argument_count): Added, sole writer to argument_count
10114 (ipa_get_cs_argument_count): Added, all readers of argument_count
10116 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
10119 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
10120 (struct ipcp_lattice): Renamed cval_type to type
10121 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
10123 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
10124 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
10125 (ipcp_insert_stage): Changed the type of variable cvalue to tree
10126 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
10127 (build_const_val): Changed the type of parameter cvalue to tree
10128 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
10129 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
10131 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
10134 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
10135 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
10136 (ipa_add_method): Renamed to ipa_push_func_to_list
10137 (ipa_remove_method): Renamed to ipa_pop_func_from_list
10138 (ipa_callsite_param_count): Removed.
10139 (ipa_callsite_param_count_set): Removed.
10140 (ipa_callsite_param): Removed.
10141 (ipa_callsite_callee): Removed.
10142 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
10143 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
10144 (ipa_method_formal_count): Removed.
10145 (ipa_method_formal_count_set): Removed.
10146 (ipa_method_get_tree): Removed.
10147 (ipa_method_tree_map_create): Removed.
10148 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
10149 (ipa_create_param_decls_array): Creates the array itself
10150 (ipa_create_param_decls_array): Temporary variable info instead of
10151 a few dereferences.
10152 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
10153 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
10154 (get_type): Removed.
10155 (ipa_jf_get_info_type): Removed.
10156 (ipa_node_create): Renamed to ipa_create_node_params
10157 (ipa_free): Renamed to ipa_free_all_node_params
10158 (ipa_nodes_create): Renamed to ipa_create_all_node_params
10159 (ipa_edges_create): Renamed to ipa_create_all_edge_args
10160 (ipa_edges_free): Renamed to ipa_free_all_edge_args
10161 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
10162 (ipa_free_all_node_params): Deallocation to jump_functions moved to
10163 ipa_free_all_edge_args
10164 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
10165 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
10166 (ipa_create_methodlist_node): Removed.
10167 (ipa_methodlist_method): Removed.
10168 (ipa_methodlist_method_set): Removed.
10169 (ipa_methodlist_next_method): Removed.
10170 (ipa_methodlist_next_method_set): Removed.
10171 (ipa_method_is_modified): Removed.
10172 (ipa_method_modify_create): Removed.
10173 (ipa_method_modify_init): Temporary variable info instead of a few
10175 (ipa_detect_param_modifications): Temporary variable info instead of
10176 a few dereferences.
10177 (ipa_compute_jump_functions): Temporary variable info instead of
10178 a few dereferences.
10179 (ipa_method_modify_set): Removed.
10180 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
10181 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
10182 than craph_node as the first parameter.
10183 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
10184 (ipa_method_modify_init): Removed.
10185 (ipa_compute_jump_functions): Added a temp variable instead of
10186 repeatadly dereferencing the cgraph_edge.aux pointer
10187 (ipa_callsite_param_set_type): Removed.
10188 (ipa_compute_jump_functions): i renamed to index and moved to
10190 (ipa_callsite_param_set_info_type_formal): Removed.
10191 (ipa_callsite_param_set_info_type): Removed.
10192 (ipa_callsite_param_map_create): Removed.
10193 (ipa_callsite_tree): Removed.
10194 (ipa_callsite_caller): Removed.
10195 (ipa_pop_func_from_list): return_method removed to return_func
10197 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
10198 prefixed all values with IPA_. Changed all users.
10199 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
10200 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
10201 and FORMAL_IPATYPE IPA_PASS_THROUGH.
10202 (union parameter_info): Renamed to jump_func_value.
10203 (union jump_func_value): Renamed value to constant
10204 (struct ipa_jump_func): Renamed info_type to value
10205 (struct ipa_node): Renamed to ipa_node_params
10206 (struct ipa_node_params): Renamed ipa_arg_num to param_count
10207 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
10208 (struct ipa_node_params): Renamed ipa_mod to modified_flags
10209 (struct ipa_edge): Renamed to ipa_edge_args
10210 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
10211 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
10212 (struct ipa_methodlist): Renamed to ipa_func_list
10213 (struct ipa_func_list): method_p renamed to node, next_method
10215 (ipa_methodlist_p): Removed, switched all users to struct pointer
10216 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
10218 2008-04-30 Alan Modra <amodra@bigpond.net.au>
10220 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
10221 (rs6000_emit_epilogue): Use backchain to restore only when we
10222 have a large frame. Make use of frame pointer to restore if we
10223 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
10225 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
10227 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
10228 Add mode to zero_extract.
10229 (sign bit tests peepholes): (Ditto.).
10231 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
10233 * config/i386/i386.c (ix86_builtins): Replace Prescott New
10234 Instructions in comments with SSE3.
10235 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
10236 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
10237 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
10238 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
10239 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
10240 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
10241 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
10242 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
10243 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
10244 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
10245 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
10246 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
10247 (bdesc_sse_args): Renamed to ...
10248 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
10249 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
10250 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
10251 IX86_BUILTIN_FABSQ.
10252 (bdesc_1arg): Moved to ...
10253 (bdesc_args): Here.
10254 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
10255 Instructions in comments with SSE3.
10256 (ix86_expand_sse_operands_builtin): Renamed to ...
10257 (ix86_expand_args_builtin): This. Updated.
10258 (ix86_expand_unop1_builtin): Update comments.
10259 (ix86_expand_builtin): Updated.
10261 2008-04-29 Richard Guenther <rguenther@suse.de>
10263 PR tree-optimization/36078
10264 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
10265 Update virtual SSA form after cleaning up the CFG.
10267 2008-04-29 Richard Guenther <rguenther@suse.de>
10269 PR middle-end/15255
10270 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
10272 2008-04-29 Richard Guenther <rguenther@suse.de>
10274 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
10275 (compute_may_aliases): Do not call finalize_ref_all_pointers.
10276 (compute_flow_insensitive_aliasing): Do not treat
10277 PTR_IS_REF_ALL pointers special.
10278 (get_smt_for): Likewise.
10279 (may_alias_p): Re-structure.
10280 (is_escape_site): A ref-all pointer conversion is not an escape site.
10281 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
10282 PTR_IS_REF_ALL pointers special.
10283 * tree-ssa-structalias.h (struct alias_info): Remove
10284 ref_all_symbol_mem_tag field.
10285 (PTR_IS_REF_ALL): Remove.
10287 2008-04-29 Richard Guenther <rguenther@suse.de>
10289 PR middle-end/36077
10290 * fold-const.c (extract_muldiv_1): In combining division constants
10291 make sure to never overflow.
10293 2008-04-29 Nick Clifton <nickc@redhat.com>
10295 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
10297 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10300 * optc-gen.awk: Work around HP-UX/IA awk bug.
10302 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
10304 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
10307 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
10310 * config/i386/i386.md
10311 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
10312 Change operand 1 predicate to nonimmediate_operand.
10314 2008-04-28 Jakub Jelinek <jakub@redhat.com>
10317 * dwarf2out.c (struct die_struct): Mark as chain_circular through
10319 * gengtype.c (walk_type, write_func_for_structure): Handle
10321 * doc/gty.texi: Document chain_circular.
10323 2008-04-28 Richard Guenther <rguenther@suse.de>
10325 PR tree-optimization/36066
10326 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
10329 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
10332 * config/i386/i386.md
10333 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
10334 Use match_scratch instead of match_operand for operands 3 and 4.
10336 2008-04-27 Richard Guenther <rguenther@suse.de>
10338 PR tree-optimization/18754
10339 PR tree-optimization/34223
10340 * tree-pass.h (pass_complete_unrolli): Declare.
10341 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
10342 loop size before and after unconditionally of UL_NO_GROWTH in effect.
10343 Rewrite loop into loop closed SSA form if it is not already.
10344 (tree_unroll_loops_completely): Re-structure to iterate over
10345 innermost loops with intermediate CFG cleanups.
10346 Unroll outermost loops only if requested or the code does not grow
10348 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
10349 loops are available.
10350 (tree_vectorize): Instead do so here.
10351 (tree_complete_unroll): Also unroll outermost loops.
10352 (tree_complete_unroll_inner): New function.
10353 (gate_tree_complete_unroll_inner): Likewise.
10354 (pass_complete_unrolli): New pass.
10355 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
10356 uses outside of the loop.
10357 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
10358 form if it is available.
10359 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
10360 * passes.c (init_optimization_passes): Schedule complete inner
10361 loop unrolling pass before the first CCP pass after final inlining.
10363 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
10365 * targhooks.h (default_emutls_var_fields,
10366 default_emutls_var_init): Declare.
10367 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
10368 * target.h (struct gcc_target): Add struct emutls member.
10369 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
10370 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
10371 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
10372 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
10373 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
10374 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
10375 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
10376 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
10377 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
10378 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
10379 emit debug information.
10380 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
10381 * varasm.c: Include targhooks.h.
10382 (emutls_object_section, emutls_tmpl_section): New.
10383 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
10384 (EMUTLS_SEPARATOR): New.
10385 (prefix_name): New.
10386 (get_emutls_object_name): New.
10387 (default_emutls_var_fields): New, broken out of ...
10388 (get_emutls_object_type): ... here. Adjust to use target hooks.
10389 (get_emutls_init_templ_addr): Adjust to use target hooks.
10390 (emutls_decl): Adjust to use target hooks.
10391 (emutls_finish): Likewise.
10392 (default_emutls_var_init): New, broken out of ...
10393 (assemble_variable): ... here. Adjust to use target hooks.
10394 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
10395 SECCAT_EMUTLS_TMPL.
10396 * c-common.c (handle_section_attribute): Prevent overriding
10397 sections for emulated tls with special sections.
10398 * config/i386/i386.c (x86_64_elf_select_section): Add
10399 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
10400 (x86_64_elf_unique_section): Likewise.
10401 * config/vxworks.c: Include tree.h.
10402 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
10403 (vxworks_override_options): Set TLS scheme.
10404 * doc/tm.texi (Emulated TLS): New node.
10406 2008-04-26 Simon Baldwin <simonb@google.com>
10409 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
10410 with propagated string constants.
10412 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
10414 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
10415 constraint for operand 2 when operand 0 is memory operand.
10416 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
10417 operand 0 is memory operand.
10418 (fix_trunc<mode>_i387_with_temp): Ditto.
10419 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
10420 operand 2 when operand 1 is memory operand.
10421 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
10422 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
10423 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
10424 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
10425 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
10426 operands 2,3 and 4 when operand 1 is memory operand.
10427 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
10429 (fistdi2_floor_with_temp): Ditto.
10430 (fist<mode>2_floor_with_temp): Ditto.
10431 (fistdi2_ceil_with_temp): Ditto.
10432 (fist<mode>2_ceil_with_temp): Ditto.
10433 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
10435 2008-04-26 David Daney <ddaney@avtrex.com>
10437 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
10439 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
10440 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
10441 UNSPEC_UPDATE_GOT_VERSION): Renumber.
10442 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
10443 (compare_and_swap_12): New insn.
10444 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
10445 * config/mips/mips.c (mips_force_binary): New function.
10446 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
10447 (mips_expand_compare_and_swap_12): New function.
10448 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
10450 2008-04-25 Jan Hubicka <jh@suse.cz>
10453 * cfgexpand.c (pass_expand): Turn into RTL pass.
10454 * passes.c (execute_one_pass): Do pass typechecking after execution.
10455 * tree-pass.h (pass_expand): Turn into RTL pass.
10457 * function.h (struct rtl_data): Move here fields
10458 accesses_prior_frames, calls_eh_return, saves_all_registers,
10459 has_nonlocal_goto, has_asm_statement, is_thunk,
10460 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
10461 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
10462 arg_pointer_save_area_init from struct function; turn into bool.
10463 (struct function): Move
10464 calls_eh_return, saves_all_registers, has_nonlocal_goto,
10465 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
10466 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
10467 tail_call_emit, arg_pointer_save_area_init
10468 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
10469 (current_function_returns_struct, current_function_returns_pcc_struct,
10470 current_function_calls_setjmp, current_function_calls_alloca,
10471 current_function_accesses_prior_frames,
10472 current_function_calls_eh_return, current_function_is_thunk,
10473 current_function_stdarg, current_function_profile,
10474 current_function_limit_stack, current_function_uses_pic_offset_table,
10475 current_function_uses_const_pool, current_function_has_nonlocal_label,
10476 current_function_saves_all_registers,
10477 current_function_has_nonlocal_goto,
10478 current_function_has_asm_statement): Remove accesor macros.
10479 * ra-conflict.c (global_conflicts): Update.
10480 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
10481 (suitable_for_tail_call_opt_p): Update.
10482 * builtins.c (expand_builtin_return_addr): Update.
10483 (expand_builtin_setjmp_setup): Update.
10484 (expand_builtin_nonlocal_goto): Update.
10485 * final.c (final_start_function): Update.
10486 (profile_function): Update.
10487 (leaf_function_p): Update.
10488 (only_leaf_regs_used): Update.
10489 * df-scan.c (df_get_exit_block_use_set): Update.
10490 * dojump.c (clear_pending_stack_adjust): Update.
10491 * tree-stdarg.c (gate_optimize_stdarg): Update.
10492 * gimple-low.c (lower_function_body): Update.
10493 * global.c (compute_regsets): Update.
10494 (global_alloc): Update.
10495 * dwarf2out.c (dwarf2out_begin_prologue): Update.
10496 * expr.c (expand_assignment): Update.
10497 * dse.c (dse_step0): Update.
10498 (dse_step1): Update.
10499 * c-decl.c (store_parm_decls): Update.
10500 * local-alloc.c (combine_regs): Update.
10501 (find_free_reg): Update.
10502 * function.c (assign_parms_augmented_arg_list): Update.
10503 (assign_parm_find_data_types): Update.
10504 (assign_parms): Update.
10505 (allocate_struct_function): Update.
10506 (expand_function_start): Update.
10507 (expand_function_end): Update.
10508 (get_arg_pointer_save_area): Update.
10509 (thread_prologue_and_epilogue_insns): Update.
10510 (rest_of_match_asm_constraints): Update.
10511 * stor-layout.c (variable_size): Update.
10512 * gcse.c (gcse_main): Update.
10513 (bypass_jumps): Update.
10514 * gimplify.c (gimplify_function_tree): Update.
10515 * calls.c (emit_call_1): Update.
10516 (expand_call): Update.
10517 * bt-load.c (compute_defs_uses_and_gen): Update.
10518 * except.c (sjlj_assign_call_site_values): Update.
10519 (sjlj_emit_function_enter): Update.
10520 (can_throw_external): Update.
10521 (set_nothrow_function_flags): Update.
10522 (expand_builtin_unwind_init): Update.
10523 (expand_eh_return): Update.
10524 (convert_to_eh_region_ranges): Update.
10525 (output_function_exception_table): Update.
10526 * emit-rtl.c (gen_tmp_stack_mem): Update.
10527 * cfgexpand.c (expand_used_vars): Update.
10528 (tree_expand_cfg): Update.
10529 * cfgcleanup.c (rest_of_handle_jump): Update.
10530 * explow.c (allocate_dynamic_stack_space): Update.
10531 * varasm.c (assemble_start_function): Update.
10532 (force_const_mem): Update.
10533 (mark_constant_pool): Update.
10534 * tree-optimize.c (tree_rest_of_compilation): Update.
10535 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
10536 * tree-cfg.c (notice_special_calls): Update.
10537 (is_ctrl_altering_stmt): Update.
10538 (tree_can_make_abnormal_goto): Update.
10539 (tree_purge_dead_abnormal_call_edges): Update.
10540 * config/alpha/predicates.md: Update.
10541 * config/alpha/alpha.c (alpha_sa_mask): Update.
10542 (alpha_sa_size): Update.
10543 (alpha_does_function_need_gp): Update.
10544 (alpha_expand_prologue): Update.
10545 (alpha_start_function): Update.
10546 (alpha_output_function_end_prologue): Update.
10547 (alpha_expand_epilogue): Update.
10548 * config/frv/frv.c (frv_stack_info): Update.
10549 (frv_expand_epilogue): Update.
10550 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
10551 (s390_register_info): Update.
10552 (s390_frame_info): Update.
10553 (s390_init_frame_layout): Update.
10554 (s390_can_eliminate): Update.
10555 (save_gprs): Update.
10556 * config/spu/spu.c (spu_split_immediate): Update.
10557 (need_to_save_reg): Update.
10558 (spu_expand_prologue): Update.
10559 (spu_expand_epilogue): Update.
10560 * config/sparc/sparc.md: Update.
10561 * config/sparc/sparc.c (eligible_for_return_delay): Update.
10562 (sparc_tls_got): Update.
10563 (legitimize_pic_address): Update.
10564 (sparc_emit_call_insn): Update.
10565 (sparc_expand_prologue): Update.
10566 (output_return): Update.
10567 (print_operand): Update.
10568 (sparc_function_ok_for_sibcall): Update.
10569 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
10570 * config/m32r/m32r.md: Update.
10571 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
10572 (m32r_compute_frame_size): Update.
10573 (m32r_expand_prologue): Update.
10574 (m32r_expand_epilogue): Update.
10575 (m32r_legitimize_pic_address): Update.
10576 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
10577 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10578 * config/i386/i386.c (ix86_frame_pointer_required): Update.
10579 (gen_push): Update.
10580 (ix86_save_reg): Update.
10581 (ix86_compute_frame_layout): Update.
10582 (ix86_expand_prologue): Update.
10583 (ix86_expand_epilogue): Update.
10584 * config/sh/sh.c (output_stack_adjust): Update.
10585 (calc_live_regs): Update.
10586 (sh5_schedule_saves): Update.
10587 (sh_expand_prologue): Update.
10588 (sh_expand_epilogue): Update.
10589 (sh_setup_incoming_varargs): Update.
10590 (sh_allocate_initial_value): Update.
10591 (sh_get_pr_initial_val): Update.
10592 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
10593 * config/sh/sh.md (label:): Update.
10594 * config/avr/avr.c (out_movhi_mr_r): Update.
10595 * config/crx/crx.h (enum): Update.
10596 * config/xtensa/xtensa.h (along): Update.
10597 * config/stormy16/stormy16.c Update.
10598 (xstormy16_compute_stack_layout): Update.
10599 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
10600 (fr30_expand_prologue): Update.
10601 * config/cris/cris.c (cris_conditional_register_usage): Update.
10602 (cris_reg_saved_in_regsave_area): Update.
10603 (cris_initial_frame_pointer_offset): Update.
10604 (cris_simple_epilogue): Update.
10605 (cris_expand_prologue): Update.
10606 (cris_expand_epilogue): Update.
10607 (cris_expand_pic_call_address): Update.
10608 (cris_asm_output_symbol_ref): Update.
10609 (cris_asm_output_label_ref): Update.
10610 * config/cris/cris.md Update.
10611 * config/iq2000/iq2000.c (compute_frame_size): Update.
10612 (iq2000_expand_epilogue): Update.
10613 * config/mt/mt.h (save_direction): Update.
10614 * config/mn10300/mn10300.c (mn10300_function_value): Update.
10615 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10616 (ia64_secondary_reload_class): Update.
10617 * config/m68k/m68k.c (m68k_save_reg): Update.
10618 (m68k_expand_prologue): Update.
10619 (m68k_expand_epilogue): Update.
10620 (legitimize_pic_address): Update.
10621 * config/rs6000/rs6000.c (rs6000_got_register): Update.
10622 (first_reg_to_save): Update.
10623 (first_altivec_reg_to_save): Update.
10624 (compute_vrsave_mask): Update.
10625 (compute_save_world_info): Update.
10626 (rs6000_stack_info): Update.
10627 (spe_func_has_64bit_regs_p): Update.
10628 (rs6000_ra_ever_killed): Update.
10629 (rs6000_emit_eh_reg_restore): Update.
10630 (rs6000_emit_allocate_stack): Update.
10631 (rs6000_emit_prologue): Update.
10632 (rs6000_emit_epilogue): Update.
10633 (rs6000_output_function_epilogue): Update.
10634 (output_profile_hook): Update.
10635 (rs6000_elf_declare_function_name): Update.
10636 * config/rs6000/rs6000.h (rs6000_args): Update.
10637 * config/rs6000/rs6000.md: Update.
10638 * config/mcore/mcore.c (mcore_expand_prolog): Update.
10639 * config/arc/arc.c (arc_output_function_epilogue): Update.
10640 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
10641 * config/darwin.c (machopic_function_base_name): Update.
10642 * config/score/score3.c (score3_compute_frame_size): Update.
10645 (score3_epilogue): Update.
10646 * config/score/score7.c (score7_compute_frame_size): Update.
10647 (score7_prologue): Update.
10648 (score7_epilogue): Update.
10649 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
10650 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10651 * config/arm/arm.c (use_return_insn): Update.
10652 (require_pic_register): Update.
10653 (arm_load_pic_register): Update.
10654 (arm_compute_save_reg0_reg12_mask): Update.
10655 (arm_compute_save_reg_mask): Update.
10656 (thumb1_compute_save_reg_mask): Update.
10657 (output_return_instruction): Update.
10658 (arm_output_function_prologue): Update.
10659 (arm_output_epilogue): Update.
10660 (arm_get_frame_offsets): Update.
10661 (arm_expand_prologue): Update.
10662 (thumb_pushpop): Update.
10663 (thumb_exit): Update.
10664 (thumb1_expand_prologue): Update.
10665 (thumb1_expand_epilogue): Update.
10666 (arm_unwind_emit): Update.
10667 (arm_output_fn_unwind): Update.
10668 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
10669 * config/arm/arm.md: Update.
10670 * config/pa/pa.md: Update.
10671 * config/pa/pa.c (legitimize_pic_address): Update.
10672 (compute_frame_size): Update.
10673 (hppa_expand_prologue): Update.
10674 (hppa_expand_epilogue): Update.
10675 (borx_reg_operand): Update.
10676 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
10677 (HARD_REGNO_RENAME_OK): Update.
10678 * config/mips/mips.c (mips_global_pointer): Update.
10679 (mips_save_reg_p): Update.
10680 (mips_compute_frame_info): Update.
10681 (mips_frame_pointer_required): Update.
10682 (mips_expand_prologue): Update.
10683 (mips_expand_epilogue): Update.
10684 (mips_can_use_return_insn): Update.
10685 (mips_reorg_process_insns): Update.
10686 * config/v850/v850.c (compute_register_save_size): Update.
10687 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
10688 * config/mmix/mmix.c (along): Update.
10689 (mmix_expand_epilogue): Update.
10690 * config/bfin/bfin.c (legitimize_pic_address): Update.
10691 (must_save_p): Update.
10692 (stack_frame_needed_p): Update.
10693 (add_to_reg): Update.
10694 (bfin_expand_prologue): Update.
10695 * stmt.c (expand_asm_operands): Update.
10696 * reload1.c (reload): Update.
10697 (init_elim_table): Update.
10699 2008-04-25 Bob Wilson <bob.wilson@acm.org>
10701 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
10703 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
10705 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
10706 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
10707 (mov<mode>): Removed.
10708 (*movv4sf_internal): Likewise.
10709 (*movv2df_internal): Likewise.
10711 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
10713 * config.gcc (crx-*-elf): Remove deprecation.
10715 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
10717 * config/i386/cygming-crtend.c (register_frame_ctor): Register
10718 __gcc_deregister_frame with atexit.
10719 (deregister_frame_dtor): Remove.
10721 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
10722 Nathan Sidwell <nathan@codesourcery.com>
10724 * config/rs6000/rs6000.opt (mspe): Remove Var property.
10726 * config/rs6000/rs6000.h (rs6000_spe): Declare.
10727 (rs6000_isel): Likewise.
10728 * config/rs6000/rs6000.c (rs6000_spe): New variable.
10729 (rs6000_isel): New variable.
10730 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
10732 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10735 * c-common.c (handle_vector_size_attribute): Call
10736 lang_hooks.types.reconstruct_complex_type instead of
10737 reconstruct_complex_type.
10738 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
10739 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
10740 * langhooks.h (struct lang_hooks_for_types): Add
10741 reconstruct_complex_type hook.
10742 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
10743 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10745 2008-04-24 Richard Guenther <rguenther@suse.de>
10747 * c-common.h (check_builtin_function_arguments): Declare.
10748 * c-common.c (validate_nargs): New function.
10749 (check_builtin_function_arguments): Likewise.
10750 * c-typeck.c (build_function_call): Call
10751 check_builtin_function_arguments.
10752 * builtins.c (fold_builtin_classify): Remove error reporting code.
10753 (fold_builtin_unordered_cmp): Likewise.
10754 (fold_builtin_1): Likewise.
10755 (fold_builtin_n): Likewise.
10757 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10759 PR tree-optimization/36008
10760 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
10761 the original op1, rather than delta by step.
10763 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
10764 Sebastian Pop <sebastian.pop@amd.com>
10766 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
10767 eliminate_local_variables_stmt, eliminate_local_variables,
10768 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
10769 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
10770 of code delimited by two edges in the CFG.
10771 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
10772 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
10773 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
10774 the case of parallelisation of reductions.
10775 (expr_invariant_in_region_p): New.
10777 * tree-flow.h (gather_blocks_in_sese_region): Declared.
10778 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
10780 2008-04-24 Ira Rosen <irar@il.ibm.com>
10781 Richard Guenther <rguenther@suse.de>
10783 PR tree-optimization/36034
10784 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
10785 incapable of dealing with loads with gaps.
10787 2008-04-24 Rafael Espindola <espindola@google.com>
10789 * tree-flow.h (vrp_evaluate_conditional): Change signature.
10790 * tree-ssa-propagate.c (fold_predicate_in): Update call to
10791 vrp_evaluate_conditional.
10792 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
10793 (vrp_evaluate_conditional): Split the cond argument.
10794 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
10795 (simplify_stmt_for_jump_threading): Update call to
10796 vrp_evaluate_conditional.
10798 2008-04-24 Ira Rosen <irar@il.ibm.com>
10800 PR tree-optimization/35982
10801 * tree-vect-analyze.c (vect_check_interleaving): Check that the
10802 interleaved data-refs are of the same type.
10804 2008-04-24 Danny Smith <dannysmith@users.net>
10806 * c-format.c (check_format_info_main): Use strncmp rather than a
10807 magic prefix to handle multichar length specs.
10808 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
10809 Don't prefix "I64" and "I32" with '\0'.
10811 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10814 * config/i386/i386.c (init_cumulative_args): Don't pass anything
10815 in registers for -m32 only if stdarg_p (fntype).
10817 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
10819 PR rtl-optimization/36006
10820 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
10821 temp to op0 in order to avoid invalid rtx sharing.
10823 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
10825 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
10826 check TREE_INVARIANT.
10827 * tree-gimple.c (is_gimple_address): New.
10828 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
10829 * tree-gimple.h (is_gimple_address): New.
10830 * tree.h (decl_address_invariant_p): New.
10831 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
10832 (build_string): Likewise.
10833 (decl_address_invariant_p): New, from is_gimple_invariant_address.
10834 (tree_invariant_p_1): Likewise.
10835 (save_expr): Use it.
10836 (tree_invariant_p): New.
10837 (skip_simple_arithmetic): Use it.
10838 (stabilize_reference_1): Use it.
10839 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
10841 (build1_stat): Drop code to compute TREE_INVARIANT.
10842 (build2_stat): Drop code to compute TREE_INVARIANT.
10843 (build3_stat): Drop code to compute TREE_INVARIANT.
10844 (build4_stat): Drop code to compute TREE_INVARIANT.
10845 (build5_stat): Drop code to compute TREE_INVARIANT.
10846 (build7_stat): Drop code to compute TREE_INVARIANT.
10847 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
10848 * tree.h (struct tree_base): Remove invariant_flag.
10849 (TREE_INVARIANT): Remove.
10850 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
10851 (fold_builtin_expect): Check TREE_CONSTANT.
10852 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
10853 * c-tree.h (c_expr_to_decl): Drop third parameter.
10854 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
10855 (build_c_cast): Don't set TREE_INVARIANT.
10856 (pop_init_level): Don't set TREE_INVARIANT.
10857 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10858 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10860 (gimplify_init_constructor): Don't set TREE_INVARIANT.
10861 (gimplify_addr_expr): Adjust comment.
10862 * tree-mudflap.c (mf_build_string):
10863 * print-tree.c (print_node): Don't print TREE_INVARIANT.
10864 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10865 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10866 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10867 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10868 * langhooks.h (struct lang_hooks): Drop third parameter from
10871 2008-04-23 Richard Guenther <rguenther@suse.de>
10873 PR tree-optimization/27799
10874 PR tree-optimization/32921
10875 PR tree-optimization/32624
10876 * tree-ssa-structalias.c (merge_smts_into): Only merge the
10877 SMTs aliases and the tag itself into the solution.
10878 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10879 merge the points-to solution back into the SMT aliases.
10880 (may_alias_p): Use alias_set_subset_of instead of
10881 aliases_conflict_p. A pointer which points to
10882 memory with alias set zero may access any variable.
10884 2008-04-23 Richard Guenther <rguenther@suse.de>
10886 * alias.c (alias_set_subset_of): Correctly handle asking
10887 if zero is a subset of an alias set with zero child.
10888 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10889 (compute_flow_insensitive_aliasing): Correctly walk all
10890 pointers. Do not unnecessarily union sets.
10892 2008-04-23 Richard Guenther <rguenther@suse.de>
10894 PR middle-end/36021
10895 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10897 2008-04-22 Tomas Bily <tbily@suse.cz>
10899 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10901 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10903 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10904 * tree-ssa-structalias.c (get_constraint_for): Likewise.
10905 * tree-inline.c (estimate_num_insns_1): Likewise.
10906 * varasm.c (const_hash_1, compare_constant, copy_constant)
10907 (compute_reloc_for_constant, output_addressed_constants): Likewise.
10908 * emit-rtl.c (component_ref_for_mem_expr)
10909 (set_mem_attributes_minus_bitpos): Likewise.
10910 * expr.c (highest_pow2_factor, expand_expr_real_1, )
10911 (is_aligning_offset): Likewise.
10912 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10913 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10914 * dojump.c (do_jump): Likewise.
10915 * builtins.c (get_pointer_alignment, get_memory_rtx)
10916 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10917 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
10919 2008-04-23 Jakub Jelinek <jakub@redhat.com>
10921 PR rtl-optimization/36017
10922 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10923 expanding the library call.
10925 2008-04-22 Ian Lance Taylor <iant@google.com>
10927 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10928 than size_in_bytes.
10930 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
10932 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10933 of LR/CTR moves for Power6.
10935 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
10937 PR middle-end/36003
10938 * passes.c (init_optimization_passes): Remove
10939 pass_fast_rtl_byte_dce.
10941 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
10944 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10945 builtin functions to generate faster code.
10946 (_mm_cvtpu16_ps): Ditto.
10947 (_mm_cvtpi32x2_ps): Ditto.
10949 2008-04-22 Nick Clifton <nickc@redhat.com>
10951 * common.opt (ftree-loop-distribution): Add Optimization
10954 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10955 (frv_expand_builtin_va_start): Likewise.
10957 * config/arm/arm.c (thumb_find_work_register): Fix location of
10958 argument register count.
10960 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10962 Support scheduling for ColdFire V1 and V3 microarchitecture.
10963 Improve scheduling of multiplication instructions.
10965 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
10966 (mac): New instruction attribute.
10967 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10968 (m68k_sched_mac): New variable.
10969 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10970 Handle cfv1 and cfv3.
10971 (max_insn_size): New static variable.
10972 (struct _sched_ib): New type.
10973 (sched_ib): New static variable.
10974 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10975 to fields of 'struct _sched_ib sched_ib'. Update all uses.
10976 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10978 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10979 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
10980 new variables. Update.
10981 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10982 Add modeling of cfv3 instruction buffer. Update.
10983 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10984 * config/m68k/m68k.h (TUNE_CFV3): New macro.
10985 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10986 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10987 a particular reservation applies to.
10988 (type2): Reorganize attribute values. Rename alu to alu_reg,
10989 alu_l to alu, move_l to omove. Join move to alu. Split mul
10990 to mul_l and mul_w.
10991 (cf_ib_*): Simplify description of instruction buffer.
10992 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10993 (cf_mem): Split into cf_mem1 and cf_mem2.
10994 (cf_v2_move_??): Rename to cfv12_alu_??.
10995 (cf_v2_move_l_??): Rename to cfv12_omove_??.
10996 (cf_v2_mul_??): Remove reservations.
10997 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10998 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10999 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
11001 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
11002 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
11003 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
11004 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
11005 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
11006 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
11007 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
11008 expansions of the above reservations for instructions of sizes
11011 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11013 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
11015 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
11017 * coverage.c: Include tree-pass.h.
11018 (coverage_counter_alloc): Print da_file_name to the dump file.
11020 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
11022 * sbitmap.c (sbitmap_range_empty_p): New function.
11023 * sbitmap.h (sbitmap_range_empty_p): New function.
11024 * bitmap.h: Now includes obstack.h.
11026 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
11027 Kenneth Zadeck <zadeck@naturalbridge.com>
11029 * dbgcnt.def (ra_byte_scan): Added.
11030 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
11031 when the last hit happens for a counter.
11032 * timevar.def (TV_DF_BYTE_LR): New variable.
11033 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
11034 * passes.c (pass_fast_rtl_byte_dce): New pass.
11035 * fwprop.c (update_df): Added mode to call df_ref_create.
11036 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
11037 DF_REF_EXTRACT_OFFSET.
11038 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
11039 DF_BYTE_LR_OUT, df_byte_lr): New macro.
11041 (df_ref_extract): Added mode field.
11042 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
11043 DF_REF_EXTRACT_OFFSET.
11044 (DF_REF_EXTRACT_MODE): New macro.
11045 (df_byte_lr_bb_info): New structure.
11046 (df_print_byte_regset, df_compute_accessed_bytes,
11047 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
11048 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
11049 df_byte_lr_simulate_uses,
11050 df_byte_lr_simulate_artificial_refs_at_top,
11051 df_byte_lr_simulate_artificial_refs_at_end,
11052 df_compute_accessed_bytes): New function.
11053 (df_ref_create): Add parameter.
11054 (df_byte_lr_get_bb_info): New inline function.
11055 * df-scan.c (df_ref_record, df_uses_record,
11056 df_ref_create_structure): Added mode parameter.
11057 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
11058 df_defs_record, df_uses_record, df_get_conditional_uses,
11059 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
11060 df_entry_block_defs_collect, df_exit_block_uses_collect):
11061 Added mode parameter to calls to df_ref_record, df_uses_record,
11062 df_ref_create_structure.
11063 (df_ref_equal_p, df_ref_compare): Added test for modes.
11064 (df_ref_create_structure): Added code to set mode. Renamed
11065 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
11066 DF_REF_EXTRACT_OFFSET.
11067 * df-core.c (df_print_byte_regset): New function.
11068 * df-byte-scan.c: New file.
11069 * df-problems.c (df_rd_transfer_function): Removed unnecessary
11070 calls to BITMAP_FREE.
11071 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
11072 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
11073 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
11074 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
11075 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
11076 df_byte_lr_local_compute, df_byte_lr_init,
11077 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11078 df_byte_lr_transfer_function, df_byte_lr_free,
11079 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
11080 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
11081 df_byte_lr_simulate_uses,
11082 df_byte_lr_simulate_artificial_refs_at_top,
11083 df_byte_lr_simulate_artificial_refs_at_end): New function.
11084 * dce.c (byte_dce_process_block): New function.
11085 (dce_process_block): au is now passed in rather than computed
11086 locally. Changed loops that look at artificial defs to not look
11087 for conditional or partial ones, because there never are any.
11088 (fast_dce): Now is able to drive byte_dce_process_block or
11089 dce_process_block depending on the kind of dce being done.
11090 (rest_of_handle_fast_dce): Add parameter to fast_dce.
11091 (rest_of_handle_fast_byte_dce): New function.
11092 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
11093 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
11095 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
11098 * gcc.h: Added fortran options that take arguments to
11099 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
11102 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
11104 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
11105 scalarization if on the LHS and not a full access.
11107 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11109 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
11111 2008-04-18 Rafael Espindola <espindola@google.com>
11113 * tree-vrp.c (find_case_label_index): Fix the binary search.
11114 (find_case_label_range): New.
11115 (vrp_visit_switch_stmt): Use find_case_label_range.
11116 (simplify_switch_using_ranges): Use find_case_label_range.
11118 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
11120 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
11121 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
11123 2008-04-18 Tom Tromey <tromey@redhat.com>
11126 * doc/cpp.texi (Implementation-defined behavior): Mention
11129 2008-04-18 Ian Lance Taylor <iant@google.com>
11131 * fold-const.c (pointer_may_wrap_p): New static function.
11132 (fold_comparison): Add another test for pointer overflow. Use
11133 pointer_may_wrap_p to disable some false positives.
11135 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
11137 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
11138 (fname_as_string): Match updated cpp_interpret_string prototype.
11139 (fix_string_type): Support char16_t* and char32_t*.
11140 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
11141 derivative) nodes. Register as builtin if C++0x.
11142 (c_parse_error): Support CPP_CHAR{16,32}.
11143 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
11144 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
11145 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
11146 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
11147 CTI_CHAR32_ARRAY_TYPE>: New elements.
11148 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
11149 char32_type_node, signed_char32_type_node, char16_array_type_node,
11150 char32_array_type_node): New defines.
11151 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
11152 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
11153 (lex_string): Support CPP_STRING{16,32}, match updated
11154 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
11155 (lex_charconst): Support CPP_CHAR{16,32}.
11156 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
11157 and CPP_STRING{16,32}.
11159 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11162 * aclocal.m4: Regenerate.
11163 * configure: Regenerate.
11165 2008-04-18 Jan Hubicka <jh@suse.cz>
11167 * except.c (dw2_size_of_call_site_table,
11168 sjlj_size_of_call_site_table): Use vector API for call_site_record.
11170 * cgraphbuild.c (build_cgraph_edges): Update.
11171 * tree-pass.h: Update comment.
11172 * final.c (leaf_function_p): Update.
11173 (leaf_renumber_regs): Update.
11174 (rest_of_clean_state): Update.
11175 * omp-low.c (expand_omp_parallel): Update.
11176 * ipa-reference.c (analyze_function): Update.
11177 * reorg.c (find_end_label): Update.
11178 (optimize_skip): Update.
11179 (fill_simple_delay_slots): Update.
11180 (fill_simple_delay_slots): Update.
11181 (make_return_insns): Update.
11182 (dbr_schedule): Update.
11183 * gimple-low.c (record_vars_into): Update.
11184 * cfgbuild.c (make_edges): Update.
11185 * function.c (assign_stack_local): Update.
11186 (assign_parm_adjust_stack_rtl): Update.
11187 (locate_and_pad_parm): Update.
11188 (allocate_struct_function): Do not initialize stack_alignment_needed
11189 and preferred_stack_boundary here.
11190 (stack_protect_prologue): Update.
11191 (stack_protect_epilogue): Update.
11192 (expand_function_start): Initialize stack_alignment_needed,
11193 preferred_stack_boundary and max_jumptable_ents.
11194 (expand_function_end): Update.
11195 (free_after_compilation): Do not NULLify epilogue_delay_list.
11196 * function.h (struct rtl_data): Add stack_protect_guard,
11197 stack_alignment_needed,
11198 preferred_stack_boundary, epilogue_delay_list.
11199 (struct function): Remove value_histograms, stack_alignment_needed,
11200 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
11202 unexpanded_var_list, stack_protect_guard.
11203 (current_function_epilogue_delay_list): Remove.
11204 * ipa-type-escape.c (analyze_function): Update.
11205 * gimplify.c (pop_gimplify_context): Update comment.
11206 * calls.c (expand_call): Update.
11207 (emit_library_call_value_1): Update.
11208 * except.c (set_nothrow_function_flags): Update.
11209 * cfgexpand.c (get_decl_align_unit): Update.
11210 (create_stack_guard): Update.
11211 (estimated_stack_frame_size): Update.
11212 (expand_used_vars): Update.
11213 (tree_expand_cfg): Free histogram earliers, init expansion variables.
11214 * explow.c (allocate_dynamic_stack_space): Update.
11215 * tree-ssa-live.c (remove_unused_locals): Update.
11216 * varasm.c (mark_constant_pool): Update.
11217 * tree-inline.c (remap_decls): Update.
11218 (initialize_cfun): Update.
11219 (declare_return_variable): Update.
11220 (inline_forbidden_p): Update.
11221 (expand_call_inline): Update.
11222 (declare_inline_vars): Update.
11223 (tree_function_versioning): Update.
11224 * tree-flow.h (value_histograms): New.
11225 (VALUE_HISTOGRAMS): New macro.
11226 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
11228 * tree-cfg.c (set_bb_for_stmt): Update.
11229 (replace_by_duplicate_decl): Update.
11230 (move_block_to_fn): Update.
11231 (new_label_mapper): Update.
11232 (dump_function_to_file): Update.
11233 * ipa-struct-reorg.c (build_data_structure): Update.
11234 * cfgrtl.c (print_rtl_with_bb): Update.
11235 * reload1.c (reload): Update.
11237 * config/i386/i386.c (setup_incoming_varargs_64,
11238 ix86_compute_frame_layout): Update.
11239 * config/arc/arc.c (arc_output_function_epilogue): Update.
11241 2008-04-18 Marius Strobl <marius@FreeBSD.org>
11243 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
11244 for FreeBSD as well.
11245 * gthr-posix95.h: Likewise.
11247 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
11249 PR rtl-optimization/35838
11250 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
11251 out the byte offset of the first subreg.
11253 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
11255 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
11256 to split_ti instead of three separate calls with single member arrays.
11257 (subti3 splitter): Ditto.
11258 (adddi3 splitter): Ditto with split_di.
11259 (subdi3 splitter): Ditto.
11260 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
11261 two separate calls with single member arrays. Swap match_dup
11262 operands 1 and 2 to better fit into the array.
11263 (negdi2 splitter): Ditto with split_di.
11264 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
11265 two separate calls with single member arrays. Swap match_dup operands
11266 6 and 7 to better fit into the array.
11268 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
11270 * config/i386/i386.c (sse_builtin_type): New.
11271 (bdesc_sse_args): Likewise.
11272 (bdesc_sse_3arg): Removed.
11273 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
11274 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
11275 IX86_BUILTIN_ROUNDPS.
11276 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
11277 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
11278 IX86_BUILTIN_ROUNDPS.
11279 (ix86_expand_sse_4_operands_builtin): Removed.
11280 (ix86_expand_sse_operands_builtin): New.
11281 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
11282 and CODE_FOR_sse4_1_roundps.
11283 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
11284 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
11286 2008-04-17 Alan Modra <amodra@bigpond.net.au>
11289 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
11290 regs before frame pop when needed. If use_backchain_to_restore_sp
11291 then load backchain into a temp reg to restore vr and vrsave. Add
11292 code to restore vr after frame pop if possible.
11294 2008-04-17 Richard Guenther <rguenther@suse.de>
11296 * tree-vn.c (expressions_equal_p): Do not check type
11297 equality or compatibility before calling operand_equal_p.
11298 * fold-const.c (operand_equal_p): Check equivalence of
11299 integer constants before bailing out due to signedness or
11300 precision differences.
11301 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
11302 spurious differences in type qualification. Ignore types
11303 for COMPONENT_REFs at all.
11305 2008-04-17 Christian Bruel <christian.bruel@st.com>
11307 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
11308 msw_skip comparison.
11310 2008-04-16 Jakub Jelinek <jakub@redhat.com>
11313 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
11316 PR tree-optimization/35899
11317 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
11318 rather than TREE_OPERAND.
11320 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
11323 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
11324 temporary registers. Change operand predicate to general_operand.
11325 (remainderxf3): Ditto.
11327 2008-04-16 Richard Guenther <rguenther@suse.de>
11329 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
11330 * tree-affine.c (aff_combination_expand): Look through some
11333 2008-04-15 Doug Kwan <dougkwan@google.com>
11335 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
11337 * tree-pretty-print.c (dump_generic_node): Ditto.
11338 * final.c (output_addr_const): Ditto.
11339 * dwarf2out.c (output_cfi): Ditto.
11340 * c-pretty-print.c (pp_c_integer_constant): Ditto.
11341 * print-rtl.c (print_rtx): Ditto.
11342 * print-tree.c (print_node_brief, print_node): Ditto.
11343 * c-common.c (match_case_to_enum_1): Ditto.
11344 * sched-vis.c (print_value): Ditto.
11345 * config/i386/i386.c (print_operand): Cast to long unsigned int
11348 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
11349 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
11350 MS Windows VirtualProtect function.
11352 2008-04-15 Jan Hubicka <jh@suse.cz>
11354 * gengtype.c (write_root): Param_is argument is OK.
11355 * expr.c (expand_expr_real_1): Update call of get_exception_*.
11356 * function.h: Include varray.h
11357 (rtl_eh): New stucture based on except.c one.
11358 (call_site_record): New forward declaration and vector type.
11359 * calls.c (emit_call_1): Do not call
11360 note_current_region_may_contain_throw.
11361 * except.c (eh_status): Remove cur_region, try_region since they are
11363 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
11364 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
11365 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
11366 Remove call_site_data_used, call_site_data_size.
11367 Turn call_site_record into vector in function.h.
11368 (note_current_region_may_contain_throw): Remove.
11369 (get_exception_pointer, get_exception_filter): Do not take struct
11370 function argument; update.
11371 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
11372 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
11373 build_post_landing_pads, dw2_build_landing_pads,
11374 sjlj_assign_call_site_values, sjlj_mark_call_sites,
11375 sjlj_emit_function_enter, sjlj_emit_function_enter,
11376 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
11377 sjlj_build_landing_pads, finish_eh_generation,
11378 remove_exception_handler_label, remove_eh_handler,
11379 maybe_remove_eh_handler, add_reachable_handler,
11380 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
11381 add_action_record, collect_one_action_chain, add_call_site,
11382 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
11383 sjlj_output_call_site_table, output_function_exception_table,
11384 * except.h (note_current_region_may_contain_throw): Remove
11385 (get_exception_pointer, get_exception_filter): Do not take struct
11387 * Makefile.in (GTFILES): Put varargs before struct function.
11389 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
11391 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
11392 punt for STRING_CST.
11393 (get_constraint_for): Deal with STRING_CST here instead.
11395 2008-04-15 Richard Guenther <rguenther@suse.de>
11397 * tree-ssa-propagate.c (substitute_and_fold): Substitute
11398 statements in a basic-block with a backward walk. Do not
11399 substitute into dead statements but instead remove those.
11401 2008-04-15 Richard Guenther <rguenther@suse.de>
11403 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
11404 to zero, thus disable creation of SFTs.
11406 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
11408 * tree-predcom.c (suitable_reference_p): Return false if the
11409 reference can throw.
11411 2008-04-15 Jakub Jelinek <jakub@redhat.com>
11414 * c-decl.c (finish_decl): If extern or static var has variable
11415 size, set TREE_TYPE (decl) to error_mark_node.
11417 2008-04-15 Rafael Espindola <espindola@google.com>
11419 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
11422 2008-04-15 Richard Guenther <rguenther@suse.de>
11424 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11425 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
11426 (visit_reference_op_load): Do walk vuse-vdef chains on
11427 vn_reference_lookup.
11428 (visit_reference_op_store): But do not here.
11429 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
11430 vn_reference_lookup.
11431 (vn_lookup_with_vuses): But do so here.
11433 2008-04-14 Ian Lance Taylor <iant@google.com>
11435 * fold-const.c (fold_overflow_warning): Remove assertion.
11437 2008-04-15 Ben Elliston <bje@au.ibm.com>
11439 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
11440 temp1 local variables.
11442 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
11445 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
11446 ".text.unlikely" section as executable.
11448 2008-04-14 James E. Wilson <wilson@tuliptree.org>
11450 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11451 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
11452 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
11453 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
11454 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
11455 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
11456 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
11458 2008-04-14 Ian Lance Taylor <iant@google.com>
11460 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
11461 * fold-const.c (fold_comparison): If appropriate, test
11462 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
11463 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
11464 reassociating a pointer type.
11465 * doc/invoke.texi (Optimize Options): Document that
11466 -fstrict-overflow applies to pointer wraparound.
11468 2008-04-13 Jan Hubicka <jh@suse.cz>
11470 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
11472 2008-04-12 Andrew Pinski <pinskia@gmail.com>
11474 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
11475 we are going to "save the world".
11477 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
11479 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
11480 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
11481 operand 0 constraint, not "=".
11483 2008-04-11 James E. Wilson <wilson@tuliptree.org>
11485 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
11487 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
11489 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
11490 of size of positions_needed * CHAR_BIT.
11492 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
11494 PR middle-end/35897
11495 * dse.c (store_info): Change positions_needed to unsigned
11497 (lowpart_bitmask): New.
11498 (record_store): Cast to unsigned HOST_WIDE_INT for
11499 positions_needed. Assert width <= size of positions_needed *
11500 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
11501 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
11502 lowpart_bitmask to set mask.
11504 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
11506 * config/bfin/constraints.md: New file.
11507 * config/bfin/bfin.md: Include it.
11508 (adddi3): Use satisfies_constraint functions instead of the old macros.
11509 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
11510 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
11511 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
11512 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
11513 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
11514 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
11515 EXTRA_CONSTRAINT): Delete.
11516 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
11517 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
11519 * config/bfin/bfin.c: Include "tm-constrs.h".
11520 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
11521 Use satisfies_constraint functions instead of the old macros.
11522 * doc/md.texi (Blackfin Constraints): Update file name reference.
11524 2008-04-11 Richard Guenther <rguenther@suse.de>
11526 PR tree-optimization/35869
11527 * tree-vrp.c (execute_vrp): Move switch statement update after
11528 jump threading. Schedule another cfg cleanup run.
11530 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
11533 * attribs.c (decl_attributes): Return early on errorneous node.
11535 2008-04-10 Oleg Ryjkov <olegr@google.com>
11537 * tree.h (struct tree_base): Added a new flag default_def_flag.
11538 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
11540 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
11542 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
11544 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11547 * pa.md: Define mode iterator P. Define mode attribute dwc.
11548 (dcacheflush): Update pattern to use iterator P and attribute dwc.
11549 (icacheflush): Likewise.
11550 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
11551 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
11553 2008-04-11 Ben Elliston <bje@au.ibm.com>
11555 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
11557 2008-04-10 Rafael Espindola <espindola@google.com>
11559 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
11560 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
11561 (extract_range_from_expr): The same.
11563 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
11565 * config/mips/mips.md (GPR2): New mode iterator.
11566 (seq): Add comment.
11567 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
11568 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
11569 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
11570 Rewrite these to take two modes, the mode of comparison and the
11571 mode of the destination.
11572 * config/mips/mips.c (mips_expand_scc): Instead of having
11573 paradoxical subreg as destination, expand "narrowing" scc if mode
11574 of comparison is SI and target is requested in DI mode.
11575 (mips_emit_int_order_test): Update comment. Make mode of
11576 comparison match CMP0 rather than TARGET. When creating inverse
11577 target use mode of TARGET.
11579 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
11581 * gcov-dump.c (tag_summary): Only print summaries for the first
11582 GCOV_COUNTERS_SUMMABLE counters.
11584 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
11586 * config/i386/i386.md (absneg): New code iterator.
11587 (absnegprefix): New code attribute.
11588 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
11589 patterns using absneg code iterator.
11590 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
11591 using absneg code iterator.
11592 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
11593 *neg<mode>2 patterns using absneg code iterator.
11594 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11595 *negextendsfdf2 patterns using absneg code iterator.
11596 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
11597 *negextendsfxf2 patterns using absneg code iterator.
11598 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11599 *negextendsfdf2 patterns using absneg code iterator.
11600 * config/i386/sse.md (<code><mode>2): Macroize expander from
11601 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
11603 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
11605 * config/s390/s390.h: Remove the remains of the recent search
11606 & replace action of current_function_outgoing_args_size.
11608 2008-04-10 Ira Rosen <irar@il.ibm.com>
11610 PR tree-optimization/35821
11611 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
11612 NEW_STMT_LIST is not NULL.
11614 2008-04-09 David Edelsohn <edelsohn@gnu.org>
11617 * toplev.c (process_options): Remove -ffunction-sections debugging
11620 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
11622 PR middle-end/PR28690
11623 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
11624 than gen_rtx_fmt_ee to perform more canonicalizations.
11626 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11629 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
11631 2008-04-09 Richard Guenther <rguenther@suse.de>
11633 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
11634 (dump_function_to_file): Dump function arguments with types.
11636 2008-04-08 Richard Guenther <rguenther@suse.de>
11638 * fold-const.c (fold_widened_comparison): Do not allow
11639 sign-changes that change the result.
11641 2008-04-08 Janis Johnson <janis187@us.ibm.com>
11644 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
11645 kinds of indirect references.
11647 2008-04-08 David Edelsohn <edelsohn@gnu.org>
11649 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
11650 GNU Fortran language string.
11652 2008-04-08 Rafael Espindola <espindola@google.com>
11654 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
11655 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
11656 * tree.h (tree_call_nonnegative_warnv_p): New.
11658 2008-04-08 Jan Hubicka <jh@suse.cz>
11660 * function.c (free_after_compilation): Clear out regno_reg_rtx
11663 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
11666 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11668 PR middle-end/PR28690
11669 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
11670 same precedence as REG_POINTER and MEM_POINTER operands.
11672 2008-04-08 Richard Guenther <rguenther@suse.de>
11674 PR middle-end/35834
11675 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
11676 for adding index to base.
11678 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
11680 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
11681 (MINGW_ENABLE_EXECUTE_STACK): New.
11682 (IN_LIBGCC2): For libgcc include windows.h file for
11683 function declarations.
11685 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
11687 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
11688 and tem2 if tem1 is not a REG or MULT.
11690 2008-04-08 Jan Hubicka <jh@suse.cz>
11692 * function.h (incomming_args): Break out of struct function.
11693 (function_subsections): Break out of struct function.
11694 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
11695 return_rtx and hard_reg_initial_vals from struct function.
11696 Kill inl_max_label_num.
11697 (current_function_pops_args, current_function_args_info,
11698 current_function_args_size, current_function_args_size,
11699 current_function_pretend_args_size,
11700 current_function_outgoing_args_size,
11701 current_function_internal_arg_pointer, current_function_return_rtx):
11702 Kill compatibility accestor macros.
11703 * builtins.c (expand_builtin_apply_args_1): Update.
11704 (expand_builtin_next_arg): Update.
11705 * df-scan.c (df_get_call_refs): Update.
11706 * dbxout.c (dbxout_function_end): Update.
11707 * dwarf2out.c (dwarf2out_switch_text_section): Update.
11708 (output_line_info): Update.
11709 (secname_for_decl): Update.
11710 (dwarf2out_var_location): Update.
11711 * function.c (free_after_compilation): Update.
11712 (assign_parm_find_stack_rtl): Update.
11713 (assign_parms): Update.
11714 (expand_dummy_function_end): Update.
11715 (expand_function_end): Update.
11716 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
11717 (expand_call): Update.
11718 (emit_library_call_value_1): Update.
11719 (store_one_arg): Update.
11720 * varasm.c (initialize_cold_section_name): Update.
11721 (unlikely_text_section): Update.
11722 (unlikely_text_section_p): Update.
11723 (assemble_start_function): Update.
11724 (assemble_end_function): Update.
11725 (default_section_type_flags): Update.
11726 (switch_to_section): Update.
11727 * integrate.c (set_decl_abstract_flags): Update.
11728 (get_hard_reg_initial_val): Update.
11729 (has_hard_reg_initial_val): Update.
11730 (allocate_initial_values): Update.
11731 * resource.c (init_resource_info): Update.
11732 * config/alpha/alpha.c (NUM_ARGS): Update.
11733 (direct_return): Update.
11734 (alpha_va_start): Update.
11735 (alpha_sa_size): Update.
11736 (alpha_initial_elimination_offset): Update.
11737 (alpha_expand_prologue): Update.
11738 (alpha_start_function): Update.
11739 (alpha_expand_epilogue): Update.
11740 (unicosmk_initial_elimination_offset):
11741 * config/alpha/alpha.md (call expander): Update.
11742 * config/s390/s390.c (s390_register_info): Update.
11743 (s390_register_info): Update.
11744 (s390_frame_info): Update.
11745 (s390_initial_elimination_offset): Update.
11746 (s390_build_builtin_va_list): Update.
11747 (s390_va_start): Update.
11748 * config/spu/spu.c (direct_return): Update.
11749 (spu_expand_prologue): Update.
11750 (spu_initial_elimination_offset): Update.
11751 (spu_build_builtin_va_list): Update.
11752 (spu_va_start): Update.
11753 * config/sparc/sparc.c (sparc_init_modes): Update.
11754 (sparc_compute_frame_size): Update.
11755 (function_value): Update.
11756 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
11757 * config/i386/i386.md (return expander): Update.
11758 * config/i386/i386.c (ix86_va_start): Update.
11759 (ix86_can_use_return_insn_p): Update.
11760 (ix86_compute_frame_layout): Update.
11761 (ix86_expand_epilogue): Update.
11762 * config/sh/sh.c (output_stack_adjust): Update.
11763 (calc_live_regs): Update.
11764 (sh_expand_prologue): Update.
11765 (sh_builtin_saveregs): Update.
11766 (sh_va_start): Update.
11767 (initial_elimination_offset): Update.
11768 (sh_allocate_initial_value): Update.
11769 (sh_function_ok_for_sibcall): Update.
11770 (sh_get_pr_initial_val): Update.
11771 * config/sh/sh.md (return expander): Update.
11772 * config/avr/avr.c (frame_pointer_required_p): UPdate.
11773 * config/crx/crx.c (crx_compute_frame): UPdate.
11774 (crx_initial_elimination_offset): UPdate.
11775 * config/xtensa/xtensa.c (compute_frame_size): Update
11776 (xtensa_builtin_saveregs): Update.
11777 (xtensa_va_start): Update.
11778 (order_regs_for_local_alloc): Update.
11779 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
11780 (xstormy16_expand_builtin_va_start): Update.
11781 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
11782 * config/m68hc11/m68hc11.md (return expanders): Update.
11783 * config/m68hc11/m68hc11.c (expand_prologue): Update.
11784 (expand_epilogue): Update.
11785 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
11786 (cris_simple_epilogue): Update.
11787 (cris_expand_prologue): Update.
11788 (cris_expand_epilogue): Update.
11789 * config/iq2000/iq2000.c (iq2000_va_start): Update.
11790 (compute_frame_size): Update.
11791 * config/mt/mt.c (mt_compute_frame_size): Update.
11792 * config/mn10300/mn10300.c (expand_prologue): Update.
11793 (expand_epilogue): Update.
11794 (initial_offset): Update.
11795 (mn10300_builtin_saveregs):
11796 * config/mn10300/mn10300.md (return expander): Update.
11797 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11798 (ia64_initial_elimination_offset): Update.
11799 (ia64_initial_elimination_offset): Update.
11800 (ia64_expand_prologue): Update.
11801 * config/m68k/m68k.md (return expander): Update.
11802 * config/rs6000/rs6000.c (rs6000_va_start): Update.
11803 (rs6000_stack_info): Update.
11804 * config/mcore/mcore.c (layout_mcore_frame): Update.
11805 (mcore_expand_prolog): Update.
11806 * config/arc/arc.c (arc_compute_frame_size): Update.
11807 * config/score/score3.c (score3_compute_frame_size): Update.
11808 * config/score/score7.c (score7_compute_frame_size): Update.
11809 * config/arm/arm.c (use_return_insn): Update.
11810 (thumb_find_work_register): Update.
11811 (arm_compute_save_reg_mask): Update.
11812 (arm_output_function_prologue): Update.
11813 (arm_output_epilogue): Update.
11814 (arm_size_return_regs): Update.
11815 (arm_get_frame_offsets): Update.
11816 (arm_expand_prologue): Update.
11817 (thumb_exit): Update.
11818 (thumb_unexpanded_epilogue): Update.
11819 (thumb1_output_function_prologue): Update.
11820 * config/pa/pa.md (return expander): Update.
11821 * config/pa/pa.c (compute_frame_size): Update.
11822 (hppa_builtin_saveregs): Update.
11823 * config/mips/mips.c (mips_va_start): Update.
11824 (mips16_build_function_stub): Update.
11825 (mips_compute_frame_info): Update.
11826 (mips_restore_gp): Update.
11827 (mips_output_function_prologue): Update.
11828 (mips_expand_prologue): Update.
11829 * config/v850/v850.c (compute_frame_size): Update.
11830 (expand_prologue): * config/mmix/mmix.c (along): update.
11831 (mmix_initial_elimination_offset): update.
11832 (mmix_reorg): update.
11833 (mmix_use_simple_return): update.
11834 (mmix_expand_prologue): update.
11835 (mmix_expand_epilogue): Update.
11836 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
11837 (emit_link_insn): Update.
11839 2008-04-08 Anatoly Sokolov <aesok@post.ru>
11841 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
11842 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
11844 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
11847 2008-04-07 Jan Hubicka <jh@suse.cz>
11849 * function.h (rtl): Rename to x_rtl.
11850 (crtl): New define.
11851 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11852 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11853 used_temp_slots avail_temp_slots, temp_slot_level,
11854 nonlocal_goto_handler_labels): Update accesstors.
11855 (rtl): New global variable.
11856 (struct function): Move some fileds to rtl_data.
11857 (get_arg_pointer_save_area): Update prototype.
11858 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11859 get_arg_pointer_save_area.
11860 * expr.c (init_expr): Update
11861 * function.c (get_frame_size): Update
11862 (assign_stack_local): Update
11863 (expand_function_end): Update.
11864 (get_art_pointer_save_area): Update
11866 * emit-rtl.c (rtl): Declare.
11867 (regno_reg_rtx): Declare.
11868 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11870 (gen_reg_rtx): Update.
11871 * varasm.c (n_deferred_constatns): Update accestor.
11872 (init_varasm_status): Do not allocate varasm_status.
11873 (force_const_mem, get_pool_size, output_constant_pool): Update.
11874 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11875 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11876 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11877 * sparc/sparc.h (INIT_EXPANDERS): Update.
11878 * ia64/ia64.h (INIT_EXPANDERS): Update.
11880 2008-04-07 James E. Wilson <wilson@tuliptree.org>
11882 * reload.c (push_secondary_reload): Add missing break to for loop.
11884 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11886 PR middle-end/PR28690
11887 * rtlanal.c: Update copyright years.
11888 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11889 as REG_POINTER and MEM_POINTER operands.
11890 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11891 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11892 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11893 * gcse.c: Update copyright years.
11894 (pre_delete): Call gen_reg_rtx_and_attrs.
11895 (hoist_code): Likewise.
11896 (build_store_vectors): Likewise.
11897 (delete_store): Likewise.
11898 * loop-invariant.c (move_invariant_reg): Likewise.
11899 Update copyright years.
11901 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
11903 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11904 control string instead of quoted.
11906 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
11908 * doc/rtl.texi: Rewrite of subreg section.
11910 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
11913 * config/i386/i386.c (legitimize_pic_address): Add treating
11914 of dllimport SYM_REF's.
11915 (legitimize_dllimport_symbol): Add prototype.
11917 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11919 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
11920 reference in constructor with non self-referential type.
11922 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11924 Removal of Return with Depressed Stack Pointer support
11925 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11926 (ECF_SP_DEPRESSED): Likewise.
11927 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11928 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11929 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11930 (expand_call): Do not test ECF_SP_DEPRESSED.
11931 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11932 * function.c (keep_stack_depressed): Delete.
11933 (handle_epilogue_set): Likewise.
11934 (update_epilogue_consts): Likewise.
11935 (emit_equiv_load): Likewise.
11936 (thread_prologue_and_epilogue_insns): Remove support for Return with
11937 Depressed Stack Pointer.
11938 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11940 2008-04-06 Richard Guenther <rguenther@suse.de>
11942 PR tree-optimization/35400
11943 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11944 information from SSA_NAMEs.
11946 2008-04-06 Anatoly Sokolov <aesok@post.ru>
11948 * config/avr/avr.h (avr_mega_p): Remove declaration.
11949 (AVR_MEGA): Remove macro.
11950 * config/avr/avr.c (avr_mega_p): Remove variable.
11951 (avr_override_options): Remove inicializion of avr_mega_p.
11952 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11953 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11954 (avr_jump_mode): (Ditto.).
11955 (avr_output_progmem_section_asm_op): (Ditto.).
11956 (avr_asm_init_sections): (Ditto.).
11957 (avr_asm_init_sections): (Ditto.).
11958 (avr_rtx_costs): (Ditto.).
11959 * config/avr/avr.md: (Ditto.).
11960 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11963 2008-04-06 Richard Guenther <rguenther@suse.de>
11965 PR tree-optimization/35842
11966 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11967 is_gimple_invariant_address.
11969 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11971 * gcc.c (default_compilers): Sync Fortran extensions list with
11972 that in fortran/lang-specs.h.
11973 * doc/invoke.texi: Likewise.
11974 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11975 * dwarf2out.c (gen_compile_unit_die): Likewise.
11977 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
11979 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11981 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
11984 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11985 attribute is used for nested functions.
11987 2008-04-05 Jan Hubicka <jh@suse.cz>
11989 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11991 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11993 (dump_files): Update.
11994 (enable_rtl_dump_file): Do not accept letter argument.
11995 * tree-pass.h (dump_file_info): Remove letter argument.
11996 * toplev.c (decode_d_option): Update -da handling.
11997 * toplev.h (enable_rtl_dump_file): Update prototype.
11998 * passes.c (register_one_dump_file): Do not accept IPA argument; work
11999 it out based on pass type.
12000 (register_dump_files_1): Likewise.
12001 (init_optimization_passes): Update register_one_dump_file calls.
12002 (execute_one_pass): Sanity check that IPA passes are called at IPA
12003 level and RTL passes at RTL level.
12004 (execute_pass_list): IPA pass can not be after or subpass of
12006 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
12007 disallov RTL subpasses of IPA subpasses.
12009 2008-04-05 Ben Elliston <bje@au.ibm.com>
12011 * tree-cfg.c (need_fake_edge_p): Return false for calls to
12012 builtins that return exactly once and do not throw. Cache call to
12015 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
12017 PR rtl-optimization/34916
12018 PR middle-end/35519
12019 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
12020 between instruction pairs.
12022 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
12024 * doc/invoke.texi: Document -mbitops for SH.
12025 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
12026 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
12027 * config/sh/sh.c (print_operand): Add %t operand code.
12028 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
12029 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
12030 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
12031 (extendqihi2): Likewise.
12032 (movqi_i): Likewise.
12033 (insv): Use bset, bclr and bst instructions for SH2A if possible.
12034 (extv): Use bld instruction for SH2A if possible.
12036 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
12037 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
12038 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
12039 (bset.b, bclr.b): Define peepholes.
12040 * config/sh/sh.opt (mbitops): New option.
12042 2008-04-04 Janis Johnson <janis187@us.ibm.com>
12045 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
12046 and view convert expression.
12048 2008-04-04 Jakub Jelinek <jakub@redhat.com>
12051 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
12053 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
12055 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
12057 * config/i386/cpuid.h (bit_AES): New.
12058 (bit_PCLMUL): Likewise.
12060 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
12061 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
12062 SSE2 if AES or PCLMUL is enabled.
12063 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
12064 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
12065 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
12066 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
12067 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
12068 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
12069 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
12070 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
12071 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
12072 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
12073 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
12074 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
12075 __builtin_ia32_aeskeygenassist128 and
12076 __builtin_ia32_pclmulqdq128.
12077 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
12078 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
12079 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
12081 * config/i386/i386.h (TARGET_AES): New.
12082 (TARGET_PCLMUL): Likewise.
12083 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
12085 * config/i386/i386.md (UNSPEC_AESENC): New.
12086 (UNSPEC_AESENCLAST): Likewise.
12087 (UNSPEC_AESDEC): Likewise.
12088 (UNSPEC_AESDECLAST): Likewise.
12089 (UNSPEC_AESIMC): Likewise.
12090 (UNSPEC_AESKEYGENASSIST): Likewise.
12091 (UNSPEC_PCLMUL): Likewise.
12093 * config/i386/i386.opt (maes): New.
12094 (mpclmul): Likewise.
12096 * config/i386/sse.md (aesenc): New pattern.
12097 (aesenclast): Likewise.
12098 (aesdec): Likewise.
12099 (aesdeclast): Likewise.
12100 (aesimc): Likewise.
12101 (aeskeygenassist): Likewise.
12102 (pclmulqdq): Likewise.
12104 * config/i386/wmmintrin.h: New.
12106 * doc/extend.texi: Document AES and PCLMUL built-in function.
12108 * doc/invoke.texi: Document -maes and -mpclmul.
12110 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
12112 * function.c (free_after_parsing): Replace with
12113 cxx_push_function_context from C++ front-end.
12114 (allocate_struct_function): Don't call langhook.
12115 * langhooks.h (struct lang_hooks_for_functions): Delete.
12116 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
12118 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
12119 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
12120 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
12121 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
12122 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
12123 remove LANG_HOOKS_FUNCTION_INITIALIZER.
12124 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
12126 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
12127 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
12129 2008-04-04 Jakub Jelinek <jakub@redhat.com>
12132 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
12135 2008-04-04 Richard Guenther <rguenther@suse.de>
12137 PR middle-end/35823
12138 * fold-const.c (optimize_minmax_comparison): Use the correct
12139 type for the constant in the simplified comparison.
12141 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
12143 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
12144 Pass L2 size as "--param l2-cache-size" to the compiler.
12145 (decode_l2_cache): New function to decode L2 cache parameters using
12146 0x8000006 extended cpuid function.
12147 (detect_caches_amd): Determine parameters of L2 cache using
12148 decode_l2_caches function.
12149 (decode_caches_intel): Decode L2 cache parameters.
12150 (detect_caches_intel): Determine L2 cache parameters using
12151 decode_caches_intel and decode_l2_caches functions.
12153 2008-04-03 Bob Wilson <bob.wilson@acm.org>
12155 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
12156 secondary input reload for subword loads from the constant pool.
12158 2008-04-03 Janis Johnson <janis187@us.ibm.com>
12161 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
12162 constants of the appropriate size for runtime calculations.
12165 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
12166 decimal-float literal constant zero.
12168 2008-04-03 Jakub Jelinek <jakub@redhat.com>
12171 * c-parser.c (c_parser_omp_atomic): Call
12172 default_function_array_conversion on the RHS.
12174 PR middle-end/35818
12175 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
12176 call is_variable_sized if decl has incomplete type.
12178 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
12180 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
12182 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
12184 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
12186 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
12187 (sgt<u>): Merge sgt and sgtu into new expander.
12188 (sgt, sgtu): Remove expanders.
12189 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
12190 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
12191 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
12192 *sgtu_<mode>_mips16 into new pattern.
12193 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
12194 (sge<u>): Merge sge and sgeu into new expander.
12195 (sge, sgeu): Remove expanders.
12196 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
12198 (*sge_<mode>, second *sge_<mode>): Remove patterns.
12199 (slt<u>): Merge slt and sltu into new expander.
12200 (slt, sltu): Remove expanders.
12201 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
12202 (*slt_<mode>, *sltu_<mode>): Remove patterns.
12203 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
12204 *sltu_<mode>_mips16 into new pattern.
12205 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
12206 (sle<u>): Merge sle and sleu into new expander.
12207 (sle, sleu): Remove expanders.
12208 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
12209 (*sle_<mode>, *sleu_<mode>): Remove patterns.
12210 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
12211 *sleu_<mode>_mips16 into new pattern.
12212 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
12214 2008-04-03 Jan Hubicka <jh@suse.cz>
12216 PR tree-optimization/35795
12217 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
12218 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12219 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12220 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12221 * score/score3.c (score3_output_mi_thunk): Likewise.
12222 * score/score7.c (score7_output_mi_thunk): Likewise.
12223 * mips/mips.c (mips_output_mi_thunk): Likewise.
12225 2008-04-03 Richard Guenther <rguenther@suse.de>
12227 * tree-vrp.c (extract_range_from_unary_expr): Handle all
12228 conversions. Simplify code.
12230 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
12232 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
12234 2008-04-03 Tom Tromey <tromey@redhat.com>
12235 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12237 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12238 * config/bfin/t-bfin-linux (generated_files): Add
12239 linux-sysroot-suffix.h.
12240 * doc/install.texi (Prerequisites): Require make 3.80.
12241 * doc/sourcebuild.texi (Front End Directory): Document new
12243 * Makefile.in (generated_files): New variable.
12244 (ALL_HOST_OBJS): New variable.
12245 ($(ALL_HOST_OBJS)): New target.
12247 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
12249 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
12250 (remap_block): Call id->transform_lang_insert_block instead
12252 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
12253 Set id.transform_lang_insert_block to NULL.
12254 (clone_body): Move to cp/optimize.c
12255 * tree-inline.h (struct copy_body_data): Change
12256 transform_lang_insert_block to function pointer.
12257 (copy_generic_body, copy_decl_no_change): Export.
12258 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
12259 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
12260 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
12262 * c-tree.h (insert_block): Kill.
12263 * c-decl.c (insert_block): Kill.
12265 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
12267 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12268 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
12269 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
12271 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
12272 argument, call {push,pop}_function_context from here.
12273 * c-parser.c: Use c_{push,pop}_function_context.
12275 * function.c (push_function_context_to): Move meat ...
12276 (push_function_context): ... here. Simplify.
12277 * function.c (pop_function_context_from): Move meat ...
12278 (pop_function_context): ... here. Simplify.
12279 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
12281 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12282 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
12283 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
12284 * tree.h (push_function_context_to, pop_function_context_from): Remove.
12286 2008-04-03 Ben Elliston <bje@au.ibm.com>
12288 * expmed.c (extract_force_align_mem_bit_field): Remove.
12290 2008-04-03 Richard Guenther <rguenther@suse.de>
12292 PR middle-end/35800
12293 * expr.h (try_casesi): Adjust prototype.
12294 * expr.c (try_casesi): Take fallback label as extra parameter.
12295 Use that for gen_casesi if default_label is NULL.
12296 * stmt.c (expand_case): Pass fallback label to try_casesi,
12297 make sure to fill gaps with a fallback label if default_label
12300 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
12303 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
12305 2008-04-03 Ben Elliston <bje@au.ibm.com>
12307 * expmed.c (extract_split_bit_field): Remove if (0) code.
12308 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
12309 (do_ds_constraint): Likewise.
12311 2008-04-02 Joseph Myers <joseph@codesourcery.com>
12313 * doc/cppopts.texi (-dU): Document.
12314 * c-common.h (flag_dump_macros): Update comment.
12315 * c-opts.c (handle_OPT_d): Handle -dU.
12316 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
12317 dump_queued_macros, cb_used_define, cb_used_undef): New.
12318 (init_pp_output): Handle -dU.
12319 (cb_line_change): Call dump_queued_macros.
12320 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
12322 2008-04-02 Anatoly Sokolov <aesok@post.ru>
12324 * config/avr/predicates.md (io_address_operand): New predicate.
12325 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
12326 * config/avr/avr.c (avr_io_address_p): Remove function.
12327 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
12328 'avr_io_address_p' function.
12329 (out_movhi_r_mr): (Ditto.).
12330 (out_movqi_mr_r): (Ditto.).
12331 (out_movhi_mr_r): (Ditto.).
12332 (avr_address_cost): (Ditto.).
12334 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
12336 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
12337 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
12338 in 32bit mode when XMM registers are available to avoid store
12340 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
12341 corresponding post-reload splitters.
12343 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
12345 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
12346 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
12347 __builtin_ia32_roundss.
12348 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
12349 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
12350 __builtin_ia32_roundss.
12351 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
12352 IX86_BUILTIN_SHUFPD here.
12354 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
12356 * config/i386/i386.md (plogic): New.
12357 (plogicprefix): Likewise.
12359 * config/i386/mmx.md (mmx_<code><mode>3): New.
12360 (mmx_and<mode>3): Removed.
12361 (mmx_ior<mode>3): Likewise.
12362 (mmx_xor<mode>3): Likewise.
12364 * config/i386/sse.md (<code><mode>3): New.
12365 (*<code><mode>3): Likewise.
12366 (*<code><mode>3): Likewise.
12367 (<code><mode>3): Likewise.
12368 (*sse_<code><mode>3): Likewise.
12369 (*sse2_<code><mode>3): Likewise.
12370 (<code>tf3): Likewise.
12371 (*<code>tf3): Likewise.
12372 (and<mode>3): Likewise.
12373 (*and<mode>3): Likewise.
12374 (ior<mode>3): Removed.
12375 (*ior<mode>3): Likewise.
12376 (xor<mode>3): Likewise.
12377 (*xor<mode>3): Likewise.
12378 (*and<mode>3): Likewise.
12379 (*ior<mode>3): Likewise.
12380 (*xor<mode>3): Likewise.
12381 (and<mode>3): Likewise.
12382 (*sse_and<mode>3): Likewise.
12383 (*sse2_and<mode>3): Likewise.
12384 (andtf3): Likewise.
12385 (*andtf3): Likewise.
12386 (ior<mode>3): Likewise.
12387 (*sse_ior<mode>3): Likewise.
12388 (*sse2_ior<mode>3): Likewise.
12389 (iortf3): Likewise.
12390 (*iortf3): Likewise.
12391 (xor<mode>3): Likewise.
12392 (*sse_xor<mode>3): Likewise.
12393 (*sse2_xor<mode>3): Likewise.
12394 (xortf3): Likewise.
12395 (*xortf3): Likewise.
12397 2008-04-02 Richard Guenther <rguenther@suse.de>
12399 PR tree-optimization/14495
12400 PR tree-optimization/34793
12401 * tree-vrp.c (struct switch_update): New structure.
12402 (to_remove_edges, to_update_switch_stmts): New VECs.
12403 (simplify_switch_using_ranges): New function. Remove not taken
12404 case labels and edges.
12405 (simplify_stmt_using_ranges): Call it.
12406 (identify_jump_threads): Mark edges we have queued for removal
12407 so we don't thread them.
12408 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
12410 * tree-cfg.c (group_case_labels): Deal with missing default label.
12411 (tree_verify_flow_info): Allow missing default label.
12412 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
12413 (emit_case_nodes): Likewise.
12414 (expand_case): Do not rely on the default label to be present.
12415 * expr.c (try_casesi): Deal with NULL default_label.
12416 (do_tablejump): Likewise.
12418 2008-04-02 Richard Guenther <rguenther@suse.de>
12420 PR tree-optimization/14495
12421 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
12422 SWITCH_EXPR here ...
12423 (vrp_visit_switch_stmt): ... but here (new function).
12424 (find_case_label_index): New helper function.
12425 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
12427 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12429 * fwprop.c: Fix ISO-C99ism.
12431 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12434 * Makefile.in (objdir): Set it here.
12435 * configure.ac: Not here. Find dynamic linker characteristics.
12436 * exec-tool.in: Use them.
12437 * aclocal.m4: Regenerate.
12438 * configure: Regenerate.
12440 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12442 * expr.c (expand_var): Delete it.
12443 * expr.h (expand_var): Delete prototype.
12444 * function.c (expand_function_start): Use expand_decl instead.
12445 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
12448 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
12450 PR rtl-optimization/35542
12451 * fwprop.c (forward_propagate_and_simplify): Replace
12452 loc_reg_mentioned_in_p with reg_mentioned_p.
12454 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12456 PR rtl-optimization/35281
12457 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
12458 (propagate_rtx_1): Handle PR_HANDLE_MEM.
12459 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
12460 (varying_mem_p): Move above propagate_rtx.
12461 (all_uses_available_at): Do not check MEMs.
12463 2008-04-02 Rafael Espindola <espindola@google.com>
12465 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
12466 (register_edge_assert_for_2): Split the cond argument.
12467 (register_edge_assert_for_1): Adjust for the change in
12468 register_edge_assert_for_2.
12469 (register_edge_assert_for): Split the cond argument.
12470 (find_switch_asserts): Adjust for the change in
12471 register_edge_assert_for.
12473 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
12475 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
12476 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
12477 offsets for 64-bit mingw.
12478 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
12479 abi for x86_64-pc-mingw.
12481 2008-04-02 Richard Guenther <rguenther@suse.de>
12483 * tree-vrp.c (extract_range_from_assert): Make sure to not
12484 produce range min/max with TREE_OVERFOW set.
12485 If merging a anti-range and a range keep the anti-range if
12486 the range covers all values of the type.
12487 (register_edge_assert_for_2): Only allow sign-changing
12488 conversions in detecting canonical range checks. Also
12489 register an assert for the unsigned name if useful.
12491 PR tree-optimization/35787
12492 * tree-vrp.c (vrp_val_max): New function.
12493 (vrp_val_min): Likewise.
12494 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
12495 (vrp_val_is_min): Likewise.
12496 (supports_overflow_infinity): Use vrp_val_{min,max}.
12497 (negative_overflow_infinity): Likewise.
12498 (positive_overflow_infinity): Likewise.
12499 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
12500 (is_positive_overflow_infinity): Likewise.
12501 (is_overflow_infinity): Likewise.
12502 (avoid_overflow_infinity): Use vrp_val_{min,max} and
12503 vrp_val_is_{min,max}.
12504 (set_and_canonicalize_value_range): Canonicalize anti-ranges
12505 to ranges if possible. Avoid empty ranges.
12507 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12509 PR middle-end/35705
12510 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
12511 the expression is a function address.
12513 2008-04-01 George Helffrich <george@gcc.gnu.org>
12515 PR fortran/35154, fortran/23057
12516 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
12517 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
12518 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
12519 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
12521 (dbxout_syms): Check for COMMON-based symbol and wrap in
12522 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
12523 in bracket for efficiency.
12525 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
12526 using DW_TAG_common_block + member offset.
12527 (add_pubname_string): New function.
12528 (dw_expand_expr): New function to find block name and offset for
12530 (common_check): New function to check whether symbol in Fortran COMMON.
12531 (gen_variable_die): If COMMON, use DW_TAG_common_block.
12533 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
12536 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
12538 2008-04-02 Ben Elliston <bje@au.ibm.com>
12540 * config/v850/v850.md (casesi): Remove if (0) code.
12541 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12542 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
12544 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
12546 * config/i386/i386.md (rex64suffix): New mode attribute.
12547 (floathi<mode>2): Disable expander for SSE math.
12548 (*floathi<mode>2_1): New insn insn_and_split pattern.
12549 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
12550 corresponding post-reload splitters.
12551 (*floathi<mode>2_i387): New macroized insn pattern.
12552 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
12553 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
12554 insn_and_split pattern.
12555 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
12556 New macroized instruction patterns and corresponding post-reload
12558 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
12559 and corresponding post-reload splitters.
12560 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
12561 New macroized instruction patterns.
12562 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
12563 macroized instruction patterns and corresponding post-reload splitters.
12564 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
12565 corresponding post-reload splitters.
12566 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
12567 New macroized instruction patterns.
12568 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
12569 corresponding post-reload splitters.
12570 (*floatsi<mode>2_i387): New macroized instruction patterns.
12572 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
12574 * config/i386/i386.md (smaxmin): New.
12575 (umaxmin): Likewise.
12576 (maxminiprefix): Likewise.
12577 (maxminfprefix): Likewise.
12578 (<code><mode>3): Likewise.
12579 (smin<mode>3): Removed.
12580 (smax<mode>3): Likewise.
12582 * config/i386/mmx.md (mmx_<code>v2sf3): New.
12583 (mmx_<code>v4hi3): Likewise.
12584 (mmx_<code>v8qi3): Likewise.
12585 (mmx_smaxv2sf3): Removed.
12586 (mmx_sminv2sf3): Likewise.
12587 (mmx_umaxv8qi3): Likewise.
12588 (mmx_smaxv4hi3): Likewise.
12589 (mmx_uminv8qi3): Likewise.
12590 (mmx_sminv4hi3): Likewise.
12592 * config/i386/sse.md (<addsub><mode>3): New.
12593 (*<addsub><mode>3): Likewise.
12594 (<sse>_vm<addsub><mode>3): Likewise.
12595 (<maxmin><mode>3): Likewise.
12596 (*<maxmin><mode>3_finite): Likewise.
12597 (*<maxmin><mode>3): Likewise.
12598 (<sse>_vm<maxmin><mode>3): Likewise.
12599 (sse3_h<addsub>v4sf3): Likewise.
12600 (sse3_h<addsub>v2df3): Likewise.
12601 (<maxmin>v16qi3): Likewise.
12602 (*<maxmin>v16qi3): Likewise.
12603 (<maxmin>v8hi3): Likewise.
12604 (*<maxmin>v8hi3): Likewise.
12605 (*sse4_1_<maxmin><mode>3): Likewise.
12606 (*sse4_1_<maxmin><mode>3): Likewise.
12607 (add<mode>3): Removed.
12608 (*add<mode>3): Likewise.
12609 (<sse>_vmadd<mode>3): Likewise.
12610 (sub<mode>3): Likewise.
12611 (*sub<mode>3): Likewise.
12612 (<sse>_vmsub<mode>3): Likewise.
12613 (smin<mode>3): Likewise.
12614 (*smin<mode>3_finite): Likewise.
12615 (*smin<mode>3): Likewise.
12616 (<sse>_vmsmin<mode>3): Likewise.
12617 (smax<mode>3): Likewise.
12618 (*smax<mode>3_finite): Likewise.
12619 (*smax<mode>3): Likewise.
12620 (<sse>_vmsmax<mode>3): Likewise.
12621 (sse3_haddv4sf3): Likewise.
12622 (sse3_haddv2df3): Likewise.
12623 (sse3_hsubv4sf3): Likewise.
12624 (sse3_hsubv2df3): Likewise.
12625 (umaxv16qi3): Likewise.
12626 (*umaxv16qi3): Likewise.
12627 (smaxv8hi3): Likewise.
12628 (*smaxv8hi3): Likewise.
12629 (*sse4_1_smax<mode>3): Likewise.
12630 (*sse4_1_umax<mode>3): Likewise.
12631 (uminv16qi3): Likewise.
12632 (*uminv16qi3): Likewise.
12633 (sminv8hi3): Likewise.
12634 (*sminv8hi3): Likewise.
12635 (*sse4_1_smin<mode>3): Likewise.
12636 (*sse4_1_umin<mode>3): Likewise.
12638 2008-04-01 Rafael Espindola <espindola@google.com>
12640 * tree-cfg.c (verify_expr): remove in_phi.
12641 (verify_stmt): Don't call walk_tree with verify_expr. Use
12642 is_gimple_min_invariant instead of is_gimple_val.
12644 2008-04-01 Joseph Myers <joseph@codesourcery.com>
12646 * doc/include/gpl_v3.texi: Update for manpage generation.
12647 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
12649 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
12650 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
12651 gpl_v3.texi instead of gpl.texi.
12654 2008-04-01 Jakub Jelinek <jakub@redhat.com>
12657 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
12659 2008-04-01 Rafael Espindola <espindola@google.com>
12661 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
12662 (extract_code_and_val_from_cond): Use
12663 extract_code_and_val_from_cond_with_ops.
12665 2008-04-01 Jan Hubicka <jh@suse.cz>
12667 * function.c (free_after_compilation): Free epilogue_delay_list.
12668 (prepare_function_start): Assert that previous compilation was freed.
12670 2008-04-01 Jan Hubicka <jh@suse.cz>
12671 Jim Wilson <wilson@tuliptree.org>
12672 Andreas Tobler <andreast@gcc.gnu.org>
12674 PR middle-end/35781
12675 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
12676 rtl.emit instead cfun->emit.
12677 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
12678 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
12680 2008-04-01 Ben Elliston <bje@au.ibm.com>
12682 * doc/c-tree.texi (Function Basics): Fix grammatical error.
12684 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
12686 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
12688 (fprofile-use): Add var flag_profile_use
12689 * coverage.c (coverage_begin_output): Do not open a gcno file for
12690 output only if -ftest-coverage is set.
12691 Do not add getpwd() to gcda file path.
12692 (build_gcov_info): Check the new flag
12693 flag_profile_datafile_relative_path.
12694 (coverage_init): Use profile_data_prefix.
12695 Read profile counter only if flag_profile_use is set.
12696 * opts.c (common_handle_option): New option fprofile-use=,
12697 fprofile-dir=, fprofile-generate=.
12698 * toplev.c (profile_data_prefix): New variable definition.
12699 * toplev.h (profile_data_prefix): New declaration.
12700 * doc/invoke.tex (Option Summary, Optimization Options):
12703 2008-03-31 James E. Wilson <wilson@tuliptree.org>
12705 * varasm.c (output_constant_pool_1): In LABEL_REF check,
12706 use tmp consistently.
12709 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
12710 * config/ia64/ia64.c (rtx_needs_barrier): Handle
12711 UNSPEC_FR_RECIP_APPROX_RES.
12712 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
12714 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
12717 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
12719 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
12721 PR middle-end/30186
12722 * fold-const.c (fold_indirect_ref_1): Support accessing non first
12723 element of the vector via a pointer.
12725 2008-03-31 Ian Lance Taylor <iant@google.com>
12727 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
12729 2008-03-31 Jan Hubicka <jh@suse.cz>
12731 * builtins.c (expand_builtin_setjmp_receiver): Update call of
12732 get_arg_pointer_save_area.
12733 * expr.c (init_expr): Just clear out rtl.expr.
12734 * function.c (free_after_compilation): Clear out whole RTL structure.
12735 (get_func_frame_size): Merge into ...
12736 (get_frame_size): ... this one.
12737 (assign_stack_local_1): Merge into ...
12738 (assign_stack_local): ... this one.
12739 (expand_function_end): Update call of get_arg_pointer_save_area.
12740 (get_art_pointer_save_area): Remove cfun argument.
12741 * function.h (emit_status): regno_pointer_align does not need length
12742 attribute. Move x_regno_reg_rtx to ...
12743 (regno_reg_rtx): ... new global array.
12744 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
12745 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
12746 apply_args_value, forced_labels, stack_pointer_delta):
12748 (struct varasm_status): Move here from varasm.c
12749 (struct rtl_data): New. Move here some fields from struct function.
12750 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12751 frame_offset, stack_check_probe_note, arg_pointer_save_area,
12752 used_temp_slots avail_temp_slots, temp_slot_level,
12753 nonlocal_goto_handler_labels): Update accesstors.
12754 (rtl): New global variable.
12755 (struct function): Move some fileds to rtl_data.
12756 (get_arg_pointer_save_area): Update prototype.
12757 * emit-rtl.c (rtl): Declare.
12758 (regno_reg_rtx): Declare.
12759 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12761 (gen_reg_rtx): Update.
12762 (init_virtual_regs): Do not tate emit_status argument.
12763 (init_emit): Do not allocate emit.
12764 * varasm.c (varasm_statuc): Move to function.h.
12765 (n_deferred_constatns): Update accestor.
12766 (init_varasm_status): Do not allocate varasm_status.
12767 (force_const_mem, get_pool_size, output_constant_pool): Update.
12768 * stmt.c (force_label_rtx): Do not use x_ prefixes.
12769 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12771 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
12773 PR rtl-optimization/35729
12774 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
12777 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
12780 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
12781 load/store if memory is unaligned.
12782 (*movti_rex64): Likewise.
12784 * config/i386/predicates.md (misaligned_operand): New.
12786 2008-03-31 Andrew Pinski <pinskia@gmail.com>
12789 * tree-ssa-phiopt.c (conditional_replacement): Return early for
12792 2008-03-31 Jan Beulich <jbeulich@novell.com>
12794 * config/ia64/constraints.md: Add 'j' constraint.
12795 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
12796 (movdi_internal): Likewise.
12798 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
12801 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
12803 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
12806 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
12807 proper error message for the third argument on blendpd and
12810 * config/i386/sse.md (blendbits): New.
12811 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
12813 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
12815 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
12817 2008-03-30 Richard Guenther <rguenther@suse.de>
12819 PR middle-end/31023
12820 * fold-const.c (fold_sign_changed_comparison): Do leave
12821 conversions to base-types alone.
12823 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
12825 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
12826 the link register if one altivec register is be saved.
12828 2008-03-30 Ben Elliston <bje@au.ibm.com>
12830 * final.c (final_scan_insn): Remove if (0) code.
12832 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
12834 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
12836 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
12838 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
12839 of V4SFmode to ix86_binary_operator_ok.
12841 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
12843 * config/i386/i386.c (override_options): Initialize
12844 ix86_veclib_handler to ix86_veclibabi_svml when
12845 -mveclibabi=svml is used.
12846 (ix86_veclibabi_svml): New function for SVML ABI style
12847 vectorization support.
12848 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
12850 2008-03-28 Rafael Espindola <espindola@google.com>
12852 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
12853 (tree_binary_nonnegative_warnv_p): Make it public.
12854 (tree_single_nonnegative_warnv_p): Make it public.
12855 (tree_invalid_nonnegative_warnv_p): Make it public.
12856 (tree_unary_nonzero_warnv_p): Make it public.
12857 (tree_binary_nonzero_warnv_p): Make it public
12858 (tree_single_nonzero_warnv_p): Make it public.
12859 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12860 (extract_range_from_binary_expr): Split the expr argument.
12861 (extract_range_from_unary_expr): Split the expr argument.
12862 (extract_range_from_comparison): Split the expr argument.
12863 (extract_range_from_expr): Use the new aux functions.
12864 (vrp_evaluate_conditional_warnv): Use
12865 vrp_evaluate_conditional_warnv_with_ops.
12866 * tree.h (tree_unary_nonzero_warnv_p): Declare.
12867 (tree_binary_nonzero_warnv_p): Declare.
12868 (tree_single_nonzero_warnv_p): Declare.
12869 (tree_expr_nonzero_warnv_p): Declare.
12870 (tree_unary_nonnegative_warnv_p): Declare.
12871 (tree_binary_nonnegative_warnv_p): Declare.
12872 (tree_single_nonnegative_warnv_p): Declare.
12873 (tree_invalid_nonnegative_warnv_p): Declare.
12875 2008-03-28 Richard Guenther <rguenther@suse.de>
12877 PR tree-optimization/30317
12878 PR tree-optimization/30911
12879 PR tree-optimization/34793
12880 * tree-vrp.c (set_and_canonicalize_value_range): New function.
12881 (struct assert_locus_d): New member EXPR.
12882 (register_new_assert_for): Add EXPR parameter to support
12883 ASSERT_EXPR <name, expr OP limit>.
12884 (register_edge_assert_for_1): Adjust callers.
12885 (find_assert_locations): Likewise.
12886 (process_assert_insertions_for): Build condition from expression.
12887 (extract_range_from_assert): Handle ASSERT_EXPRs
12888 of the form ASSERT_EXPR <name, expr OP limit>.
12889 (register_edge_assert_for_2): New helper registering
12890 asserts for comparisons. Recognize range tests of the form
12891 (unsigned)i - CST1 OP CST2.
12892 (register_edge_assert_for_1): Use it.
12893 (register_edge_assert_for): Likewise.
12894 (needs_overflow_infinity): Integer sub-types
12895 do not need overflow infinities.
12896 (vrp_val_is_max): The extreme values of integer sub-types
12897 are those of the base type.
12898 (vrp_val_is_min): Likewise.
12899 * tree.def (ASSERT_EXPR): Document extra allowed conditional
12902 2008-03-28 Nick Clifton <nickc@redhat.com>
12905 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
12906 Return GENERAL_REGS for stack adjustment reloads.
12908 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
12911 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12912 const_vector when all the vectors are constant.
12914 2008-03-27 Bob Wilson <bob.wilson@acm.org>
12916 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12918 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12919 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12921 (s<code>_sf): Use new scc_sf attribute for opcode names.
12923 2008-03-27 Tom Tromey <tromey@redhat.com>
12925 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12926 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12927 config/spu/t-spu-elf, config/i386/t-interix,
12928 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12929 config/i386/x-darwin, config/i386/x-mingw32,
12930 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12931 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12932 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12933 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12934 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12935 config/rs6000/x-darwin, config/rs6000/t-rs6000,
12936 config/score/t-score-elf, config/arm/t-strongarm-pe,
12937 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12938 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12939 Revert automatic dependency patch.
12941 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
12944 * config/i386/i386.c (ix86_function_arg_boundary): Align
12945 decimal floating point to its natural boundary.
12947 2008-03-27 Richard Guenther <rguenther@suse.de>
12949 PR middle-end/35716
12950 * fold-const.c (fold_comparison): Restrict distinct decl
12951 comparison folding to VAR_DECLs and PARM_DECLs. Do not
12952 solely rely on operand_equal_p.
12954 2008-03-27 Richard Guenther <rguenther@suse.de>
12957 * c-common.c (handle_weak_attribute): Reject combination of
12960 2008-03-27 Richard Guenther <rguenther@suse.de>
12962 PR tree-optimization/32810
12963 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12964 conversions from DECL_INITIAL.
12965 (fold_const_aggregate_ref): Likewise from constructor elements.
12967 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
12969 * tree-affine.h (aff_combination_expand): Declare.
12970 (get_inner_reference_aff): Likewise.
12971 * tree-affine.c (aff_combination_expand): Split out from
12972 tree_to_aff_combination_expand.
12973 (get_inner_reference_aff): New function.
12974 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12975 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12976 (struct lim_aux_data): sm_done field removed.
12977 (mem_ref_loc_p, mem_ref_locs_p): New types.
12978 (struct mem_ref): Added id, stored, accesses_in_loop,
12979 indep_loop, dep_loop, indep_ref, dep_ref fields.
12980 Removed is_stored, locs and next fields.
12981 (memory_accesses): New variable.
12982 (movement_possibility): Do not allow moving statements
12983 that store to memory.
12984 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12986 (determine_max_movement): For statements with memory references,
12987 find the outermost loop in that the reference is independent.
12988 (move_computations_stmt): Mark the virtual operands for renaming.
12989 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12990 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12991 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12992 add_vop_ref_mapping, create_vop_ref_mapping_loop,
12993 create_vop_ref_mapping, analyze_memory_references,
12994 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12995 get_all_locs_in_loop, ref_always_accessed_p,
12996 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12997 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12998 store_motion_loop, store_motion): New functions.
12999 (struct vop_to_refs_elt): New type.
13000 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
13001 memref_hash, memref_eq, hoist_memory_references): Rewritten.
13002 (schedule_sm): Replaced by...
13003 (execute_sm): ... this.
13004 (determine_lsm_ref, hoist_memory_references,
13005 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
13006 find_more_ref_vops, free_mem_ref, free_mem_refs,
13007 determine_lsm_loop, determine_lsm): Removed.
13008 (tree_ssa_lim_finalize): Free data structures used by store motion.
13009 (tree_ssa_lim): Call analyze_memory_references. Use
13010 store_motion instead of determine_lsm.
13012 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
13014 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
13015 rename tmake_file to m68hc11/t-m68hc11.
13016 (mcore): Set inhibit_libc to true.
13017 * config.host (alpha*-dec-*vms*): Set extra_programs.
13018 (interix3*): Don't use host_xmake_file.
13019 * configure.ac: Let config.gcc override inhibit_libc.
13020 * configure: Regenerate.
13022 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
13023 * config/t-openbsd-thread: Remove commented out lines.
13025 * config/x-interix: Remove.
13027 * config/m68hc11/t-m68hc11-gas: Rename to...
13028 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
13030 * config/mcore/t-mcore: Remove T_CFLAGS.
13031 * config/mcore/t-mcore-pe: Likewise.
13033 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
13035 * configure.ac: Replace custom __GNU_SOURCE test with
13036 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
13037 * aclocal.m4: Regenerate.
13038 * configure: Regenerate.
13039 * config.in: Regenerate.
13041 2008-03-27 Richard Guenther <rguenther@suse.de>
13043 * fold-const.c (target.h): Include.
13044 (fold_comparison): Fold comparison of addresses of decls
13045 that bind locally or of constants. Consolidate address folding code.
13046 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
13047 results from fold_binary_to_constant.
13048 (compare_values_warnv): Likewise.
13050 2008-03-27 Andrew Pinski <pinskia@gmail.com>
13052 PR middle-end/35429
13053 * fold-const.c (fold_truthop): Check for integeral types when folding
13054 a == 0 && b == 0 and a != 0 || b != 0 .
13056 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
13058 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
13060 2008-03-26 Andreas Schwab <schwab@suse.de>
13062 * doc/invoke.texi: Fix use of @item vs. @itemx.
13064 2008-03-26 Tom Tromey <tromey@redhat.com>
13066 * Makefile.in (build/gensupport.o, build/print-rtl.o,
13067 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
13068 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
13069 build/gencodes.o, build/genconditions.o, build/genconfig.o,
13070 build/genconstants.o, build/genemit.o, build/genextract.o,
13071 build/genflags.o, build/genmddeps.o, build/genopinit.o,
13072 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
13075 2008-03-26 Richard Guenther <rguenther@suse.de>
13078 2008-03-26 Richard Guenther <rguenther@suse.de>
13080 * fold-const.c (target.h): Include.
13081 (fold_comparison): Fold comparison of addresses of two decls
13082 that bind locally. Consolidate address folding code.
13084 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13086 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
13087 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
13088 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
13089 dconstsqrt2, dconstthird, dconste and/or dconst10.
13090 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
13091 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
13092 dconstsqrt2, dconste): Delete.
13093 (init_emit_once): Likewise. Simplify initializing dconstm1.
13095 * real.c (get_real_const): New.
13096 * real.h (dconst3, dconst10, dconstm2, dconstthird,
13097 dconstsqrt2, dconste): Delete.
13098 (real_value_const, get_real_const): New.
13100 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
13102 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
13104 * config/i386/i386.c (ix86_function_arg_boundary): Check
13105 BIGGEST_ALIGNMENT instead of 128.
13106 (setup_incoming_varargs_64): Likewise.
13108 2008-03-26 Tom Tromey <tromey@redhat.com>
13110 * Makefile.in (DEPFILES): Add missing '/'.
13112 2008-03-26 Richard Guenther <rguenther@suse.de>
13114 * fold-const.c (target.h): Include.
13115 (fold_comparison): Fold comparison of addresses of two decls
13116 that bind locally. Consolidate address folding code.
13118 2008-03-26 Nick Clifton <nickc@redhat.com>
13121 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
13122 not allow INT+INT as a legitimate addressing mode.
13124 2008-03-26 Richard Guenther <rguenther@suse.de>
13126 * tree-flow.h (widen_bitfield): Remove declaration.
13127 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
13128 (widen_bitfield): Remove function.
13129 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
13132 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13135 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
13138 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
13140 PR rtl-optimization/35232
13141 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
13142 (forget_old_reloads_1, forget_marked_reloads): Don't clear
13143 reg_reloaded_call_part_clobbered here.
13144 (reload_regs_reach_end_p): New function.
13145 (reload_reg_rtx_for_input): New variable.
13146 (reload_reg_rtx_for_output): Likewise.
13147 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
13148 when reassigning a pseudo register. Load reloadreg from
13149 reload_reg_rtx_for_input, moving the mode and register
13151 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
13152 instead of the original when deciding whether an input reload
13153 would be a no-op or whether an output reload can be deleted.
13154 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
13155 when setting up new_spill_reg_store. Load it from
13156 reload_reg_rtx_for_output, moving the mode and register
13158 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
13159 instead of the original when deciding whether an output reload
13160 would be a no-op. Do the same when modifying insn notes.
13161 Use rtx_equal_p instead of == to compare the registers.
13162 (inherit_piecemeal_p): Take a mode and two register numbers
13164 (emit_reload_insns): Clear new_spill_reg_store for every hard
13165 register in the reload register. Remove spill registers
13166 from reg_reloaded_valid before considering whether to record
13167 inheritance information for them. Use reload_reg_rtx_for_output
13168 instead of reg_rtx when recording output reloads. Use
13169 reload_reg_rtx_for_input instead of reg_rtx when recording
13170 input reloads. Set or clear reg_reloaded_call_part_clobbered
13171 at the same time as setting reg_reloaded_valid.
13172 (delete_output_reload): Add a new_reload_reg parameter and use it
13173 instead of rld[j].reg_rtx.
13174 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
13177 2008-03-25 Tom Tromey <tromey@redhat.com>
13179 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
13180 (build/genattr.o): Likewise.
13181 (build/genattrtab.o): Likewise.
13182 (build/gencodes.o): Likewise.
13183 (build/genconfig.o): Likewise.
13184 (build/genconstants.o): Likewise.
13185 (build/genemit.o): Likewise.
13186 (build/genextract.o): Likewise.
13187 (build/genflags.o): Likewise.
13189 2008-03-25 Bob Wilson <bob.wilson@acm.org>
13191 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
13192 instead of size_int for integer types.
13193 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
13194 to match type of MINUS_EXPR.
13196 2008-03-25 Tom Tromey <tromey@redhat.com>
13198 * configure: Rebuilt.
13199 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
13202 2008-03-25 Tom Tromey <tromey@redhat.com>
13204 * config/x-solaris (host-solaris.o): Update.
13205 * config/x-linux (host-linux.o): Update.
13206 * config/x-hpux (host-hpux.o): Update.
13207 * config/x-darwin (host-darwin.o): Update.
13208 * config/v850/t-v850e (v850-c.o): Update.
13209 * config/v850/t-v850 (v850-c.o): Update.
13210 * config/t-vxworks (vxworks.o): Update.
13211 * config/t-sol2 (sol2-c.o, sol2.o): Update.
13212 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
13213 * config/spu/t-spu-elf (spu-c.o): Update.
13215 * config/sh/t-symbian (sh-c.o): Update.
13216 (symbian.o): Update.
13217 * config/sh/t-sh (sh-c.o): Update.
13218 * config/score/t-score-elf (score7.o, score3.o): Update.
13219 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
13220 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
13221 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
13222 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
13223 (rs6000.o): Remove.
13224 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13225 * config/m32c/t-m32c (m32c-pragma.o): Update.
13226 * config/ia64/t-ia64 (ia64-c.o): Update.
13227 * config/i386/x-mingw32 (host-mingw32.o): Update.
13228 * config/i386/x-i386 (driver-i386.o): Update.
13229 * config/i386/x-darwin (host-i386-darwin.o): Update.
13230 * config/i386/x-cygwin (host-cygwin.o): Update.
13231 * config/i386/t-nwld (nwld.o): Update.
13232 * config/i386/t-netware (netware.o): Update.
13233 * config/i386/t-interix (winnt.o): Update.
13234 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
13235 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
13236 msformat-c.o): Update.
13237 * config/bfin/t-bfin-linux (generated_files): Add
13238 linux-sysroot-suffix.h.
13239 * config/arm/t-wince-pe (pe.o): Update.
13240 * config/arm/t-strongarm-pe (pe.o): Update.
13241 * config/arm/t-pe (pe.o): Update.
13242 * config/arm/t-arm (arm-c.o): Update.
13243 * doc/install.texi (Prerequisites): Require make 3.80.
13244 * Makefile.in: Remove .o targets.
13245 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
13246 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
13247 (simple_generated_h, simple_generated_c): Move earlier.
13248 (generated_files): New variable.
13249 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
13250 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
13251 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
13252 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
13253 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
13254 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
13255 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
13256 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
13257 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
13258 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
13259 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
13260 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
13262 (COMPILE.base, COMPILE): New variables.
13263 (%.o): New pattern rule.
13264 (ALL_HOST_OBJS): New variable.
13265 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
13266 (dummy-checksum.o, cc1-checksum.o): Remove.
13267 (DRIVER_SHLIB): New variable.
13268 (DRIVER_DEFINES): Use it.
13269 (gencondmd.c): Move out of build/.
13270 (s-conditions): Update.
13271 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
13272 (ALL_BUILD_OBJS): Likewise.
13273 (build/%.o): Use BUILDCOMPILE.
13274 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
13275 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
13276 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
13277 build/gencheck.o, build/gencodes.o, build/genconditions.o,
13278 build/genconfig.o, build/genconstants.o, build/genemit.o,
13279 build/genextract.o, build/genflags.o, build/genmddeps.o,
13280 build/genopinit.o, build/genoutput.o, build/genpeep.o,
13281 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
13282 build/gen-protos.o, build/scan.o, build/fix-header.o,
13283 build/scan-decls.o): Simplify.
13284 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
13285 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
13286 prefix.o, toplev.o): Reduce to variable setting.
13287 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
13288 ($(out_object_file), gcc-options.o): New targets.
13289 ($(ALL_HOST_OBJS)): New target. Include dependency files.
13290 * configure: Rebuilt.
13291 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
13292 * doc/sourcebuild.texi (Front End Directory): Document new variable.
13294 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
13296 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
13297 complain when we hit an error, return ERROR_MARK_NODE.
13299 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
13301 * config/sh/constraints.md (Pso, Psz): New constraints.
13302 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
13303 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
13305 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
13307 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
13308 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
13310 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
13312 * config/sh/sh.md (prefetch): Add condition for SH2A target.
13313 (prefetch_sh2a): New.
13315 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
13316 Naveen.H.S <naveen.hs@kpitcummins.com>
13318 * config/sh/constraints.md (I28): New constraint.
13319 * config/sh/sh.c (broken_move): Add support for movi20s.
13320 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
13322 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
13323 Jayant Sonar <Jayant.sonar@kpitcummins.com>
13324 Naveen.H.S <naveen.hs@kpitcummins.com>
13326 * config/sh/sh.c (SH_ATTRIBUTES): Define.
13327 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
13328 (print_operand): Handle resbank in %@ operand code.
13329 (sh_encode_section_info): New.
13330 (push_regs): Add conditions for resbank.
13331 (sh_expand_epilogue): Likewise.
13332 (sh_insert_attributes): Likewise.
13333 (sh_attribute_table): Likewise.
13334 (sh_handle_resbank_handler_attribute): New.
13335 (sh2a_handle_function_vector_handler_attribute): New.
13336 (sh2a_is_function_vector_call): New.
13337 (sh2a_get_function_vector_number): New.
13338 (sh2a_function_vector_p): New.
13339 (sh_cfun_resbank_handler_p): New.
13340 * config/sh/sh.md (calli): Emit jsr/n if possible.
13341 (calli_tbr_rel): New.
13342 (calli_pcrel): Emit jsr/n if possible.
13343 (return_i): Emit rts/n if possible.
13344 (call_valuei_tbr_rel): New.
13345 (call_valuei_pcrel): Add condition for SH2A target.
13346 (call_value): Likewise.
13347 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
13348 (sh2a_get_function_vector_number): Likewise.
13349 (sh2a_is_function_vector_call): Likewise.
13350 * doc/extend.texi: Document TBR relative addressing of SH2A.
13351 (resbank): Add description for SH2A.
13353 2008-03-24 Richard Guenther <rguenther@suse.de>
13356 * gimplify.c (gimplify_modify_expr): For frontend type-correct
13357 pointer assignments change conversions according to middle-end rules.
13358 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
13359 * configure.ac: Include type checking in yes.
13360 * configure: Regenerate.
13362 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13364 * diagnostic.c (diagnostic_count_diagnostic): Delete.
13365 (diagnostic_report_diagnostic): Update. Handle ICEs here.
13367 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
13369 * gthr-vxworks.h (UNUSED): Define.
13371 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
13373 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
13375 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
13377 * doc/extend.texi (Function Attributes): Add missing comma in the
13378 example of the "alloc_size" attribute.
13380 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
13383 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
13385 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13388 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
13391 * stor-layout.c (update_alignment_for_field): Set minimum alignment
13392 of the underlying type of a MS bitfield layout to the natural
13393 alignment of the type.
13395 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
13397 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13398 to their natural alignment to avoid store forwarding stalls.
13400 2008-03-22 Richard Guenther <rguenther@suse.de>
13402 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
13403 For PHI nodes verify the address is invariant.
13404 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
13405 (get_symbol_constant_value): Use is_gimple_min_invariant.
13406 (maybe_fold_stmt_indirect): Likewise.
13408 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
13410 PR rtl-optimization/33927
13411 * Makefile.in (dse.o): Depend on $(TM_P_H).
13412 * expr.h (extract_low_bits): Declare.
13413 * expmed.c (extract_low_bits): New function.
13414 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
13415 * dse.c: Include tm_p.h.
13416 (find_shift_sequence): Remove the read_reg argument and return the
13417 read value. Emit the instructions instead of returning them.
13418 Iterate on new_mode rather than calculating it each time.
13419 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
13420 source to NEW_MODE and extract_low_bits to convert the shifted
13421 value to READ_MODE.
13422 (replace_read): Allow the load and store to have different mode
13423 classes. Use extract_low_bits when SHIFT == 0. Create the shift
13424 or extraction instructions before trying the replacement. Update
13425 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
13427 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
13429 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13430 to their natural alignment to avoid store forwarding stalls.
13432 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
13435 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
13436 encouraging but not allowing gprs for input;
13437 change the input constraint to !f#r.
13438 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
13440 change the output constraint to !f#r.
13442 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
13445 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
13446 corresponding post-reload splitters.
13447 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
13448 when x87 FP math is selected.
13449 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
13450 New function prototype.
13451 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
13452 unreachable function to ease macroization of insn patterns.
13454 2008-03-21 Martin Jambor <mjambor@suse.cz>
13456 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
13457 reference dumps if ddr is NULL or dependence is unknown.
13459 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
13461 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
13462 unsigned extension into account.
13463 (ATOMIC_COMPARE_AND_SWAP): Likewise.
13464 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
13465 Do computations on a scratch register.
13467 2008-03-21 Richard Guenther <rguenther@suse.de>
13469 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
13470 Use is_gimple_min_invariant instead of TREE_INVARIANT.
13471 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13472 * tree-ssa-dom.c (record_equality): Likewise.
13473 * tree-inline.c (copy_body_r): Likewise.
13474 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
13477 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
13479 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
13480 as 'delete_unused' argument.
13482 2008-03-20 Richard Guenther <rguenther@suse.de>
13484 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
13485 special casing of constant qualifiers.
13486 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
13487 care about them in general.
13488 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
13489 regardless of their type.
13490 (fold_stmt_r): Forcefully fold *& if we end up with that.
13492 2008-03-20 Paul Brook <paul@codesourcery.com>
13494 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
13495 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
13497 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
13499 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
13500 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
13502 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
13504 * common.opt (Wmudflap): New option.
13505 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
13506 (mx_register_decls): Likewise.
13507 (mudflap_finish_file): Likewise.
13508 * doc/invoke.texi: Document -Wno-mudflap.
13510 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
13512 * c-format.c (replace_format_name_to_system_name): New.
13513 (cmp_attribs): New.
13514 (convert_format_name_to_system_name): New.
13515 (decode_format_attr): Add use of convert_format_name_to_system_name.
13516 (format_types_orig): Add gnu_ prefix to names.
13517 (check_format_info_main): Special treating of \0 escaped names for
13518 supporting multi-character format specifiers as I32, I64.
13519 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
13520 (gnu_target_overrides_format_attributes): New.
13521 * c-format.h: Add structure target_ovr_attr to hold
13522 system specific formatter names.
13523 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
13524 msformat-c.o file to c_target_objs and cxx_target_objs.
13525 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13526 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
13527 (TARGET_N_FORMAT_TYPES): New.
13528 * config/i386/msformat-c.c: New.
13529 * config/i386/t-cygming: Add build rule for msformat-c.o.
13530 * doc/extend.texi: Add new format names gnu_* and ms_* and
13532 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13534 2008-03-20 Ira Rosen <irar@il.ibm.com>
13536 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
13537 optimizations turned on under -O3.
13538 (ftree-vectorize): Add that the flag is turned on with -O3.
13540 2008-03-20 Ben Elliston <bje@au.ibm.com>
13542 * regmove.c (try_auto_increment): Fix spelling error in comment.
13543 * final.c (final_scan_insn): Likewise.
13545 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
13548 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
13549 allocator preferences for "y" and "r" class registers.
13550 ("*mov<mode>_internal"): Ditto.
13551 ("*movv2sf_internal_rex64"): Ditto.
13552 ("*movv2sf_internal"): Ditto.
13554 2008-03-19 Michael Matz <matz@suse.de>
13556 PR middle-end/35616
13557 * calls.c (expand_call): Check overlap of arguments with call
13558 address for sibcalls.
13560 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
13563 * stor-layout.c (update_alignment_for_field): Set minimum alignment
13564 of the underlying type of a MS bitfield layout to the natural
13565 alignment of the type.
13567 2008-03-19 Jan Hubicka <jh@suse.cz>
13570 * toplev.c (decode_d_option): Handle all CPP flags.
13571 * tree-vrp.c: Update tree_pass descriptors.
13572 * regrename.c: Update tree_pass descriptors.
13573 * fwprop.c: Update tree_pass descriptors.
13574 * doc/invoke.texi: Remove documentation of dropped -d? flags.
13575 * tree-into-ssa.c: Update tree_pass descriptors.
13576 * tree-dump.c: Update tree_pass descriptors.
13577 * tree-complex.c: Update tree_pass descriptors.
13578 * tree-dump.h: Update tree_pass descriptors.
13579 * see.c: Update tree_pass descriptors.
13580 * cgraphbuild.c: Update tree_pass descriptors.
13581 * tracer.c: Update tree_pass descriptors.
13582 * tree-loop-distribution.c: Update tree_pass descriptors.
13583 * cgraph.c: Update tree_pass descriptors.
13584 * postreload-gcse.c: Update tree_pass descriptors.
13585 * postreload.c: Update tree_pass descriptors.
13586 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
13587 * tree-tailcall.c: Update tree_pass descriptors.
13588 * tree-pass.h (tree_opt_pass): Rename to ...
13589 (opt_pass) ... this one; add "type" field and remove letter field.
13590 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
13591 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
13592 all_lowering_passes): Update declaration.
13593 * ipa-cp.c: Update tree_pass descriptors.
13594 * final.c: Update tree_pass descriptors.
13595 * omp-low.c: Update tree_pass descriptors.
13596 * tree-ssa-dse.c: Update tree_pass descriptors.
13597 * ipa-reference.c: Update tree_pass descriptors.
13598 * tree-ssa-uncprop.c: Update tree_pass descriptors.
13599 * auto-inc-dec.c: Update tree_pass descriptors.
13600 * reorg.c: Update tree_pass descriptors.
13601 * cgraphunit.c: Update tree_pass descriptors.
13602 * tree-ssa-copyrename.c: Update tree_pass descriptors.
13603 * tree-ssa-ccp.c: Update tree_pass descriptors.
13604 * df-core.c: Update tree_pass descriptors.
13605 * mode-switching.c: Update tree_pass descriptors.
13606 * tree-nomudflap.c: Update tree_pass descriptors.
13607 * modulo-sched.c: Update tree_pass descriptors.
13608 * ipa-pure-const.c: Update tree_pass descriptors.
13609 * cse.c: Update tree_pass descriptors.
13610 * web.c: Update tree_pass descriptors.
13611 * tree-stdarg.c: Update tree_pass descriptors.
13612 * tree-ssa-math-opts.c: Update tree_pass descriptors.
13613 * tree-ssa-dom.c: Update tree_pass descriptors.
13614 * tree-nrv.c: Update tree_pass descriptors.
13615 * tree-ssa-alias.c: Update tree_pass descriptors.
13616 * loop-init.c: Update tree_pass descriptors.
13617 * gimple-low.c: Update tree_pass descriptors.
13618 * ipa-inline.c: Update tree_pass descriptors.
13619 * tree-ssa-sink.c: Update tree_pass descriptors.
13620 * global.c: Update tree_pass descriptors.
13621 * ifcvt.c: Update tree_pass descriptors.
13622 * jump.c: Update tree_pass descriptors.
13623 * predict.c: Update tree_pass descriptors.
13624 * tree-ssa-loop.c: Update tree_pass descriptors.
13625 * recog.c: Update tree_pass descriptors.
13626 * dse.c: Update tree_pass descriptors.
13627 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
13628 * tree-eh.c: Update tree_pass descriptors.
13629 * regmove.c: Update tree_pass descriptors.
13631 * function.c: Update tree_pass descriptors.
13632 * tree-vectorizer.c: Update tree_pass descriptors.
13633 * gcse.c: Update tree_pass descriptors.
13634 * ipa-type-escape.c: Update tree_pass descriptors.
13635 * tree-if-conv.c: Update tree_pass descriptors.
13636 * init-regs.c: Update tree_pass descriptors.
13637 * ipa.c: Update tree_pass descriptors.
13638 * tree-ssa-phiopt.c: Update tree_pass descriptors.
13639 * rtl-factoring.c: Update tree_pass descriptors.
13640 * lower-subreg.c: Update tree_pass descriptors.
13641 * bt-load.c: Update tree_pass descriptors.
13642 * tree-dfa.c: Update tree_pass descriptors.
13643 * except.c: Update tree_pass descriptors.
13644 * emit-rtl.c: Update tree_pass descriptors.
13645 * cfgexpand.c: Update tree_pass descriptors.
13646 * tree-cfgcleanup.c: Update tree_pass descriptors.
13647 * cfgcleanup.c: Update tree_pass descriptors.
13648 * tree-ssa-pre.c: Update tree_pass descriptors.
13649 * tree-sra.c: Update tree_pass descriptors.
13650 * tree-mudflap.c: Update tree_pass descriptors.
13651 * tree-ssa-copy.c: Update tree_pass descriptors.
13652 * cfglayout.c: Update tree_pass descriptors.
13653 * tree-ssa-forwprop.c: Update tree_pass descriptors.
13654 * tree-ssa-dce.c: Update tree_pass descriptors.
13655 * tree-ssa.c: Update tree_pass descriptors.
13656 * regclass.c: Update tree_pass descriptors.
13657 * integrate.c: Update tree_pass descriptors.
13658 * tree-optimize.c: Update tree_pass descriptors.
13659 * tree-ssa-phiprop.c: Update tree_pass descriptors.
13660 * tree-object-size.c: Update tree_pass descriptors.
13661 * combine.c: Update tree_pass descriptors.
13662 * tree-outof-ssa.c: Update tree_pass descriptors.
13663 * bb-reorder.c: Update tree_pass descriptors.
13664 * stack-ptr-mod.c: Update tree_pass descriptors.
13665 * var-tracking.c: Update tree_pass descriptors.
13666 * tree-profile.c: Update tree_pass descriptors.
13667 * tree-vect-generic.c: Update tree_pass descriptors.
13668 * reg-stack.c: Update tree_pass descriptors.
13669 * sched-rgn.c: Update tree_pass descriptors.
13670 * tree-ssa-structalias.c: Update tree_pass descriptors.
13671 * tree-cfg.c: Update tree_pass descriptors.
13672 * passes.c (current_pass): Update declaration.
13673 (finish_optimization_passes): Update.
13674 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
13675 (register_one_dump_file, register_dump_files_1, next_pass_1):
13677 (init_optimization_passes): Update handling of new types.
13678 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
13679 * ipa-struct-reorg.c: Update tree_pass descriptors.
13680 * tree-ssa-reassoc.c: Update tree_pass descriptors.
13681 * combine-stack-adj.c: Update tree_pass descriptors.
13682 * cfgrtl.c: Update tree_pass descriptors.
13683 * dce.c: Update tree_pass descriptors.
13684 * tree-ssanames.c: Update tree_pass descriptors.
13686 2008-03-19 Richard Guenther <rguenther@suse.de>
13688 PR middle-end/35609
13689 * tree-ssa.c (walk_data): New structure.
13690 (warn_uninitialized_var): If not always_executed warn with "maybe"
13692 (execute_early_warn_uninitialized): Compute post-dominators.
13693 Initialize always_executed before processing each basic block.
13695 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
13698 * config/i386/i386.c (x86_this_parameter): Calculate correct location
13699 of "this" pointer when "regparm = N" or "fastcall" is in effect.
13701 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13703 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
13705 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
13707 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
13709 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
13710 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
13711 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
13712 target after ignore has been set, and move there also the commputation
13713 of subtarget and original_target.
13714 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
13715 (LANG_HOOKS_INITIALIZER): Remove it.
13716 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
13718 2008-03-18 Richard Guenther <rguenther@suse.de>
13720 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
13721 found an expression with constants, note that in the VN for the lhs.
13722 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
13723 fold them to constants if possible. Run cleanup_cfg if done so.
13724 (execute_pre): Return todo.
13725 (do_pre): Likewise.
13726 (execute_fre): Likewise.
13727 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
13729 (get_prop_source_stmt): Look through pointer conversions.
13731 2008-03-18 Jan Hubicka <jh@suse.cz>
13733 * tree-pretty-print.c: Include predict.h.
13734 (dump_generic_node): Dump predictor.
13735 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
13736 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
13737 * gimple-low.c (lower_stmt): Likewise.
13738 * expr.c (expand_expr_real): Likewise.
13739 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
13741 (build_predict_expr, build_predict_expr): New.
13742 * predict.h (predictor_name, build_predict_expr): Update.
13743 * c-typeck.c (c_finish_bc_stmt): Add prediction.
13744 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
13745 * predict.def (PRED_CONTINUE): Update hitrate.
13746 * tree.def (PREDICT_EXPR): Define.
13747 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
13748 do not handle BIND_EXPR.
13749 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
13750 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
13751 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
13754 2008-03-18 Michael Matz <matz@suse.de>
13756 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
13758 2008-03-18 Richard Guenther <rguenther@suse.de>
13760 * tree-gimple.h (is_gimple_invariant_address): Declare.
13761 (is_gimple_constant): Likewise.
13762 * tree-gimple.c (is_gimple_constant): New function.
13763 (is_gimple_invariant_address): Likewise.
13764 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
13765 and is_gimple_invariant_address.
13766 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
13768 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
13769 an addressable base.
13771 2008-03-18 Jakub Jelinek <jakub@redhat.com>
13773 PR middle-end/35611
13774 * gimplify.c (gimplify_expr): Gimplify second operand of
13777 2008-03-17 Richard Guenther <rguenther@suse.de>
13779 PR tree-optimization/19637
13780 * fold-const.c (fold_unary): Remove restrictions of removing
13781 intermediate pointer-conversions (P2)(P1)P0.
13782 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
13783 conversion to void pointer.
13784 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
13786 2008-03-16 James E. Wilson <wilson@tuliptree.org>
13789 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
13790 emulated thread local variables.
13792 2008-03-16 Richard Guenther <rguenther@suse.de>
13794 PR middle-end/35607
13795 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13796 expand TREE_INVARIANT operations that are not gimple invariant.
13798 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
13800 * doc/extend.texi (Alignment): Say that the ABI controls
13801 the __alignof__ for non-strict-alignment targets rather
13802 than being a recommendation.
13804 2008-03-15 Paul Brook <paul@codesourcery.com>
13806 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
13808 (arm_output_fn_unwind): Mark functions that can not be unwound.
13810 2008-03-15 Paul Brook <paul@codesourcery.com>
13812 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
13813 extension instructions.
13815 2008-03-15 Richard Guenther <rguenther@suse.de>
13817 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
13818 and fold constant aggregate refs.
13819 (fold_const_aggregate_ref): Handle string constants
13820 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
13821 (evaluate_stmt): Simplify now that ccp_fold folds constant
13824 2008-03-15 Paul Brook <paul@codesourcery.com>
13826 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
13827 (extzv): Use gen_extzv_t2.
13828 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
13830 2008-03-15 Richard Guenther <rguenther@suse.de>
13832 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
13833 (fold_const_aggregate_ref): Likewise.
13834 (get_value): Return NULL if we don't have any values.
13835 (ccp_finalize): Set const_val to NULL after freeing it.
13836 * tree-flow.h (get_symbol_constant_value): Declare.
13837 (fold_const_aggregate_ref): Likewise.
13838 * tree-ssa-sccvn.c (try_to_simplify): Use them.
13840 2008-03-15 Richard Guenther <rguenther@suse.de>
13842 PR middle-end/35593
13843 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
13844 to not produce negative array indices if not allowed. Add
13845 parameter to indicate that.
13846 (maybe_fold_offset_to_component_ref): Allow negative array
13847 indices only for the first member of a structure.
13848 (maybe_fold_offset_to_reference): Allow negative array indices.
13849 (maybe_fold_stmt_addition): Likewise.
13851 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
13852 Anatoly Sokolov <aesok@post.ru>
13854 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
13855 (avr_arch): Add ARCH_AVR6.
13856 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
13857 (initial_elimination_offset): Initialize and use 'avr_pc_size'
13858 instead of fixed value 2.
13859 (print_operand_address): Use gs() asm specifier instead of pm().
13860 (avr_assemble_integer): (Ditto.).
13861 (avr_output_addr_vec_elt): (Ditto.).
13862 (print_operand): Handle "!" code.
13863 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
13864 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13865 (AVR_HAVE_EIJMP_EICALL): Define.
13866 (AVR_3_BYTE_PC): Redefine.
13867 (AVR_2_BYTE_PC): (Ditto.).
13868 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13869 (LINK_SPEC): Add atmega2560 and atmega2561.
13870 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
13872 * config/avr/avr.md (call_insn): Use eicall instead of icall
13873 for 3 byte PC devices.
13874 (call_value_insn): (Ditto.).
13875 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13876 (indirect_jump): Use only for for 2 byte PC devices.
13877 (*tablejump): (Ditto.).
13878 (*indirect_jump_avr6): Add insn.
13879 (*tablejump_rjmp): Don't use for 3 byte PC devices.
13880 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
13881 instead of ijmp for 3 byte PC devices.
13882 (__tablejump2__): (Ditto.).
13883 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
13884 (MULITLIB_DIRNAMES): (Ditto.).
13885 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13887 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
13889 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13890 "sse2_umulsidi3". Use V1DI mode for operand 0.
13891 ("mmx_psadbw"): Use V1DI mode for operand 0.
13892 * config/i386/i386-modes.def (V1SI): New vector mode.
13893 * config/i386/i386.c (struct builtin_description)
13894 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13895 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13896 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13897 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13898 v1di_ftype_v8qi_v8qi type.
13899 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13901 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13902 __builtin_ia32_pmuludq]: Fix the mode of return value.
13904 2008-03-15 Richard Guenther <rguenther@suse.de>
13906 PR middle-end/35595
13907 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13910 2008-03-14 Bob Wilson <bob.wilson@acm.org>
13912 * doc/invoke.texi (Option Summary, Xtensa Options): Document
13913 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13914 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13915 unless TARGET_SERIALIZE_VOLATILE is enabled.
13916 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13917 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13918 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13920 2008-03-14 Richard Guenther <rguenther@suse.de>
13922 PR tree-optimization/34172
13923 * tree-flow.h (refs_may_alias_p): Declare.
13924 (get_single_def_stmt): Likewise.
13925 (get_single_def_stmt_from_phi): Likewise.
13926 (get_single_def_stmt_with_phi): Likewise.
13927 * tree-dfa.c (refs_may_alias_p): New function.
13928 (get_single_def_stmt): Likewise.
13929 (get_single_def_stmt_from_phi): Likewise.
13930 (get_single_def_stmt_with_phi): Likewise.
13931 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13932 (vn_reference_lookup_1): New helper function.
13933 (vn_reference_lookup): Walk the virtual use-def chain to
13934 continue searching for a match if the def does not alias the
13935 reference we are looking for.
13937 2008-03-14 David Edelsohn <edelsohn@gnu.org>
13939 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
13940 archive and Perzl. Update The Written Word listing.
13942 2008-03-14 Richard Guenther <rguenther@suse.de>
13944 PR tree-optimization/34043
13945 PR tree-optimization/33989
13946 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13948 (bitmap_find_leader): Use extra argument to verify dominance
13949 relationship inside a basic-block.
13950 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13951 (find_leader_in_sets): Adjust.
13952 (create_component_ref_by_pieces): Take extra argument for
13953 dominance check, handle lookup failures.
13954 (find_or_generate_expression): Likewise.
13955 (create_expression_by_pieces): Likewise.
13956 (insert_into_preds_of_block): Adjust.
13957 (create_value_expr_from): If asked for, verify all operands
13958 are in the blocks AVAIL_OUT set.
13959 (make_values_for_stmt): Check for SSA_NAMEs that are life
13960 over an abnormal edge.
13961 (compute_avail): Remove such check.
13962 (do_SCCVN_insertion): New function.
13963 (eliminate): If we do not find a leader suitable for replacement
13964 insert a replacement expression from SCCVN if available.
13965 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13966 (struct vn_ssa_aux): Add needs_insertion flag.
13967 * tree-ssa-sccvn.c (may_insert): New global flag.
13968 (copy_reference_ops_from_ref): Value-number union member access
13969 based on its size, not type and member if insertion is allowed.
13970 (visit_reference_op_load): For a weak match from union type
13971 punning lookup a view-converted value and insert a SSA_NAME
13972 for that value if that is not found.
13973 (visit_use): Make dumps shorter. Do not disallow value numbering
13974 SSA_NAMEs that are life over an abnormal edge to constants.
13975 (free_scc_vn): Release inserted SSA_NAMEs.
13976 (run_scc_vn): New flag to specify whether insertion is allowed.
13977 Process SSA_NAMEs in forward order.
13978 * tree-ssa-loop-im.c (for_each_index): Handle invariant
13979 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13980 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13981 pointer type to/from integral types that do not change the
13982 precision to regular conversions.
13984 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13986 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13987 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13988 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13989 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13990 input arguments and the mode of return value. Built-in functions
13991 that operate on whole 64-bit MMX register now use V1DI mode.
13993 2008-03-13 Alon Dayan <alond@il.ibm.com>
13994 Olga Golovanevsky <olga@il.ibm.com>
13996 PR tree-optimization/35041
13997 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13998 to locate the right position in a statement.
14000 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
14004 * config/i386/xmmintrin.h: Change all static inline functions to
14005 extern inline and add __gnu_inline__ attribute.
14006 * config/i386/bmintrin.h: Ditto.
14007 * config/i386/smmintrin.h: Ditto.
14008 * config/i386/tmmintrin.h: Ditto.
14009 * config/i386/mmintrin-common.h: Ditto.
14010 * config/i386/ammintrin.h: Ditto.
14011 * config/i386/emmintrin.h: Ditto.
14012 * config/i386/pmmintrin.h: Ditto.
14013 * config/i386/mmintrin.h: Ditto.
14014 * config/i386/mm3dnow.h: Ditto.
14016 2008-03-13 Jakub Jelinek <jakub@redhat.com>
14018 PR middle-end/35185
14019 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
14020 (lower_omp_2): New function.
14021 (lower_omp_1, lower_omp): Rewritten.
14023 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
14026 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
14027 with the phrase "Microsoft Windows compilers".
14028 (Push/Pop Macro Pragmas): New subsection. Document
14029 #pragma push_macro and pragma pop_macro.
14031 2008-03-12 Paul Brook <paul@codesourcery.com>
14033 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
14035 2008-03-12 Paul Brook <paul@codesourcery.com>
14037 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
14038 (thumb2_alusi3_short): Exclude PLUS and MINUS.
14039 (thumb2_addsi_shortim): Rename ...
14040 (thumb2_addsi_short): ... to this. Allow register operands.
14041 (thumb2_subsi_short): New pattern.
14042 (thumb2_one_cmplsi2_short,
14043 thumb2_negsi2_short): New patterns and peepholes.
14045 2008-03-12 Paul Brook <paul@codesourcery.com>
14047 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
14049 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
14051 * config/i386/i386.md (int_cond): New code iterator.
14053 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
14054 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
14055 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
14056 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
14057 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
14058 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
14059 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
14060 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
14062 2008-03-12 Paul Brook <paul@codesourcery.com>
14064 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
14065 instead of {arm,thumb}_compute_save_reg_mask.
14066 (output_return_instruction): Ditto.
14067 (thumb_unexpanded_epilogue): Ditto.
14068 (thumb1_expand_prologue): Ditto.
14069 (thumb1_output_function_prologue): Ditto.
14070 (arm_set_return_address): Ditto.
14071 (thumb_set_return_address): Ditto.
14072 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
14073 regs to achieve stack alignment.
14074 (thumb1_compute_save_reg_mask): Fix compiler warning.
14075 (arm_output_epilogue): Use offsets->saved_regs_mask.
14076 Adjust stack pointer by poping call clobered registers.
14077 (arm_expand_prologue): Use offsets->saved_regs_mask.
14078 Adjust stack pointer by pushing extra registers.
14079 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
14081 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
14084 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
14085 conversion to the operands of a multiplication.
14087 2008-03-12 Richard Guenther <rguenther@suse.de>
14089 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
14090 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
14091 * timevar.def (TV_TREE_PHIPROP): Add.
14092 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
14093 pass description. Use TV_TREE_PHIPROP.
14094 * tree-ssa-forwprop.c: Remove phiprop code.
14096 2008-03-12 Jakub Jelinek <jakub@redhat.com>
14098 PR middle-end/35549
14099 * omp-low.c (maybe_lookup_decl): Constify first argument.
14100 (use_pointer_for_field): Change last argument from bool to
14101 omp_context *. Disallow shared copy-in/out in nested
14102 parallel if decl is shared in outer parallel too.
14103 (build_outer_var_ref, scan_sharing_clauses,
14104 lower_rec_input_clauses, lower_copyprivate_clauses,
14105 lower_send_clauses, lower_send_shared_vars): Adjust callers.
14107 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
14108 Ira Rosen <irar@il.ibm.com>
14110 * tree-vectorizer.c (free_stmt_vec_info): New function.
14111 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
14112 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
14113 * tree-vectorizer.h (free_stmt_vec_info): Declare.
14114 * tree-vect-transform.c (vectorizable_conversion): Free
14115 vec_oprnds0 if it was allocated.
14116 (vect_permute_store_chain): Remove unused VECs.
14117 (vectorizable_store): Free VECs that are allocated in the..
14119 (vect_transform_strided_load, vectorizable_load): Likewise.
14120 (vect_remove_stores): Simplify the code.
14121 (vect_transform_loop): Move code to vect_remove_stores().
14122 Call vect_remove_stores() and free_stmt_vec_info().
14124 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14126 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
14127 TARGET_HPUX. Revise comment.
14128 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
14129 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
14130 Use sr4 variant of `be' instruction when not generating PIC code.
14131 (attr_length_call): Adjust for above change.
14133 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
14135 * ipa-reference.c (static_execute): Remove module_statics_const and
14136 associated setting code.
14138 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
14141 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
14142 predicate for operand 1.
14143 (paritysi2_cmp): Use register_operand predicate for operand 2.
14144 Use earlyclobber modifier for operand 1. Remove support for
14146 (paritydi2_cmp): Use register_operand predicate for operand 3.
14147 Use earlyclobber modifier for operand 1. Remove support for
14150 2008-03-11 Paul Brook <paul@codesourcery.com>
14151 Vladimir Prus <vladimir@codesourcery.com>
14153 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
14154 (arm_compute_save_reg0_reg12_mask): Always
14155 check if register 11 must be saved. Always safe hard frame pointer
14156 when frame_pointer_needeed.
14157 (arm_compute_save_reg_mask): Save IP and PC
14158 only with apcs frames.
14159 (arm_output_epilogue): Adjust Thumb2 codepath to
14160 be also invoked and work for ARM non-apcs frames.
14161 (arm_expand_prologue): Don't bother saving IP
14162 for non-apcs frame, since it's not clobbered by
14163 prologue code. Implement non-apcs frame
14166 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
14168 PR rtl-optimization/35281
14169 * expr.c (convert_move): Use a new pseudo for the intermediate
14170 from_mode->word_mode result.
14172 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
14174 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
14175 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
14176 * toplev.c (compile_file): Don't call it.
14178 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
14180 PR middle-end/35526
14181 * expr.c (store_expr): Call emit_block_move if the mode
14182 of "temp" RTX is BLKmode.
14184 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
14185 Richard Guenther <rguenther@suse.de>
14187 PR tree-optimization/31358
14188 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
14189 the step with a NULL_TREE.
14190 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
14191 to sizetype if type is a pointer type.
14192 (add_candidate_1): Don't convert the base and step to
14193 the generic type if the orginal type is a pointer type.
14194 (add_iv_value_candidates): Use sizetype for the step
14195 if type is a pointer type.
14196 (cand_value_at): Likewise.
14197 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
14199 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
14200 Don't convert the tem affine to the type.
14201 (add_elt_to_tree): Use sizetype for the step if a pointer.
14202 Use POINTER_PLUS_EXPR for pointers.
14203 (aff_combination_to_tree): Use sizetype for the step if a
14206 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
14208 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
14209 Remove commutativity hint.
14211 2008-03-10 Jakub Jelinek <jakub@redhat.com>
14215 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
14216 errorneous type. Check that v is a VAR_DECL.
14218 PR middle-end/35099
14219 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
14221 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
14223 PR tree-optimization/35494
14224 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
14225 may be overriden at link and run time.
14227 2008-03-10 Richard Guenther <rguenther@suse.de>
14229 PR tree-optimization/34677
14230 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
14231 (poolify_tree): Likewise.
14232 (modify_expr_template): Likewise.
14233 (poolify_modify_stmt): Likewise.
14234 (insert_fake_stores): Handle all component-ref style stores
14235 in addition to INDIRECT_REF. Also handle complex types.
14236 Do not poolify the inserted load.
14237 (realify_fake_stores): Do not rebuild the tree but only
14238 make it a SSA_NAME copy.
14239 (init_pre): Remove initialzation of modify_expr_template.
14240 Do not allocate modify_expr_node_pool.
14241 (fini_pre): Do not free modify_expr_node_pool.
14243 2008-03-10 Paul Brook <paul@codesourcery.com>
14245 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
14246 to avoid conflicts.
14248 2008-03-10 Paul Brook <paul@codesourcery.com>
14249 Mark Shinwell <shinwell@codesourcery.com>
14251 * config/arm/cortex-r4.md: New.
14252 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
14254 * config/arm/arm.md: Include cortex-r4.md.
14255 (insn): Add smmls, sdiv and udiv values.
14256 (generic_sched): Don't use generic scheduling for Cortex-R4.
14257 (arm_issue_rate): New function.
14258 (TARGET_SCHED_ISSUE_RATE): Define.
14260 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
14262 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
14264 2008-03-10 Richard Guenther <rguenther@suse.de>
14266 * tree-ssa-pre.c (get_sccvn_value): Simplify.
14267 (compute_avail): Do not add stmt uses to AVAIL_OUT.
14269 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
14271 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
14272 Set default to true.
14274 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14276 * c.opt (Wsynth): Deprecate.
14277 * doc/invoke.texi (Option Summary, Warning Options): Document
14278 -Wno-format-contains-nul.
14280 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
14283 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
14284 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
14286 2008-03-09 Ira Rosen <irar@il.ibm.com>
14288 * config/rs6000/rs6000.c (builtin_description): Rename vector
14289 left shift operations.
14290 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
14291 (altivec_vsl<VI_char>): Rename to ...
14292 (ashl<mode>3): ... new name.
14293 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
14295 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
14297 2008-03-08 Richard Guenther <rguenther@suse.de>
14299 * coverage.h (tree_coverage_counter_addr): Declare.
14300 * coverage.c (tree_coverage_counter_addr): New function.
14301 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
14302 before using again.
14303 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
14304 (tree_gen_one_value_profiler): Likewise.
14305 (tree_gen_ic_profiler): Likewise.
14306 (tree_gen_average_profiler): Likewise.
14307 (tree_gen_ior_profiler): Likewise.
14309 2008-03-08 Richard Guenther <rguenther@suse.de>
14311 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
14312 (vn_binary_op_insert): Likewise.
14313 (vn_unary_op_lookup): Likewise.
14314 (vn_unary_op_insert): Likewise.
14315 (vn_nary_op_lookup): Declare.
14316 (vn_nary_op_insert): Likewise.
14317 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
14318 and binary hashes, use a single obstack for unary_op_pool
14319 and binary_op_pool.
14320 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
14321 a single struct vn_nary_op_s. Store tree code length and
14322 a variable number of operands.
14323 (struct vn_reference_op_struct): Remove unused op2.
14324 (vn_reference_op_eq): Do not compare op2.
14325 (vn_reference_op_compute_hash): Do not compute hash of op2.
14326 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
14327 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
14328 with vn_nary_op_compute_hash.
14329 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
14330 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
14332 (vn_unary_op_insert, vn_binary_op_insert): Replace with
14334 (visit_unary_op): Call nary functions.
14335 (visit_binary_op): Likewise.
14336 (process_scc): Adjust for struct vn_tables_s changes.
14337 (allocate_vn_table): Likewise.
14338 (free_vn_table): Likewise.
14339 * tree-vn.c (vn_add): Call nary functions.
14340 (vn_lookup): Likewise.
14342 2008-03-08 Jakub Jelinek <jakub@redhat.com>
14345 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
14346 wdst back after sync_compare_and_swapqhi_internal.
14348 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
14351 * config/i386/i386-modes.def (V1DI): New vector mode.
14352 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
14353 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
14354 (MMXMODE248): Ditto.
14355 (MMXMODE): Add V1DI mode.
14356 (mmxvecsize): Change DI mode to V1DI mode.
14357 ("mov<mode>): Use MMXMODEI8 mode iterator.
14358 ("*mov<mode>_internal_rex64"): Ditto.
14359 ("*mov<mode>_internal"): Ditto.
14360 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
14361 ("mmx_sub<mode>3"): Ditto.
14362 ("mmx_adddi3"): Remove insn pattern.
14363 ("mmx_subdi3"): Ditto.
14364 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
14365 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
14366 ("mmx_ashl<mode>3"): Ditto.
14367 ("mmx_lshrdi3"): Remove insn pattern.
14368 ("mmx_ashldi3"): Ditto.
14369 * config/i386/i386.c (classify_argument): Handle V1DImode.
14370 (function_arg_advance_32): Ditto.
14371 (function_arg_32): Ditto.
14372 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
14373 mmx_addv1di3 insn pattern.
14374 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
14375 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
14376 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
14377 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
14378 Remove definitions of built-in functions.
14379 (V1DI_type_node): New node.
14380 (v1di_ftype_v1di_int): Ditto.
14381 (v1di_ftype_v1di_v1di): Ditto.
14382 (v2si_ftype_v2si_si): Ditto.
14383 (v4hi_ftype_v4hi_di): Remove node.
14384 (v2si_ftype_v2si_di): Ditto.
14385 (ix86_init_mmx_sse_builtins): Handle V1DImode.
14386 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
14387 Redefine builtins using def_builtin_const with *_ftype_*_int node.
14388 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
14389 Add new builtins using def_builtin_const.
14390 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
14391 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
14392 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
14393 * config/i386/mmintrin.h (__v1di): New typedef.
14394 (_mm_add_si64): Cast arguments to __v1di type.
14395 (_mm_sub_si64): Ditto.
14396 (_mm_sll_pi16): Cast __count to __v4hi type.
14397 (_mm_sll_pi32): Cast __count to __v2si type.
14398 (_mm_sll_si64): Cast arguments to __v1di type.
14399 (_mm_srl_pi16): Cast __count to __v4hi type.
14400 (_mm_srl_pi32): Cast __count to __v2si type.
14401 (_mm_srl_si64): Cast arguments to __v1di type.
14402 (_mm_sra_pi16): Cast __count to __v4hi type.
14403 (_mm_sra_pi32): Cast __count to __v2si type.
14404 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
14405 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
14406 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
14407 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
14408 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
14409 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
14410 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
14411 (_mm_srai_pi32): Use __builtin_ia32_psradi.
14412 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
14413 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
14414 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
14415 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
14417 2008-03-07 Joseph Myers <joseph@codesourcery.com>
14419 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
14421 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
14424 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
14425 reg+const addressing for Altivec modes. Don't generate reg+reg
14426 addressing for TFmode or TDmode quantities.
14428 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
14430 * c-common.c (vector_types_convertible_p): Call langhook
14431 instead of comptypes.
14433 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
14436 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
14437 integral and scalar float variables which have a
14440 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
14442 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
14443 dwarf_register_span hook when emitting unwind information for
14444 register-to-memory saves.
14445 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
14446 (rs6000_frame_related): Remove call to spe_synthesize_frame.
14448 2008-03-06 Jakub Jelinek <jakub@redhat.com>
14450 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
14451 for the same VAR_DECL.
14453 2008-03-06 Tom Tromey <tromey@redhat.com>
14455 * treelang: Delete.
14456 * doc/standards.texi (Standards): Don't mention treelang.
14457 * doc/invoke.texi (Overall Options): Don't mention treelang.
14458 * doc/install.texi (Prerequisites): Don't mention bison or
14460 (Configuration): Don't mention treelang.
14461 (Building): Likewise.
14462 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
14464 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
14466 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
14467 word-extractions out of a multi-word object.
14469 2008-03-06 Richard Guenther <rguenther@suse.de>
14471 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
14472 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
14473 result type and precision.
14474 * expr.c (get_inner_reference): Set unsignedp based on the result
14475 type of BIT_FIELD_REF.
14476 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
14477 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
14478 (try_instantiate_multiple_fields): Likewise. Use the correct type
14480 (sra_build_assignment): Likewise.
14481 (sra_build_elt_assignment): Likewise.
14482 (sra_explode_bitfield_assignment): Likewise.
14483 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
14484 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
14485 set BIT_FIELD_REF_UNSIGNED.
14486 (vectorizable_load): Likewise.
14488 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
14490 * cse.c (cse_extended_basic_block): Invalidate artificial defs
14493 2008-03-06 Richard Guenther <rguenther@suse.de>
14495 * alias.c (struct alias_set_entry): Move has_zero_child field
14496 to pack with alias_set.
14498 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
14500 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14503 2008-03-05 Ian Lance Taylor <iant@google.com>
14505 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
14507 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
14509 * fwprop.c (update_df): Support width and offset parameters of
14511 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
14512 global_conflicts): Change DF_REF_EXTRACT to either
14513 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
14514 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14515 * df-scan.c (df_ref_record, df_defs_record,
14516 df_ref_create_structure, df_def_record_1, df_uses_record,
14517 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
14518 df_bb_refs_collect, df_entry_block_defs_collect,
14519 df_exit_block_uses_collect): Support new width and offset fields.
14520 (ref_extract_pool): New storage pool.
14521 (df_free_ref): New function.
14522 (df_reg_chain_unlink, df_free_collection_rec,
14523 df_sort_and_compress_refs): Call df_free_ref.
14524 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
14526 (df_ref_create_structure): Allocate df_ref_extract if offset and
14527 width fields are used.
14528 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
14529 (df_uses_record): Get offset and width from ZERO_EXTRACT
14531 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
14532 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
14533 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14534 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
14535 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
14536 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14537 (df_ref_extract): New structure.
14538 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
14539 (df_ref_create): Add width and offset parameters.
14541 2008-03-05 Richard Guenther <rguenther@suse.de>
14543 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14544 Use ranges_overlap_p.
14545 (offset_overlaps_with_access): Rename
14546 to ranges_overlap_p and move ...
14547 * tree-flow-inline.h (ranges_overlap_p): ... here.
14549 * tree.h (get_inner_reference, handled_component_p): Update
14552 * tree.h (record_component_aliases, get_alias_set,
14553 alias_sets_conflict_p, alias_sets_must_conflict_p,
14554 objects_must_conflict_p): Move declarations ...
14555 * alias.h (record_component_aliases, get_alias_set,
14556 alias_sets_conflict_p, alias_sets_must_conflict_p,
14557 objects_must_conflict_p): ... here.
14558 Include coretypes.h.
14559 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
14561 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
14563 * cfg.c: Include tree-flow.h.
14564 (remove_edge_raw): Call redirect_edge_var_map_clear.
14565 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
14566 * tree-flow-inline.h (redirect_edge_var_map_def): New.
14567 (redirect_edge_var_map_result): New.
14568 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
14569 PENDING_STMT use with redirect_edge_var_map_*.
14570 * tree-ssa.c (edge_var_maps): New definition.
14571 (redirect_edge_var_map_add): New.
14572 (redirect_edge_var_map_clear): New.
14573 (redirect_edge_var_map_dup): New.
14574 (redirect_edge_var_map_vector): New.
14575 (redirect_edge_var_map_destroy): New.
14576 (ssa_redirect_edge): Replace PENDING_STMT use with
14577 redirect_edge_var_map_*.
14578 (flush_pending_stmts): Same.
14579 (delete_tree_ssa): Destroy edge var map.
14580 * tree-flow.h (struct _edge_var_map): New.
14581 Define edge_var_map vector type.
14582 Declare redirect_edge_var_map_* prototypes.
14583 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
14584 * tree-cfg.c (reinstall_phi_args): Replace
14585 PENDING_STMT use with redirect_edge_var_map_*.
14587 2008-03-05 Richard Guenther <rguenther@suse.de>
14589 PR tree-optimization/35472
14590 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
14591 whose single use_stmt has a overlapping set of loaded and
14592 stored symbols as that use_stmt might be a noop assignment then.
14594 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
14596 * gthr-rtems.h: Implement __gthread_mutex_destroy.
14598 2008-03-05 Richard Guenther <rguenther@suse.de>
14601 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
14602 should be constants.
14603 * tree-cfg.c (verify_expr): Verify it.
14604 * fold-const.c (fold_truthop): Remove code generating
14605 BIT_FIELD_REFs of structure bases.
14606 (fold_binary): Likewise.
14607 (fold_ternary): Position and size of BIT_FIELD_REFs are
14608 always host integers.
14609 (make_bit_field_ref): Remove.
14610 (optimize_bit_field_compare): Remove.
14611 (all_ones_mask_p): Remove.
14613 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
14616 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
14617 (split_block_and_df_analyze): New. Split basic block and rebuild
14619 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
14621 (split_pattern_seq): Likewise.
14622 (erase_matching_seqs): Likewise.
14623 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
14625 2008-03-04 Geoff Keating <geoffk@apple.com>
14627 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
14628 declaration and code.
14629 (tree_invalid_nonnegative_warnv_p): Likewise.
14631 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
14633 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
14634 examples. Truncate option-names then causing overfull hbox.
14636 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14639 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
14641 * configure: Rebuilt.
14643 2008-03-04 Rafael Espindola <espindola@google.com>
14645 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
14646 (tree_unary_nonnegative_warnv_p): New.
14647 (tree_binary_nonnegative_warnv_p): New.
14648 (tree_single_nonnegative_warnv_p): New.
14649 (tree_invalid_nonnegative_warnv_p): New.
14650 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
14652 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14655 * opts.c (handle_option): Postpone 'unknown option' errors only for
14658 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
14661 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
14664 2008-03-04 Rafael Espindola <espindola@google.com>
14666 * fold-const.c (tree_unary_nonzero_warnv_p): New.
14667 (tree_binary_nonzero_warnv_p): New.
14668 (tree_single_nonzero_warnv_p): New.
14669 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
14671 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
14673 PR middle-end/35456
14674 * fold-const.c (fold_cond_expr_with_comparison): Prevent
14675 transformations for modes that have signed zeros.
14676 * ifcvt.c (noce_try_abs): Ditto.
14678 2008-03-04 Joseph Myers <joseph@codesourcery.com>
14680 * config/i386/i386.c (override_options): Force
14681 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
14683 2008-03-04 Jan Hubicka <jh@suse.cz>
14686 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
14689 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14691 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
14692 label to probe the stack.
14694 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14696 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
14697 (__gthr_win32_mutex_destroy): Declare.
14698 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
14699 __gthr_win32_mutex_destroy.
14700 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
14702 2008-03-03 Jan Hubicka <jh@suse.cz>
14705 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
14706 aggressive on inlining cold calls.
14708 2008-03-03 Richard Guenther <rguenther@suse.de>
14710 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
14711 struct copies into the expression table.
14712 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
14713 (try_to_simplify): Likewise.
14714 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
14715 integral and pointer arguments which do not change the
14716 precision to NOP_EXPRs.
14717 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
14718 VIEW_CONVERT_EXPR case.
14720 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
14722 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
14723 defined in a loop at depth 0 is invariant.
14724 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14725 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
14726 be called at loop depth 0.
14728 2008-03-02 Jakub Jelinek <jakub@redhat.com>
14731 * gcc.c (process_command): Update copyright notice dates.
14732 * gcov.c (print_version): Likewise.
14733 * gcov-dump.c (print_version): Likewise.
14734 * mips-tfile.c (main): Likewise.
14735 * mips-tdump.c (main): Likewise.
14737 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14740 * c-common.c (flag_permissive): Delete.
14741 (constant_expression_warnings): Check flags first.
14742 (constant_expression_error): New.
14743 * c-common.h (flag_permissive): Delete.
14744 (constant_expression_error): Declare.
14745 * flags.h (flag_permissive): Declare. Update description.
14746 * diagnostic.c (pedwarn): Update.
14748 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
14749 (permissive_error_kind): New.
14750 * toplev.c (flag_permissive): Define. Update description.
14751 * toplev.h (permissive_error_kind): Declare.
14752 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
14753 (pedwarn_c90): Use pedantic_warning_kind.
14754 * c-opts.c (c_common_post_options): flag_permissive does not affect
14755 flag_pedantic_errors.
14757 2008-03-02 Joseph Myers <joseph@codesourcery.com>
14759 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
14760 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
14761 __absvsi2, __absvDI2): Use unsigned arithmetic.
14763 2008-03-02 Andi Kleen <ak@suse.de>
14764 Richard Guenther <rguenther@suse.de>
14766 * struct-equiv.c: Remove file.
14767 * cfg_cleanup.c (condjump_equiv_p): Remove.
14768 * Makefile.in (OBJS-common): Remove struct-equiv.o.
14769 (struct-equiv.o): Remove rule.
14770 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
14771 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
14772 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
14774 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14776 * ifcvt.c (noce_process_if_block): Try to handle only the then
14777 block if the else block exists but isn't suitable.
14779 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14782 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
14783 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
14784 regression from previous patch.
14786 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14789 * gthr.h: Add __gthread_mutex_destroy as a function that must be
14791 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
14792 * gthr-single.h (__gthread_mutex_destroy): Likewise.
14793 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
14794 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
14795 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
14796 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
14797 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
14798 (__gthread_mutex_destroy_function): Rename to
14799 __gthread_mutex_destroy.
14800 * gthr-dce.h (__gthread_mutex_destroy): Call
14801 pthread_mutex_destroy.
14802 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
14803 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
14804 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
14806 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14808 * df-scan.c (df_ref_chain_change_bb): Simplify.
14809 (df_insn_change_bb): Add new_bb argument. Simplify. Call
14810 set_block_for_insn if there's any change.
14811 * df.h ((df_insn_change_bb): Fix prototype.
14812 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
14813 df_insn_change_bb, don't call set_block_for_insn.
14814 * emit-rtl.c (reorder_insns): Likewise.
14815 * haifa-sched.c (move_insn): Likewise.
14817 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14819 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
14821 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14823 * tree-flow-inline.h (next_readonly_imm_use): Return
14824 NULL_USE_OPERAND_P after the end.
14826 2008-03-01 Richard Guenther <rguenther@suse.de>
14828 PR tree-optimization/35411
14829 * tree-sra.c (sra_build_assignment): Split conversion to
14830 final type to a separate statement if we are not assigning
14833 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14835 * fold-const.c (fold_convertible_p): Correct the logic to follow
14836 that in fold_convert().
14838 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
14841 * tree-inline.c (build_duplicate_type): When we make a
14842 duplicate type, make it unique in the canonical types system.
14844 2008-02-29 Tom Tromey <tromey@redhat.com>
14846 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
14847 input_file_stack_history, input_file_stack_restored): Remove.
14848 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14849 * input.h (struct file_stack): Remove.
14850 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14851 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
14853 * diagnostic.h (struct diagnostic_context) <last_module>: Change
14855 (diagnostic_last_module_changed): Add 'map' argument.
14856 (diagnostic_set_last_function): Likewise.
14857 * diagnostic.c (undiagnostic_report_current_module): Iterate using
14858 line map, not input_file_stack.
14859 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14861 2008-02-29 Paul Brook <paul@codesourcery.com>
14863 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14865 2008-02-29 Paul Brook <paul@codesourcery.com>
14867 * config/arm/ieee754-df.S (muldf3): Use RET macros.
14869 2008-02-29 Richard Guenther <rguenther@suse.de>
14871 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14873 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14874 value for comparing for a store match.
14875 (simplify_unary_expression): Do nothing for SSA_NAMEs.
14876 (try_to_simplify): Do not do a full-blown reference lookup.
14878 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14880 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14881 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14883 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14885 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
14887 * tree-loop-linear.c (try_interchange_loops): Compare memory access
14888 strides against cache sizes.
14890 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14892 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14895 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
14897 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14898 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14899 is smaller than the original promoted value.
14900 (simplify_subreg): If OP is a SUBREG, try to preserve its
14901 SUBREG_PROMOTED_VAR_P information.
14903 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
14905 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14906 (VN_INFO_GET): Allocate new objects on the obstack.
14907 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
14908 for rpo_numbers_temp, for consistency.
14909 (free_scc_vn): Free the obstack.
14911 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
14913 * doc/invoke.texi: Document -ftree-loop-distribution.
14914 * tree-loop-distribution.c: New.
14915 * tree-pass.h (pass_loop_distribution): New.
14916 * graphds.h (struct graph): Add htab_t indices.
14917 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14918 * tree-vectorizer.c (rename_variables_in_loop): Extern.
14919 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14920 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14921 * tree-data-ref.c (debug_data_dependence_relations): New.
14922 (dump_data_dependence_relation): Also print data references.
14923 (free_data_ref): Extern.
14924 (same_access_functions): Moved...
14925 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14926 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14927 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14928 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14929 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14930 (stmts_from_loop): Skip LABEL_EXPR.
14931 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14933 (build_rdg): Initialize rdg->indices htab.
14934 (free_rdg, stores_from_loop, ref_base_address,
14935 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14936 have_similar_memory_accesses_1, ref_base_address_1,
14937 remove_similar_memory_refs): New.
14938 * tree-data-ref.h: Depend on tree-chrec.h.
14939 (debug_data_dependence_relations, free_data_ref): Declared.
14940 (same_access_functions): ... here.
14941 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14943 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14944 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14945 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14946 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14947 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14948 rdg_vertex_for_stmt): Declared.
14949 (struct rdg_edge): Add level.
14951 (free_rdg, stores_from_loop, remove_similar_memory_refs,
14952 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14954 (rdg_has_similar_memory_accesses): New.
14955 * tree-vect-analyze.c: Remove unused static decls.
14956 * lambda.h (dependence_level): New.
14957 * common.opt (ftree-loop-distribution): New.
14958 * tree-flow.h (mark_virtual_ops_in_bb,
14959 slpeel_tree_duplicate_loop_to_edge_cfg,
14960 rename_variables_in_loop): Declared.
14961 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14962 (OBJS-common): Add tree-loop-distribution.o.
14963 (tree-loop-distribution.o): New rule.
14964 * tree-cfg.c (mark_virtual_ops_in_bb): New.
14965 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14966 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14968 2008-02-28 Joseph Myers <joseph@codesourcery.com>
14971 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14972 other than structures and unions.
14974 2008-02-28 Richard Guenther <rguenther@suse.de>
14977 2008-02-26 Richard Guenther <rguenther@suse.de>
14979 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14980 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14981 (lookup_decl_from_uid): Declare.
14982 (remove_decl_from_map): Likewise.
14983 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14984 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14985 (decl_for_uid_map): New global hashtable mapping DECL_UID
14987 (init_ttree): Allocate it.
14988 (insert_decl_to_uid_decl_map): New helper function.
14989 (make_node_stat): Insert new decls into the map.
14990 (copy_node_stat): Likewise.
14991 (lookup_decl_from_uid): New function.
14992 (remove_decl_from_map): Likewise.
14993 (print_decl_for_uid_map_statistics): New helper.
14994 (dump_tree_statistics): Call it.
14996 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14997 (referenced_var_iterator): Adjust.
14998 (FOR_EACH_REFERENCED_VAR): Adjust.
14999 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15000 (num_referenced_vars): Adjust.
15001 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15002 (first_referenced_var): Remove.
15003 (end_referenced_vars_p): Likewise.
15004 (next_referenced_var): Likewise.
15005 (referenced_var_iterator_set): New helper function.
15006 * tree-dfa.c (referenced_var_lookup): Adjust.
15007 (referenced_var_check_and_insert): Likewise.
15008 (remove_referenced_var): Likewise.
15009 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15010 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15011 (verify_call_clobbering): Likewise.
15012 (verify_memory_partitions): Likewise.
15013 (init_tree_ssa): Allocate bitmap instead of hashtable for
15015 (delete_tree_ssa): Adjust.
15016 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15017 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15018 (compute_tag_properties): Likewise.
15019 (set_initial_properties): Likewise.
15020 (find_partition_for): Likewise.
15021 (update_reference_counts): Likewise.
15022 (dump_may_aliases_for): Likewise.
15023 * tree-ssa-operands.c (add_virtual_operand): Likewise.
15024 (add_call_clobber_ops): Likewise.
15025 (add_call_read_ops): Likewise.
15026 (get_asm_expr_operands): Likewise.
15027 * tree-into-ssa.c (dump_decl_set): Likewise.
15028 (update_ssa): Likewise.
15029 * tree-sra.c (scan_function): Likewise.
15030 (decide_instantiations): Likewise.
15031 (scalarize_parms): Likewise.
15032 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15033 (dsa_named_for): Likewise.
15034 * tree-ssa-structalias.c (update_alias_info): Likewise.
15035 (merge_smts_into): Likewise.
15037 2008-02-27 David Daney <ddaney@avtrex.com>
15040 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
15041 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
15042 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
15043 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
15044 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
15046 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
15049 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
15050 (BUILT_IN_NEXTTOWARD): Remove.
15051 (BUILT_IN_NEXTTOWARDF): Ditto.
15052 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
15053 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
15055 2008-02-27 Tom Tromey <tromey@redhat.com>
15057 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
15058 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
15060 2008-02-27 Jan Beulich <jbeulich@novell.com>
15062 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
15063 update the respective field on newdecl.
15065 2008-02-27 Revital Eres <eres@il.ibm.com>
15067 PR rtl-optimization/34999
15068 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
15069 crossing edges that ends with a call insn.
15070 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
15071 call insn and clear the EDGE_CROSSING flag of the crossing edge
15072 when fixing fallthru edges.
15074 2008-02-27 Richard Guenther <rguenther@suse.de>
15076 PR middle-end/35390
15077 * fold-const.c (fold_unary): Return the correct argument,
15078 converted to the result type.
15080 2008-02-27 Richard Guenther <rguenther@suse.de>
15082 PR middle-end/34971
15083 * expr.c (expand_expr_real_1): Assert on rotates that operate
15085 * fold-const.c (fold_binary): Use the types precision, not the
15086 bitsize of the mode if folding rotate expressions. Build rotates
15087 only for full modes.
15089 2008-02-27 Jakub Jelinek <jakub@redhat.com>
15091 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
15092 and CPP_PRAGMA_EOL.
15093 * c-pragma.c (pragma_ns_name): New typedef.
15094 (registered_pp_pragmas): New variable.
15095 (c_pp_lookup_pragma): New function.
15096 (c_register_pragma_1): If flag_preprocess_only, do nothing
15097 for non-expanded pragmas, for expanded ones push pragma's
15098 namespace and name into registered_pp_pragmas vector.
15099 (c_invoke_pragma_handler): Register OpenMP pragmas even when
15100 flag_preprocess_only, don't register GCC pch_preprocess
15101 pragma if flag_preprocess_only.
15102 * c-opts.c (c_common_init): Call init_pragma even if
15103 flag_preprocess_only.
15104 * c-pragma.c (c_pp_lookup_pragma): New prototype.
15105 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
15106 cpp_register_pragma if flag_preprocess_only.
15108 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15111 * c-parser.c (c_parser_translation_unit): Warn for empty
15112 translation unit, not empty source file.
15114 2008-02-26 Paul Brook <paul@codesourcery.com>
15116 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
15117 operand for Thumb-2.
15118 * config/arm/arm.h (reg_class): Add CORE_REGS.
15119 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
15120 (BASE_REG_CLASS): Use CORE_REGS.
15121 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
15122 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
15123 (REGNO_OK_FOR_INDEX_P): Exclude SP.
15124 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
15125 ARM_REGNO_OK_FOR_INDEX_P.
15126 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
15127 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
15128 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
15129 (ldm/stm peepholes): Ditto.
15130 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
15131 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
15132 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
15133 * config/arm/constraints.md: Enable "k" constraint on ARM.
15135 2008-02-27 Ben Elliston <bje@au.ibm.com>
15137 * config/rs6000/rs6000.c: Annotate cache line size field in all
15138 instances of struct processor_costs.
15140 2008-02-26 David Edelsohn <edelsohn@gnu.org>
15142 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
15143 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
15144 jump_bypass): New counters.
15145 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
15146 * dce.c (gate_ud_dce): Same.
15147 (gate_fast_dce): Same.
15148 * dse.c (gate_dse1): New function.
15149 (gate_dse2): New function.
15150 (gate_dse): Merge results of new gate functions.
15151 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
15152 (gate_handle_jump_bypass): Add dbg_cnt.
15153 (gate_handle_gcse): Add dbg_cnt.
15154 * ifcvt.c (gate_handle_if_conversion): Same.
15155 (gate_handle_if_after_combine): Same.
15156 (gate_handle_if_after_reload): Same.
15157 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
15159 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
15161 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
15163 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
15165 2008-02-26 Jason Merrill <jason@redhat.com>
15168 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
15169 alone if it's the naming decl for the type's main variant.
15171 2008-02-26 Tom Tromey <tromey@redhat.com>
15173 * system.h (USE_MAPPED_LOCATION): Poison.
15174 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
15175 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
15176 (make_goto_expr_edges): Likewise.
15177 (remove_bb): Likewise.
15178 (execute_warn_function_return): Likewise.
15179 * basic-block.h (struct edge_def) <goto_locus>: Change type to
15181 * c-common.c (fname_decl): Remove old location code.
15182 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
15184 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
15186 (ASM_INPUT_SOURCE_LOCATION): Likewise.
15187 (gen_rtx_ASM_INPUT): Likewise.
15188 (gen_rtx_ASM_INPUT_loc): Likewise.
15189 (get_rtx_asm_OPERANDS): Remove.
15190 * cfglayout.c (insn_locators_alloc): Remove old location code.
15191 (set_curr_insn_source_location): Likewise.
15192 (curr_insn_locator): Likewise.
15193 * print-tree.c (print_node): Remove old location code.
15194 * tree-mudflap.c (mf_varname_tree): Remove old location code.
15195 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
15196 * cfgexpand.c (expand_gimple_cond_expr): Don't use
15197 location_from_locus.
15198 (construct_exit_block): Remove old location code.
15199 * emit-rtl.c (force_next_line_note): Remove old location code.
15200 * profile.c (branch_prob): Remove old location code.
15201 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
15202 LOC_LINE): Remove old-location variants.
15203 * langhooks.c (lhd_print_error_function): Remove old location
15205 * configure, config.in: Rebuilt.
15206 * configure.ac (--enable-mapped-location): Remove.
15207 * c-decl.c (c_init_decl_processing): Remove old location code.
15208 (finish_function): Likewise.
15209 * recog.c (decode_asm_operands): Remove old location code.
15210 * c-pch.c (c_common_read_pch): Remove old location code.
15211 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
15213 * gimple-low.c (lower_function_body): Remove old location code.
15214 * toplev.c (unknown_location): Remove.
15215 (push_srcloc): Remove old-location variant.
15216 (process_options): Remove old location code.
15217 (lang_dependent_init): Likewise.
15218 * input.h (UNKNOWN_LOCATION): Move definition.
15219 (location_t): Undeprecate.
15220 (source_locus): Remove.
15221 (location_from_locus): Remove.
15222 (struct location_s): Remove.
15223 Remove all old-location code.
15224 (input_line, input_filename): Remove.
15225 * final.c (final_scan_insn): Remove old location code.
15226 * diagnostic.c (diagnostic_build_prefix): Remove
15227 USE_MAPPED_LOCATION test.
15228 * tree.h (gimple_stmt) <locus>: Now a location_t.
15229 (tree_exp) <locus>: Likewise.
15230 (DECL_IS_BUILTIN): Remove old-location variant.
15231 (annotate_with_file_line, annotate_with_locus): Likewise.
15232 (expr_locus, set_expr_locus): Update.
15233 * tree.c (build1_stat): Remove old location code.
15234 (last_annotated_node): Remove.
15235 (annotate_with_file_line): Remove old-location variant.
15236 (annotate_with_locus): Likewise.
15237 (expr_location): Remove old location code.
15238 (set_expr_location): Likewise.
15239 (expr_has_location): Likewise.
15240 (expr_locus): Likewise.
15241 (set_expr_locus): Likewise.
15242 (expr_filename): Don't use location_from_locus.
15243 (expr_lineno): Likewise.
15244 * rtl-error.c (location_for_asm): Remove old location code.
15245 * c-lex.c (cb_line_change): Remove old location code.
15246 (fe_file_change): Likewise.
15247 (cb_def_pragma): Likewise.
15248 (c_lex_with_flags): Likewise.
15249 * gengtype.c (do_typedef): Don't special-case location types.
15250 (define_location_structures): Remove.
15251 (main): Don't call define_location_structures.
15252 * tree-pretty-print.c (dump_implicit_edges): Remove old location
15255 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15258 * builtins.def (BUILT_IN_STDARG_START): Remove.
15259 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
15260 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
15261 * tree-inline.c (inline_forbidden_p_1): Likewise.
15263 2008-02-26 Richard Guenther <rguenther@suse.de>
15265 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15266 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15267 (lookup_decl_from_uid): Declare.
15268 (remove_decl_from_map): Likewise.
15269 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15270 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15271 (decl_for_uid_map): New global hashtable mapping DECL_UID
15273 (init_ttree): Allocate it.
15274 (insert_decl_to_uid_decl_map): New helper function.
15275 (make_node_stat): Insert new decls into the map.
15276 (copy_node_stat): Likewise.
15277 (lookup_decl_from_uid): New function.
15278 (remove_decl_from_map): Likewise.
15279 (print_decl_for_uid_map_statistics): New helper.
15280 (dump_tree_statistics): Call it.
15282 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15283 (referenced_var_iterator): Adjust.
15284 (FOR_EACH_REFERENCED_VAR): Adjust.
15285 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15286 (num_referenced_vars): Adjust.
15287 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15288 (first_referenced_var): Remove.
15289 (end_referenced_vars_p): Likewise.
15290 (next_referenced_var): Likewise.
15291 (referenced_var_iterator_set): New helper function.
15292 * tree-dfa.c (referenced_var_lookup): Adjust.
15293 (referenced_var_check_and_insert): Likewise.
15294 (remove_referenced_var): Likewise.
15295 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15296 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15297 (verify_call_clobbering): Likewise.
15298 (verify_memory_partitions): Likewise.
15299 (init_tree_ssa): Allocate bitmap instead of hashtable for
15301 (delete_tree_ssa): Adjust.
15302 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15303 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15304 (compute_tag_properties): Likewise.
15305 (set_initial_properties): Likewise.
15306 (find_partition_for): Likewise.
15307 (update_reference_counts): Likewise.
15308 (dump_may_aliases_for): Likewise.
15309 * tree-ssa-operands.c (add_virtual_operand): Likewise.
15310 (add_call_clobber_ops): Likewise.
15311 (add_call_read_ops): Likewise.
15312 (get_asm_expr_operands): Likewise.
15313 * tree-into-ssa.c (dump_decl_set): Likewise.
15314 (update_ssa): Likewise.
15315 * tree-sra.c (scan_function): Likewise.
15316 (decide_instantiations): Likewise.
15317 (scalarize_parms): Likewise.
15318 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15319 (dsa_named_for): Likewise.
15320 * tree-ssa-structalias.c (update_alias_info): Likewise.
15321 (merge_smts_into): Likewise.
15323 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15326 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
15327 * c-opts.c (c_common_handle_option): Wall enables
15328 Wvolatile-register-var.
15329 * common.opt: Move Wvolatile-register-var to...
15332 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15334 * common.opt (Wlarger-than=): New.
15335 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
15337 * opts.c (common_handle_option): Handle -Wlarger-than=.
15338 * optc-gen.awk: Likewise.
15339 * opth-gen.awk: Likewise.
15340 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
15341 * tree-optimize.c (tree_rest_of_compilation): Likewise.
15343 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15345 * c-common.c (match_case_to_enum_1): Add appropriate
15346 OPT_W* parameter to warning.
15347 (c_do_switch_warnings): Likewise.
15348 * c-typeck.c (warning_init): Add one more parameter following
15349 'warning' function.
15350 (push_init_level): Update call to warning_init.
15351 (pop_init_level): Likewise.
15352 (add_pending_init): Likewise.
15353 (output_init_element: Likewise.
15355 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15358 * toplev.c (toplev_main): If there are warnings or error, print
15359 errors for ignored options.
15360 * opts.c (ignored_options): New static variable.
15361 (postpone_unknown_option_error): New.
15362 (print_ignored_options): New.
15363 (handle_option): Postpone errors for unknown -Wno-* options.
15364 * opts.h (print_ignored_options): Declare.
15366 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
15368 * config/mips/mips.md (loadgp_blockage, blockage): Change type
15371 2008-02-25 Richard Guenther <rguenther@suse.de>
15374 2008-02-25 Richard Guenther <rguenther@suse.de>
15376 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15377 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15378 (lookup_decl_from_uid): Declare.
15379 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15380 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15381 (decl_for_uid_map): New global hashtable mapping DECL_UID
15383 (init_ttree): Allocate it.
15384 (insert_decl_to_uid_decl_map): New helper function.
15385 (make_node_stat): Insert new decls into the map.
15386 (copy_node_stat): Likewise.
15387 (lookup_decl_from_uid): New function.
15388 (print_decl_for_uid_map_statistics): New helper.
15389 (dump_tree_statistics): Call it.
15391 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15392 (referenced_var_iterator): Adjust.
15393 (FOR_EACH_REFERENCED_VAR): Adjust.
15394 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15395 (num_referenced_vars): Adjust.
15396 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15397 (first_referenced_var): Remove.
15398 (end_referenced_vars_p): Likewise.
15399 (next_referenced_var): Likewise.
15400 (referenced_var_iterator_set): New helper function.
15401 * tree-dfa.c (referenced_var_lookup): Adjust.
15402 (referenced_var_check_and_insert): Likewise.
15403 (remove_referenced_var): Likewise.
15404 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15405 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15406 (verify_call_clobbering): Likewise.
15407 (verify_memory_partitions): Likewise.
15408 (init_tree_ssa): Allocate bitmap instead of hashtable for
15410 (delete_tree_ssa): Adjust.
15411 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15412 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15413 (compute_tag_properties): Likewise.
15414 (set_initial_properties): Likewise.
15415 (find_partition_for): Likewise.
15416 (update_reference_counts): Likewise.
15417 (dump_may_aliases_for): Likewise.
15418 * tree-ssa-operands.c (add_virtual_operand): Likewise.
15419 (add_call_clobber_ops): Likewise.
15420 (add_call_read_ops): Likewise.
15421 (get_asm_expr_operands): Likewise.
15422 * tree-into-ssa.c (dump_decl_set): Likewise.
15423 (update_ssa): Likewise.
15424 * tree-sra.c (scan_function): Likewise.
15425 (decide_instantiations): Likewise.
15426 (scalarize_parms): Likewise.
15427 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15428 (dsa_named_for): Likewise.
15429 * tree-ssa-structalias.c (update_alias_info): Likewise.
15430 (merge_smts_into): Likewise.
15432 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
15435 * doc/invoke.texi (-fcx-limited-range): Document new option.
15436 * toplev.c (process_options): Handle -fcx-fortran-rules.
15437 * common.opt: Add documentation for -fcx-fortran-rules.
15439 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
15442 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
15443 actual behaviour and C99.
15445 2008-02-26 Ben Elliston <bje@au.ibm.com>
15447 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
15448 (ASM_CPU_POWER6_SPEC): Likewise.
15449 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
15450 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
15451 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
15453 2008-02-25 Richard Guenther <rguenther@suse.de>
15455 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15456 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15457 (lookup_decl_from_uid): Declare.
15458 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15459 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15460 (decl_for_uid_map): New global hashtable mapping DECL_UID
15462 (init_ttree): Allocate it.
15463 (insert_decl_to_uid_decl_map): New helper function.
15464 (make_node_stat): Insert new decls into the map.
15465 (copy_node_stat): Likewise.
15466 (lookup_decl_from_uid): New function.
15467 (print_decl_for_uid_map_statistics): New helper.
15468 (dump_tree_statistics): Call it.
15470 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15471 (referenced_var_iterator): Adjust.
15472 (FOR_EACH_REFERENCED_VAR): Adjust.
15473 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15474 (num_referenced_vars): Adjust.
15475 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15476 (first_referenced_var): Remove.
15477 (end_referenced_vars_p): Likewise.
15478 (next_referenced_var): Likewise.
15479 (referenced_var_iterator_set): New helper function.
15480 * tree-dfa.c (referenced_var_lookup): Adjust.
15481 (referenced_var_check_and_insert): Likewise.
15482 (remove_referenced_var): Likewise.
15483 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15484 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15485 (verify_call_clobbering): Likewise.
15486 (verify_memory_partitions): Likewise.
15487 (init_tree_ssa): Allocate bitmap instead of hashtable for
15489 (delete_tree_ssa): Adjust.
15490 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15491 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15492 (compute_tag_properties): Likewise.
15493 (set_initial_properties): Likewise.
15494 (find_partition_for): Likewise.
15495 (update_reference_counts): Likewise.
15496 (dump_may_aliases_for): Likewise.
15497 * tree-ssa-operands.c (add_virtual_operand): Likewise.
15498 (add_call_clobber_ops): Likewise.
15499 (add_call_read_ops): Likewise.
15500 (get_asm_expr_operands): Likewise.
15501 * tree-into-ssa.c (dump_decl_set): Likewise.
15502 (update_ssa): Likewise.
15503 * tree-sra.c (scan_function): Likewise.
15504 (decide_instantiations): Likewise.
15505 (scalarize_parms): Likewise.
15506 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15507 (dsa_named_for): Likewise.
15508 * tree-ssa-structalias.c (update_alias_info): Likewise.
15509 (merge_smts_into): Likewise.
15511 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
15514 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
15515 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
15516 * alias.h (nonoverlapping_memrefs_p): Likewise.
15518 2008-02-25 Jan Beulich <jbeulich@novell.com>
15520 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
15521 * config/i386/netware-libgcc.exp: Add __bswap?i2,
15522 __emultls_get_address, __emultls_register_common,
15523 __floatundi?f, and _Unwind_GetIPInfo.
15524 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
15525 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
15526 (gen_regparm_prefix): Likewise.
15527 (i386_nlm_encode_section_info): Sync with
15528 config/i386/winnt.c:i386_pe_encode_section_info().
15529 (i386_nlm_maybe_mangle_decl_assembler_name): New.
15530 i386_nlm_mangle_decl_assembler_name): New.
15531 (netware_override_options): New.
15532 * config/i386/netware.h (netware_override_options): Declare.
15533 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
15534 (i386_nlm_mangle_decl_assembler_name): Declare.
15535 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
15537 2008-02-25 Ben Elliston <bje@au.ibm.com>
15540 * c-decl.c (grokdeclarator): Remove unused local variables
15541 `typedef_type' and `type_as_written'.
15543 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
15544 unused local variable `has_hot_blocks'.
15545 (fix_crossing_conditional_branches): Remove unused local variable
15548 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
15550 PR middle-end/19984
15551 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
15552 using DEF_C99_BUILTIN.
15553 (BUILT_IN_NANF): Ditto.
15554 (BUILT_IN_NANL): Ditto.
15556 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
15557 Revital Eres <eres@il.ibm.com>
15559 * modulo-sched.c (calculate_must_precede_follow): Address TODO
15560 regarding the order of two dependent insns in the same row.
15562 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
15564 * stor-layout.c (layout_decl): Do not bump the alignment of a
15565 bit-field to more than byte alignment if it is packed.
15567 2008-02-24 David Edelsohn <edelsohn@gnu.org>
15569 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
15572 2008-02-24 Diego Novillo <dnovillo@google.com>
15574 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
15577 * tree-vrp.c (vrp_evaluate_conditional): With
15578 -Wtype-limits, emit a warning when comparing against a
15579 constant outside the natural range of OP0's type.
15580 * c.opt (Wtype-limits): Move ...
15581 * common.opt (Wtype-limits): ... here.
15583 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
15585 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
15586 * config/rs6000/e300c2c3.md: New file.
15587 * config/rs6000/rs6000.c (processor_costs): Add new costs for
15589 (rs6000_override_options): Add e300c2 and e300c3 cases to
15590 processor_target_table. Do not allow usage of Altivec or Spe
15591 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
15592 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
15593 * config/rs6000/rs6000.h (processor_type): Add
15594 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
15595 (ASM_CPU_SPEC): Add e300c2 and e300c3.
15596 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
15597 and ppce300c3. Include e300c2c3.md.
15599 2008-02-23 David Edelsohn <edelsohn@gnu.org>
15601 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
15602 instead of TARGET_STRICT_ALIGN.
15604 2008-02-23 Joseph Myers <joseph@codesourcery.com>
15606 * explow.c (memory_address): Assert that the generated address is
15609 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15612 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
15613 * config/darwin-ppc-ldouble-patch.def: New file.
15614 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
15615 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
15616 SUBTARGET_INIT_BUILTINS if defined.
15617 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
15620 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
15623 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
15624 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
15626 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
15629 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
15630 file" warning condtional on -Winvalid-PCH.
15632 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
15634 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
15636 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
15640 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
15641 prevent reload from using MMX registers.
15642 (*mov<mode>_internal): Ditto.
15643 (*movv2sf_internal_rex64): Ditto.
15644 (*movv2sf_internal): Ditto.
15646 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15648 PR documentation/31569
15649 * doc/install.texi2html: Use makeinfo --no-number-sections.
15651 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15653 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
15654 ensure that we can address an entire entity > 8 bytes. Don't
15655 generate reg+reg addressing for such data.
15657 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15659 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
15660 strings when optimizing for size, unless the target cares about
15663 2008-02-22 Tom Tromey <tromey@redhat.com>
15665 * regclass.c (current_pass): Remove declaration.
15667 2008-02-22 Anatoly Sokolov <aesok@post.ru>
15669 * config/avr/libgcc.S (__RAMPZ__): Define.
15670 (__do_copy_data): Add for devices with 128KB code memory.
15672 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15674 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15676 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
15678 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
15680 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
15683 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15686 * c-typeck.c (build_binary_op): Warn about floating point
15687 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
15689 2008-02-21 Janis Johnson <janis187@us.ibm.com>
15692 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
15693 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
15695 (rs6000_override_options): Set altivec_abi as default, not override,
15696 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
15697 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
15698 is used; use new member spe_abi.
15699 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
15700 spe_abi and altivec_abi.
15702 2008-02-22 Tomas Bily <tbily@suse.cz>
15704 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
15706 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15709 * config.build (build_file_translate): Set to `CMD //c' only if
15711 * Makefile.in (build_file_translate): Improve comment.
15713 2008-02-21 Jan Hubicka <jh@suse.cz>
15715 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
15716 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
15717 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
15719 2008-02-21 Michael Matz <matz@suse.de>
15722 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
15724 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
15726 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
15727 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
15728 as insn constraint.
15729 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
15730 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
15731 SSE_VEC_FLOAT_MODE_P as insn constraint.
15732 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
15733 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
15734 sse4a_movntdf using MODEF mode iterator.
15735 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
15736 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
15737 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
15738 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
15739 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
15740 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
15741 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
15743 2008-02-21 Richard Guenther <rguenther@suse.de>
15745 * tree.def (PAREN_EXPR): New tree code.
15746 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
15748 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
15749 * expr.c (expand_expr_real_1): Likewise.
15750 * tree-inline.c (estimate_num_insns_1): Likewise.
15751 * tree-complex.c (expand_complex_move): Likewise.
15752 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
15755 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15758 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
15760 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15763 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
15765 * config/sh/sh.c (find_barrier): Don't go past
15766 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
15768 2008-02-20 DJ Delorie <dj@redhat.com>
15770 * config/h8300/h8300.md (insv): Force source operand to be a register.
15772 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
15773 as a jump, not as a plain insn.
15775 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
15777 * doc/invoke.texi (Warning Options): Add new option
15778 -Wframe-larger-than=.
15779 (-Wframe-larger-than): Document.
15781 * flags.h (warn_frame_larger_than, frame_larger_than_size):
15782 Add declarations for new option variables.
15784 * final.c (final_start_function): Check the frame size
15785 before emission and issue a Wframe-larger-than warning.
15787 * opts.c (warn_frame_larger_than, frame_larger_than_size):
15788 Add definitions for new option variables.
15789 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
15791 * common.opt (Wframe-larger-than=): New option.
15793 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
15795 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
15796 (<sse>_div<mode>3): Ditto.
15797 (<sse>_vmdiv<mode>3): Ditto.
15798 (<sse>_vmsqrt<mode>2): Ditto.
15799 (*smax<mode>3): Ditto.
15800 (sse5_frcz<mode>2): Ditto.
15801 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
15802 as insn constraint.
15804 2008-02-20 Richard Guenther <rguenther@suse.de>
15806 PR middle-end/35265
15807 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
15808 be happy with INTEGRAL_TYPE_P.
15810 2008-02-20 Richard Guenther <rguenther@suse.de>
15812 * fold-const.c (split_tree): Associate floatig-point expressions
15813 if flag_associative_math is set.
15815 2008-02-20 Richard Guenther <rguenther@suse.de>
15817 * tree.h (fold_real_zero_addition_p): Declare.
15818 * fold-const.c (fold_real_zero_addition_p): Export.
15819 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
15820 floating-point operations with zero and one.
15822 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
15824 * doc/install.texi: Correct references to CFLAGS, replacing them
15825 with BOOT_CFLAGS. Document flags used during bootstrap for
15828 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
15830 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
15831 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
15832 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
15834 (smin<mode>3): Ditto from similar patterns.
15835 (smax<mode>3): Ditto.
15836 (*ieee_smin<mode>3): Ditto.
15837 (*ieee_smax<mode>3): Ditto.
15838 * config/i386/sse.md (sse): New mode attribute.
15839 (mov<mode>): Macroize expander from movv4sf and movv2df using
15840 SSEMODEF2P mode iterator.
15841 (<sse>_movnt<mode>): Ditto from similar patterns. Use
15842 SSE_VEC_FLOAT_MODE_P as insn constraint.
15843 (storent<mode>): Ditto.
15844 (storent<mode>): Macroize expander from storentsf and storentdf using
15845 MODEF mode iterator.
15846 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
15847 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
15848 (abs<mode>2): Ditto from similar patterns.
15849 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
15850 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
15851 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
15852 (<sse>_vmsqrt<mode>2): Ditto.
15853 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
15854 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
15855 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15856 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15857 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15858 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15859 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15861 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15862 iterator and SSE_FLOAT_MODE_P as insn constraint.
15863 (<sse>_ucomi): Ditto from similar patterns.
15864 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15865 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15866 SSE_VEC_FLOAT_MODE_P as insn constraint.
15867 (vcond<mode>): Ditto from similar patterns.
15868 (and<mode>3, *and<mode>3): Ditto.
15869 (<sse>_nand<mode>3): Ditto.
15870 (ior<mode>3, *ior<mode>3): Ditto.
15871 (xor<mode>3, *xor<mode>3): Ditto.
15872 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15873 iterator and SSE_FLOAT_MODE_P as insn constraint.
15874 (*nand<mode>3): Ditto from similar patterns.
15875 (*ior<mode>3): Ditto.
15876 (*xor<mode>3): Ditto.
15878 2008-02-20 Ira Rosen <irar@il.ibm.com>
15880 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15881 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15882 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15884 2008-02-19 Jan Hubicka <jh@suse.cz>
15886 * predict.c (tree_bb_level_predictions): Remove variable next
15887 mistakely introduced by previous commit.
15889 2008-02-19 Jan Hubicka <jh@suse.cz>
15891 * predict.c (predict_paths_leading_to): Rewrite.
15892 (predict_paths_for_bb): New.
15893 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15895 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15898 * Makefile.in (build_file_translate): New.
15899 (gcc-vers.texi): Use it for translating $(abs_srcdir).
15900 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15901 * configure.ac (build_file_translate): Substitute it.
15902 * configure: Regenerate.
15904 2008-02-19 Jan Hubicka <jh@suse.cz>
15906 PR rtl-optimization/34408
15907 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15910 2008-02-19 Jan Hubicka <jh@suse.cz>
15912 PR middle-end/28779
15913 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15916 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
15919 * config/i386/i386-modes.def: Revert the last DI alignment
15920 change until Ada people can look into it.
15922 2008-02-19 Nick Clifton <nickc@redhat.com>
15924 * opts.c (print_specific_help): Fix typo in --help text.
15926 2008-02-19 Jakub Jelinek <jakub@redhat.com>
15929 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15930 32-bit inline asm without asm alternatives for host GCC < 3.0.
15932 2008-02-19 Richard Guenther <rguenther@suse.de>
15934 PR tree-optimization/34989
15935 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15936 Allow propagation to INDIRECT_REF if we can simplify only.
15938 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15940 * c-common.c (warn_for_collisions_1): Use appropriate option when
15943 2008-02-19 Nick Clifton <nickc@redhat.com>
15946 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15947 (handle_options): Fix indentation.
15948 (print_filtered_help): If no language-specific options were
15949 displayed tell the user how to list all the options supported by
15950 the language's front-end.
15951 (print_specific_help): Fix indentation and remove duplicate line.
15952 (common_handle_option): Handle the -v option.
15953 For --help enable the display of undocumented options if the -v
15954 switch has been included on the command line.
15955 For --help= check for overlaps in the arguments between the option
15956 classes and the language names and issue a warning when they
15957 cannot be disambiguated.
15958 * c.opt (v): Pass on to the common option handler.
15960 2008-02-19 Revital Eres <eres@il.ibm.com>
15962 * modulo-sched.c (sms_schedule): Change dump message when
15963 create_ddg function fails.
15964 (try_scheduling_node_in_cycle): Rename row to cycle.
15965 (print_partial_schedule): Rename CYCLE to ROW.
15967 2008-02-19 Christian Bruel <christian.bruel@st.com>
15968 Zdenek Dvorak <ook@ucw.cz>
15970 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15972 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15975 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15976 (*x86_movdicc_0_m1_se): Ditto.
15978 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15980 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15981 (CMPtype): Define as __gcc_CMPtype.
15982 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15983 (CMPtype): Define as __gcc_CMPtype.
15985 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
15987 Support valgrind 3.3 for --enable-checking=valgrind.
15988 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15990 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15991 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15992 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15993 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15994 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15995 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15996 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15998 * ggc-zone.c: Similar.
15999 * ggc-page.c: Similar.
16001 2008-02-19 Paul Brook <paul@codesourcery.com>
16004 * config/arm/ieee754-df.S: Fix do_it typo.
16005 * config/arm/ieee754-sf.S: Fix do_it typo.
16007 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
16010 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
16011 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
16012 (OPTION_MASK_ISA_SSE_SET): Likewise.
16013 (OPTION_MASK_ISA_SSE2_SET): Likewise.
16014 (OPTION_MASK_ISA_SSE3_SET): Likewise.
16015 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
16016 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
16017 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
16018 (OPTION_MASK_ISA_SSE4_SET): Likewise.
16019 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
16020 (OPTION_MASK_ISA_SSE5_SET): Likewise.
16021 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
16022 (OPTION_MASK_ISA_MMX_UNSET): Updated.
16023 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
16024 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
16025 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
16026 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
16027 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
16028 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
16029 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
16030 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
16031 (OPTION_MASK_ISA_SSE4): Removed.
16032 (ix86_handle_option): Turn on bits in ix86_isa_flags and
16033 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
16034 (override_options): Don't turn on implied SSE/MMX bits in
16037 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
16039 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
16042 2008-02-18 Joey Ye <joey.ye@intel.com>
16044 PR middle-end/34921
16045 * tree-nested.c (insert_field_into_struct): Set type alignment
16046 to field alignment if the former is less than the latter.
16048 2008-02-18 Jakub Jelinek <jakub@redhat.com>
16050 * BASE-VER: Set to 4.4.0.
16052 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16054 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
16055 * doc/cfg.texi: Likewise.
16056 * doc/extend.texi: Likewise.
16057 * doc/gty.texi: Likewise.
16058 * doc/invoke.texi: Likewise.
16059 * doc/loop.texi: Likewise.
16060 * doc/md.texi: Likewise.
16061 * doc/passes.texi: Likewise.
16062 * doc/rtl.texi: Likewise.
16063 * doc/sourcebuild.texi: Likewise.
16064 * doc/tm.texi: Likewise.
16065 * doc/tree-ssa.texi: Likewise.
16067 2008-02-17 Richard Guenther <rguenther@suse.de>
16069 PR middle-end/35227
16070 * tree-complex.c (init_parameter_lattice_values): Handle parameters
16071 without default definition.
16073 2008-02-17 Richard Guenther <rguenther@suse.de>
16075 PR tree-optimization/35231
16076 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
16079 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
16082 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
16083 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
16084 libgcc_cmp_return mode.
16086 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16089 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
16091 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
16093 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
16096 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16098 * doc/c-tree.texi: Use `@.' where appropriate.
16099 * doc/extend.texi: Likewise.
16100 * doc/install.texi: Likewise.
16101 * doc/invoke.texi: Likewise.
16102 * doc/loop.texi: Likewise.
16103 * doc/makefile.texi: Likewise.
16104 * doc/md.texi: Likewise.
16105 * doc/passes.texi: Likewise.
16106 * doc/standards.texi: Likewise.
16107 * doc/tm.texi: Likewise.
16109 2008-02-15 Jakub Jelinek <jakub@redhat.com>
16111 PR middle-end/35196
16112 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
16114 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
16115 rather than in entry_bb.
16117 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
16119 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
16120 libgcc_cmp_return mode.
16122 2008-02-15 Jakub Jelinek <jakub@redhat.com>
16124 PR middle-end/35130
16125 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
16126 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
16128 2008-02-15 Richard Guenther <rguenther@suse.de>
16129 Zdenek Dvorak <ook@ucw.cz>
16131 PR tree-optimization/35164
16132 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
16133 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
16134 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
16135 Only propagate addresses which do not have abnormal SSA_NAMEs
16138 2008-02-15 Joseph Myers <joseph@codesourcery.com>
16141 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
16143 2008-02-15 Jan Hubicka <jh@suse.cz>
16145 PR middle-end/35149
16146 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
16148 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
16150 PR middle-end/34621
16151 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
16152 when calculating alignment_pad.
16154 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
16156 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
16157 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
16158 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
16159 and STACK_BOUNDARY define.
16161 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
16163 PR preprocessor/35061
16164 * c-pragma.c (handle_pragma_pop_macro): Check that
16165 pushed_macro_table has been allocated.
16167 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
16169 PR middle-end/35136
16170 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
16171 (force_gimple_operand): Likewise.
16172 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
16173 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
16174 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
16175 (find_interesting_uses_address): Check addressability and alignment
16176 of the base expression only after substituting bases of IVs into it.
16178 2008-02-14 Michael Matz <matz@suse.de>
16181 * function.c (instantiate_virtual_regs_in_insn): Reload address
16182 before falling back to reloading the whole operand.
16184 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
16186 * config/s390/s390.c (s390_mainpool_start): Emit the pool
16187 before the first section switch note.
16189 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16191 * doc/bugreport.texi: Update copyright years.
16192 * doc/c-tree.texi: Likewise.
16193 * doc/cfg.texi: Likewise.
16194 * doc/cpp.texi: Likewise.
16195 * doc/cppinternals.texi: Likewise.
16196 * doc/fragments.texi: Likewise.
16197 * doc/frontends.texi: Likewise.
16198 * doc/gcc.texi: Likewise.
16199 * doc/gty.texi: Likewise.
16200 * doc/hostconfig.texi: Likewise.
16201 * doc/implement-c.texi: Likewise.
16202 * doc/libgcc.texi: Likewise.
16203 * doc/loop.texi: Likewise.
16204 * doc/makefile.texi: Likewise.
16205 * doc/options.texi: Likewise.
16206 * doc/passes.texi: Likewise.
16207 * doc/rtl.texi: Likewise.
16208 * doc/sourcebuild.texi: Likewise.
16209 * doc/standards.texi: Likewise.
16210 * doc/tree-ssa.texi: Likewise.
16211 * doc/trouble.texi: Likewise.
16213 * doc/extend.texi: Use @: or add comma where appropriate.
16214 * doc/invoke.texi: Likewise.
16215 * doc/tm.texi: Likewise.
16217 2008-02-14 Alan Modra <amodra@bigpond.net.au>
16220 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
16223 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
16225 * doc/md.texi (clz, ctz): Add reference.
16226 * doc/rtl.texi (clz, ctz): Likewise.
16228 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16231 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
16234 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
16236 * config/s390/s390.c (struct constant_pool): New field
16237 emit_pool_after added.
16238 (s390_mainpool_start): Set the emit_pool_after flag according
16239 to the section switch notes.
16240 (s390_mainpool_finish): Consider emit_pool_after when emitting
16241 the literal pool at the end of the function.
16242 (s390_chunkify_start): Force literal pool splits at section
16245 2008-02-13 Michael Matz <matz@suse.de>
16248 * var-tracking.c (clobber_variable_part): Correctly traverse the
16251 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16254 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
16255 Add -fdump-ipa-inline.
16256 * tree-dump.c (dump_files): Remove tree-inlined dump.
16257 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
16259 2008-02-12 Richard Guenther <rguenther@suse.de>
16261 PR tree-optimization/35171
16262 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
16265 2008-02-12 Richard Guenther <rguenther@suse.de>
16267 PR middle-end/35163
16268 * fold-const.c (fold_widened_comparison): Use get_unwidened in
16269 value-preserving mode. Disallow final truncation.
16271 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
16273 PR middle-end/35136
16274 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
16275 code from here to...
16276 (force_gimple_operand): ...here.
16278 2008-02-12 Jakub Jelinek <jakub@redhat.com>
16281 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
16282 non-compatible pointers.
16283 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
16284 different FIELD_DECLs, try harder by comparing field offsets, sizes
16287 PR inline-asm/35160
16288 * function.c (match_asm_constraints_1): Don't replace the same input
16291 2008-02-12 Anatoly Sokolov <aesok@post.ru>
16293 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
16294 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
16295 (expand_epilogue): Restore RAMPZ register.
16296 * config/avr/avr.md (RAMPZ_ADDR): New constant.
16298 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
16300 * config/i386/cygwin.asm: (__alloca): Correct calling
16301 convention and alignment.
16302 (__chkstk): Force 8 byte stack alignment.
16304 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
16305 Richard Guenther <rguenther@suse.de>
16307 PR tree-optimization/33992
16308 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
16309 the zero we compare against.
16311 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
16313 PR libfortran/35063
16314 * gthr-win32.h (__gthread_mutex_destroy_function): New function
16315 to CloseHandle after unlocking to prevent accumulation of handle
16318 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16320 PR middle_end/34150
16321 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
16322 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
16323 and update LABEL_NUSES during and after reload.
16325 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
16327 PR middle-end/34627
16328 * combine.c (simplify_if_then_else): Make sure the comparison is
16329 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
16331 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
16334 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
16335 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
16336 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
16337 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
16338 * tree.h (get_type_static_bounds): Likewise.
16340 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16342 * doc/invoke.texi (Option Summary, C++ Dialect Options)
16343 (Objective-C and Objective-C++ Dialect Options, Warning Options):
16344 Make -Wfoo language annotations match what the compiler outputs.
16346 2008-02-08 Sa Liu <saliu@de.ibm.com>
16348 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
16349 intrinsics spu_convts, spu_convtu, spu_convtf.
16351 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
16353 * doc/extend.texi (Function Attributes) <noinline>: Mention
16354 asm ("") as method to keep calls.
16356 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16359 * doc/options.texi (Options): Replace references to opts.sh with
16361 * opts-common.c: Likewise.
16362 * optc-gen.awk: Likewise.
16364 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16366 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
16368 2008-02-07 Richard Henderson <rth@redhat.com>
16371 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
16372 EXPR_LIST for the REG_EQUAL instead of a comparison with a
16375 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
16377 PR tree-optimization/35085
16378 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
16379 for operand entry oe2 in addition to operand entry oe3 in order to
16380 expose more opportunities for vectorizer sum reduction.
16382 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16385 * Makefile.in (LIBS): Remove $(GMPLIBS).
16386 (cc1-dummy, cc1): Add $(GMPLIBS).
16388 2008-02-06 Jan Hubicka <jh@suse.cz>
16391 * i386.md (moddf_integer): Do not produce partial memory stalls for
16392 targets where it hurts.
16394 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
16397 * optabs.c (expand_float): Do not check for decimal modes when
16398 expanding unsigned integer through signed conversion.
16400 2008-02-06 Nick Clifton <nickc@redhat.com>
16402 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
16403 inside the clobber with a match_operand and duplicated operand
16404 number in the constraint.
16405 (ineqbranchsi): Delete redundant comment.
16407 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
16409 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
16410 builtin_define ("__USE_INIT_FINI__").
16411 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
16413 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
16415 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16417 PR documentation/30330
16418 * doc/invoke.texi (C++ Dialect Options)
16419 (Objective-C and Objective-C++ Dialect Options, Warning Options):
16420 For each warning option -Wfoo that allows -Wno-foo, ensure both
16421 -Wfoo and -Wno-foo are listed in the option index. Fix index
16422 entry of -Wswitch-default, index -Wnormalized= including the
16423 `=', and -Wlarger-than-@var{len} including @var{len}.
16425 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
16427 * config/i386/i386.md (floatunssisf2): Use
16428 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
16429 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
16430 Macroize expander using MODEF mode iterator.
16432 2008-02-05 Diego Novillo <dnovillo@google.com>
16434 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
16437 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
16439 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16442 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
16444 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
16447 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
16448 to indicate if a message should be generated.
16449 (init_cumulative_args): Updated.
16450 (function_value_32): Likewise.
16452 2008-02-05 Joseph Myers <joseph@codesourcery.com>
16454 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
16456 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
16459 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
16460 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
16462 2008-02-04 Diego Novillo <dnovillo@google.com>
16464 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
16467 * tree-vrp.c (vrp_evaluate_conditional): With
16468 -Wtype-limits, emit a warning when comparing against a
16469 constant outside the natural range of OP0's type.
16471 2008-02-04 Richard Guenther <rguenther@suse.de>
16473 PR middle-end/33631
16474 * expr.c (count_type_elements): Give for unions instead of
16477 2008-02-04 Richard Guenther <rguenther@suse.de>
16479 PR middle-end/35043
16480 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
16481 to TYPE_DOMAINs base type instead of using bitsizetype here.
16483 2008-02-03 Jason Merrill <jason@redhat.com>
16485 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
16487 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16490 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
16491 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
16492 (RS/6000 and PowerPC Options): Fix typos and markup.
16493 * doc/passes.texi (Tree-SSA passes): Likewise.
16495 2008-02-02 Michael Matz <matz@suse.de>
16498 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
16499 from record_last_reg_set_info.
16500 (record_last_reg_set_info): Take an RTX argument, iterate over all
16501 constituent hardregs.
16502 (record_last_set_info, record_opr_changes): Change calls to
16503 new signature or to record_last_reg_set_info_regno.
16505 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16507 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
16509 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
16511 PR rtl-optimization/34773
16512 * reg-notes.def (EQUAL): Mention significance of combination of
16513 REG_EQUAL and REG_RETVAL.
16514 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
16515 insn that has a REG_RETVAL.
16517 2008-02-01 Roger Sayle <roger@eyesopen.com>
16520 * configure.ac (--enable-fixed-point): Disable unless explicitly
16522 * configure: Regenerate.
16524 2008-02-01 Richard Guenther <rguenther@suse.de>
16527 * invoke.texi (-finline-limit): Remove no longer true parts
16528 of the documentation. Note that there is no default value.
16530 2008-02-01 Andrew Pinski <pinskia@gmail.com>
16531 Mark Mitchell <mark@codesourcery.com>
16532 Ben Elliston <bje@au.ibm.com>
16535 * doc/extend.texi (Other Builtins): Document.
16537 2008-01-31 Tom Browder <tom.browder@gmail.com>
16539 * doc/c-tree.texi (Types): Fix grammar.
16540 (Expression trees): Ditto.
16541 * doc/passes.texi (Tree-SSA passes): Ditto.
16543 * doc/configterms.texi (Configure Terms): Fix typo.
16544 * doc/cpp.texi (Common Predefined Macros): Ditto.
16545 * doc/md.texi (Machine Constraints): Ditto.
16547 * doc/makefile.texi (Makefile): Add comma.
16549 2008-01-31 Tom Browder <tom.browder@gmail.com>
16550 Gerald Pfeifer <gerald@pfeifer.com>
16552 * doc/sourcebuild.texi (Front End): Remove references to CVS
16553 and CVSROOT/modules.
16554 (Texinfo Manuals): Replace reference to CVS by one to SVN.
16555 (Back End): Remove reference to CVS.
16557 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
16560 * config/mips/mips.c (gen_load_const_gp): New function, taking a
16562 (mips16_gp_pseudo_reg): ...here.
16563 * config/mips/mips.md (load_const_gp): Replace with...
16564 (load_const_gp_<mode>): ...this :P-based insn.
16566 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16568 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
16569 options. Minor fixes.
16570 (-std): Move reference to standards closer to where language
16571 standards are first mentioned.
16573 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
16575 PR rtl-optimization/34995
16576 * reload.c (alternative_allows_const_pool_ref): Take an rtx
16577 parameter and return a bool. If the rtx parameter is nonnull,
16578 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
16579 (find_reloads): Update call accordingly. Pass the new operand
16580 if it needed no address reloads, otherwise pass null.
16582 2008-01-30 Richard Henderson <rth@redhat.com>
16585 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
16586 for unbounded arrays.
16588 2008-01-30 Silvius Rus <rus@google.com>
16590 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
16592 2008-01-30 Jan Hubicka <jh@suse.cz>
16595 * i386.c (init_cumulative_args): Use real function declaration when
16598 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
16600 PR rtl-optimization/34998
16601 * global.c (build_insn_chain): Treat non-subreg_lowpart
16602 SUBREGs of pseudos as clobbering all the words covered by the
16603 SUBREG, not just all the bytes.
16604 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
16605 original df_ref rather than an extract parameter.
16606 (global_conflicts): Update call accordingly.
16608 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
16610 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
16611 the overflow check to make it easier to read.
16612 (__fixtfdi): Change the type of the ll member in union
16613 long_double to UDItype_x.
16615 2008-01-30 Jakub Jelinek <jakub@redhat.com>
16617 PR middle-end/34969
16618 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
16619 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
16620 * tree-inline.c (fold_marked_statements): Call
16621 cgraph_update_edges_for_call_stmt if folding a call statement.
16622 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
16623 debug_generic_stmt calls, reset it back afterwards.
16626 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
16628 * c-typeck.c (build_external_ref): Don't pedwarn about
16629 static vars in current function's scope.
16631 2008-01-29 Joseph Myers <joseph@codesourcery.com>
16633 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
16635 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
16638 * ipa-struct-reorg.c: Fix spelling.
16639 * params.def: Ditto.
16641 2008-01-29 Richard Guenther <rguenther@suse.de>
16643 PR middle-end/35006
16644 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
16646 * tree-inline.c (remap_type): Increment remapping_type_depth
16647 around remapping types.
16648 (copy_body_r): Only add referenced variables if they are referenced
16649 from code, not types.
16651 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
16662 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
16663 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
16665 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
16668 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
16669 pointer for tiny stack.
16671 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16673 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
16675 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16677 * config/vx-common.h: Fix typo in comment.
16679 2008-01-28 Ian Lance Taylor <iant@google.com>
16683 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16684 coalesce pointers if they have different DECL_NO_TBAA_P values.
16685 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
16686 between variables with different DECL_NO_TBAA_P values.
16688 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
16691 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
16692 are not legitimate small data references on SPE targets.
16694 2008-01-28 David Daney <ddaney@avtrex.com>
16696 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
16698 2008-01-28 David Daney <ddaney@avtrex.com>
16700 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
16702 2008-01-27 Joseph Myers <joseph@codesourcery.com>
16704 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
16705 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
16706 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
16707 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
16708 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
16709 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
16710 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
16711 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
16713 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16715 * basic-block.h (condjump_equiv_p): Fix comment.
16717 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16719 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
16720 print_generic_stmt_indented): Fix comment.
16722 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16724 * configure.ac (__stack_chk_fail): Add detecion for availability
16725 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
16726 * configure: Regenerate.
16728 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
16730 PR middle-end/34688
16731 * final.c (output_addr_const): Handle TRUNCATE.
16733 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
16736 * tree-ssa-loop-ivopts.c (comp_cost): New type.
16737 (zero_cost, infinite_cost): New constants.
16738 (struct cost_pair): Change type of cost to comp_cost.
16739 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
16740 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
16742 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
16743 split_address_cost, ptr_difference_cost, difference_cost,
16744 get_computation_cost_at, get_computation_cost,
16745 determine_use_iv_cost_generic, determine_use_iv_cost_address,
16746 determine_use_iv_cost_condition, determine_use_iv_costs,
16747 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
16748 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
16749 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
16750 Change type of cost to comp_cost.
16751 (determine_iv_cost): Increase cost of non-original ivs, instead
16752 of decreasing the cost of original ones.
16753 (get_address_cost): Indicate the complexity of the addressing mode
16755 (try_add_cand_for): Prefer using ivs not specific to some object.
16756 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
16758 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
16759 Janis Johnson <janis187@us.ibm.com>
16762 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
16763 (TARGET_INSTANTIATE_DECLS): Likewise.
16764 * target.h (expand_to_rtl_hook): New target hook.
16765 (instantiate_decls): Likewise.
16766 * function.c (instantiate_decl): Make non-static. Rename to...
16767 (instantiate_decl_rtl): ... this.
16768 (instantiate_expr): Use instantiate_decl_rtl.
16769 (instantiate_decls_1): Likewise.
16770 (instantiate_decls): Likewise.
16771 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
16772 * function.h (instantiate_decl_rtl): Add prototype.
16773 * cfgexpand.c (target.h): New include.
16774 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
16775 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
16776 (TARGET_INSTANTIATE_DECLS): Likewise.
16777 (TARGET_INITIALIZER): New target hooks added.
16778 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
16780 * config/rs6000/rs6000.c (tree-flow.h): New include.
16781 (machine_function): Add sdmode_stack_slot field.
16782 (rs6000_alloc_sdmode_stack_slot): New function.
16783 (rs6000_instantiate_decls): Likewise.
16784 (rs6000_secondary_memory_needed_rtx): Likewise.
16785 (rs6000_check_sdmode): Likewise.
16786 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
16787 (TARGET_INSTANTIATE_DECLS): Likewise.
16788 (rs6000_hard_regno_mode_ok): Allow SDmode.
16789 (num_insns_constant): Likewise. Handle _Decimal32 constants.
16790 (rs6000_emit_move): Handle SDmode.
16791 (function_arg_advance): Likewise.
16792 (function_arg): Likewise.
16793 (rs6000_gimplify_va_arg): Likewise. Add special handling of
16794 SDmode var args for 32-bit compiles.
16795 (rs6000_secondary_reload_class): Handle SDmode.
16796 (rs6000_output_function_epilogue): Likewise.
16797 (rs6000_function_value): Simplify if statement.
16798 (rs6000_libcall_value): Likewise.
16799 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
16800 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
16801 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
16802 (movsd_hardfloat): New define_insn.
16803 (movsd_softfloat): Likewise.
16804 (movsd_store): Likewise.
16805 (movsd_load): Likewise.
16806 (extendsddd2): Likewise.
16807 (extendsdtd2): Likewise.
16808 (truncddsd2): Likewise.
16809 (movdd_hardfloat64): Fixup comment.
16810 (UNSPEC_MOVSD_LOAD): New constant.
16811 (UNSPEC_MOVSD_STORE): Likewise.
16813 2008-01-26 Jakub Jelinek <jakub@redhat.com>
16816 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
16818 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
16819 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
16820 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
16821 and TRUTH_XOR_EXPR.
16823 2008-01-26 David Edelsohn <edelsohn@gnu.org>
16826 * config.gcc: Separate AIX 5.3 from AIX 6.1.
16827 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16828 __LONGDOUBLE128 too.
16829 * config/rs6000/aix61.h: New file.
16831 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16833 PR rtl-optimization/34959
16834 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
16835 popcount and parity rtxes the same mode as their operand.
16836 Truncate or extend the result to the return value's mode
16839 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16842 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
16843 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
16844 to GOT_VERSION_REGNUM.
16845 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
16846 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
16847 * config/mips/mips.c (mips_emit_call_insn): New function.
16848 (mips_call_tls_get_addr): Call mips_expand_call directly.
16849 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
16851 (mips16_build_call_stub): Likewise. Return the call insn or null.
16852 (mips_expand_call): Update the call to mips16_build_call_stub
16853 accordingly and a remove redundant condition. Assert that MIPS16
16854 stubs do not use lazy binding. Use mips_emit_call_insn and return
16856 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16858 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16859 (mips_avoid_hazard): Remove hazard_set handling.
16860 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16861 (UNSPEC_RESTORE_GP): ...this.
16862 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16863 (FAKE_CALL_REGNO): Rename to...
16864 (GOT_VERSION_REGNUM): ...this.
16865 (type): Add "ghost" value. Add an associated insn reservation.
16866 (hazard_set): Remove.
16867 (exception_receiver): Rename to...
16868 (restore_gp): ...this and update the unspec identifier accordingly.
16869 (exception_receiver, nonlocal_got_receiver): New expanders.
16870 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
16871 FAKE_CALL_REGNO. Remove hazard_set attribute.
16872 (set_got_version, update_got_version): New patterns.
16874 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
16877 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16879 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16882 * doc/install.texi2html: Generate gcc-vers.texi.
16884 2008-01-25 DJ Delorie <dj@redhat.com>
16886 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16888 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16890 * config/c4x: Remove directory.
16891 * config.gcc (crx-*, mt-*): Mark obsolete.
16892 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16893 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16894 sh-*-rtemscoff*): Remove cases.
16895 * defaults.h (C4X_FLOAT_FORMAT): Remove.
16896 * real.c (encode_c4x_single, decode_c4x_single,
16897 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16898 c4x_extended_format): Remove.
16899 * real.h (c4x_single_format, c4x_extended_format): Remove.
16900 * doc/extend.texi (interrupt, naked): Remove mention of attributes
16902 (Pragmas): Remove comment about c4x pragmas.
16903 * doc/install.texi (c4x): Remove target-specific instructions.
16904 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16905 * doc/md.texi (Machine Constraints): Remove C4x documentation.
16906 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16907 refer to C4x source files as examples.
16908 (C4X_FLOAT_FORMAT): Remove documentation.
16910 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
16912 * config/bfin/bfin.c (override_options): Reorder tests so that
16913 flag_pic gets enabled for -msep-data.
16915 2008-01-25 Richard Guenther <rguenther@suse.de>
16917 PR middle-end/32244
16918 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16919 to its bitfield precision if required.
16921 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16923 PR middle-end/33880
16924 * tree-nested.c (walk_omp_for): New function.
16925 (convert_nonlocal_reference, convert_local_reference): Call
16926 walk_omp_for on OMP_FOR.
16927 (convert_call_expr): Call walk_body on OMP_FOR's
16928 OMP_FOR_PRE_INIT_BODY.
16930 2008-01-25 Richard Guenther <rguenther@suse.de>
16932 PR tree-optimization/34966
16933 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16934 default defs and PHI_NODEs we have to insert after the
16935 defining statement.
16937 2008-01-24 Nick Clifton <nickc@redhat.com>
16939 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16940 Provide a default definition.
16941 (LIBGCC2_UNITS_PER_WORD): Likewise.
16943 * config/stormy16/stormy16.c: Include df.h for the prototype
16944 for df_regs_ever_live_p.
16945 (xstormy16_expand_builtin_va_start): Convert the stack offset
16946 into a component_ref and then use POINTER_PLUS_EXPR to add it
16947 to the incoming_virtual_args_rtx.
16948 (xstormy16_gimplify_va_arg_expr): Rename to
16949 xstormy16_gimplify_va_arg_expr.
16950 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16951 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16952 xstormy16_gimplify_va_arg_expr.
16953 Fix up some formatting issues.
16955 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16956 Move to predicates.md.
16957 (xs_hi_general_operand): Likewise.
16958 (xs_hi_nonmemory_operand): Likewise.
16959 * config/stormy16/predicates.md:
16960 (xstormy16_carry_plus_operand): New predicate.
16961 (xs_hi_general_operand): New predicate.
16962 (xs_hi_nonmemory_operand): New predicate.
16963 * config/stormy16/stormy16-protos.h:
16964 (xstormy16_carry_plus_operand): Delete prototype.
16965 (xs_hi_general_operand): Likewise.
16966 (xs_hi_nonmemory_operand): Likewise.
16968 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16969 modifiers as they are no longer needed and they can trigger
16970 reload spill failures.
16972 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16973 with a match_operand in order to help reload.
16975 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16976 constraint with 'e' for the 8th alternative as this version of
16977 the mov.w instruction only accepts the lower 8 registers.
16979 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
16982 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16983 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16986 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16988 PR middle-end/33333
16989 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16991 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16993 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16995 (remove_structure): Update allocations list before removing structure.
16997 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16999 * ipa-struct-reorg.c (is_safe_cond_expr,
17000 create_new_stmts_for_cond_expr): Use integer_zerop function,
17001 that recognize not only zero-pointer, but zero-integer too.
17003 2008-01-25 Ben Elliston <bje@au.ibm.com>
17006 * fixproto: Escape "." in sed expression that strips leading "./".
17008 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
17011 * gcc.c (SWITCH_OK): Removed.
17012 (SWITCH_LIVE): Changed to bit.
17013 (SWITCH_FALSE): Likewise.
17014 (SWITCH_IGNORE): Likewise.
17015 (switchstr): Change live_cond to unsigned int.
17016 (process_command): Replace SWITCH_OK with 0.
17017 (do_self_spec): Likewise.
17018 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
17019 (give_switch): Likewise.
17020 (used_arg): Likewise.
17021 (do_spec_1): Set the SWITCH_IGNORE bit.
17022 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
17023 bits. Set the SWITCH_LIVE bit.
17025 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
17027 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
17029 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
17031 PR tree-optimization/34472
17032 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
17033 parameter to a "bool *" and set *DATA to false if there is
17034 an unsafe access. Do not delete the structure here.
17035 (check_cond_exprs): Delete it here instead.
17036 (check_cond_exprs, exclude_cold_structs): Do not increase
17037 I when removing a structure.
17039 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
17042 * config/i386/i386.c (ix86_expand_vector_init): Consider only
17043 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
17045 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
17047 PR middle-end/34934
17048 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
17049 a fixed vector for stack.
17051 2008-01-24 Ben Elliston <bje@au.ibm.com>
17054 * doc/gcc.texi (Software development): Add a direntry for g++.
17056 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
17058 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
17059 stale and straggling -fforce-addr comments above.
17061 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
17063 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
17064 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
17066 2008-01-23 Michael Matz <matz@suse.de>
17069 * dwarf2out.c (force_type_die): Use modified_type_die instead of
17072 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
17074 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
17075 malloc result type.
17077 2008-01-23 Anatoly Sokolov <aesok@post.ru>
17079 * config/avr/avr.c (avr_current_arch): New variable.
17080 (avr_arch_types): Add 'avr31' and 'avr51' entries.
17081 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
17082 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
17083 (avr_override_options): Init 'avr_current_arch'.
17084 (base_arch_s): Move from here...
17085 * config/avr/avr.h (base_arch_s): ... here. Add new members
17086 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
17087 'mega' to 'have_jmp_call'.
17088 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
17089 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
17091 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
17093 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17094 MULTILIB_MATCHES): Ditto.
17096 2008-01-23 Richard Guenther <rguenther@suse.de>
17098 PR middle-end/31529
17099 * cgraphunit.c (cgraph_reset_node): Always mark the node
17100 not reachable if it is not queued already.
17102 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
17104 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
17105 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
17106 (cputype_selected): New static variable.
17107 (bfin_handle_option): Set it if -mcpu is used.
17108 (override_option): Select default set of workarounds if no cpu type
17109 selected on the command line.
17110 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
17112 From Michael Frysinger <michael.frysinger@analog.com>
17113 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
17114 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
17116 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
17117 for bf547, bf523, bf524, and bf526.
17118 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
17120 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17121 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
17122 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
17123 __ADSPBF547__ and __ADSPBF54x__ for bf547.
17124 * doc/invoke.texi (Blackfin Options): Document that
17125 -mcpu now accept bf547, bf523, bf524, and bf526.
17127 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
17129 PR rtl-optimization/34628
17130 * combine.c (try_combine): Stop and undo after the first combination
17131 if an autoincrement side-effect on the first insn has effectively
17134 2008-01-22 David Edelsohn <edelsohn@gnu.org>
17137 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
17138 Offset addresses are not valid for Altivec or paired float modes.
17140 2008-01-22 Jakub Jelinek <jakub@redhat.com>
17143 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
17144 if DECL_INITIAL (decl) is error_mark_node.
17147 * c-common.c (handle_vector_size_attribute): Only allow
17148 integral, scalar float and fixed point types. Handle OFFSET_TYPE
17149 the same way as pointer, array etc. types.
17150 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
17153 * tree.c (build_type_attribute_qual_variant): Call
17154 build_qualified_type if attributes are equal, but quals are not.
17156 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17159 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
17160 * flags.h (warn_strict_aliasing): Remove.
17161 (warn_strict_overflow): Remove.
17162 * opts.c (warn_strict_aliasing): Remove.
17163 (warn_strict_overflow): Remove.
17164 * c-opts.c (c_common_handle_option): -Wall only sets
17165 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
17166 (c_common_post_options): Give default values to -Wstrict-aliasing
17167 and -Wstrict-overflow if they are uninitialized.
17168 * common.opt (Wstrict-aliasing): Specify Var and Init.
17169 (Wstrict-overflow): Likewise.
17171 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
17173 PR rtl-optimization/26854
17174 PR rtl-optimization/34400
17175 PR rtl-optimization/34884
17176 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
17178 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
17179 (df_rd_bb_info.expanded_lr_out): Deleted
17180 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
17181 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
17182 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
17183 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
17184 Removed code to allocate, initialize or free expanded_lr_out.
17185 (df_rd_bb_local_compute_process_def): Restructured to make more
17187 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
17188 sets if the sets are being trimmed.
17190 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
17193 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
17194 (as_vers): Likewise.
17195 * configure: Regenerated.
17197 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17199 PR middle-end/33092
17200 * tree-pass.h (pass_build_alias): New pass.
17201 * tree-ssa-alias.c (gate_build_alias): New.
17202 (pass_build_alias): New.
17203 * passes.c (init_optimization_passes): Add pass_build_alias after
17204 pass_create_structure_vars.
17206 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
17208 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
17209 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
17210 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
17211 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
17212 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
17213 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
17214 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
17215 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
17216 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
17217 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
17218 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
17219 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
17220 * config/s390/s390.md (FP_ALL): New mode iterator.
17221 (_d): New mode attribute.
17222 ("*signbit<mode>2>"): Changed mode of first operand.
17223 ("isinf<mode>2"): Changed mode of first operand.
17224 ("*TDC_insn"): Adaptation for DFP modes.
17226 2008-01-22 Ben Elliston <bje@au.ibm.com>
17228 * tree.c (check_qualified_type): Improve function description.
17230 2008-01-21 Jason Merrill <jason@redhat.com>
17233 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
17234 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
17237 2008-01-21 DJ Delorie <dj@redhat.com>
17239 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
17242 2008-01-21 Richard Guenther <rguenther@suse.de>
17244 PR middle-end/34856
17245 * tree-cfg.c (verify_expr): Allow all invariant expressions
17246 instead of just constant class ones as reference argument.
17247 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
17248 like any other constant.
17249 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17251 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
17253 * regmove.c (fixup_match_1): Update call crossed frequencies.
17255 2008-01-21 Richard Guenther <rguenther@suse.de>
17258 * tree-inline.c (setup_one_parameter): Deal with mismatched
17259 types using a VIEW_CONVERT_EXPR.
17261 2008-01-21 Alon Dayan <alond@il.ibm.com>
17262 Olga Golovanevsky <olga@il.ibm.com>
17264 PR tree-optimization/34701
17265 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
17266 when the structure size is not a power of 2.
17268 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
17270 * doc/install.texi: Add doc for --enable-checking=df.
17272 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
17274 PR rtl-optimization/34808
17275 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
17277 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
17279 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
17282 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
17284 PR rtl-optimization/26854
17285 PR rtl-optimization/34400
17286 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
17288 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
17289 (df_rd_bb_info.expanded_lr_out): New.
17290 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
17291 * loop_iv.c (iv_analysis_loop_init): Ditto.
17292 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
17293 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
17294 Added code to allocate, initialize or free expanded_lr_out.
17295 (df_rd_bb_local_compute_process_def): Restructured to make
17296 more understandable.
17297 (df_rd_confluence_n): Add code to do nothing with fake edges and
17298 code to no apply invalidate_by_call sets if the sets are being trimmed.
17299 (df_lr_local_finalize): Renamed to df_lr_finalize.
17300 (df_live_local_finalize): Renamed to df_live_finalize.
17302 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
17305 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
17306 deciding whether to use reciprocal instructions.
17308 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
17310 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
17311 dwarf2out_note_section_used if cold_text_section is NULL.
17313 2008-01-19 Jakub Jelinek <jakub@redhat.com>
17315 PR gcov-profile/34610
17316 * tree-cfg.c (make_edges): Mark both outgoing edges from
17317 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
17318 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
17319 from OMP_FOR and OMP_CONTINUE outgoing edges.
17321 * tree-profile.c (tree_profiling): Return early if
17322 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
17324 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
17325 from cfun to child_cfun.
17326 * function.h (struct function): Add after_tree_profile bit.
17328 2008-01-19 Anatoly Sokolov <aesok@post.ru>
17330 * config/avr/avr.S (_exit): Disable interrupt.
17332 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
17333 Steven Bosscher <stevenb.gcc@gmail.com>
17335 PR rtl-optimization/26854
17336 PR rtl-optimization/34400
17337 * df-problems.c (df_live_scratch): New scratch bitmap.
17338 (df_live_alloc): Allocate df_live_scratch when doing df_live.
17339 (df_live_reset): Clear the proper bitmaps.
17340 (df_live_bb_local_compute): Only process the artificial defs once
17341 since the order is not important.
17342 (df_live_init): Init the df_live sets only with the variables
17343 found live by df_lr.
17344 (df_live_transfer_function): Use the df_lr sets to prune the
17345 df_live sets as they are being computed.
17346 (df_live_free): Free df_live_scratch.
17348 2008-01-18 Ian Lance Taylor <iant@google.com>
17350 * common.opt: Add fmerge-debug-strings.
17351 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
17352 flag_merge_debug_strings rather than flag_merge_constants.
17353 * doc/invoke.texi (Option Summary): Mention
17354 -fmerge-debug-strings.
17355 (Debugging Options): Document -fmerge-debug-strings.
17357 2008-01-18 Ian Lance Taylor <iant@google.com>
17360 * tree.h (DECL_IS_OPERATOR_NEW): Define.
17361 (struct tree_function_decl): Add new field operator_new_flag.
17362 * tree-inline.c (expand_call_inline): When inlining a call to
17363 operator new, force the return value to go into a variable, and
17364 set DECL_NO_TBAA_P on that variable.
17365 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
17367 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
17370 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
17371 DWARF2_DEBUGGING_INFO.
17372 (dwarf2out_note_section_used): Ditto. Add prototype.
17373 (have_multiple_function_sections, text_section_used,
17374 cold_text_section_used, *cold_text_sections): Move declarations
17377 2008-01-17 Bob Wilson <bob.wilson@acm.org>
17379 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
17380 field and add signal_ra.
17381 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
17382 assignments to frame state pc. Move end of stack check after
17383 MD_FALLBACK_FRAME_STATE_FOR.
17384 (uw_update_context_1): Use frame state signal_regs if set, instead
17385 of checking signal_frame flag.
17386 (uw_update_context): Use frame state signal_ra if set.
17387 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
17388 * config/xtensa/linux-unwind.h: New file.
17390 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
17392 * modulo-sched.c (get_sched_window): Fix comment typo.
17394 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
17396 PR tree-optimization/34648
17397 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
17399 2008-01-17 Anatoly Sokolov <aesok@post.ru>
17401 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
17402 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
17404 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
17406 PR rtl-optimization/34400
17407 * df-core.c (df_worklist_dataflow_overeager,
17408 df_worklist_dataflow_doublequeue): New functions.
17409 (df_worklist_dataflow): Two different worklist solvers.
17410 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
17413 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17416 * doc/invoke.texi: Document the dependence on pthread for fopenmp
17417 and ftree-parallelize-loops.
17419 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
17421 PR rtl-optimization/34826
17422 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
17424 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
17426 * global.c (find_reg): Mark the eh regs as used if necessary.
17427 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
17428 * ra.h (struct allocno): no_eh_reg field added. Changed
17429 no_stack_reg type to bitfield.
17431 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
17433 * tree.c (substitute_in_expr): Add missing 'break'.
17435 2008-01-17 Richard Guenther <rguenther@suse.de>
17437 PR tree-optimization/34825
17438 * tree-ssa-math-opts.c (is_division_by): Do not recognize
17439 x / x as division to handle.
17441 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17443 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
17444 "-pthread" is specified.
17445 * pa-hpux11.h (LIB_SPEC): Likewise.
17447 2008-01-16 Janis Johnson <janis187@us.ibm.com>
17448 Peter Bergner <bergner@vnet.ibm.com>
17450 PR rtl-optimization/33796
17451 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
17453 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17455 PR libgfortran/34699
17456 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
17458 * pa-hpux10.h (LINK_SPEC): Likewise.
17459 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
17461 2008-01-16 Richard Guenther <rguenther@suse.de>
17463 PR middle-end/32628
17464 * fold-const.c (fold_convert_const_int_from_int): Do not
17465 set overflow if that occured only because of a sign extension
17466 change when converting from/to a sizetype with the same
17467 precision and signedness.
17469 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
17472 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
17473 location address to the correct place. Update copyright year.
17475 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17477 * lambda-code.c (lambda_transform_legal_p): Handle the case of
17478 no dependences in the dependence_relations vector.
17480 2008-01-16 Jan Hubicka <jh@suse.cz>
17482 PR rtl-optimization/31396
17483 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
17484 * cfg.c (dump_reg_info): Print it.
17485 * regs.h (struct reg_info_t): add freq_calls_crossed.
17486 (REG_FREQ_CALLS_CROSSED): New macro.
17487 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
17488 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
17489 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
17490 regmove_optimize): Update call crossed frequencies.
17491 * local-alloc.c (struct qty): Add freq_calls_crossed.
17492 (alloc_qty): Copute freq_calls_crossed.
17493 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
17494 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
17495 * ra.h (struct allocno): Add freq_calls_crossed.
17497 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17499 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
17500 libgomp when compiling with ftree-parallelize-loops.
17501 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
17503 2008-01-16 Richard Guenther <rguenther@suse.de>
17505 PR tree-optimization/34769
17506 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
17507 * tree.c (int_cst_value): Instead make this function more
17508 permissive in what it accepts as valid input. Document this
17509 function always sign-extends the value.
17511 2008-01-16 Jakub Jelinek <jakub@redhat.com>
17512 Richard Guenther <rguenther@suse.de>
17515 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
17516 (gimple_fold_indirect_ref_rhs): ... this.
17517 (gimple_fold_indirect_ref): New function with foldings
17518 that preserve lvalueness.
17519 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
17520 * tree-flow.h (gimple_fold_indirect_ref): Declare.
17521 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
17522 to fold an INDIRECT_REF, fall back to the old use of
17523 fold_indirect_ref_1.
17525 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17527 * tree-data-ref.c (subscript_dependence_tester_1): Call
17528 free_conflict_function.
17529 (compute_self_dependence): Same.
17531 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
17534 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
17535 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
17537 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
17538 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
17539 for DWARF2_UNWIND_INFO targets.
17541 2008-01-16 Richard Guenther <rguenther@suse.de>
17544 * c-typeck.c (common_pointer_type): Do not merge inconsistent
17545 type qualifiers for function types.
17547 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
17549 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
17550 loop_iterator li from previous commit.
17552 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
17554 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
17556 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
17558 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
17559 (parallelize_loops): Don't parallelize irreducible components.
17561 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17564 * c-opts (c_common_post_options): Do not enable CPP
17565 flag_pedantic_errors by default.
17567 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
17569 PR rtl-optimization/31944
17570 * cse.c (remove_pseudo_from_table): New function.
17571 (merge_equiv_classes): Use above function to remove pseudo-registers.
17572 (invalidate): Likewise.
17574 2008-01-13 Richard Guenther <rguenther@suse.de>
17576 PR middle-end/34601
17577 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
17578 instead of TYPE_MODE to deal with calls from expand_one_error_var.
17580 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
17582 * gcse.c (cprop_jump): Call validate_unshare_change instead of
17583 validate_change to unshare the source of the PC set.
17585 2008-01-12 Jan Hubicka <jh@suse.cz>
17587 PR middle-end/32135
17588 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
17589 references above array bounds. This might trigger bounds checks for
17590 pointers to arrays.
17592 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
17594 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
17595 new_replaceable_dependencies.
17597 2008-01-12 Doug Kwan <dougkwan@google.com>
17599 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
17600 instead of OPT_Wreturn_type in warning due to ignored return type
17602 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
17603 options included in -Wextra.
17604 * c.opt: New option -Wignored_qualifiers.
17605 * doc/invoke.texi (Warning Options, -Wextra): Add new option
17606 -Wignore_qualifiers.
17607 (-Wignored-qualifiers): Document.
17608 (-Wreturn-type): Remove description of functionality now handled
17609 by -Wignored-qualifiers.
17611 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
17614 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
17615 NOP_EXPR if it is between integral types with the same precision.
17617 2008-01-12 Jan Hubicka <jh@suse.cz>
17620 * invoke.texi (max-inline-recursive-depth): Fix default value.
17622 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
17624 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
17627 2008-01-11 Bob Wilson <bob.wilson@acm.org>
17629 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
17631 2008-01-11 James E. Wilson <wilson@specifix.com>
17634 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
17636 2008-01-11 Anatoly Sokolov <aesok@post.ru>
17638 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
17639 save/restore frame pointer register and don't use 'call-prologues'
17640 optimization in function with "OS_task" attribute.
17642 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
17644 PR middle-end/31309
17645 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
17646 when copying to memory.
17648 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
17650 PR rtl-optimization/30905
17651 * cfgcleanup.c: Include dce.h
17652 (crossjumps_occured): New global variable.
17653 (try_crossjump_bb): Exit loop after finding a fallthru edge.
17654 If something changed, set crossjumps_occured to true.
17655 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
17656 Don't add/remove fake edges to exit here...
17657 (cleanup_cfg): ...but do it here, when crossjumping.
17658 Run a fast DCE when successful crossjumps occured in the latest
17659 iteration of try_optimize_cfg.
17661 2008-01-11 Richard Guenther <rguenther@suse.de>
17663 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
17664 (struct vn_unary_op_s): Likewise.
17665 (vn_reference_insert): Free old reference on hash collision.
17667 2008-01-10 Raksit Ashok <raksit@google.com>
17669 PR rtl-optimization/27971
17670 * combine.c (find_split_point): Split PLUS expressions which are
17671 inside a MEM rtx, and whose first operand is complex.
17673 2008-01-10 DJ Delorie <dj@redhat.com>
17675 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
17676 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
17677 (m32c_hard_regno_ok): Call the underlying function.
17679 2008-01-10 Richard Guenther <rguenther@suse.de>
17681 PR middle-end/34683
17682 * tree-cfg.c (tree_merge_blocks): Do not go through the
17683 full-blown folding and stmt updating path if we just deal
17684 with virtual operands.
17685 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
17686 test for abnormal SSA_NAMEs.
17688 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
17690 PR middle-end/34641
17691 * reload.c (push_reload): Add assertions. All constants from
17692 reg_equiv_constant should have been used for replacing the respective
17694 (find_reloads_address): Invoke find_reloads_address_part for
17695 constant taken from the reg_equiv_constant array.
17697 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
17699 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
17700 field (valnum) the first in the struct. Replace bools with
17703 2008-01-10 Richard Guenther <rguenther@suse.de>
17705 PR tree-optimization/34651
17706 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
17707 types and ordering for masking and converting.
17709 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
17711 PR tree-optimization/34017
17712 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
17713 also for PHI_NODE expressions.
17715 2008-01-09 Jan Hubicka <jh@suse.cz>
17717 PR tree-optimization/34708
17718 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
17719 based on number of case labels.
17720 (init_inline_once): Remove switch_cost.
17721 * tree-inline.h (eni_weights_d): Remove switch_cost.
17723 2008-01-09 Richard Guenther <rguenther@suse.de>
17724 Andrew Pinski <andrew_pinski@playstation.sony.com>
17726 PR middle-end/30132
17727 * gimplify.c (gimplify_cond_expr): Do not create an addressable
17728 temporary if an rvalue is ok or an lvalue is not required.
17730 2008-01-09 Richard Guenther <rguenther@suse.de>
17732 PR middle-end/34458
17733 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
17734 adjust return type.
17736 2008-01-09 Richard Guenther <rguenther@suse.de>
17738 PR middle-end/34679
17739 * tree.c (host_integerp): Check for sizetype only if the
17740 type is an integer type.
17742 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
17745 * opts.c (decode_options): Disable inlining of functions called
17746 once if not in unit-at-a-time mode.
17748 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
17750 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
17752 2008-01-08 Richard Guenther <rguenther@suse.de>
17754 PR middle-end/31863
17755 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
17756 out early if the result will be unused.
17758 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
17763 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17764 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17767 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
17769 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
17770 for vectorization tuned.
17772 2008-01-08 Richard Guenther <rguenther@suse.de>
17774 PR tree-optimization/34683
17775 * tree-ssa-operands.c (operand_build_cmp): Export.
17776 * tree-ssa-operands.h (operand_build_cmp): Declare.
17777 * tree-vn.c (vuses_compare): Remove.
17778 (sort_vuses): Use operand_build_cmp.
17779 (sort_vuses_heap): Likewise.
17780 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
17781 to re-use old VEC if available. Do not sort already sorted VUSEs.
17782 (vdefs_to_vec): Do not sort already sorted VDEFs.
17784 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17786 PR middle-end/34694
17787 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
17789 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
17792 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
17793 limitations of reciprocal sequences on x86 targets.
17795 2008-01-08 Richard Guenther <rguenther@suse.de>
17797 PR tree-optimization/34683
17798 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
17800 2008-01-07 Jakub Jelinek <jakub@redhat.com>
17803 * config/darwin.c (darwin_mergeable_string_section): Don't use
17804 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
17806 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
17809 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
17810 negxf2. Macroize expander using X87MODEF mode iterator. Change
17811 predicates of op0 and op1 to register_operand.
17812 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
17813 expander using X87MODEF mode iterator. Change predicates of
17814 op0 and op1 to register_operand.
17815 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
17816 corresponding patterns and macroize using MODEF macro. Change
17817 predicates of op0 and op1 to register_operand and remove
17818 "m" constraint. Disparage "r" alternative with "!".
17819 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
17820 macroize using X87MODEF macro. Change predicates of op0 and op1
17821 to register_operand and remove "m" constraint. Disparage "r"
17822 alternative with "!".
17823 (absneg splitter with memory operands): Remove.
17824 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
17825 patterns and macroize using X87MODEF mode iterator.
17826 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
17827 Change predicate of op1 to register_operand.
17828 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
17829 for memory operands.
17831 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
17833 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
17835 2008-01-07 Richard Guenther <rguenther@suse.de>
17837 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
17840 2008-01-07 Richard Guenther <rguenther@suse.de>
17842 PR tree-optimization/34683
17843 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
17844 VOPs of the needed size to save memory. Use VEC_quick_push
17845 to save compile-time.
17846 (vdefs_to_vec): Likewise.
17848 2008-01-07 Sa Liu <saliu@de.ibm.com>
17850 * config/spu/spu.md (divdf3): Genetate inline code for double
17851 division. The implementation doesn't handle INF or NAN, therefore it
17852 only applies when -ffinite-math-only is given.
17854 2008-01-06 Paolo Carlini <pcarlini@suse.de>
17857 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17858 * doc/cpp.texi ([Common Predefined Macros]): Document.
17860 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
17862 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17863 order to use commutative addition instead of subtraction.
17865 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
17866 Mircea Namolaru <namolaru@il.ibm.com>
17867 Vladimir Yanovsky <yanov@il.ibm.com>
17868 Revital Eres <eres@il.ibm.com>
17870 PR tree-optimization/34263
17871 * tree-outof-ssa.c (process_single_block_loop_latch,
17872 contains_tree_r): New functions.
17873 (analyze_edges_for_bb): Call process_single_block_loop_latch
17874 function to empty single-basic-block latch block if possible.
17876 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17878 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17880 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17882 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17884 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17886 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17888 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17890 2008-01-05 Jakub Jelinek <jakub@redhat.com>
17892 PR tree-optimization/34618
17893 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17896 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17899 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17900 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
17901 Update copyright year.
17903 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17904 Update copyright year.
17905 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17908 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
17910 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17911 edge does not point to current bb before changing need_assert.
17913 2008-01-04 Richard Guenther <rguenther@suse.de>
17915 PR middle-end/34029
17916 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17917 for verifying purposes if they are is_gimple_min_invariant.
17919 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
17921 PR tree-optimization/34448
17922 PR tree-optimization/34465
17923 * gimplify.c (gimplify_init_constructor): Add new parameter
17924 notify_temp_creation. Use it.
17925 (gimplify_modify_expr_rhs): Take volatiles into account when
17926 optimizing constructors.
17927 Do not optimize constructors if gimplify_init_constructor will dump to
17929 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17930 * gcc.c-torture/compile/pr34448.c: New.
17932 2008-01-04 Jakub Jelinek <jakub@redhat.com>
17934 PR gcov-profile/34609
17935 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17936 return_slot if result is TREE_ADDRESSABLE.
17938 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
17940 * config/mips/mips.md (sqrt_condition): Tweak comment.
17941 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
17943 2008-01-03 Tom Tromey <tromey@redhat.com>
17946 * c-common.c (c_type_hash): Handle VLAs.
17948 2008-01-03 Jan Hubicka <jh@suse.cz>
17950 PR tree-optimization/31081
17951 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17952 0 when inlining and not inlining to first basic block.
17953 (remap_decl): When var is initialized to 0, don't set default_def.
17954 (expand_call_inline): Set entry_bb.
17955 * tree-inline.h (copy_body_data): Add entry_bb.
17957 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17960 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17963 PR tree-optimization/29484
17964 * tree-inline.c (inline_forbidden_p_2): New function.
17965 (inline_forbidden_p): Disallow inlining if some static var
17966 has an address of a local LABEL_DECL in its initializer.
17967 * doc/extend.texi (Labels as Values): Document &&foo behaviour
17970 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
17972 PR tree-optimization/34635
17973 * tree-data-ref.c (add_other_self_distances): Make sure that the
17974 evolution step is constant.
17976 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17978 PR middle-end/34608
17979 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17981 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
17983 * tree-sra.c (scalarize_init): Insert the generate_element_init
17984 statements after the generate_element_zero statements.
17986 2008-01-02 Richard Guenther <rguenther@suse.de>
17988 PR middle-end/34093
17989 PR middle-end/31976
17990 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17991 for very large number of operands instead of ICEing.
17993 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
17996 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17997 while stack probing.
17999 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
18001 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
18004 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
18006 PR libmudflap/26442
18007 * tree-mudflap.c (mx_register_decls): Guard warning by
18008 !DECL_ARTIFICIAL check.
18010 2008-01-01 Jakub Jelinek <jakub@redhat.com>
18012 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
18013 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
18014 sse5_perm<mode>): Fix constraints.