1 2008-05-31 Anatoly Sokolov <aesok@post.ru>
3 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
7 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
8 stack pointer register.
9 (output_movhi): Remove code for interrupt specific writing to the
10 stack pointer register.
12 2008-05-31 Richard Guenther <rguenther@suse.de>
14 PR tree-optimization/34244
15 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
16 (tree_expr_nonzero_warnv_p): Likewise.
17 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
18 ssa_name_nonnegative_p.
19 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
20 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
21 not tree_expr_nonzero_warnv_p.
23 PR tree-optimization/36262
25 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
27 PR tree-optimization/34244
28 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
29 (record_numbers_of_iterations): New function.
30 (execute_vrp): Cache the numbers of iterations of loops.
31 * tree-scalar-evolution.c (scev_reset_except_niters):
33 (scev_reset): Use scev_reset_except_niters.
34 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
36 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
38 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
39 __WORKAROUND_RETS when appropriate.
41 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
43 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
44 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
46 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
47 *fop_df_comm_sse insn patterns using MODEF mode iterator.
48 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
49 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
50 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
51 *fop_df_1_mixed insn patterns using MODEF mode iterator.
52 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
53 *fop_df_1_sse insn patterns using MODEF mode iterator.
54 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
55 *fop_df_1_i387 insn patterns using MODEF mode iterator.
56 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
57 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
58 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
59 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
60 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
61 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
62 (*fop_xf_4_i387): Use <MODE> for mode attribute.
63 (*fop_xf_5_i387): Ditto.
64 (*fop_xf_6_i387): Ditto.
66 2008-05-30 Richard Guenther <rguenther@suse.de>
68 * builtins.c (build_string_literal): Avoid generating
69 a non-gimple_val result.
71 2008-05-30 DJ Delorie <dj@redhat.com>
73 * exec-tool.in: Use an environment variable (private) instead of a
74 file (shared) as a semaphore, so as to not break parallel builds.
76 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
78 * optabs.c (maybe_encapsulate_block): Remove.
79 (emit_libcall_block): Adjust accordingly.
80 * optabs.h (maybe_encapsulate_block): Remove prototype.
82 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
83 Don't use maybe_encapsulate_block.
85 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
87 * config/rs6000/rs6000.c (rs6000_legitimize_address,
88 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
89 rtx is a SYMBOL_REF before calling get_pool_constant.
91 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
93 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
95 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
97 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
98 rather than OS names to choose INO_T_EQ definition.
99 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
100 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
102 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
105 * config/darwin-f.c: New.
106 * config/t-darwin: Added rule to build darwin-f.o.
107 * config.gcc: Defined new variable, fortran_target_objs.
108 (*-*-darwin*): Set fortran_target_objs.
109 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
110 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
111 * configure: Regenerated.
113 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
116 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
117 canonical type if needed.
119 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
121 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
123 2008-05-29 Richard Guenther <rguenther@suse.de>
125 PR tree-optimization/36343
126 PR tree-optimization/36346
127 PR tree-optimization/36347
128 * tree-flow.h (clobber_what_p_points_to): Declare.
129 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
130 pointed-to variable is dereferenced is irrelevant to whether
131 the pointer can access the pointed-to variable.
132 (clobber_what_p_points_to): New function.
133 * tree-ssa-alias.c (set_initial_properties): Use it.
134 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
135 call clobber check for NMTs.
137 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
139 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
140 for printing gcov_type.
142 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
144 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
145 and the eh region information.
146 * value-prof.c (gimple_move_stmt_histograms): New function.
147 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
149 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
151 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
153 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
155 * value-prof.c (tree_ic_transform): Print counts.
156 * tree-profile.c (tree_gen_ic_func_profiler):
157 Clear __gcov_indreict_call_callee variable to avoid misattribution
160 2008-05-28 Rafael Espindola <espindola@google.com>
162 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
165 2008-05-28 Richard Guenther <rguenther@suse.de>
167 PR tree-optimization/36339
168 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
169 and clobbering code out of the loop.
171 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
173 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
176 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
177 s390_contiguous_bitmask_p, s390_symref_operand_p,
178 s390_check_symref_alignment, s390_reload_larl_operand,
179 s390_reload_symref_address): New functions.
180 (s390_branch_condition_mnemonic): Support compare and branch
182 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
184 (s390_secondary_reload): Add secondary reloads for unaligned
185 symbol refs or symbol refs to floating point or QI/TI mode
187 (legitimate_address_p): Accept symbol references as addresses.
188 (s390_expand_insv): Use rotate and insert selected bits
189 instruction for insv when building for z10.
190 (print_operand_address): Handle symbol ref addresses.
191 (print_operand): Output modifier 'c' added for signed byte values.
192 (s390_encode_section_info): Mark symbol refs with
193 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
195 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
196 (length attribute): RRF, RRR have 4 byte length.
197 (FPALL, INTALL): New mode iterators added.
198 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
199 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
200 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
201 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
202 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
203 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
204 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
205 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
207 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
208 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
209 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
210 reload<INTALL:mode><P:mode>_toreg_z10,
211 reload<FPALL:mode><P:mode>_tomem_z10,
212 reload<FPALL:mode><P:mode>_toreg_z10,
213 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
214 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
215 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
216 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
218 (movmem, clrmem, cmpmem): New splitters added.
220 * config/s390/predicates.md (larl_operand): Use
221 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
223 (s390_signed_integer_comparison,
224 s390_unsigned_integer_comparison): New predicates.
226 * config/s390/s390-protos.h (s390_check_symref_alignment,
227 s390_contiguous_bitmask_p, s390_reload_larl_operand,
228 s390_reload_symref_address,
229 s390_compare_and_branch_condition_mask): Prototypes added.
231 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
232 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
233 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
235 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
237 * config/s390/s390.c (z10_cost): New cost function for z10.
238 (s390_handle_arch_option, override_options): Support -march=z10 switch.
239 (s390_issue_rate): Adjust issue rate for z10.
240 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
241 (processor_flags): Add PF_Z10.
242 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
243 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
244 * gcc/config.gcc: Add z10.
246 2008-05-28 Richard Guenther <rguenther@suse.de>
248 PR tree-optimization/36291
249 * tree-flow. h (struct gimple_df): Remove var_anns member.
250 * tree-flow-inline.h (gimple_var_anns): Remove.
252 * tree-dfa.c (create_var_ann): Simplify.
253 (remove_referenced_var): Clear alias info from var_anns of globals.
254 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
255 (delete_tree_ssa): Clear alias info from var_anns of globals.
256 Do not free var_anns.
257 (var_ann_eq): Remove.
258 (var_ann_hash): Likewise.
260 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
262 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
263 and loongson2f entries.
264 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
265 * config/mips/mips.h (processor_type): Add Loongson-2E
266 and Loongson-2F entries.
267 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
268 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
269 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
270 * doc/invoke.texi (MIPS Options): Document loongson2e
271 and loongson2f processor names.
273 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
277 * config/i386/i386.c (ix86_function_arg_boundary): Use
278 alignment of canonical type.
279 (ix86_expand_vector_move): Check unaligned memory access for
282 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
284 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
285 Moved to the front of file.
287 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
288 H.J. Lu <hongjiu.lu@intel.com>
290 * dwarf2out.c (current_fde): New.
292 (lookup_cfa:): Likewise.
293 (dwarf2out_end_epilogue): Likewise.
294 (dwarf2out_note_section_used): Likewise.
296 2008-05-27 Michael Matz <matz@suse.de>
299 * c.opt (Wenum-compare): New warning option.
300 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
302 2008-05-27 Michael Matz <matz@suse.de>
305 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
307 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
308 into memory as tail calls.
310 2008-05-27 Richard Guenther <rguenther@suse.de>
312 PR tree-optimization/36339
313 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
314 pointers cause all addressable variables to be call clobbered.
316 2008-05-27 Richard Guenther <rguenther@suse.de>
318 PR tree-optimization/36245
319 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
321 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
323 * config/s390/s390.md: Replace all occurences of the 'm'
324 constraint with 'RT'.
326 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
328 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
330 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
332 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
333 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
334 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
336 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
338 * reload.c: (find_reloads): Skip alternatives according to the
339 "enabled" attribute. Constify the constraint variable.
340 * recog.c (get_attr_enabled): Add default implementation.
341 (extract_insn): Set the alternative_enabled_p array
342 in the recog_data struct.
343 (preprocess_constraints, constrain_operands): Skip
344 alternatives according to the "enabled" attribute
345 * recog.h (struct recog_data): New field alternative_enabled_p.
346 (skip_alternative): New inline function.
347 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
348 (record_reg_classes): Skip alternative according to the
351 * doc/md.texi: Add documention for the "enabled" attribute.
353 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
355 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
356 * postreload.c (reload_cse_simplify_operands): Replace 'm'
357 constraint with TARGET_MEM_CONSTRAINT.
358 * recog.c (asm_operand_ok, preprocess_constraints,
359 constrain_operands): Likewise.
360 * regclass.c (record_reg_classes): Likewise.
361 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
362 * reload1.c (maybe_fix_stack_asms): Likewise.
363 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
364 * recog.h: Adjust comment.
365 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
366 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
367 * doc/md.texi: Add a note to description of 'm' constraint.
368 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
370 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
372 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
373 that the bitfield is of integral type before testing its precision.
375 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
376 Sa Liu <saliu@de.ibm.com>
378 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
379 __modti3, __udivti3, __umodti3 and __udivmodti4.
380 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
381 that implement TImode mul and div functions.
382 * config/spu/multi3.c: New. Implement __multi3.
383 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
384 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
387 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
389 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
390 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
391 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
392 tls_sysv_suffix): New mode and mode attribute iterators.
393 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
394 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
395 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
396 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
397 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
400 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
402 PR tree-optimization/36329
403 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
404 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
405 * cgraphbuild.c (initialize_inline_failed): Use the latter
406 macro in lieu of the former.
407 * ipa-inline.c (cgraph_mark_inline): Likewise.
408 (cgraph_decide_inlining_of_small_function): Likewise.
409 (cgraph_decide_inlining): Likewise.
410 (cgraph_decide_inlining_incrementally): Likewise.
412 2008-05-26 Tristan Gingold <gingold@adacore.com>
413 Anatoly Sokolov <aesok@post.ru>
415 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
416 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
417 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
418 optimization for 'avr6' architecture.
420 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
423 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
425 2008-05-26 Richard Guenther <rguenther@suse.de>
427 * tree-ssa-sccvn.c (expr_has_constants): Declare.
428 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
430 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
433 * caller-save.c (insert_restore): Verify alignment of spill space.
434 (insert_save): Likewise.
435 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
436 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
437 (STACK_SLOT_ALIGNMENT): Likewise.
438 * function.c (LOCAL_ALIGNMENT): Removed.
439 (get_stack_local_alignment): New.
440 (assign_stack_local): Use it. Set alignment on stack slot.
441 (assign_stack_temp_for_type): Use get_stack_local_alignment.
442 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
443 (STACK_SLOT_ALIGNMENT): New.
444 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
445 stack slot in XFmode.
447 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
449 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
452 * config/i386/i386.md (allocate_stack_worker_64): Make sure
453 argument operand in rax isn't removed.
455 2008-05-26 Richard Guenther <rguenther@suse.de>
458 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
459 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
461 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
464 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
466 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
468 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
469 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
471 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
473 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
474 build a trampoline if we don't want one.
475 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
476 return zero for nested functions if we don't want a trampoline.
478 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
480 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
482 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
485 * c.opt: Removed undocumented option '-lang-fortran'.
486 * c-common.h: Removed global variable 'lang_fortran'.
487 * c-opts.c (c_common_handle_option): Removed code to handle
488 option '-lang-fortran'. Updated includes.
489 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
490 definition of '__GFORTRAN__'.
491 (define__GNUC__): Reimplemented to use BASEVER and
492 cpp_define_formatted.
493 (builtin_define_with_value_n): Removed.
494 * c-incpath.h: Renamed to ...
495 * incpath.h: ... this.
496 * c-incpath.c: Renamed to ...
497 * incpath.c: ... this. Updated includes.
498 * fix-header.c: Updated includes.
499 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
500 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
501 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
503 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
505 * tree.h: Update the table of flags used on tree nodes.
506 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
507 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
508 (FORCED_LABEL): Add access check.
509 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
510 (ASM_INPUT_P): Likewise.
511 (ASM_VOLATILE_P): Likewise.
512 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
513 (OMP_SECTION_LAST): Access private_flag directly.
514 (OMP_RETURN_NOWAIT): Likewise.
515 (OMP_PARALLEL_COMBINED): Likewise.
516 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
517 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
518 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
519 deprecated_flag directly.
521 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
523 * final.c (frame_pointer_needed): Removed.
524 * flags.h (frame_pointer_needed): Likewise.
526 * function.h (rtl_data): Add frame_pointer_needed.
527 (frame_pointer_needed): New.
529 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
531 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
533 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
535 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
538 2008-05-25 Alan Modra <amodra@bigpond.net.au>
540 * c-common.c (strip_array_types): Move function to..
542 (get_inner_array_type): Delete.
543 * c-common.h (strip_array_types): Move declaration to..
545 (get_inner_array_type): Delete.
546 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
547 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
548 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
549 * config/pa/pa.c (emit_move_sequence): Likewise.
551 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
553 * config/i386/i386.md (*sse_prologue_save_insn): Set length
556 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
558 * function.c: Include target hook for nonlocal_goto frame value.
560 2008-05-24 Richard Guenther <rguenther@suse.de>
562 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
563 variable can be only accessed through a pointer or a union.
565 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
567 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
568 * doc/extend.texi: Likewise.
570 2008-05-23 DJ Delorie <dj@redhat.com>
572 * config/m32c/jump.md (untyped_call): Add.
574 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
576 (m32c_address_cost): Detail costs for indirect offsets.
578 2008-05-23 Rafael Espindola <espindola@google.com>
580 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
581 if a node is a SUBREG.
582 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
585 2008-05-23 Paul Brook <paul@codesourcery.com>
586 Carlos O'Donell <carlos@codesourcery.com>
588 * doc/extend.texi: Clarify use of __attribute__((naked)).
589 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
590 * target.h (gcc_target): Add allocate_stack_slots_for_args.
591 * function.c (use_register_for_decl): Use
592 targetm.calls.allocate_stack_slots_for_args.
593 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
594 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
595 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
597 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
599 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
601 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
603 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
604 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
605 is only rounded once.
607 2008-05-23 Richard Guenther <rguenther@suse.de>
609 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
611 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
612 Jakub Jelinek <jakub@redhat.com>
615 * configure.ac: Handle --enable-cld.
616 * configure: Regenerated.
617 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
618 * config/i386/i386.h (struct machine_function): Add needs_cld field.
619 (ix86_current_function_needs_cld): New define.
620 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
621 (cld): New isns pattern.
622 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
623 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
624 * config/i386/i386.opt (mcld): New option.
625 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
626 TARGET_CLD and ix86_current_function_needs_cld.
627 (override_options): Use -mcld by default for 32-bit code if
630 * doc/install.texi (Options specification): Document --enable-cld.
631 * doc/invoke.texi (Machine Dependent Options)
632 [i386 and x86-64 Options]: Add -mcld option.
633 (Intel 386 and AMD x86-64 Options): Document -mcld option.
635 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
636 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
637 (return_in_memory_64): Likewise.
638 (return_in_memory_ms_64): Likewise.
640 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
642 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
643 * builtins.c (fold_builtin_fpclassify): New.
644 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
645 * builtins.def (BUILT_IN_FPCLASSIFY): New.
646 * c-common.c (handle_type_generic_attribute): Adjust to accept
647 fixed arguments before an elipsis.
648 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
649 * doc/extend.texi: Document __builtin_fpclassify.
651 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
653 * omp-low.c (gate_expand_omp_ssa): Remove.
654 (pass_expand_omp_ssa): Remove.
655 (gate_expand_omp): Do not check for flag_openmp_ssa.
656 * common.opt (-fopenmp-ssa): Remove.
657 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
659 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
661 * config/sh/sh.opt (mfixed-range): New option.
662 * config/sh/sh-protos.h (sh_fix_range): Declare.
663 * config/sh/sh.c (sh_fix_range): New function.
664 * config/sh/sh.h (sh_fixed_range_str): Declare.
665 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
667 * doc/invoke.texi (SH Options): Document -mfixed-range.
669 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
671 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
672 it before the redeclaration.
674 2008-05-22 Anatoly Sokolov <aesok@post.ru>
676 * config/avr/avr.c (get_sequence_length): Add new function.
677 (expand_prologue, expand_epilogue): Remove duplicate code.
679 2008-05-22 Rafael Espindola <espindola@google.com>
681 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
684 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
686 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
687 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
689 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
690 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
691 (vect_update_misalignment_for_peel): Likewise.
692 (vector_alignment_reachable_p): Likewise.
693 * tree-vect-transform.c (vectorizable_load): Likewise.
694 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
695 (get_vectype_for_scalar_type): Pass mode of scalar_type
696 to UNITS_PER_SIMD_WORD.
698 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
699 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
700 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
701 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
702 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
704 2008-05-22 Ira Rosen <irar@il.ibm.com>
706 PR tree-optimization/36293
707 * tree-vect-transform.c (vect_transform_strided_load): Don't check
708 if the first load must be skipped because of a gap.
710 2008-05-22 Richard Guenther <rguenther@suse.de>
712 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
713 more cases of offset disambiguation that is possible if
714 strict-aliasing rules apply.
715 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
716 for basic offset and type-based disambiguation.
718 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
720 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
721 ix86_expand_vector_set on V16QImode for SSE4.1.
723 2008-05-21 Tom Tromey <tromey@redhat.com>
725 * c.opt (Wimport): Mark as undocumented.
726 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
728 (Warning Options): Likewise.
729 * doc/cppopts.texi: Don't mention -Wimport.
731 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
733 PR tree-optimization/36287
734 PR tree-optimization/36286
735 * lambda-code.c (build_access_matrix): Do not use the loop->num
736 for computing the number of induction variables: use the loop depth
739 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
742 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
743 option -f(no-)leading-underscore.
745 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
747 * config/i386/i386.c (ix86_expand_vector_init_general): Use
748 GET_MODE_NUNITS (mode).
750 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
752 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
753 (-mmulhw): Add 464 to description.
755 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
756 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
758 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
759 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
760 * config/rs6000/rs6000.md: Update comments for 464.
762 2008-05-21 Janis Johnson <janis187@us.ibm.com>
764 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
766 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
768 * config/i386/sse.md (vec_extractv4sf): Removed.
769 (vec_extractv2df): Likewise.
770 (vec_extractv2di): Likewise.
771 (vec_extractv4si): Likewise.
772 (vec_extractv8hi): Likewise.
773 (vec_extractv16qi): Likewise.
774 (vec_extract<mode>): New.
776 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
778 * config/i386/sse.md (vec_setv4sf): Removed.
779 (vec_setv2df): Likewise.
780 (vec_setv2di): Likewise.
781 (vec_setv4si): Likewise.
782 (vec_setv8hi): Likewise.
783 (vec_setv16qi): Likewise.
784 (vec_set<mode>): New.
786 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
788 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
789 goto for vec_concat and vec_interleave.
791 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
793 * config/i386/sse.md (vec_initv4sf): Removed.
794 (vec_initv2df): Likewise.
795 (vec_initv2di): Likewise.
796 (vec_initv4si): Likewise.
797 (vec_initv8hi): Likewise.
798 (vec_initv16qi): Likewise.
799 (vec_init<mode>): New.
801 2008-05-21 Joseph Myers <joseph@codesourcery.com>
803 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
805 2008-05-21 Tom Tromey <tromey@redhat.com>
807 * ggc-zone.c (lookup_page_table_if_allocated): New function.
808 (zone_find_object_offset): Likewise.
809 (gt_ggc_m_S): Likewise.
810 (highest_bit): Likewise.
811 * ggc-page.c (gt_ggc_m_S): New function.
812 * stringpool.c (string_stack): Remove.
813 (init_stringpool): Update.
814 (ggc_alloc_string): Use ggc_alloc.
815 (maybe_delete_ident): New function.
816 (ggc_purge_stringpool): Likewise.
817 (gt_ggc_m_S): Remove.
818 * ggc-common.c (ggc_protect_identifiers): New global.
819 (ggc_mark_roots): Call ggc_purge_stringpool. Use
820 ggc_protect_identifiers.
821 * ggc.h (ggc_protect_identifiers): Declare.
822 (gt_ggc_m_S): Update.
823 (ggc_purge_stringpool): Declare.
824 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
825 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
827 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
829 2008-05-21 David S. Miller <davem@davemloft.net>
831 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
834 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
836 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
839 2008-05-20 David Daney <ddaney@avtrex.com>
841 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
842 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
843 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
844 UNSPEC_UPDATE_GOT_VERSION): Renumber.
845 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
846 (atomic_hiqi_op): New define_code_iterator.
847 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
848 mips_expand_compare_and_swap_12.
849 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
850 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
851 (sync_<optab><mode>, sync_old_<optab><mode>,
852 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
853 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
854 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
855 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
856 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
857 (test_and_set_12): New insn.
858 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
859 sync_new_<optab><mode>, sync_old_nand<mode>,
860 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
861 clobber to operand 0 for SI and DI mode insns.
862 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
863 mips_gen_fn_4): New typedefs.
864 (mips_gen_fn_ptrs): Define new union type.
865 (mips_expand_compare_and_swap_12): Remove declaration.
866 (mips_expand_atomic_qihi): Declare function.
867 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
868 (mips_expand_atomic_qihi): ... this. Use new generator function
870 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
871 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
872 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
873 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
874 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
875 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
876 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
877 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
878 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
879 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
882 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
884 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
887 2008-05-20 Anatoly Sokolov <aesok@post.ru>
889 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
890 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
891 (avr_attribute_table): Add 'OS_main' function attribute.
892 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
893 functions with 'OS_main' attribute.
895 2008-05-20 Richard Guenther <rguenther@suse.de>
897 PR tree-optimization/35204
898 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
899 helper, split out from ...
900 (DFS): ... here. Make the DFS walk non-recursive.
902 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
903 Jan Sjodin <jan.sjodin@amd.com>
905 PR tree-optimization/36181
906 * tree-parloops.c (loop_has_vector_phi_nodes): New.
907 (parallelize_loops): Don't parallelize when the loop has vector
910 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
911 Sebastian Pop <sebastian.pop@amd.com>
913 * tree-loop-linear.c (gather_interchange_stats): Look in the access
914 matrix, and never look at the tree representation of the memory
916 (linear_transform_loops): Computes parameters and access matrices.
917 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
919 (access_matrix_get_index_for_parameter): New.
920 * tree-data-ref.h (struct access_matrix): New.
921 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
922 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
923 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
924 am_vector_index_for_loop): New.
925 (struct data_reference): Add field access_matrix.
926 (DR_ACCESS_MATRIX): New.
927 (compute_data_dependences_for_loop): Update declaration.
928 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
929 * lambda.h (lambda_vector_vec_p): Declared.
930 * lambda-code.c: Depend on pointer-set.h.
931 (lambda_collect_parameters_from_af, lambda_collect_parameters,
932 av_for_af_base, av_for_af, build_access_matrix,
933 lambda_compute_access_matrices): New.
934 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
936 2008-05-20 Joseph Myers <joseph@codesourcery.com>
938 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
941 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
942 Sebastian Pop <sebastian.pop@amd.com>
944 PR tree-optimization/36206
945 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
947 (instantiate_scev_1): Rename flags to fold_conversions.
948 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
949 outeside instantiation_loop.
950 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
951 (evolution_function_is_affine_or_constant_p): Removed.
952 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
954 (analyze_siv_subscript): Pass in the loop nest number.
955 Call evolution_function_is_affine_in_loop instead of
956 evolution_function_is_affine_p.
957 (analyze_overlapping_iterations): Pass in the loop nest number.
959 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
960 Sebastian Pop <sebastian.pop@amd.com>
962 PR tree-optimization/36206
963 * tree-chrec.h (chrec_fold_op): New.
964 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
967 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
969 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
971 (remove_duplicates): Do not set inode on non-inode systems.
974 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
976 * config.gcc (tm_file): Update comments about relative pathnames.
978 2008-05-20 Richard Guenther <rguenther@suse.de>
980 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
981 * tree-ssa-sccvn.c (process_scc): Likewise.
982 * tree-ssa-sink.c (execute_sink_code): Likewise.
983 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
984 * tree-vrp.c (process_assert_insertions): Likewise.
985 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
986 (perform_tree_ssa_dce): Likewise.
987 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
988 (dump_dominator_optimization_stats): Likewise.
989 * tree-vectorizer.c (vectorize_loops): Likewise.
991 2008-05-20 Richard Guenther <rguenther@suse.de>
993 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
995 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
997 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
998 (ix86_i386elf_return_in_memory): Likewise.
999 (ix86_i386interix_return_in_memory): Likewise.
1000 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
1001 (SUBTARGET_RETURN_IN_MEMORY): New.
1002 * config/i386/i386elf.h: Likewise.
1003 * config/i386/ptx4-i.h: Likewise.
1004 * config/i386/sol2-10.h: Likewise.
1005 * config/i386/sysv4.h: Likewise.
1006 * config/i386/vx-common.h: Likewise.
1007 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
1008 * config/i386/i386.c (ix86_return_in_memory): Made static and
1009 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
1010 (ix86_i386elf_return_in_memory): Removed.
1011 (ix86_i386interix_return_in_memory): Removed.
1012 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
1013 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
1015 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
1017 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
1019 2008-05-19 Xinliang David Li <davidxl@google.com>
1021 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
1023 * common.opt: Ditto.
1024 * doc/invoke.texi: Ditto.
1026 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
1028 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
1029 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
1031 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
1033 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
1034 sizes of operand array from 8/4 to 4/2.
1035 (ix86_expand_vector_init_general): Change size of operand array
1036 from 32 to 16. Remove op0, op1 and half_mode.
1038 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
1040 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
1041 (ix86_expand_vector_init_interleave): Likewise.
1042 (ix86_expand_vector_init_general): Use them. Assert
1043 word_mode == SImode when n_words == 4.
1045 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
1047 * config/i386/i386.c (ix86_secondary_reload): New static function.
1048 (TARGET_SECONDARY_RELOAD): New define.
1049 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
1050 * config/i386/i386.md (reload_outqi): Remove.
1052 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1055 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
1056 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
1057 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
1058 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
1059 (fold_builtin_1): Likewise.
1060 * builtins.def (BUILT_IN_ISINF_SIGN): New.
1061 c-common.c (check_builtin_function_arguments): Handle
1062 BUILT_IN_ISINF_SIGN.
1063 * doc/extend.texi: Document __builtin_isinf_sign.
1064 * fold-const.c (operand_equal_p): Handle COND_EXPR.
1066 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
1068 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
1069 EH cleanup at the end of the pass, search for those that have been
1070 turned into forwarder blocks and do the cleanup on their successor.
1072 2008-05-18 Richard Guenther <rguenther@suse.de>
1074 * tree-cfg.c (verify_gimple_expr): Allow conversions from
1075 pointers to sizetype and vice versa.
1077 2008-05-18 Xinliang David Li <davidxl@google.com>
1079 * gcc/tree-ssa-dce.c: Coding style fix.
1080 (check_pow): Documentation comment.
1081 (check_log): Documenation comment. Coding style fix.
1082 (is_unnecessary_except_errno_call): Ditto.
1083 (gen_conditions_for_pow): Ditto.
1084 (gen_conditions_for_log): Ditto.
1085 (gen_shrink_wrap_conditions): Ditto.
1086 (shrink_wrap_one_built_in_calls): Ditto.
1087 * gcc/doc/invoke.texi: Better documentation string.
1088 * ChangeLog: Fix wrong change log entries from
1089 May 17 checkin on function call DCE.
1091 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
1093 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
1095 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
1097 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
1098 * df-problems.c (simulation routines): Fixed block comment to
1099 properly say how to add forwards scanning functions.
1101 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
1103 * tree-inline.c (setup_one_parameter): Remove dead code.
1105 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
1107 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
1108 a BIT_AND_EXPR only for an INTEGER_TYPE.
1110 2008-05-17 Xinliang David Li <davidxl@google.com>
1112 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
1113 (check_pow, check_log, is_unnecessary_except_errno_call): New
1114 functions to check for eliminating math functions that are pure
1115 except for setting errno.
1116 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
1117 general condition expressions for shrink-wrapping pow/log calls.
1118 (gen_shrink_wrap_conditions): Ditto.
1119 (shrink_wrap_one_built_in_call): Ditto.
1120 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
1121 (mark_operand_necessary): If debugging, output if OP is necessary.
1122 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
1124 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
1126 * gcc/common.opt: New user flag -ftree-builtin-dce.
1127 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
1129 2008-05-16 David S. Miller <davem@davemloft.net>
1131 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
1132 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1134 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
1137 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
1139 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
1141 * ifcvt.c (dead_or_predicable): Rename
1142 df_simulate_one_insn_backwards to df_simulate_one_insn.
1143 * recog.c (peephole2_optimize): Ditto.
1144 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
1146 * df.h: Rename df_simulate_one_insn_backwards to
1147 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
1148 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
1149 scanning of defs and uses.
1150 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
1151 (df_simulate_one_insn_forwards): Removed.
1153 2008-05-16 Doug Kwan <dougkwan@google.com>
1155 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
1157 (real_from_string): Handle NaNs and Inf as approriate.
1159 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
1161 * doc/gty.texi (Source Files Containing Type Information): Note
1162 that headers should appear first in the gtfiles list.
1164 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
1166 * tree.def (COND_EXEC): Properly documented this code.
1168 2008-05-16 Diego Novillo <dnovillo@google.com>
1170 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
1171 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
1174 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
1176 * tree-ssa-dse (max_stmt_uid): Removed.
1177 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
1178 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
1179 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
1180 * function.h (cfun.last_stmt_uid): New field.
1181 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
1182 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
1184 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
1185 (create_stmt_ann): Initialize the ann->uid field.
1186 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
1188 * tree-flow.h (renumber_gimple_stmt_uids): New function.
1190 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
1192 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
1193 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
1194 (init_empty_tree_cfg): Call it.
1196 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
1198 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
1201 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
1203 * doc/invoke.text (-fdump-tree-*-verbose): New option.
1204 * tree-dump.c (dump_options): New verbose option.
1205 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
1207 * tree-pass.h (TDF_VERBOSE): New dump flag.
1208 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
1209 (tree-flow.h): Added include.
1210 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
1212 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
1214 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
1216 From Jie Zhang <jie.zhang@analog.com>
1217 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1218 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
1219 mcpu=bf561-none and mcpu=bf561-0.2.
1220 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1221 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1222 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1223 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1224 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
1225 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
1226 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
1228 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
1229 (cputype_selected): Remove.
1230 (bfin_handle_option): Don't use cputype_selected.
1231 (override_options): When no mcpu option, enable all workarounds.
1232 Don't use bfin_workarounds.
1233 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
1235 (DEFAULT_CPU_TYPE): Don't define.
1237 2008-05-16 Richard Guenther <rguenther@suse.de>
1239 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
1240 on deletion of the last stmt.
1242 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
1244 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
1245 V8HImode for SSE2 and V16QImode for SSE4.1.
1247 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
1249 * cgraph.h (compute_inline_parameters): Made public.
1250 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
1251 variable_generate_summary, function_write_summary,
1252 variable_write_summary, variable_read_summary. Added generate_summary,
1253 write_summary, read_summary.
1254 * cgraphunit.c (cgraph_process_new_functions): Changed call from
1255 pass_ipa_inline.function_generate_summary, to
1256 compute_inline_parameters.
1257 * ipa-inline.c (compute_inline_parameters): Made public and added
1259 (compute_inline_parameters_for_current): New function.
1260 (pass_inline_param): Now calls compute_inline_parameters_for_current.
1261 (inline_generate_summary): Removed parameter and made to loop over
1263 (pass_ipa_inline): Updated for new IPA_PASS structure.
1264 * passes.c (execute_ipa_summary_passes): Now is called once per
1265 pass rather than once per node*pass.
1267 2008-05-15 Anatoly Sokolov <aesok@post.ru>
1269 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
1270 avr_have_mul_p, avr_asm_only_p): Remove variables.
1271 (avr_override_options): Remove initialization of removed variables.
1272 (avr_file_start): Convert removed variables to fields of
1273 'struct base_arch_s *avr_current_arch'.
1274 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
1275 (AVR_HAVE_MUL): (Ditto.).
1276 (AVR_HAVE_MOVW): (Ditto.).
1277 (AVR_HAVE_LPMX): (Ditto.).
1278 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
1279 avr_asm_only_p): Remove declaration.
1281 2008-05-15 Diego Novillo <dnovillo@google.com>
1283 * config/arm/arm.c (arm_return_in_memory): Fix return type.
1284 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
1286 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
1289 * combine.c (check_conversion): Rename back to check_promoted_subreg.
1290 Don't call record_truncated_value from here.
1291 (record_truncated_value): Turn it into a for_each_rtx callback.
1292 (record_truncated_values): New function.
1293 (combine_instructions): Call note_uses with record_truncated_values.
1294 Change name of check_conversion to check_promoted_subreg.
1296 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1298 * doc/sourcebuild.texi: Document support for torture tests.
1300 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
1302 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
1303 to alternative 4 of operand 2.
1305 2008-05-15 Richard Guenther <rguenther@suse.de>
1307 * tree-pass.h (current_pass): Declare.
1308 (get_pass_for_id): Likewise.
1309 * passes.c (passes_by_id, passes_by_id_size): New globals.
1310 (set_pass_for_id): New function.
1311 (get_pass_for_id): Likewise.
1312 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
1313 (execute_function_todo): Flush per function statistics.
1314 * toplev.c (compile_file): Init statistics.
1315 (general_init): Do early statistics initialization.
1316 (finalize): Finish statistics.
1317 * statistics.h (statistics_early_init): Declare.
1318 (statistics_init): Likewise.
1319 (statistics_fini): Likewise.
1320 (statistics_fini_pass): Likewise.
1321 (statistics_counter_event): Likewise.
1322 (statistics_histogram_event): Likewise.
1323 * statistics.c: New file.
1324 * Makefile.in (OBJS-common): Add statistics.o.
1325 (statistics.o): Add dependencies.
1326 * doc/invoke.texi (-fdump-statistics): Document.
1328 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
1330 (execute_pre): Use statistics_counter_event.
1331 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
1332 (substitute_and_fold): Increment it. Use statistics_counter_event.
1334 2008-05-15 Diego Novillo <dnovillo@google.com>
1336 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
1338 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
1339 * tree-ssa-alias.c (new_type_alias): Remove references to
1340 sub-variables from comment.
1341 * tree-ssa-operands.c (swap_tree_operands): Likewise.
1343 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
1345 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
1346 attribute to 1 only for insertps alternative.
1348 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
1350 * config/bfin/bfin.md (loadbytes): New pattern.
1351 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
1352 (bfin_init_builtins): Initialize it.
1353 (bdesc_1arg): Add it.
1355 2008-05-15 Sa Liu <saliu@de.ibm.com>
1357 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
1358 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
1359 * testsuite/lib/target-supports.exp: Add
1360 check_effective_target_fortran_integer_16.
1362 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
1364 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
1365 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
1366 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
1367 (TARGET_RETURN_IN_MEMORY): Define.
1369 2008-05-15 Richard Guenther <rguenther@suse.de>
1372 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
1373 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
1374 represent unmodifiable vars.
1376 2008-05-15 Richard Guenther <rguenther@suse.de>
1378 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
1379 INDIRECT_REF and TARGET_MEM_REF.
1380 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1383 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
1384 H.J. Lu <hongjiu.lu@intel.com>
1386 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
1387 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
1388 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
1389 insn alternatives. Add missing alternatives.
1390 (*vec_concatv2di_rex64_sse4_1): Likewise.
1391 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
1392 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
1395 2008-05-15 Richard Guenther <rguenther@suse.de>
1397 PR tree-optimization/36009
1398 PR tree-optimization/36204
1399 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
1400 (determine_invariantness_stmt): Record the loop a store is
1402 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
1405 2008-05-15 Richard Guenther <rguenther@suse.de>
1407 PR tree-optimization/34330
1408 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
1409 through the pointer will alias the SMT.
1411 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
1413 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
1415 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
1417 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
1419 2008-05-14 Michael Meissner <michael.meissner@amd.com>
1420 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1422 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
1423 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
1424 (vashl_optab): New optab for vector/vector shifts.
1425 (vashr_optab): Ditto.
1426 (vlshr_optab): Ditto.
1427 (vrotl_optab): Ditto.
1428 (vrotr_optab): Ditto.
1429 (optab_subtype): New enum for optab_for_tree_code call.
1430 (optab_for_tree_code): Add enum optab_subtype argument.
1432 * optabs.c (optab_for_tree_code): Take an additional argument to
1433 distinguish between a vector shift by a scalar and vector shift by
1434 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
1435 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
1436 vector shift by a vector.
1437 (expand_widen_pattern_expr): Pass additional argument to
1438 optab_for_tree_code.
1440 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
1441 vrotl_optab, vrotr_optab.
1443 * expr.c (expand_expr_real_1): Update calls to
1444 optab_for_tree_code to distinguish between vector shifted by a
1445 scalar and vector shifted by a vector.
1446 * tree-vectorizer.c (supportable_widening_operation): Ditto.
1447 (supportable_narrowing_operation): Ditto.
1448 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
1449 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
1450 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
1451 (vect_create_epilog_for_reduction): Ditto.
1452 (vectorizable_reduction): Ditto.
1453 (vectorizable_operation): Ditto.
1454 (vect_strided_store_supported): Ditto.
1455 (vect_strided_load_supported): Ditto.
1456 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1457 * expmed.c (expand_shift): Ditto.
1459 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
1461 (ashr@var{m}3): Ditto.
1462 (vashl@var{m}3): Document new vector/vector shift standard name.
1463 (vashr@var{m}3): Ditto.
1464 (vlshr@var{m}3): Ditto.
1465 (vrotl@var{m}3): Ditto.
1466 (vrotr@var{m}3): Ditto.
1468 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
1469 (PPERM_INVERT): Ditto.
1470 (PPERM_REVERSE): Ditto.
1471 (PPERM_REV_INV): Ditto.
1472 (PPERM_ZERO): Ditto.
1473 (PPERM_ONES): Ditto.
1474 (PPERM_SIGN): Ditto.
1475 (PPERM_INV_SIGN): Ditto.
1476 (PPERM_SRC1): Ditto.
1477 (PPERM_SRC2): Ditto.
1479 * config/i386/sse.md (mulv2di3): Add SSE5 support.
1480 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
1481 allows a memory operand to be the value being added, and split it
1482 to improve vectorization.
1483 (sse5_pmacsdqh_mem): Ditto.
1484 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
1485 (sse5_mulv2div2di3_high): Ditto.
1486 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
1487 (vec_pack_trunc_v4si): Ditto.
1488 (vec_pack_trunc_v2di): Ditto.
1489 (sse5_pcmov_<mode>): Remove code that tried to use use
1490 andps/andnps instead of pcmov.
1491 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
1492 pmacsdqh instructions.
1493 (vec_widen_smult_lo_v4si): Ditto.
1495 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
1496 (PPERM_INVERT): Ditto.
1497 (PPERM_REVERSE): Ditto.
1498 (PPERM_REV_INV): Ditto.
1499 (PPERM_ZERO): Ditto.
1500 (PPERM_ONES): Ditto.
1501 (PPERM_SIGN): Ditto.
1502 (PPERM_INV_SIGN): Ditto.
1503 (PPERM_SRC1): Ditto.
1504 (PPERM_SRC2): Ditto.
1505 (ix86_expand_sse_movcc): Move the SSE5 test after the if
1507 (ix86_expand_int_vcond): If SSE5 generate all possible integer
1509 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
1510 says ignore whether the last reference is a memory operand.
1512 2008-05-14 Michael Meissner <michael.meissner@amd.com>
1513 Paolo Bonzini <bonzini at gnu dot org>
1515 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
1518 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
1519 (vlshr<mode>3): Rename from vlshr<mode>3.
1520 (vashr<mode>3): Rename from vashr<mode>3.
1521 (mulv4sf3): Change the names of vector shift patterns.
1525 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
1528 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
1553 * config/spu/spu.md (v): New iterator macro to add v for vector types.
1554 (floatunssidf2_internal): Change vector/vector shift names.
1555 (floatunsdidf2_internal): Ditto.
1562 (vashl<mode>3): Rename from ashl<mode>3.
1563 (vashr<mode>3): Rename from ashr<mode>3.
1564 (vlshr<mode>3): Rename from lshr<mode>3.
1565 (vrotl<mode>3): Rename from rotl<mode>3.
1567 2008-05-14 Michael Meissner <michael.meissner@amd.com>
1570 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
1571 multiply gives the wrong value when doing widening multiplies.
1572 (vec_widen_smult_lo_v4si): Ditto.
1574 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
1576 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
1577 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
1578 emit_library_call_value.
1579 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
1580 * tree.h (ECF_LIBCALL_BLOCK): Removed.
1581 * calls.c (initialize_argument_information, precompute_arguments,
1582 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
1583 (precompute_arguments): Removed flags parameter.
1584 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
1586 2008-05-14 Richard Guenther <rguenther@suse.de>
1588 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
1589 Make sure to register the store if the use is a PHI_NODE.
1591 2008-05-14 Olivier Hainque <hainque@adacore.com>
1593 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
1594 memory if the component is to be referenced in BLKmode according
1595 to get_inner_reference.
1597 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
1599 * calls.c (emit_library_call_value_1): Restore code clearing
1600 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
1602 2008-05-14 Olivier Hainque <hainque@adacore.com>
1603 Nicolas Roche <roche@adacore.com>
1605 * configure.ac: Add support for a "gcc_subdir" variable in
1606 config-lang.in, to denote a subdirectory where the language/GCC
1607 integration files are to be found.
1608 * configure: Regenerate.
1610 2008-05-14 Ira Rosen <irar@il.ibm.com>
1612 PR tree-optimization/36098
1613 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
1614 value for the first load in the group in case of a gap.
1615 (vect_build_slp_tree): Check that there are no gaps in loads.
1617 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
1619 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
1620 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
1621 expand_copysign_bit, ): Change call to emit_no_conflict_block to
1622 emit_insn and remove unneeded code to construct extra args.
1623 (emit_no_conflict_block): Removed.
1624 * optabls.h: (emit_no_conflict_block): Removed.
1625 * cse.c (cse_extended_basic_block): Remove search for
1626 REG_NO_CONFLICT note.
1627 * global.c: Removed incorrect comment added in revision 117.
1628 * expr.c (convert_move): Change call to emit_no_conflict_block to
1630 * recog.c: Change comments so that they do not mention
1632 * local_alloc.c (combine_regs): Removed last parameter.
1633 (no_conflict_p): Removed.
1634 (block_alloc): Removed note, no_conflict_combined_regno and set
1635 local vars. Removed all code to process REG_NO_CONFLICT blocks.
1636 (combine_regs): Removed already_dead and code to look for
1637 REG_NO_CONFLICT notes.
1638 * lower_subreg (remove_retval_note): Removed code to look for
1639 REG_NO_CONFLICT block.
1640 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
1641 (resolve_clobber): Remove code to process libcalls that have
1642 REG_NO_CONFLICT notes.
1643 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
1645 * combine.c (can_combine_p, distribute_notes): Removed
1646 REG_NO_CONFLICT case.
1647 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
1649 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
1650 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
1652 * reg-notes.def (NO_CONFLICT): Removed.
1654 2008-05-14 David S. Miller <davem@davemloft.net>
1656 * config/sparc/sparc.c (sparc_profile_hook): If
1657 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
1658 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
1659 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1661 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
1663 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
1665 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
1668 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
1669 and op1 expansion before vector concat to have less live pseudos.
1671 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
1673 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
1674 ix86_expand_vector_set if supported.
1676 2008-05-13 Diego Novillo <dnovillo@google.com>
1677 Kenneth Zadeck <zadeck@naturalbridge.com>
1679 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
1681 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
1682 phinodes_print_statistics, init_ssanames, fini_ssanames,
1683 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
1684 release_ssa_name, release_defs, replace_ssa_name_symbol,
1685 ssanames_print_statistics): Move ...
1686 * tree-flow.h: ... here.
1687 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
1688 Use FN instead of cfun.
1689 (make_ssa_name_fn): Rename from make_ssa_name.
1690 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
1691 * tree-flow-inline.h (make_ssa_name): Move from
1692 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
1693 * omp-low.c (expand_omp_parallel):
1694 * tree-flow-inline.h (redirect_edge_var_map_result):
1695 * tree-ssa.c (init_tree_ssa): Add argument FN.
1696 Use it instead of cfun. Update all users.
1698 2008-05-13 Tom Tromey <tromey@redhat.com>
1700 PR preprocessor/22168:
1701 * doc/cpp.texi (Top): Update menu.
1702 (Alternatives to Wrapper #ifndef): New node.
1703 (Other Directives): Document deprecation.
1704 (Obsolete Features): Remove menu.
1705 (Assertions): Merge node into Obsolete Features.
1706 (Obsolete once-only headers): Move earlier; rename to Alternatives
1708 * doc/cppopts.texi: Update.
1709 * c.opt (Wdeprecated): Enable for C and ObjC.
1710 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
1711 (C++ Dialect Options): Move -Wno-deprecated from here to...
1712 (Warning Options): ... here.
1714 2008-05-13 Richard Guenther <rguenther@suse.de>
1717 * fold-const.c (fold_sign_changed_comparison): Do not allow
1718 changes in pointer-ness.
1720 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
1723 * config/sh/sh.c (sh_expand_prologue): Don't clear
1724 RTX_FRAME_RELATED_P for push insns.
1726 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
1728 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
1730 2008-05-12 Anatoly Sokolov <aesok@post.ru>
1732 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
1733 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
1734 Use 'machine->is_leaf' instead of 'leaf_func_p'.
1736 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
1738 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
1739 (*vec_concatv4sf_sse): This.
1740 (*sse2_concatv2si): Renamed to ...
1741 (*vec_concatv2si_sse2): This.
1742 (*sse1_concatv2si): Renamed to ...
1743 (*vec_concatv2si_sse): This.
1744 (*vec_concatv2di_rex): Renamed to ...
1745 (*vec_concatv2di_rex64): This.
1746 (*vec_concatv2si_sse4_1): New.
1747 (*vec_concatv2di_rex64_sse4_1): Likewise.
1749 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
1751 PR rtl-optimization/36111
1752 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
1753 that was created for swappable operands.
1755 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
1758 * Makefile.in: Substitute GNATMAKE and GNATBIND.
1759 * configure.ac: Add call to ACX_PROG_GNAT.
1761 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
1763 * optc-gen.awk: Fix comment typo.
1765 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1767 * pretty-print.c (pp_integer_with_precision): Use
1768 HOST_LONG_LONG_FORMAT.
1770 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
1772 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
1774 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
1776 * config/i386/i386.c (bdesc_ptest): Removed.
1777 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
1778 (bdesc_args): Add __builtin_ia32_ptestz128,
1779 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
1780 (ix86_init_mmx_sse_builtins): Updated.
1781 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
1782 (ix86_expand_builtin): Updated.
1784 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1786 * tree-cfg.c (valid_fixed_convert_types_p): New function.
1787 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
1789 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
1791 * value-prof.c (interesting_stringop_to_profile): Do not
1792 return early for BUILT_IN_MEMPCPY.
1794 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
1796 * calls.c (expand_call): Don't use callgraph to increase
1797 preferred_stack_boundary.
1799 * cgraph.h (cgraph_rtl_info): Use unsigned on
1800 preferred_incoming_stack_boundary.
1802 * final.c (rest_of_clean_state): Use unsigned on
1803 preferred_stack_boundary.
1805 2008-05-09 Tom Tromey <tromey@redhat.com>
1807 PR preprocessor/22231:
1808 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
1811 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
1813 PR tree-optimization/36129
1814 * tree-ssa-ccp.c: Include value-prof.h.
1815 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
1816 built-in function was folded to a constant.
1817 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
1819 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
1820 Sebastian Pop <sebastian.pop@amd.com>
1822 * tree-scalar-evolution.c: Document instantiate_scev.
1823 (instantiate_parameters_1): Renamed instantiate_scev_1.
1824 Don't use the same loop for instantiation_loop and evolution_loop.
1825 (instantiate_scev): New.
1826 (instantiate_parameters): Moved...
1827 (resolve_mixers): Update call to instantiate_scev_1 to pass the
1828 same loop twice. Maintains the semantics for this function.
1829 * tree-scalar-evolution.h (instantiate_scev): Declare.
1830 (instantiate_parameters): ...here. Now static inline.
1831 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
1832 instead of resolve_mixers.
1834 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
1836 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
1838 2008-05-09 Tomas Bily <tbily@suse.cz>
1840 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
1841 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
1842 * tree-ssa-structalias.c (get_constraint_for): Likewise.
1843 * c-common.c (c_common_truthvalue_conversion): Likewise.
1844 * tree-object-size.c (compute_object_offset): Likewise.
1845 * tree-inline.c (estimate_num_insns_1): Likewise.
1846 * varasm.c (const_hash_1, compare_constant, copy_constant)
1847 (compute_reloc_for_constant, output_addressed_constants)
1848 (initializer_constant_valid_p): Likewise.
1849 * c-omp.c (check_omp_for_incr_expr): Likewise.
1850 * gimplify.c (gimplify_expr): Likewise.
1851 * c-typeck.c (c_finish_return): Likewise.
1852 * tree-vectorizer.c (supportable_widening_operation)
1853 (supportable_narrowing_operation): Likewise.
1854 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
1855 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
1856 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
1857 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
1858 (descr_info_loc): Likewise.
1859 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
1860 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
1861 (fold_unary): Likewise.
1862 * builtins.c (get_pointer_alignment): Likewise.
1863 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
1864 (instantiate_parameters_1): Likewise.
1865 * tree.c (expr_align, stabilize_reference): Likewise.
1866 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
1867 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1868 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
1869 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1870 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
1871 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
1873 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
1874 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
1875 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
1876 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
1877 (forward_propagate_comparison)
1878 (tree_ssa_forward_propagate_single_use_vars): Likewise.
1879 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
1880 * emit-rtl.c (component_ref_for_mem_expr)
1881 (set_mem_attributes_minus_bitpos): Likewise.
1882 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1883 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
1885 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
1886 (build_function_call, pointer_diff, build_compound_expr)
1887 (c_finish_return): Likewise.
1888 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
1889 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
1891 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
1892 * expr.c (is_aligning_offset): Likewise.
1893 * tree-ssa-alias.c (is_escape_site): Likewise.
1894 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
1895 (check_all_va_list_escapes): Likewise.
1896 * tree-ssa-loop-ivopts.c (determine_base_object)
1897 (determine_common_wider_type): Likewise.
1898 * dojump.c (do_jump): Likewise.
1899 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
1900 * tree-gimple.c (is_gimple_cast): Likewise.
1901 * fold-const.c (decode_field_reference, )
1902 (fold_sign_changed_comparison, fold_unary, fold_comparison)
1903 (fold_binary): Likewise.
1904 * tree-ssa-alias-warnings.c (find_alias_site_helper)
1905 (already_warned_in_frontend_p): Likewise.
1906 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
1907 * tree.c (really_constant_p, get_unwidened): Likewise.
1908 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
1909 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
1910 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
1912 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
1914 (CONVERT_EXPR_P): Define.
1915 (CASE_CONVERT): Define.
1917 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
1920 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
1921 (delete_unmarked_insns): When deleting a call, call
1922 delete_unreachable_blocks.
1923 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1924 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
1926 2008-05-08 Richard Guenther <rguenther@suse.de>
1928 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
1929 (-ftree-salias): Likewise.
1930 (salias-max-implicit-fields): Remove param documentation.
1931 (salias-max-array-elements): Likewise.
1932 * tree-pass.h (pass_create_structure_vars): Remove.
1933 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
1934 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
1935 * tree-ssa-alias.c (create_structure_vars): Remove.
1936 (gate_structure_vars): Likewise.
1937 (pass_create_structure_vars): Likewise.
1938 (gate_build_alias): Likewise.
1939 (pass_build_alias): Adjust to run always and dump the function.
1940 * common.opt (ftree-salias): Hide.
1941 * passes.c (init_optimization_passes): Remove
1942 pass_create_structure_vars, adjust comment.
1943 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
1944 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
1945 * opts.c (decode_options): Do not set flag_tree_salias.
1946 (common_handle_option): Add OPT_ftree_salias to the backward
1947 compatibility section.
1949 2008-05-08 Richard Guenther <rguenther@suse.de>
1951 * tree-flow-inline.h (var_can_have_subvars): Move ...
1952 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
1953 * tree-flow.h (var_can_have_subvars): Remove.
1954 (push_fields_onto_fieldstack): Remove.
1955 (sort_fieldstack): Likewise.
1956 (struct fieldoff): Move ...
1957 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
1958 alias_set and base_for_components fields.
1959 (sort_fieldstack): Make static.
1960 (push_fields_onto_fieldstack): Likewise. Remove code that
1961 handles anything but RECORD_TYPEs. Remove alias_set and
1962 base_for_components handling.
1963 (create_variable_info_for): Adjust.
1965 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
1967 * common.opt (Wframe-larger-than=): Shorten the help message
1969 * doc/invoke.texi (Wframe-larger-than=): Add more description.
1971 2008-05-08 Rafael Espindola <espindola@google.com>
1973 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
1975 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
1976 trap and that both operands are gimple values.
1977 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
1978 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
1981 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
1983 * read-rtl.c (join_c_conditions): Return the first string if the
1984 two strings are equal.
1986 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
1988 * gensupport.h (pred_data): Add a "num_codes" field.
1989 (add_predicate_code): Declare.
1990 * gensupport.c (add_predicate_code): New function.
1991 (std_pred_table): Add an "allows_const_p" field.
1992 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
1993 Remove the (incomplete) list of such codes from the codes field.
1994 (init_predicate_table): Use add_predicate_code. Add all
1995 RTX_CONST_OBJs if allows_const_p is true.
1996 * genrecog.c (process_define_predicate): Use add_predicate_code.
1998 2008-05-08 David Daney <ddaney@avtrex.com>
1999 Richard Sandiford <rsandifo@nildram.co.uk>
2001 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
2002 special case of constant zero operands.
2003 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
2004 old and new values. Special case constant zero values.
2005 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
2007 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
2008 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
2010 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
2013 * simplify-rtx.c (simplify_plus_minus): Create CONST of
2014 similar RTX_CONST_OBJ before CONST_INT.
2016 2008-05-08 Steve Ellcey <sje@cup.hp.com>
2018 * stmt.c (expand_stack_restore): Change sa mode if needed.
2020 2008-05-08 Richard Guenther <rguenther@suse.de>
2022 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
2023 return type to bool.
2024 (ix86_sol10_return_in_memory): Likewise.
2025 (ix86_i386elf_return_in_memory): Likewise.
2026 (ix86_i386interix_return_in_memory): Likewise.
2027 * config/i386/i386.c (ix86_return_in_memory): Likewise.
2028 (ix86_sol10_return_in_memory): Likewise.
2029 (ix86_i386elf_return_in_memory): Likewise.
2030 (ix86_i386interix_return_in_memory): Likewise.
2032 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
2035 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
2037 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
2038 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
2041 2008-05-08 Richard Guenther <rguenther@suse.de>
2043 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
2044 * tree-data-ref.h (struct dr_alias): Remove subvars field.
2045 (DR_SUBVARS): Remove.
2046 * tree-dfa.c (dump_subvars_for): Remove.
2047 (debug_subvars_for): Likewise.
2048 (dump_variable): Do not dump subvars.
2049 (remove_referenced_var): Do not remove subvars.
2050 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
2051 (lookup_subvars_for_var): Remove.
2052 (get_subvars_for_var): Likewise.
2053 (get_subvars_at): Likewise.
2054 (get_first_overlapping_subvar): Likewise.
2055 (overlap_subvar): Likewise.
2056 * tree-flow.h (subvar_t): Remove.
2057 (struct var_ann_d): Remove subvars field.
2058 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
2059 argument. Remove special handling of SFTs.
2060 (compute_tag_properties): Likewise.
2061 (set_initial_properties): Likewise.
2062 (compute_call_clobbered): Likewise.
2063 (count_mem_refs): Likewise.
2064 (compute_memory_partitions): Likewise.
2065 (compute_flow_insensitive_aliasing): Likewise.
2066 (setup_pointers_and_addressables): Likewise.
2067 (new_type_alias): Likewise.
2068 (struct used_part): Remove.
2069 (used_portions): Likewise.
2070 (struct used_part_map): Likewise.
2071 (used_part_map_eq): Likewise.
2072 (used_part_map_hash): Likewise.
2073 (free_used_part_map): Likewise.
2074 (up_lookup): Likewise.
2075 (up_insert): Likewise.
2076 (get_or_create_used_part_for): Likewise.
2077 (create_sft): Likewise.
2078 (create_overlap_variables_for): Likewise.
2079 (find_used_portions): Likewise.
2080 (create_structure_vars): Likewise.
2081 * tree.def (STRUCT_FIELD_TAG): Remove.
2082 * tree.h (MTAG_P): Adjust.
2083 (struct tree_memory_tag): Remove base_for_components and
2084 unpartitionable flags.
2085 (struct tree_struct_field_tag): Remove.
2086 (SFT_PARENT_VAR): Likewise.
2087 (SFT_OFFSET): Likewise.
2088 (SFT_SIZE): Likewise.
2089 (SFT_NONADDRESSABLE_P): Likewise.
2090 (SFT_ALIAS_SET): Likewise.
2091 (SFT_UNPARTITIONABLE_P): Likewise.
2092 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
2093 (union tree_node): Remove sft field.
2094 * alias.c (get_alias_set): Remove special handling of SFTs.
2095 * print-tree.c (print_node): Remove handling of SFTs.
2096 * tree-dump.c (dequeue_and_dump): Likewise.
2097 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
2098 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
2099 * tree-predcom.c (set_alias_info): Do not set subvars.
2100 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
2101 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
2102 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
2103 (add_vars_for_offset): Remove.
2104 (add_virtual_operand): Remove special handling of SFTs.
2105 (add_call_clobber_ops): Likewise.
2106 (add_call_read_ops): Likewise.
2107 (get_asm_expr_operands): Likewise.
2108 (get_modify_stmt_operands): Likewise.
2109 (get_expr_operands): Likewise.
2110 (add_to_addressable_set): Likewise.
2111 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
2112 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2113 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
2114 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
2115 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
2116 (tree_node_structure): Likewise.
2117 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
2119 (find_what_p_points_to): Likewise.
2121 2008-05-08 Sa Liu <saliu@de.ibm.com>
2123 * config/spu/spu.md: Fixed subti3 pattern.
2125 2008-05-08 Richard Guenther <rguenther@suse.de>
2128 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2129 sure to create a representative for trailing arrays for PTA.
2131 2008-05-08 Richard Guenther <rguenther@suse.de>
2134 * fold-const.c (operand_equal_p): Two objects which types
2135 differ in pointerness are not equal.
2137 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
2139 * calls.c (compute_argument_block_size): Add argument tree fndecl.
2140 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
2141 (emit_library_call_value_1): Add new variable fndecl initialized by
2142 NULL_TREE. It should be the decl type of orgfun, but this information
2143 seems not to be available here, so it uses the default calling abi.
2144 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
2145 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
2146 by TARGET_RETURN_IN_MEMORY.
2147 * config/i386/i386-interix.h: Likewise.
2148 * config/i386/i386.h: Likewise.
2149 * config/i386/i386elf.h: Likewise.
2150 * config/i386/ptx4-i.h: Likewise.
2151 * config/i386/sol2-10.h: Likewise.
2152 * config/i386/sysv4.h: Likewise.
2153 * config/i386/vx-common.h: Likewise.
2154 * config/cris/cris.h: Removed #if 0 clause.
2155 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
2156 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
2158 (ix86_sol10_return_in_memory): Likewise.
2159 (ix86_i386elf_return_in_memory): New.
2160 (ix86_i386interix_return_in_memory): New.
2161 * config/mt/mt-protos.h (mt_return_in_memory): New.
2162 * config/mt/mt.c: Likewise.
2163 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2164 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
2165 * config/bfin/bfin.h: Likewise.
2166 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
2168 * config/bfin/bfin.c: Likewise.
2169 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2170 * config/alpha/unicosmk.h: Likewise.
2171 * config/i386/cygming.h: Likewise.
2172 * config/iq2000/iq2000.h: Likewise.
2173 * config/mips/mips.h: Likewise.
2174 * config/mn10300/mn10300.h: Likewise.
2175 * config/rs6000/rs6000.h: Likewise.
2176 * config/score/score.h: Likewise.
2177 * config/spu/spu.h: Likewise.
2178 * config/v850/v850.h: Likewise.
2179 * defaults.h: Likewise.
2180 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
2181 * expr.c (emit_block_move): Adjust use of
2182 OUTGOING_REG_PARM_STACK_SPACE.
2183 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
2184 OUTGOING_REG_PARM_STACK_SPACE.
2185 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
2187 2008-05-08 Jakub Jelinek <jakub@redhat.com>
2189 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
2190 on OMP_RETURN for OMP_FOR.
2193 * dwarf2out.c (dw_expand_expr, common_check): Removed.
2194 (fortran_common): New function.
2195 (gen_variable_die): Call fortran_common instead of common_check,
2196 adjust for it returning tree instead of rtx. Formatting.
2198 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
2202 * see.c (see_copy_insn): Copy new pure const attributes for new call.
2203 * c-decl.c (merge_decls): Ditto.
2204 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
2205 to RTL_CONST_OR_PURE_CALL_P.
2206 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
2207 Initialized DECL_LOOPING_CONST_PURE.
2208 (process_call_operands): Set tree_side_effects properly.
2209 * tree.h (TREE_READONLY_DECL_P): Removed.
2210 (DECL_IS_PURE): Renamed to DECL_PURE_P.
2211 (DECL_LOOPING_OR_CONST_P): New macro.
2212 (struct tree_function_decl): Added looping_const_or_pure_p.
2214 (ECF_LOOPING_OR_CONST_P): New macro.
2215 * rtlanal.c (pure_const_p): Removed.
2216 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
2217 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
2218 to RTL_CONST_CALL_P.
2219 * ipa-pure-const.c (pure_const_state_e): Added looping field.
2220 (check_decl, check_tree, check_call, scan_function): Initialize
2222 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
2223 (static_execute): Set looping true for recursive functions.
2224 Undo setting state to IPA_NEITHER for recursive functions.
2226 * ifcvt.c (noce_can_store_speculate_p): Changed
2227 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
2228 RTL_CONST_OR_PURE_CALL_P.
2229 * dse.c (scan_insn): Ditto.
2230 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
2231 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
2232 RTL_CONST_OR_PURE_CALL_P.
2233 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
2234 pure_call_p to RTL_CONST_CALL_P.
2235 * gimplify.c (gimplify_call_expr): Clear side effects for
2236 non-looping pure and constant calls.
2237 * calls.c (emit_call_1): Set rtl flags from ecf flags.
2238 (flags_from_decl_or_type): Set ecf flags from decl flags.
2239 (initialize_argument_information): Turn off
2240 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
2241 Change const to pure if callee_copies is true rather than just
2243 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
2244 way of marking pure calls.
2245 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
2246 Remove hack that was supposed to fix pr7335 and remove old
2247 way of marking pure calls.
2248 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
2249 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
2250 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
2251 RTL_CONST_OR_PURE_CALL_P.
2252 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
2253 * loop-invariant.c (find_exits, find_invariant_bb): Changed
2254 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
2255 * sched-deps.c (schedule_analyze): Ditto.
2256 * rtl.h (struct rtx_def): Use call field, unchanging field, and
2257 return_val field of calls to represent pure and const function info.
2258 (CONST_OR_PURE_CALL_P): Deleted macro.
2259 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2260 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
2261 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
2263 * tree-optimize.c (execute_fixup_cfg): Added test for
2264 ECF_LOOPING_CONST_OR_PURE.
2265 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
2267 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
2268 effects for looping pure or const calls.
2269 (verify_gimple_expr): Added verification code.
2270 * config/alpha/alpha.c (alpha_legitimize_address,
2271 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
2273 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
2274 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
2275 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
2276 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
2277 RTL_CONST_OR_PURE_CALL_P.
2278 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
2279 and const calls to be deleted.
2281 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
2284 * config/i386/mmx.md (mmx_subv2sf3): New expander.
2285 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
2286 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
2287 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
2288 to handle nonimmediate operands.
2289 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
2290 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
2291 to handle nonimmediate operands.
2292 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
2293 (mmx_pmulhrwv4hi3): New expander. Use
2294 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2295 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
2296 (sse2_umulv1siv1di3): New expander. Use
2297 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2298 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
2299 (mmx_eq<mode>3): New expander. Use
2300 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2301 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
2302 (mmx_uavgv8qi3): New expander. Use
2303 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2304 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
2305 (mmx_uavgv4hi3): New expander. Use
2306 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2308 * config/i386/sse.md
2309 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
2310 to handle nonimmediate operands.
2311 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
2312 to handle nonimmediate operands.
2313 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
2314 to handle nonimmediate operands.
2315 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
2316 to handle nonimmediate operands.
2317 (sse2_unpckhpd_exp): New expander. Use
2318 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2319 (sse2_unpcklpd_exp): New expander. Use
2320 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2321 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
2322 to handle nonimmediate operands.
2323 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
2324 to handle nonimmediate operands.
2325 (*sse2_<plusminus_insn><mode>3): Rename from
2326 sse2_<plusminus_insn><mode>3 insn pattern.
2327 (sse2_<plusminus_insn><mode>3): New expander. Use
2328 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2329 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
2330 (sse2_umulv2siv2di3): New expander. Use
2331 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2332 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
2333 (sse4_1_mulv2siv2di3): New expander. Use
2334 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2335 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
2336 (sse2_pmaddwd): New expander. Use
2337 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2338 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
2339 (sse2_eq<mode>3): New expander. Use
2340 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2341 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
2342 (sse4_1_eqv2di3): New expander. Use
2343 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2344 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2345 (sse2_uavgv16qi3): New expander. Use
2346 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2347 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2348 (sse2_uavgv16qi3): New expander. Use
2349 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2350 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
2351 (sse2_uavgv8hi3): New expander. Use
2352 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2353 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
2354 (ssse3_pmulhrswv8hi3): New expander. Use
2355 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2356 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
2357 (ssse3_pmulhrswv4hi3): New expander. Use
2358 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2360 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
2361 (<sse>_vmmul<mode>3): Ditto.
2362 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
2364 (ssse3_pmaddubsw128): Use register_operand for operand 1.
2365 (ssse3_pmaddubsw): Ditto.
2367 * config/i386/i386.c (struct_builtin_description)
2368 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
2369 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
2370 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
2371 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
2372 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
2373 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
2374 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
2375 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
2376 (ix86_fixup_binary_operands): Assert that src1
2377 and src2 must have the same mode when swapped.
2378 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
2379 and ix86_binary_operator_ok. Do not force operands in registers
2382 2008-05-07 Jan Hubicka <jh@suse.cz>
2384 * cgraph.c (dump_cgraph_node): Update.
2385 * cgraph.h (cgraph_local_info): Break out inline summary.
2386 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
2388 * ipa-inline (inline_summary): New accestor function.
2389 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
2390 cgraph_decide_inlining, compute_inline_parameters): Update.
2391 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
2393 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2395 Cleanup ColdFire scheduling support and add V4 pipeline model.
2397 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
2398 (define_attr cpu): Add cfv4 value.
2399 (define_attr type, define_attr type1): Merge into a single 'type'
2400 attribute. Update all uses.
2401 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
2402 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
2404 (define_attr opx_mem, define_attr opy_mem): Remove.
2405 (define_attr op_mem): Clean up, update comment.
2406 (define_attr size): Use specific values instead of general int.
2407 (define_attr guess, define_attr split): Remove. Update all uses.
2408 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
2409 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
2410 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
2411 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
2412 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
2413 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
2414 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
2415 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
2416 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
2417 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
2418 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
2419 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
2420 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
2421 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
2422 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
2423 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
2424 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
2425 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
2426 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
2427 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
2428 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
2429 Update or set attributes.
2430 (stack_tie): New fake instruction.
2432 * config/m68k/m68k.h (TUNE_CFV4): New macro.
2433 (m68k_sched_attr_size): Update declaration.
2434 (m68k_sched_attr_type2): Remove.
2435 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
2436 Declare new bypass predicates.
2438 * config/m68k/m68k.c (m68k_sched_issue_rate,
2439 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
2441 (TARGET_SCHED_ISSUE_RATE,
2442 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
2443 (override_options): Handle scheduling for ColdFire V4 core.
2444 (m68k_expand_prologue): Emit stack_tie.
2445 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
2446 'OP_TYPE_FPN'. Update all uses.
2447 (sched_guess_p): Remove.
2448 (sched_address_type): Handle symbolic addresses.
2449 (sched_get_operand): New static function.
2450 (sched_operand_type): Merge into sched_attr_op_type.
2451 (sched_attr_op_type): Handle FP registers, handle quick constants,
2453 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
2454 (m68k_sched_attr_size): Update. Move logic to ...
2455 (sched_get_attr_size_int): New static function.
2456 (sched_get_opxy_mem_type): New static function.
2457 (m68k_sched_attr_op_mem): Update.
2458 (m68k_sched_attr_type2): Remove.
2459 (sched_cfv4_bypass_data): New static variable.
2460 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
2461 (m68k_sched_issue_rate): Implement scheduler hook.
2462 (struct _sched_ib: enabled_p): New field.
2463 (m68k_sched_variable_issue): Update. Handle V4.
2464 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
2465 sched_dump_class_func_t, sched_dump_split_class,
2466 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
2467 sched_dump_dfa_class, m68k_sched_dump): Remove.
2468 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
2470 (m68k_sched_init_global): Remove statisctics dumping, introduce
2471 sanity check that all instructions have pipeline reservations. Handle
2473 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2474 Handle ColdFire V4 core.
2475 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
2476 New static functions.
2477 (m68k_sched_address_bypass_p): New bypass predicate.
2478 (sched_get_indexed_address_scale): New static function.
2479 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
2481 * cf.md: Update comments.
2482 (define_attr type2): Remove. Use 'type' attribute instead.
2484 (cf_ib): Rename to cfv123_ib. Update all uses.
2485 (cf_oep): Rename to cfv123_oep. Update all uses.
2486 (cf_chr): Rename to cfv123_chr. Update all uses.
2487 (cf_mem): Rename to cfv123_mem. Update all uses.
2488 (cf_mac): Move to more appropriate place.
2489 (cfv123_guess): New automaton and cpu_unit.
2490 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
2491 Update uses of 'size' attribute. Handle before reload scheduling.
2492 (cfv123_guess): New dummy reservation for unhandled instructions.
2493 (cfv4_*): Pipeline description of ColdFire V4 core.
2494 (ignore): New reservation to handle 'ignore' type.
2496 2008-05-07 Ian Lance Taylor <iant@google.com>
2499 * gimplify.c (find_single_pointer_decl_1): Don't look through
2501 (find_single_pointer_decl): Adjust comments.
2503 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2506 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
2507 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
2510 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
2511 integral type rather than floating point, then VIEW_CONVERT_EXPR
2512 to the floating point type.
2514 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
2516 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
2517 TFmode op0 to register.
2519 2008-05-07 Alan Modra <amodra@bigpond.net.au>
2521 * c-decl.c (grokdeclarator): Comment typo.
2523 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
2525 * tree-flow.h: Remove prototype for computed_goto_p.
2526 * tree-cfg.c (computed_goto_p): Make static.
2528 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
2531 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
2532 (contains_aligned_value_p): This. Handle _Decimal128.
2533 (ix86_function_arg_boundary): Only align _Decimal128 to its
2534 natural boundary and handle it properly.
2536 2008-05-06 Martin Jambor <mjambor@suse.cz>
2538 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
2539 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
2540 (ipcp_method_set_orig_node): Removed.
2541 (ipcp_cval_get_cvalue_type): Removed.
2542 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
2543 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
2544 (ipcp_cval_set_cvalue_type): Removed.
2545 (ipcp_cval_get_cvalue): Removed.
2546 (ipcp_cval_set_cvalue): Removed.
2547 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
2548 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
2549 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
2550 (ipcp_cval_meet): Renamed to ipa_lattice_meet
2551 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
2552 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
2553 (ipcp_get_ith_lattice): Changed parameters.
2554 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
2555 (ipcp_lattice_from_jfunc): Changed parameters.
2556 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
2557 (ipcp_method_cval_print): Added temporary variable info.
2558 (ipcp_redirect): Removed already unused local variable caller.
2559 (ipcp_redirect): New temporary variable orig_callee_info
2560 (ipcp_redirect): Removed newly unused local variable callee.
2561 (ipcp_redirect): Removed (a bit confusing) local variable type.
2562 (ipcp_insert_stage): Added local variable info.
2563 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
2565 (ipcp_formal_create): Removed.
2566 (ipcp_method_cval_set): Removed.
2567 (ipcp_propagate_stage): Renamed lattice variables.
2568 (ipcp_method_cval_set_cvalue_type): Removed.
2569 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
2570 (ipcp_print_all_lattices): Changed printed strings to refer to
2571 lattices rather than cvals.
2572 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
2573 (ipcp_propagate_const): Changed formal parameters.
2574 (build_const_val): Changed formal parameters.
2575 (ipcp_insert_stage): Removed useless variable cvalue
2576 (build_const_val): Changed formal parameters.
2577 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
2578 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
2579 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
2580 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
2581 (ipcp_print_func_profile_counts): Changed string from "method" to
2583 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
2584 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
2585 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
2586 (ipcp_structures_print): Renamed to ipcp_print_all_structures
2587 (ipcp_profile_print): Renamed to ipcp_print_profile_data
2588 (ipcp_lat_is_const): Changed parameters and made inline.
2589 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
2590 (ipcp_redirect): Renamed to ipcp_need_redirect_p
2591 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
2592 the predicate condition directly
2593 (ipcp_propagate_stage): Added local variable args. Removed local
2594 variable callee. (Both are mere code simplifications.)
2595 (ipcp_method_dont_insert_const): Renamed to
2596 ipcp_node_not_modifiable_p.
2597 (ipcp_node_not_modifiable_p): Made inline.
2598 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
2599 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
2600 (ipcp_print_all_lattices): Removed variable cvalue
2601 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
2604 2008-05-06 Olivier Hainque <hainque@adacore.com>
2606 * tree-sra.c (try_instantiate_multiple_fields): Early return
2607 if field has POINTER_TYPE.
2609 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
2611 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
2612 by using 'q' specifier for instruction.
2613 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
2615 2008-05-06 Anatoly Sokolov <aesok@post.ru>
2617 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2618 Change mode of zero_extract from QImode to HImode.
2619 (sign bit tests peepholes): (Ditto.).
2621 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
2623 * config/i386/mmx.md: Remove double backslashes from asm templates.
2624 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
2625 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
2626 to handle nonimmediate operands.
2627 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
2628 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
2629 to handle nonimmediate operands.
2630 (*mmx_<code>v2sf3_finite): New insn pattern.
2631 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
2632 (mmx_<code>v2sf3): New expander. Use
2633 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2634 (mmx_<plusminus_insn><mode>3): New expander. Use
2635 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2636 (*mmx_<plusminus_insn><mode>3): New insn pattern.
2637 (mmx_add<mode>3): Removed.
2638 (mmx_ssadd<mode>3): Ditto.
2639 (mmx_usadd<mode>3): Ditto.
2640 (mmx_sub<mode>3): Ditto.
2641 (mmx_sssub<mode>3): Ditto.
2642 (mmx_ussub<mode>3): Ditto.
2643 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
2644 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
2645 to handle nonimmediate operands.
2646 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
2648 (mmx_smulv4hi3_highpart): New expander. Use
2649 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2650 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
2652 (mmx_umulv4hi3_highpart): New expander. Use
2653 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2654 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
2655 (mmx_<code>v4hi3): New expander. Use
2656 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2657 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
2658 (mmx_<code>v8qi3): New expander. Use
2659 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2660 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
2661 (mmx_<code><mode>3): New expander. Use
2662 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2664 2008-05-05 Jan Hubicka <jh@suse.cz>
2666 PR tree-optimization/36118
2667 * passes.c (pass_init_dump_file): Fix dump header.
2669 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2672 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
2673 VCE for function decls.
2675 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
2677 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
2679 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
2681 * config/i386/i386.md (sat_plusminus): New.
2682 (plusminus_insn): Likewise.
2683 (plusminus_mnemonic): Likewise.
2685 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
2686 (*<addsub><mode>3_cc_overflow): Renamed to ...
2687 (*<plusminus_insn><mode>3_cc_overflow): This.
2688 (*<addsub>si3_zext_cc_overflow): Renamed to ...
2689 (*<plusminus_insn>si3_zext_cc_overflow): This.
2691 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
2692 (<plusminus_insn><mode>3): This.
2693 (*<addsub><mode>3): Renamed to ...
2694 (*<plusminus_insn><mode>3): This.
2695 (<sse>_vm<addsub><mode>3): Renamed to ...
2696 (<sse>_vm<plusminus_insn><mode>3): This.
2697 (sse3_h<addsub>v4sf3): Renamed to ...
2698 (sse3_h<plusminus_insn>v4sf3): This.
2699 (sse3_h<addsub>v2df3): Renamed to ...
2700 (sse3_h<plusminus_insn>v2df3): This.
2701 (<plusminus_insn><mode>3): New.
2702 (*<plusminus_insn><mode>3): Likewise.
2703 (sse2_<plusminus_insn><mode>3): Likewise.
2704 (add<mode>): Removed.
2705 (*add<mode>3): Likewise.
2706 (sse2_ssadd<mode>3): Likewise.
2707 (sse2_usadd<mode>3): Likewise.
2708 (sub<mode>3): Likewise.
2709 (*sub<mode>3): Likewise.
2710 (sse2_sssub<mode>3): Likewise.
2711 (sse2_ussub<mode>3): Likewise.
2713 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
2715 * gthr-single.h: Add in required interface elements as per gthr.h.
2716 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
2717 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
2718 Generalize UNUSED macro.
2719 (__gthread_once): Add.
2720 (__gthread_key_create): Add.
2721 (__gthread_key_delete): Add.
2722 (__gthread_getspecific): Add.
2723 (__gthread_setspecific): Add.
2725 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
2727 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
2728 the same size types for the indirect reference on the rhs, then
2731 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
2733 * config/i386/i386.md
2734 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
2735 one insn template instead of template series.
2736 (*xordi_1_rex64): Ditto.
2737 (*xordi_2_rex64): Ditto.
2739 2008-05-05 Ira Rosen <irar@il.ibm.com>
2741 PR tree-optimization/36119
2742 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
2745 2008-06-04 Jan Hubicka <jh@suse.cz>
2747 tree-optimization/36100
2748 * tree-pass.h (pass_O0_always_inline): Declare.
2749 * ipa-inline.c (inline_transform): Remove dead code.
2750 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2751 pass_O0_always_inline): New.
2752 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
2754 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
2756 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
2757 mnemonic in this_param move for TARGET_64BIT.
2759 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
2761 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
2762 (*strmovsi_rex_1): Ditto.
2763 (*strsetsi_1): Ditto.
2764 (*strsetsi_rex_1): Ditto.
2766 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
2767 adddicc expanders using SWI mode iterator.
2769 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
2772 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
2775 2008-05-04 David S. Miller <davem@davemloft.net>
2777 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
2778 (sparc*-*-linux*): Use linux.h in tm_file.
2779 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
2780 compiler defaulting to 32-bit.
2781 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
2783 * config/sparc/linux.h: Remove definitions now obtained
2784 properly from linux.h
2785 * config/sparc/linux64.h: Likewise.
2786 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
2787 don't want this setting for 32-bit builds in a biarch compiler.
2788 * doc/install.texi: Add sparc-linux to list of targets
2789 supporting --enable-targets=all.
2791 2008-05-03 Andrew Pinski <pinskia@gmail.com>
2793 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
2795 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
2797 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
2798 after V4SI_FTYPE_V8HI.
2799 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
2800 case V4SI_FTYPE_V2DF.
2802 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
2804 * doc/invoke.texi (max-flow-memory-locations): Removed.
2805 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
2807 2008-05-03 Richard Guenther <rguenther@suse.de>
2810 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
2812 2008-05-02 David S. Miller <davem@davemloft.net>
2814 * config.gcc (need_64bit_hwint): Document libcpp dependency.
2816 2008-05-02 Simon Baldwin <simonb@google.com>
2819 * c-common.h (warn_array_subscript_range): Removed.
2820 * c-common.c (warn_array_subscript_range): Ditto.
2821 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
2822 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
2824 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
2826 * config/i386/i386.c (ix86_special_builtin_type): New.
2827 (bdesc_special_args): Likewise.
2828 (ix86_expand_special_args_builtin): Likewise.
2829 (ix86_init_mmx_sse_builtins): Updated.
2830 (ix86_expand_builtin): Updated.
2831 (ix86_expand_store_builtin): Removed.
2832 (ix86_expand_unop_builtin): Likewise.
2834 * config/i386/mm3dnow.h (__v2sf): Moved to ...
2835 * config/i386/mmintrin.h (__v2sf): Here.
2837 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
2839 (_mm_loadl_pi): Likewise.
2840 (_mm_storeh_pi): Replace __v2si with __v2sf.
2841 (_mm_storel_pi): Likewise.
2843 * doc/extend.texi: Correct __builtin_ia32_loadhps,
2844 __builtin_ia32_loadlps, __builtin_ia32_storehps,
2845 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
2846 __builtin_ia32_loadlpd.
2848 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
2850 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
2851 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
2852 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
2853 (ix86_init_mmx_sse_builtins): Updated.
2854 (ix86_expand_args_builtin): Likewise.
2855 (ix86_expand_builtin): Likewise.
2856 (ix86_expand_unop1_builtin): Renamed to ...
2857 (ix86_expand_unop_vec_merge_builtin): This.
2859 2008-05-01 Jan Hubicka <jh@suse.cz>
2862 * ipa-inline.c (inline_generate_summary): Make static.
2863 (inline_transform): Do not call inlining at -O0; make static.
2864 * passes.c (execute_todo): Add sanity check.
2865 (execute_one_ipa_transform_pass): Execute proper flags.
2867 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
2869 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
2870 (DECL_NONADDRESSABLE_P): Likewise.
2871 * alias.c (record_component_aliases): Fix comment.
2873 2008-05-01 Simon Baldwin <simonb@google.com>
2875 * c-common.h (warn_array_subscript_range): New function.
2876 * c-common.c (warn_array_subscript_range): Ditto.
2877 * tree-vrp.c (check_array_ref): Corrected code to agree with
2878 comment, ignoring only arrays of size 0 or size 1.
2879 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
2881 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
2883 * config/i386/i386.c (ix86_builtin_type): Replace
2884 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
2885 (bdesc_args): Updated.
2886 (ix86_init_mmx_sse_builtins): Likewise.
2887 (ix86_expand_args_builtin): Likewise.
2889 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
2892 * doc/extend.texi: Correct __builtin_ia32_palignr.
2894 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
2897 * config/i386/i386.c (bdesc_crc32): Removed.
2898 (ix86_expand_crc32): Likewise.
2899 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
2900 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
2901 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
2902 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
2903 UINT_FTYPE_UINT_UCHAR.
2904 (bdesc_args): Updated. Add crc32 builtins.
2905 (ix86_init_mmx_sse_builtins): Updated.
2906 (ix86_expand_args_builtin): Updated to support subreg.
2908 * doc/extend.texi: Correct __builtin_ia32_crc32di.
2910 2008-05-01 Jan Hubicka <jh@suse.cz>
2912 * tree-pass.h (opt_pass): Add IPA_PASS.
2913 (varpool_node, cgraph_node): Forward declare.
2914 (ipa_opt_pass): Define.
2915 (pass_ipa_inline): Turn into ipa_opt_pass.
2916 (pass_apply_inline): Remove.
2917 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
2918 (apply_inline): Turn into ....
2919 (inline_transform): ... this one.
2920 (inline_generate_summary): New function.
2921 (pass_apply_inline): Remove.
2922 * function.h (ipa_opt_pass): Forward declare structure; typedef;
2924 (struct function): Add ipa_transforms_to_apply.
2925 * passes.c (register_one_dump_file): Work on IPA_PASS.
2926 (init_optimization_passes): Remove pass_inline_parameters and
2928 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
2929 (execute_one_pass) ... here; apply transforms when possible.
2930 (add_ipa_transform_pass, execute_ipa_summary_asses,
2931 execute_one_ipa_transform_pass): New.
2932 (execute_ipa_pass_list): Update for IPA_PASS type.
2934 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
2936 * config/i386/i386.c (ix86_builtin_type): Add
2937 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
2938 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
2939 (bdesc_args): Add SSE4a builtins.
2940 (ix86_init_mmx_sse_builtins): Updated.
2941 (ix86_expand_args_builtin): Likewise.
2942 (ix86_expand_builtin): Likewise.
2944 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
2946 * config/i386/i386.c (ix86_builtin_type): Add
2947 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
2948 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
2949 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
2950 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
2951 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
2952 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
2953 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
2954 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
2955 and DI_FTYPE_DI_DI_INT.
2956 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
2957 (ix86_init_mmx_sse_builtins): Updated.
2958 (ix86_expand_args_builtin): Likewise.
2959 (ix86_expand_builtin): Likewise.
2960 (ix86_expand_binop_imm_builtin): Removed.
2962 * doc/extend.texi: Correct __builtin_ia32_palignr128.
2964 2008-04-30 Richard Guenther <rguenther@suse.de>
2966 PR tree-optimization/32921
2967 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
2969 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
2971 * config/arm/arm.c (arm_unwind_emit): Use
2972 crtl->all_throwers_are_sibcalls instead of
2973 cfun->all_throwers_are_sibcalls.
2974 (arm_output_fn_unwind): Likewise.
2975 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
2976 instead of cfun->uses_pic_offset_table.
2977 (frv_expand_prologue): Likewise.
2978 (frv_frame_pointer_required): Likewise.
2979 (frv_expand_fdpic_call): Likewise.
2980 (frv_emit_movsi): Likewise.
2981 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
2982 cfun->returns_pcc_struct instead of
2983 current_function_returns_pcc_struct.
2984 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
2985 instead of cfun->calls_eh_return.
2986 (m32c_pushm_popm): Likewise.
2987 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
2988 "extern" declaration.
2990 2008-04-30 Richard Guenther <rguenther@suse.de>
2992 PR tree-optimization/21636
2993 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
2995 (evaluate_stmt): Print the likely value.
2996 (ccp_visit_stmt): Avoid excessive vertical spacing.
2998 2008-04-30 Rafael Espindola <espindola@google.com>
3000 * builtins.c (fold_call_expr): Return realret.
3001 * tree-ssa-threadedge.c
3002 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
3003 __builtin_object_size.
3005 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
3007 * gcc.c (wrapper_string): New variable.
3008 (insert_wrapper): New function.
3009 (execute): New option -wrapper.
3010 * doc/invoke.texi (Overall Options): New driver option -wrapper.
3012 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
3014 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
3015 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
3016 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
3018 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
3019 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
3020 config/rs6000/e500crtres64gprctr.asm,
3021 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
3022 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
3023 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
3024 config/rs6000/e500crtsav64gprctr.asm,
3025 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
3026 config/rs6000/e500crtsavg64gprctr.asm: New files.
3027 * config/rs6000/t-ppccomm: Add build rules for new files.
3028 (LIB2FUNCS_STATIC_EXTRA): Add new files.
3029 * config/rs6000/t-netbsd: Add build rules for new files.
3030 (LIB2FUNCS_STATIC_EXTRA): New variable.
3031 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
3032 (CRTSAVRES_DEFAULT_SPEC): Likewise.
3033 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
3035 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
3037 * config/i386/i386.c (ix86_builtin_type): Add
3038 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
3039 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
3040 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
3041 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
3042 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
3043 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
3044 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
3045 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
3046 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
3047 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
3048 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
3049 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
3050 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
3051 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
3052 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
3053 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
3054 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
3055 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
3056 V1DI_FTYPE_V2SI_V2SI.
3057 (bdesc_2arg): Moved to ...
3059 (ix86_init_mmx_sse_builtins): Updated.
3060 (ix86_expand_args_builtin): Updated. Take a pointer
3061 to const struct builtin_description. Handle comparison
3063 (ix86_expand_sse_compare): Take a new argument for swapping operands.
3064 (ix86_expand_builtin): Updated.
3066 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
3067 (ssse3_pmaddubsw128): This.
3068 (ssse3_pmaddubswv4hi3): Renamed to ...
3069 (ssse3_pmaddubsw): This.
3071 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
3072 (__builtin_ia32_packssdw128): Likewise.
3073 (__builtin_ia32_packuswb128): Likewise.
3074 (__builtin_ia32_pmaddubsw): Likewise.
3075 (__builtin_ia32_pmaddubsw128): Likewise.
3077 2008-04-30 Richard Guenther <rguenther@suse.de>
3079 PR tree-optimization/14847
3080 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
3081 (recognize_bits_test): Use it.
3082 (recognize_single_bit_test): Likewise.
3084 2008-04-30 Martin Jambor <mjambor@suse.cz>
3086 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
3087 instead of setting number of formal parameters to zero.
3088 (ipcp_init_stage): Do not set the number of actual parameters to zero
3090 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
3091 which are called with variable number of arguments.
3092 (ipcp_insert_stage): Explicitely skipping all nodes which are
3093 called with variable number of arguments.
3094 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
3095 number of parameters.
3097 * ipa-prop.h (struct ipa_node_params): Added flag
3098 called_with_var_arguments
3099 (ipa_set_param_count): Added. Changed sole setter to use it.
3100 (ipa_get_param_count): Added. All readers of param_count
3101 converted to use it instead.
3102 (ipa_set_called_with_variable_arg): Added.
3103 (ipa_is_called_with_var_arguments): Added.
3104 (ipa_get_ith_param): Added. All readers of param_decls converted
3106 (ipa_set_cs_argument_count): Added, sole writer to argument_count
3108 (ipa_get_cs_argument_count): Added, all readers of argument_count
3110 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
3113 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
3114 (struct ipcp_lattice): Renamed cval_type to type
3115 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
3117 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
3118 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
3119 (ipcp_insert_stage): Changed the type of variable cvalue to tree
3120 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
3121 (build_const_val): Changed the type of parameter cvalue to tree
3122 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
3123 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
3125 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
3128 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
3129 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
3130 (ipa_add_method): Renamed to ipa_push_func_to_list
3131 (ipa_remove_method): Renamed to ipa_pop_func_from_list
3132 (ipa_callsite_param_count): Removed.
3133 (ipa_callsite_param_count_set): Removed.
3134 (ipa_callsite_param): Removed.
3135 (ipa_callsite_callee): Removed.
3136 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
3137 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
3138 (ipa_method_formal_count): Removed.
3139 (ipa_method_formal_count_set): Removed.
3140 (ipa_method_get_tree): Removed.
3141 (ipa_method_tree_map_create): Removed.
3142 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
3143 (ipa_create_param_decls_array): Creates the array itself
3144 (ipa_create_param_decls_array): Temporary variable info instead of
3146 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
3147 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
3148 (get_type): Removed.
3149 (ipa_jf_get_info_type): Removed.
3150 (ipa_node_create): Renamed to ipa_create_node_params
3151 (ipa_free): Renamed to ipa_free_all_node_params
3152 (ipa_nodes_create): Renamed to ipa_create_all_node_params
3153 (ipa_edges_create): Renamed to ipa_create_all_edge_args
3154 (ipa_edges_free): Renamed to ipa_free_all_edge_args
3155 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
3156 (ipa_free_all_node_params): Deallocation to jump_functions moved to
3157 ipa_free_all_edge_args
3158 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
3159 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
3160 (ipa_create_methodlist_node): Removed.
3161 (ipa_methodlist_method): Removed.
3162 (ipa_methodlist_method_set): Removed.
3163 (ipa_methodlist_next_method): Removed.
3164 (ipa_methodlist_next_method_set): Removed.
3165 (ipa_method_is_modified): Removed.
3166 (ipa_method_modify_create): Removed.
3167 (ipa_method_modify_init): Temporary variable info instead of a few
3169 (ipa_detect_param_modifications): Temporary variable info instead of
3171 (ipa_compute_jump_functions): Temporary variable info instead of
3173 (ipa_method_modify_set): Removed.
3174 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
3175 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
3176 than craph_node as the first parameter.
3177 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
3178 (ipa_method_modify_init): Removed.
3179 (ipa_compute_jump_functions): Added a temp variable instead of
3180 repeatadly dereferencing the cgraph_edge.aux pointer
3181 (ipa_callsite_param_set_type): Removed.
3182 (ipa_compute_jump_functions): i renamed to index and moved to
3184 (ipa_callsite_param_set_info_type_formal): Removed.
3185 (ipa_callsite_param_set_info_type): Removed.
3186 (ipa_callsite_param_map_create): Removed.
3187 (ipa_callsite_tree): Removed.
3188 (ipa_callsite_caller): Removed.
3189 (ipa_pop_func_from_list): return_method removed to return_func
3191 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
3192 prefixed all values with IPA_. Changed all users.
3193 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
3194 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
3195 and FORMAL_IPATYPE IPA_PASS_THROUGH.
3196 (union parameter_info): Renamed to jump_func_value.
3197 (union jump_func_value): Renamed value to constant
3198 (struct ipa_jump_func): Renamed info_type to value
3199 (struct ipa_node): Renamed to ipa_node_params
3200 (struct ipa_node_params): Renamed ipa_arg_num to param_count
3201 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
3202 (struct ipa_node_params): Renamed ipa_mod to modified_flags
3203 (struct ipa_edge): Renamed to ipa_edge_args
3204 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
3205 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
3206 (struct ipa_methodlist): Renamed to ipa_func_list
3207 (struct ipa_func_list): method_p renamed to node, next_method
3209 (ipa_methodlist_p): Removed, switched all users to struct pointer
3210 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
3212 2008-04-30 Alan Modra <amodra@bigpond.net.au>
3214 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
3215 (rs6000_emit_epilogue): Use backchain to restore only when we
3216 have a large frame. Make use of frame pointer to restore if we
3217 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
3219 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
3221 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3222 Add mode to zero_extract.
3223 (sign bit tests peepholes): (Ditto.).
3225 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
3227 * config/i386/i386.c (ix86_builtins): Replace Prescott New
3228 Instructions in comments with SSE3.
3229 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
3230 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
3231 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
3232 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
3233 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
3234 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
3235 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
3236 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
3237 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
3238 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
3239 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
3240 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
3241 (bdesc_sse_args): Renamed to ...
3242 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
3243 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
3244 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
3246 (bdesc_1arg): Moved to ...
3248 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
3249 Instructions in comments with SSE3.
3250 (ix86_expand_sse_operands_builtin): Renamed to ...
3251 (ix86_expand_args_builtin): This. Updated.
3252 (ix86_expand_unop1_builtin): Update comments.
3253 (ix86_expand_builtin): Updated.
3255 2008-04-29 Richard Guenther <rguenther@suse.de>
3257 PR tree-optimization/36078
3258 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3259 Update virtual SSA form after cleaning up the CFG.
3261 2008-04-29 Richard Guenther <rguenther@suse.de>
3264 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
3266 2008-04-29 Richard Guenther <rguenther@suse.de>
3268 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
3269 (compute_may_aliases): Do not call finalize_ref_all_pointers.
3270 (compute_flow_insensitive_aliasing): Do not treat
3271 PTR_IS_REF_ALL pointers special.
3272 (get_smt_for): Likewise.
3273 (may_alias_p): Re-structure.
3274 (is_escape_site): A ref-all pointer conversion is not an escape site.
3275 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
3276 PTR_IS_REF_ALL pointers special.
3277 * tree-ssa-structalias.h (struct alias_info): Remove
3278 ref_all_symbol_mem_tag field.
3279 (PTR_IS_REF_ALL): Remove.
3281 2008-04-29 Richard Guenther <rguenther@suse.de>
3284 * fold-const.c (extract_muldiv_1): In combining division constants
3285 make sure to never overflow.
3287 2008-04-29 Nick Clifton <nickc@redhat.com>
3289 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
3291 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3294 * optc-gen.awk: Work around HP-UX/IA awk bug.
3296 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
3298 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
3301 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
3304 * config/i386/i386.md
3305 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
3306 Change operand 1 predicate to nonimmediate_operand.
3308 2008-04-28 Jakub Jelinek <jakub@redhat.com>
3311 * dwarf2out.c (struct die_struct): Mark as chain_circular through
3313 * gengtype.c (walk_type, write_func_for_structure): Handle
3315 * doc/gty.texi: Document chain_circular.
3317 2008-04-28 Richard Guenther <rguenther@suse.de>
3319 PR tree-optimization/36066
3320 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
3323 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
3326 * config/i386/i386.md
3327 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
3328 Use match_scratch instead of match_operand for operands 3 and 4.
3330 2008-04-27 Richard Guenther <rguenther@suse.de>
3332 PR tree-optimization/18754
3333 PR tree-optimization/34223
3334 * tree-pass.h (pass_complete_unrolli): Declare.
3335 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
3336 loop size before and after unconditionally of UL_NO_GROWTH in effect.
3337 Rewrite loop into loop closed SSA form if it is not already.
3338 (tree_unroll_loops_completely): Re-structure to iterate over
3339 innermost loops with intermediate CFG cleanups.
3340 Unroll outermost loops only if requested or the code does not grow
3342 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
3343 loops are available.
3344 (tree_vectorize): Instead do so here.
3345 (tree_complete_unroll): Also unroll outermost loops.
3346 (tree_complete_unroll_inner): New function.
3347 (gate_tree_complete_unroll_inner): Likewise.
3348 (pass_complete_unrolli): New pass.
3349 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
3350 uses outside of the loop.
3351 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
3352 form if it is available.
3353 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
3354 * passes.c (init_optimization_passes): Schedule complete inner
3355 loop unrolling pass before the first CCP pass after final inlining.
3357 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
3359 * targhooks.h (default_emutls_var_fields,
3360 default_emutls_var_init): Declare.
3361 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
3362 * target.h (struct gcc_target): Add struct emutls member.
3363 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
3364 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
3365 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
3366 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
3367 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
3368 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
3369 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
3370 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
3371 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
3372 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
3373 emit debug information.
3374 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
3375 * varasm.c: Include targhooks.h.
3376 (emutls_object_section, emutls_tmpl_section): New.
3377 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
3378 (EMUTLS_SEPARATOR): New.
3380 (get_emutls_object_name): New.
3381 (default_emutls_var_fields): New, broken out of ...
3382 (get_emutls_object_type): ... here. Adjust to use target hooks.
3383 (get_emutls_init_templ_addr): Adjust to use target hooks.
3384 (emutls_decl): Adjust to use target hooks.
3385 (emutls_finish): Likewise.
3386 (default_emutls_var_init): New, broken out of ...
3387 (assemble_variable): ... here. Adjust to use target hooks.
3388 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
3390 * c-common.c (handle_section_attribute): Prevent overriding
3391 sections for emulated tls with special sections.
3392 * config/i386/i386.c (x86_64_elf_select_section): Add
3393 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
3394 (x86_64_elf_unique_section): Likewise.
3395 * config/vxworks.c: Include tree.h.
3396 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
3397 (vxworks_override_options): Set TLS scheme.
3398 * doc/tm.texi (Emulated TLS): New node.
3400 2008-04-26 Simon Baldwin <simonb@google.com>
3403 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
3404 with propagated string constants.
3406 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
3408 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
3409 constraint for operand 2 when operand 0 is memory operand.
3410 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
3411 operand 0 is memory operand.
3412 (fix_trunc<mode>_i387_with_temp): Ditto.
3413 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
3414 operand 2 when operand 1 is memory operand.
3415 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
3416 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
3417 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
3418 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3419 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
3420 operands 2,3 and 4 when operand 1 is memory operand.
3421 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
3423 (fistdi2_floor_with_temp): Ditto.
3424 (fist<mode>2_floor_with_temp): Ditto.
3425 (fistdi2_ceil_with_temp): Ditto.
3426 (fist<mode>2_ceil_with_temp): Ditto.
3427 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
3429 2008-04-26 David Daney <ddaney@avtrex.com>
3431 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
3433 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
3434 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3435 UNSPEC_UPDATE_GOT_VERSION): Renumber.
3436 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
3437 (compare_and_swap_12): New insn.
3438 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
3439 * config/mips/mips.c (mips_force_binary): New function.
3440 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
3441 (mips_expand_compare_and_swap_12): New function.
3442 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
3444 2008-04-25 Jan Hubicka <jh@suse.cz>
3447 * cfgexpand.c (pass_expand): Turn into RTL pass.
3448 * passes.c (execute_one_pass): Do pass typechecking after execution.
3449 * tree-pass.h (pass_expand): Turn into RTL pass.
3451 * function.h (struct rtl_data): Move here fields
3452 accesses_prior_frames, calls_eh_return, saves_all_registers,
3453 has_nonlocal_goto, has_asm_statement, is_thunk,
3454 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
3455 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
3456 arg_pointer_save_area_init from struct function; turn into bool.
3457 (struct function): Move
3458 calls_eh_return, saves_all_registers, has_nonlocal_goto,
3459 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
3460 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
3461 tail_call_emit, arg_pointer_save_area_init
3462 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
3463 (current_function_returns_struct, current_function_returns_pcc_struct,
3464 current_function_calls_setjmp, current_function_calls_alloca,
3465 current_function_accesses_prior_frames,
3466 current_function_calls_eh_return, current_function_is_thunk,
3467 current_function_stdarg, current_function_profile,
3468 current_function_limit_stack, current_function_uses_pic_offset_table,
3469 current_function_uses_const_pool, current_function_has_nonlocal_label,
3470 current_function_saves_all_registers,
3471 current_function_has_nonlocal_goto,
3472 current_function_has_asm_statement): Remove accesor macros.
3473 * ra-conflict.c (global_conflicts): Update.
3474 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
3475 (suitable_for_tail_call_opt_p): Update.
3476 * builtins.c (expand_builtin_return_addr): Update.
3477 (expand_builtin_setjmp_setup): Update.
3478 (expand_builtin_nonlocal_goto): Update.
3479 * final.c (final_start_function): Update.
3480 (profile_function): Update.
3481 (leaf_function_p): Update.
3482 (only_leaf_regs_used): Update.
3483 * df-scan.c (df_get_exit_block_use_set): Update.
3484 * dojump.c (clear_pending_stack_adjust): Update.
3485 * tree-stdarg.c (gate_optimize_stdarg): Update.
3486 * gimple-low.c (lower_function_body): Update.
3487 * global.c (compute_regsets): Update.
3488 (global_alloc): Update.
3489 * dwarf2out.c (dwarf2out_begin_prologue): Update.
3490 * expr.c (expand_assignment): Update.
3491 * dse.c (dse_step0): Update.
3492 (dse_step1): Update.
3493 * c-decl.c (store_parm_decls): Update.
3494 * local-alloc.c (combine_regs): Update.
3495 (find_free_reg): Update.
3496 * function.c (assign_parms_augmented_arg_list): Update.
3497 (assign_parm_find_data_types): Update.
3498 (assign_parms): Update.
3499 (allocate_struct_function): Update.
3500 (expand_function_start): Update.
3501 (expand_function_end): Update.
3502 (get_arg_pointer_save_area): Update.
3503 (thread_prologue_and_epilogue_insns): Update.
3504 (rest_of_match_asm_constraints): Update.
3505 * stor-layout.c (variable_size): Update.
3506 * gcse.c (gcse_main): Update.
3507 (bypass_jumps): Update.
3508 * gimplify.c (gimplify_function_tree): Update.
3509 * calls.c (emit_call_1): Update.
3510 (expand_call): Update.
3511 * bt-load.c (compute_defs_uses_and_gen): Update.
3512 * except.c (sjlj_assign_call_site_values): Update.
3513 (sjlj_emit_function_enter): Update.
3514 (can_throw_external): Update.
3515 (set_nothrow_function_flags): Update.
3516 (expand_builtin_unwind_init): Update.
3517 (expand_eh_return): Update.
3518 (convert_to_eh_region_ranges): Update.
3519 (output_function_exception_table): Update.
3520 * emit-rtl.c (gen_tmp_stack_mem): Update.
3521 * cfgexpand.c (expand_used_vars): Update.
3522 (tree_expand_cfg): Update.
3523 * cfgcleanup.c (rest_of_handle_jump): Update.
3524 * explow.c (allocate_dynamic_stack_space): Update.
3525 * varasm.c (assemble_start_function): Update.
3526 (force_const_mem): Update.
3527 (mark_constant_pool): Update.
3528 * tree-optimize.c (tree_rest_of_compilation): Update.
3529 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
3530 * tree-cfg.c (notice_special_calls): Update.
3531 (is_ctrl_altering_stmt): Update.
3532 (tree_can_make_abnormal_goto): Update.
3533 (tree_purge_dead_abnormal_call_edges): Update.
3534 * config/alpha/predicates.md: Update.
3535 * config/alpha/alpha.c (alpha_sa_mask): Update.
3536 (alpha_sa_size): Update.
3537 (alpha_does_function_need_gp): Update.
3538 (alpha_expand_prologue): Update.
3539 (alpha_start_function): Update.
3540 (alpha_output_function_end_prologue): Update.
3541 (alpha_expand_epilogue): Update.
3542 * config/frv/frv.c (frv_stack_info): Update.
3543 (frv_expand_epilogue): Update.
3544 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
3545 (s390_register_info): Update.
3546 (s390_frame_info): Update.
3547 (s390_init_frame_layout): Update.
3548 (s390_can_eliminate): Update.
3549 (save_gprs): Update.
3550 * config/spu/spu.c (spu_split_immediate): Update.
3551 (need_to_save_reg): Update.
3552 (spu_expand_prologue): Update.
3553 (spu_expand_epilogue): Update.
3554 * config/sparc/sparc.md: Update.
3555 * config/sparc/sparc.c (eligible_for_return_delay): Update.
3556 (sparc_tls_got): Update.
3557 (legitimize_pic_address): Update.
3558 (sparc_emit_call_insn): Update.
3559 (sparc_expand_prologue): Update.
3560 (output_return): Update.
3561 (print_operand): Update.
3562 (sparc_function_ok_for_sibcall): Update.
3563 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
3564 * config/m32r/m32r.md: Update.
3565 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
3566 (m32r_compute_frame_size): Update.
3567 (m32r_expand_prologue): Update.
3568 (m32r_expand_epilogue): Update.
3569 (m32r_legitimize_pic_address): Update.
3570 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
3571 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3572 * config/i386/i386.c (ix86_frame_pointer_required): Update.
3574 (ix86_save_reg): Update.
3575 (ix86_compute_frame_layout): Update.
3576 (ix86_expand_prologue): Update.
3577 (ix86_expand_epilogue): Update.
3578 * config/sh/sh.c (output_stack_adjust): Update.
3579 (calc_live_regs): Update.
3580 (sh5_schedule_saves): Update.
3581 (sh_expand_prologue): Update.
3582 (sh_expand_epilogue): Update.
3583 (sh_setup_incoming_varargs): Update.
3584 (sh_allocate_initial_value): Update.
3585 (sh_get_pr_initial_val): Update.
3586 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
3587 * config/sh/sh.md (label:): Update.
3588 * config/avr/avr.c (out_movhi_mr_r): Update.
3589 * config/crx/crx.h (enum): Update.
3590 * config/xtensa/xtensa.h (along): Update.
3591 * config/stormy16/stormy16.c Update.
3592 (xstormy16_compute_stack_layout): Update.
3593 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
3594 (fr30_expand_prologue): Update.
3595 * config/cris/cris.c (cris_conditional_register_usage): Update.
3596 (cris_reg_saved_in_regsave_area): Update.
3597 (cris_initial_frame_pointer_offset): Update.
3598 (cris_simple_epilogue): Update.
3599 (cris_expand_prologue): Update.
3600 (cris_expand_epilogue): Update.
3601 (cris_expand_pic_call_address): Update.
3602 (cris_asm_output_symbol_ref): Update.
3603 (cris_asm_output_label_ref): Update.
3604 * config/cris/cris.md Update.
3605 * config/iq2000/iq2000.c (compute_frame_size): Update.
3606 (iq2000_expand_epilogue): Update.
3607 * config/mt/mt.h (save_direction): Update.
3608 * config/mn10300/mn10300.c (mn10300_function_value): Update.
3609 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3610 (ia64_secondary_reload_class): Update.
3611 * config/m68k/m68k.c (m68k_save_reg): Update.
3612 (m68k_expand_prologue): Update.
3613 (m68k_expand_epilogue): Update.
3614 (legitimize_pic_address): Update.
3615 * config/rs6000/rs6000.c (rs6000_got_register): Update.
3616 (first_reg_to_save): Update.
3617 (first_altivec_reg_to_save): Update.
3618 (compute_vrsave_mask): Update.
3619 (compute_save_world_info): Update.
3620 (rs6000_stack_info): Update.
3621 (spe_func_has_64bit_regs_p): Update.
3622 (rs6000_ra_ever_killed): Update.
3623 (rs6000_emit_eh_reg_restore): Update.
3624 (rs6000_emit_allocate_stack): Update.
3625 (rs6000_emit_prologue): Update.
3626 (rs6000_emit_epilogue): Update.
3627 (rs6000_output_function_epilogue): Update.
3628 (output_profile_hook): Update.
3629 (rs6000_elf_declare_function_name): Update.
3630 * config/rs6000/rs6000.h (rs6000_args): Update.
3631 * config/rs6000/rs6000.md: Update.
3632 * config/mcore/mcore.c (mcore_expand_prolog): Update.
3633 * config/arc/arc.c (arc_output_function_epilogue): Update.
3634 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
3635 * config/darwin.c (machopic_function_base_name): Update.
3636 * config/score/score3.c (score3_compute_frame_size): Update.
3639 (score3_epilogue): Update.
3640 * config/score/score7.c (score7_compute_frame_size): Update.
3641 (score7_prologue): Update.
3642 (score7_epilogue): Update.
3643 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
3644 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3645 * config/arm/arm.c (use_return_insn): Update.
3646 (require_pic_register): Update.
3647 (arm_load_pic_register): Update.
3648 (arm_compute_save_reg0_reg12_mask): Update.
3649 (arm_compute_save_reg_mask): Update.
3650 (thumb1_compute_save_reg_mask): Update.
3651 (output_return_instruction): Update.
3652 (arm_output_function_prologue): Update.
3653 (arm_output_epilogue): Update.
3654 (arm_get_frame_offsets): Update.
3655 (arm_expand_prologue): Update.
3656 (thumb_pushpop): Update.
3657 (thumb_exit): Update.
3658 (thumb1_expand_prologue): Update.
3659 (thumb1_expand_epilogue): Update.
3660 (arm_unwind_emit): Update.
3661 (arm_output_fn_unwind): Update.
3662 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
3663 * config/arm/arm.md: Update.
3664 * config/pa/pa.md: Update.
3665 * config/pa/pa.c (legitimize_pic_address): Update.
3666 (compute_frame_size): Update.
3667 (hppa_expand_prologue): Update.
3668 (hppa_expand_epilogue): Update.
3669 (borx_reg_operand): Update.
3670 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
3671 (HARD_REGNO_RENAME_OK): Update.
3672 * config/mips/mips.c (mips_global_pointer): Update.
3673 (mips_save_reg_p): Update.
3674 (mips_compute_frame_info): Update.
3675 (mips_frame_pointer_required): Update.
3676 (mips_expand_prologue): Update.
3677 (mips_expand_epilogue): Update.
3678 (mips_can_use_return_insn): Update.
3679 (mips_reorg_process_insns): Update.
3680 * config/v850/v850.c (compute_register_save_size): Update.
3681 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
3682 * config/mmix/mmix.c (along): Update.
3683 (mmix_expand_epilogue): Update.
3684 * config/bfin/bfin.c (legitimize_pic_address): Update.
3685 (must_save_p): Update.
3686 (stack_frame_needed_p): Update.
3687 (add_to_reg): Update.
3688 (bfin_expand_prologue): Update.
3689 * stmt.c (expand_asm_operands): Update.
3690 * reload1.c (reload): Update.
3691 (init_elim_table): Update.
3693 2008-04-25 Bob Wilson <bob.wilson@acm.org>
3695 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
3697 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
3699 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
3700 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
3701 (mov<mode>): Removed.
3702 (*movv4sf_internal): Likewise.
3703 (*movv2df_internal): Likewise.
3705 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
3707 * config.gcc (crx-*-elf): Remove deprecation.
3709 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
3711 * config/i386/cygming-crtend.c (register_frame_ctor): Register
3712 __gcc_deregister_frame with atexit.
3713 (deregister_frame_dtor): Remove.
3715 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
3716 Nathan Sidwell <nathan@codesourcery.com>
3718 * config/rs6000/rs6000.opt (mspe): Remove Var property.
3720 * config/rs6000/rs6000.h (rs6000_spe): Declare.
3721 (rs6000_isel): Likewise.
3722 * config/rs6000/rs6000.c (rs6000_spe): New variable.
3723 (rs6000_isel): New variable.
3724 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
3726 2008-04-24 Jakub Jelinek <jakub@redhat.com>
3729 * c-common.c (handle_vector_size_attribute): Call
3730 lang_hooks.types.reconstruct_complex_type instead of
3731 reconstruct_complex_type.
3732 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
3733 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
3734 * langhooks.h (struct lang_hooks_for_types): Add
3735 reconstruct_complex_type hook.
3736 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
3737 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
3739 2008-04-24 Richard Guenther <rguenther@suse.de>
3741 * c-common.h (check_builtin_function_arguments): Declare.
3742 * c-common.c (validate_nargs): New function.
3743 (check_builtin_function_arguments): Likewise.
3744 * c-typeck.c (build_function_call): Call
3745 check_builtin_function_arguments.
3746 * builtins.c (fold_builtin_classify): Remove error reporting code.
3747 (fold_builtin_unordered_cmp): Likewise.
3748 (fold_builtin_1): Likewise.
3749 (fold_builtin_n): Likewise.
3751 2008-04-24 Jakub Jelinek <jakub@redhat.com>
3753 PR tree-optimization/36008
3754 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
3755 the original op1, rather than delta by step.
3757 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
3758 Sebastian Pop <sebastian.pop@amd.com>
3760 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
3761 eliminate_local_variables_stmt, eliminate_local_variables,
3762 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
3763 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
3764 of code delimited by two edges in the CFG.
3765 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
3766 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
3767 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
3768 the case of parallelisation of reductions.
3769 (expr_invariant_in_region_p): New.
3771 * tree-flow.h (gather_blocks_in_sese_region): Declared.
3772 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
3774 2008-04-24 Ira Rosen <irar@il.ibm.com>
3775 Richard Guenther <rguenther@suse.de>
3777 PR tree-optimization/36034
3778 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
3779 incapable of dealing with loads with gaps.
3781 2008-04-24 Rafael Espindola <espindola@google.com>
3783 * tree-flow.h (vrp_evaluate_conditional): Change signature.
3784 * tree-ssa-propagate.c (fold_predicate_in): Update call to
3785 vrp_evaluate_conditional.
3786 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
3787 (vrp_evaluate_conditional): Split the cond argument.
3788 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
3789 (simplify_stmt_for_jump_threading): Update call to
3790 vrp_evaluate_conditional.
3792 2008-04-24 Ira Rosen <irar@il.ibm.com>
3794 PR tree-optimization/35982
3795 * tree-vect-analyze.c (vect_check_interleaving): Check that the
3796 interleaved data-refs are of the same type.
3798 2008-04-24 Danny Smith <dannysmith@users.net>
3800 * c-format.c (check_format_info_main): Use strncmp rather than a
3801 magic prefix to handle multichar length specs.
3802 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
3803 Don't prefix "I64" and "I32" with '\0'.
3805 2008-04-24 Jakub Jelinek <jakub@redhat.com>
3808 * config/i386/i386.c (init_cumulative_args): Don't pass anything
3809 in registers for -m32 only if stdarg_p (fntype).
3811 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
3813 PR rtl-optimization/36006
3814 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
3815 temp to op0 in order to avoid invalid rtx sharing.
3817 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
3819 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
3820 check TREE_INVARIANT.
3821 * tree-gimple.c (is_gimple_address): New.
3822 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
3823 * tree-gimple.h (is_gimple_address): New.
3824 * tree.h (decl_address_invariant_p): New.
3825 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
3826 (build_string): Likewise.
3827 (decl_address_invariant_p): New, from is_gimple_invariant_address.
3828 (tree_invariant_p_1): Likewise.
3829 (save_expr): Use it.
3830 (tree_invariant_p): New.
3831 (skip_simple_arithmetic): Use it.
3832 (stabilize_reference_1): Use it.
3833 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
3835 (build1_stat): Drop code to compute TREE_INVARIANT.
3836 (build2_stat): Drop code to compute TREE_INVARIANT.
3837 (build3_stat): Drop code to compute TREE_INVARIANT.
3838 (build4_stat): Drop code to compute TREE_INVARIANT.
3839 (build5_stat): Drop code to compute TREE_INVARIANT.
3840 (build7_stat): Drop code to compute TREE_INVARIANT.
3841 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
3842 * tree.h (struct tree_base): Remove invariant_flag.
3843 (TREE_INVARIANT): Remove.
3844 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
3845 (fold_builtin_expect): Check TREE_CONSTANT.
3846 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
3847 * c-tree.h (c_expr_to_decl): Drop third parameter.
3848 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
3849 (build_c_cast): Don't set TREE_INVARIANT.
3850 (pop_init_level): Don't set TREE_INVARIANT.
3851 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
3852 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
3854 (gimplify_init_constructor): Don't set TREE_INVARIANT.
3855 (gimplify_addr_expr): Adjust comment.
3856 * tree-mudflap.c (mf_build_string):
3857 * print-tree.c (print_node): Don't print TREE_INVARIANT.
3858 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
3859 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
3860 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
3861 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
3862 * langhooks.h (struct lang_hooks): Drop third parameter from
3865 2008-04-23 Richard Guenther <rguenther@suse.de>
3867 PR tree-optimization/27799
3868 PR tree-optimization/32921
3869 PR tree-optimization/32624
3870 * tree-ssa-structalias.c (merge_smts_into): Only merge the
3871 SMTs aliases and the tag itself into the solution.
3872 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
3873 merge the points-to solution back into the SMT aliases.
3874 (may_alias_p): Use alias_set_subset_of instead of
3875 aliases_conflict_p. A pointer which points to
3876 memory with alias set zero may access any variable.
3878 2008-04-23 Richard Guenther <rguenther@suse.de>
3880 * alias.c (alias_set_subset_of): Correctly handle asking
3881 if zero is a subset of an alias set with zero child.
3882 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
3883 (compute_flow_insensitive_aliasing): Correctly walk all
3884 pointers. Do not unnecessarily union sets.
3886 2008-04-23 Richard Guenther <rguenther@suse.de>
3889 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
3891 2008-04-22 Tomas Bily <tbily@suse.cz>
3893 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
3895 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
3897 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3898 * tree-ssa-structalias.c (get_constraint_for): Likewise.
3899 * tree-inline.c (estimate_num_insns_1): Likewise.
3900 * varasm.c (const_hash_1, compare_constant, copy_constant)
3901 (compute_reloc_for_constant, output_addressed_constants): Likewise.
3902 * emit-rtl.c (component_ref_for_mem_expr)
3903 (set_mem_attributes_minus_bitpos): Likewise.
3904 * expr.c (highest_pow2_factor, expand_expr_real_1, )
3905 (is_aligning_offset): Likewise.
3906 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
3907 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
3908 * dojump.c (do_jump): Likewise.
3909 * builtins.c (get_pointer_alignment, get_memory_rtx)
3910 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
3911 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
3913 2008-04-23 Jakub Jelinek <jakub@redhat.com>
3915 PR rtl-optimization/36017
3916 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
3917 expanding the library call.
3919 2008-04-22 Ian Lance Taylor <iant@google.com>
3921 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
3924 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
3926 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
3927 of LR/CTR moves for Power6.
3929 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3932 * passes.c (init_optimization_passes): Remove
3933 pass_fast_rtl_byte_dce.
3935 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
3938 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
3939 builtin functions to generate faster code.
3940 (_mm_cvtpu16_ps): Ditto.
3941 (_mm_cvtpi32x2_ps): Ditto.
3943 2008-04-22 Nick Clifton <nickc@redhat.com>
3945 * common.opt (ftree-loop-distribution): Add Optimization
3948 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
3949 (frv_expand_builtin_va_start): Likewise.
3951 * config/arm/arm.c (thumb_find_work_register): Fix location of
3952 argument register count.
3954 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3956 Support scheduling for ColdFire V1 and V3 microarchitecture.
3957 Improve scheduling of multiplication instructions.
3959 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
3960 (mac): New instruction attribute.
3961 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
3962 (m68k_sched_mac): New variable.
3963 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
3964 Handle cfv1 and cfv3.
3965 (max_insn_size): New static variable.
3966 (struct _sched_ib): New type.
3967 (sched_ib): New static variable.
3968 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
3969 to fields of 'struct _sched_ib sched_ib'. Update all uses.
3970 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
3972 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
3973 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
3974 new variables. Update.
3975 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3976 Add modeling of cfv3 instruction buffer. Update.
3977 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
3978 * config/m68k/m68k.h (TUNE_CFV3): New macro.
3979 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
3980 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
3981 a particular reservation applies to.
3982 (type2): Reorganize attribute values. Rename alu to alu_reg,
3983 alu_l to alu, move_l to omove. Join move to alu. Split mul
3985 (cf_ib_*): Simplify description of instruction buffer.
3986 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
3987 (cf_mem): Split into cf_mem1 and cf_mem2.
3988 (cf_v2_move_??): Rename to cfv12_alu_??.
3989 (cf_v2_move_l_??): Rename to cfv12_omove_??.
3990 (cf_v2_mul_??): Remove reservations.
3991 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
3992 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
3993 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
3995 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
3996 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
3997 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
3998 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
3999 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
4000 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
4001 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
4002 expansions of the above reservations for instructions of sizes
4005 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4007 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
4009 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
4011 * coverage.c: Include tree-pass.h.
4012 (coverage_counter_alloc): Print da_file_name to the dump file.
4014 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
4016 * sbitmap.c (sbitmap_range_empty_p): New function.
4017 * sbitmap.h (sbitmap_range_empty_p): New function.
4018 * bitmap.h: Now includes obstack.h.
4020 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
4021 Kenneth Zadeck <zadeck@naturalbridge.com>
4023 * dbgcnt.def (ra_byte_scan): Added.
4024 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
4025 when the last hit happens for a counter.
4026 * timevar.def (TV_DF_BYTE_LR): New variable.
4027 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
4028 * passes.c (pass_fast_rtl_byte_dce): New pass.
4029 * fwprop.c (update_df): Added mode to call df_ref_create.
4030 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4031 DF_REF_EXTRACT_OFFSET.
4032 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
4033 DF_BYTE_LR_OUT, df_byte_lr): New macro.
4035 (df_ref_extract): Added mode field.
4036 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
4037 DF_REF_EXTRACT_OFFSET.
4038 (DF_REF_EXTRACT_MODE): New macro.
4039 (df_byte_lr_bb_info): New structure.
4040 (df_print_byte_regset, df_compute_accessed_bytes,
4041 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
4042 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
4043 df_byte_lr_simulate_uses,
4044 df_byte_lr_simulate_artificial_refs_at_top,
4045 df_byte_lr_simulate_artificial_refs_at_end,
4046 df_compute_accessed_bytes): New function.
4047 (df_ref_create): Add parameter.
4048 (df_byte_lr_get_bb_info): New inline function.
4049 * df-scan.c (df_ref_record, df_uses_record,
4050 df_ref_create_structure): Added mode parameter.
4051 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
4052 df_defs_record, df_uses_record, df_get_conditional_uses,
4053 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
4054 df_entry_block_defs_collect, df_exit_block_uses_collect):
4055 Added mode parameter to calls to df_ref_record, df_uses_record,
4056 df_ref_create_structure.
4057 (df_ref_equal_p, df_ref_compare): Added test for modes.
4058 (df_ref_create_structure): Added code to set mode. Renamed
4059 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4060 DF_REF_EXTRACT_OFFSET.
4061 * df-core.c (df_print_byte_regset): New function.
4062 * df-byte-scan.c: New file.
4063 * df-problems.c (df_rd_transfer_function): Removed unnecessary
4064 calls to BITMAP_FREE.
4065 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
4066 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
4067 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
4068 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
4069 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
4070 df_byte_lr_local_compute, df_byte_lr_init,
4071 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
4072 df_byte_lr_transfer_function, df_byte_lr_free,
4073 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
4074 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
4075 df_byte_lr_simulate_uses,
4076 df_byte_lr_simulate_artificial_refs_at_top,
4077 df_byte_lr_simulate_artificial_refs_at_end): New function.
4078 * dce.c (byte_dce_process_block): New function.
4079 (dce_process_block): au is now passed in rather than computed
4080 locally. Changed loops that look at artificial defs to not look
4081 for conditional or partial ones, because there never are any.
4082 (fast_dce): Now is able to drive byte_dce_process_block or
4083 dce_process_block depending on the kind of dce being done.
4084 (rest_of_handle_fast_dce): Add parameter to fast_dce.
4085 (rest_of_handle_fast_byte_dce): New function.
4086 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
4087 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
4089 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
4092 * gcc.h: Added fortran options that take arguments to
4093 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
4096 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4098 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
4099 scalarization if on the LHS and not a full access.
4101 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4103 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
4105 2008-04-18 Rafael Espindola <espindola@google.com>
4107 * tree-vrp.c (find_case_label_index): Fix the binary search.
4108 (find_case_label_range): New.
4109 (vrp_visit_switch_stmt): Use find_case_label_range.
4110 (simplify_switch_using_ranges): Use find_case_label_range.
4112 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4114 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
4115 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
4117 2008-04-18 Tom Tromey <tromey@redhat.com>
4120 * doc/cpp.texi (Implementation-defined behavior): Mention
4123 2008-04-18 Ian Lance Taylor <iant@google.com>
4125 * fold-const.c (pointer_may_wrap_p): New static function.
4126 (fold_comparison): Add another test for pointer overflow. Use
4127 pointer_may_wrap_p to disable some false positives.
4129 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
4131 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
4132 (fname_as_string): Match updated cpp_interpret_string prototype.
4133 (fix_string_type): Support char16_t* and char32_t*.
4134 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
4135 derivative) nodes. Register as builtin if C++0x.
4136 (c_parse_error): Support CPP_CHAR{16,32}.
4137 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
4138 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
4139 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
4140 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
4141 CTI_CHAR32_ARRAY_TYPE>: New elements.
4142 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
4143 char32_type_node, signed_char32_type_node, char16_array_type_node,
4144 char32_array_type_node): New defines.
4145 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
4146 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
4147 (lex_string): Support CPP_STRING{16,32}, match updated
4148 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
4149 (lex_charconst): Support CPP_CHAR{16,32}.
4150 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
4151 and CPP_STRING{16,32}.
4153 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
4156 * aclocal.m4: Regenerate.
4157 * configure: Regenerate.
4159 2008-04-18 Jan Hubicka <jh@suse.cz>
4161 * except.c (dw2_size_of_call_site_table,
4162 sjlj_size_of_call_site_table): Use vector API for call_site_record.
4164 * cgraphbuild.c (build_cgraph_edges): Update.
4165 * tree-pass.h: Update comment.
4166 * final.c (leaf_function_p): Update.
4167 (leaf_renumber_regs): Update.
4168 (rest_of_clean_state): Update.
4169 * omp-low.c (expand_omp_parallel): Update.
4170 * ipa-reference.c (analyze_function): Update.
4171 * reorg.c (find_end_label): Update.
4172 (optimize_skip): Update.
4173 (fill_simple_delay_slots): Update.
4174 (fill_simple_delay_slots): Update.
4175 (make_return_insns): Update.
4176 (dbr_schedule): Update.
4177 * gimple-low.c (record_vars_into): Update.
4178 * cfgbuild.c (make_edges): Update.
4179 * function.c (assign_stack_local): Update.
4180 (assign_parm_adjust_stack_rtl): Update.
4181 (locate_and_pad_parm): Update.
4182 (allocate_struct_function): Do not initialize stack_alignment_needed
4183 and preferred_stack_boundary here.
4184 (stack_protect_prologue): Update.
4185 (stack_protect_epilogue): Update.
4186 (expand_function_start): Initialize stack_alignment_needed,
4187 preferred_stack_boundary and max_jumptable_ents.
4188 (expand_function_end): Update.
4189 (free_after_compilation): Do not NULLify epilogue_delay_list.
4190 * function.h (struct rtl_data): Add stack_protect_guard,
4191 stack_alignment_needed,
4192 preferred_stack_boundary, epilogue_delay_list.
4193 (struct function): Remove value_histograms, stack_alignment_needed,
4194 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
4196 unexpanded_var_list, stack_protect_guard.
4197 (current_function_epilogue_delay_list): Remove.
4198 * ipa-type-escape.c (analyze_function): Update.
4199 * gimplify.c (pop_gimplify_context): Update comment.
4200 * calls.c (expand_call): Update.
4201 (emit_library_call_value_1): Update.
4202 * except.c (set_nothrow_function_flags): Update.
4203 * cfgexpand.c (get_decl_align_unit): Update.
4204 (create_stack_guard): Update.
4205 (estimated_stack_frame_size): Update.
4206 (expand_used_vars): Update.
4207 (tree_expand_cfg): Free histogram earliers, init expansion variables.
4208 * explow.c (allocate_dynamic_stack_space): Update.
4209 * tree-ssa-live.c (remove_unused_locals): Update.
4210 * varasm.c (mark_constant_pool): Update.
4211 * tree-inline.c (remap_decls): Update.
4212 (initialize_cfun): Update.
4213 (declare_return_variable): Update.
4214 (inline_forbidden_p): Update.
4215 (expand_call_inline): Update.
4216 (declare_inline_vars): Update.
4217 (tree_function_versioning): Update.
4218 * tree-flow.h (value_histograms): New.
4219 (VALUE_HISTOGRAMS): New macro.
4220 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
4222 * tree-cfg.c (set_bb_for_stmt): Update.
4223 (replace_by_duplicate_decl): Update.
4224 (move_block_to_fn): Update.
4225 (new_label_mapper): Update.
4226 (dump_function_to_file): Update.
4227 * ipa-struct-reorg.c (build_data_structure): Update.
4228 * cfgrtl.c (print_rtl_with_bb): Update.
4229 * reload1.c (reload): Update.
4231 * config/i386/i386.c (setup_incoming_varargs_64,
4232 ix86_compute_frame_layout): Update.
4233 * config/arc/arc.c (arc_output_function_epilogue): Update.
4235 2008-04-18 Marius Strobl <marius@FreeBSD.org>
4237 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
4238 for FreeBSD as well.
4239 * gthr-posix95.h: Likewise.
4241 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
4243 PR rtl-optimization/35838
4244 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
4245 out the byte offset of the first subreg.
4247 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
4249 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
4250 to split_ti instead of three separate calls with single member arrays.
4251 (subti3 splitter): Ditto.
4252 (adddi3 splitter): Ditto with split_di.
4253 (subdi3 splitter): Ditto.
4254 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
4255 two separate calls with single member arrays. Swap match_dup
4256 operands 1 and 2 to better fit into the array.
4257 (negdi2 splitter): Ditto with split_di.
4258 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
4259 two separate calls with single member arrays. Swap match_dup operands
4260 6 and 7 to better fit into the array.
4262 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
4264 * config/i386/i386.c (sse_builtin_type): New.
4265 (bdesc_sse_args): Likewise.
4266 (bdesc_sse_3arg): Removed.
4267 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4268 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
4269 IX86_BUILTIN_ROUNDPS.
4270 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
4271 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
4272 IX86_BUILTIN_ROUNDPS.
4273 (ix86_expand_sse_4_operands_builtin): Removed.
4274 (ix86_expand_sse_operands_builtin): New.
4275 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
4276 and CODE_FOR_sse4_1_roundps.
4277 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4278 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
4280 2008-04-17 Alan Modra <amodra@bigpond.net.au>
4283 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
4284 regs before frame pop when needed. If use_backchain_to_restore_sp
4285 then load backchain into a temp reg to restore vr and vrsave. Add
4286 code to restore vr after frame pop if possible.
4288 2008-04-17 Richard Guenther <rguenther@suse.de>
4290 * tree-vn.c (expressions_equal_p): Do not check type
4291 equality or compatibility before calling operand_equal_p.
4292 * fold-const.c (operand_equal_p): Check equivalence of
4293 integer constants before bailing out due to signedness or
4294 precision differences.
4295 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
4296 spurious differences in type qualification. Ignore types
4297 for COMPONENT_REFs at all.
4299 2008-04-17 Christian Bruel <christian.bruel@st.com>
4301 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
4302 msw_skip comparison.
4304 2008-04-16 Jakub Jelinek <jakub@redhat.com>
4307 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
4310 PR tree-optimization/35899
4311 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
4312 rather than TREE_OPERAND.
4314 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
4317 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
4318 temporary registers. Change operand predicate to general_operand.
4319 (remainderxf3): Ditto.
4321 2008-04-16 Richard Guenther <rguenther@suse.de>
4323 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
4324 * tree-affine.c (aff_combination_expand): Look through some
4327 2008-04-15 Doug Kwan <dougkwan@google.com>
4329 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
4331 * tree-pretty-print.c (dump_generic_node): Ditto.
4332 * final.c (output_addr_const): Ditto.
4333 * dwarf2out.c (output_cfi): Ditto.
4334 * c-pretty-print.c (pp_c_integer_constant): Ditto.
4335 * print-rtl.c (print_rtx): Ditto.
4336 * print-tree.c (print_node_brief, print_node): Ditto.
4337 * c-common.c (match_case_to_enum_1): Ditto.
4338 * sched-vis.c (print_value): Ditto.
4339 * config/i386/i386.c (print_operand): Cast to long unsigned int
4342 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
4343 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
4344 MS Windows VirtualProtect function.
4346 2008-04-15 Jan Hubicka <jh@suse.cz>
4348 * gengtype.c (write_root): Param_is argument is OK.
4349 * expr.c (expand_expr_real_1): Update call of get_exception_*.
4350 * function.h: Include varray.h
4351 (rtl_eh): New stucture based on except.c one.
4352 (call_site_record): New forward declaration and vector type.
4353 * calls.c (emit_call_1): Do not call
4354 note_current_region_may_contain_throw.
4355 * except.c (eh_status): Remove cur_region, try_region since they are
4357 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
4358 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
4359 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
4360 Remove call_site_data_used, call_site_data_size.
4361 Turn call_site_record into vector in function.h.
4362 (note_current_region_may_contain_throw): Remove.
4363 (get_exception_pointer, get_exception_filter): Do not take struct
4364 function argument; update.
4365 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
4366 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
4367 build_post_landing_pads, dw2_build_landing_pads,
4368 sjlj_assign_call_site_values, sjlj_mark_call_sites,
4369 sjlj_emit_function_enter, sjlj_emit_function_enter,
4370 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
4371 sjlj_build_landing_pads, finish_eh_generation,
4372 remove_exception_handler_label, remove_eh_handler,
4373 maybe_remove_eh_handler, add_reachable_handler,
4374 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
4375 add_action_record, collect_one_action_chain, add_call_site,
4376 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
4377 sjlj_output_call_site_table, output_function_exception_table,
4378 * except.h (note_current_region_may_contain_throw): Remove
4379 (get_exception_pointer, get_exception_filter): Do not take struct
4381 * Makefile.in (GTFILES): Put varargs before struct function.
4383 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4385 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
4386 punt for STRING_CST.
4387 (get_constraint_for): Deal with STRING_CST here instead.
4389 2008-04-15 Richard Guenther <rguenther@suse.de>
4391 * tree-ssa-propagate.c (substitute_and_fold): Substitute
4392 statements in a basic-block with a backward walk. Do not
4393 substitute into dead statements but instead remove those.
4395 2008-04-15 Richard Guenther <rguenther@suse.de>
4397 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
4398 to zero, thus disable creation of SFTs.
4400 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4402 * tree-predcom.c (suitable_reference_p): Return false if the
4403 reference can throw.
4405 2008-04-15 Jakub Jelinek <jakub@redhat.com>
4408 * c-decl.c (finish_decl): If extern or static var has variable
4409 size, set TREE_TYPE (decl) to error_mark_node.
4411 2008-04-15 Rafael Espindola <espindola@google.com>
4413 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
4416 2008-04-15 Richard Guenther <rguenther@suse.de>
4418 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4419 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
4420 (visit_reference_op_load): Do walk vuse-vdef chains on
4421 vn_reference_lookup.
4422 (visit_reference_op_store): But do not here.
4423 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
4424 vn_reference_lookup.
4425 (vn_lookup_with_vuses): But do so here.
4427 2008-04-14 Ian Lance Taylor <iant@google.com>
4429 * fold-const.c (fold_overflow_warning): Remove assertion.
4431 2008-04-15 Ben Elliston <bje@au.ibm.com>
4433 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
4434 temp1 local variables.
4436 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
4439 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
4440 ".text.unlikely" section as executable.
4442 2008-04-14 James E. Wilson <wilson@tuliptree.org>
4444 * config/ia64/ia64.c (rtx_needs_barrier): Handle
4445 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
4446 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
4447 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
4448 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
4449 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
4450 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
4452 2008-04-14 Ian Lance Taylor <iant@google.com>
4454 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
4455 * fold-const.c (fold_comparison): If appropriate, test
4456 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
4457 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
4458 reassociating a pointer type.
4459 * doc/invoke.texi (Optimize Options): Document that
4460 -fstrict-overflow applies to pointer wraparound.
4462 2008-04-13 Jan Hubicka <jh@suse.cz>
4464 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
4466 2008-04-12 Andrew Pinski <pinskia@gmail.com>
4468 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
4469 we are going to "save the world".
4471 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
4473 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
4474 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
4475 operand 0 constraint, not "=".
4477 2008-04-11 James E. Wilson <wilson@tuliptree.org>
4479 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
4481 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
4483 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
4484 of size of positions_needed * CHAR_BIT.
4486 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
4489 * dse.c (store_info): Change positions_needed to unsigned
4491 (lowpart_bitmask): New.
4492 (record_store): Cast to unsigned HOST_WIDE_INT for
4493 positions_needed. Assert width <= size of positions_needed *
4494 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
4495 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
4496 lowpart_bitmask to set mask.
4498 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
4500 * config/bfin/constraints.md: New file.
4501 * config/bfin/bfin.md: Include it.
4502 (adddi3): Use satisfies_constraint functions instead of the old macros.
4503 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4504 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
4505 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
4506 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
4507 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
4508 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
4509 EXTRA_CONSTRAINT): Delete.
4510 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
4511 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
4513 * config/bfin/bfin.c: Include "tm-constrs.h".
4514 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
4515 Use satisfies_constraint functions instead of the old macros.
4516 * doc/md.texi (Blackfin Constraints): Update file name reference.
4518 2008-04-11 Richard Guenther <rguenther@suse.de>
4520 PR tree-optimization/35869
4521 * tree-vrp.c (execute_vrp): Move switch statement update after
4522 jump threading. Schedule another cfg cleanup run.
4524 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
4527 * attribs.c (decl_attributes): Return early on errorneous node.
4529 2008-04-10 Oleg Ryjkov <olegr@google.com>
4531 * tree.h (struct tree_base): Added a new flag default_def_flag.
4532 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
4534 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
4536 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
4538 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4541 * pa.md: Define mode iterator P. Define mode attribute dwc.
4542 (dcacheflush): Update pattern to use iterator P and attribute dwc.
4543 (icacheflush): Likewise.
4544 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
4545 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
4547 2008-04-11 Ben Elliston <bje@au.ibm.com>
4549 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
4551 2008-04-10 Rafael Espindola <espindola@google.com>
4553 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
4554 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
4555 (extract_range_from_expr): The same.
4557 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
4559 * config/mips/mips.md (GPR2): New mode iterator.
4561 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
4562 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
4563 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
4564 Rewrite these to take two modes, the mode of comparison and the
4565 mode of the destination.
4566 * config/mips/mips.c (mips_expand_scc): Instead of having
4567 paradoxical subreg as destination, expand "narrowing" scc if mode
4568 of comparison is SI and target is requested in DI mode.
4569 (mips_emit_int_order_test): Update comment. Make mode of
4570 comparison match CMP0 rather than TARGET. When creating inverse
4571 target use mode of TARGET.
4573 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
4575 * gcov-dump.c (tag_summary): Only print summaries for the first
4576 GCOV_COUNTERS_SUMMABLE counters.
4578 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
4580 * config/i386/i386.md (absneg): New code iterator.
4581 (absnegprefix): New code attribute.
4582 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
4583 patterns using absneg code iterator.
4584 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
4585 using absneg code iterator.
4586 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
4587 *neg<mode>2 patterns using absneg code iterator.
4588 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4589 *negextendsfdf2 patterns using absneg code iterator.
4590 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
4591 *negextendsfxf2 patterns using absneg code iterator.
4592 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4593 *negextendsfdf2 patterns using absneg code iterator.
4594 * config/i386/sse.md (<code><mode>2): Macroize expander from
4595 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
4597 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
4599 * config/s390/s390.h: Remove the remains of the recent search
4600 & replace action of current_function_outgoing_args_size.
4602 2008-04-10 Ira Rosen <irar@il.ibm.com>
4604 PR tree-optimization/35821
4605 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
4606 NEW_STMT_LIST is not NULL.
4608 2008-04-09 David Edelsohn <edelsohn@gnu.org>
4611 * toplev.c (process_options): Remove -ffunction-sections debugging
4614 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
4616 PR middle-end/PR28690
4617 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
4618 than gen_rtx_fmt_ee to perform more canonicalizations.
4620 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4623 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
4625 2008-04-09 Richard Guenther <rguenther@suse.de>
4627 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
4628 (dump_function_to_file): Dump function arguments with types.
4630 2008-04-08 Richard Guenther <rguenther@suse.de>
4632 * fold-const.c (fold_widened_comparison): Do not allow
4633 sign-changes that change the result.
4635 2008-04-08 Janis Johnson <janis187@us.ibm.com>
4638 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
4639 kinds of indirect references.
4641 2008-04-08 David Edelsohn <edelsohn@gnu.org>
4643 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
4644 GNU Fortran language string.
4646 2008-04-08 Rafael Espindola <espindola@google.com>
4648 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
4649 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
4650 * tree.h (tree_call_nonnegative_warnv_p): New.
4652 2008-04-08 Jan Hubicka <jh@suse.cz>
4654 * function.c (free_after_compilation): Clear out regno_reg_rtx
4657 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
4660 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
4662 PR middle-end/PR28690
4663 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
4664 same precedence as REG_POINTER and MEM_POINTER operands.
4666 2008-04-08 Richard Guenther <rguenther@suse.de>
4669 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
4670 for adding index to base.
4672 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
4674 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
4675 (MINGW_ENABLE_EXECUTE_STACK): New.
4676 (IN_LIBGCC2): For libgcc include windows.h file for
4677 function declarations.
4679 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
4681 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
4682 and tem2 if tem1 is not a REG or MULT.
4684 2008-04-08 Jan Hubicka <jh@suse.cz>
4686 * function.h (incomming_args): Break out of struct function.
4687 (function_subsections): Break out of struct function.
4688 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
4689 return_rtx and hard_reg_initial_vals from struct function.
4690 Kill inl_max_label_num.
4691 (current_function_pops_args, current_function_args_info,
4692 current_function_args_size, current_function_args_size,
4693 current_function_pretend_args_size,
4694 current_function_outgoing_args_size,
4695 current_function_internal_arg_pointer, current_function_return_rtx):
4696 Kill compatibility accestor macros.
4697 * builtins.c (expand_builtin_apply_args_1): Update.
4698 (expand_builtin_next_arg): Update.
4699 * df-scan.c (df_get_call_refs): Update.
4700 * dbxout.c (dbxout_function_end): Update.
4701 * dwarf2out.c (dwarf2out_switch_text_section): Update.
4702 (output_line_info): Update.
4703 (secname_for_decl): Update.
4704 (dwarf2out_var_location): Update.
4705 * function.c (free_after_compilation): Update.
4706 (assign_parm_find_stack_rtl): Update.
4707 (assign_parms): Update.
4708 (expand_dummy_function_end): Update.
4709 (expand_function_end): Update.
4710 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
4711 (expand_call): Update.
4712 (emit_library_call_value_1): Update.
4713 (store_one_arg): Update.
4714 * varasm.c (initialize_cold_section_name): Update.
4715 (unlikely_text_section): Update.
4716 (unlikely_text_section_p): Update.
4717 (assemble_start_function): Update.
4718 (assemble_end_function): Update.
4719 (default_section_type_flags): Update.
4720 (switch_to_section): Update.
4721 * integrate.c (set_decl_abstract_flags): Update.
4722 (get_hard_reg_initial_val): Update.
4723 (has_hard_reg_initial_val): Update.
4724 (allocate_initial_values): Update.
4725 * resource.c (init_resource_info): Update.
4726 * config/alpha/alpha.c (NUM_ARGS): Update.
4727 (direct_return): Update.
4728 (alpha_va_start): Update.
4729 (alpha_sa_size): Update.
4730 (alpha_initial_elimination_offset): Update.
4731 (alpha_expand_prologue): Update.
4732 (alpha_start_function): Update.
4733 (alpha_expand_epilogue): Update.
4734 (unicosmk_initial_elimination_offset):
4735 * config/alpha/alpha.md (call expander): Update.
4736 * config/s390/s390.c (s390_register_info): Update.
4737 (s390_register_info): Update.
4738 (s390_frame_info): Update.
4739 (s390_initial_elimination_offset): Update.
4740 (s390_build_builtin_va_list): Update.
4741 (s390_va_start): Update.
4742 * config/spu/spu.c (direct_return): Update.
4743 (spu_expand_prologue): Update.
4744 (spu_initial_elimination_offset): Update.
4745 (spu_build_builtin_va_list): Update.
4746 (spu_va_start): Update.
4747 * config/sparc/sparc.c (sparc_init_modes): Update.
4748 (sparc_compute_frame_size): Update.
4749 (function_value): Update.
4750 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
4751 * config/i386/i386.md (return expander): Update.
4752 * config/i386/i386.c (ix86_va_start): Update.
4753 (ix86_can_use_return_insn_p): Update.
4754 (ix86_compute_frame_layout): Update.
4755 (ix86_expand_epilogue): Update.
4756 * config/sh/sh.c (output_stack_adjust): Update.
4757 (calc_live_regs): Update.
4758 (sh_expand_prologue): Update.
4759 (sh_builtin_saveregs): Update.
4760 (sh_va_start): Update.
4761 (initial_elimination_offset): Update.
4762 (sh_allocate_initial_value): Update.
4763 (sh_function_ok_for_sibcall): Update.
4764 (sh_get_pr_initial_val): Update.
4765 * config/sh/sh.md (return expander): Update.
4766 * config/avr/avr.c (frame_pointer_required_p): UPdate.
4767 * config/crx/crx.c (crx_compute_frame): UPdate.
4768 (crx_initial_elimination_offset): UPdate.
4769 * config/xtensa/xtensa.c (compute_frame_size): Update
4770 (xtensa_builtin_saveregs): Update.
4771 (xtensa_va_start): Update.
4772 (order_regs_for_local_alloc): Update.
4773 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
4774 (xstormy16_expand_builtin_va_start): Update.
4775 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
4776 * config/m68hc11/m68hc11.md (return expanders): Update.
4777 * config/m68hc11/m68hc11.c (expand_prologue): Update.
4778 (expand_epilogue): Update.
4779 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
4780 (cris_simple_epilogue): Update.
4781 (cris_expand_prologue): Update.
4782 (cris_expand_epilogue): Update.
4783 * config/iq2000/iq2000.c (iq2000_va_start): Update.
4784 (compute_frame_size): Update.
4785 * config/mt/mt.c (mt_compute_frame_size): Update.
4786 * config/mn10300/mn10300.c (expand_prologue): Update.
4787 (expand_epilogue): Update.
4788 (initial_offset): Update.
4789 (mn10300_builtin_saveregs):
4790 * config/mn10300/mn10300.md (return expander): Update.
4791 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4792 (ia64_initial_elimination_offset): Update.
4793 (ia64_initial_elimination_offset): Update.
4794 (ia64_expand_prologue): Update.
4795 * config/m68k/m68k.md (return expander): Update.
4796 * config/rs6000/rs6000.c (rs6000_va_start): Update.
4797 (rs6000_stack_info): Update.
4798 * config/mcore/mcore.c (layout_mcore_frame): Update.
4799 (mcore_expand_prolog): Update.
4800 * config/arc/arc.c (arc_compute_frame_size): Update.
4801 * config/score/score3.c (score3_compute_frame_size): Update.
4802 * config/score/score7.c (score7_compute_frame_size): Update.
4803 * config/arm/arm.c (use_return_insn): Update.
4804 (thumb_find_work_register): Update.
4805 (arm_compute_save_reg_mask): Update.
4806 (arm_output_function_prologue): Update.
4807 (arm_output_epilogue): Update.
4808 (arm_size_return_regs): Update.
4809 (arm_get_frame_offsets): Update.
4810 (arm_expand_prologue): Update.
4811 (thumb_exit): Update.
4812 (thumb_unexpanded_epilogue): Update.
4813 (thumb1_output_function_prologue): Update.
4814 * config/pa/pa.md (return expander): Update.
4815 * config/pa/pa.c (compute_frame_size): Update.
4816 (hppa_builtin_saveregs): Update.
4817 * config/mips/mips.c (mips_va_start): Update.
4818 (mips16_build_function_stub): Update.
4819 (mips_compute_frame_info): Update.
4820 (mips_restore_gp): Update.
4821 (mips_output_function_prologue): Update.
4822 (mips_expand_prologue): Update.
4823 * config/v850/v850.c (compute_frame_size): Update.
4824 (expand_prologue): * config/mmix/mmix.c (along): update.
4825 (mmix_initial_elimination_offset): update.
4826 (mmix_reorg): update.
4827 (mmix_use_simple_return): update.
4828 (mmix_expand_prologue): update.
4829 (mmix_expand_epilogue): Update.
4830 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
4831 (emit_link_insn): Update.
4833 2008-04-08 Anatoly Sokolov <aesok@post.ru>
4835 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
4836 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
4838 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
4841 2008-04-07 Jan Hubicka <jh@suse.cz>
4843 * function.h (rtl): Rename to x_rtl.
4845 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4846 frame_offset, stack_check_probe_note, arg_pointer_save_area,
4847 used_temp_slots avail_temp_slots, temp_slot_level,
4848 nonlocal_goto_handler_labels): Update accesstors.
4849 (rtl): New global variable.
4850 (struct function): Move some fileds to rtl_data.
4851 (get_arg_pointer_save_area): Update prototype.
4852 * builtins.c (expand_builtin_setjmp_receiver): Update call of
4853 get_arg_pointer_save_area.
4854 * expr.c (init_expr): Update
4855 * function.c (get_frame_size): Update
4856 (assign_stack_local): Update
4857 (expand_function_end): Update.
4858 (get_art_pointer_save_area): Update
4860 * emit-rtl.c (rtl): Declare.
4861 (regno_reg_rtx): Declare.
4862 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4864 (gen_reg_rtx): Update.
4865 * varasm.c (n_deferred_constatns): Update accestor.
4866 (init_varasm_status): Do not allocate varasm_status.
4867 (force_const_mem, get_pool_size, output_constant_pool): Update.
4868 * stmt.c (force_label_rtx): Do not use x_ prefixes.
4869 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4870 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
4871 * sparc/sparc.h (INIT_EXPANDERS): Update.
4872 * ia64/ia64.h (INIT_EXPANDERS): Update.
4874 2008-04-07 James E. Wilson <wilson@tuliptree.org>
4876 * reload.c (push_secondary_reload): Add missing break to for loop.
4878 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
4880 PR middle-end/PR28690
4881 * rtlanal.c: Update copyright years.
4882 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
4883 as REG_POINTER and MEM_POINTER operands.
4884 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
4885 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
4886 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
4887 * gcse.c: Update copyright years.
4888 (pre_delete): Call gen_reg_rtx_and_attrs.
4889 (hoist_code): Likewise.
4890 (build_store_vectors): Likewise.
4891 (delete_store): Likewise.
4892 * loop-invariant.c (move_invariant_reg): Likewise.
4893 Update copyright years.
4895 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
4897 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
4898 control string instead of quoted.
4900 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
4902 * doc/rtl.texi: Rewrite of subreg section.
4904 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
4907 * config/i386/i386.c (legitimize_pic_address): Add treating
4908 of dllimport SYM_REF's.
4909 (legitimize_dllimport_symbol): Add prototype.
4911 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4913 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
4914 reference in constructor with non self-referential type.
4916 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4918 Removal of Return with Depressed Stack Pointer support
4919 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
4920 (ECF_SP_DEPRESSED): Likewise.
4921 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
4922 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
4923 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4924 (expand_call): Do not test ECF_SP_DEPRESSED.
4925 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4926 * function.c (keep_stack_depressed): Delete.
4927 (handle_epilogue_set): Likewise.
4928 (update_epilogue_consts): Likewise.
4929 (emit_equiv_load): Likewise.
4930 (thread_prologue_and_epilogue_insns): Remove support for Return with
4931 Depressed Stack Pointer.
4932 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4934 2008-04-06 Richard Guenther <rguenther@suse.de>
4936 PR tree-optimization/35400
4937 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
4938 information from SSA_NAMEs.
4940 2008-04-06 Anatoly Sokolov <aesok@post.ru>
4942 * config/avr/avr.h (avr_mega_p): Remove declaration.
4943 (AVR_MEGA): Remove macro.
4944 * config/avr/avr.c (avr_mega_p): Remove variable.
4945 (avr_override_options): Remove inicializion of avr_mega_p.
4946 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
4947 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
4948 (avr_jump_mode): (Ditto.).
4949 (avr_output_progmem_section_asm_op): (Ditto.).
4950 (avr_asm_init_sections): (Ditto.).
4951 (avr_asm_init_sections): (Ditto.).
4952 (avr_rtx_costs): (Ditto.).
4953 * config/avr/avr.md: (Ditto.).
4954 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
4957 2008-04-06 Richard Guenther <rguenther@suse.de>
4959 PR tree-optimization/35842
4960 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
4961 is_gimple_invariant_address.
4963 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4965 * gcc.c (default_compilers): Sync Fortran extensions list with
4966 that in fortran/lang-specs.h.
4967 * doc/invoke.texi: Likewise.
4968 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
4969 * dwarf2out.c (gen_compile_unit_die): Likewise.
4971 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
4973 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
4975 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
4978 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
4979 attribute is used for nested functions.
4981 2008-04-05 Jan Hubicka <jh@suse.cz>
4983 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
4985 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
4987 (dump_files): Update.
4988 (enable_rtl_dump_file): Do not accept letter argument.
4989 * tree-pass.h (dump_file_info): Remove letter argument.
4990 * toplev.c (decode_d_option): Update -da handling.
4991 * toplev.h (enable_rtl_dump_file): Update prototype.
4992 * passes.c (register_one_dump_file): Do not accept IPA argument; work
4993 it out based on pass type.
4994 (register_dump_files_1): Likewise.
4995 (init_optimization_passes): Update register_one_dump_file calls.
4996 (execute_one_pass): Sanity check that IPA passes are called at IPA
4997 level and RTL passes at RTL level.
4998 (execute_pass_list): IPA pass can not be after or subpass of
5000 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
5001 disallov RTL subpasses of IPA subpasses.
5003 2008-04-05 Ben Elliston <bje@au.ibm.com>
5005 * tree-cfg.c (need_fake_edge_p): Return false for calls to
5006 builtins that return exactly once and do not throw. Cache call to
5009 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
5011 PR rtl-optimization/34916
5013 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
5014 between instruction pairs.
5016 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
5018 * doc/invoke.texi: Document -mbitops for SH.
5019 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
5020 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
5021 * config/sh/sh.c (print_operand): Add %t operand code.
5022 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
5023 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
5024 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
5025 (extendqihi2): Likewise.
5026 (movqi_i): Likewise.
5027 (insv): Use bset, bclr and bst instructions for SH2A if possible.
5028 (extv): Use bld instruction for SH2A if possible.
5030 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
5031 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
5032 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
5033 (bset.b, bclr.b): Define peepholes.
5034 * config/sh/sh.opt (mbitops): New option.
5036 2008-04-04 Janis Johnson <janis187@us.ibm.com>
5039 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
5040 and view convert expression.
5042 2008-04-04 Jakub Jelinek <jakub@redhat.com>
5045 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5047 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
5049 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
5051 * config/i386/cpuid.h (bit_AES): New.
5052 (bit_PCLMUL): Likewise.
5054 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
5055 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
5056 SSE2 if AES or PCLMUL is enabled.
5057 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
5058 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5059 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
5060 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
5061 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
5062 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
5063 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5064 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
5065 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
5066 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
5067 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
5068 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
5069 __builtin_ia32_aeskeygenassist128 and
5070 __builtin_ia32_pclmulqdq128.
5071 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
5072 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
5073 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
5075 * config/i386/i386.h (TARGET_AES): New.
5076 (TARGET_PCLMUL): Likewise.
5077 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
5079 * config/i386/i386.md (UNSPEC_AESENC): New.
5080 (UNSPEC_AESENCLAST): Likewise.
5081 (UNSPEC_AESDEC): Likewise.
5082 (UNSPEC_AESDECLAST): Likewise.
5083 (UNSPEC_AESIMC): Likewise.
5084 (UNSPEC_AESKEYGENASSIST): Likewise.
5085 (UNSPEC_PCLMUL): Likewise.
5087 * config/i386/i386.opt (maes): New.
5088 (mpclmul): Likewise.
5090 * config/i386/sse.md (aesenc): New pattern.
5091 (aesenclast): Likewise.
5093 (aesdeclast): Likewise.
5095 (aeskeygenassist): Likewise.
5096 (pclmulqdq): Likewise.
5098 * config/i386/wmmintrin.h: New.
5100 * doc/extend.texi: Document AES and PCLMUL built-in function.
5102 * doc/invoke.texi: Document -maes and -mpclmul.
5104 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
5106 * function.c (free_after_parsing): Replace with
5107 cxx_push_function_context from C++ front-end.
5108 (allocate_struct_function): Don't call langhook.
5109 * langhooks.h (struct lang_hooks_for_functions): Delete.
5110 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
5112 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
5113 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
5114 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5115 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
5116 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
5117 remove LANG_HOOKS_FUNCTION_INITIALIZER.
5118 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
5120 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
5121 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
5123 2008-04-04 Jakub Jelinek <jakub@redhat.com>
5126 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
5129 2008-04-04 Richard Guenther <rguenther@suse.de>
5132 * fold-const.c (optimize_minmax_comparison): Use the correct
5133 type for the constant in the simplified comparison.
5135 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
5137 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
5138 Pass L2 size as "--param l2-cache-size" to the compiler.
5139 (decode_l2_cache): New function to decode L2 cache parameters using
5140 0x8000006 extended cpuid function.
5141 (detect_caches_amd): Determine parameters of L2 cache using
5142 decode_l2_caches function.
5143 (decode_caches_intel): Decode L2 cache parameters.
5144 (detect_caches_intel): Determine L2 cache parameters using
5145 decode_caches_intel and decode_l2_caches functions.
5147 2008-04-03 Bob Wilson <bob.wilson@acm.org>
5149 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
5150 secondary input reload for subword loads from the constant pool.
5152 2008-04-03 Janis Johnson <janis187@us.ibm.com>
5155 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
5156 constants of the appropriate size for runtime calculations.
5159 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
5160 decimal-float literal constant zero.
5162 2008-04-03 Jakub Jelinek <jakub@redhat.com>
5165 * c-parser.c (c_parser_omp_atomic): Call
5166 default_function_array_conversion on the RHS.
5169 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
5170 call is_variable_sized if decl has incomplete type.
5172 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
5174 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
5176 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
5178 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
5180 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
5181 (sgt<u>): Merge sgt and sgtu into new expander.
5182 (sgt, sgtu): Remove expanders.
5183 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
5184 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
5185 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
5186 *sgtu_<mode>_mips16 into new pattern.
5187 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
5188 (sge<u>): Merge sge and sgeu into new expander.
5189 (sge, sgeu): Remove expanders.
5190 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
5192 (*sge_<mode>, second *sge_<mode>): Remove patterns.
5193 (slt<u>): Merge slt and sltu into new expander.
5194 (slt, sltu): Remove expanders.
5195 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
5196 (*slt_<mode>, *sltu_<mode>): Remove patterns.
5197 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
5198 *sltu_<mode>_mips16 into new pattern.
5199 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
5200 (sle<u>): Merge sle and sleu into new expander.
5201 (sle, sleu): Remove expanders.
5202 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
5203 (*sle_<mode>, *sleu_<mode>): Remove patterns.
5204 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
5205 *sleu_<mode>_mips16 into new pattern.
5206 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
5208 2008-04-03 Jan Hubicka <jh@suse.cz>
5210 PR tree-optimization/35795
5211 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
5212 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5213 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5214 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5215 * score/score3.c (score3_output_mi_thunk): Likewise.
5216 * score/score7.c (score7_output_mi_thunk): Likewise.
5217 * mips/mips.c (mips_output_mi_thunk): Likewise.
5219 2008-04-03 Richard Guenther <rguenther@suse.de>
5221 * tree-vrp.c (extract_range_from_unary_expr): Handle all
5222 conversions. Simplify code.
5224 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
5226 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
5228 2008-04-03 Tom Tromey <tromey@redhat.com>
5229 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5231 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5232 * config/bfin/t-bfin-linux (generated_files): Add
5233 linux-sysroot-suffix.h.
5234 * doc/install.texi (Prerequisites): Require make 3.80.
5235 * doc/sourcebuild.texi (Front End Directory): Document new
5237 * Makefile.in (generated_files): New variable.
5238 (ALL_HOST_OBJS): New variable.
5239 ($(ALL_HOST_OBJS)): New target.
5241 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
5243 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
5244 (remap_block): Call id->transform_lang_insert_block instead
5246 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
5247 Set id.transform_lang_insert_block to NULL.
5248 (clone_body): Move to cp/optimize.c
5249 * tree-inline.h (struct copy_body_data): Change
5250 transform_lang_insert_block to function pointer.
5251 (copy_generic_body, copy_decl_no_change): Export.
5252 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
5253 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
5254 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
5256 * c-tree.h (insert_block): Kill.
5257 * c-decl.c (insert_block): Kill.
5259 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
5261 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5262 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5263 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
5265 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
5266 argument, call {push,pop}_function_context from here.
5267 * c-parser.c: Use c_{push,pop}_function_context.
5269 * function.c (push_function_context_to): Move meat ...
5270 (push_function_context): ... here. Simplify.
5271 * function.c (pop_function_context_from): Move meat ...
5272 (pop_function_context): ... here. Simplify.
5273 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
5275 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5276 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5277 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
5278 * tree.h (push_function_context_to, pop_function_context_from): Remove.
5280 2008-04-03 Ben Elliston <bje@au.ibm.com>
5282 * expmed.c (extract_force_align_mem_bit_field): Remove.
5284 2008-04-03 Richard Guenther <rguenther@suse.de>
5287 * expr.h (try_casesi): Adjust prototype.
5288 * expr.c (try_casesi): Take fallback label as extra parameter.
5289 Use that for gen_casesi if default_label is NULL.
5290 * stmt.c (expand_case): Pass fallback label to try_casesi,
5291 make sure to fill gaps with a fallback label if default_label
5294 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
5297 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
5299 2008-04-03 Ben Elliston <bje@au.ibm.com>
5301 * expmed.c (extract_split_bit_field): Remove if (0) code.
5302 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
5303 (do_ds_constraint): Likewise.
5305 2008-04-02 Joseph Myers <joseph@codesourcery.com>
5307 * doc/cppopts.texi (-dU): Document.
5308 * c-common.h (flag_dump_macros): Update comment.
5309 * c-opts.c (handle_OPT_d): Handle -dU.
5310 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
5311 dump_queued_macros, cb_used_define, cb_used_undef): New.
5312 (init_pp_output): Handle -dU.
5313 (cb_line_change): Call dump_queued_macros.
5314 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
5316 2008-04-02 Anatoly Sokolov <aesok@post.ru>
5318 * config/avr/predicates.md (io_address_operand): New predicate.
5319 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
5320 * config/avr/avr.c (avr_io_address_p): Remove function.
5321 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
5322 'avr_io_address_p' function.
5323 (out_movhi_r_mr): (Ditto.).
5324 (out_movqi_mr_r): (Ditto.).
5325 (out_movhi_mr_r): (Ditto.).
5326 (avr_address_cost): (Ditto.).
5328 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
5330 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
5331 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
5332 in 32bit mode when XMM registers are available to avoid store
5334 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
5335 corresponding post-reload splitters.
5337 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
5339 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
5340 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
5341 __builtin_ia32_roundss.
5342 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
5343 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
5344 __builtin_ia32_roundss.
5345 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
5346 IX86_BUILTIN_SHUFPD here.
5348 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
5350 * config/i386/i386.md (plogic): New.
5351 (plogicprefix): Likewise.
5353 * config/i386/mmx.md (mmx_<code><mode>3): New.
5354 (mmx_and<mode>3): Removed.
5355 (mmx_ior<mode>3): Likewise.
5356 (mmx_xor<mode>3): Likewise.
5358 * config/i386/sse.md (<code><mode>3): New.
5359 (*<code><mode>3): Likewise.
5360 (*<code><mode>3): Likewise.
5361 (<code><mode>3): Likewise.
5362 (*sse_<code><mode>3): Likewise.
5363 (*sse2_<code><mode>3): Likewise.
5364 (<code>tf3): Likewise.
5365 (*<code>tf3): Likewise.
5366 (and<mode>3): Likewise.
5367 (*and<mode>3): Likewise.
5368 (ior<mode>3): Removed.
5369 (*ior<mode>3): Likewise.
5370 (xor<mode>3): Likewise.
5371 (*xor<mode>3): Likewise.
5372 (*and<mode>3): Likewise.
5373 (*ior<mode>3): Likewise.
5374 (*xor<mode>3): Likewise.
5375 (and<mode>3): Likewise.
5376 (*sse_and<mode>3): Likewise.
5377 (*sse2_and<mode>3): Likewise.
5379 (*andtf3): Likewise.
5380 (ior<mode>3): Likewise.
5381 (*sse_ior<mode>3): Likewise.
5382 (*sse2_ior<mode>3): Likewise.
5384 (*iortf3): Likewise.
5385 (xor<mode>3): Likewise.
5386 (*sse_xor<mode>3): Likewise.
5387 (*sse2_xor<mode>3): Likewise.
5389 (*xortf3): Likewise.
5391 2008-04-02 Richard Guenther <rguenther@suse.de>
5393 PR tree-optimization/14495
5394 PR tree-optimization/34793
5395 * tree-vrp.c (struct switch_update): New structure.
5396 (to_remove_edges, to_update_switch_stmts): New VECs.
5397 (simplify_switch_using_ranges): New function. Remove not taken
5398 case labels and edges.
5399 (simplify_stmt_using_ranges): Call it.
5400 (identify_jump_threads): Mark edges we have queued for removal
5401 so we don't thread them.
5402 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
5404 * tree-cfg.c (group_case_labels): Deal with missing default label.
5405 (tree_verify_flow_info): Allow missing default label.
5406 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
5407 (emit_case_nodes): Likewise.
5408 (expand_case): Do not rely on the default label to be present.
5409 * expr.c (try_casesi): Deal with NULL default_label.
5410 (do_tablejump): Likewise.
5412 2008-04-02 Richard Guenther <rguenther@suse.de>
5414 PR tree-optimization/14495
5415 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
5416 SWITCH_EXPR here ...
5417 (vrp_visit_switch_stmt): ... but here (new function).
5418 (find_case_label_index): New helper function.
5419 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
5421 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
5423 * fwprop.c: Fix ISO-C99ism.
5425 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
5428 * Makefile.in (objdir): Set it here.
5429 * configure.ac: Not here. Find dynamic linker characteristics.
5430 * exec-tool.in: Use them.
5431 * aclocal.m4: Regenerate.
5432 * configure: Regenerate.
5434 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
5436 * expr.c (expand_var): Delete it.
5437 * expr.h (expand_var): Delete prototype.
5438 * function.c (expand_function_start): Use expand_decl instead.
5439 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
5442 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
5444 PR rtl-optimization/35542
5445 * fwprop.c (forward_propagate_and_simplify): Replace
5446 loc_reg_mentioned_in_p with reg_mentioned_p.
5448 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
5450 PR rtl-optimization/35281
5451 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
5452 (propagate_rtx_1): Handle PR_HANDLE_MEM.
5453 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
5454 (varying_mem_p): Move above propagate_rtx.
5455 (all_uses_available_at): Do not check MEMs.
5457 2008-04-02 Rafael Espindola <espindola@google.com>
5459 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
5460 (register_edge_assert_for_2): Split the cond argument.
5461 (register_edge_assert_for_1): Adjust for the change in
5462 register_edge_assert_for_2.
5463 (register_edge_assert_for): Split the cond argument.
5464 (find_switch_asserts): Adjust for the change in
5465 register_edge_assert_for.
5467 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
5469 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
5470 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
5471 offsets for 64-bit mingw.
5472 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
5473 abi for x86_64-pc-mingw.
5475 2008-04-02 Richard Guenther <rguenther@suse.de>
5477 * tree-vrp.c (extract_range_from_assert): Make sure to not
5478 produce range min/max with TREE_OVERFOW set.
5479 If merging a anti-range and a range keep the anti-range if
5480 the range covers all values of the type.
5481 (register_edge_assert_for_2): Only allow sign-changing
5482 conversions in detecting canonical range checks. Also
5483 register an assert for the unsigned name if useful.
5485 PR tree-optimization/35787
5486 * tree-vrp.c (vrp_val_max): New function.
5487 (vrp_val_min): Likewise.
5488 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
5489 (vrp_val_is_min): Likewise.
5490 (supports_overflow_infinity): Use vrp_val_{min,max}.
5491 (negative_overflow_infinity): Likewise.
5492 (positive_overflow_infinity): Likewise.
5493 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
5494 (is_positive_overflow_infinity): Likewise.
5495 (is_overflow_infinity): Likewise.
5496 (avoid_overflow_infinity): Use vrp_val_{min,max} and
5497 vrp_val_is_{min,max}.
5498 (set_and_canonicalize_value_range): Canonicalize anti-ranges
5499 to ranges if possible. Avoid empty ranges.
5501 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5504 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
5505 the expression is a function address.
5507 2008-04-01 George Helffrich <george@gcc.gnu.org>
5509 PR fortran/35154, fortran/23057
5510 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
5511 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
5512 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
5513 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
5515 (dbxout_syms): Check for COMMON-based symbol and wrap in
5516 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
5517 in bracket for efficiency.
5519 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
5520 using DW_TAG_common_block + member offset.
5521 (add_pubname_string): New function.
5522 (dw_expand_expr): New function to find block name and offset for
5524 (common_check): New function to check whether symbol in Fortran COMMON.
5525 (gen_variable_die): If COMMON, use DW_TAG_common_block.
5527 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
5530 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
5532 2008-04-02 Ben Elliston <bje@au.ibm.com>
5534 * config/v850/v850.md (casesi): Remove if (0) code.
5535 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5536 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5538 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
5540 * config/i386/i386.md (rex64suffix): New mode attribute.
5541 (floathi<mode>2): Disable expander for SSE math.
5542 (*floathi<mode>2_1): New insn insn_and_split pattern.
5543 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
5544 corresponding post-reload splitters.
5545 (*floathi<mode>2_i387): New macroized insn pattern.
5546 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
5547 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
5548 insn_and_split pattern.
5549 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
5550 New macroized instruction patterns and corresponding post-reload
5552 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
5553 and corresponding post-reload splitters.
5554 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
5555 New macroized instruction patterns.
5556 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
5557 macroized instruction patterns and corresponding post-reload splitters.
5558 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
5559 corresponding post-reload splitters.
5560 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
5561 New macroized instruction patterns.
5562 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
5563 corresponding post-reload splitters.
5564 (*floatsi<mode>2_i387): New macroized instruction patterns.
5566 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
5568 * config/i386/i386.md (smaxmin): New.
5569 (umaxmin): Likewise.
5570 (maxminiprefix): Likewise.
5571 (maxminfprefix): Likewise.
5572 (<code><mode>3): Likewise.
5573 (smin<mode>3): Removed.
5574 (smax<mode>3): Likewise.
5576 * config/i386/mmx.md (mmx_<code>v2sf3): New.
5577 (mmx_<code>v4hi3): Likewise.
5578 (mmx_<code>v8qi3): Likewise.
5579 (mmx_smaxv2sf3): Removed.
5580 (mmx_sminv2sf3): Likewise.
5581 (mmx_umaxv8qi3): Likewise.
5582 (mmx_smaxv4hi3): Likewise.
5583 (mmx_uminv8qi3): Likewise.
5584 (mmx_sminv4hi3): Likewise.
5586 * config/i386/sse.md (<addsub><mode>3): New.
5587 (*<addsub><mode>3): Likewise.
5588 (<sse>_vm<addsub><mode>3): Likewise.
5589 (<maxmin><mode>3): Likewise.
5590 (*<maxmin><mode>3_finite): Likewise.
5591 (*<maxmin><mode>3): Likewise.
5592 (<sse>_vm<maxmin><mode>3): Likewise.
5593 (sse3_h<addsub>v4sf3): Likewise.
5594 (sse3_h<addsub>v2df3): Likewise.
5595 (<maxmin>v16qi3): Likewise.
5596 (*<maxmin>v16qi3): Likewise.
5597 (<maxmin>v8hi3): Likewise.
5598 (*<maxmin>v8hi3): Likewise.
5599 (*sse4_1_<maxmin><mode>3): Likewise.
5600 (*sse4_1_<maxmin><mode>3): Likewise.
5601 (add<mode>3): Removed.
5602 (*add<mode>3): Likewise.
5603 (<sse>_vmadd<mode>3): Likewise.
5604 (sub<mode>3): Likewise.
5605 (*sub<mode>3): Likewise.
5606 (<sse>_vmsub<mode>3): Likewise.
5607 (smin<mode>3): Likewise.
5608 (*smin<mode>3_finite): Likewise.
5609 (*smin<mode>3): Likewise.
5610 (<sse>_vmsmin<mode>3): Likewise.
5611 (smax<mode>3): Likewise.
5612 (*smax<mode>3_finite): Likewise.
5613 (*smax<mode>3): Likewise.
5614 (<sse>_vmsmax<mode>3): Likewise.
5615 (sse3_haddv4sf3): Likewise.
5616 (sse3_haddv2df3): Likewise.
5617 (sse3_hsubv4sf3): Likewise.
5618 (sse3_hsubv2df3): Likewise.
5619 (umaxv16qi3): Likewise.
5620 (*umaxv16qi3): Likewise.
5621 (smaxv8hi3): Likewise.
5622 (*smaxv8hi3): Likewise.
5623 (*sse4_1_smax<mode>3): Likewise.
5624 (*sse4_1_umax<mode>3): Likewise.
5625 (uminv16qi3): Likewise.
5626 (*uminv16qi3): Likewise.
5627 (sminv8hi3): Likewise.
5628 (*sminv8hi3): Likewise.
5629 (*sse4_1_smin<mode>3): Likewise.
5630 (*sse4_1_umin<mode>3): Likewise.
5632 2008-04-01 Rafael Espindola <espindola@google.com>
5634 * tree-cfg.c (verify_expr): remove in_phi.
5635 (verify_stmt): Don't call walk_tree with verify_expr. Use
5636 is_gimple_min_invariant instead of is_gimple_val.
5638 2008-04-01 Joseph Myers <joseph@codesourcery.com>
5640 * doc/include/gpl_v3.texi: Update for manpage generation.
5641 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
5643 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
5644 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
5645 gpl_v3.texi instead of gpl.texi.
5648 2008-04-01 Jakub Jelinek <jakub@redhat.com>
5651 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
5653 2008-04-01 Rafael Espindola <espindola@google.com>
5655 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
5656 (extract_code_and_val_from_cond): Use
5657 extract_code_and_val_from_cond_with_ops.
5659 2008-04-01 Jan Hubicka <jh@suse.cz>
5661 * function.c (free_after_compilation): Free epilogue_delay_list.
5662 (prepare_function_start): Assert that previous compilation was freed.
5664 2008-04-01 Jan Hubicka <jh@suse.cz>
5665 Jim Wilson <wilson@tuliptree.org>
5666 Andreas Tobler <andreast@gcc.gnu.org>
5669 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
5670 rtl.emit instead cfun->emit.
5671 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
5672 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
5674 2008-04-01 Ben Elliston <bje@au.ibm.com>
5676 * doc/c-tree.texi (Function Basics): Fix grammatical error.
5678 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
5680 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
5682 (fprofile-use): Add var flag_profile_use
5683 * coverage.c (coverage_begin_output): Do not open a gcno file for
5684 output only if -ftest-coverage is set.
5685 Do not add getpwd() to gcda file path.
5686 (build_gcov_info): Check the new flag
5687 flag_profile_datafile_relative_path.
5688 (coverage_init): Use profile_data_prefix.
5689 Read profile counter only if flag_profile_use is set.
5690 * opts.c (common_handle_option): New option fprofile-use=,
5691 fprofile-dir=, fprofile-generate=.
5692 * toplev.c (profile_data_prefix): New variable definition.
5693 * toplev.h (profile_data_prefix): New declaration.
5694 * doc/invoke.tex (Option Summary, Optimization Options):
5697 2008-03-31 James E. Wilson <wilson@tuliptree.org>
5699 * varasm.c (output_constant_pool_1): In LABEL_REF check,
5700 use tmp consistently.
5703 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
5704 * config/ia64/ia64.c (rtx_needs_barrier): Handle
5705 UNSPEC_FR_RECIP_APPROX_RES.
5706 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
5708 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
5711 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
5713 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
5716 * fold-const.c (fold_indirect_ref_1): Support accessing non first
5717 element of the vector via a pointer.
5719 2008-03-31 Ian Lance Taylor <iant@google.com>
5721 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
5723 2008-03-31 Jan Hubicka <jh@suse.cz>
5725 * builtins.c (expand_builtin_setjmp_receiver): Update call of
5726 get_arg_pointer_save_area.
5727 * expr.c (init_expr): Just clear out rtl.expr.
5728 * function.c (free_after_compilation): Clear out whole RTL structure.
5729 (get_func_frame_size): Merge into ...
5730 (get_frame_size): ... this one.
5731 (assign_stack_local_1): Merge into ...
5732 (assign_stack_local): ... this one.
5733 (expand_function_end): Update call of get_arg_pointer_save_area.
5734 (get_art_pointer_save_area): Remove cfun argument.
5735 * function.h (emit_status): regno_pointer_align does not need length
5736 attribute. Move x_regno_reg_rtx to ...
5737 (regno_reg_rtx): ... new global array.
5738 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
5739 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
5740 apply_args_value, forced_labels, stack_pointer_delta):
5742 (struct varasm_status): Move here from varasm.c
5743 (struct rtl_data): New. Move here some fields from struct function.
5744 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5745 frame_offset, stack_check_probe_note, arg_pointer_save_area,
5746 used_temp_slots avail_temp_slots, temp_slot_level,
5747 nonlocal_goto_handler_labels): Update accesstors.
5748 (rtl): New global variable.
5749 (struct function): Move some fileds to rtl_data.
5750 (get_arg_pointer_save_area): Update prototype.
5751 * emit-rtl.c (rtl): Declare.
5752 (regno_reg_rtx): Declare.
5753 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5755 (gen_reg_rtx): Update.
5756 (init_virtual_regs): Do not tate emit_status argument.
5757 (init_emit): Do not allocate emit.
5758 * varasm.c (varasm_statuc): Move to function.h.
5759 (n_deferred_constatns): Update accestor.
5760 (init_varasm_status): Do not allocate varasm_status.
5761 (force_const_mem, get_pool_size, output_constant_pool): Update.
5762 * stmt.c (force_label_rtx): Do not use x_ prefixes.
5763 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5765 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
5767 PR rtl-optimization/35729
5768 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
5771 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
5774 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
5775 load/store if memory is unaligned.
5776 (*movti_rex64): Likewise.
5778 * config/i386/predicates.md (misaligned_operand): New.
5780 2008-03-31 Andrew Pinski <pinskia@gmail.com>
5783 * tree-ssa-phiopt.c (conditional_replacement): Return early for
5786 2008-03-31 Jan Beulich <jbeulich@novell.com>
5788 * config/ia64/constraints.md: Add 'j' constraint.
5789 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
5790 (movdi_internal): Likewise.
5792 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
5795 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
5797 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
5800 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
5801 proper error message for the third argument on blendpd and
5804 * config/i386/sse.md (blendbits): New.
5805 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
5807 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
5809 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
5811 2008-03-30 Richard Guenther <rguenther@suse.de>
5814 * fold-const.c (fold_sign_changed_comparison): Do leave
5815 conversions to base-types alone.
5817 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
5819 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
5820 the link register if one altivec register is be saved.
5822 2008-03-30 Ben Elliston <bje@au.ibm.com>
5824 * final.c (final_scan_insn): Remove if (0) code.
5826 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
5828 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
5830 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
5832 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
5833 of V4SFmode to ix86_binary_operator_ok.
5835 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
5837 * config/i386/i386.c (override_options): Initialize
5838 ix86_veclib_handler to ix86_veclibabi_svml when
5839 -mveclibabi=svml is used.
5840 (ix86_veclibabi_svml): New function for SVML ABI style
5841 vectorization support.
5842 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
5844 2008-03-28 Rafael Espindola <espindola@google.com>
5846 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
5847 (tree_binary_nonnegative_warnv_p): Make it public.
5848 (tree_single_nonnegative_warnv_p): Make it public.
5849 (tree_invalid_nonnegative_warnv_p): Make it public.
5850 (tree_unary_nonzero_warnv_p): Make it public.
5851 (tree_binary_nonzero_warnv_p): Make it public
5852 (tree_single_nonzero_warnv_p): Make it public.
5853 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
5854 (extract_range_from_binary_expr): Split the expr argument.
5855 (extract_range_from_unary_expr): Split the expr argument.
5856 (extract_range_from_comparison): Split the expr argument.
5857 (extract_range_from_expr): Use the new aux functions.
5858 (vrp_evaluate_conditional_warnv): Use
5859 vrp_evaluate_conditional_warnv_with_ops.
5860 * tree.h (tree_unary_nonzero_warnv_p): Declare.
5861 (tree_binary_nonzero_warnv_p): Declare.
5862 (tree_single_nonzero_warnv_p): Declare.
5863 (tree_expr_nonzero_warnv_p): Declare.
5864 (tree_unary_nonnegative_warnv_p): Declare.
5865 (tree_binary_nonnegative_warnv_p): Declare.
5866 (tree_single_nonnegative_warnv_p): Declare.
5867 (tree_invalid_nonnegative_warnv_p): Declare.
5869 2008-03-28 Richard Guenther <rguenther@suse.de>
5871 PR tree-optimization/30317
5872 PR tree-optimization/30911
5873 PR tree-optimization/34793
5874 * tree-vrp.c (set_and_canonicalize_value_range): New function.
5875 (struct assert_locus_d): New member EXPR.
5876 (register_new_assert_for): Add EXPR parameter to support
5877 ASSERT_EXPR <name, expr OP limit>.
5878 (register_edge_assert_for_1): Adjust callers.
5879 (find_assert_locations): Likewise.
5880 (process_assert_insertions_for): Build condition from expression.
5881 (extract_range_from_assert): Handle ASSERT_EXPRs
5882 of the form ASSERT_EXPR <name, expr OP limit>.
5883 (register_edge_assert_for_2): New helper registering
5884 asserts for comparisons. Recognize range tests of the form
5885 (unsigned)i - CST1 OP CST2.
5886 (register_edge_assert_for_1): Use it.
5887 (register_edge_assert_for): Likewise.
5888 (needs_overflow_infinity): Integer sub-types
5889 do not need overflow infinities.
5890 (vrp_val_is_max): The extreme values of integer sub-types
5891 are those of the base type.
5892 (vrp_val_is_min): Likewise.
5893 * tree.def (ASSERT_EXPR): Document extra allowed conditional
5896 2008-03-28 Nick Clifton <nickc@redhat.com>
5899 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5900 Return GENERAL_REGS for stack adjustment reloads.
5902 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
5905 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
5906 const_vector when all the vectors are constant.
5908 2008-03-27 Bob Wilson <bob.wilson@acm.org>
5910 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
5912 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
5913 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
5915 (s<code>_sf): Use new scc_sf attribute for opcode names.
5917 2008-03-27 Tom Tromey <tromey@redhat.com>
5919 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
5920 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
5921 config/spu/t-spu-elf, config/i386/t-interix,
5922 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
5923 config/i386/x-darwin, config/i386/x-mingw32,
5924 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
5925 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
5926 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
5927 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
5928 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
5929 config/rs6000/x-darwin, config/rs6000/t-rs6000,
5930 config/score/t-score-elf, config/arm/t-strongarm-pe,
5931 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
5932 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
5933 Revert automatic dependency patch.
5935 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
5938 * config/i386/i386.c (ix86_function_arg_boundary): Align
5939 decimal floating point to its natural boundary.
5941 2008-03-27 Richard Guenther <rguenther@suse.de>
5944 * fold-const.c (fold_comparison): Restrict distinct decl
5945 comparison folding to VAR_DECLs and PARM_DECLs. Do not
5946 solely rely on operand_equal_p.
5948 2008-03-27 Richard Guenther <rguenther@suse.de>
5951 * c-common.c (handle_weak_attribute): Reject combination of
5954 2008-03-27 Richard Guenther <rguenther@suse.de>
5956 PR tree-optimization/32810
5957 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
5958 conversions from DECL_INITIAL.
5959 (fold_const_aggregate_ref): Likewise from constructor elements.
5961 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
5963 * tree-affine.h (aff_combination_expand): Declare.
5964 (get_inner_reference_aff): Likewise.
5965 * tree-affine.c (aff_combination_expand): Split out from
5966 tree_to_aff_combination_expand.
5967 (get_inner_reference_aff): New function.
5968 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
5969 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
5970 (struct lim_aux_data): sm_done field removed.
5971 (mem_ref_loc_p, mem_ref_locs_p): New types.
5972 (struct mem_ref): Added id, stored, accesses_in_loop,
5973 indep_loop, dep_loop, indep_ref, dep_ref fields.
5974 Removed is_stored, locs and next fields.
5975 (memory_accesses): New variable.
5976 (movement_possibility): Do not allow moving statements
5977 that store to memory.
5978 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
5980 (determine_max_movement): For statements with memory references,
5981 find the outermost loop in that the reference is independent.
5982 (move_computations_stmt): Mark the virtual operands for renaming.
5983 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
5984 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
5985 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
5986 add_vop_ref_mapping, create_vop_ref_mapping_loop,
5987 create_vop_ref_mapping, analyze_memory_references,
5988 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
5989 get_all_locs_in_loop, ref_always_accessed_p,
5990 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
5991 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
5992 store_motion_loop, store_motion): New functions.
5993 (struct vop_to_refs_elt): New type.
5994 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
5995 memref_hash, memref_eq, hoist_memory_references): Rewritten.
5996 (schedule_sm): Replaced by...
5997 (execute_sm): ... this.
5998 (determine_lsm_ref, hoist_memory_references,
5999 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
6000 find_more_ref_vops, free_mem_ref, free_mem_refs,
6001 determine_lsm_loop, determine_lsm): Removed.
6002 (tree_ssa_lim_finalize): Free data structures used by store motion.
6003 (tree_ssa_lim): Call analyze_memory_references. Use
6004 store_motion instead of determine_lsm.
6006 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
6008 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
6009 rename tmake_file to m68hc11/t-m68hc11.
6010 (mcore): Set inhibit_libc to true.
6011 * config.host (alpha*-dec-*vms*): Set extra_programs.
6012 (interix3*): Don't use host_xmake_file.
6013 * configure.ac: Let config.gcc override inhibit_libc.
6014 * configure: Regenerate.
6016 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
6017 * config/t-openbsd-thread: Remove commented out lines.
6019 * config/x-interix: Remove.
6021 * config/m68hc11/t-m68hc11-gas: Rename to...
6022 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
6024 * config/mcore/t-mcore: Remove T_CFLAGS.
6025 * config/mcore/t-mcore-pe: Likewise.
6027 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
6029 * configure.ac: Replace custom __GNU_SOURCE test with
6030 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
6031 * aclocal.m4: Regenerate.
6032 * configure: Regenerate.
6033 * config.in: Regenerate.
6035 2008-03-27 Richard Guenther <rguenther@suse.de>
6037 * fold-const.c (target.h): Include.
6038 (fold_comparison): Fold comparison of addresses of decls
6039 that bind locally or of constants. Consolidate address folding code.
6040 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
6041 results from fold_binary_to_constant.
6042 (compare_values_warnv): Likewise.
6044 2008-03-27 Andrew Pinski <pinskia@gmail.com>
6047 * fold-const.c (fold_truthop): Check for integeral types when folding
6048 a == 0 && b == 0 and a != 0 || b != 0 .
6050 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
6052 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
6054 2008-03-26 Andreas Schwab <schwab@suse.de>
6056 * doc/invoke.texi: Fix use of @item vs. @itemx.
6058 2008-03-26 Tom Tromey <tromey@redhat.com>
6060 * Makefile.in (build/gensupport.o, build/print-rtl.o,
6061 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
6062 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
6063 build/gencodes.o, build/genconditions.o, build/genconfig.o,
6064 build/genconstants.o, build/genemit.o, build/genextract.o,
6065 build/genflags.o, build/genmddeps.o, build/genopinit.o,
6066 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
6069 2008-03-26 Richard Guenther <rguenther@suse.de>
6072 2008-03-26 Richard Guenther <rguenther@suse.de>
6074 * fold-const.c (target.h): Include.
6075 (fold_comparison): Fold comparison of addresses of two decls
6076 that bind locally. Consolidate address folding code.
6078 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6080 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
6081 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
6082 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
6083 dconstsqrt2, dconstthird, dconste and/or dconst10.
6084 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
6085 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
6086 dconstsqrt2, dconste): Delete.
6087 (init_emit_once): Likewise. Simplify initializing dconstm1.
6089 * real.c (get_real_const): New.
6090 * real.h (dconst3, dconst10, dconstm2, dconstthird,
6091 dconstsqrt2, dconste): Delete.
6092 (real_value_const, get_real_const): New.
6094 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
6096 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
6098 * config/i386/i386.c (ix86_function_arg_boundary): Check
6099 BIGGEST_ALIGNMENT instead of 128.
6100 (setup_incoming_varargs_64): Likewise.
6102 2008-03-26 Tom Tromey <tromey@redhat.com>
6104 * Makefile.in (DEPFILES): Add missing '/'.
6106 2008-03-26 Richard Guenther <rguenther@suse.de>
6108 * fold-const.c (target.h): Include.
6109 (fold_comparison): Fold comparison of addresses of two decls
6110 that bind locally. Consolidate address folding code.
6112 2008-03-26 Nick Clifton <nickc@redhat.com>
6115 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
6116 not allow INT+INT as a legitimate addressing mode.
6118 2008-03-26 Richard Guenther <rguenther@suse.de>
6120 * tree-flow.h (widen_bitfield): Remove declaration.
6121 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
6122 (widen_bitfield): Remove function.
6123 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
6126 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
6129 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
6132 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
6134 PR rtl-optimization/35232
6135 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
6136 (forget_old_reloads_1, forget_marked_reloads): Don't clear
6137 reg_reloaded_call_part_clobbered here.
6138 (reload_regs_reach_end_p): New function.
6139 (reload_reg_rtx_for_input): New variable.
6140 (reload_reg_rtx_for_output): Likewise.
6141 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
6142 when reassigning a pseudo register. Load reloadreg from
6143 reload_reg_rtx_for_input, moving the mode and register
6145 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
6146 instead of the original when deciding whether an input reload
6147 would be a no-op or whether an output reload can be deleted.
6148 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
6149 when setting up new_spill_reg_store. Load it from
6150 reload_reg_rtx_for_output, moving the mode and register
6152 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
6153 instead of the original when deciding whether an output reload
6154 would be a no-op. Do the same when modifying insn notes.
6155 Use rtx_equal_p instead of == to compare the registers.
6156 (inherit_piecemeal_p): Take a mode and two register numbers
6158 (emit_reload_insns): Clear new_spill_reg_store for every hard
6159 register in the reload register. Remove spill registers
6160 from reg_reloaded_valid before considering whether to record
6161 inheritance information for them. Use reload_reg_rtx_for_output
6162 instead of reg_rtx when recording output reloads. Use
6163 reload_reg_rtx_for_input instead of reg_rtx when recording
6164 input reloads. Set or clear reg_reloaded_call_part_clobbered
6165 at the same time as setting reg_reloaded_valid.
6166 (delete_output_reload): Add a new_reload_reg parameter and use it
6167 instead of rld[j].reg_rtx.
6168 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
6171 2008-03-25 Tom Tromey <tromey@redhat.com>
6173 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
6174 (build/genattr.o): Likewise.
6175 (build/genattrtab.o): Likewise.
6176 (build/gencodes.o): Likewise.
6177 (build/genconfig.o): Likewise.
6178 (build/genconstants.o): Likewise.
6179 (build/genemit.o): Likewise.
6180 (build/genextract.o): Likewise.
6181 (build/genflags.o): Likewise.
6183 2008-03-25 Bob Wilson <bob.wilson@acm.org>
6185 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
6186 instead of size_int for integer types.
6187 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
6188 to match type of MINUS_EXPR.
6190 2008-03-25 Tom Tromey <tromey@redhat.com>
6192 * configure: Rebuilt.
6193 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
6196 2008-03-25 Tom Tromey <tromey@redhat.com>
6198 * config/x-solaris (host-solaris.o): Update.
6199 * config/x-linux (host-linux.o): Update.
6200 * config/x-hpux (host-hpux.o): Update.
6201 * config/x-darwin (host-darwin.o): Update.
6202 * config/v850/t-v850e (v850-c.o): Update.
6203 * config/v850/t-v850 (v850-c.o): Update.
6204 * config/t-vxworks (vxworks.o): Update.
6205 * config/t-sol2 (sol2-c.o, sol2.o): Update.
6206 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
6207 * config/spu/t-spu-elf (spu-c.o): Update.
6209 * config/sh/t-symbian (sh-c.o): Update.
6210 (symbian.o): Update.
6211 * config/sh/t-sh (sh-c.o): Update.
6212 * config/score/t-score-elf (score7.o, score3.o): Update.
6213 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
6214 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
6215 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
6216 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
6218 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6219 * config/m32c/t-m32c (m32c-pragma.o): Update.
6220 * config/ia64/t-ia64 (ia64-c.o): Update.
6221 * config/i386/x-mingw32 (host-mingw32.o): Update.
6222 * config/i386/x-i386 (driver-i386.o): Update.
6223 * config/i386/x-darwin (host-i386-darwin.o): Update.
6224 * config/i386/x-cygwin (host-cygwin.o): Update.
6225 * config/i386/t-nwld (nwld.o): Update.
6226 * config/i386/t-netware (netware.o): Update.
6227 * config/i386/t-interix (winnt.o): Update.
6228 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
6229 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
6230 msformat-c.o): Update.
6231 * config/bfin/t-bfin-linux (generated_files): Add
6232 linux-sysroot-suffix.h.
6233 * config/arm/t-wince-pe (pe.o): Update.
6234 * config/arm/t-strongarm-pe (pe.o): Update.
6235 * config/arm/t-pe (pe.o): Update.
6236 * config/arm/t-arm (arm-c.o): Update.
6237 * doc/install.texi (Prerequisites): Require make 3.80.
6238 * Makefile.in: Remove .o targets.
6239 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
6240 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
6241 (simple_generated_h, simple_generated_c): Move earlier.
6242 (generated_files): New variable.
6243 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
6244 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
6245 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
6246 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
6247 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
6248 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
6249 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
6250 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
6251 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
6252 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
6253 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
6254 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
6256 (COMPILE.base, COMPILE): New variables.
6257 (%.o): New pattern rule.
6258 (ALL_HOST_OBJS): New variable.
6259 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
6260 (dummy-checksum.o, cc1-checksum.o): Remove.
6261 (DRIVER_SHLIB): New variable.
6262 (DRIVER_DEFINES): Use it.
6263 (gencondmd.c): Move out of build/.
6264 (s-conditions): Update.
6265 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
6266 (ALL_BUILD_OBJS): Likewise.
6267 (build/%.o): Use BUILDCOMPILE.
6268 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
6269 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
6270 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
6271 build/gencheck.o, build/gencodes.o, build/genconditions.o,
6272 build/genconfig.o, build/genconstants.o, build/genemit.o,
6273 build/genextract.o, build/genflags.o, build/genmddeps.o,
6274 build/genopinit.o, build/genoutput.o, build/genpeep.o,
6275 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
6276 build/gen-protos.o, build/scan.o, build/fix-header.o,
6277 build/scan-decls.o): Simplify.
6278 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
6279 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
6280 prefix.o, toplev.o): Reduce to variable setting.
6281 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
6282 ($(out_object_file), gcc-options.o): New targets.
6283 ($(ALL_HOST_OBJS)): New target. Include dependency files.
6284 * configure: Rebuilt.
6285 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
6286 * doc/sourcebuild.texi (Front End Directory): Document new variable.
6288 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
6290 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
6291 complain when we hit an error, return ERROR_MARK_NODE.
6293 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
6295 * config/sh/constraints.md (Pso, Psz): New constraints.
6296 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
6297 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
6299 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
6301 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
6302 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
6304 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
6306 * config/sh/sh.md (prefetch): Add condition for SH2A target.
6307 (prefetch_sh2a): New.
6309 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
6310 Naveen.H.S <naveen.hs@kpitcummins.com>
6312 * config/sh/constraints.md (I28): New constraint.
6313 * config/sh/sh.c (broken_move): Add support for movi20s.
6314 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
6316 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
6317 Jayant Sonar <Jayant.sonar@kpitcummins.com>
6318 Naveen.H.S <naveen.hs@kpitcummins.com>
6320 * config/sh/sh.c (SH_ATTRIBUTES): Define.
6321 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
6322 (print_operand): Handle resbank in %@ operand code.
6323 (sh_encode_section_info): New.
6324 (push_regs): Add conditions for resbank.
6325 (sh_expand_epilogue): Likewise.
6326 (sh_insert_attributes): Likewise.
6327 (sh_attribute_table): Likewise.
6328 (sh_handle_resbank_handler_attribute): New.
6329 (sh2a_handle_function_vector_handler_attribute): New.
6330 (sh2a_is_function_vector_call): New.
6331 (sh2a_get_function_vector_number): New.
6332 (sh2a_function_vector_p): New.
6333 (sh_cfun_resbank_handler_p): New.
6334 * config/sh/sh.md (calli): Emit jsr/n if possible.
6335 (calli_tbr_rel): New.
6336 (calli_pcrel): Emit jsr/n if possible.
6337 (return_i): Emit rts/n if possible.
6338 (call_valuei_tbr_rel): New.
6339 (call_valuei_pcrel): Add condition for SH2A target.
6340 (call_value): Likewise.
6341 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
6342 (sh2a_get_function_vector_number): Likewise.
6343 (sh2a_is_function_vector_call): Likewise.
6344 * doc/extend.texi: Document TBR relative addressing of SH2A.
6345 (resbank): Add description for SH2A.
6347 2008-03-24 Richard Guenther <rguenther@suse.de>
6350 * gimplify.c (gimplify_modify_expr): For frontend type-correct
6351 pointer assignments change conversions according to middle-end rules.
6352 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
6353 * configure.ac: Include type checking in yes.
6354 * configure: Regenerate.
6356 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6358 * diagnostic.c (diagnostic_count_diagnostic): Delete.
6359 (diagnostic_report_diagnostic): Update. Handle ICEs here.
6361 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
6363 * gthr-vxworks.h (UNUSED): Define.
6365 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
6367 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
6369 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
6371 * doc/extend.texi (Function Attributes): Add missing comma in the
6372 example of the "alloc_size" attribute.
6374 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
6377 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
6379 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6382 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
6385 * stor-layout.c (update_alignment_for_field): Set minimum alignment
6386 of the underlying type of a MS bitfield layout to the natural
6387 alignment of the type.
6389 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
6391 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6392 to their natural alignment to avoid store forwarding stalls.
6394 2008-03-22 Richard Guenther <rguenther@suse.de>
6396 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
6397 For PHI nodes verify the address is invariant.
6398 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
6399 (get_symbol_constant_value): Use is_gimple_min_invariant.
6400 (maybe_fold_stmt_indirect): Likewise.
6402 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
6404 PR rtl-optimization/33927
6405 * Makefile.in (dse.o): Depend on $(TM_P_H).
6406 * expr.h (extract_low_bits): Declare.
6407 * expmed.c (extract_low_bits): New function.
6408 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
6409 * dse.c: Include tm_p.h.
6410 (find_shift_sequence): Remove the read_reg argument and return the
6411 read value. Emit the instructions instead of returning them.
6412 Iterate on new_mode rather than calculating it each time.
6413 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
6414 source to NEW_MODE and extract_low_bits to convert the shifted
6416 (replace_read): Allow the load and store to have different mode
6417 classes. Use extract_low_bits when SHIFT == 0. Create the shift
6418 or extraction instructions before trying the replacement. Update
6419 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
6421 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
6423 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6424 to their natural alignment to avoid store forwarding stalls.
6426 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
6429 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
6430 encouraging but not allowing gprs for input;
6431 change the input constraint to !f#r.
6432 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
6434 change the output constraint to !f#r.
6436 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
6439 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
6440 corresponding post-reload splitters.
6441 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
6442 when x87 FP math is selected.
6443 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
6444 New function prototype.
6445 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
6446 unreachable function to ease macroization of insn patterns.
6448 2008-03-21 Martin Jambor <mjambor@suse.cz>
6450 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
6451 reference dumps if ddr is NULL or dependence is unknown.
6453 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
6455 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
6456 unsigned extension into account.
6457 (ATOMIC_COMPARE_AND_SWAP): Likewise.
6458 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
6459 Do computations on a scratch register.
6461 2008-03-21 Richard Guenther <rguenther@suse.de>
6463 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6464 Use is_gimple_min_invariant instead of TREE_INVARIANT.
6465 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6466 * tree-ssa-dom.c (record_equality): Likewise.
6467 * tree-inline.c (copy_body_r): Likewise.
6468 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
6471 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
6473 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
6474 as 'delete_unused' argument.
6476 2008-03-20 Richard Guenther <rguenther@suse.de>
6478 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6479 special casing of constant qualifiers.
6480 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
6481 care about them in general.
6482 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
6483 regardless of their type.
6484 (fold_stmt_r): Forcefully fold *& if we end up with that.
6486 2008-03-20 Paul Brook <paul@codesourcery.com>
6488 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
6489 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
6491 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
6493 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
6494 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
6496 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
6498 * common.opt (Wmudflap): New option.
6499 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
6500 (mx_register_decls): Likewise.
6501 (mudflap_finish_file): Likewise.
6502 * doc/invoke.texi: Document -Wno-mudflap.
6504 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
6506 * c-format.c (replace_format_name_to_system_name): New.
6508 (convert_format_name_to_system_name): New.
6509 (decode_format_attr): Add use of convert_format_name_to_system_name.
6510 (format_types_orig): Add gnu_ prefix to names.
6511 (check_format_info_main): Special treating of \0 escaped names for
6512 supporting multi-character format specifiers as I32, I64.
6513 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
6514 (gnu_target_overrides_format_attributes): New.
6515 * c-format.h: Add structure target_ovr_attr to hold
6516 system specific formatter names.
6517 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
6518 msformat-c.o file to c_target_objs and cxx_target_objs.
6519 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6520 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
6521 (TARGET_N_FORMAT_TYPES): New.
6522 * config/i386/msformat-c.c: New.
6523 * config/i386/t-cygming: Add build rule for msformat-c.o.
6524 * doc/extend.texi: Add new format names gnu_* and ms_* and
6526 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6528 2008-03-20 Ira Rosen <irar@il.ibm.com>
6530 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
6531 optimizations turned on under -O3.
6532 (ftree-vectorize): Add that the flag is turned on with -O3.
6534 2008-03-20 Ben Elliston <bje@au.ibm.com>
6536 * regmove.c (try_auto_increment): Fix spelling error in comment.
6537 * final.c (final_scan_insn): Likewise.
6539 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
6542 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
6543 allocator preferences for "y" and "r" class registers.
6544 ("*mov<mode>_internal"): Ditto.
6545 ("*movv2sf_internal_rex64"): Ditto.
6546 ("*movv2sf_internal"): Ditto.
6548 2008-03-19 Michael Matz <matz@suse.de>
6551 * calls.c (expand_call): Check overlap of arguments with call
6552 address for sibcalls.
6554 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
6557 * stor-layout.c (update_alignment_for_field): Set minimum alignment
6558 of the underlying type of a MS bitfield layout to the natural
6559 alignment of the type.
6561 2008-03-19 Jan Hubicka <jh@suse.cz>
6564 * toplev.c (decode_d_option): Handle all CPP flags.
6565 * tree-vrp.c: Update tree_pass descriptors.
6566 * regrename.c: Update tree_pass descriptors.
6567 * fwprop.c: Update tree_pass descriptors.
6568 * doc/invoke.texi: Remove documentation of dropped -d? flags.
6569 * tree-into-ssa.c: Update tree_pass descriptors.
6570 * tree-dump.c: Update tree_pass descriptors.
6571 * tree-complex.c: Update tree_pass descriptors.
6572 * tree-dump.h: Update tree_pass descriptors.
6573 * see.c: Update tree_pass descriptors.
6574 * cgraphbuild.c: Update tree_pass descriptors.
6575 * tracer.c: Update tree_pass descriptors.
6576 * tree-loop-distribution.c: Update tree_pass descriptors.
6577 * cgraph.c: Update tree_pass descriptors.
6578 * postreload-gcse.c: Update tree_pass descriptors.
6579 * postreload.c: Update tree_pass descriptors.
6580 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
6581 * tree-tailcall.c: Update tree_pass descriptors.
6582 * tree-pass.h (tree_opt_pass): Rename to ...
6583 (opt_pass) ... this one; add "type" field and remove letter field.
6584 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
6585 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
6586 all_lowering_passes): Update declaration.
6587 * ipa-cp.c: Update tree_pass descriptors.
6588 * final.c: Update tree_pass descriptors.
6589 * omp-low.c: Update tree_pass descriptors.
6590 * tree-ssa-dse.c: Update tree_pass descriptors.
6591 * ipa-reference.c: Update tree_pass descriptors.
6592 * tree-ssa-uncprop.c: Update tree_pass descriptors.
6593 * auto-inc-dec.c: Update tree_pass descriptors.
6594 * reorg.c: Update tree_pass descriptors.
6595 * cgraphunit.c: Update tree_pass descriptors.
6596 * tree-ssa-copyrename.c: Update tree_pass descriptors.
6597 * tree-ssa-ccp.c: Update tree_pass descriptors.
6598 * df-core.c: Update tree_pass descriptors.
6599 * mode-switching.c: Update tree_pass descriptors.
6600 * tree-nomudflap.c: Update tree_pass descriptors.
6601 * modulo-sched.c: Update tree_pass descriptors.
6602 * ipa-pure-const.c: Update tree_pass descriptors.
6603 * cse.c: Update tree_pass descriptors.
6604 * web.c: Update tree_pass descriptors.
6605 * tree-stdarg.c: Update tree_pass descriptors.
6606 * tree-ssa-math-opts.c: Update tree_pass descriptors.
6607 * tree-ssa-dom.c: Update tree_pass descriptors.
6608 * tree-nrv.c: Update tree_pass descriptors.
6609 * tree-ssa-alias.c: Update tree_pass descriptors.
6610 * loop-init.c: Update tree_pass descriptors.
6611 * gimple-low.c: Update tree_pass descriptors.
6612 * ipa-inline.c: Update tree_pass descriptors.
6613 * tree-ssa-sink.c: Update tree_pass descriptors.
6614 * global.c: Update tree_pass descriptors.
6615 * ifcvt.c: Update tree_pass descriptors.
6616 * jump.c: Update tree_pass descriptors.
6617 * predict.c: Update tree_pass descriptors.
6618 * tree-ssa-loop.c: Update tree_pass descriptors.
6619 * recog.c: Update tree_pass descriptors.
6620 * dse.c: Update tree_pass descriptors.
6621 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
6622 * tree-eh.c: Update tree_pass descriptors.
6623 * regmove.c: Update tree_pass descriptors.
6625 * function.c: Update tree_pass descriptors.
6626 * tree-vectorizer.c: Update tree_pass descriptors.
6627 * gcse.c: Update tree_pass descriptors.
6628 * ipa-type-escape.c: Update tree_pass descriptors.
6629 * tree-if-conv.c: Update tree_pass descriptors.
6630 * init-regs.c: Update tree_pass descriptors.
6631 * ipa.c: Update tree_pass descriptors.
6632 * tree-ssa-phiopt.c: Update tree_pass descriptors.
6633 * rtl-factoring.c: Update tree_pass descriptors.
6634 * lower-subreg.c: Update tree_pass descriptors.
6635 * bt-load.c: Update tree_pass descriptors.
6636 * tree-dfa.c: Update tree_pass descriptors.
6637 * except.c: Update tree_pass descriptors.
6638 * emit-rtl.c: Update tree_pass descriptors.
6639 * cfgexpand.c: Update tree_pass descriptors.
6640 * tree-cfgcleanup.c: Update tree_pass descriptors.
6641 * cfgcleanup.c: Update tree_pass descriptors.
6642 * tree-ssa-pre.c: Update tree_pass descriptors.
6643 * tree-sra.c: Update tree_pass descriptors.
6644 * tree-mudflap.c: Update tree_pass descriptors.
6645 * tree-ssa-copy.c: Update tree_pass descriptors.
6646 * cfglayout.c: Update tree_pass descriptors.
6647 * tree-ssa-forwprop.c: Update tree_pass descriptors.
6648 * tree-ssa-dce.c: Update tree_pass descriptors.
6649 * tree-ssa.c: Update tree_pass descriptors.
6650 * regclass.c: Update tree_pass descriptors.
6651 * integrate.c: Update tree_pass descriptors.
6652 * tree-optimize.c: Update tree_pass descriptors.
6653 * tree-ssa-phiprop.c: Update tree_pass descriptors.
6654 * tree-object-size.c: Update tree_pass descriptors.
6655 * combine.c: Update tree_pass descriptors.
6656 * tree-outof-ssa.c: Update tree_pass descriptors.
6657 * bb-reorder.c: Update tree_pass descriptors.
6658 * stack-ptr-mod.c: Update tree_pass descriptors.
6659 * var-tracking.c: Update tree_pass descriptors.
6660 * tree-profile.c: Update tree_pass descriptors.
6661 * tree-vect-generic.c: Update tree_pass descriptors.
6662 * reg-stack.c: Update tree_pass descriptors.
6663 * sched-rgn.c: Update tree_pass descriptors.
6664 * tree-ssa-structalias.c: Update tree_pass descriptors.
6665 * tree-cfg.c: Update tree_pass descriptors.
6666 * passes.c (current_pass): Update declaration.
6667 (finish_optimization_passes): Update.
6668 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
6669 (register_one_dump_file, register_dump_files_1, next_pass_1):
6671 (init_optimization_passes): Update handling of new types.
6672 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
6673 * ipa-struct-reorg.c: Update tree_pass descriptors.
6674 * tree-ssa-reassoc.c: Update tree_pass descriptors.
6675 * combine-stack-adj.c: Update tree_pass descriptors.
6676 * cfgrtl.c: Update tree_pass descriptors.
6677 * dce.c: Update tree_pass descriptors.
6678 * tree-ssanames.c: Update tree_pass descriptors.
6680 2008-03-19 Richard Guenther <rguenther@suse.de>
6683 * tree-ssa.c (walk_data): New structure.
6684 (warn_uninitialized_var): If not always_executed warn with "maybe"
6686 (execute_early_warn_uninitialized): Compute post-dominators.
6687 Initialize always_executed before processing each basic block.
6689 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
6692 * config/i386/i386.c (x86_this_parameter): Calculate correct location
6693 of "this" pointer when "regparm = N" or "fastcall" is in effect.
6695 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6697 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
6699 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
6701 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
6703 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
6704 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
6705 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
6706 target after ignore has been set, and move there also the commputation
6707 of subtarget and original_target.
6708 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6709 (LANG_HOOKS_INITIALIZER): Remove it.
6710 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
6712 2008-03-18 Richard Guenther <rguenther@suse.de>
6714 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
6715 found an expression with constants, note that in the VN for the lhs.
6716 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
6717 fold them to constants if possible. Run cleanup_cfg if done so.
6718 (execute_pre): Return todo.
6720 (execute_fre): Likewise.
6721 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
6723 (get_prop_source_stmt): Look through pointer conversions.
6725 2008-03-18 Jan Hubicka <jh@suse.cz>
6727 * tree-pretty-print.c: Include predict.h.
6728 (dump_generic_node): Dump predictor.
6729 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
6730 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
6731 * gimple-low.c (lower_stmt): Likewise.
6732 * expr.c (expand_expr_real): Likewise.
6733 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
6735 (build_predict_expr, build_predict_expr): New.
6736 * predict.h (predictor_name, build_predict_expr): Update.
6737 * c-typeck.c (c_finish_bc_stmt): Add prediction.
6738 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
6739 * predict.def (PRED_CONTINUE): Update hitrate.
6740 * tree.def (PREDICT_EXPR): Define.
6741 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
6742 do not handle BIND_EXPR.
6743 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
6744 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
6745 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
6748 2008-03-18 Michael Matz <matz@suse.de>
6750 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
6752 2008-03-18 Richard Guenther <rguenther@suse.de>
6754 * tree-gimple.h (is_gimple_invariant_address): Declare.
6755 (is_gimple_constant): Likewise.
6756 * tree-gimple.c (is_gimple_constant): New function.
6757 (is_gimple_invariant_address): Likewise.
6758 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
6759 and is_gimple_invariant_address.
6760 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
6762 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
6763 an addressable base.
6765 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6768 * gimplify.c (gimplify_expr): Gimplify second operand of
6771 2008-03-17 Richard Guenther <rguenther@suse.de>
6773 PR tree-optimization/19637
6774 * fold-const.c (fold_unary): Remove restrictions of removing
6775 intermediate pointer-conversions (P2)(P1)P0.
6776 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
6777 conversion to void pointer.
6778 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
6780 2008-03-16 James E. Wilson <wilson@tuliptree.org>
6783 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
6784 emulated thread local variables.
6786 2008-03-16 Richard Guenther <rguenther@suse.de>
6789 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6790 expand TREE_INVARIANT operations that are not gimple invariant.
6792 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
6794 * doc/extend.texi (Alignment): Say that the ABI controls
6795 the __alignof__ for non-strict-alignment targets rather
6796 than being a recommendation.
6798 2008-03-15 Paul Brook <paul@codesourcery.com>
6800 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
6802 (arm_output_fn_unwind): Mark functions that can not be unwound.
6804 2008-03-15 Paul Brook <paul@codesourcery.com>
6806 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
6807 extension instructions.
6809 2008-03-15 Richard Guenther <rguenther@suse.de>
6811 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
6812 and fold constant aggregate refs.
6813 (fold_const_aggregate_ref): Handle string constants
6814 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
6815 (evaluate_stmt): Simplify now that ccp_fold folds constant
6818 2008-03-15 Paul Brook <paul@codesourcery.com>
6820 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
6821 (extzv): Use gen_extzv_t2.
6822 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
6824 2008-03-15 Richard Guenther <rguenther@suse.de>
6826 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
6827 (fold_const_aggregate_ref): Likewise.
6828 (get_value): Return NULL if we don't have any values.
6829 (ccp_finalize): Set const_val to NULL after freeing it.
6830 * tree-flow.h (get_symbol_constant_value): Declare.
6831 (fold_const_aggregate_ref): Likewise.
6832 * tree-ssa-sccvn.c (try_to_simplify): Use them.
6834 2008-03-15 Richard Guenther <rguenther@suse.de>
6837 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
6838 to not produce negative array indices if not allowed. Add
6839 parameter to indicate that.
6840 (maybe_fold_offset_to_component_ref): Allow negative array
6841 indices only for the first member of a structure.
6842 (maybe_fold_offset_to_reference): Allow negative array indices.
6843 (maybe_fold_stmt_addition): Likewise.
6845 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
6846 Anatoly Sokolov <aesok@post.ru>
6848 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
6849 (avr_arch): Add ARCH_AVR6.
6850 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
6851 (initial_elimination_offset): Initialize and use 'avr_pc_size'
6852 instead of fixed value 2.
6853 (print_operand_address): Use gs() asm specifier instead of pm().
6854 (avr_assemble_integer): (Ditto.).
6855 (avr_output_addr_vec_elt): (Ditto.).
6856 (print_operand): Handle "!" code.
6857 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
6858 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
6859 (AVR_HAVE_EIJMP_EICALL): Define.
6860 (AVR_3_BYTE_PC): Redefine.
6861 (AVR_2_BYTE_PC): (Ditto.).
6862 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
6863 (LINK_SPEC): Add atmega2560 and atmega2561.
6864 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
6866 * config/avr/avr.md (call_insn): Use eicall instead of icall
6867 for 3 byte PC devices.
6868 (call_value_insn): (Ditto.).
6869 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
6870 (indirect_jump): Use only for for 2 byte PC devices.
6871 (*tablejump): (Ditto.).
6872 (*indirect_jump_avr6): Add insn.
6873 (*tablejump_rjmp): Don't use for 3 byte PC devices.
6874 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
6875 instead of ijmp for 3 byte PC devices.
6876 (__tablejump2__): (Ditto.).
6877 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
6878 (MULITLIB_DIRNAMES): (Ditto.).
6879 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
6881 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
6883 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
6884 "sse2_umulsidi3". Use V1DI mode for operand 0.
6885 ("mmx_psadbw"): Use V1DI mode for operand 0.
6886 * config/i386/i386-modes.def (V1SI): New vector mode.
6887 * config/i386/i386.c (struct builtin_description)
6888 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
6889 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
6890 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
6891 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
6892 v1di_ftype_v8qi_v8qi type.
6893 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
6895 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
6896 __builtin_ia32_pmuludq]: Fix the mode of return value.
6898 2008-03-15 Richard Guenther <rguenther@suse.de>
6901 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
6904 2008-03-14 Bob Wilson <bob.wilson@acm.org>
6906 * doc/invoke.texi (Option Summary, Xtensa Options): Document
6907 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
6908 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
6909 unless TARGET_SERIALIZE_VOLATILE is enabled.
6910 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6911 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
6912 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
6914 2008-03-14 Richard Guenther <rguenther@suse.de>
6916 PR tree-optimization/34172
6917 * tree-flow.h (refs_may_alias_p): Declare.
6918 (get_single_def_stmt): Likewise.
6919 (get_single_def_stmt_from_phi): Likewise.
6920 (get_single_def_stmt_with_phi): Likewise.
6921 * tree-dfa.c (refs_may_alias_p): New function.
6922 (get_single_def_stmt): Likewise.
6923 (get_single_def_stmt_from_phi): Likewise.
6924 (get_single_def_stmt_with_phi): Likewise.
6925 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
6926 (vn_reference_lookup_1): New helper function.
6927 (vn_reference_lookup): Walk the virtual use-def chain to
6928 continue searching for a match if the def does not alias the
6929 reference we are looking for.
6931 2008-03-14 David Edelsohn <edelsohn@gnu.org>
6933 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
6934 archive and Perzl. Update The Written Word listing.
6936 2008-03-14 Richard Guenther <rguenther@suse.de>
6938 PR tree-optimization/34043
6939 PR tree-optimization/33989
6940 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
6942 (bitmap_find_leader): Use extra argument to verify dominance
6943 relationship inside a basic-block.
6944 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
6945 (find_leader_in_sets): Adjust.
6946 (create_component_ref_by_pieces): Take extra argument for
6947 dominance check, handle lookup failures.
6948 (find_or_generate_expression): Likewise.
6949 (create_expression_by_pieces): Likewise.
6950 (insert_into_preds_of_block): Adjust.
6951 (create_value_expr_from): If asked for, verify all operands
6952 are in the blocks AVAIL_OUT set.
6953 (make_values_for_stmt): Check for SSA_NAMEs that are life
6954 over an abnormal edge.
6955 (compute_avail): Remove such check.
6956 (do_SCCVN_insertion): New function.
6957 (eliminate): If we do not find a leader suitable for replacement
6958 insert a replacement expression from SCCVN if available.
6959 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
6960 (struct vn_ssa_aux): Add needs_insertion flag.
6961 * tree-ssa-sccvn.c (may_insert): New global flag.
6962 (copy_reference_ops_from_ref): Value-number union member access
6963 based on its size, not type and member if insertion is allowed.
6964 (visit_reference_op_load): For a weak match from union type
6965 punning lookup a view-converted value and insert a SSA_NAME
6966 for that value if that is not found.
6967 (visit_use): Make dumps shorter. Do not disallow value numbering
6968 SSA_NAMEs that are life over an abnormal edge to constants.
6969 (free_scc_vn): Release inserted SSA_NAMEs.
6970 (run_scc_vn): New flag to specify whether insertion is allowed.
6971 Process SSA_NAMEs in forward order.
6972 * tree-ssa-loop-im.c (for_each_index): Handle invariant
6973 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
6974 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
6975 pointer type to/from integral types that do not change the
6976 precision to regular conversions.
6978 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
6980 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6981 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6982 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
6983 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
6984 input arguments and the mode of return value. Built-in functions
6985 that operate on whole 64-bit MMX register now use V1DI mode.
6987 2008-03-13 Alon Dayan <alond@il.ibm.com>
6988 Olga Golovanevsky <olga@il.ibm.com>
6990 PR tree-optimization/35041
6991 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
6992 to locate the right position in a statement.
6994 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
6998 * config/i386/xmmintrin.h: Change all static inline functions to
6999 extern inline and add __gnu_inline__ attribute.
7000 * config/i386/bmintrin.h: Ditto.
7001 * config/i386/smmintrin.h: Ditto.
7002 * config/i386/tmmintrin.h: Ditto.
7003 * config/i386/mmintrin-common.h: Ditto.
7004 * config/i386/ammintrin.h: Ditto.
7005 * config/i386/emmintrin.h: Ditto.
7006 * config/i386/pmmintrin.h: Ditto.
7007 * config/i386/mmintrin.h: Ditto.
7008 * config/i386/mm3dnow.h: Ditto.
7010 2008-03-13 Jakub Jelinek <jakub@redhat.com>
7013 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
7014 (lower_omp_2): New function.
7015 (lower_omp_1, lower_omp): Rewritten.
7017 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
7020 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
7021 with the phrase "Microsoft Windows compilers".
7022 (Push/Pop Macro Pragmas): New subsection. Document
7023 #pragma push_macro and pragma pop_macro.
7025 2008-03-12 Paul Brook <paul@codesourcery.com>
7027 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
7029 2008-03-12 Paul Brook <paul@codesourcery.com>
7031 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
7032 (thumb2_alusi3_short): Exclude PLUS and MINUS.
7033 (thumb2_addsi_shortim): Rename ...
7034 (thumb2_addsi_short): ... to this. Allow register operands.
7035 (thumb2_subsi_short): New pattern.
7036 (thumb2_one_cmplsi2_short,
7037 thumb2_negsi2_short): New patterns and peepholes.
7039 2008-03-12 Paul Brook <paul@codesourcery.com>
7041 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
7043 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
7045 * config/i386/i386.md (int_cond): New code iterator.
7047 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
7048 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
7049 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
7050 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
7051 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
7052 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
7053 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
7054 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
7056 2008-03-12 Paul Brook <paul@codesourcery.com>
7058 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
7059 instead of {arm,thumb}_compute_save_reg_mask.
7060 (output_return_instruction): Ditto.
7061 (thumb_unexpanded_epilogue): Ditto.
7062 (thumb1_expand_prologue): Ditto.
7063 (thumb1_output_function_prologue): Ditto.
7064 (arm_set_return_address): Ditto.
7065 (thumb_set_return_address): Ditto.
7066 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
7067 regs to achieve stack alignment.
7068 (thumb1_compute_save_reg_mask): Fix compiler warning.
7069 (arm_output_epilogue): Use offsets->saved_regs_mask.
7070 Adjust stack pointer by poping call clobered registers.
7071 (arm_expand_prologue): Use offsets->saved_regs_mask.
7072 Adjust stack pointer by pushing extra registers.
7073 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
7075 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
7078 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
7079 conversion to the operands of a multiplication.
7081 2008-03-12 Richard Guenther <rguenther@suse.de>
7083 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
7084 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
7085 * timevar.def (TV_TREE_PHIPROP): Add.
7086 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
7087 pass description. Use TV_TREE_PHIPROP.
7088 * tree-ssa-forwprop.c: Remove phiprop code.
7090 2008-03-12 Jakub Jelinek <jakub@redhat.com>
7093 * omp-low.c (maybe_lookup_decl): Constify first argument.
7094 (use_pointer_for_field): Change last argument from bool to
7095 omp_context *. Disallow shared copy-in/out in nested
7096 parallel if decl is shared in outer parallel too.
7097 (build_outer_var_ref, scan_sharing_clauses,
7098 lower_rec_input_clauses, lower_copyprivate_clauses,
7099 lower_send_clauses, lower_send_shared_vars): Adjust callers.
7101 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
7102 Ira Rosen <irar@il.ibm.com>
7104 * tree-vectorizer.c (free_stmt_vec_info): New function.
7105 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
7106 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
7107 * tree-vectorizer.h (free_stmt_vec_info): Declare.
7108 * tree-vect-transform.c (vectorizable_conversion): Free
7109 vec_oprnds0 if it was allocated.
7110 (vect_permute_store_chain): Remove unused VECs.
7111 (vectorizable_store): Free VECs that are allocated in the..
7113 (vect_transform_strided_load, vectorizable_load): Likewise.
7114 (vect_remove_stores): Simplify the code.
7115 (vect_transform_loop): Move code to vect_remove_stores().
7116 Call vect_remove_stores() and free_stmt_vec_info().
7118 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7120 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
7121 TARGET_HPUX. Revise comment.
7122 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
7123 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
7124 Use sr4 variant of `be' instruction when not generating PIC code.
7125 (attr_length_call): Adjust for above change.
7127 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
7129 * ipa-reference.c (static_execute): Remove module_statics_const and
7130 associated setting code.
7132 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
7135 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
7136 predicate for operand 1.
7137 (paritysi2_cmp): Use register_operand predicate for operand 2.
7138 Use earlyclobber modifier for operand 1. Remove support for
7140 (paritydi2_cmp): Use register_operand predicate for operand 3.
7141 Use earlyclobber modifier for operand 1. Remove support for
7144 2008-03-11 Paul Brook <paul@codesourcery.com>
7145 Vladimir Prus <vladimir@codesourcery.com>
7147 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
7148 (arm_compute_save_reg0_reg12_mask): Always
7149 check if register 11 must be saved. Always safe hard frame pointer
7150 when frame_pointer_needeed.
7151 (arm_compute_save_reg_mask): Save IP and PC
7152 only with apcs frames.
7153 (arm_output_epilogue): Adjust Thumb2 codepath to
7154 be also invoked and work for ARM non-apcs frames.
7155 (arm_expand_prologue): Don't bother saving IP
7156 for non-apcs frame, since it's not clobbered by
7157 prologue code. Implement non-apcs frame
7160 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
7162 PR rtl-optimization/35281
7163 * expr.c (convert_move): Use a new pseudo for the intermediate
7164 from_mode->word_mode result.
7166 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
7168 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
7169 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
7170 * toplev.c (compile_file): Don't call it.
7172 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
7175 * expr.c (store_expr): Call emit_block_move if the mode
7176 of "temp" RTX is BLKmode.
7178 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
7179 Richard Guenther <rguenther@suse.de>
7181 PR tree-optimization/31358
7182 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
7183 the step with a NULL_TREE.
7184 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
7185 to sizetype if type is a pointer type.
7186 (add_candidate_1): Don't convert the base and step to
7187 the generic type if the orginal type is a pointer type.
7188 (add_iv_value_candidates): Use sizetype for the step
7189 if type is a pointer type.
7190 (cand_value_at): Likewise.
7191 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
7193 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
7194 Don't convert the tem affine to the type.
7195 (add_elt_to_tree): Use sizetype for the step if a pointer.
7196 Use POINTER_PLUS_EXPR for pointers.
7197 (aff_combination_to_tree): Use sizetype for the step if a
7200 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
7202 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
7203 Remove commutativity hint.
7205 2008-03-10 Jakub Jelinek <jakub@redhat.com>
7209 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
7210 errorneous type. Check that v is a VAR_DECL.
7213 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
7215 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
7217 PR tree-optimization/35494
7218 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
7219 may be overriden at link and run time.
7221 2008-03-10 Richard Guenther <rguenther@suse.de>
7223 PR tree-optimization/34677
7224 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
7225 (poolify_tree): Likewise.
7226 (modify_expr_template): Likewise.
7227 (poolify_modify_stmt): Likewise.
7228 (insert_fake_stores): Handle all component-ref style stores
7229 in addition to INDIRECT_REF. Also handle complex types.
7230 Do not poolify the inserted load.
7231 (realify_fake_stores): Do not rebuild the tree but only
7232 make it a SSA_NAME copy.
7233 (init_pre): Remove initialzation of modify_expr_template.
7234 Do not allocate modify_expr_node_pool.
7235 (fini_pre): Do not free modify_expr_node_pool.
7237 2008-03-10 Paul Brook <paul@codesourcery.com>
7239 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
7242 2008-03-10 Paul Brook <paul@codesourcery.com>
7243 Mark Shinwell <shinwell@codesourcery.com>
7245 * config/arm/cortex-r4.md: New.
7246 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
7248 * config/arm/arm.md: Include cortex-r4.md.
7249 (insn): Add smmls, sdiv and udiv values.
7250 (generic_sched): Don't use generic scheduling for Cortex-R4.
7251 (arm_issue_rate): New function.
7252 (TARGET_SCHED_ISSUE_RATE): Define.
7254 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
7256 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
7258 2008-03-10 Richard Guenther <rguenther@suse.de>
7260 * tree-ssa-pre.c (get_sccvn_value): Simplify.
7261 (compute_avail): Do not add stmt uses to AVAIL_OUT.
7263 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
7265 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
7266 Set default to true.
7268 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7270 * c.opt (Wsynth): Deprecate.
7271 * doc/invoke.texi (Option Summary, Warning Options): Document
7272 -Wno-format-contains-nul.
7274 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
7277 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
7278 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
7280 2008-03-09 Ira Rosen <irar@il.ibm.com>
7282 * config/rs6000/rs6000.c (builtin_description): Rename vector
7283 left shift operations.
7284 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
7285 (altivec_vsl<VI_char>): Rename to ...
7286 (ashl<mode>3): ... new name.
7287 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
7289 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
7291 2008-03-08 Richard Guenther <rguenther@suse.de>
7293 * coverage.h (tree_coverage_counter_addr): Declare.
7294 * coverage.c (tree_coverage_counter_addr): New function.
7295 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
7297 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
7298 (tree_gen_one_value_profiler): Likewise.
7299 (tree_gen_ic_profiler): Likewise.
7300 (tree_gen_average_profiler): Likewise.
7301 (tree_gen_ior_profiler): Likewise.
7303 2008-03-08 Richard Guenther <rguenther@suse.de>
7305 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
7306 (vn_binary_op_insert): Likewise.
7307 (vn_unary_op_lookup): Likewise.
7308 (vn_unary_op_insert): Likewise.
7309 (vn_nary_op_lookup): Declare.
7310 (vn_nary_op_insert): Likewise.
7311 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
7312 and binary hashes, use a single obstack for unary_op_pool
7314 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
7315 a single struct vn_nary_op_s. Store tree code length and
7316 a variable number of operands.
7317 (struct vn_reference_op_struct): Remove unused op2.
7318 (vn_reference_op_eq): Do not compare op2.
7319 (vn_reference_op_compute_hash): Do not compute hash of op2.
7320 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
7321 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
7322 with vn_nary_op_compute_hash.
7323 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
7324 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
7326 (vn_unary_op_insert, vn_binary_op_insert): Replace with
7328 (visit_unary_op): Call nary functions.
7329 (visit_binary_op): Likewise.
7330 (process_scc): Adjust for struct vn_tables_s changes.
7331 (allocate_vn_table): Likewise.
7332 (free_vn_table): Likewise.
7333 * tree-vn.c (vn_add): Call nary functions.
7334 (vn_lookup): Likewise.
7336 2008-03-08 Jakub Jelinek <jakub@redhat.com>
7339 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
7340 wdst back after sync_compare_and_swapqhi_internal.
7342 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
7345 * config/i386/i386-modes.def (V1DI): New vector mode.
7346 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
7347 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
7348 (MMXMODE248): Ditto.
7349 (MMXMODE): Add V1DI mode.
7350 (mmxvecsize): Change DI mode to V1DI mode.
7351 ("mov<mode>): Use MMXMODEI8 mode iterator.
7352 ("*mov<mode>_internal_rex64"): Ditto.
7353 ("*mov<mode>_internal"): Ditto.
7354 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
7355 ("mmx_sub<mode>3"): Ditto.
7356 ("mmx_adddi3"): Remove insn pattern.
7357 ("mmx_subdi3"): Ditto.
7358 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
7359 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
7360 ("mmx_ashl<mode>3"): Ditto.
7361 ("mmx_lshrdi3"): Remove insn pattern.
7362 ("mmx_ashldi3"): Ditto.
7363 * config/i386/i386.c (classify_argument): Handle V1DImode.
7364 (function_arg_advance_32): Ditto.
7365 (function_arg_32): Ditto.
7366 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
7367 mmx_addv1di3 insn pattern.
7368 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
7369 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
7370 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
7371 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
7372 Remove definitions of built-in functions.
7373 (V1DI_type_node): New node.
7374 (v1di_ftype_v1di_int): Ditto.
7375 (v1di_ftype_v1di_v1di): Ditto.
7376 (v2si_ftype_v2si_si): Ditto.
7377 (v4hi_ftype_v4hi_di): Remove node.
7378 (v2si_ftype_v2si_di): Ditto.
7379 (ix86_init_mmx_sse_builtins): Handle V1DImode.
7380 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
7381 Redefine builtins using def_builtin_const with *_ftype_*_int node.
7382 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
7383 Add new builtins using def_builtin_const.
7384 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
7385 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
7386 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
7387 * config/i386/mmintrin.h (__v1di): New typedef.
7388 (_mm_add_si64): Cast arguments to __v1di type.
7389 (_mm_sub_si64): Ditto.
7390 (_mm_sll_pi16): Cast __count to __v4hi type.
7391 (_mm_sll_pi32): Cast __count to __v2si type.
7392 (_mm_sll_si64): Cast arguments to __v1di type.
7393 (_mm_srl_pi16): Cast __count to __v4hi type.
7394 (_mm_srl_pi32): Cast __count to __v2si type.
7395 (_mm_srl_si64): Cast arguments to __v1di type.
7396 (_mm_sra_pi16): Cast __count to __v4hi type.
7397 (_mm_sra_pi32): Cast __count to __v2si type.
7398 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
7399 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
7400 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
7401 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
7402 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
7403 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
7404 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
7405 (_mm_srai_pi32): Use __builtin_ia32_psradi.
7406 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
7407 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7408 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7409 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
7411 2008-03-07 Joseph Myers <joseph@codesourcery.com>
7413 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
7415 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
7418 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
7419 reg+const addressing for Altivec modes. Don't generate reg+reg
7420 addressing for TFmode or TDmode quantities.
7422 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
7424 * c-common.c (vector_types_convertible_p): Call langhook
7425 instead of comptypes.
7427 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
7430 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
7431 integral and scalar float variables which have a
7434 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
7436 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
7437 dwarf_register_span hook when emitting unwind information for
7438 register-to-memory saves.
7439 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
7440 (rs6000_frame_related): Remove call to spe_synthesize_frame.
7442 2008-03-06 Jakub Jelinek <jakub@redhat.com>
7444 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
7445 for the same VAR_DECL.
7447 2008-03-06 Tom Tromey <tromey@redhat.com>
7450 * doc/standards.texi (Standards): Don't mention treelang.
7451 * doc/invoke.texi (Overall Options): Don't mention treelang.
7452 * doc/install.texi (Prerequisites): Don't mention bison or
7454 (Configuration): Don't mention treelang.
7455 (Building): Likewise.
7456 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
7458 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
7460 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
7461 word-extractions out of a multi-word object.
7463 2008-03-06 Richard Guenther <rguenther@suse.de>
7465 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
7466 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
7467 result type and precision.
7468 * expr.c (get_inner_reference): Set unsignedp based on the result
7469 type of BIT_FIELD_REF.
7470 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
7471 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
7472 (try_instantiate_multiple_fields): Likewise. Use the correct type
7474 (sra_build_assignment): Likewise.
7475 (sra_build_elt_assignment): Likewise.
7476 (sra_explode_bitfield_assignment): Likewise.
7477 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
7478 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
7479 set BIT_FIELD_REF_UNSIGNED.
7480 (vectorizable_load): Likewise.
7482 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
7484 * cse.c (cse_extended_basic_block): Invalidate artificial defs
7487 2008-03-06 Richard Guenther <rguenther@suse.de>
7489 * alias.c (struct alias_set_entry): Move has_zero_child field
7490 to pack with alias_set.
7492 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
7494 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7497 2008-03-05 Ian Lance Taylor <iant@google.com>
7499 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
7501 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
7503 * fwprop.c (update_df): Support width and offset parameters of
7505 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
7506 global_conflicts): Change DF_REF_EXTRACT to either
7507 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
7508 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7509 * df-scan.c (df_ref_record, df_defs_record,
7510 df_ref_create_structure, df_def_record_1, df_uses_record,
7511 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
7512 df_bb_refs_collect, df_entry_block_defs_collect,
7513 df_exit_block_uses_collect): Support new width and offset fields.
7514 (ref_extract_pool): New storage pool.
7515 (df_free_ref): New function.
7516 (df_reg_chain_unlink, df_free_collection_rec,
7517 df_sort_and_compress_refs): Call df_free_ref.
7518 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
7520 (df_ref_create_structure): Allocate df_ref_extract if offset and
7521 width fields are used.
7522 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
7523 (df_uses_record): Get offset and width from ZERO_EXTRACT
7525 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
7526 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
7527 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7528 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
7529 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
7530 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7531 (df_ref_extract): New structure.
7532 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
7533 (df_ref_create): Add width and offset parameters.
7535 2008-03-05 Richard Guenther <rguenther@suse.de>
7537 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7538 Use ranges_overlap_p.
7539 (offset_overlaps_with_access): Rename
7540 to ranges_overlap_p and move ...
7541 * tree-flow-inline.h (ranges_overlap_p): ... here.
7543 * tree.h (get_inner_reference, handled_component_p): Update
7546 * tree.h (record_component_aliases, get_alias_set,
7547 alias_sets_conflict_p, alias_sets_must_conflict_p,
7548 objects_must_conflict_p): Move declarations ...
7549 * alias.h (record_component_aliases, get_alias_set,
7550 alias_sets_conflict_p, alias_sets_must_conflict_p,
7551 objects_must_conflict_p): ... here.
7552 Include coretypes.h.
7553 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
7555 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
7557 * cfg.c: Include tree-flow.h.
7558 (remove_edge_raw): Call redirect_edge_var_map_clear.
7559 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
7560 * tree-flow-inline.h (redirect_edge_var_map_def): New.
7561 (redirect_edge_var_map_result): New.
7562 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
7563 PENDING_STMT use with redirect_edge_var_map_*.
7564 * tree-ssa.c (edge_var_maps): New definition.
7565 (redirect_edge_var_map_add): New.
7566 (redirect_edge_var_map_clear): New.
7567 (redirect_edge_var_map_dup): New.
7568 (redirect_edge_var_map_vector): New.
7569 (redirect_edge_var_map_destroy): New.
7570 (ssa_redirect_edge): Replace PENDING_STMT use with
7571 redirect_edge_var_map_*.
7572 (flush_pending_stmts): Same.
7573 (delete_tree_ssa): Destroy edge var map.
7574 * tree-flow.h (struct _edge_var_map): New.
7575 Define edge_var_map vector type.
7576 Declare redirect_edge_var_map_* prototypes.
7577 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
7578 * tree-cfg.c (reinstall_phi_args): Replace
7579 PENDING_STMT use with redirect_edge_var_map_*.
7581 2008-03-05 Richard Guenther <rguenther@suse.de>
7583 PR tree-optimization/35472
7584 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
7585 whose single use_stmt has a overlapping set of loaded and
7586 stored symbols as that use_stmt might be a noop assignment then.
7588 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
7590 * gthr-rtems.h: Implement __gthread_mutex_destroy.
7592 2008-03-05 Richard Guenther <rguenther@suse.de>
7595 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
7596 should be constants.
7597 * tree-cfg.c (verify_expr): Verify it.
7598 * fold-const.c (fold_truthop): Remove code generating
7599 BIT_FIELD_REFs of structure bases.
7600 (fold_binary): Likewise.
7601 (fold_ternary): Position and size of BIT_FIELD_REFs are
7602 always host integers.
7603 (make_bit_field_ref): Remove.
7604 (optimize_bit_field_compare): Remove.
7605 (all_ones_mask_p): Remove.
7607 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
7610 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
7611 (split_block_and_df_analyze): New. Split basic block and rebuild
7613 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
7615 (split_pattern_seq): Likewise.
7616 (erase_matching_seqs): Likewise.
7617 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
7619 2008-03-04 Geoff Keating <geoffk@apple.com>
7621 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
7622 declaration and code.
7623 (tree_invalid_nonnegative_warnv_p): Likewise.
7625 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7627 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
7628 examples. Truncate option-names then causing overfull hbox.
7630 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7633 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
7635 * configure: Rebuilt.
7637 2008-03-04 Rafael Espindola <espindola@google.com>
7639 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
7640 (tree_unary_nonnegative_warnv_p): New.
7641 (tree_binary_nonnegative_warnv_p): New.
7642 (tree_single_nonnegative_warnv_p): New.
7643 (tree_invalid_nonnegative_warnv_p): New.
7644 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
7646 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7649 * opts.c (handle_option): Postpone 'unknown option' errors only for
7652 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
7655 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
7658 2008-03-04 Rafael Espindola <espindola@google.com>
7660 * fold-const.c (tree_unary_nonzero_warnv_p): New.
7661 (tree_binary_nonzero_warnv_p): New.
7662 (tree_single_nonzero_warnv_p): New.
7663 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
7665 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
7668 * fold-const.c (fold_cond_expr_with_comparison): Prevent
7669 transformations for modes that have signed zeros.
7670 * ifcvt.c (noce_try_abs): Ditto.
7672 2008-03-04 Joseph Myers <joseph@codesourcery.com>
7674 * config/i386/i386.c (override_options): Force
7675 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
7677 2008-03-04 Jan Hubicka <jh@suse.cz>
7680 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
7683 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
7685 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
7686 label to probe the stack.
7688 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
7690 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
7691 (__gthr_win32_mutex_destroy): Declare.
7692 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
7693 __gthr_win32_mutex_destroy.
7694 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
7696 2008-03-03 Jan Hubicka <jh@suse.cz>
7699 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
7700 aggressive on inlining cold calls.
7702 2008-03-03 Richard Guenther <rguenther@suse.de>
7704 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
7705 struct copies into the expression table.
7706 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
7707 (try_to_simplify): Likewise.
7708 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
7709 integral and pointer arguments which do not change the
7710 precision to NOP_EXPRs.
7711 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
7712 VIEW_CONVERT_EXPR case.
7714 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
7716 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7717 defined in a loop at depth 0 is invariant.
7718 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7719 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7720 be called at loop depth 0.
7722 2008-03-02 Jakub Jelinek <jakub@redhat.com>
7725 * gcc.c (process_command): Update copyright notice dates.
7726 * gcov.c (print_version): Likewise.
7727 * gcov-dump.c (print_version): Likewise.
7728 * mips-tfile.c (main): Likewise.
7729 * mips-tdump.c (main): Likewise.
7731 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7734 * c-common.c (flag_permissive): Delete.
7735 (constant_expression_warnings): Check flags first.
7736 (constant_expression_error): New.
7737 * c-common.h (flag_permissive): Delete.
7738 (constant_expression_error): Declare.
7739 * flags.h (flag_permissive): Declare. Update description.
7740 * diagnostic.c (pedwarn): Update.
7742 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
7743 (permissive_error_kind): New.
7744 * toplev.c (flag_permissive): Define. Update description.
7745 * toplev.h (permissive_error_kind): Declare.
7746 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
7747 (pedwarn_c90): Use pedantic_warning_kind.
7748 * c-opts.c (c_common_post_options): flag_permissive does not affect
7749 flag_pedantic_errors.
7751 2008-03-02 Joseph Myers <joseph@codesourcery.com>
7753 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
7754 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
7755 __absvsi2, __absvDI2): Use unsigned arithmetic.
7757 2008-03-02 Andi Kleen <ak@suse.de>
7758 Richard Guenther <rguenther@suse.de>
7760 * struct-equiv.c: Remove file.
7761 * cfg_cleanup.c (condjump_equiv_p): Remove.
7762 * Makefile.in (OBJS-common): Remove struct-equiv.o.
7763 (struct-equiv.o): Remove rule.
7764 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
7765 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
7766 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
7768 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
7770 * ifcvt.c (noce_process_if_block): Try to handle only the then
7771 block if the else block exists but isn't suitable.
7773 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
7776 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
7777 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
7778 regression from previous patch.
7780 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
7783 * gthr.h: Add __gthread_mutex_destroy as a function that must be
7785 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
7786 * gthr-single.h (__gthread_mutex_destroy): Likewise.
7787 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
7788 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
7789 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
7790 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
7791 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
7792 (__gthread_mutex_destroy_function): Rename to
7793 __gthread_mutex_destroy.
7794 * gthr-dce.h (__gthread_mutex_destroy): Call
7795 pthread_mutex_destroy.
7796 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
7797 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
7798 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
7800 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
7802 * df-scan.c (df_ref_chain_change_bb): Simplify.
7803 (df_insn_change_bb): Add new_bb argument. Simplify. Call
7804 set_block_for_insn if there's any change.
7805 * df.h ((df_insn_change_bb): Fix prototype.
7806 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
7807 df_insn_change_bb, don't call set_block_for_insn.
7808 * emit-rtl.c (reorder_insns): Likewise.
7809 * haifa-sched.c (move_insn): Likewise.
7811 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
7813 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
7815 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
7817 * tree-flow-inline.h (next_readonly_imm_use): Return
7818 NULL_USE_OPERAND_P after the end.
7820 2008-03-01 Richard Guenther <rguenther@suse.de>
7822 PR tree-optimization/35411
7823 * tree-sra.c (sra_build_assignment): Split conversion to
7824 final type to a separate statement if we are not assigning
7827 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7829 * fold-const.c (fold_convertible_p): Correct the logic to follow
7830 that in fold_convert().
7832 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
7835 * tree-inline.c (build_duplicate_type): When we make a
7836 duplicate type, make it unique in the canonical types system.
7838 2008-02-29 Tom Tromey <tromey@redhat.com>
7840 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
7841 input_file_stack_history, input_file_stack_restored): Remove.
7842 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7843 * input.h (struct file_stack): Remove.
7844 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7845 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
7847 * diagnostic.h (struct diagnostic_context) <last_module>: Change
7849 (diagnostic_last_module_changed): Add 'map' argument.
7850 (diagnostic_set_last_function): Likewise.
7851 * diagnostic.c (undiagnostic_report_current_module): Iterate using
7852 line map, not input_file_stack.
7853 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
7855 2008-02-29 Paul Brook <paul@codesourcery.com>
7857 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
7859 2008-02-29 Paul Brook <paul@codesourcery.com>
7861 * config/arm/ieee754-df.S (muldf3): Use RET macros.
7863 2008-02-29 Richard Guenther <rguenther@suse.de>
7865 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
7867 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
7868 value for comparing for a store match.
7869 (simplify_unary_expression): Do nothing for SSA_NAMEs.
7870 (try_to_simplify): Do not do a full-blown reference lookup.
7872 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
7874 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
7875 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
7877 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
7879 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
7881 * tree-loop-linear.c (try_interchange_loops): Compare memory access
7882 strides against cache sizes.
7884 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
7886 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
7889 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
7891 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
7892 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
7893 is smaller than the original promoted value.
7894 (simplify_subreg): If OP is a SUBREG, try to preserve its
7895 SUBREG_PROMOTED_VAR_P information.
7897 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
7899 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
7900 (VN_INFO_GET): Allocate new objects on the obstack.
7901 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
7902 for rpo_numbers_temp, for consistency.
7903 (free_scc_vn): Free the obstack.
7905 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
7907 * doc/invoke.texi: Document -ftree-loop-distribution.
7908 * tree-loop-distribution.c: New.
7909 * tree-pass.h (pass_loop_distribution): New.
7910 * graphds.h (struct graph): Add htab_t indices.
7911 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7912 * tree-vectorizer.c (rename_variables_in_loop): Extern.
7913 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
7914 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7915 * tree-data-ref.c (debug_data_dependence_relations): New.
7916 (dump_data_dependence_relation): Also print data references.
7917 (free_data_ref): Extern.
7918 (same_access_functions): Moved...
7919 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7920 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7921 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7922 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
7923 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
7924 (stmts_from_loop): Skip LABEL_EXPR.
7925 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
7927 (build_rdg): Initialize rdg->indices htab.
7928 (free_rdg, stores_from_loop, ref_base_address,
7929 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7930 have_similar_memory_accesses_1, ref_base_address_1,
7931 remove_similar_memory_refs): New.
7932 * tree-data-ref.h: Depend on tree-chrec.h.
7933 (debug_data_dependence_relations, free_data_ref): Declared.
7934 (same_access_functions): ... here.
7935 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
7937 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
7938 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
7939 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
7940 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7941 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7942 rdg_vertex_for_stmt): Declared.
7943 (struct rdg_edge): Add level.
7945 (free_rdg, stores_from_loop, remove_similar_memory_refs,
7946 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
7948 (rdg_has_similar_memory_accesses): New.
7949 * tree-vect-analyze.c: Remove unused static decls.
7950 * lambda.h (dependence_level): New.
7951 * common.opt (ftree-loop-distribution): New.
7952 * tree-flow.h (mark_virtual_ops_in_bb,
7953 slpeel_tree_duplicate_loop_to_edge_cfg,
7954 rename_variables_in_loop): Declared.
7955 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
7956 (OBJS-common): Add tree-loop-distribution.o.
7957 (tree-loop-distribution.o): New rule.
7958 * tree-cfg.c (mark_virtual_ops_in_bb): New.
7959 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7960 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
7962 2008-02-28 Joseph Myers <joseph@codesourcery.com>
7965 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
7966 other than structures and unions.
7968 2008-02-28 Richard Guenther <rguenther@suse.de>
7971 2008-02-26 Richard Guenther <rguenther@suse.de>
7973 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7974 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7975 (lookup_decl_from_uid): Declare.
7976 (remove_decl_from_map): Likewise.
7977 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7978 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7979 (decl_for_uid_map): New global hashtable mapping DECL_UID
7981 (init_ttree): Allocate it.
7982 (insert_decl_to_uid_decl_map): New helper function.
7983 (make_node_stat): Insert new decls into the map.
7984 (copy_node_stat): Likewise.
7985 (lookup_decl_from_uid): New function.
7986 (remove_decl_from_map): Likewise.
7987 (print_decl_for_uid_map_statistics): New helper.
7988 (dump_tree_statistics): Call it.
7990 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7991 (referenced_var_iterator): Adjust.
7992 (FOR_EACH_REFERENCED_VAR): Adjust.
7993 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7994 (num_referenced_vars): Adjust.
7995 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7996 (first_referenced_var): Remove.
7997 (end_referenced_vars_p): Likewise.
7998 (next_referenced_var): Likewise.
7999 (referenced_var_iterator_set): New helper function.
8000 * tree-dfa.c (referenced_var_lookup): Adjust.
8001 (referenced_var_check_and_insert): Likewise.
8002 (remove_referenced_var): Likewise.
8003 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8004 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8005 (verify_call_clobbering): Likewise.
8006 (verify_memory_partitions): Likewise.
8007 (init_tree_ssa): Allocate bitmap instead of hashtable for
8009 (delete_tree_ssa): Adjust.
8010 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8011 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8012 (compute_tag_properties): Likewise.
8013 (set_initial_properties): Likewise.
8014 (find_partition_for): Likewise.
8015 (update_reference_counts): Likewise.
8016 (dump_may_aliases_for): Likewise.
8017 * tree-ssa-operands.c (add_virtual_operand): Likewise.
8018 (add_call_clobber_ops): Likewise.
8019 (add_call_read_ops): Likewise.
8020 (get_asm_expr_operands): Likewise.
8021 * tree-into-ssa.c (dump_decl_set): Likewise.
8022 (update_ssa): Likewise.
8023 * tree-sra.c (scan_function): Likewise.
8024 (decide_instantiations): Likewise.
8025 (scalarize_parms): Likewise.
8026 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8027 (dsa_named_for): Likewise.
8028 * tree-ssa-structalias.c (update_alias_info): Likewise.
8029 (merge_smts_into): Likewise.
8031 2008-02-27 David Daney <ddaney@avtrex.com>
8034 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
8035 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
8036 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
8037 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
8038 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
8040 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
8043 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
8044 (BUILT_IN_NEXTTOWARD): Remove.
8045 (BUILT_IN_NEXTTOWARDF): Ditto.
8046 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
8047 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
8049 2008-02-27 Tom Tromey <tromey@redhat.com>
8051 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
8052 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
8054 2008-02-27 Jan Beulich <jbeulich@novell.com>
8056 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
8057 update the respective field on newdecl.
8059 2008-02-27 Revital Eres <eres@il.ibm.com>
8061 PR rtl-optimization/34999
8062 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
8063 crossing edges that ends with a call insn.
8064 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
8065 call insn and clear the EDGE_CROSSING flag of the crossing edge
8066 when fixing fallthru edges.
8068 2008-02-27 Richard Guenther <rguenther@suse.de>
8071 * fold-const.c (fold_unary): Return the correct argument,
8072 converted to the result type.
8074 2008-02-27 Richard Guenther <rguenther@suse.de>
8077 * expr.c (expand_expr_real_1): Assert on rotates that operate
8079 * fold-const.c (fold_binary): Use the types precision, not the
8080 bitsize of the mode if folding rotate expressions. Build rotates
8081 only for full modes.
8083 2008-02-27 Jakub Jelinek <jakub@redhat.com>
8085 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
8087 * c-pragma.c (pragma_ns_name): New typedef.
8088 (registered_pp_pragmas): New variable.
8089 (c_pp_lookup_pragma): New function.
8090 (c_register_pragma_1): If flag_preprocess_only, do nothing
8091 for non-expanded pragmas, for expanded ones push pragma's
8092 namespace and name into registered_pp_pragmas vector.
8093 (c_invoke_pragma_handler): Register OpenMP pragmas even when
8094 flag_preprocess_only, don't register GCC pch_preprocess
8095 pragma if flag_preprocess_only.
8096 * c-opts.c (c_common_init): Call init_pragma even if
8097 flag_preprocess_only.
8098 * c-pragma.c (c_pp_lookup_pragma): New prototype.
8099 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
8100 cpp_register_pragma if flag_preprocess_only.
8102 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8105 * c-parser.c (c_parser_translation_unit): Warn for empty
8106 translation unit, not empty source file.
8108 2008-02-26 Paul Brook <paul@codesourcery.com>
8110 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
8111 operand for Thumb-2.
8112 * config/arm/arm.h (reg_class): Add CORE_REGS.
8113 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
8114 (BASE_REG_CLASS): Use CORE_REGS.
8115 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
8116 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
8117 (REGNO_OK_FOR_INDEX_P): Exclude SP.
8118 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
8119 ARM_REGNO_OK_FOR_INDEX_P.
8120 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
8121 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
8122 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
8123 (ldm/stm peepholes): Ditto.
8124 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
8125 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
8126 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
8127 * config/arm/constraints.md: Enable "k" constraint on ARM.
8129 2008-02-27 Ben Elliston <bje@au.ibm.com>
8131 * config/rs6000/rs6000.c: Annotate cache line size field in all
8132 instances of struct processor_costs.
8134 2008-02-26 David Edelsohn <edelsohn@gnu.org>
8136 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
8137 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
8138 jump_bypass): New counters.
8139 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
8140 * dce.c (gate_ud_dce): Same.
8141 (gate_fast_dce): Same.
8142 * dse.c (gate_dse1): New function.
8143 (gate_dse2): New function.
8144 (gate_dse): Merge results of new gate functions.
8145 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
8146 (gate_handle_jump_bypass): Add dbg_cnt.
8147 (gate_handle_gcse): Add dbg_cnt.
8148 * ifcvt.c (gate_handle_if_conversion): Same.
8149 (gate_handle_if_after_combine): Same.
8150 (gate_handle_if_after_reload): Same.
8151 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
8153 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
8155 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
8157 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
8159 2008-02-26 Jason Merrill <jason@redhat.com>
8162 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
8163 alone if it's the naming decl for the type's main variant.
8165 2008-02-26 Tom Tromey <tromey@redhat.com>
8167 * system.h (USE_MAPPED_LOCATION): Poison.
8168 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
8169 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
8170 (make_goto_expr_edges): Likewise.
8171 (remove_bb): Likewise.
8172 (execute_warn_function_return): Likewise.
8173 * basic-block.h (struct edge_def) <goto_locus>: Change type to
8175 * c-common.c (fname_decl): Remove old location code.
8176 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
8178 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
8180 (ASM_INPUT_SOURCE_LOCATION): Likewise.
8181 (gen_rtx_ASM_INPUT): Likewise.
8182 (gen_rtx_ASM_INPUT_loc): Likewise.
8183 (get_rtx_asm_OPERANDS): Remove.
8184 * cfglayout.c (insn_locators_alloc): Remove old location code.
8185 (set_curr_insn_source_location): Likewise.
8186 (curr_insn_locator): Likewise.
8187 * print-tree.c (print_node): Remove old location code.
8188 * tree-mudflap.c (mf_varname_tree): Remove old location code.
8189 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
8190 * cfgexpand.c (expand_gimple_cond_expr): Don't use
8191 location_from_locus.
8192 (construct_exit_block): Remove old location code.
8193 * emit-rtl.c (force_next_line_note): Remove old location code.
8194 * profile.c (branch_prob): Remove old location code.
8195 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
8196 LOC_LINE): Remove old-location variants.
8197 * langhooks.c (lhd_print_error_function): Remove old location
8199 * configure, config.in: Rebuilt.
8200 * configure.ac (--enable-mapped-location): Remove.
8201 * c-decl.c (c_init_decl_processing): Remove old location code.
8202 (finish_function): Likewise.
8203 * recog.c (decode_asm_operands): Remove old location code.
8204 * c-pch.c (c_common_read_pch): Remove old location code.
8205 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
8207 * gimple-low.c (lower_function_body): Remove old location code.
8208 * toplev.c (unknown_location): Remove.
8209 (push_srcloc): Remove old-location variant.
8210 (process_options): Remove old location code.
8211 (lang_dependent_init): Likewise.
8212 * input.h (UNKNOWN_LOCATION): Move definition.
8213 (location_t): Undeprecate.
8214 (source_locus): Remove.
8215 (location_from_locus): Remove.
8216 (struct location_s): Remove.
8217 Remove all old-location code.
8218 (input_line, input_filename): Remove.
8219 * final.c (final_scan_insn): Remove old location code.
8220 * diagnostic.c (diagnostic_build_prefix): Remove
8221 USE_MAPPED_LOCATION test.
8222 * tree.h (gimple_stmt) <locus>: Now a location_t.
8223 (tree_exp) <locus>: Likewise.
8224 (DECL_IS_BUILTIN): Remove old-location variant.
8225 (annotate_with_file_line, annotate_with_locus): Likewise.
8226 (expr_locus, set_expr_locus): Update.
8227 * tree.c (build1_stat): Remove old location code.
8228 (last_annotated_node): Remove.
8229 (annotate_with_file_line): Remove old-location variant.
8230 (annotate_with_locus): Likewise.
8231 (expr_location): Remove old location code.
8232 (set_expr_location): Likewise.
8233 (expr_has_location): Likewise.
8234 (expr_locus): Likewise.
8235 (set_expr_locus): Likewise.
8236 (expr_filename): Don't use location_from_locus.
8237 (expr_lineno): Likewise.
8238 * rtl-error.c (location_for_asm): Remove old location code.
8239 * c-lex.c (cb_line_change): Remove old location code.
8240 (fe_file_change): Likewise.
8241 (cb_def_pragma): Likewise.
8242 (c_lex_with_flags): Likewise.
8243 * gengtype.c (do_typedef): Don't special-case location types.
8244 (define_location_structures): Remove.
8245 (main): Don't call define_location_structures.
8246 * tree-pretty-print.c (dump_implicit_edges): Remove old location
8249 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8252 * builtins.def (BUILT_IN_STDARG_START): Remove.
8253 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
8254 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8255 * tree-inline.c (inline_forbidden_p_1): Likewise.
8257 2008-02-26 Richard Guenther <rguenther@suse.de>
8259 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8260 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8261 (lookup_decl_from_uid): Declare.
8262 (remove_decl_from_map): Likewise.
8263 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8264 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8265 (decl_for_uid_map): New global hashtable mapping DECL_UID
8267 (init_ttree): Allocate it.
8268 (insert_decl_to_uid_decl_map): New helper function.
8269 (make_node_stat): Insert new decls into the map.
8270 (copy_node_stat): Likewise.
8271 (lookup_decl_from_uid): New function.
8272 (remove_decl_from_map): Likewise.
8273 (print_decl_for_uid_map_statistics): New helper.
8274 (dump_tree_statistics): Call it.
8276 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8277 (referenced_var_iterator): Adjust.
8278 (FOR_EACH_REFERENCED_VAR): Adjust.
8279 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8280 (num_referenced_vars): Adjust.
8281 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8282 (first_referenced_var): Remove.
8283 (end_referenced_vars_p): Likewise.
8284 (next_referenced_var): Likewise.
8285 (referenced_var_iterator_set): New helper function.
8286 * tree-dfa.c (referenced_var_lookup): Adjust.
8287 (referenced_var_check_and_insert): Likewise.
8288 (remove_referenced_var): Likewise.
8289 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8290 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8291 (verify_call_clobbering): Likewise.
8292 (verify_memory_partitions): Likewise.
8293 (init_tree_ssa): Allocate bitmap instead of hashtable for
8295 (delete_tree_ssa): Adjust.
8296 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8297 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8298 (compute_tag_properties): Likewise.
8299 (set_initial_properties): Likewise.
8300 (find_partition_for): Likewise.
8301 (update_reference_counts): Likewise.
8302 (dump_may_aliases_for): Likewise.
8303 * tree-ssa-operands.c (add_virtual_operand): Likewise.
8304 (add_call_clobber_ops): Likewise.
8305 (add_call_read_ops): Likewise.
8306 (get_asm_expr_operands): Likewise.
8307 * tree-into-ssa.c (dump_decl_set): Likewise.
8308 (update_ssa): Likewise.
8309 * tree-sra.c (scan_function): Likewise.
8310 (decide_instantiations): Likewise.
8311 (scalarize_parms): Likewise.
8312 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8313 (dsa_named_for): Likewise.
8314 * tree-ssa-structalias.c (update_alias_info): Likewise.
8315 (merge_smts_into): Likewise.
8317 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8320 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
8321 * c-opts.c (c_common_handle_option): Wall enables
8322 Wvolatile-register-var.
8323 * common.opt: Move Wvolatile-register-var to...
8326 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8328 * common.opt (Wlarger-than=): New.
8329 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
8331 * opts.c (common_handle_option): Handle -Wlarger-than=.
8332 * optc-gen.awk: Likewise.
8333 * opth-gen.awk: Likewise.
8334 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
8335 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8337 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8339 * c-common.c (match_case_to_enum_1): Add appropriate
8340 OPT_W* parameter to warning.
8341 (c_do_switch_warnings): Likewise.
8342 * c-typeck.c (warning_init): Add one more parameter following
8344 (push_init_level): Update call to warning_init.
8345 (pop_init_level): Likewise.
8346 (add_pending_init): Likewise.
8347 (output_init_element: Likewise.
8349 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8352 * toplev.c (toplev_main): If there are warnings or error, print
8353 errors for ignored options.
8354 * opts.c (ignored_options): New static variable.
8355 (postpone_unknown_option_error): New.
8356 (print_ignored_options): New.
8357 (handle_option): Postpone errors for unknown -Wno-* options.
8358 * opts.h (print_ignored_options): Declare.
8360 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
8362 * config/mips/mips.md (loadgp_blockage, blockage): Change type
8365 2008-02-25 Richard Guenther <rguenther@suse.de>
8368 2008-02-25 Richard Guenther <rguenther@suse.de>
8370 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8371 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8372 (lookup_decl_from_uid): Declare.
8373 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8374 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8375 (decl_for_uid_map): New global hashtable mapping DECL_UID
8377 (init_ttree): Allocate it.
8378 (insert_decl_to_uid_decl_map): New helper function.
8379 (make_node_stat): Insert new decls into the map.
8380 (copy_node_stat): Likewise.
8381 (lookup_decl_from_uid): New function.
8382 (print_decl_for_uid_map_statistics): New helper.
8383 (dump_tree_statistics): Call it.
8385 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8386 (referenced_var_iterator): Adjust.
8387 (FOR_EACH_REFERENCED_VAR): Adjust.
8388 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8389 (num_referenced_vars): Adjust.
8390 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8391 (first_referenced_var): Remove.
8392 (end_referenced_vars_p): Likewise.
8393 (next_referenced_var): Likewise.
8394 (referenced_var_iterator_set): New helper function.
8395 * tree-dfa.c (referenced_var_lookup): Adjust.
8396 (referenced_var_check_and_insert): Likewise.
8397 (remove_referenced_var): Likewise.
8398 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8399 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8400 (verify_call_clobbering): Likewise.
8401 (verify_memory_partitions): Likewise.
8402 (init_tree_ssa): Allocate bitmap instead of hashtable for
8404 (delete_tree_ssa): Adjust.
8405 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8406 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8407 (compute_tag_properties): Likewise.
8408 (set_initial_properties): Likewise.
8409 (find_partition_for): Likewise.
8410 (update_reference_counts): Likewise.
8411 (dump_may_aliases_for): Likewise.
8412 * tree-ssa-operands.c (add_virtual_operand): Likewise.
8413 (add_call_clobber_ops): Likewise.
8414 (add_call_read_ops): Likewise.
8415 (get_asm_expr_operands): Likewise.
8416 * tree-into-ssa.c (dump_decl_set): Likewise.
8417 (update_ssa): Likewise.
8418 * tree-sra.c (scan_function): Likewise.
8419 (decide_instantiations): Likewise.
8420 (scalarize_parms): Likewise.
8421 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8422 (dsa_named_for): Likewise.
8423 * tree-ssa-structalias.c (update_alias_info): Likewise.
8424 (merge_smts_into): Likewise.
8426 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
8429 * doc/invoke.texi (-fcx-limited-range): Document new option.
8430 * toplev.c (process_options): Handle -fcx-fortran-rules.
8431 * common.opt: Add documentation for -fcx-fortran-rules.
8433 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
8436 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
8437 actual behaviour and C99.
8439 2008-02-26 Ben Elliston <bje@au.ibm.com>
8441 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
8442 (ASM_CPU_POWER6_SPEC): Likewise.
8443 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
8444 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
8445 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
8447 2008-02-25 Richard Guenther <rguenther@suse.de>
8449 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8450 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8451 (lookup_decl_from_uid): Declare.
8452 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8453 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8454 (decl_for_uid_map): New global hashtable mapping DECL_UID
8456 (init_ttree): Allocate it.
8457 (insert_decl_to_uid_decl_map): New helper function.
8458 (make_node_stat): Insert new decls into the map.
8459 (copy_node_stat): Likewise.
8460 (lookup_decl_from_uid): New function.
8461 (print_decl_for_uid_map_statistics): New helper.
8462 (dump_tree_statistics): Call it.
8464 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8465 (referenced_var_iterator): Adjust.
8466 (FOR_EACH_REFERENCED_VAR): Adjust.
8467 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8468 (num_referenced_vars): Adjust.
8469 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8470 (first_referenced_var): Remove.
8471 (end_referenced_vars_p): Likewise.
8472 (next_referenced_var): Likewise.
8473 (referenced_var_iterator_set): New helper function.
8474 * tree-dfa.c (referenced_var_lookup): Adjust.
8475 (referenced_var_check_and_insert): Likewise.
8476 (remove_referenced_var): Likewise.
8477 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8478 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8479 (verify_call_clobbering): Likewise.
8480 (verify_memory_partitions): Likewise.
8481 (init_tree_ssa): Allocate bitmap instead of hashtable for
8483 (delete_tree_ssa): Adjust.
8484 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8485 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8486 (compute_tag_properties): Likewise.
8487 (set_initial_properties): Likewise.
8488 (find_partition_for): Likewise.
8489 (update_reference_counts): Likewise.
8490 (dump_may_aliases_for): Likewise.
8491 * tree-ssa-operands.c (add_virtual_operand): Likewise.
8492 (add_call_clobber_ops): Likewise.
8493 (add_call_read_ops): Likewise.
8494 (get_asm_expr_operands): Likewise.
8495 * tree-into-ssa.c (dump_decl_set): Likewise.
8496 (update_ssa): Likewise.
8497 * tree-sra.c (scan_function): Likewise.
8498 (decide_instantiations): Likewise.
8499 (scalarize_parms): Likewise.
8500 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8501 (dsa_named_for): Likewise.
8502 * tree-ssa-structalias.c (update_alias_info): Likewise.
8503 (merge_smts_into): Likewise.
8505 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
8508 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
8509 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
8510 * alias.h (nonoverlapping_memrefs_p): Likewise.
8512 2008-02-25 Jan Beulich <jbeulich@novell.com>
8514 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
8515 * config/i386/netware-libgcc.exp: Add __bswap?i2,
8516 __emultls_get_address, __emultls_register_common,
8517 __floatundi?f, and _Unwind_GetIPInfo.
8518 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
8519 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
8520 (gen_regparm_prefix): Likewise.
8521 (i386_nlm_encode_section_info): Sync with
8522 config/i386/winnt.c:i386_pe_encode_section_info().
8523 (i386_nlm_maybe_mangle_decl_assembler_name): New.
8524 i386_nlm_mangle_decl_assembler_name): New.
8525 (netware_override_options): New.
8526 * config/i386/netware.h (netware_override_options): Declare.
8527 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
8528 (i386_nlm_mangle_decl_assembler_name): Declare.
8529 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
8531 2008-02-25 Ben Elliston <bje@au.ibm.com>
8534 * c-decl.c (grokdeclarator): Remove unused local variables
8535 `typedef_type' and `type_as_written'.
8537 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
8538 unused local variable `has_hot_blocks'.
8539 (fix_crossing_conditional_branches): Remove unused local variable
8542 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
8545 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
8546 using DEF_C99_BUILTIN.
8547 (BUILT_IN_NANF): Ditto.
8548 (BUILT_IN_NANL): Ditto.
8550 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
8551 Revital Eres <eres@il.ibm.com>
8553 * modulo-sched.c (calculate_must_precede_follow): Address TODO
8554 regarding the order of two dependent insns in the same row.
8556 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
8558 * stor-layout.c (layout_decl): Do not bump the alignment of a
8559 bit-field to more than byte alignment if it is packed.
8561 2008-02-24 David Edelsohn <edelsohn@gnu.org>
8563 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
8566 2008-02-24 Diego Novillo <dnovillo@google.com>
8568 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
8571 * tree-vrp.c (vrp_evaluate_conditional): With
8572 -Wtype-limits, emit a warning when comparing against a
8573 constant outside the natural range of OP0's type.
8574 * c.opt (Wtype-limits): Move ...
8575 * common.opt (Wtype-limits): ... here.
8577 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
8579 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
8580 * config/rs6000/e300c2c3.md: New file.
8581 * config/rs6000/rs6000.c (processor_costs): Add new costs for
8583 (rs6000_override_options): Add e300c2 and e300c3 cases to
8584 processor_target_table. Do not allow usage of Altivec or Spe
8585 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
8586 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
8587 * config/rs6000/rs6000.h (processor_type): Add
8588 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
8589 (ASM_CPU_SPEC): Add e300c2 and e300c3.
8590 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
8591 and ppce300c3. Include e300c2c3.md.
8593 2008-02-23 David Edelsohn <edelsohn@gnu.org>
8595 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
8596 instead of TARGET_STRICT_ALIGN.
8598 2008-02-23 Joseph Myers <joseph@codesourcery.com>
8600 * explow.c (memory_address): Assert that the generated address is
8603 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
8606 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
8607 * config/darwin-ppc-ldouble-patch.def: New file.
8608 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
8609 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
8610 SUBTARGET_INIT_BUILTINS if defined.
8611 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
8614 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
8617 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
8618 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
8620 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
8623 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
8624 file" warning condtional on -Winvalid-PCH.
8626 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
8628 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
8630 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
8634 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
8635 prevent reload from using MMX registers.
8636 (*mov<mode>_internal): Ditto.
8637 (*movv2sf_internal_rex64): Ditto.
8638 (*movv2sf_internal): Ditto.
8640 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8642 PR documentation/31569
8643 * doc/install.texi2html: Use makeinfo --no-number-sections.
8645 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
8647 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
8648 ensure that we can address an entire entity > 8 bytes. Don't
8649 generate reg+reg addressing for such data.
8651 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
8653 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
8654 strings when optimizing for size, unless the target cares about
8657 2008-02-22 Tom Tromey <tromey@redhat.com>
8659 * regclass.c (current_pass): Remove declaration.
8661 2008-02-22 Anatoly Sokolov <aesok@post.ru>
8663 * config/avr/libgcc.S (__RAMPZ__): Define.
8664 (__do_copy_data): Add for devices with 128KB code memory.
8666 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
8668 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8670 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
8672 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
8674 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
8677 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8680 * c-typeck.c (build_binary_op): Warn about floating point
8681 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
8683 2008-02-21 Janis Johnson <janis187@us.ibm.com>
8686 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
8687 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
8689 (rs6000_override_options): Set altivec_abi as default, not override,
8690 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
8691 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
8692 is used; use new member spe_abi.
8693 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
8694 spe_abi and altivec_abi.
8696 2008-02-22 Tomas Bily <tbily@suse.cz>
8698 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
8700 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8703 * config.build (build_file_translate): Set to `CMD //c' only if
8705 * Makefile.in (build_file_translate): Improve comment.
8707 2008-02-21 Jan Hubicka <jh@suse.cz>
8709 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
8710 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
8711 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
8713 2008-02-21 Michael Matz <matz@suse.de>
8716 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
8718 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
8720 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
8721 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
8723 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
8724 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
8725 SSE_VEC_FLOAT_MODE_P as insn constraint.
8726 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
8727 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
8728 sse4a_movntdf using MODEF mode iterator.
8729 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
8730 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
8731 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
8732 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
8733 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
8734 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
8735 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
8737 2008-02-21 Richard Guenther <rguenther@suse.de>
8739 * tree.def (PAREN_EXPR): New tree code.
8740 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
8742 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
8743 * expr.c (expand_expr_real_1): Likewise.
8744 * tree-inline.c (estimate_num_insns_1): Likewise.
8745 * tree-complex.c (expand_complex_move): Likewise.
8746 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
8749 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
8752 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
8754 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
8757 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
8759 * config/sh/sh.c (find_barrier): Don't go past
8760 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
8762 2008-02-20 DJ Delorie <dj@redhat.com>
8764 * config/h8300/h8300.md (insv): Force source operand to be a register.
8766 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
8767 as a jump, not as a plain insn.
8769 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
8771 * doc/invoke.texi (Warning Options): Add new option
8772 -Wframe-larger-than=.
8773 (-Wframe-larger-than): Document.
8775 * flags.h (warn_frame_larger_than, frame_larger_than_size):
8776 Add declarations for new option variables.
8778 * final.c (final_start_function): Check the frame size
8779 before emission and issue a Wframe-larger-than warning.
8781 * opts.c (warn_frame_larger_than, frame_larger_than_size):
8782 Add definitions for new option variables.
8783 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
8785 * common.opt (Wframe-larger-than=): New option.
8787 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
8789 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
8790 (<sse>_div<mode>3): Ditto.
8791 (<sse>_vmdiv<mode>3): Ditto.
8792 (<sse>_vmsqrt<mode>2): Ditto.
8793 (*smax<mode>3): Ditto.
8794 (sse5_frcz<mode>2): Ditto.
8795 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
8798 2008-02-20 Richard Guenther <rguenther@suse.de>
8801 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
8802 be happy with INTEGRAL_TYPE_P.
8804 2008-02-20 Richard Guenther <rguenther@suse.de>
8806 * fold-const.c (split_tree): Associate floatig-point expressions
8807 if flag_associative_math is set.
8809 2008-02-20 Richard Guenther <rguenther@suse.de>
8811 * tree.h (fold_real_zero_addition_p): Declare.
8812 * fold-const.c (fold_real_zero_addition_p): Export.
8813 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
8814 floating-point operations with zero and one.
8816 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
8818 * doc/install.texi: Correct references to CFLAGS, replacing them
8819 with BOOT_CFLAGS. Document flags used during bootstrap for
8822 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
8824 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
8825 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
8826 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
8828 (smin<mode>3): Ditto from similar patterns.
8829 (smax<mode>3): Ditto.
8830 (*ieee_smin<mode>3): Ditto.
8831 (*ieee_smax<mode>3): Ditto.
8832 * config/i386/sse.md (sse): New mode attribute.
8833 (mov<mode>): Macroize expander from movv4sf and movv2df using
8834 SSEMODEF2P mode iterator.
8835 (<sse>_movnt<mode>): Ditto from similar patterns. Use
8836 SSE_VEC_FLOAT_MODE_P as insn constraint.
8837 (storent<mode>): Ditto.
8838 (storent<mode>): Macroize expander from storentsf and storentdf using
8839 MODEF mode iterator.
8840 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
8841 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
8842 (abs<mode>2): Ditto from similar patterns.
8843 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
8844 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
8845 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
8846 (<sse>_vmsqrt<mode>2): Ditto.
8847 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
8848 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
8849 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
8850 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
8851 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
8852 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
8853 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
8855 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
8856 iterator and SSE_FLOAT_MODE_P as insn constraint.
8857 (<sse>_ucomi): Ditto from similar patterns.
8858 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
8859 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
8860 SSE_VEC_FLOAT_MODE_P as insn constraint.
8861 (vcond<mode>): Ditto from similar patterns.
8862 (and<mode>3, *and<mode>3): Ditto.
8863 (<sse>_nand<mode>3): Ditto.
8864 (ior<mode>3, *ior<mode>3): Ditto.
8865 (xor<mode>3, *xor<mode>3): Ditto.
8866 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
8867 iterator and SSE_FLOAT_MODE_P as insn constraint.
8868 (*nand<mode>3): Ditto from similar patterns.
8869 (*ior<mode>3): Ditto.
8870 (*xor<mode>3): Ditto.
8872 2008-02-20 Ira Rosen <irar@il.ibm.com>
8874 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
8875 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
8876 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
8878 2008-02-19 Jan Hubicka <jh@suse.cz>
8880 * predict.c (tree_bb_level_predictions): Remove variable next
8881 mistakely introduced by previous commit.
8883 2008-02-19 Jan Hubicka <jh@suse.cz>
8885 * predict.c (predict_paths_leading_to): Rewrite.
8886 (predict_paths_for_bb): New.
8887 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
8889 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8892 * Makefile.in (build_file_translate): New.
8893 (gcc-vers.texi): Use it for translating $(abs_srcdir).
8894 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
8895 * configure.ac (build_file_translate): Substitute it.
8896 * configure: Regenerate.
8898 2008-02-19 Jan Hubicka <jh@suse.cz>
8900 PR rtl-optimization/34408
8901 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
8904 2008-02-19 Jan Hubicka <jh@suse.cz>
8907 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
8910 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
8913 * config/i386/i386-modes.def: Revert the last DI alignment
8914 change until Ada people can look into it.
8916 2008-02-19 Nick Clifton <nickc@redhat.com>
8918 * opts.c (print_specific_help): Fix typo in --help text.
8920 2008-02-19 Jakub Jelinek <jakub@redhat.com>
8923 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
8924 32-bit inline asm without asm alternatives for host GCC < 3.0.
8926 2008-02-19 Richard Guenther <rguenther@suse.de>
8928 PR tree-optimization/34989
8929 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
8930 Allow propagation to INDIRECT_REF if we can simplify only.
8932 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8934 * c-common.c (warn_for_collisions_1): Use appropriate option when
8937 2008-02-19 Nick Clifton <nickc@redhat.com>
8940 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
8941 (handle_options): Fix indentation.
8942 (print_filtered_help): If no language-specific options were
8943 displayed tell the user how to list all the options supported by
8944 the language's front-end.
8945 (print_specific_help): Fix indentation and remove duplicate line.
8946 (common_handle_option): Handle the -v option.
8947 For --help enable the display of undocumented options if the -v
8948 switch has been included on the command line.
8949 For --help= check for overlaps in the arguments between the option
8950 classes and the language names and issue a warning when they
8951 cannot be disambiguated.
8952 * c.opt (v): Pass on to the common option handler.
8954 2008-02-19 Revital Eres <eres@il.ibm.com>
8956 * modulo-sched.c (sms_schedule): Change dump message when
8957 create_ddg function fails.
8958 (try_scheduling_node_in_cycle): Rename row to cycle.
8959 (print_partial_schedule): Rename CYCLE to ROW.
8961 2008-02-19 Christian Bruel <christian.bruel@st.com>
8962 Zdenek Dvorak <ook@ucw.cz>
8964 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
8966 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
8969 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
8970 (*x86_movdicc_0_m1_se): Ditto.
8972 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
8974 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
8975 (CMPtype): Define as __gcc_CMPtype.
8976 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
8977 (CMPtype): Define as __gcc_CMPtype.
8979 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
8981 Support valgrind 3.3 for --enable-checking=valgrind.
8982 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
8984 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
8985 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
8986 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
8987 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
8988 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
8989 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
8990 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
8992 * ggc-zone.c: Similar.
8993 * ggc-page.c: Similar.
8995 2008-02-19 Paul Brook <paul@codesourcery.com>
8998 * config/arm/ieee754-df.S: Fix do_it typo.
8999 * config/arm/ieee754-sf.S: Fix do_it typo.
9001 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
9004 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
9005 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
9006 (OPTION_MASK_ISA_SSE_SET): Likewise.
9007 (OPTION_MASK_ISA_SSE2_SET): Likewise.
9008 (OPTION_MASK_ISA_SSE3_SET): Likewise.
9009 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
9010 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
9011 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
9012 (OPTION_MASK_ISA_SSE4_SET): Likewise.
9013 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
9014 (OPTION_MASK_ISA_SSE5_SET): Likewise.
9015 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
9016 (OPTION_MASK_ISA_MMX_UNSET): Updated.
9017 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
9018 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
9019 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
9020 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
9021 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
9022 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
9023 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
9024 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
9025 (OPTION_MASK_ISA_SSE4): Removed.
9026 (ix86_handle_option): Turn on bits in ix86_isa_flags and
9027 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
9028 (override_options): Don't turn on implied SSE/MMX bits in
9031 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
9033 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9036 2008-02-18 Joey Ye <joey.ye@intel.com>
9039 * tree-nested.c (insert_field_into_struct): Set type alignment
9040 to field alignment if the former is less than the latter.
9042 2008-02-18 Jakub Jelinek <jakub@redhat.com>
9044 * BASE-VER: Set to 4.4.0.
9046 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9048 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
9049 * doc/cfg.texi: Likewise.
9050 * doc/extend.texi: Likewise.
9051 * doc/gty.texi: Likewise.
9052 * doc/invoke.texi: Likewise.
9053 * doc/loop.texi: Likewise.
9054 * doc/md.texi: Likewise.
9055 * doc/passes.texi: Likewise.
9056 * doc/rtl.texi: Likewise.
9057 * doc/sourcebuild.texi: Likewise.
9058 * doc/tm.texi: Likewise.
9059 * doc/tree-ssa.texi: Likewise.
9061 2008-02-17 Richard Guenther <rguenther@suse.de>
9064 * tree-complex.c (init_parameter_lattice_values): Handle parameters
9065 without default definition.
9067 2008-02-17 Richard Guenther <rguenther@suse.de>
9069 PR tree-optimization/35231
9070 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
9073 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
9076 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
9077 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9078 libgcc_cmp_return mode.
9080 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9083 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
9085 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
9087 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
9090 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9092 * doc/c-tree.texi: Use `@.' where appropriate.
9093 * doc/extend.texi: Likewise.
9094 * doc/install.texi: Likewise.
9095 * doc/invoke.texi: Likewise.
9096 * doc/loop.texi: Likewise.
9097 * doc/makefile.texi: Likewise.
9098 * doc/md.texi: Likewise.
9099 * doc/passes.texi: Likewise.
9100 * doc/standards.texi: Likewise.
9101 * doc/tm.texi: Likewise.
9103 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9106 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
9108 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
9109 rather than in entry_bb.
9111 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
9113 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9114 libgcc_cmp_return mode.
9116 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9119 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
9120 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
9122 2008-02-15 Richard Guenther <rguenther@suse.de>
9123 Zdenek Dvorak <ook@ucw.cz>
9125 PR tree-optimization/35164
9126 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
9127 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
9128 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
9129 Only propagate addresses which do not have abnormal SSA_NAMEs
9132 2008-02-15 Joseph Myers <joseph@codesourcery.com>
9135 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
9137 2008-02-15 Jan Hubicka <jh@suse.cz>
9140 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
9142 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
9145 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
9146 when calculating alignment_pad.
9148 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
9150 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
9151 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
9152 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
9153 and STACK_BOUNDARY define.
9155 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
9157 PR preprocessor/35061
9158 * c-pragma.c (handle_pragma_pop_macro): Check that
9159 pushed_macro_table has been allocated.
9161 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
9164 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
9165 (force_gimple_operand): Likewise.
9166 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
9167 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
9168 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
9169 (find_interesting_uses_address): Check addressability and alignment
9170 of the base expression only after substituting bases of IVs into it.
9172 2008-02-14 Michael Matz <matz@suse.de>
9175 * function.c (instantiate_virtual_regs_in_insn): Reload address
9176 before falling back to reloading the whole operand.
9178 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
9180 * config/s390/s390.c (s390_mainpool_start): Emit the pool
9181 before the first section switch note.
9183 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9185 * doc/bugreport.texi: Update copyright years.
9186 * doc/c-tree.texi: Likewise.
9187 * doc/cfg.texi: Likewise.
9188 * doc/cpp.texi: Likewise.
9189 * doc/cppinternals.texi: Likewise.
9190 * doc/fragments.texi: Likewise.
9191 * doc/frontends.texi: Likewise.
9192 * doc/gcc.texi: Likewise.
9193 * doc/gty.texi: Likewise.
9194 * doc/hostconfig.texi: Likewise.
9195 * doc/implement-c.texi: Likewise.
9196 * doc/libgcc.texi: Likewise.
9197 * doc/loop.texi: Likewise.
9198 * doc/makefile.texi: Likewise.
9199 * doc/options.texi: Likewise.
9200 * doc/passes.texi: Likewise.
9201 * doc/rtl.texi: Likewise.
9202 * doc/sourcebuild.texi: Likewise.
9203 * doc/standards.texi: Likewise.
9204 * doc/tree-ssa.texi: Likewise.
9205 * doc/trouble.texi: Likewise.
9207 * doc/extend.texi: Use @: or add comma where appropriate.
9208 * doc/invoke.texi: Likewise.
9209 * doc/tm.texi: Likewise.
9211 2008-02-14 Alan Modra <amodra@bigpond.net.au>
9214 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
9217 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
9219 * doc/md.texi (clz, ctz): Add reference.
9220 * doc/rtl.texi (clz, ctz): Likewise.
9222 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9225 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
9228 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
9230 * config/s390/s390.c (struct constant_pool): New field
9231 emit_pool_after added.
9232 (s390_mainpool_start): Set the emit_pool_after flag according
9233 to the section switch notes.
9234 (s390_mainpool_finish): Consider emit_pool_after when emitting
9235 the literal pool at the end of the function.
9236 (s390_chunkify_start): Force literal pool splits at section
9239 2008-02-13 Michael Matz <matz@suse.de>
9242 * var-tracking.c (clobber_variable_part): Correctly traverse the
9245 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9248 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
9249 Add -fdump-ipa-inline.
9250 * tree-dump.c (dump_files): Remove tree-inlined dump.
9251 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
9253 2008-02-12 Richard Guenther <rguenther@suse.de>
9255 PR tree-optimization/35171
9256 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
9259 2008-02-12 Richard Guenther <rguenther@suse.de>
9262 * fold-const.c (fold_widened_comparison): Use get_unwidened in
9263 value-preserving mode. Disallow final truncation.
9265 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
9268 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
9269 code from here to...
9270 (force_gimple_operand): ...here.
9272 2008-02-12 Jakub Jelinek <jakub@redhat.com>
9275 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
9276 non-compatible pointers.
9277 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
9278 different FIELD_DECLs, try harder by comparing field offsets, sizes
9282 * function.c (match_asm_constraints_1): Don't replace the same input
9285 2008-02-12 Anatoly Sokolov <aesok@post.ru>
9287 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
9288 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
9289 (expand_epilogue): Restore RAMPZ register.
9290 * config/avr/avr.md (RAMPZ_ADDR): New constant.
9292 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
9294 * config/i386/cygwin.asm: (__alloca): Correct calling
9295 convention and alignment.
9296 (__chkstk): Force 8 byte stack alignment.
9298 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
9299 Richard Guenther <rguenther@suse.de>
9301 PR tree-optimization/33992
9302 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
9303 the zero we compare against.
9305 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
9308 * gthr-win32.h (__gthread_mutex_destroy_function): New function
9309 to CloseHandle after unlocking to prevent accumulation of handle
9312 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9315 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
9316 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
9317 and update LABEL_NUSES during and after reload.
9319 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
9322 * combine.c (simplify_if_then_else): Make sure the comparison is
9323 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
9325 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
9328 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
9329 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
9330 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
9331 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
9332 * tree.h (get_type_static_bounds): Likewise.
9334 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9336 * doc/invoke.texi (Option Summary, C++ Dialect Options)
9337 (Objective-C and Objective-C++ Dialect Options, Warning Options):
9338 Make -Wfoo language annotations match what the compiler outputs.
9340 2008-02-08 Sa Liu <saliu@de.ibm.com>
9342 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
9343 intrinsics spu_convts, spu_convtu, spu_convtf.
9345 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
9347 * doc/extend.texi (Function Attributes) <noinline>: Mention
9348 asm ("") as method to keep calls.
9350 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9353 * doc/options.texi (Options): Replace references to opts.sh with
9355 * opts-common.c: Likewise.
9356 * optc-gen.awk: Likewise.
9358 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
9360 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
9362 2008-02-07 Richard Henderson <rth@redhat.com>
9365 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
9366 EXPR_LIST for the REG_EQUAL instead of a comparison with a
9369 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
9371 PR tree-optimization/35085
9372 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
9373 for operand entry oe2 in addition to operand entry oe3 in order to
9374 expose more opportunities for vectorizer sum reduction.
9376 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9379 * Makefile.in (LIBS): Remove $(GMPLIBS).
9380 (cc1-dummy, cc1): Add $(GMPLIBS).
9382 2008-02-06 Jan Hubicka <jh@suse.cz>
9385 * i386.md (moddf_integer): Do not produce partial memory stalls for
9386 targets where it hurts.
9388 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
9391 * optabs.c (expand_float): Do not check for decimal modes when
9392 expanding unsigned integer through signed conversion.
9394 2008-02-06 Nick Clifton <nickc@redhat.com>
9396 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
9397 inside the clobber with a match_operand and duplicated operand
9398 number in the constraint.
9399 (ineqbranchsi): Delete redundant comment.
9401 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
9403 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
9404 builtin_define ("__USE_INIT_FINI__").
9405 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
9407 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
9409 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9411 PR documentation/30330
9412 * doc/invoke.texi (C++ Dialect Options)
9413 (Objective-C and Objective-C++ Dialect Options, Warning Options):
9414 For each warning option -Wfoo that allows -Wno-foo, ensure both
9415 -Wfoo and -Wno-foo are listed in the option index. Fix index
9416 entry of -Wswitch-default, index -Wnormalized= including the
9417 `=', and -Wlarger-than-@var{len} including @var{len}.
9419 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
9421 * config/i386/i386.md (floatunssisf2): Use
9422 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
9423 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
9424 Macroize expander using MODEF mode iterator.
9426 2008-02-05 Diego Novillo <dnovillo@google.com>
9428 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
9431 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
9433 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9436 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
9438 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
9441 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
9442 to indicate if a message should be generated.
9443 (init_cumulative_args): Updated.
9444 (function_value_32): Likewise.
9446 2008-02-05 Joseph Myers <joseph@codesourcery.com>
9448 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
9450 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
9453 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
9454 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
9456 2008-02-04 Diego Novillo <dnovillo@google.com>
9458 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
9461 * tree-vrp.c (vrp_evaluate_conditional): With
9462 -Wtype-limits, emit a warning when comparing against a
9463 constant outside the natural range of OP0's type.
9465 2008-02-04 Richard Guenther <rguenther@suse.de>
9468 * expr.c (count_type_elements): Give for unions instead of
9471 2008-02-04 Richard Guenther <rguenther@suse.de>
9474 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
9475 to TYPE_DOMAINs base type instead of using bitsizetype here.
9477 2008-02-03 Jason Merrill <jason@redhat.com>
9479 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
9481 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9484 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
9485 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
9486 (RS/6000 and PowerPC Options): Fix typos and markup.
9487 * doc/passes.texi (Tree-SSA passes): Likewise.
9489 2008-02-02 Michael Matz <matz@suse.de>
9492 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
9493 from record_last_reg_set_info.
9494 (record_last_reg_set_info): Take an RTX argument, iterate over all
9495 constituent hardregs.
9496 (record_last_set_info, record_opr_changes): Change calls to
9497 new signature or to record_last_reg_set_info_regno.
9499 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
9501 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
9503 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
9505 PR rtl-optimization/34773
9506 * reg-notes.def (EQUAL): Mention significance of combination of
9507 REG_EQUAL and REG_RETVAL.
9508 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
9509 insn that has a REG_RETVAL.
9511 2008-02-01 Roger Sayle <roger@eyesopen.com>
9514 * configure.ac (--enable-fixed-point): Disable unless explicitly
9516 * configure: Regenerate.
9518 2008-02-01 Richard Guenther <rguenther@suse.de>
9521 * invoke.texi (-finline-limit): Remove no longer true parts
9522 of the documentation. Note that there is no default value.
9524 2008-02-01 Andrew Pinski <pinskia@gmail.com>
9525 Mark Mitchell <mark@codesourcery.com>
9526 Ben Elliston <bje@au.ibm.com>
9529 * doc/extend.texi (Other Builtins): Document.
9531 2008-01-31 Tom Browder <tom.browder@gmail.com>
9533 * doc/c-tree.texi (Types): Fix grammar.
9534 (Expression trees): Ditto.
9535 * doc/passes.texi (Tree-SSA passes): Ditto.
9537 * doc/configterms.texi (Configure Terms): Fix typo.
9538 * doc/cpp.texi (Common Predefined Macros): Ditto.
9539 * doc/md.texi (Machine Constraints): Ditto.
9541 * doc/makefile.texi (Makefile): Add comma.
9543 2008-01-31 Tom Browder <tom.browder@gmail.com>
9544 Gerald Pfeifer <gerald@pfeifer.com>
9546 * doc/sourcebuild.texi (Front End): Remove references to CVS
9547 and CVSROOT/modules.
9548 (Texinfo Manuals): Replace reference to CVS by one to SVN.
9549 (Back End): Remove reference to CVS.
9551 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
9554 * config/mips/mips.c (gen_load_const_gp): New function, taking a
9556 (mips16_gp_pseudo_reg): ...here.
9557 * config/mips/mips.md (load_const_gp): Replace with...
9558 (load_const_gp_<mode>): ...this :P-based insn.
9560 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9562 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
9563 options. Minor fixes.
9564 (-std): Move reference to standards closer to where language
9565 standards are first mentioned.
9567 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
9569 PR rtl-optimization/34995
9570 * reload.c (alternative_allows_const_pool_ref): Take an rtx
9571 parameter and return a bool. If the rtx parameter is nonnull,
9572 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
9573 (find_reloads): Update call accordingly. Pass the new operand
9574 if it needed no address reloads, otherwise pass null.
9576 2008-01-30 Richard Henderson <rth@redhat.com>
9579 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
9580 for unbounded arrays.
9582 2008-01-30 Silvius Rus <rus@google.com>
9584 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
9586 2008-01-30 Jan Hubicka <jh@suse.cz>
9589 * i386.c (init_cumulative_args): Use real function declaration when
9592 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
9594 PR rtl-optimization/34998
9595 * global.c (build_insn_chain): Treat non-subreg_lowpart
9596 SUBREGs of pseudos as clobbering all the words covered by the
9597 SUBREG, not just all the bytes.
9598 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
9599 original df_ref rather than an extract parameter.
9600 (global_conflicts): Update call accordingly.
9602 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
9604 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
9605 the overflow check to make it easier to read.
9606 (__fixtfdi): Change the type of the ll member in union
9607 long_double to UDItype_x.
9609 2008-01-30 Jakub Jelinek <jakub@redhat.com>
9612 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
9613 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
9614 * tree-inline.c (fold_marked_statements): Call
9615 cgraph_update_edges_for_call_stmt if folding a call statement.
9616 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
9617 debug_generic_stmt calls, reset it back afterwards.
9620 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
9622 * c-typeck.c (build_external_ref): Don't pedwarn about
9623 static vars in current function's scope.
9625 2008-01-29 Joseph Myers <joseph@codesourcery.com>
9627 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
9629 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
9632 * ipa-struct-reorg.c: Fix spelling.
9633 * params.def: Ditto.
9635 2008-01-29 Richard Guenther <rguenther@suse.de>
9638 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
9640 * tree-inline.c (remap_type): Increment remapping_type_depth
9641 around remapping types.
9642 (copy_body_r): Only add referenced variables if they are referenced
9643 from code, not types.
9645 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
9656 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
9657 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
9659 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
9662 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
9663 pointer for tiny stack.
9665 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
9667 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
9669 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
9671 * config/vx-common.h: Fix typo in comment.
9673 2008-01-28 Ian Lance Taylor <iant@google.com>
9677 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9678 coalesce pointers if they have different DECL_NO_TBAA_P values.
9679 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
9680 between variables with different DECL_NO_TBAA_P values.
9682 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
9685 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
9686 are not legitimate small data references on SPE targets.
9688 2008-01-28 David Daney <ddaney@avtrex.com>
9690 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
9692 2008-01-28 David Daney <ddaney@avtrex.com>
9694 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
9696 2008-01-27 Joseph Myers <joseph@codesourcery.com>
9698 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
9699 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
9700 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
9701 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
9702 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9703 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
9704 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
9705 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
9707 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
9709 * basic-block.h (condjump_equiv_p): Fix comment.
9711 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
9713 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
9714 print_generic_stmt_indented): Fix comment.
9716 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
9718 * configure.ac (__stack_chk_fail): Add detecion for availability
9719 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
9720 * configure: Regenerate.
9722 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
9725 * final.c (output_addr_const): Handle TRUNCATE.
9727 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
9730 * tree-ssa-loop-ivopts.c (comp_cost): New type.
9731 (zero_cost, infinite_cost): New constants.
9732 (struct cost_pair): Change type of cost to comp_cost.
9733 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
9734 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
9736 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
9737 split_address_cost, ptr_difference_cost, difference_cost,
9738 get_computation_cost_at, get_computation_cost,
9739 determine_use_iv_cost_generic, determine_use_iv_cost_address,
9740 determine_use_iv_cost_condition, determine_use_iv_costs,
9741 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
9742 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
9743 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
9744 Change type of cost to comp_cost.
9745 (determine_iv_cost): Increase cost of non-original ivs, instead
9746 of decreasing the cost of original ones.
9747 (get_address_cost): Indicate the complexity of the addressing mode
9749 (try_add_cand_for): Prefer using ivs not specific to some object.
9750 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
9752 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
9753 Janis Johnson <janis187@us.ibm.com>
9756 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
9757 (TARGET_INSTANTIATE_DECLS): Likewise.
9758 * target.h (expand_to_rtl_hook): New target hook.
9759 (instantiate_decls): Likewise.
9760 * function.c (instantiate_decl): Make non-static. Rename to...
9761 (instantiate_decl_rtl): ... this.
9762 (instantiate_expr): Use instantiate_decl_rtl.
9763 (instantiate_decls_1): Likewise.
9764 (instantiate_decls): Likewise.
9765 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
9766 * function.h (instantiate_decl_rtl): Add prototype.
9767 * cfgexpand.c (target.h): New include.
9768 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
9769 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
9770 (TARGET_INSTANTIATE_DECLS): Likewise.
9771 (TARGET_INITIALIZER): New target hooks added.
9772 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
9774 * config/rs6000/rs6000.c (tree-flow.h): New include.
9775 (machine_function): Add sdmode_stack_slot field.
9776 (rs6000_alloc_sdmode_stack_slot): New function.
9777 (rs6000_instantiate_decls): Likewise.
9778 (rs6000_secondary_memory_needed_rtx): Likewise.
9779 (rs6000_check_sdmode): Likewise.
9780 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
9781 (TARGET_INSTANTIATE_DECLS): Likewise.
9782 (rs6000_hard_regno_mode_ok): Allow SDmode.
9783 (num_insns_constant): Likewise. Handle _Decimal32 constants.
9784 (rs6000_emit_move): Handle SDmode.
9785 (function_arg_advance): Likewise.
9786 (function_arg): Likewise.
9787 (rs6000_gimplify_va_arg): Likewise. Add special handling of
9788 SDmode var args for 32-bit compiles.
9789 (rs6000_secondary_reload_class): Handle SDmode.
9790 (rs6000_output_function_epilogue): Likewise.
9791 (rs6000_function_value): Simplify if statement.
9792 (rs6000_libcall_value): Likewise.
9793 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
9794 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
9795 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
9796 (movsd_hardfloat): New define_insn.
9797 (movsd_softfloat): Likewise.
9798 (movsd_store): Likewise.
9799 (movsd_load): Likewise.
9800 (extendsddd2): Likewise.
9801 (extendsdtd2): Likewise.
9802 (truncddsd2): Likewise.
9803 (movdd_hardfloat64): Fixup comment.
9804 (UNSPEC_MOVSD_LOAD): New constant.
9805 (UNSPEC_MOVSD_STORE): Likewise.
9807 2008-01-26 Jakub Jelinek <jakub@redhat.com>
9810 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
9812 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
9813 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
9814 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
9817 2008-01-26 David Edelsohn <edelsohn@gnu.org>
9820 * config.gcc: Separate AIX 5.3 from AIX 6.1.
9821 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9822 __LONGDOUBLE128 too.
9823 * config/rs6000/aix61.h: New file.
9825 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
9827 PR rtl-optimization/34959
9828 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
9829 popcount and parity rtxes the same mode as their operand.
9830 Truncate or extend the result to the return value's mode
9833 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
9836 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
9837 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
9838 to GOT_VERSION_REGNUM.
9839 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
9840 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
9841 * config/mips/mips.c (mips_emit_call_insn): New function.
9842 (mips_call_tls_get_addr): Call mips_expand_call directly.
9843 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
9845 (mips16_build_call_stub): Likewise. Return the call insn or null.
9846 (mips_expand_call): Update the call to mips16_build_call_stub
9847 accordingly and a remove redundant condition. Assert that MIPS16
9848 stubs do not use lazy binding. Use mips_emit_call_insn and return
9850 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
9852 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
9853 (mips_avoid_hazard): Remove hazard_set handling.
9854 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
9855 (UNSPEC_RESTORE_GP): ...this.
9856 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
9857 (FAKE_CALL_REGNO): Rename to...
9858 (GOT_VERSION_REGNUM): ...this.
9859 (type): Add "ghost" value. Add an associated insn reservation.
9860 (hazard_set): Remove.
9861 (exception_receiver): Rename to...
9862 (restore_gp): ...this and update the unspec identifier accordingly.
9863 (exception_receiver, nonlocal_got_receiver): New expanders.
9864 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
9865 FAKE_CALL_REGNO. Remove hazard_set attribute.
9866 (set_got_version, update_got_version): New patterns.
9868 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
9871 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
9873 2008-01-25 Joseph Myers <joseph@codesourcery.com>
9876 * doc/install.texi2html: Generate gcc-vers.texi.
9878 2008-01-25 DJ Delorie <dj@redhat.com>
9880 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9882 2008-01-25 Joseph Myers <joseph@codesourcery.com>
9884 * config/c4x: Remove directory.
9885 * config.gcc (crx-*, mt-*): Mark obsolete.
9886 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
9887 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
9888 sh-*-rtemscoff*): Remove cases.
9889 * defaults.h (C4X_FLOAT_FORMAT): Remove.
9890 * real.c (encode_c4x_single, decode_c4x_single,
9891 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
9892 c4x_extended_format): Remove.
9893 * real.h (c4x_single_format, c4x_extended_format): Remove.
9894 * doc/extend.texi (interrupt, naked): Remove mention of attributes
9896 (Pragmas): Remove comment about c4x pragmas.
9897 * doc/install.texi (c4x): Remove target-specific instructions.
9898 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
9899 * doc/md.texi (Machine Constraints): Remove C4x documentation.
9900 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
9901 refer to C4x source files as examples.
9902 (C4X_FLOAT_FORMAT): Remove documentation.
9904 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
9906 * config/bfin/bfin.c (override_options): Reorder tests so that
9907 flag_pic gets enabled for -msep-data.
9909 2008-01-25 Richard Guenther <rguenther@suse.de>
9912 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
9913 to its bitfield precision if required.
9915 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9918 * tree-nested.c (walk_omp_for): New function.
9919 (convert_nonlocal_reference, convert_local_reference): Call
9920 walk_omp_for on OMP_FOR.
9921 (convert_call_expr): Call walk_body on OMP_FOR's
9922 OMP_FOR_PRE_INIT_BODY.
9924 2008-01-25 Richard Guenther <rguenther@suse.de>
9926 PR tree-optimization/34966
9927 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
9928 default defs and PHI_NODEs we have to insert after the
9931 2008-01-24 Nick Clifton <nickc@redhat.com>
9933 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
9934 Provide a default definition.
9935 (LIBGCC2_UNITS_PER_WORD): Likewise.
9937 * config/stormy16/stormy16.c: Include df.h for the prototype
9938 for df_regs_ever_live_p.
9939 (xstormy16_expand_builtin_va_start): Convert the stack offset
9940 into a component_ref and then use POINTER_PLUS_EXPR to add it
9941 to the incoming_virtual_args_rtx.
9942 (xstormy16_gimplify_va_arg_expr): Rename to
9943 xstormy16_gimplify_va_arg_expr.
9944 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
9945 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
9946 xstormy16_gimplify_va_arg_expr.
9947 Fix up some formatting issues.
9949 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
9950 Move to predicates.md.
9951 (xs_hi_general_operand): Likewise.
9952 (xs_hi_nonmemory_operand): Likewise.
9953 * config/stormy16/predicates.md:
9954 (xstormy16_carry_plus_operand): New predicate.
9955 (xs_hi_general_operand): New predicate.
9956 (xs_hi_nonmemory_operand): New predicate.
9957 * config/stormy16/stormy16-protos.h:
9958 (xstormy16_carry_plus_operand): Delete prototype.
9959 (xs_hi_general_operand): Likewise.
9960 (xs_hi_nonmemory_operand): Likewise.
9962 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
9963 modifiers as they are no longer needed and they can trigger
9964 reload spill failures.
9966 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
9967 with a match_operand in order to help reload.
9969 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
9970 constraint with 'e' for the 8th alternative as this version of
9971 the mov.w instruction only accepts the lower 8 registers.
9973 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
9976 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
9977 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
9980 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9983 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
9985 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
9987 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
9989 (remove_structure): Update allocations list before removing structure.
9991 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
9993 * ipa-struct-reorg.c (is_safe_cond_expr,
9994 create_new_stmts_for_cond_expr): Use integer_zerop function,
9995 that recognize not only zero-pointer, but zero-integer too.
9997 2008-01-25 Ben Elliston <bje@au.ibm.com>
10000 * fixproto: Escape "." in sed expression that strips leading "./".
10002 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
10005 * gcc.c (SWITCH_OK): Removed.
10006 (SWITCH_LIVE): Changed to bit.
10007 (SWITCH_FALSE): Likewise.
10008 (SWITCH_IGNORE): Likewise.
10009 (switchstr): Change live_cond to unsigned int.
10010 (process_command): Replace SWITCH_OK with 0.
10011 (do_self_spec): Likewise.
10012 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
10013 (give_switch): Likewise.
10014 (used_arg): Likewise.
10015 (do_spec_1): Set the SWITCH_IGNORE bit.
10016 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
10017 bits. Set the SWITCH_LIVE bit.
10019 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
10021 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
10023 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
10025 PR tree-optimization/34472
10026 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
10027 parameter to a "bool *" and set *DATA to false if there is
10028 an unsafe access. Do not delete the structure here.
10029 (check_cond_exprs): Delete it here instead.
10030 (check_cond_exprs, exclude_cold_structs): Do not increase
10031 I when removing a structure.
10033 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
10036 * config/i386/i386.c (ix86_expand_vector_init): Consider only
10037 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
10039 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
10041 PR middle-end/34934
10042 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
10043 a fixed vector for stack.
10045 2008-01-24 Ben Elliston <bje@au.ibm.com>
10048 * doc/gcc.texi (Software development): Add a direntry for g++.
10050 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
10052 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
10053 stale and straggling -fforce-addr comments above.
10055 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
10057 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
10058 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
10060 2008-01-23 Michael Matz <matz@suse.de>
10063 * dwarf2out.c (force_type_die): Use modified_type_die instead of
10066 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
10068 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
10069 malloc result type.
10071 2008-01-23 Anatoly Sokolov <aesok@post.ru>
10073 * config/avr/avr.c (avr_current_arch): New variable.
10074 (avr_arch_types): Add 'avr31' and 'avr51' entries.
10075 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
10076 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
10077 (avr_override_options): Init 'avr_current_arch'.
10078 (base_arch_s): Move from here...
10079 * config/avr/avr.h (base_arch_s): ... here. Add new members
10080 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
10081 'mega' to 'have_jmp_call'.
10082 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
10083 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
10085 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
10087 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10088 MULTILIB_MATCHES): (Ditto.).
10090 2008-01-23 Richard Guenther <rguenther@suse.de>
10092 PR middle-end/31529
10093 * cgraphunit.c (cgraph_reset_node): Always mark the node
10094 not reachable if it is not queued already.
10096 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
10098 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
10099 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
10100 (cputype_selected): New static variable.
10101 (bfin_handle_option): Set it if -mcpu is used.
10102 (override_option): Select default set of workarounds if no cpu type
10103 selected on the command line.
10104 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
10106 From Michael Frysinger <michael.frysinger@analog.com>
10107 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
10108 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
10110 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
10111 for bf547, bf523, bf524, and bf526.
10112 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
10114 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10115 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
10116 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
10117 __ADSPBF547__ and __ADSPBF54x__ for bf547.
10118 * doc/invoke.texi (Blackfin Options): Document that
10119 -mcpu now accept bf547, bf523, bf524, and bf526.
10121 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
10123 PR rtl-optimization/34628
10124 * combine.c (try_combine): Stop and undo after the first combination
10125 if an autoincrement side-effect on the first insn has effectively
10128 2008-01-22 David Edelsohn <edelsohn@gnu.org>
10131 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
10132 Offset addresses are not valid for Altivec or paired float modes.
10134 2008-01-22 Jakub Jelinek <jakub@redhat.com>
10137 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
10138 if DECL_INITIAL (decl) is error_mark_node.
10141 * c-common.c (handle_vector_size_attribute): Only allow
10142 integral, scalar float and fixed point types. Handle OFFSET_TYPE
10143 the same way as pointer, array etc. types.
10144 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
10147 * tree.c (build_type_attribute_qual_variant): Call
10148 build_qualified_type if attributes are equal, but quals are not.
10150 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10153 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
10154 * flags.h (warn_strict_aliasing): Remove.
10155 (warn_strict_overflow): Remove.
10156 * opts.c (warn_strict_aliasing): Remove.
10157 (warn_strict_overflow): Remove.
10158 * c-opts.c (c_common_handle_option): -Wall only sets
10159 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
10160 (c_common_post_options): Give default values to -Wstrict-aliasing
10161 and -Wstrict-overflow if they are uninitialized.
10162 * common.opt (Wstrict-aliasing): Specify Var and Init.
10163 (Wstrict-overflow): Likewise.
10165 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
10167 PR rtl-optimization/26854
10168 PR rtl-optimization/34400
10169 PR rtl-optimization/34884
10170 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
10172 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
10173 (df_rd_bb_info.expanded_lr_out): Deleted
10174 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
10175 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
10176 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10177 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10178 Removed code to allocate, initialize or free expanded_lr_out.
10179 (df_rd_bb_local_compute_process_def): Restructured to make more
10181 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
10182 sets if the sets are being trimmed.
10184 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
10187 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
10188 (as_vers): Likewise.
10189 * configure: Regenerated.
10191 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10193 PR middle-end/33092
10194 * tree-pass.h (pass_build_alias): New pass.
10195 * tree-ssa-alias.c (gate_build_alias): New.
10196 (pass_build_alias): New.
10197 * passes.c (init_optimization_passes): Add pass_build_alias after
10198 pass_create_structure_vars.
10200 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
10202 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
10203 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
10204 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
10205 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
10206 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
10207 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
10208 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
10209 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
10210 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
10211 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
10212 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
10213 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
10214 * config/s390/s390.md (FP_ALL): New mode iterator.
10215 (_d): New mode attribute.
10216 ("*signbit<mode>2>"): Changed mode of first operand.
10217 ("isinf<mode>2"): Changed mode of first operand.
10218 ("*TDC_insn"): Adaptation for DFP modes.
10220 2008-01-22 Ben Elliston <bje@au.ibm.com>
10222 * tree.c (check_qualified_type): Improve function description.
10224 2008-01-21 Jason Merrill <jason@redhat.com>
10227 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
10228 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
10231 2008-01-21 DJ Delorie <dj@redhat.com>
10233 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
10236 2008-01-21 Richard Guenther <rguenther@suse.de>
10238 PR middle-end/34856
10239 * tree-cfg.c (verify_expr): Allow all invariant expressions
10240 instead of just constant class ones as reference argument.
10241 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
10242 like any other constant.
10243 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10245 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
10247 * regmove.c (fixup_match_1): Update call crossed frequencies.
10249 2008-01-21 Richard Guenther <rguenther@suse.de>
10252 * tree-inline.c (setup_one_parameter): Deal with mismatched
10253 types using a VIEW_CONVERT_EXPR.
10255 2008-01-21 Alon Dayan <alond@il.ibm.com>
10256 Olga Golovanevsky <olga@il.ibm.com>
10258 PR tree-optimization/34701
10259 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
10260 when the structure size is not a power of 2.
10262 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
10264 * doc/install.texi: Add doc for --enable-checking=df.
10266 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
10268 PR rtl-optimization/34808
10269 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
10271 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
10273 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
10276 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
10278 PR rtl-optimization/26854
10279 PR rtl-optimization/34400
10280 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
10282 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
10283 (df_rd_bb_info.expanded_lr_out): New.
10284 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
10285 * loop_iv.c (iv_analysis_loop_init): Ditto.
10286 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10287 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10288 Added code to allocate, initialize or free expanded_lr_out.
10289 (df_rd_bb_local_compute_process_def): Restructured to make
10290 more understandable.
10291 (df_rd_confluence_n): Add code to do nothing with fake edges and
10292 code to no apply invalidate_by_call sets if the sets are being trimmed.
10293 (df_lr_local_finalize): Renamed to df_lr_finalize.
10294 (df_live_local_finalize): Renamed to df_live_finalize.
10296 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
10299 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
10300 deciding whether to use reciprocal instructions.
10302 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
10304 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
10305 dwarf2out_note_section_used if cold_text_section is NULL.
10307 2008-01-19 Jakub Jelinek <jakub@redhat.com>
10309 PR gcov-profile/34610
10310 * tree-cfg.c (make_edges): Mark both outgoing edges from
10311 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
10312 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
10313 from OMP_FOR and OMP_CONTINUE outgoing edges.
10315 * tree-profile.c (tree_profiling): Return early if
10316 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
10318 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
10319 from cfun to child_cfun.
10320 * function.h (struct function): Add after_tree_profile bit.
10322 2008-01-19 Anatoly Sokolov <aesok@post.ru>
10324 * config/avr/avr.S (_exit): Disable interrupt.
10326 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
10327 Steven Bosscher <stevenb.gcc@gmail.com>
10329 PR rtl-optimization/26854
10330 PR rtl-optimization/34400
10331 * df-problems.c (df_live_scratch): New scratch bitmap.
10332 (df_live_alloc): Allocate df_live_scratch when doing df_live.
10333 (df_live_reset): Clear the proper bitmaps.
10334 (df_live_bb_local_compute): Only process the artificial defs once
10335 since the order is not important.
10336 (df_live_init): Init the df_live sets only with the variables
10337 found live by df_lr.
10338 (df_live_transfer_function): Use the df_lr sets to prune the
10339 df_live sets as they are being computed.
10340 (df_live_free): Free df_live_scratch.
10342 2008-01-18 Ian Lance Taylor <iant@google.com>
10344 * common.opt: Add fmerge-debug-strings.
10345 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
10346 flag_merge_debug_strings rather than flag_merge_constants.
10347 * doc/invoke.texi (Option Summary): Mention
10348 -fmerge-debug-strings.
10349 (Debugging Options): Document -fmerge-debug-strings.
10351 2008-01-18 Ian Lance Taylor <iant@google.com>
10354 * tree.h (DECL_IS_OPERATOR_NEW): Define.
10355 (struct tree_function_decl): Add new field operator_new_flag.
10356 * tree-inline.c (expand_call_inline): When inlining a call to
10357 operator new, force the return value to go into a variable, and
10358 set DECL_NO_TBAA_P on that variable.
10359 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
10361 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
10364 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
10365 DWARF2_DEBUGGING_INFO.
10366 (dwarf2out_note_section_used): Ditto. Add prototype.
10367 (have_multiple_function_sections, text_section_used,
10368 cold_text_section_used, *cold_text_sections): Move declarations
10371 2008-01-17 Bob Wilson <bob.wilson@acm.org>
10373 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
10374 field and add signal_ra.
10375 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
10376 assignments to frame state pc. Move end of stack check after
10377 MD_FALLBACK_FRAME_STATE_FOR.
10378 (uw_update_context_1): Use frame state signal_regs if set, instead
10379 of checking signal_frame flag.
10380 (uw_update_context): Use frame state signal_ra if set.
10381 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
10382 * config/xtensa/linux-unwind.h: New file.
10384 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
10386 * modulo-sched.c (get_sched_window): Fix comment typo.
10388 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
10390 PR tree-optimization/34648
10391 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
10393 2008-01-17 Anatoly Sokolov <aesok@post.ru>
10395 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
10396 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
10398 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
10400 PR rtl-optimization/34400
10401 * df-core.c (df_worklist_dataflow_overeager,
10402 df_worklist_dataflow_doublequeue): New functions.
10403 (df_worklist_dataflow): Two different worklist solvers.
10404 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
10407 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
10410 * doc/invoke.texi: Document the dependence on pthread for fopenmp
10411 and ftree-parallelize-loops.
10413 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
10415 PR rtl-optimization/34826
10416 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
10418 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
10420 * global.c (find_reg): Mark the eh regs as used if necessary.
10421 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
10422 * ra.h (struct allocno): no_eh_reg field added. Changed
10423 no_stack_reg type to bitfield.
10425 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
10427 * tree.c (substitute_in_expr): Add missing 'break'.
10429 2008-01-17 Richard Guenther <rguenther@suse.de>
10431 PR tree-optimization/34825
10432 * tree-ssa-math-opts.c (is_division_by): Do not recognize
10433 x / x as division to handle.
10435 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10437 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
10438 "-pthread" is specified.
10439 * pa-hpux11.h (LIB_SPEC): Likewise.
10441 2008-01-16 Janis Johnson <janis187@us.ibm.com>
10442 Peter Bergner <bergner@vnet.ibm.com>
10444 PR rtl-optimization/33796
10445 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
10447 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10449 PR libgfortran/34699
10450 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
10452 * pa-hpux10.h (LINK_SPEC): Likewise.
10453 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
10455 2008-01-16 Richard Guenther <rguenther@suse.de>
10457 PR middle-end/32628
10458 * fold-const.c (fold_convert_const_int_from_int): Do not
10459 set overflow if that occured only because of a sign extension
10460 change when converting from/to a sizetype with the same
10461 precision and signedness.
10463 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
10466 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
10467 location address to the correct place. Update copyright year.
10469 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
10471 * lambda-code.c (lambda_transform_legal_p): Handle the case of
10472 no dependences in the dependence_relations vector.
10474 2008-01-16 Jan Hubicka <jh@suse.cz>
10476 PR rtl-optimization/31396
10477 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
10478 * cfg.c (dump_reg_info): Print it.
10479 * regs.h (struct reg_info_t): add freq_calls_crossed.
10480 (REG_FREQ_CALLS_CROSSED): New macro.
10481 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
10482 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
10483 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
10484 regmove_optimize): Update call crossed frequencies.
10485 * local-alloc.c (struct qty): Add freq_calls_crossed.
10486 (alloc_qty): Copute freq_calls_crossed.
10487 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
10488 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
10489 * ra.h (struct allocno): Add freq_calls_crossed.
10491 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
10493 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
10494 libgomp when compiling with ftree-parallelize-loops.
10495 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
10497 2008-01-16 Richard Guenther <rguenther@suse.de>
10499 PR tree-optimization/34769
10500 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
10501 * tree.c (int_cst_value): Instead make this function more
10502 permissive in what it accepts as valid input. Document this
10503 function always sign-extends the value.
10505 2008-01-16 Jakub Jelinek <jakub@redhat.com>
10506 Richard Guenther <rguenther@suse.de>
10509 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
10510 (gimple_fold_indirect_ref_rhs): ... this.
10511 (gimple_fold_indirect_ref): New function with foldings
10512 that preserve lvalueness.
10513 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
10514 * tree-flow.h (gimple_fold_indirect_ref): Declare.
10515 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
10516 to fold an INDIRECT_REF, fall back to the old use of
10517 fold_indirect_ref_1.
10519 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
10521 * tree-data-ref.c (subscript_dependence_tester_1): Call
10522 free_conflict_function.
10523 (compute_self_dependence): Same.
10525 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
10528 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
10529 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
10531 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
10532 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
10533 for DWARF2_UNWIND_INFO targets.
10535 2008-01-16 Richard Guenther <rguenther@suse.de>
10538 * c-typeck.c (common_pointer_type): Do not merge inconsistent
10539 type qualifiers for function types.
10541 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
10543 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
10544 loop_iterator li from previous commit.
10546 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
10548 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
10550 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
10552 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
10553 (parallelize_loops): Don't parallelize irreducible components.
10555 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10558 * c-opts (c_common_post_options): Do not enable CPP
10559 flag_pedantic_errors by default.
10561 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
10563 PR rtl-optimization/31944
10564 * cse.c (remove_pseudo_from_table): New function.
10565 (merge_equiv_classes): Use above function to remove pseudo-registers.
10566 (invalidate): Likewise.
10568 2008-01-13 Richard Guenther <rguenther@suse.de>
10570 PR middle-end/34601
10571 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
10572 instead of TYPE_MODE to deal with calls from expand_one_error_var.
10574 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
10576 * gcse.c (cprop_jump): Call validate_unshare_change instead of
10577 validate_change to unshare the source of the PC set.
10579 2008-01-12 Jan Hubicka <jh@suse.cz>
10581 PR middle-end/32135
10582 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
10583 references above array bounds. This might trigger bounds checks for
10584 pointers to arrays.
10586 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
10588 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
10589 new_replaceable_dependencies.
10591 2008-01-12 Doug Kwan <dougkwan@google.com>
10593 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
10594 instead of OPT_Wreturn_type in warning due to ignored return type
10596 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
10597 options included in -Wextra.
10598 * c.opt: New option -Wignored_qualifiers.
10599 * doc/invoke.texi (Warning Options, -Wextra): Add new option
10600 -Wignore_qualifiers.
10601 (-Wignored-qualifiers): Document.
10602 (-Wreturn-type): Remove description of functionality now handled
10603 by -Wignored-qualifiers.
10605 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
10608 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
10609 NOP_EXPR if it is between integral types with the same precision.
10611 2008-01-12 Jan Hubicka <jh@suse.cz>
10614 * invoke.texi (max-inline-recursive-depth): Fix default value.
10616 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
10618 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
10621 2008-01-11 Bob Wilson <bob.wilson@acm.org>
10623 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
10625 2008-01-11 James E. Wilson <wilson@specifix.com>
10628 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
10630 2008-01-11 Anatoly Sokolov <aesok@post.ru>
10632 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
10633 save/restore frame pointer register and don't use 'call-prologues'
10634 optimization in function with "OS_task" attribute.
10636 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
10638 PR middle-end/31309
10639 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
10640 when copying to memory.
10642 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
10644 PR rtl-optimization/30905
10645 * cfgcleanup.c: Include dce.h
10646 (crossjumps_occured): New global variable.
10647 (try_crossjump_bb): Exit loop after finding a fallthru edge.
10648 If something changed, set crossjumps_occured to true.
10649 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
10650 Don't add/remove fake edges to exit here...
10651 (cleanup_cfg): ...but do it here, when crossjumping.
10652 Run a fast DCE when successful crossjumps occured in the latest
10653 iteration of try_optimize_cfg.
10655 2008-01-11 Richard Guenther <rguenther@suse.de>
10657 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
10658 (struct vn_unary_op_s): Likewise.
10659 (vn_reference_insert): Free old reference on hash collision.
10661 2008-01-10 Raksit Ashok <raksit@google.com>
10663 PR rtl-optimization/27971
10664 * combine.c (find_split_point): Split PLUS expressions which are
10665 inside a MEM rtx, and whose first operand is complex.
10667 2008-01-10 DJ Delorie <dj@redhat.com>
10669 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
10670 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
10671 (m32c_hard_regno_ok): Call the underlying function.
10673 2008-01-10 Richard Guenther <rguenther@suse.de>
10675 PR middle-end/34683
10676 * tree-cfg.c (tree_merge_blocks): Do not go through the
10677 full-blown folding and stmt updating path if we just deal
10678 with virtual operands.
10679 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
10680 test for abnormal SSA_NAMEs.
10682 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
10684 PR middle-end/34641
10685 * reload.c (push_reload): Add assertions. All constants from
10686 reg_equiv_constant should have been used for replacing the respective
10688 (find_reloads_address): Invoke find_reloads_address_part for
10689 constant taken from the reg_equiv_constant array.
10691 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
10693 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
10694 field (valnum) the first in the struct. Replace bools with
10697 2008-01-10 Richard Guenther <rguenther@suse.de>
10699 PR tree-optimization/34651
10700 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
10701 types and ordering for masking and converting.
10703 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
10705 PR tree-optimization/34017
10706 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
10707 also for PHI_NODE expressions.
10709 2008-01-09 Jan Hubicka <jh@suse.cz>
10711 PR tree-optimization/34708
10712 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
10713 based on number of case labels.
10714 (init_inline_once): Remove switch_cost.
10715 * tree-inline.h (eni_weights_d): Remove switch_cost.
10717 2008-01-09 Richard Guenther <rguenther@suse.de>
10718 Andrew Pinski <andrew_pinski@playstation.sony.com>
10720 PR middle-end/30132
10721 * gimplify.c (gimplify_cond_expr): Do not create an addressable
10722 temporary if an rvalue is ok or an lvalue is not required.
10724 2008-01-09 Richard Guenther <rguenther@suse.de>
10726 PR middle-end/34458
10727 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
10728 adjust return type.
10730 2008-01-09 Richard Guenther <rguenther@suse.de>
10732 PR middle-end/34679
10733 * tree.c (host_integerp): Check for sizetype only if the
10734 type is an integer type.
10736 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
10739 * opts.c (decode_options): Disable inlining of functions called
10740 once if not in unit-at-a-time mode.
10742 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
10744 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
10746 2008-01-08 Richard Guenther <rguenther@suse.de>
10748 PR middle-end/31863
10749 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
10750 out early if the result will be unused.
10752 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
10757 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
10758 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10761 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
10763 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
10764 for vectorization tuned.
10766 2008-01-08 Richard Guenther <rguenther@suse.de>
10768 PR tree-optimization/34683
10769 * tree-ssa-operands.c (operand_build_cmp): Export.
10770 * tree-ssa-operands.h (operand_build_cmp): Declare.
10771 * tree-vn.c (vuses_compare): Remove.
10772 (sort_vuses): Use operand_build_cmp.
10773 (sort_vuses_heap): Likewise.
10774 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
10775 to re-use old VEC if available. Do not sort already sorted VUSEs.
10776 (vdefs_to_vec): Do not sort already sorted VDEFs.
10778 2008-01-08 Jakub Jelinek <jakub@redhat.com>
10780 PR middle-end/34694
10781 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
10783 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
10786 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
10787 limitations of reciprocal sequences on x86 targets.
10789 2008-01-08 Richard Guenther <rguenther@suse.de>
10791 PR tree-optimization/34683
10792 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
10794 2008-01-07 Jakub Jelinek <jakub@redhat.com>
10797 * config/darwin.c (darwin_mergeable_string_section): Don't use
10798 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
10800 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
10803 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
10804 negxf2. Macroize expander using X87MODEF mode iterator. Change
10805 predicates of op0 and op1 to register_operand.
10806 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
10807 expander using X87MODEF mode iterator. Change predicates of
10808 op0 and op1 to register_operand.
10809 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
10810 corresponding patterns and macroize using MODEF macro. Change
10811 predicates of op0 and op1 to register_operand and remove
10812 "m" constraint. Disparage "r" alternative with "!".
10813 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
10814 macroize using X87MODEF macro. Change predicates of op0 and op1
10815 to register_operand and remove "m" constraint. Disparage "r"
10816 alternative with "!".
10817 (absneg splitter with memory operands): Remove.
10818 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
10819 patterns and macroize using X87MODEF mode iterator.
10820 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
10821 Change predicate of op1 to register_operand.
10822 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
10823 for memory operands.
10825 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
10827 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
10829 2008-01-07 Richard Guenther <rguenther@suse.de>
10831 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
10834 2008-01-07 Richard Guenther <rguenther@suse.de>
10836 PR tree-optimization/34683
10837 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
10838 VOPs of the needed size to save memory. Use VEC_quick_push
10839 to save compile-time.
10840 (vdefs_to_vec): Likewise.
10842 2008-01-07 Sa Liu <saliu@de.ibm.com>
10844 * config/spu/spu.md (divdf3): Genetate inline code for double
10845 division. The implementation doesn't handle INF or NAN, therefore it
10846 only applies when -ffinite-math-only is given.
10848 2008-01-06 Paolo Carlini <pcarlini@suse.de>
10851 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
10852 * doc/cpp.texi ([Common Predefined Macros]): Document.
10854 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
10856 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
10857 order to use commutative addition instead of subtraction.
10859 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
10860 Mircea Namolaru <namolaru@il.ibm.com>
10861 Vladimir Yanovsky <yanov@il.ibm.com>
10862 Revital Eres <eres@il.ibm.com>
10864 PR tree-optimization/34263
10865 * tree-outof-ssa.c (process_single_block_loop_latch,
10866 contains_tree_r): New functions.
10867 (analyze_edges_for_bb): Call process_single_block_loop_latch
10868 function to empty single-basic-block latch block if possible.
10870 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
10872 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10874 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
10876 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
10878 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
10880 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
10882 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
10884 2008-01-05 Jakub Jelinek <jakub@redhat.com>
10886 PR tree-optimization/34618
10887 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
10890 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
10893 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
10894 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
10895 Update copyright year.
10897 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
10898 Update copyright year.
10899 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
10902 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
10904 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
10905 edge does not point to current bb before changing need_assert.
10907 2008-01-04 Richard Guenther <rguenther@suse.de>
10909 PR middle-end/34029
10910 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
10911 for verifying purposes if they are is_gimple_min_invariant.
10913 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
10915 PR tree-optimization/34448
10916 PR tree-optimization/34465
10917 * gimplify.c (gimplify_init_constructor): Add new parameter
10918 notify_temp_creation. Use it.
10919 (gimplify_modify_expr_rhs): Take volatiles into account when
10920 optimizing constructors.
10921 Do not optimize constructors if gimplify_init_constructor will dump to
10923 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
10924 * gcc.c-torture/compile/pr34448.c: New.
10926 2008-01-04 Jakub Jelinek <jakub@redhat.com>
10928 PR gcov-profile/34609
10929 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
10930 return_slot if result is TREE_ADDRESSABLE.
10932 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
10934 * config/mips/mips.md (sqrt_condition): Tweak comment.
10935 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
10937 2008-01-03 Tom Tromey <tromey@redhat.com>
10940 * c-common.c (c_type_hash): Handle VLAs.
10942 2008-01-03 Jan Hubicka <jh@suse.cz>
10944 PR tree-optimization/31081
10945 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
10946 0 when inlining and not inlining to first basic block.
10947 (remap_decl): When var is initialized to 0, don't set default_def.
10948 (expand_call_inline): Set entry_bb.
10949 * tree-inline.h (copy_body_data): Add entry_bb.
10951 2008-01-03 Jakub Jelinek <jakub@redhat.com>
10954 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
10957 PR tree-optimization/29484
10958 * tree-inline.c (inline_forbidden_p_2): New function.
10959 (inline_forbidden_p): Disallow inlining if some static var
10960 has an address of a local LABEL_DECL in its initializer.
10961 * doc/extend.texi (Labels as Values): Document &&foo behaviour
10964 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
10966 PR tree-optimization/34635
10967 * tree-data-ref.c (add_other_self_distances): Make sure that the
10968 evolution step is constant.
10970 2008-01-03 Jakub Jelinek <jakub@redhat.com>
10972 PR middle-end/34608
10973 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
10975 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
10977 * tree-sra.c (scalarize_init): Insert the generate_element_init
10978 statements after the generate_element_zero statements.
10980 2008-01-02 Richard Guenther <rguenther@suse.de>
10982 PR middle-end/34093
10983 PR middle-end/31976
10984 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
10985 for very large number of operands instead of ICEing.
10987 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
10990 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
10991 while stack probing.
10993 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
10995 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
10998 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
11000 PR libmudflap/26442
11001 * tree-mudflap.c (mx_register_decls): Guard warning by
11002 !DECL_ARTIFICIAL check.
11004 2008-01-01 Jakub Jelinek <jakub@redhat.com>
11006 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
11007 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
11008 sse5_perm<mode>): Fix constraints.