1 2007-06-04 Tom Tromey <tromey@redhat.com>
3 * c-tree.h (start_enum): Update.
4 (build_enumerator): Likewise.
5 * c-decl.c (enum_next_value): Removed.
6 (enum_overflow): Likewise.
7 (start_enum): Add c_enum_contents argument. Don't use globals.
8 (build_enumerator): Likewise.
9 * c-tree.h (struct c_enum_contents): New struct.
11 2007-06-04 Tom Tromey <tromey@redhat.com>
13 * c-common.c (c_common_get_alias_set): Fix indentation.
15 2007-06-04 Ian Lance Taylor <iant@google.com>
17 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
18 to overflow, reduce overflow infinity to regular infinity.
19 (vrp_var_may_overflow): New static function.
20 (vrp_visit_phi_node): Check vrp_var_may_overflow.
22 2007-06-04 Kazu Hirata <kazu@codesourcery.com>
24 * stor-layout.c (layout_type): Remove duplicate code.
26 2007-06-04 Uros Bizjak <ubizjak@gmail.com>
29 * gcc/c-common.c (c_define_builtins): Call targetm.init_builtins ()
30 before build_common_builtin_nodes ().
32 2007-06-04 Steve Ellcey <sje@cup.hp.com>
35 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
37 2007-05-31 Jan Hubicka <jh@suse.cz>
39 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
40 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
41 instead of _stat version.
43 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
45 PR tree-optimization/32194
46 * tree-predcom.c (determine_offset): Check that both references have
49 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
51 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
52 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
53 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
54 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
55 Add argument to iterate_fix_dominators call.
56 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
57 * gcse.c (hoist_code): Change domby to vector.
58 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
59 Add argument to iterate_fix_dominators call.
60 * loop-doloop.c (doloop_modify): Changed recount_dominator to
62 * lambda-code.c (perfect_nestify): Ditto.
63 * cfgloopanal.c: Include graphds.h.
64 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
65 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
66 (mark_irreducible_loops): Use graphds_scc. Remove argument from
68 * graphds.c: New file.
69 * graphds.h: New file.
70 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
71 (get_dominated_by, get_dominated_by_region): Change return type to
73 (verify_dominators): Recompute all dominators and compare the results.
74 (recount_dominator): Renamed to ...
75 (recompute_dominator): ... this. Do not check that the block is
77 (iterate_fix_dominators): Reimplemented.
78 (prune_bbs_to_update_dominators, root_of_dom_tree,
79 determine_dominators_for_sons): New functions.
80 * et-forest.c (et_root): New function.
81 * et-forest.h (et_root): Declare.
82 * Makefile.in (graphds.o): Add.
83 (cfgloopanal.o): Add graphds.h dependency.
84 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
85 * basic-block.h (get_dominated_by, get_dominated_by_region,
86 iterate_fix_dominators): Declaration changed.
87 (recount_dominator): Renamed to ...
88 (recompute_dominator): ... this.
89 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
90 (thread_through_all_blocks): Do not free dominance info.
92 2007-06-03 Andreas Schwab <schwab@suse.de>
94 * config/m68k/m68k.c (override_options): Don't override
96 * config/m68k/m68k-modes.def (SF, DF): Define to use
97 motorola_single_format and motorola_double_format, resp.
98 * real.c (motorola_single_format): Renamed from
99 coldfire_single_format.
100 (motorola_double_format): Renamed from coldfire_double_format.
101 (encode_ieee_extended): Generate a proper canonical NaN image
102 respecting canonical_nan_lsbs_set.
103 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
105 * real.h: Adjust declarations.
107 2007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
110 * config/sh/sh.md (symGOT_load): Don't schedule insns when
111 the symbol is generated with the stack protector.
113 2007-06-03 Kazu Hirata <kazu@codesourcery.com>
115 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
116 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
118 * doc/extend.texi (interrupt): Mention m68k.
120 2007-06-02 Uros Bizjak <ubizjak@gmail.com>
122 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
123 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
124 (ix86_expand_sse_pcmpestr): Do not check operands for
125 "register_operand", when insn operand predicate is "register_operand".
126 (ix86_expand_sse_pcmpistr): Ditto.
128 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
129 Uros Bizjak <ubizjak@gmail.com>
131 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
132 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
133 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
134 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
135 * config/i386/constraints.md ("z"): New register constraint
136 for members of SSE_FIRST_REG class.
137 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
138 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
140 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
141 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
142 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
143 (IX86_BUILTIN_PCMPESTRM128): Likewise.
144 (IX86_BUILTIN_PCMPESTRA128): Likewise.
145 (IX86_BUILTIN_PCMPESTRC128): Likewise.
146 (IX86_BUILTIN_PCMPESTRO128): Likewise.
147 (IX86_BUILTIN_PCMPESTRS128): Likewise.
148 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
149 (IX86_BUILTIN_PCMPISTRI128): Likewise.
150 (IX86_BUILTIN_PCMPISTRM128): Likewise.
151 (IX86_BUILTIN_PCMPISTRA128): Likewise.
152 (IX86_BUILTIN_PCMPISTRC128): Likewise.
153 (IX86_BUILTIN_PCMPISTRO128): Likewise.
154 (IX86_BUILTIN_PCMPISTRS128): Likewise.
155 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
156 (struct builtin_description): Change "flag" field to unsigned.
157 (bdesc_pcmpestr): New builtin description table.
158 (bdesc_pcmpistr): Likewise.
159 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
160 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
161 Initialize pcmp[ei]str[im] insns for SSE4.2.
162 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
163 (ix86_expand_sse_pcmpistr): Likewise.
164 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
165 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
166 (UNSPEC_PCMPISTR): Likewise.
167 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
168 (sse4_2_pcmpestri):New isns pattern.
169 (sse4_2_pcmpestrm): Likewise.
170 (sse4_2_pcmpestr_cconly): Likewise.
171 (sse4_2_pcmpistr): New insn patern and splitter.
172 (sse4_2_pcmpistri):New isns pattern.
173 (sse4_2_pcmpistrm): Likewise.
174 (sse4_2_pcmpistr_cconly): Likewise.
175 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
178 2007-06-01 David Daney <ddaney@avtrex.com>
180 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
181 LOADGP_ABSOLUTE and not binds_local_p.
183 2007-06-01 Geoffrey Keating <geoffk@apple.com>
185 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
187 2007-06-01 Ian Lance Taylor <iant@google.com>
189 * tree-vrp.c (compare_name_with_value): Always set
190 used_strict_overflow if we get a result from the variable itself.
192 2007-06-01 Ian Lance Taylor <iant@google.com>
194 PR rtl-optimization/31455
195 * lower-subreg.c (find_decomposable_subregs): Don't decompose
196 subregs which have a cast between modes which are not tieable.
198 2007-06-01 Uros Bizjak <ubizjak@gmail.com>
200 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
201 breaks after return statements.
203 2007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
205 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
206 only after no_new_pseudos.
208 2007-05-31 Eric Christopher <echristo@apple.com>
210 * expr.c (convert_move): Assert that we don't have a BLKmode
212 (store_expr): Handle BLKmode moves by calling emit_block_move.
214 2007-05-31 Daniel Berlin <dberlin@dberlin.org>
216 * c-typeck.c (build_indirect_ref): Include type in error message.
217 (build_binary_op): Pass types to binary_op_error.
218 * c-common.c (binary_op_error): Take two type arguments, print out
220 * c-common.h (binary_op_error): Update prototype.
222 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
224 * config/i386/i386.c: Correct coments on -mno-sse4.
226 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
228 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
229 (x86_64-*-*): Likewise.
230 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
231 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
232 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
233 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
234 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
235 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
236 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
237 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
238 (OPTION_MASK_ISA_SSE4): Likewise.
239 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
240 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
241 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
242 (override_options): Support SSE4.2.
243 (ix86_build_const_vector): Support SImode and DImode.
244 (ix86_build_signbit_mask): Likewise.
245 (ix86_expand_int_vcond): Support V2DImode.
246 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
247 (IX86_BUILTIN_CRC32HI): Likewise.
248 (IX86_BUILTIN_CRC32SI): Likewise.
249 (IX86_BUILTIN_CRC32DI): Likewise.
250 (IX86_BUILTIN_PCMPGTQ): Likewise.
251 (bdesc_crc32): Likewise.
252 (bdesc_sse_3arg): Likewise.
253 (ix86_expand_crc32): Likewise.
254 (ix86_init_mmx_sse_builtins): Support SSE4.2.
255 (ix86_expand_builtin): Likewise.
256 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
257 __SSE4_2__ for -msse4.2.
258 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
259 (CRC32MODE): Likewise.
260 (crc32modesuffix): Likewise.
261 (crc32modeconstraint): Likewise.
262 (sse4_2_crc32<mode>): Likewise.
263 (sse4_2_crc32di): Likewise.
264 * config/i386/i386.opt (msse4.2): New for SSE4.2.
266 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
267 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
268 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
269 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
270 (vcondu<mode>): Likewise.
271 * doc/extend.texi: Document SSE4.2 built-in functions.
272 * doc/invoke.texi: Document -msse4.2/-msse4.
274 2007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
276 PR tree-optimization/32160
277 * tree-predcom.c (predcom_tmp_var): New function. Mark created
278 variable as gimple reg.
279 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
281 2007-05-31 Kazu Hirata <kazu@codesourcery.com>
283 * gcc.c (main): Don't consider linker options when issuing the
284 warning about a linker input file not being used.
286 2007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
288 * tree-vrp.c (compare_names): Initialize sop.
290 2007-05-30 Dirk Mueller <dmueller@suse.de>
292 * cgraphunit.c (cgraph_analyze_function): Remove
293 computation of inline parameters.
295 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
297 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
299 2007-05-30 Richard Sandiford <richard@codesourcery.com>
301 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
302 Add vx-common.h. Include vxworks.h between vx-common.h and
304 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
306 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
307 (TARGET_ASM_DESTRUCTOR): Likewise.
308 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
309 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
310 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
311 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
312 (VXWORKS_ENDIAN_SPEC): Define.
313 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
314 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
315 VXWORKS_* equivalents.
316 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
317 (ASM_FILE_START): Delete.
318 (TARGET_VERSION): Reformat.
319 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
320 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
321 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
322 (FPBIT, DPBIT): Define.
323 (fp-bit.c, dp-bit.c): New rules.
324 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
325 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
326 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
327 * config/arm/arm.h: Include vxworks-dummy.h.
328 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
329 Mark with ATTRIBUTE_UNUSED.
330 (arm_override_options): Do not allow VxWorks RTP PIC to be used
331 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
332 make it incompatible with -msingle-pic-base.
333 (arm_function_ok_for_sibcall): Return false for calls that might
334 go through a VxWorks PIC PLT entry.
335 (require_pic_register): New function, split out from...
336 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
338 (arm_load_pic_register): Handle the VxWorks RTP initialization
339 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
340 (arm_emit_call_insn): New function.
341 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
342 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
343 (pic_offset_arm): New pattern.
344 (call, call_value): Use arm_emit_call_insn.
345 (call_internal, call_value_internal): New expanders.
346 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
347 VxWorks unless __PIC__.
349 2007-05-30 Eric Christopher <echristo@gmail.com>
351 * genrecog.c: Include regs.h in generated file.
352 * genemit.c: Ditto. Fix up formatting.
353 * config/mn10300/constraints.md: New.
354 * config/mn10300/mn10300.md: Include.
355 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
356 Fix up for removed macro.
357 * config/mn10300/predicates.md (call_address_operand): Ditto.
358 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
359 (CONST_OK_FOR_I): Ditto.
360 (CONST_OK_FOR_J): Ditto.
361 (CONST_OK_FOR_K): Ditto.
362 (CONST_OK_FOR_L): Ditto.
363 (CONST_OK_FOR_M): Ditto.
364 (CONST_OK_FOR_N): Ditto.
365 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
369 (EXTRA_CONSTRAINT): Ditto.
371 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
373 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
375 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
376 OPTION_MASK_ISA_64BIT.
377 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
379 2007-05-30 Richard Guenther <rguenther@suse.de>
382 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
383 types for comparison.
384 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
385 with original typed arguments.
386 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
388 2007-05-30 Jakub Jelinek <jakub@redhat.com>
390 PR tree-optimization/31769
391 * except.c (duplicate_eh_regions): Clear prev_try if
392 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
394 2007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
396 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
397 * tree-ssa-sink.c (statement_sink_location): Return basic block and
398 bsi of the location where statements should be inserted.
399 (sink_code_in_bb): Take bsi from statement_sink_location.
400 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
401 instead of bsi_start.
402 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
404 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
405 (bsi_move_before): Document inconsistency with bsi_move_after.
406 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
408 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
410 * config/i386/i386.h (TARGET_ABM): New define.
411 (TARGET_POPCNT): Ditto.
412 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
413 New temporary defines to redefine from OPTION_ISA_* defines.
414 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
415 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
416 (ix86_isa_flags): New extern int declaration.
417 (TARGET_SUBTARGET_DEFAULT): New define.
418 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
419 (TARGET_SUBTARGET32_DEFAULT): Ditto.
420 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
421 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
422 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
423 * config/i386/darwin.h: Change TARGET_64BIT define to
426 * config/i386/i386.opt (m3dnowa): Define as undocumented option
427 using existing "ix86_isa_flags" varible.
428 (m32, m64): Use existing "ix86_isa_flags" variable.
429 (mmmx, m3dnow): Ditto.
430 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
431 (mabm): Define as non-negative option using "x86_abm" variable.
432 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
434 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
435 Rewrite feature test bitmap.
436 (ix86_isa_flags): New initialized global int varible.
437 (ix86_isa_flags_explicit): New static int variable.
438 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
439 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
440 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
441 target_flags_explicit.
442 (override_options): Remove "target_enable" and "target_disable" fields
443 from "struct ptt". Update processor_target_table accordingly. Remove
444 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
445 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
446 "target_flags" and "ix86_isa_flags_explicit" instead of
447 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
448 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
449 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
450 to true when either of PTA_POPCNT or PTA_ABM is set in
451 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
452 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
453 processor_alias_table flags entry. Remove handling of
454 "target_enable" and "target_disable" fields of processor_target_table.
455 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
456 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
457 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
458 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
459 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
461 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
463 2007-05-29 David Daney <ddaney@avtrex.com>
466 * config/mips/mips.c (mips_output_mi_thunk): Emit
467 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
469 2007-05-29 Hui-May Chang <hm.chang@apple.com>
470 * config/i386/i386.c (ix86_function_regparm): Added checking of
471 ix86_force_align_arg_pointer to determine the number of
474 2007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
476 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
477 (SET_DR_MISALIGNMENT): New.
478 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
479 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
480 Use SET_DR_MISALIGNMENT.
481 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
483 * tree-data-ref.c (create_data_ref, compute_all_dependences,
484 find_loop_nest): Export.
485 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
486 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
487 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
488 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
490 (struct mem_ref): Add field reuse_distance.
491 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
492 Initialize reuse_distance field.
493 (issue_prefetch_ref): Select temporality of prefetch according to
495 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
496 self_reuse_distance, determine_loop_nest_reuse): New functions.
497 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
498 (tree_ssa_prefetch_arrays): Dump L2 cache size.
499 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
502 2007-05-29 Daniel Berlin <dberlin@dberlin.org>
504 * tree-ssa-alias.c: Add aliasing overview.
506 2007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
507 Danny Smith <dannysmith@users.sourceforge.net>
510 * config/i386/t-crtfm: Compile crtfastmath.o with
511 -minline-all-stringops.
512 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
513 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
515 2007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
517 * doc/md.texi: Document constraints on HP PA-RISC.
519 * pa/constraints.md: New file.
520 * pa.md: Include constraints.md.
521 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
522 (integer_store_memory_operand, ldil_cint_p): New functions.
523 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
524 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
525 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
526 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
527 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
529 2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
532 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
533 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
534 case POSTDECREMENT_EXPR>): Return the error_mark_node
535 if either the real or imaginary parts would an
538 2007-05-28 Daniel Berlin <dberlin@dberlin.org>
540 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
541 name when we remove it from a call.
543 2007-05-28 Kazu Hirata <kazu@codesourcery.com>
545 * targhooks.c (default_narrow_bitfield): Remove.
546 * targhooks.h: Remove the prototype for
547 default_narrow_bitfield.
549 * langhooks-def.h: Remove the prototype for
550 hook_get_alias_set_0.
551 * langhooks.c (hook_get_alias_set_0): Remove.
553 * global.c (EXECUTE_IF_CONFLICT): Remove.
555 2007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
558 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
559 return true when truth_value_p is true and the type
562 2007-05-28 Gerald Pfeifer <gerald@pfeifer.com>
564 * doc/install.texi (Prerequisites): We no longer require Autoconf
565 2.13 for the top-level.
567 2007-05-28 Uros Bizjak <ubizjak@gmail.com>
569 * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
570 memory access via x86_expand_vector_move_misalign() only for
571 TImode values on 32-bit targets.
573 2007-05-28 Razya Ladelsky <razya@il.ibm.com>
575 * matrix-reorg.c: New file. Implement matrix flattening and
576 transposing optimization.
577 * tree-pass.h: Add matrix reorg pass.
578 * common.opt: Add fipa-mreorg flag.
579 * Makefile.in: Add matrix-reorg.c.
580 * passes.c: Add matrix reorg pass.
581 * varpool.c (add_new_static_var): New function.
582 * cgraph.h (add_new_static_var): Declare.
584 2007-05-27 Eric Christopher <echristo@apple.com>
586 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
587 sp_offset depending on stack size. Save r12 depending
588 on registers we're saving later.
589 (rs6000_emit_epilogue): Update sp_offset depending only
592 2007-05-27 Zdenek Dvorak <dvorakz@suse.cz>
594 * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
595 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
596 * ifcvt.c (if_convert): Ditto.
597 * tree-ssa-threadupdate.c (thread_block): Ditto.
598 (thread_through_all_blocks): Ditto. Assert that loops were analysed.
599 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
600 verify_loop_closed_ssa): Check number_of_loops instead of
602 * predict.c (tree_estimate_probability): Ditto.
603 * tree-if-conv.c (main_tree_if_conversion): Ditto.
604 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
605 * modulo-sched.c (sms_schedule): Ditto.
606 * tree-scalar-evolution.c (scev_const_prop): Ditto.
607 (scev_finalize): Do not do anything if scev analysis was not
609 * cfgloopanal.c (mark_irreducible_loops): Do not check whether
610 current_loops == NULL.
611 (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
612 * loop-init.c (loop_optimizer_init): Do not free current_loops when
614 (loop_optimizer_finalize): Assert that loops were analyzed.
615 (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
616 rtl_doloop): Check number_of_loops instead of current_loops.
617 * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
618 current_loops == NULL.
619 (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
620 gate_tree_vectorize tree_linear_transform, check_data_deps,
621 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
622 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
623 Check number_of_loops instead of current_loops.
624 (tree_ssa_loop_done): Do not check whether current_loops == NULL.
625 * tree-ssa-pre.c (fini_pre): Do not take do_fre argument. Always
626 free loops if available.
627 (execute_pre): Do not pass do_fre to fini_pre.
629 2007-05-27 Tobias Burnus <burnus@net-b.de>
632 * real.c (mpfr_from_real): Fix sign of -Inf.
634 2007-05-27 H.J. Lu <hongjiu.lu@intel.com>
636 * tree-vect-transform.c (vectorizable_conversion): Initialize
637 tree_code variables to ERROR_MARK.
638 (vectorizable_type_demotion): Likewise.
639 (vectorizable_type_promotion): Likewise.
641 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
644 * config/i386/i386.md (movti): Handle push operands via
647 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
649 * basic-block.h: Remove the prototype for merge_seq_blocks.
650 * cfgcleanup.c (merge_seq_blocks): Remove.
652 * tree-flow.h: Remove the prototype for is_aliased_with.
653 * tree-ssa-alias.c (is_aliased_with): Remove.
655 2007-05-26 H.J. Lu <hongjiu.lu@intel.com>
657 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
659 * config/i386/i386.c (ix86_expand_sse4_unpack): New.
661 * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
662 ix86_expand_sse4_unpack if SSE4.1 is enabled.
663 (vec_unpacks_hi_v16qi): Likewise.
664 (vec_unpacku_lo_v16qi): Likewise.
665 (vec_unpacks_lo_v16qi): Likewise.
666 (vec_unpacku_hi_v8hi): Likewise.
667 (vec_unpacks_hi_v8hi): Likewise.
668 (vec_unpacku_lo_v8hi): Likewise.
669 (vec_unpacks_lo_v8hi): Likewise.
670 (vec_unpacku_hi_v4si): Likewise.
671 (vec_unpacks_hi_v4si): Likewise.
672 (vec_unpacku_lo_v4si): Likewise.
673 (vec_unpacks_lo_v4si): Likewise.
675 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
677 * c-typeck.c, config/arm/arm.c, config/darwin.c,
678 config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
679 omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
680 follow spelling conventions in various
681 warning/error/diagnostic messages.
683 * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
684 df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
685 fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
686 tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
687 tree-vrp.c: Fix comment typos. Follow spelling conventions.
688 * doc/tm.texi: Follow spelling conventions.
690 2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
693 * tree-ssa-forwprop.c
694 (forward_propagate_addr_into_variable_array_index): Remove
695 the lhs argument. Use the type of def_rhs instead of lhs.
696 (forward_propagate_addr_expr_1): Update use of
697 forward_propagate_addr_into_variable_array_index.
699 2007-05-25 Sandra Loosemore <sandra@codesourcery.com>
700 Nigel Stephens <nigel@mips.com>
702 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
703 function attributes, "far" being an alias for "long_call".
704 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
705 (mips_near_type_p, mips_far_type_p): New.
706 (mips_comp_type_attributes): New function to check that attributes
707 attached to a function type are compatible.
708 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
709 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
710 to the target function of the thunk.
711 (mips_encode_section_info): Check for "near" and "far" function
712 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
714 * config/mips/predicates.md (const_call_insn_operand): Test only
715 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
717 * doc/extend.texi (Function Attributes): Document MIPS "near" and
720 * testsuite/gcc.target/mips/near-far-1.c: New test case.
721 * testsuite/gcc.target/mips/near-far-2.c: New test case.
722 * testsuite/gcc.target/mips/near-far-3.c: New test case.
723 * testsuite/gcc.target/mips/near-far-4.c: New test case.
725 2007-05-25 Eric Christopher <echristo@apple.com>
727 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
728 to x86-darwin configurations.
729 * config/i386/t-darwin: Add softfp support.
730 * config/i386/t-darwin64: Ditto.
731 * config/i386/sfp-machine.h: If mach then don't use
732 aliasing, emit a stub to call.
734 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
736 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
737 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
738 tree-predcom.c, tree-ssa-alias-warnings.c,
739 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
740 comment typos. Follow spelling conventions.
741 * doc/cpp.texi, doc/invoke.texi: Fix typos.
743 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
746 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
747 constants into memory. Expand unaligned memory references for
748 SSE modes via x86_expand_vector_move_misalign() function.
750 2007-05-25 Uros Bizjak <ubizjak@gmail.com>
752 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
753 "memory" attribute for "sseishft" type insn without operands[2].
755 2007-05-25 Dirk Mueller <dmueller@suse.de>
756 Marcus Meissner <meissner@suse.de>
758 * doc/extend.texi (alloc_size): New attribute.
759 * c-common.c (handle_alloc_size_attribute): New.
760 * tree-object-size.c (alloc_object_size): Use alloc_size
761 attribute, if available.
763 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
765 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
767 (__builtin_ia32_vec_ext_v2di): Likewise.
768 (__builtin_ia32_vec_ext_v4si): Likewise.
769 (__builtin_ia32_vec_ext_v8hi): Likewise.
770 (__builtin_ia32_vec_ext_v16qi): Likewise.
771 (__builtin_ia32_vec_set_v8hi): Likewise.
773 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
775 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
777 2007-05-25 Richard Sandiford <richard@codesourcery.com>
779 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
780 (arm_is_longcall_p): Rename to...
781 (arm_is_long_call_p): ...this. Take a single tree argument and
783 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
784 (CUMULATIVE_ARGS): Remove call_cookie.
785 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
786 (ENCODED_LONG_CALL_ATTR_P): Delete.
787 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
788 LONG_CALL_FLAG_CHAR cases.
789 (ARM_DECLARE_FUNCTION_SIZE): Delete.
790 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
791 ARM_DECLARE_FUNCTION_SIZE.
792 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
793 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
794 (arm_encode_call_attribute, current_file_function_operand): Delete.
795 (arm_function_in_section_p): New function.
796 (arm_is_longcall_p): Rename to...
797 (arm_is_long_call_p): ...this. Take the target function as a single
798 argument and return a bool. Do not rely on call cookies. Check
799 whether the target symbol is in the same section as the current
800 function, not just the same compilation unit.
801 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
802 (arm_encode_section_info): Don't encode a call type.
803 * config/arm/arm.md (call, call_value): Update calls to
804 arm_is_long(_)call_p. Simplify logic.
805 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
806 Update calls to arm_is_long(_)call_p.
808 2007-05-25 Richard Guenther <rguenther@suse.de>
810 PR tree-optimization/31982
811 * tree-ssa-forwprop.c
812 (forward_propagate_addr_into_variable_array_index): Handle arrays
813 with element size one.
815 2007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
817 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
818 (umulsi3_highpart): Likewise.
820 2007-05-24 Ian Lance Taylor <iant@google.com>
822 PR rtl-optimization/32069
823 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
826 2007-05-24 Ollie Wild <aaw@google.com>
828 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
831 2007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
833 * postreload-gcse.c (reg_changed_after_insn_p): New function.
834 (oprs_unchanged_p): Use it to check all registers in a REG.
835 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
836 (reg_set_between_after_reload_p): Delete.
837 (reg_used_between_after_reload_p): Likewise.
838 (reg_set_or_used_since_bb_start): Likewise.
839 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
840 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
841 Use reg_set_between_p instead of reg_set_between_after_reload_p.
842 * rtlanal.c (reg_set_p): Check whether REG overlaps
843 regs_invalidated_by_call, rather than just checking the
844 membership of REGNO (REG).
846 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
848 * doc/passes.texi: Document predictive commoning.
849 * doc/invoke.texi (-fpredictive-commoning): Document.
850 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
851 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
852 adding indices to the generated name.
853 (schedule_sm): Pass 0 to get_lsm_tmp_name.
854 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
855 * tree-pretty-print.c (op_symbol_1): Renamed to ...
856 (op_symbol_code): ... and exported.
857 (dump_omp_clause, op_symbol): Use op_symbol_code
858 instead of op_symbol_1.
859 * tree-pass.h (pass_predcom): Declare.
860 * timevar.def (TV_PREDCOM): New timevar.
861 * tree-ssa-loop.c (run_tree_predictive_commoning,
862 gate_tree_predictive_commoning, pass_predcom): New.
863 * tree-data-ref.c (find_data_references_in_loop): Find the
864 references in dominance order.
865 (canonicalize_base_object_address): Ensure that the result has
867 (dr_analyze_innermost): Export.
868 (create_data_ref): Code to fail for references with invariant
870 (find_data_references_in_stmt): ... here.
871 * tree-data-ref.h (dr_analyze_innermost): Declare.
872 * tree-affine.c: Include tree-gimple.h and hashtab.h.
873 (aff_combination_find_elt, name_expansion_hash,
874 name_expansion_eq, tree_to_aff_combination_expand,
875 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
877 * tree-affine.h (aff_combination_constant_multiple_p,
878 tree_to_aff_combination_expand): Declare.
879 * tree-predcom.c: New file.
880 * common.opt (fpredictive-commoning): New option.
881 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
882 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
883 * Makefile.in (tree-predcom.o): Add.
884 (tree-affine.o): Add TREE_GIMPLE_H dependency.
885 * passes.c (init_optimization_passes): Add dceloop after
886 copy propagation in loop optimizer. Add predictive commoning
887 to loop optimizer passes.
889 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
891 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
894 2007-05-24 Jan Hubicka <jh@suse.cz>
896 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
898 (genheader): Include statistics.h.
900 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
902 * print-rtl.c (flag_dump_unnumbered): Update comments.
903 (print_rtl): Fix my previous change.
904 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
907 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
910 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
912 (thread_through_all_blocks): Call initialize_original_copy_tables
913 and free_original_copy_tables.
914 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
916 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
917 * cfghooks.c (duplicate_block): Use get_loop_copy.
918 * cfg.c: Include cfgloop.h.
919 (loop_copy): New hash table.
920 (initialize_original_copy_tables): Initialize loop_copy table.
921 (free_original_copy_tables): Free loop_copy table.
922 (copy_original_table_clear, copy_original_table_set,
923 set_loop_copy, get_loop_copy): New functions.
924 (set_bb_original, set_bb_copy): Use copy_original_table_set.
925 * cfgloop.h (struct loop): Remove copy field.
926 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
927 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
929 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
931 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
934 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
936 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
937 __builtin_ia32_vec_set_v2di with MASK_64BIT.
939 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
942 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
943 * targhooks.h (default_mangle_decl_assembler_name): Declare
945 * targhooks.c (default_mangle_decl_assembler_name): Define
947 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
949 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
950 * langhooks.c (lhd_set_decl_assembler_name): Call
951 targetm.mangle_decl_assembler_name for names with global scope.
953 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
955 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
956 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
958 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
959 New. Factored out of i386_pe_encode_section_info.
960 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
961 Move check for prior decoration of stdcall
962 symbols to i386_pe_encode_section_info.
963 (i386_pe_encode_section_info): Adjust call to
964 gen_stdcall_or_fastcall_suffix. Use
965 i386_pe_maybe_mangle_decl_assembler_name, if needed.
966 (i386_pe_mangle_decl_assembler_name): New. Wrap
967 i386_pe_maybe_mangle_decl_assembler_name.
969 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
971 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
972 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
973 * langhooks.c (get_signed_or_unsigned_type): Don't check for
974 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
975 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
978 2007-05-23 Sandra Loosemore <sandra@codesourcery.com>
979 Nigel Stephens <nigel@mips.com>
980 Richard Sandiford <richard@codesourcery.com>
982 Fix up MIPS16 hard float and add support for complex.
984 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
985 (TARGET_SOFT_FLOAT_ABI): New.
986 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
987 __mips_soft_float to reflect the ABI in use, not whether the
988 FPU is directly accessible (e.g., in MIPS16 mode).
989 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
990 (UNITS_PER_FPVALUE): Likewise.
992 * config/mips/mips.c (mips_expand_call): Remove redundant
994 (mips_arg_regno): New.
995 (function_arg_advance): When setting bits in cum->fp_code for
996 MIPS16, don't subtract 1 from cum->arg_number, since it is now
998 (function_arg): Use mips_arg_regno.
999 (mips_return_mode_in_fpr_p): New.
1000 (mips16_call_stub_mode_suffix): New.
1001 (mips16_cfun_returns_in_fpr_p): New.
1002 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
1003 (mips_output_function_prologue): Test mips16_hard_float, not
1004 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
1005 (mips_expand_epilogue): Call MIPS16 helper routines to copy
1006 return value into a floating-point register.
1007 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
1008 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
1009 (mips16_fp_args): Handle MIPS32r2 ISA which supports
1010 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
1011 word of double arguments from or to the high bits of 64-bit
1012 floating point registers.
1013 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
1014 (mips16_fpret_double): New helper function.
1015 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
1016 support for complex modes. Fill in DECL_RESULT for stubdecl.
1017 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
1019 * config/mips/mips16.S
1020 (RET, ARG1, ARG2): New.
1021 (MERGE_GPRf, MERGE_GPRt): New.
1022 (DELAYt, DELAYf): New.
1023 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
1024 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
1025 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
1026 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
1027 (SFOP): Renamed to...
1028 (OPSF3): This, and macro-ified. Updated all uses.
1029 (SFOP2): Renamed to...
1030 (OPSF2): This, and macro-ified. Updated all uses.
1031 (SFCMP): Renamed to...
1032 (CMPSF): This, and macro-ified. Updated all uses.
1033 (SFREVCMP): Renamed to...
1034 (REVCMPSF): This, and macro-ified. Updated all uses.
1035 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
1036 (LDDBL1, LDDBL2, RETDBL): Deleted.
1037 (DFOP): Renamed to...
1038 (OPDF3): This, and macro-ified. Updated all uses.
1039 (DFOP2): Renamed to...
1040 (OPDF2): This, and macro-ified. Updated all uses.
1041 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
1042 (DFCMP): Renamed to...
1043 (CMPDF): This, and macro-ified. Updated all uses.
1044 (DFREVCMP): Renamed to...
1045 (REVCMPDF): This, and macro-ified. Updated all uses.
1046 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
1047 (RET_FUNCTION): New.
1048 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
1049 (__mips16_ret_sc, __mips16_ret_dc): New.
1050 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
1051 STUB_ARGS_6, STUB_ARGS_10): New.
1052 (CALL_STUB_NO_RET): New.
1053 (__mips16_call_stub_1): Macro-ified.
1054 (__mips16_call_stub_5): Macro-ified.
1055 (__mips16_call_stub_2): Macro-ified.
1056 (__mips16_call_stub_6): Macro-ified.
1057 (__mips16_call_stub_9): Macro-ified.
1058 (__mips16_call_stub_10): Macro-ified.
1059 (CALL_STUB_RET): New.
1060 (__mips16_call_stub_sf_0): Macro-ified.
1061 (__mips16_call_stub_sf_1): Macro-ified.
1062 (__mips16_call_stub_sf_5): Macro-ified.
1063 (__mips16_call_stub_sf_2): Macro-ified.
1064 (__mips16_call_stub_sf_6): Macro-ified.
1065 (__mips16_call_stub_sf_9): Macro-ified.
1066 (__mips16_call_stub_sf_10): Macro-ified.
1067 (__mips16_call_stub_df_0): Macro-ified.
1068 (__mips16_call_stub_df_1): Macro-ified.
1069 (__mips16_call_stub_df_5): Macro-ified.
1070 (__mips16_call_stub_df_2): Macro-ified.
1071 (__mips16_call_stub_df_6): Macro-ified.
1072 (__mips16_call_stub_df_9): Macro-ified.
1073 (__mips16_call_stub_df_10): Macro-ified.
1074 (__mips16_call_stub_sc_0): New.
1075 (__mips16_call_stub_sc_1): New.
1076 (__mips16_call_stub_sc_5): New.
1077 (__mips16_call_stub_sc_2): New.
1078 (__mips16_call_stub_sc_6): New.
1079 (__mips16_call_stub_sc_9): New.
1080 (__mips16_call_stub_sc_10): New.
1081 (__mips16_call_stub_dc_0): New.
1082 (__mips16_call_stub_dc_1): New.
1083 (__mips16_call_stub_dc_5): New.
1084 (__mips16_call_stub_dc_2): New.
1085 (__mips16_call_stub_dc_6): New.
1086 (__mips16_call_stub_dc_9): New.
1087 (__mips16_call_stub_dc_10): New.
1089 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
1090 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
1091 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
1093 2007-05-23 Ian Lance Taylor <iant@google.com>
1095 * doc/invoke.texi (Invoking GCC): Document that the order of the
1098 2007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
1101 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
1102 * config/score/predicate.md (const_pow2, const_npow2): Remove.
1103 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
1107 * config/score/score.c (score_print_operand): Make sure that only
1108 lower bits are used.
1110 2007-05-22 Ian Lance Taylor <iant@google.com>
1112 * tree-vrp.c (avoid_overflow_infinity): New static function,
1113 broken out of set_value_range_to_value.
1114 (set_value_range_to_value): Call avoid_overflow_infinity.
1115 (extract_range_from_assert): Likewise.
1117 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
1120 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
1121 change the type before looking for a COMPOUND_EXPR.
1123 2007-05-22 Ian Lance Taylor <iant@google.com>
1125 * lower-subreg.c (decompose_multiword_subregs): If we change an
1126 insn, call remove_retval_note on it.
1128 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
1130 * regs.h (end_hard_regno): New function.
1131 (END_HARD_REGNO, END_REGNO): New macros.
1132 (add_to_hard_reg_set): New function.
1133 (remove_from_hard_reg_set): Likewise.
1134 (in_hard_reg_set_p): Likewise.
1135 (overlaps_hard_reg_set_p): Likewise.
1136 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
1137 (note_btr_set): Use END_HARD_REGNO.
1138 * caller-save.c (setup_save_areas): Use end_hard_regno.
1139 (mark_set_regs): Use END_HARD_REGNO.
1140 (add_stored_regs): Use end_hard_regno.
1141 (mark_referenced_regs): Use add_to_hard_reg_set.
1142 * combine.c (update_table_tick): Use END_REGNO.
1143 (record_value_for_reg): Likewise.
1144 (record_dead_and_set_regs): Likewise.
1145 (get_last_value_validate): Likewise.
1146 (use_crosses_set_p): Likewise.
1147 (reg_dead_at_p_1): Likewise.
1148 (reg_dead_at_p): Likewise.
1149 (mark_used_regs_combine): Use add_to_hard_reg_set.
1150 (move_deaths): Use END_HARD_REGNO.
1151 (reg_bitfield_target_p): Use end_hard_regno.
1152 (distribute_notes): Use END_HARD_REGNO.
1153 * cse.c (mention_regs): Use END_REGNO.
1154 (insert): Use add_to_hard_reg_set.
1155 (invalidate): Use END_HARD_REGNO.
1156 (invalidate_for_call): Likewise.
1157 (exp_equiv_p): Use END_REGNO.
1158 (cse_insn): Likewise.
1159 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
1160 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
1161 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
1162 * function.c (keep_stack_depressed): Use end_hard_regno.
1163 * global.c (global_alloc): Use end_hard_regno.
1164 (global_conflicts): Use add_to_hard_reg_set instead of
1166 (find_reg): Likewise.
1167 (mark_reg_store): Likewise.
1168 (mark_reg_conflicts): Likewise.
1169 (mark_reg_death): Use remove_from_hard_reg_set.
1170 (mark_reg_live_nc): Delete.
1171 (set_preference): Use end_hard_regno.
1172 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
1173 remove_from_hard_reg_set.
1174 (post_mark_life): Use add_to_hard_reg_set.
1175 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
1176 (reg_becomes_live): Use add_to_hard_reg_set.
1177 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
1178 (peep2_find_free_register): Use add_to_hard_reg_set.
1179 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
1180 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
1181 * regrename.c (note_sets): Use add_to_hard_reg_set.
1182 (clear_dead_regs): Use remove_from_hard_reg_set.
1183 (regrename_optimize): Use add_to_hard_reg_set.
1184 (find_oldest_value_reg): Use in_hard_reg_set_p.
1185 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
1186 (hard_reg_set_here_p): Use end_hard_regno.
1187 (decompose): Likewise.
1188 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
1189 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
1190 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
1191 (mark_home_live): Use end_hard_regno.
1192 (spill_hard_reg): Likewise.
1193 (clear_reload_reg_in_use): Likewise.
1194 * reorg.c (delete_prior_computation): Use END_REGNO.
1195 * resource.c (update_live_status): Use END_HARD_REGNO.
1196 (mark_referenced_resources): Use add_to_hard_reg_set.
1197 (mark_set_resources): Likewise.
1198 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
1199 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
1200 (reg_overlap_mentioned_p): Likewise.
1201 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
1202 (covers_regno_no_parallel_p): Use END_REGNO.
1203 (find_regno_note): Likewise.
1204 (find_reg_fusage): Use END_HARD_REGNO.
1205 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
1206 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
1208 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
1210 * mode-switching.c (reg_dies): Change type of second argument to
1212 (optimize_mode_switching): Update accordingly.
1214 2007-05-22 Richard Sandiford <richard@codesourcery.com>
1216 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
1218 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
1219 (hard_reg_set_empty_p): ...these new functions.
1220 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
1221 GO_IF_HARD_REG_SUBSET.
1222 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
1223 instead of GO_IF_HARD_REG_EQUAL.
1224 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
1225 instead of GO_IF_HARD_REG_EQUAL.
1226 * global.c (find_reg): Use hard_reg_set_empty_p instead of
1227 GO_IF_HARD_REG_SUBSET.
1228 (modify_reg_pav): Use hard_reg_set_empty_p instead of
1229 GO_IF_HARD_REG_EQUAL.
1230 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
1231 of GO_IF_HARD_REG_SUBSET.
1232 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
1233 instead of GO_IF_HARD_REG_EQUAL.
1234 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
1235 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
1236 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
1237 of GO_IF_HARD_REG_SUBSET,
1238 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
1239 GO_IF_HARD_REG_SUBSET.
1240 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
1241 instead of GO_IF_HARD_REG_EQUAL.
1242 * config/sh/sh.c (push_regs, calc_live_regs): Use
1243 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
1244 (hard_regs_intersect_p): Delete.
1246 2007-05-22 Janis Johnson <janis187@us.ibm.com>
1248 * doc/sourcebuild.texi (Test Directives) Add dg-message.
1250 2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
1251 Richard Henderson <rth@redhat.com>
1253 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
1255 (x86_64-*-*): Likewise.
1257 * i386/i386-modes.def (V2QI): New.
1259 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
1261 (override_options): Support SSE4.1.
1262 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
1263 (IX86_BUILTIN_BLENDPS): Likewise.
1264 (IX86_BUILTIN_BLENDVPD): Likewise.
1265 (IX86_BUILTIN_BLENDVPS): Likewise.
1266 (IX86_BUILTIN_PBLENDVB128): Likewise.
1267 (IX86_BUILTIN_PBLENDW128): Likewise.
1268 (IX86_BUILTIN_DPPD): Likewise.
1269 (IX86_BUILTIN_DPPS): Likewise.
1270 (IX86_BUILTIN_INSERTPS128): Likewise.
1271 (IX86_BUILTIN_MOVNTDQA): Likewise.
1272 (IX86_BUILTIN_MPSADBW128): Likewise.
1273 (IX86_BUILTIN_PACKUSDW128): Likewise.
1274 (IX86_BUILTIN_PCMPEQQ): Likewise.
1275 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
1276 (IX86_BUILTIN_PMAXSB128): Likewise.
1277 (IX86_BUILTIN_PMAXSD128): Likewise.
1278 (IX86_BUILTIN_PMAXUD128): Likewise.
1279 (IX86_BUILTIN_PMAXUW128): Likewise.
1280 (IX86_BUILTIN_PMINSB128): Likewise.
1281 (IX86_BUILTIN_PMINSD128): Likewise.
1282 (IX86_BUILTIN_PMINUD128): Likewise.
1283 (IX86_BUILTIN_PMINUW128): Likewise.
1284 (IX86_BUILTIN_PMOVSXBW128): Likewise.
1285 (IX86_BUILTIN_PMOVSXBD128): Likewise.
1286 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
1287 (IX86_BUILTIN_PMOVSXWD128): Likewise.
1288 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
1289 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
1290 (IX86_BUILTIN_PMOVZXBW128): Likewise.
1291 (IX86_BUILTIN_PMOVZXBD128): Likewise.
1292 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
1293 (IX86_BUILTIN_PMOVZXWD128): Likewise.
1294 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
1295 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
1296 (IX86_BUILTIN_PMULDQ128): Likewise.
1297 (IX86_BUILTIN_PMULLD128): Likewise.
1298 (IX86_BUILTIN_ROUNDPD): Likewise.
1299 (IX86_BUILTIN_ROUNDPS): Likewise.
1300 (IX86_BUILTIN_ROUNDSD): Likewise.
1301 (IX86_BUILTIN_ROUNDSS): Likewise.
1302 (IX86_BUILTIN_PTESTZ): Likewise.
1303 (IX86_BUILTIN_PTESTC): Likewise.
1304 (IX86_BUILTIN_PTESTNZC): Likewise.
1305 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
1306 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
1307 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
1308 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
1309 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
1311 (bdesc_sse_3arg): Likewise.
1312 (bdesc_2arg): Likewise.
1313 (bdesc_1arg): Likewise.
1314 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
1316 (ix86_expand_sse_4_operands_builtin): New.
1317 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
1318 smaller than 8 bits as the 2nd arg.
1319 (ix86_expand_sse_ptest): New.
1320 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
1321 (ix86_expand_vector_set): Support SSE4.1.
1322 (ix86_expand_vector_extract): Likewise.
1324 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
1325 __SSE4_1__ for -msse4.1.
1327 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
1328 (UNSPEC_INSERTPS): Likewise.
1329 (UNSPEC_DP): Likewise.
1330 (UNSPEC_MOVNTDQA): Likewise.
1331 (UNSPEC_MPSADBW): Likewise.
1332 (UNSPEC_PHMINPOSUW): Likewise.
1333 (UNSPEC_PTEST): Likewise.
1334 (UNSPEC_ROUNDP): Likewise.
1335 (UNSPEC_ROUNDS): Likewise.
1337 * config/i386/i386.opt (msse4.1): New for SSE4.1.
1339 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
1340 (const_pow2_1_to_32768_operand): Likewise.
1342 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
1345 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
1347 (sse4_1_insertps): Likewise.
1348 (*sse4_1_extractps): Likewise.
1349 (sse4_1_ptest): Likewise.
1350 (sse4_1_mulv2siv2di3): Likewise.
1351 (*sse4_1_mulv4si3): Likewise.
1352 (*sse4_1_smax<mode>3): Likewise.
1353 (*sse4_1_umax<mode>3): Likewise.
1354 (*sse4_1_smin<mode>3): Likewise.
1355 (*sse4_1_umin<mode>3): Likewise.
1356 (sse4_1_eqv2di3): Likewise.
1357 (*sse4_1_pinsrb): Likewise.
1358 (*sse4_1_pinsrd): Likewise.
1359 (*sse4_1_pinsrq): Likewise.
1360 (*sse4_1_pextrb): Likewise.
1361 (*sse4_1_pextrb_memory): Likewise.
1362 (*sse4_1_pextrw_memory): Likewise.
1363 (*sse4_1_pextrq): Likewise.
1364 (sse4_1_blendpd): Likewise.
1365 (sse4_1_blendps): Likewise.
1366 (sse4_1_blendvpd): Likewise.
1367 (sse4_1_blendvps): Likewise.
1368 (sse4_1_dppd): Likewise.
1369 (sse4_1_dpps): Likewise.
1370 (sse4_1_movntdqa): Likewise.
1371 (sse4_1_mpsadbw): Likewise.
1372 (sse4_1_packusdw): Likewise.
1373 (sse4_1_pblendvb): Likewise.
1374 (sse4_1_pblendw): Likewise.
1375 (sse4_1_phminposuw): Likewise.
1376 (sse4_1_extendv8qiv8hi2): Likewise.
1377 (*sse4_1_extendv8qiv8hi2): Likewise.
1378 (sse4_1_extendv4qiv4si2): Likewise.
1379 (*sse4_1_extendv4qiv4si2): Likewise.
1380 (sse4_1_extendv2qiv2di2): Likewise.
1381 (*sse4_1_extendv2qiv2di2): Likewise.
1382 (sse4_1_extendv4hiv4si2): Likewise.
1383 (*sse4_1_extendv4hiv4si2): Likewise.
1384 (sse4_1_extendv2hiv2di2): Likewise.
1385 (*sse4_1_extendv2hiv2di2): Likewise.
1386 (sse4_1_extendv2siv2di2): Likewise.
1387 (*sse4_1_extendv2siv2di2): Likewise.
1388 (sse4_1_zero_extendv8qiv8hi2): Likewise.
1389 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
1390 (sse4_1_zero_extendv4qiv4si2): Likewise.
1391 (*sse4_1_zero_extendv4qiv4si2): Likewise.
1392 (sse4_1_zero_extendv2qiv2di2): Likewise.
1393 (*sse4_1_zero_extendv2qiv2di2): Likewise.
1394 (sse4_1_zero_extendv4hiv4si2): Likewise.
1395 (*sse4_1_zero_extendv4hiv4si2): Likewise.
1396 (sse4_1_zero_extendv2hiv2di2): Likewise.
1397 (*sse4_1_zero_extendv2hiv2di2): Likewise.
1398 (sse4_1_zero_extendv2siv2di2): Likewise.
1399 (*sse4_1_zero_extendv2siv2di2): Likewise.
1400 (sse4_1_roundpd): Likewise.
1401 (sse4_1_roundps): Likewise.
1402 (sse4_1_roundsd): Likewise.
1403 (sse4_1_roundss): Likewise.
1404 (mulv4si3): Don't expand for SSE4.1.
1405 (smax<mode>3): Likewise.
1406 (umaxv4si3): Likewise.
1407 (uminv16qi3): Likewise.
1408 (umin<mode>3): Likewise.
1409 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
1411 * doc/extend.texi: Document SSE4.1 built-in functions.
1413 * doc/invoke.texi: Document -msse4.1.
1415 2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
1417 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
1418 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
1419 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
1420 (ASM_SPEC): Add asm_pcrel_spec.
1421 (EXTRA_SPECS): Add asm_pcrel_spec.
1423 2007-05-21 David Daney <ddaney@avtrex.com>
1425 * doc/install.texi (Building a cross compiler): Add requirements
1426 for Java cross compiler.
1428 2007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
1431 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
1432 Add loopno argument. Use evolution_function_is_invariant_rec_p
1433 instead of evolution_function_is_constant_p.
1434 Update calls to evolution_function_is_affine_multivariate_p.
1435 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
1436 Add loopno argument.
1437 * tree-scalar-evolution.c (gather_chrec_stats): Call
1438 evolution_function_is_affine_multivariate_p with a loop
1440 * tree-data-ref.c (analyze_miv_subscript): Likewise.
1441 (analyze_overlapping_iterations): Likewise.
1442 (access_functions_are_affine_or_constant_p): Likewise.
1443 (build_classic_dist_vector_1): If the access functions
1444 are equal, don't do anything.
1446 2007-05-21 Paolo Bonzini <bonzini@gnu.org>
1447 Paolo Carlini <pcarlini@suse.de>
1448 Uros Bizjak <ubizjak@gmail.com>
1450 * c-cppbuiltin.c (c_cpp_builtins): Define
1451 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
1452 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
1453 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
1454 * doc/cpp.texi ([Standard Predefined Macros]): Document.
1456 2007-05-21 Mike Stump <mrs@apple.com>
1458 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
1460 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
1462 2007-05-21 Uros Bizjak <ubizjak@gmail.com>
1464 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
1465 implementation if __OPTIMIZE__ is not defined.
1466 (_mm_alignr_pi8): Ditto.
1467 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
1468 (_mm_inserti_si64): Ditto.
1469 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
1470 (_mm_slli_epi16): Ditto.
1471 (_mm_slli_epi32): Ditto.
1472 (_mm_slli_epi64): Ditto.
1473 (_mm_srai_epi16): Ditto.
1474 (_mm_srai_epi32): Ditto.
1475 (_mm_srli_si128): Ditto.
1476 (_mm_slli_si128): Ditto.
1477 (_mm_srli_epi16): Ditto.
1478 (_mm_srli_epi32): Ditto.
1479 (_mm_srli_epi64): Ditto.
1480 (_mm_extract_epi16): Ditto.
1481 (_mm_insert_epi16): Ditto.
1482 (_mm_shufflehi_epi16): Ditto.
1483 (_mm_shufflelo_epi16): Ditto.
1484 (_mm_shuffle_epi32): Ditto.
1485 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
1487 (_mm_insert_pi16): Ditto.
1489 (_mm_shuffle_pi16): Ditto.
1491 (_mm_shufle_ps): Ditto.
1492 (_mm_prefetch): Ditto.
1494 2007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
1496 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
1497 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
1498 * real.c (encode_i370_single, decode_i370_single,
1499 encode_i370_double, decode_i370_double): Functions removed.
1500 (i370_single_format, i370_double_format): Initializations removed.
1501 (real_maxval, round_for_format, exact_real_truncate, significand_size):
1502 Consider the log2_b field to always be one.
1503 (ieee_single_format, mips_single_format, coldfire_single_format,
1504 ieee_double_format, mips_double_format, coldfire_double_format,
1505 ieee_extended_motorola_format, ieee_extended_intel_96_format,
1506 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
1507 ibm_extended_format, mips_extended_format, ieee_quad_format,
1508 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
1509 decimal_single_format, decimal_double_format, decimal_quad_format,
1510 c4x_single_format, c4x_extended_format, real_internal_format): Remove
1511 initialization of log2_b.
1512 * real.h (i370_single_format, i370_double_format): Declarations removed.
1513 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
1514 field to always be one.
1516 2007-05-21 Andreas Schwab <schwab@suse.de>
1518 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
1519 NOTE_INSN_BASIC_BLOCK_P.
1520 (process_for_unwind_directive): Likewise.
1522 2007-05-21 Nathan Sidwell <nathan@codesourcery.com>
1524 * builtins.c (expand_builtin_setjmp_setup): Update comment.
1525 * function.h (struct function): Move va_list_gpr_size,
1526 va_list_fpr_size, function_frequency to front of bitfields. Add
1528 (current_function_calls_unwind_init): New.
1529 * except.c (expand_builtin_unwind_init): Set
1530 current_function_calls_unwind_init not
1531 current_function_has_nonlocal_label.
1532 * reload1.c (has_nonexceptional_receiver): New.
1533 (reload): Use it and current_function_calls_unwind_init to
1534 determine whether call-saved regs must be saved.
1536 2007-05-20 Jan Hubicka <jh@suse.cz>
1538 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
1539 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
1540 * ddg.c (create_ddg): LIkewise.
1541 * final.c (final): Remove hunk moving line numbernotes around since
1542 they are no longer present at this stage.
1543 (final_scan_insn): Use NOTE_KIND instead of
1544 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
1545 (output_asm_label): Likewise.
1546 * reorg.c (dbr_schedule): Likewise.
1547 * haifa-sched.c (unlink_other_notes): Likewise.
1548 * mode-switching.c (optimize_mode_switching): Likewise.
1549 * graph.c (start_bb): Likewise.
1550 * rtl.def (NOTE): Update description.
1551 * jump.c (squeeze_notes): Delete.
1552 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
1553 NOTE_INSN_BASIC_BLOCK_P when possible.
1554 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
1555 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
1556 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
1557 (dwarf2out_var_location): Likewise.
1558 * cfgbuild.c (make_edges): Likewise.
1559 (find_basic_blocks_1): Likewise.
1560 * function.c (reorder_blocks_1): Likewise.
1561 (epilogue_done): Likewise.
1562 (reposition_prologue_and_epilogue_notes): Likewise.
1563 * print-rtl.c (print_rtx): Likewise; drop code for printing line number
1565 (print_rtl): Likewise.
1566 (print_rtl_single): Likewise.
1567 * gcse.c (insert_insn_start_bb): Likewise.
1568 * alias.c (init_alias_analysis): Likewise.
1569 * calls.c (fixup_tail_calls): Likewise.
1570 * except.c (sjlj_emit_function_enter): Likewise.
1571 * emit-rtl.c (add_insn_after): Likeiwse.
1572 (emit_label_before): Likewise.
1573 (emit_label_after): Likewise.
1574 (emit_note_before, emit_note_after, emit_note): Update
1575 parameter to be enum insn_note; do not deal with source
1577 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
1578 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
1580 (merge_blocks_move_successor_nojumps): Simplify now when
1581 we don't have BLOCK notes.
1582 (try_optimize_cfg): Likewise.
1583 * cfglayout.c (skip_insns_after_block): Likewise.
1584 (record_effective_endpoints): Likewise.
1585 (duplicate_insn_chain): Likewise.
1586 * varasm.c (output_constant_pool_1): Likewise.
1587 * sched-deps.c (sched_analyze): Likewise.
1588 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
1590 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
1591 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
1592 (SET_INSN_DELETED): Simplify.
1593 (NOTE_LINE_NUMBER): Exterminate.
1594 (NOTE_LINE_KIND): New.
1595 (NOTE_INSN_BASIC_BLOCK_P): Update.
1596 (enum insn_note): Simplify.
1597 (GET_NOTE_INSN_NAME) Simplify.
1598 (emit_note_before, emit_note_after, emit_note): Update prototype.
1599 (squeeze_notes): Remove.
1600 * sched-int.h (NOTE_NOT_BB_P): Update.
1601 * resource.c (mark_target_live_regs): Update.
1602 * sched-rgn.c (debug_dependencies): Update.
1603 * sched-vis.c (print_insn): Update.
1604 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
1605 * config/i386/i386.c (ix86_output_function_epilogue): Update.
1606 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
1607 (TARGET_ADJUST_UNROLL_MAX): Likewise.
1608 (split_branches): Update.
1609 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
1611 (sh_adjust_unroll_max): Exterminate.
1612 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
1613 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
1614 (m68hc11_reorg): Likewise.
1615 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
1616 (emit_predicate_relation_info): Update.
1617 (process_for_unwind_directive): Update.
1618 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
1619 (output_call): Update.
1620 * config/pa/pa.c (output_lbranch): Update.
1621 (output_millicode_call): Update.
1622 (output_call): Update.
1623 (pa_combine_instructions): Update.
1624 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
1625 * config/bfin/bfin.c (gen_one_bundle): Update.
1626 * cfgrtl.c (can_delete_note_p): Update.
1627 (delete_insn): Update.
1628 (rtl_merge_blocks): Update.
1629 (commit_one_edge_insertion): Update.
1630 (rtl_verify_flow_info): Update.
1631 * stmt.c (expand_case): Do not call squeeze_notes.
1633 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1640 * c.opt (Wtype-limits): New.
1641 * doc/invoke.texi (Wtype-limits): Document it.
1642 (Wextra): Enabled by -Wextra.
1643 * c-opts.c (c_common_post_options): Enabled by -Wextra.
1644 * c-common.c (shorten_compare): Warn with Wtype-limits.
1646 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
1648 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
1649 inlined function, not as a macro.
1650 (_mm_alignr_pi8): Ditto.
1651 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
1652 (_mm_inserti_si64): Ditto.
1653 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
1654 (_mm_extract_epi16): Ditto.
1655 (_mm_insert_epi16): Ditto.
1656 (_mm_shufflehi_epi16): Ditto.
1657 (_mm_shufflelo_epi16): Ditto.
1658 (_mm_shuffle_epi32): Ditto.
1659 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
1660 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
1662 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
1664 (_m_to_float): Use C89 compatible assignment.
1666 2007-04-20 Martin Michlmayr <tbm@cyrius.com>
1669 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
1671 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1674 * doc/invoke.texi (Wreturn-type): Complete description.
1675 (Wextra): Delete item about return-type warning.
1676 * c-decl.c: Delete redundant Wextra warning.
1678 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
1681 * config/i386/pmmintrin.h: Do not include xmmintrin.h
1682 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
1683 inlined function, not as a macro.
1684 (_mm_prefetch): Ditto.
1686 (_mm_insert_pi16): Ditto.
1688 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
1689 (_m_pshufw): Ditto. Add const to __N argument.
1690 (_mm_shufle_ps): Ditto. Add const to __mask argument.
1691 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
1692 (_mm_slli_epi32): Ditto.
1693 (_mm_srli_si128): Implement as always inlined function, not as a macro.
1694 Add __inline to function declaration.
1695 (_mm_slli_si128): Ditto.
1697 2007-05-19 Uros Bizjak <ubizjak@gmail.com>
1699 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
1700 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
1702 (struct fenv): New structure.
1703 (FP_HANDLE_EXCEPTIONS): New define.
1704 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
1705 (_FP_DECL_EXP): New define.
1706 (FP_INIT_ROUNDMODE): New define.
1707 (FP_ROUNDMODE): New define.
1709 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1711 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
1712 (Wconversion): Update description.
1713 (Wconversion-sign): New.
1714 * c.opt (Wconversion-sign): New.
1715 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
1716 means disabled for C++. Otherwise, take the status of Wconversion.
1717 * c-common.c (conversion_warning): Warn with either Wconversion or
1719 (warnings_for_convert_and_check): Conditions are already checked by
1721 (convert_and_check): Don't check warnings if the conversion failed.
1723 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
1724 Anatoly Sokolov <aesok@dol.ru>
1726 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
1727 avr_epilogue_uses) : Add declaration.
1728 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
1729 * config/avr/constraints.md (R): New constraint.
1730 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
1731 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
1732 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
1733 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
1734 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
1735 call_prologue_saves, epilogue_restores, return_from_epilogue,
1736 return_from_main_epilogue, return_from_interrupt_epilogue,
1737 return_from_naked_epilogue, prologue, epilogue): New patterns.
1738 (jump): Handle symbol reference.
1739 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
1740 avr_output_function_prologue, avr_output_function_epilogue): Remove
1742 (avr_init_machine_status, expand_prologue, expand_epilogue,
1743 avr_asm_function_end_prologue, avr_epilogue_uses,
1744 avr_asm_function_begin_epilogue): New functions.
1745 (prologue_size, epilogue_size, jump_tables_size): Remove global
1747 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1748 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1749 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
1750 (avr_override_options): Initialise init_machine_status.
1751 (output_movhi): Handle all stack pointer loads.
1752 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
1753 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
1754 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
1755 (EPILOGUE_USES) Redefine.
1756 (machine_function) Declare.
1758 2007-05-19 Richard Sandiford <richard@codesourcery.com>
1760 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
1761 Use a single return statement.
1763 2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1766 * builtins.c (do_mpfr_lgamma_r): New.
1767 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
1768 * tree.h (CASE_FLT_FN_REENT): New.
1770 2007-05-18 Geoffrey Keating <geoffk@apple.com>
1772 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
1773 (output_die): Use 'unsigned long' with %x.
1774 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
1775 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
1776 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
1778 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
1780 2007-05-18 H.J. Lu <hongjiu.lu@intel.com>
1785 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
1786 true if function has no argument.
1788 2007-05-18 DJ Delorie <dj@redhat.com>
1790 * config/mips/mips.c (mips_offset_within_alignment_p): New.
1791 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
1793 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
1795 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
1796 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
1797 count_trailing_zeros.
1798 (__i386__): Implement count_leading_zeros using __builtin_clz().
1799 Implement count_trailing_zeros usign __builtin_ctz().
1801 2007-05-18 Richard Sandiford <richard@codesourcery.com>
1803 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
1805 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
1808 * expr.c (emit_move_change_mode): Change mode of push operands here.
1810 2007-05-17 Ian Lance Taylor <iant@google.com>
1812 PR tree-optimization/31953
1813 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
1815 (set_value_range_to_null): Call set_value_range_to_value.
1816 (extract_range_from_comparison): Likewise.
1818 2007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1820 * toplev.c (print_version): Output GMP/MPFR version info.
1822 * builtins.c (CASE_MATHFN_REENT): New macro.
1823 (mathfn_built_in): Use it.
1824 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
1825 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
1826 BUILT_IN_LGAMMAL_R): New.
1827 * doc/extend.texi: Document new builtins.
1830 * builtins.c (do_mpfr_remquo): New.
1831 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
1832 (fold_builtin_3): Handle BUILT_IN_REMQUO.
1835 * builtins.c (fold_builtin_1): Handle y0, y1.
1836 (fold_builtin_2): Handle yn.
1839 * builtins.c (do_mpfr_bessel_n): New.
1840 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
1841 (fold_builtin_2): Handle BUILT_IN_JN.
1843 2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
1846 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
1847 TYPE_PRECISION (intmax_type_node).
1849 2007-05-17 Steve Ellcey <sje@cup.hp.com>
1852 * reload.c (subst_reloads): Remove checking.
1854 2007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1856 PR rtl-optimization/31691
1857 * combine.c (simplify_set): Build a new src pattern instead of
1858 substituting its operands in the COMPARE case.
1860 2007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
1862 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
1863 (execute_vrp): Preserve loops through jump threading.
1864 * tree-ssa-threadupdate.c (thread_single_edge,
1865 dbds_continue_enumeration_p, determine_bb_domination_status,
1866 thread_through_loop_header): New functions.
1867 (create_edge_and_update_destination_phis,
1868 create_edge_and_update_destination_phis): Set loops for the new blocks.
1869 (prune_undesirable_thread_requests): Removed.
1870 (redirect_edges): Do not pretend that redirect_edge_and_branch can
1872 (thread_block): Do not call prune_undesirable_thread_requests.
1874 (mark_threaded_blocks): Select edges to thread here.
1875 (thread_through_all_blocks): Take may_peel_loop_headers argument.
1876 Thread edges through loop headers independently.
1877 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
1878 * tree-pass.h (TODO_mark_first_instance): New.
1879 (first_pass_instance): Declare.
1880 * cfghooks.c (duplicate_block): Put the block to the original loop
1881 if copy is not specified.
1882 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
1883 jump threading. Pass may_peel_loop_headers to
1884 thread_through_all_blocks according to first_pass_instance.
1885 * cfgloop.h (create_preheader): Declare.
1886 * tree-flow.h (thread_through_all_blocks): Declaration changed.
1887 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
1888 * passes.c (first_pass_instance): New variable.
1889 (next_pass_1): Set TODO_mark_first_instance.
1890 (execute_todo): Set first_pass_instance.
1892 2007-05-17 Uros Bizjak <ubizjak@gmail.com>
1894 PR tree-optimization/24659
1895 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
1896 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
1897 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
1898 OTI_vec_pack_ufix_trunc.
1899 (vec_unpacks_float_hi_optab): Define new macro.
1900 (vec_unpacks_float_lo_optab): Ditto.
1901 (vec_unpacku_float_hi_optab): Ditto.
1902 (vec_unpacku_float_lo_optab): Ditto.
1903 (vec_pack_sfix_trunc_optab): Ditto.
1904 (vec_pack_ufix_trunc_optab): Ditto.
1905 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
1906 and vec_pack_[s|u]fix_trunc_optab using
1907 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
1908 * tree-vectorizer.c (supportable_widening_operation): Handle
1909 FLOAT_EXPR and CONVERT_EXPR. Update comment.
1910 (supportable_narrowing_operation): New function.
1911 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
1912 * tree-vect-transform.c (vectorizable_conversion): Handle
1913 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
1914 (vect_gen_widened_results_half): Move before vectorizable_conversion.
1915 (vectorizable_type_demotion): Call supportable_narrowing_operation()
1916 to check for target support.
1917 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
1918 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
1919 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
1920 for VEC_PACK_FIX_TRUNC_EXPR.
1921 (expand_binop): Special case mode of the result for
1922 vec_pack_[u|s]fix_trunc_optab.
1923 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
1924 vec_pack_[u|s]fix_trunc_optab.
1926 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
1927 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
1928 * tree-pretty-print.c (dump_generic_node): Handle
1929 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
1930 VEC_PACK_FIX_TRUNC_EXPR.
1932 * expr.c (expand_expr_real_1): Ditto.
1933 * tree-inline.c (estimate_num_insns_1): Ditto.
1934 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1936 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
1937 (vec_unpacks_float_lo_v8hi): Ditto.
1938 (vec_unpacku_float_hi_v8hi): Ditto.
1939 (vec_unpacku_float_lo_v8hi): Ditto.
1940 (vec_unpacks_float_hi_v4si): Ditto.
1941 (vec_unpacks_float_lo_v4si): Ditto.
1942 (vec_pack_sfix_trunc_v2df): Ditto.
1944 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
1946 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
1947 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
1948 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
1949 [vec_pack_ufix_trunc]: Ditto.
1950 [vec_unpacks_float_hi]: Ditto.
1951 [vec_unpacks_float_lo]: Ditto.
1952 [vec_unpacku_float_hi]: Ditto.
1953 [vec_unpacku_float_lo]: Ditto.
1955 2007-05-16 Uros Bizjak <ubizjak@gmail.com>
1957 * soft-fp/README: Update for new files.
1958 * soft-fp/floattisf.c: New file.
1959 * soft-fp/floattidf.c: New file.
1960 * soft-fp/floattitf.c: New file.
1961 * soft-fp/floatuntisf.c: New file.
1962 * soft-fp/floatuntidf.c: New file.
1963 * soft-fp/floatuntitf.c: New file.
1964 * soft-fp/fixsfti.c: New file.
1965 * soft-fp/fixdfti.c: New file.
1966 * soft-fp/fixtfti.c: New file.
1967 * soft-fp/fixunssfti.c: New file.
1968 * soft-fp/fixunsdfti.c: New file.
1969 * soft-fp/fixunstfti.c: New file.
1970 * soft-fp/extendxftf.c: New file.
1971 * soft-fp/trunctfxf.c: New file.
1973 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
1974 (__trunctfxf2): Ditto.
1976 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
1977 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
1978 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
1979 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
1980 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
1981 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
1983 * config/i386/t-fprules-softfp64: New file.
1984 * config/i386/sfp-machine.h: New file.
1985 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
1986 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
1987 and soft-fp/t-softfp to tmake_file.
1988 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1989 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
1991 * config/i386/t-linux64 (softfp_wrap_start): New.
1992 (softfp_wrap_end): New.
1993 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
1994 supported for TARGET_64BIT.
1996 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
1998 * c-common.c (c_common_signed_or_unsigned_type): Emulate
1999 c_common_unsigned_type behavior.
2001 2007-05-16 Paolo Bonzini <bonzini@gnu.org>
2003 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
2006 2007-05-16 Eric Christopher <echristo@apple.com>
2008 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
2009 saving after stack push. Set sp_offset whenever we push.
2010 (rs6000_emit_epilogue): Move altivec register restore before
2013 2007-05-16 Richard Sandiford <richard@codesourcery.com>
2015 * configure.ac: Allow sysroots to be relocated under $prefix as
2016 well as $exec_prefix.
2017 * configure: Regenerate.
2019 2007-05-16 Richard Sandiford <richard@codesourcery.com>
2023 2007-05-12 Richard Sandiford <richard@codesourcery.com>
2025 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
2026 (gcc_tooldir): Likewise.
2027 * configure: Regenerate.
2028 * Makefile.in (libsubdir_to_prefix): New variable, based on the
2029 old configure.ac gcc_tooldir setting.
2030 (prefix_to_exec_prefix): New variable.
2031 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
2032 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
2034 2007-05-14 Janis Johnson <janis187@us.ibm.com>
2036 * c-typeck.c (build_binary_op): Return early for error.
2038 2007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
2040 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
2041 struct nb_iter_bound.
2042 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
2043 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
2044 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
2045 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
2046 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
2047 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
2048 (del_scev_info): Use ggc_free.
2049 (scev_initialize): Allocate scalar_evolution_info in gc memory.
2050 * loop-init.c: Include ggc.h.
2051 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
2052 (loop_optimizer_finalize): Use ggc_free.
2053 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
2054 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
2055 pass_iv_optimize): Add TODO_ggc_collect.
2056 * function.h (struct function): Remove skip marker from x_current_loops.
2057 * cfgloop.c: Include ggc.h.
2058 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
2060 (establish_preds): Vector superloops is gc allocated.
2061 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
2063 (flow_loops_find): Vector larray is gc allocated.
2064 (loop_exit_free): Use ggc_free.
2065 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
2066 that head of exits list is now not a part of struct loop.
2067 (record_loop_exits): Allocate exits table in gc memory.
2068 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
2069 head of exits list is now not a part of struct loop.
2070 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
2071 struct loop_exit): Add GTY marker.
2072 (struct loop): Add GTY marker. Make superloops vector gc allocated.
2073 Add skip marker to aux field. Make head of exits list a separate
2075 (struct loops): Add GTY marker. Make larray vector gc allocated.
2076 Add param marker to exits table.
2077 (get_loops): Type changed.
2078 * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
2080 (cfgloop.o, loop-init.o): Add ggc.h dependency.
2081 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
2082 * basic-block.h (struct basic_block_def): Remove skip marker from
2085 2007-05-14 Uros Bizjak <ubizjak@gmail.com>
2087 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
2088 of 0 in the call to expand_expr().
2089 (expand_builtin_mathfn_3): Ditto.
2090 (expand_builtin_interclass_mathfn): Ditto.
2091 (expand_builtin_cexpi): Ditto.
2092 (expand_builtin_int_roundingfn): Ditto.
2093 (expand_builtin_int_roundingfn_2): Ditto.
2094 (expand_builtin_pow): Ditto.
2095 (expand_builtin_powi): Ditto.
2096 (expand_builtin_bswap): Ditto.
2097 (expand_builtin_unop): Ditto.
2098 (expand_builtin_fabs): Ditto.
2099 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
2100 the call to expand_expr().
2101 (expand_builtin_sync_operation): Ditto.
2102 (expand_builtin_compare_and_swap): Ditto.
2103 (expand_builtin_lock_test_and_set): Ditto.
2104 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
2105 instead of 0 in the call to expand_expr().
2106 (expand_builtin_extract_return_addr): Ditto.
2107 (expand_builtin_eh_return): Ditto.
2108 (expand_eh_return): Ditto.
2109 * explow.c (expr_size): Ditto.
2110 * expr.c (optimize_bitfield_assignment_op): Ditto.
2111 (expand_assignement): Ditto.
2112 (store_expr): Ditto.
2113 (store_field): Ditto.
2114 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
2115 the call to expand_expr().
2116 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
2117 in the call to expand_expr().
2118 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
2119 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
2120 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
2122 * optabs.c (expand_vec_shift_expr): Ditto.
2123 (expand_vec_cond_expr): Ditto.
2124 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
2125 call to expand_expr().
2126 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
2127 in the call to expand_expr().
2129 2007-05-14 Dave Korn <dave.korn@artimi.com>
2131 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
2133 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
2135 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
2136 instead of c_common_unsigned_type.
2137 (c_common_unsigned_type): Remove.
2138 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
2139 c_common_unsigned_type.
2140 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
2141 c_common_unsigned_type.
2142 * c-common.h (c_common_unsigned_type): Remove.
2143 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
2144 c_common_unsigned_type.
2145 * c-format.c (check_format_types): Use unsigned_type_for instead of
2146 c_common_unsigned_type.
2147 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
2148 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
2149 c_common_unsigned_type.
2150 * convert.c (convert_to_integer): Use unsigned_type_for instead of
2151 lang_hooks.types.unsigned_type.
2152 * expmed.c (make_tree): Use unsigned_type_for instead of
2153 lang_hooks.types.unsigned_type.
2154 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
2155 lang_hooks.types.unsigned_type.
2156 (build_range_check): Likewise.
2157 (fold_unary): Likewise.
2158 (fold_binary): Likewise.
2159 (fold_ternary): Likewise.
2160 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
2161 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
2162 * tree.c (get_unsigned_type): New.
2163 (unsigned_type_for): Use get_unsigned_type instead of
2164 lang_hooks.types.unsigned_type.
2166 2007-05-14 Kazu Hirata <kazu@codesourcery.com>
2168 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
2169 to m68k_get_function_kind. Update its prototype.
2170 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
2172 (m68k_interrupt_function_p): Return enum m68k_function_type
2173 instead of bool. Rename to m68k_get_function_kind.
2174 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
2176 (m68k_compute_frame_layout): Don't mark any register for save
2177 if an interrupt_thread attribute is specified.
2178 (m68k_hard_regno_rename_ok): Update a use of
2179 m68k_interrupt_function_p.
2180 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
2181 m68k_interrupt_function_p.
2182 (m68k_function_type): New.
2183 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
2184 for a function with an interrupt_thread attribute.
2185 * doc/extend.texi: Document the interrupt_thread attribute.
2187 2007-05-13 Daniel Berlin <dberlin@dberlin.org>
2189 Fix PR tree-optimization/31911
2190 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
2191 if they didn't change the expression.
2193 2007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
2195 * tree-scalar-evolution.c (resolve_mixers): Exported.
2196 * tree-scalar-evolution.h (resolve_mixers): Declare.
2197 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
2198 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
2199 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
2200 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
2201 init_array_ref, init_pointer_ref, analyze_indirect_ref,
2202 strip_conversion, analyze_offset_expr, address_analysis,
2203 object_analysis, analyze_offset): Removed.
2204 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
2205 split_constant_offset, canonicalize_base_object_address,
2206 object_address_invariant_in_loop_p, disjoint_objects_p,
2207 dr_may_alias_p, dr_address_invariant_p): New functions.
2208 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
2209 and dr_analyze_alias.
2210 (initialize_data_dependence_relation): Use dr_may_alias_p
2211 and object_address_invariant_in_loop_p.
2212 (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
2214 (find_data_references_in_stmt): Restrict the analysis of data references
2215 to the given loop nest.
2216 (find_data_references_in_loop): Made static. Pass loop nest to
2217 find_data_references_in_stmt.
2218 (compute_data_dependences_for_loop): Use DR_VOPS.
2219 (free_data_ref): Free DR_VOPS.
2220 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
2221 (struct innermost_loop_behavior): ... new.
2222 (struct base_object_info): Replaced by ...
2223 (struct indices): ... new.
2224 (struct dr_alias): New.
2225 (enum data_ref_type): Removed.
2226 (struct data_reference): Consist of struct innermost_loop_behavior,
2227 struct indices and struct dr_alias.
2228 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
2229 (DR_MEMTAG): Renamed to ...
2230 (DR_SYMBOL_TAG): ... this.
2231 (find_data_references_in_loop): Declaration removed.
2232 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
2233 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
2234 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
2235 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
2237 2007-05-13 Revital Eres <eres@il.ibm.com>
2239 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
2240 which walks virtual def-use chains to find redundant stores.
2241 (dse_optimize_stmt): Call it.
2243 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
2245 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
2246 * passes.c (init_optimization_passes): Move pass_jump_bypass
2249 * basic-block.h (bb_has_eh_pred): Fix style issue.
2251 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
2253 PR rtl-optimization/31848
2254 * loop-invariant.c (move_invariant_reg): If we move an insn
2255 with a REG_EQUAL note, and that insn is not always executed,
2256 remove the REG_EQUAL note.
2258 2007-05-12 Richard Guenther <rguenther@suse.de>
2260 PR tree-optimization/31797
2261 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
2262 propagate into a stmt that has volatile ops.
2264 2007-05-12 Richard Sandiford <richard@codesourcery.com>
2266 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
2267 (gcc_tooldir): Likewise.
2268 * configure: Regenerate.
2269 * Makefile.in (libsubdir_to_prefix): New variable, based on the
2270 old configure.ac gcc_tooldir setting.
2271 (prefix_to_exec_prefix): New variable.
2272 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
2273 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
2275 2007-05-11 Silvius Rus <rus@google.com>
2277 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
2278 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
2279 * c-common.h (strict_aliasing_warning): Change return type.
2280 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
2281 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
2282 (build_c_cast): Condition call to strict_aliasing_warning.
2283 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
2284 * flags.h (set_Wstrict_aliasing): Declare.
2285 * opts.c (set_Wstrict_alising): Define, add call to.
2286 * tree-flow.h (strict_aliasing_warning_backend): Declare.
2287 * tree-ssa-alias-warnings.c: New file.
2288 * tree-ssa-alias.c (compute_may_aliases): Add call to
2289 strict_aliasing_warning_backend.
2291 2007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
2293 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
2294 Use loop_depth and loop_outer accessor functions.
2295 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
2296 determine_invariantness_stmt, move_computations_stmt): Ditto.
2297 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
2298 add_loop, loopify, unloop, fix_loop_structure): Ditto.
2299 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
2300 * tree-scalar-evolution.c (interpret_loop_phi,
2301 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
2302 instantiate_parameters_1, scev_const_prop): Ditto.
2303 * cfghooks.c (make_forwarder_block): Ditto.
2304 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
2305 * modulo-sched.c (loop_canon_p): Ditto.
2306 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
2307 slpeel_can_duplicate_loop_p): Ditto.
2308 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
2309 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
2310 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
2311 cancel_loop, verify_loop_structure): Ditto.
2312 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
2313 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
2314 superloops vector instead of "pred" array.
2315 (establish_preds): Take father loop as an argument. Initialize the
2317 (flow_loop_tree_node_add): Pass father loop to establish_preds. Do not
2318 initialize loop->outer.
2319 (flow_loop_tree_node_remove): Truncate the superloops vector.
2320 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
2321 "pred" merged to "superloops" vector.
2322 (loop_depth, loop_outer): New.
2323 (fel_init): Use loop_outer.
2325 2007-05-11 Jan Hubicka <jh@suse.cz>
2327 * cgraphunit.c: Include gt-cgraphunit.h
2328 (static_ctors, static_dtors): New static vars.
2329 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
2330 based on implementation in c-common.c
2331 (cgraph_finalize_function): Call record_cdtor_fn.
2332 (cgraph_optimize): Call cgraph_build_cdtor_fns.
2333 * decl.c (finish_function): Do not call c_record_cdtor_fn.
2334 (c_write_global_declarations): Do not call c_build_cdtor_fns.
2335 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
2336 build_cdtor, c_build_cdtor_fns): Remove.
2337 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
2338 c_build_cdtor_fns): Remove prototype.
2340 2007-05-11 Paolo Carlini <pcarlini@suse.de>
2343 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
2344 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
2345 * builtins.c (fold_builtin_memchr): New.
2346 (expand_builtin_memchr): Call the latter.
2347 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
2348 * doc/extend.texi ([Other built-in functions provided by GCC]):
2351 2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
2353 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
2354 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
2355 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
2356 PFPO_OP1_TYPE_SHIFT): Constants added.
2357 (DFP_ALL): Mode macro defined.
2358 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
2359 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
2360 Insn definitions added.
2361 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
2362 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
2365 2007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
2367 PR tree-optimization/31885
2368 * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
2370 (automatically_generated_chrec_p): Return false for NULL.
2372 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
2374 * config/bfin/bfin.h (MOVE_RATIO): Define.
2376 2007-05-10 Richard Sandiford <richard@codesourcery.com>
2378 * config.gcc (sparc-wrs-vxworks): New target.
2379 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
2380 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
2381 * config/sparc/sparc.h: Include vxworks-dummy.h.
2382 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
2383 include LABEL_REFs too.
2384 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
2385 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
2387 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
2389 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
2390 (sparc_emit_call_insn): New function.
2391 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
2392 functions when generating VxWorks PIC.
2393 * config/sparc/sparc.md (vxworks_load_got): New pattern.
2394 (call, call_value): Use sparc_emit_call_insn instead of
2397 2007-05-09 Bob Wilson <bob.wilson@acm.org>
2399 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
2401 2007-05-09 Bob Wilson <bob.wilson@acm.org>
2403 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
2404 for floating-point values if HOST_BITS_PER_LONG > 32. Use split_double
2405 instead of operand_subword.
2407 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
2409 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
2410 * config/bfin/bfin.c (bfin_local_alignment): New function.
2411 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
2413 2007-05-08 Chao-ying Fu <fu@mips.com>
2415 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
2416 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
2417 (smsub_widen_optab, umsub_widen_optab): Define.
2418 * optabs.c (init_optabs): Initialize smsub_widen_optab and
2420 * genopinit.c (optabs): Fill in smsub_widen_optab and
2422 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
2423 and umsub_widen_optab to implement multiply-subtract sequences.
2424 * config/mips/mips.md (*msac<u>_di): Rename to...
2425 (<u>msubsidi4): ...this. Extend condition to include
2426 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
2427 of operand 0 to "ka" and use the three-operand form of msub<u>
2429 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
2432 2007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
2434 PR rtl-optimization/28011
2435 * reload.c (push_reload): Set dont_share if IN appears in OUT
2436 also when IN is a PLUS rtx.
2437 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
2440 2007-05-08 Kazu Hirata <kazu@codesourcery.com>
2442 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
2443 call unshare_all_decls.
2444 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
2445 (unshare_all_decls): Remove.
2447 2007-05-08 Simon Martin <simartin@users.sourceforge.net>
2450 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
2453 2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
2454 Nigel Stephens <nigel@mips.com>
2456 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
2457 Update comments and all uses.
2458 (MIN_FPRS_PER_FMT): Define.
2459 * config/mips/mips.c (function_arg): Fix to correctly handle
2460 the -mips32r2 -mfp64 -mabi=32 case.
2461 (override_options): Enable use of odd-numbered registers for
2462 SFmode values on MIPS32.
2463 (mips_save_reg_p): Save whole floating-point register pair if
2464 either half is used.
2465 (compute_frame_size): Fix comment.
2467 2007-05-08 Jie Zhang <jie.zhang@analog.com>
2469 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
2470 argument of type bool.
2471 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
2472 argument. Safely select temporary P register according to it.
2473 (do_link): Change call site of add_to_reg accordingly.
2474 (do_unlink): Add epilogue_p as a fourth argument and pass it
2476 (expand_interrupt_handler_epilogue): Change call of do_unlink
2478 (bfin_expand_prologue): Add a third argument sibcall_p.
2479 * config/bfin/bfin.md (epilogue): Change call of
2480 bfin_expand_epilogue accordingly.
2481 (sibcall_epilogue): Likewise.
2482 (eh_return_internal): Likewise.
2484 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
2485 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
2486 * config/bfin/bfin.c (bfin_handle_option): Handle
2487 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
2488 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
2489 Support bf534, bf536 and bf561.
2490 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
2492 2007-05-08 Uros Bizjak <ubizjak@gmail.com>
2495 * config/i386/i386.c (ix86_function_regparm): Process local
2496 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
2498 2007-05-07 Mike Stump <mrs@apple.com>
2500 * doc/invoke.texi (Warning Options): Document that -Wempty-body
2501 also checks for and while statements in C++.
2503 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
2505 * gcc.c (at_file_supplied): New variable.
2506 (main): Set it if we expanded argv.
2507 (do_spec_1): Pass an @-file to the linker if we were called with
2508 an @-file argument and HAVE_GNU_LD.
2509 * collect2.c (at_file_supplied): New variable.
2510 (response_file): New variable.
2511 (collect_exit): Unlink response_file if necessary.
2512 (handler): Likewise.
2513 (do_wait): Likewise.
2514 (main): Set at_file_supplied if we expanded argv.
2515 (collect_execute): Pass an @-file to subprocesses if we were called
2516 with an @-file argument.
2517 * configure.ac: Add define for HAVE_GNU_LD.
2518 * configure: Regenerate.
2519 * config.in: Regenerate.
2521 2007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
2523 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
2529 2007-05-07 Jayant Sonar <jayants@kpitcummins.com>
2531 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2532 (TARGET_ENCODE_SECTION_INFO): Re-define.
2533 (m32c_encode_section_info): New
2534 (function_vector_handler): New
2535 (current_function_special_page_vector): New
2536 (m32c_special_page_vector_p): New.
2537 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
2539 * config/m32c/jump.md: Added instruction JSRS for functions
2540 with attribute "function_vector".
2541 * doc/extend.texi (function_vector): Added description
2542 for M16C, M32C targets.
2544 2007-05-07 DJ Delorie <dj@redhat.com>
2547 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
2548 ashrpsi3, lshrpsi3): Update shift count constraint.
2550 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2551 Nathan Froyd <froydnj@codesourcery.com>
2554 * c-incpath.c (add_path): Strip trailing path separators.
2556 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
2558 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
2559 Free dominance info before purging EH edges.
2560 (eliminate_degenerate_phis): Likewise.
2561 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
2563 2007-05-07 Jan Hubicka <jh@suse.cz>
2565 * gimplify.c (gimplify_expr): Do not crash when folding
2566 (void *)(int)&a + 4.
2568 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2571 * c-opts.c (lang_fortran): Make it non static.
2572 * c-common.h (lang_fortran): New prototype.
2573 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
2574 -lang-fortran option was passed by the driver.
2576 2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
2578 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
2579 of ASSERT_CHECKING. Tweak message.
2581 2007-05-06 Revital Eres <eres@il.ibm.com>
2584 * loop-unroll.c (insert_var_expansion_initialization):
2585 Initialize the expansions with -zero instead of +zero.
2587 2007-05-05 Aurelien Jarno <aurelien@aurel32.net>
2589 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
2590 into pic and non-pic versions. Mark r19 as used for
2591 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
2592 for tgd_load, tld_load and tie_load .
2593 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
2594 version of tgd_load, tld_load and tie_load depending on the
2597 2007-05-04 Ulrich Drepper <drepper@redhat.com>
2598 Jakub Jelinek <jakub@redhat.com>
2600 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
2601 (__do_global_dtors_aux): Use more paranoid loop to run
2602 destructors if HIDDEN_DTOR_LIST_END.
2603 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
2605 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2607 * varasm.c (align_variable): Don't increase alignment for
2608 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
2609 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
2611 2007-05-04 Josh Conner <jconner@apple.com>
2613 * basic-block.h (cdi_direction): Assign values to all enumeration
2615 (dom_computed): Remove.
2616 (dom_info_state): New.
2617 (set_dom_info_availability): New.
2618 * tree-ssa-loop-im.c (determine_invariantness): Initialize
2619 walk_data.dom_direction.
2620 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
2621 instead of dom_computed[].
2622 (split_edge): Likewise.
2623 (create_basic_block): Likewise.
2624 (merge_blocks): Likewise.
2625 * ifcvt.c (find_if_header): Likewise.
2626 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
2627 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2628 * tree-ssa.c (verify_ssa): Likewise.
2629 * tree-cfg.c (tree_verify_flow_info): Likewise.
2630 (remove_edge_and_dominated_blocks): Likewise.
2631 * dominance.c (dom_computed): Make static.
2632 (calc_dfs_tree_nonrec): Change third param to a bool.
2633 (calc_dfs_tree): Change second param to a bool.
2634 (calc_idioms): Change second param to a bool. Use
2635 dom_convert_dir_to_idx.
2636 (init_dom_info): Validate dir before using.
2637 (dom_convert_dir_to_idx): New.
2638 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
2639 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
2640 (free_dominance_info): Use dom_convert_dir_to_idx.
2641 (get_immediate_dominator): Likewise.
2642 (set_immediate_dominator): Likewise.
2643 (get_dominated_by): Likewise.
2644 (redirect_immediate_dominators): Likewise.
2645 (nearest_common_denominator): Likewise.
2646 (dominated_by_p): Likewise.
2647 (bb_dom_dfs_in): Likewise.
2648 (bb_dom_dfs_out): Likewise.
2649 (recount_dominator): Likewise.
2650 (iterate_fix_dominators): Likewise.
2651 (add_to_dominance_info): Likewise.
2652 (delete_from_dominance_info): Likewise.
2653 (first_dom_son): Likewise.
2654 (next_dom_son): Likewise.
2655 (dom_info_available_p): Likewise.
2656 (dom_info_state): New.
2657 (set_dom_info_availability): New.
2659 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
2661 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
2663 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
2665 2007-05-04 Bob Wilson <bob.wilson@acm.org>
2667 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
2668 (subdi3, subdi_carry): Delete.
2670 2007-05-04 Jan Hubicka <jh@suse.cz>
2671 Richard Guenther <rguenther@suse.de>
2673 * opts.c (decode_options): Do not fiddle with inlining
2674 parameters in case of optimizing for size.
2675 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
2676 for size do nothing.
2677 (cgraph_decide_inlining_of_small_function): When optimizing for
2678 size never inline functions increasing caller size.
2679 (cgraph_early_inlining): Inline for size when optimizing for size.
2681 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
2683 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
2684 logical operations piecewise.
2685 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
2686 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
2687 subdi_sesidi_di): Delete.
2688 (add_with_carry): Produce carry in CC instead of a DREG to shorten
2689 the generated sequence. Allow three-reg add in constraints. Rewrite
2690 the rtl expression for carry to avoid zero_extend of a constant.
2691 (sub_with_carry): New pattern.
2692 (adddi3, subdi3): Change into define_expand. For subtract, generate a
2693 different sequence not involving jumps.
2694 (notbi): Now a named pattern.
2696 2007-05-04 Bradley Lucier <lucier@math.purdue.edu>
2698 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
2699 Add the note about a significant loss of accuracy of some
2700 mathematical routines when these options are used.
2702 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2704 * haifa-sched.c (rtx_vec_t): New typedef.
2705 (contributes_to_priority_p): Extract piece of priority () into new
2707 (priority): Use the function. Add assertion.
2708 (rank_for_schedule, set_priorities): Add assertion to check that
2709 insn's priority is initialized.
2710 (clear_priorities, calc_priorities): Change signature. Make it update
2711 all relevant insns. Update all callers ('add_to_speculative_block ()'
2712 and 'create_block_check_twin ()').
2713 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
2714 Add new field 'priority_status'.
2715 (INSN_PRIORITY_STATUS): New macro.
2716 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
2718 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2720 * sched-ebb.c (debug_ebb_dependencies): New static function.
2721 (init_ready_list): Use it.
2723 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
2724 with changed signature and 'debug_rgn_dependencies ()'.
2725 (debug_rgn_dependencies): New static function.
2726 (init_ready_list): Use it.
2728 * sched-int.h (debug_dependencies): Declare.
2730 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
2732 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
2734 2007-05-04 Dirk Mueller <dmueller@suse.de>
2736 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
2738 2007-05-03 Jan Hubicka <jh@suse.cz>
2740 * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
2741 for pointer type in more cases than before.
2743 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
2745 * tree-object-size.c (plus_expr_object_size): When operand size is
2746 unknown, return unknown.
2748 2007-05-03 Dirk Mueller <dmueller@suse.de>
2750 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
2752 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
2755 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
2757 2007-05-03 Janis Johnson <janis187@us.ibm.com>
2759 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
2761 2007-05-03 Joseph Myers <joseph@codesourcery.com>
2763 * config/soft-fp/double.h, config/soft-fp/extended.h,
2764 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
2765 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
2766 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
2767 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
2770 2007-05-03 Ian Lance Taylor <iant@google.com>
2772 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2773 MASK_PPC_GFXOPT for 8540 or 8548.
2775 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
2777 * tree-vect-transform.c (vect_update_inits_of_drs): Use
2778 vect_print_dump_info() to output debug information.
2780 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
2783 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
2784 operands of size 2 when operand is not MEM_P.
2786 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
2788 PR tree-optimization/30565
2789 * lambda-code.c (perfect_nestify): Fix updating of dominators.
2791 2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
2793 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
2794 (umulsi3_highpart): Use them.
2795 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
2796 for final accumulator to D regisster tranfser.
2798 2007-05-03 Dorit Nuzman <dorit@il.ibm.com>
2800 PR tree-optimization/31699
2801 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
2803 (vect_enhance_data_refs_alignment): Compute peel amount using
2804 TYPE_VECTOR_SUBPARTS instead of vf.
2805 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
2807 2007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
2810 * system.h: Remove inclusion of double-int.h
2811 * tree.h: Include double-int.h
2812 * gengtype.c: Likewise
2813 * cfgloop.h: Likewise
2814 * Makefile.in: Adjust dependencies on double-int.h
2816 2007-05-02 Eric Christopher <echristo@apple.com>
2818 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
2819 -shared to -Zdynamiclib.
2821 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
2824 * c-common.c (strip_pointer_or_array_types): New function.
2825 * c-common.h (strip_pointer_or_array_types): New function declaration.
2827 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
2829 PR tree-optimization/31771
2830 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
2832 2007-05-02 Paul Brook <paul@codesourcery.com>
2834 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
2836 2007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
2839 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
2842 2007-05-02 Nick Clifton <nickc@redhat.com>
2844 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
2846 2007-05-02 Richard Guenther <rguenther@suse.de>
2848 PR tree-optimization/31146
2849 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2850 argument, single_use_p. If we have a single use that is
2851 a conversion to the definition rhs type, propagate that rhs.
2852 (forward_propagate_addr_expr): Pass single_use_p argument
2853 to forward_propagate_addr_expr_1.
2855 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
2857 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
2860 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2862 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
2863 'AMD Family 10 core'.
2865 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2867 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
2868 and athlon64-sse3 as improved versions of k8, opteron and athlon64
2869 with SSE3 instruction set support.
2870 * doc/invoke.texi: Likewise.
2872 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2874 * config/i386/i386.c (override_options): Tuning 32-byte loop
2875 alignment for amdfam10 architecture. Increasing the max loop
2876 alignment to 24 bytes.
2878 2007-05-01 Kazu Hirata <kazu@codesourcery.com>
2880 * config/m68k/constraints.md: New.
2881 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
2882 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2883 EXTRA_CONSTRAINT): Remove.
2884 * config/m68k/m68k.md: Include constraints.md.
2885 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
2887 2007-05-01 Ian Lance Taylor <iant@google.com>
2889 PR tree-optimization/31739
2890 * tree-vrp.c (vrp_val_is_max): New static function.
2891 (vrp_val_is_min): New static function.
2892 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
2894 (set_value_range): Use vrp_val_is_{max,min}.
2895 (extract_range_from_assert): Likewise.
2896 (extract_range_from_binary_expr): Likewise.
2897 (extract_range_from_unary_expr): Likewise.
2898 (dump_value_range, vrp_meet): Likewise.
2899 (vrp_visit_phi_node): Likewise.
2900 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
2902 2007-05-01 Mark Mitchell <mark@codesourcery.com>
2904 * config/i386/gmon-sol2.c (size_t): New type.
2905 (intptr_t): Likewise.
2906 (s_textsize): Declare as size_t.
2908 (monstartup): Use size_t for sizes.
2909 (_mcount): Save and restore registers.
2910 (internal_mcount): Pass 0 as the first argument to monstartup
2912 (moncontrol): Convert pointer to appropriately sized integer
2913 before passing to profil.
2915 2007-05-01 Joseph Myers <joseph@codesourcery.com>
2917 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
2918 __NO_FPRS__, not just if _SOFT_DOUBLE.
2919 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
2920 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
2921 also for E500 double.
2922 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
2923 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
2926 2007-05-01 Richard Guenther <rguenther@suse.de>
2928 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
2931 2007-05-01 Joseph Myers <joseph@codesourcery.com>
2933 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
2935 2007-05-01 Jan Hubicka <jh@suse.cz>
2937 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
2940 2007-05-01 Jan Hubicka <jh@suse.cz>
2942 * tree.h (maybe_fold_offset_to_component_ref): Remove.
2943 (maybe_fold_offset_to_reference): Declare.
2944 * fold-const.c (fold_unary): Do not fold
2945 (type *)&A into &A->field_of_type_and_offset_0
2946 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
2947 size is unknown, give up.
2948 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
2950 (maybe_fold_offset_to_reference): New.
2951 (maybe_fold_stmt_indirect): Use it.
2952 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
2953 * gimplify.c (gimplify_conversion): Canonicalize conversions to
2955 (gimplify_expr): Likewise for plus_expr.
2957 2007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2959 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
2960 bsi_after_labels. Always insert statements before bsi.
2961 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2962 * predict.c (apply_return_prediction): Check for empty blocks.
2963 * cfgexpand.c (lab_rtx_for_bb): New variable.
2964 (label_rtx_for_bb): Do not create new tree labels.
2965 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
2966 (tree_expand_cfg): Initialize lab_rtx_for_bb.
2967 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
2969 (label_for_bb): Add field used.
2970 (update_eh_label, main_block_label): Mark the label used.
2971 (cleanup_dead_labels): Remove unused labels.
2973 2007-05-01 Richard Guenther <rguenther@suse.de>
2975 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
2976 if it is not about to be set.
2977 (get_value_range): Do not pre-allocate equiv bitmap.
2978 (update_value_range): No need to clear equiv field.
2979 (add_equivalence): Change prototype to get bitmap pointer.
2980 Allocate bitmap here if it is not already.
2981 (extract_range_from_assert): Do not allocate bitmap here.
2982 Update callers to add_equivalence.
2983 (extract_range_from_ssa_name): Likewise.
2984 (get_vr_for_comparison): New static helper.
2985 (compare_name_with_value): Handle NULL equiv bitmap by
2986 peeling the first iteration of the comparison loop.
2987 Use get_vr_for_comparison.
2988 (compare_names): Handle NULL equiv bitmaps by using fake
2989 ones. Use get_vr_for_comparison.
2991 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
2993 * double-int.c (mpz_set_double_int): Moved from
2994 tree-ssa-loop-niter.c.
2995 (mpz_get_double_int): Likewise; also, add option to wrap
2996 out-of-range integers.
2997 * double-int.h: New prototypes for above.
2998 * tree.c (get_static_type_bounds): Moved from
2999 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
3000 TYPE_MAX_VALUE if they exist..
3001 * tree.h: New prototype for above.
3002 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
3003 get_type_bounds calls.
3004 (mpz_set_double_int): Move to double-int.c.
3005 (get_type_bounds): Move to tree.c, rename to
3006 get_static_type_bounds.
3007 (mpz_to_double_int): Move to double-int.c, rename to
3010 2007-04-30 Bob Wilson <bob.wilson@acm.org>
3012 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
3013 DIV0 exception can fall through to a normal return.
3015 2007-04-30 Alexandre Oliva <aoliva@redhat.com>
3019 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
3020 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
3021 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
3022 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
3023 initialize align to silence bogus warning.
3024 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
3025 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
3027 (struct sra_walk_fns): Remove use_all parameter from use.
3028 (sra_hash_tree): Handle BIT_FIELD_REFs.
3029 (sra_elt_hash): Don't hash bitfld blocks.
3030 (sra_elt_eq): Skip them in parent compares as well. Handle
3032 (sra_walk_expr): Don't maintain or pass down use_all_p.
3033 (scan_use): Remove use_all parameter.
3034 (scalarize_use): Likewise. Re-expand assignment to
3035 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
3036 output, and re-scalarize after output. Don't mark anything
3038 (scalarize_ldst): Adjust.
3039 (scalarize_walk_gimple_modify_statement): Likewise.
3040 (build_element_name_1): Handle BIT_FIELD_REFs.
3041 (instantiate_element): Don't warn for any element whose parent
3043 (instantiate_missing_elements_1): Return the sra_elt.
3044 (canon_type_for_field): New.
3045 (try_instantiate_multiple_fields): New.
3046 (instantiate_missing_elemnts): Use them.
3047 (mark_no_warning): Removed.
3048 (generate_one_element_ref): Handle BIT_FIELD_REFs.
3049 (REPLDUP, sra_build_elt_assignment): New.
3050 (generate_copy_inout): Use them.
3051 (generate_element_copy): Likewise. Handle bitfld differences.
3052 (generate_element_zero): Don't recurse for blocks. Use
3053 sra_build_elt_assignment.
3054 (generate_one_element_int): Take elt instead of var. Use
3055 sra_build_elt_assignment.
3056 (generate_element_init_1): Adjust.
3057 (scalarize_use, scalarize_copy): Use REPLDUP.
3058 (scalarize_ldst): Move assert before dereference.
3059 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
3061 2007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3064 * tree.c (reconstruct_complex_type): Reconstruct a reference
3066 Also use the same mode for the pointer as the old pointer type.
3068 2007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3070 * doc/trouble.texi (Interoperation): Remove note about Ultrix
3073 2007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
3075 PR rtl-optimization/31676
3076 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
3077 (df_refs_record): Call it.
3079 2007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
3081 * rtl.def (SS_ABS): New code.
3082 * config/bfin/bfin.c (print_operand): New modifier 'v'.
3083 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
3084 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
3085 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
3086 (bfin_init_builtins): Define them.
3087 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
3088 (bfin_expand_builtin): ... and handle the others here.
3089 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
3090 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
3091 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
3092 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
3093 operand is only HImode.
3095 2007-04-29 Steven Bosscher <steven@gcc.gnu.org>
3097 * regclass.c (scan_one_insn): Remove splitting of
3100 2007-04-28 Sandra Loosemore <sandra@codesourcery.com>
3101 Nigel Stephens <nigel@mips.com>
3103 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
3105 2007-04-28 Jan Hubicka <jh@suse.cz>
3107 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
3108 insn_locators_alloc instead of insn_locators_initialize;
3109 call reset_block_changes.
3110 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3111 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
3112 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
3113 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3114 * config/score/score.c (th_output_mi_thunk): Likewise.
3115 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
3116 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
3117 tolerate uninitialized locator info.
3120 * function.c (init_function_start): Don't init line number info.
3121 (expand_function_end): Update.
3122 (reset_block_changes, record_block_change, finalize_block_changes,
3123 check_block_change, free_block_changes): Kill.
3124 * function.h (reset_block_changes, record_block_change,
3125 finalize_block_changes, check_block_change, free_block_changes): Remove
3127 (struct function): Remove ib_boundaries_block.
3128 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
3129 Use curr_insn_locator to initialize locator.
3130 (emit_line_note): Remove.
3131 * cfgexpand.c (expand_gimple_cond_expr): Update.
3132 (construct_exit_block): Likewise.
3133 (tree_expand_cfg): Initialize/finalize locators.
3134 * expr.c (expand_expr_real): Update.
3135 * cfglayout.c (line_locators_locs, line_locators_lines,
3136 file_locators_locs, file_locators_files): Remove.
3137 (set_block_levels): Move to cfgexpand.c.
3138 (insn_locators_initialize): Remove.
3139 (pass_insn_locators_initialize): Remove.
3140 (locations_locators_locs, locations_locators_vals): New static vars.
3141 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3143 (insn_locators_alloc, insn_locators_finalize,
3144 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3146 (locator_location): New.
3147 (locator_line, locator_file): Rewrite.
3148 * rtl.h (emit_line_note): Kill.
3149 (insn_locators_alloc, insn_locators_finalize,
3150 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3152 * tree-inline.c (initialize_cfun): Do not initialize
3153 ib_boundaries_block.
3154 * passes.c (pass_insn_locators_initialize): Remove.
3156 2007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
3158 * tree-cfg.c (move_block_to_fn): Release bb from dominance
3159 info. Update last_basic_block correctly.
3161 2007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
3164 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
3165 register itself to hold the offset constant. Tell flow the use
3166 of r4 and r5 when they are used.
3168 2007-04-27 Richard Guenther <rguenther@suse.de>
3170 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
3171 if we simplified anything.
3172 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
3173 warnings until we did a simplification and the stmt was not
3174 marked as TREE_NO_WARNING.
3176 2007-04-27 Mike Stump <mrs@apple.com>
3178 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
3180 2007-04-27 Ian Lance Taylor <iant@google.com>
3183 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
3184 TYPE_MAX_VALUE exist, convert them to the new type.
3186 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
3188 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
3189 if it claims to be available.
3190 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
3192 (perform_tree_ssa_dce): Always free postdominators.
3194 2007-04-27 Richard Henderson <rth@redhat.com>
3196 * config/alpha/predicates.md (aligned_memory_operand): Mark
3197 as define_special_predicate.
3198 (unaligned_memory_operand, normal_memory_operand): Likewise.
3199 (reg_or_unaligned_mem_operand): Remove.
3200 (any_memory_operand): Match the documentation and check for
3201 non-renumbered pseudos during reload.
3202 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
3203 alpha_secondary_reload_class, update to new interface, make static.
3204 Handle CQImode like HImode. Remove FP subreg check.
3205 (alpha_expand_mov): Use replace_equiv_address.
3206 (alpha_expand_mov_nobwx): Use any_memory_operand.
3207 (TARGET_SECONDARY_RELOAD): New.
3208 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
3209 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
3210 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
3211 * config/alpha/alpha.md: ... here.
3212 (RELOAD12, reloadmode): New.
3214 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
3215 Don't handle the aligned case here.
3216 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
3217 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
3218 reload_inhi_help. Don't expect a scratch register.
3219 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
3221 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
3223 2007-04-27 Richard Guenther <rguenther@suse.de>
3225 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
3227 2007-04-27 Richard Guenther <rguenther@suse.de>
3229 PR tree-optimization/30965
3230 PR tree-optimization/30978
3231 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
3232 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
3233 (find_equivalent_equality_comparison): Likewise.
3234 (simplify_cond): Likewise.
3235 (get_prop_source_stmt): New helper.
3236 (get_prop_dest_stmt): Likewise.
3237 (can_propagate_from): Likewise.
3238 (remove_prop_source_from_use): Likewise.
3239 (combine_cond_expr_cond): Likewise.
3240 (forward_propagate_comparison): New function.
3241 (forward_propagate_into_cond): Rewrite to use fold for
3243 (tree_ssa_forward_propagate_single_use_vars): Call
3244 forward_propagate_comparison to propagate comparisons.
3246 2007-04-27 Richard Guenther <rguenther@suse.de>
3248 PR tree-optimization/31715
3249 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
3250 sure to do computation on the offset in an appropriate
3253 2007-04-27 Richard Sandiford <richard@codesourcery.com>
3255 * reload.h (elimination_target_reg_p): Declare.
3256 * reload.c (find_reloads): Don't apply the reg_rtx move
3257 optimization if the SET_DEST satisfies elimination_target_reg_p.
3258 * reload1.c (elimination_target_reg_p): New function.
3259 (gen_reload): In the move/add2 fallback, make sure that op0
3260 does not overlap the destination register.
3262 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
3264 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
3265 transform only GIMPLE_MODIFY_STMTs.
3266 * tree-complex.c (expand_complex_operations_1): Ditto.
3267 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
3268 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
3269 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
3271 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
3272 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
3273 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
3274 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
3275 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
3276 slpeel_add_loop_guard): Ditto.
3277 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
3278 * lambda-code.c (perfect_nestify): Ditto.
3279 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
3280 before the first statement.
3281 * tree-optimize.c (execute_free_datastructures): Fix comments.
3282 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
3283 * tree-flow.h (disband_implicit_edges): Declaration removed.
3284 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
3286 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
3288 (disband_implicit_edges, has_label_p): Removed.
3289 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
3290 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
3292 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
3294 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
3295 also for COND_EXPRs.
3296 * cfgexpand.c (label_rtx_for_bb): New function.
3297 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
3298 Use label_rtx_for_bb to find the labels.
3299 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
3300 last block. Detect fallthru edges.
3302 2007-04-26 Ian Lance Taylor <iant@google.com>
3305 * reload.c (find_reloads_subreg_address): If the address was valid
3306 in the original mode but not in the new mode, reload the whole
3309 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
3311 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
3312 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
3313 (cleanup_control_expr_graph): Do not invalidate dominance info.
3314 Record altered blocks.
3315 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
3316 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
3317 cleanup_tree_cfg_bb): New functions.
3318 (remove_forwarder_block): Do not maintain the worklist of blocks.
3319 Record altered blocks.
3320 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
3322 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
3323 delete_unreachable_blocks if dominators are not available.
3324 * tree-inline.c (optimize_inline_calls): Free dominance information
3326 * tree-flow.h (remove_edge_and_dominated_blocks,
3327 cfgcleanup_altered_bbs): Altered.
3328 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
3330 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
3332 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
3333 do not invalidate dominators.
3335 2007-04-26 Anatoly Sokolov <aesok@post.ru>
3337 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
3338 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
3339 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3340 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3342 2007-04-26 Steve Ellcey <sje@cup.hp.com>
3344 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
3346 2007-04-26 Richard Guenther <rguenther@suse.de>
3348 PR tree-optimization/31703
3349 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
3350 the right type for the target of the bittest.
3352 2007-04-26 Richard Sandiford <richard@codesourcery.com>
3354 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
3355 ix86_sol10_return_in_memory.
3357 2007-04-26 Richard Sandiford <richard@codesourcery.com>
3359 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
3362 2007-04-26 Jakub Jelinek <jakub@redhat.com>
3365 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
3367 PR tree-optimization/30558
3368 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
3369 clear this_state.prev_try.
3371 2007-04-26 Richard Sandiford <richard@codesourcery.com>
3372 Mark Mitchell <mark@codesourcery.com>
3374 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
3375 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
3376 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
3378 2007-04-26 Richard Sandiford <richard@codesourcery.com>
3381 * doc/invoke.texi (%:print-asm-header): Document.
3382 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
3384 (static_spec_functions): Add print-asm-header.
3385 (main): Print a banner before the --target-help linker options.
3386 (print_asm_header_spec_function): New function.
3388 2007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
3391 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
3392 (movsf_ie): Likewise.
3394 2007-04-25 Paolo Carlini <pcarlini@suse.de>
3396 * doc/extend.texi ([Type Traits]): Adjust per N2255.