1 2004-12-18 Richard Henderson <rth@redhat.com>
3 * c-decl.c (grokdeclarator): Save variable array size before
4 subtracting 1, rather than after.
6 2004-12-18 Eric Botcazou <ebotcazou@libertysurf.fr>
9 * varasm.c (asm_emit_uninitialised): Return early if
10 a custom section is requested.
11 (assemble_variable): Revert 2002-03-15 patch.
13 2004-12-18 Richard Henderson <rth@redhat.com>
15 * stor-layout.c (layout_decl): Use unshare_expr, not unsave_expr.
17 2004-12-18 Zdenek Dvorak <dvorakz@suse.cz>
19 PR tree-optimization/18800
20 * params.def (PARAM_IV_ALWAYS_PRUNE_CAND_SET_BOUND): New parameter.
21 * tree-ssa-loop-ivopts.c (struct iv_ca): Add n_cands field.
22 (ALWAYS_PRUNE_CAND_SET_BOUND): New macro.
23 (iv_ca_set_no_cp, iv_ca_set_cp, iv_ca_new): Update n_cands field.
24 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_n_cands, iv_ca_prune):
26 (iv_ca_extend): Return number of candidates in the set.
27 (try_add_cand_for): Add argument to iv_ca_extend calls.
28 (try_improve_iv_set): Use iv_ca_prune.
29 * doc/invoke.texi (iv-always-prune-cand-set-bound): Document.
31 2004-12-18 Zdenek Dvorak <dvorakz@suse.cz>
33 PR rtl-optimization/19001
34 * loop-iv.c (iv_number_of_iterations): Record assumptions for loops
35 with power of two step to 'infinite' field.
37 2004-12-18 Roger Sayle <roger@eyesopen.com>
39 * Makefile.in (stor-layout.o): Depend upon gt-stor-layout.h.
40 (tree-ssa-propagate.o): Depend upon gt-tree-ssa-propagate.h.
41 (tree-ssa-operands.o): Depend upon gt-tree-ssa-operands.h.
42 (tree-mudflap.o): Depend upon gt-tree-mudflap.h.
43 (expr.o): Depend upon gt-expr.h.
44 (regclass.o): Depend upon gt-regclass.h.
45 (bitmap.o): Depend upon gt-bitmap.h.
46 (lists.o): Depend upon gt-lists.h.
48 (cfgexpand.o): Don't depend upon gt-tree-cfg.h.
50 (GTFILES): Remove fold-const.c.
51 (gt-stmt.h, gt-fold-const.h, gt-input.h, gt-tree-ssa-ccp.h):
54 2004-12-18 Richard Henderson <rth@redhat.com>
56 * stor-layout.c (layout_decl): Unshare size expressions copied
59 * fold-const.c (multiple_of_p): Handle BIT_AND_EXPR when
60 BOTTOM is a power of two.
62 2004-12-18 Richard Henderson <rth@redhat.com>
64 * tree-nested.c (save_tmp_var): New.
65 (struct walk_stmt_info): Add is_lhs.
66 (walk_stmts) <MODIFY_EXPR>: Be more accurate with setting of
68 (convert_nonlocal_reference): Use save_tmp_var when is_lhs;
69 clear is_lhs when appropriate.
70 (convert_local_reference): Likewise.
72 2004-12-18 Richard Earnshaw <rearnsha@arm.com>
74 * arm/ieee754-sf.S (floatdisf): Fix label definition in FPA
77 2004-12-18 Roger Sayle <roger@eyesopen.com>
79 * ifcvt.c (total_bb_rtx_cost): Rename function to cheap_bb_rtx_cost_p.
80 Take a max_cost argument to avoid scanning large blocks, by returning
81 a Boolean instead of a total. Include the cost of a "fstp %st(0)"
82 instruction required to pop dead values off of a register stack.
84 2004-12-18 Roger Sayle <roger@eyesopen.com>
87 * expr.c (expand_expr_real_1) <MAX_EXPR>: Ensure that target, op0
88 and op1 are all registers (or constants) before expanding the RTL
89 comparison sequence [to avoid reg_overlap_mentioned (target, op1)].
91 2004-12-18 Eric Botcazou <ebotcazou@libertysurf.fr>
93 PR rtl-optimization/16968
94 * loop.c (scan_loop): Stop scanning the loop for movable
95 insns as soon as an optimization barrier is encountered.
97 2004-12-17 Zack Weinberg <zack@codesourcery.com>
100 * toplev.c (compile_file): Call process_pending_assemble_externals
101 just before targetm.asm_out.file_end.
103 2004-12-17 Diego Novillo <dnovillo@redhat.com>
105 tree-optimization/18501
106 * tree-optimize.c (init_tree_optimization_passes): Run
107 pass_late_warn_uninitialized before the last DCE run.
109 2004-12-17 Richard Henderson <rth@redhat.com>
111 * config/i386/i386.c (x86_64_reg_class_name): Re-indent.
112 (classify_argument, examine_argument, construct_container,
113 merge_classes): Remove prototypes.
114 (type_natural_mode): Split out from ...
115 (function_arg): ... here.
116 (gen_reg_or_parallel): Remove alt_mode argument. Update callers.
117 Use orig_mode unless it's BLKmode.
118 (construct_container): Add orig_mode argument. Update callers.
119 Use gen_reg_or_parallel for SSE registers.
120 (ix86_function_value): Use type_natural_mode.
121 (ix86_gimplify_va_arg): Likewise.
122 (ix86_hard_regno_mode_ok): Always accept all SSE, MMX, 3DNOW modes in
123 SSE registers; always accept all MMX, 3DNOW modes in MMX registers.
124 * config/i386/i386.h (VALID_SSE2_REG_MODE): Don't include
126 * config/i386/i386.md (attribute mode): Add V1DF.
127 (movsi_1): Use 'x' instead of 'Y' constraints.
128 (movsi_1_nointernunit, movdi_2, movdi_1_rex64): Likewise.
129 (movdi_1_rex64_nointerunit): Likewise.
130 (movdf_nointeger, movdf_integer): Likewise. Handle SSE1.
131 (movsf_1, movsf_1_nointerunit): Line up constraint alternatives.
132 (swapsf): Use fp_register_operand, don't disable for TARGET_SSE.
134 (swapxf): Enable only for TARGET_80387.
135 (movv2sf, movv2sf_internal, pushv2sf): Enable for MMX.
136 (movtf): Remove double-check for TARGET_64BIT.
137 (movv2df_internal): Enable for SSE1.
138 (movv8hi_internal, movv16qi_internal): Likewise.
139 (movv2df, movv8hi, movv16qi): Likewise.
140 (pushv2di, pushv8hi, pushv16qi, pushv4si): Likewise.
141 (pushdi2_rex64, movv4sf_internal, movv4si_internal, movv2di_internal,
142 movv8qi_internal, movv4hi_internal, movv2sf_internal,
143 movv2df_internal, movv8hi_internal, movv16qi_internal,
144 movti_internal): Add leading '*' to name.
146 2004-12-17 Dale Johannesen <dalej@apple.com>
148 * c-decl.c (diagnose_mismatched_decls): Accept mismatched
149 function types: void with previous implicit int.
151 2004-12-17 Andreas Krebbel <krebbel1@de.ibm.com>
153 * config/s390/s390.c (s390_gimplify_va_arg): Set alias set to
156 2004-12-17 Jan Beulich <jbeulich@novell.com>
159 * config/i386/i386.c (enum x86_64_reg_class): Define
160 X86_64_COMPLEX_X87_CLASS.
161 (x86_64_reg_class_names): Add name for X86_64_COMPLEX_X87_CLASS.
162 (merge_classes): Handle X86_64_COMPLEX_X87_CLASS.
163 (classify_argument): XCmode is X86_64_COMPLEX_X87_CLASS.
164 (examine_argument): X86_64_COMPLEX_X87_CLASS requires two
165 registers when dealing with a return value.
166 (construct_container): Handle X86_64_COMPLEX_X87_CLASS.
167 Eliminate impossible case of two X87/X87UP pairs (this now is
168 being expressed by a single COMPLEX_X87).
169 (x86_libcall_value): XCmode gets returned in st0/st1.
171 2004-12-17 Steven Bosscher <stevenb@suse.de>
173 * tree.c (type_contains_placeholder_1): Always return false
174 for VECTOR_TYPE if its TREE_TYPE does not contain a placeholder.
176 2004-12-17 Uros Bizjak <uros@kss-loka.si>
178 * config/i386/i386.md (extendsfdf2, *extendsfdf2_1,
179 *extendsfdf2_1_sse_only): Unify enable constraint with
180 respect to TARGET_SSE2, TARGET_80387, TARGET_SSE_MATH
181 and TARGET_MIX_SSE_I387.
182 (*extendsfdf2_i387): New insn pattern.
183 (*extendsfdf2_1): Rename to *extendsfdf2_mixed. Fix
184 register constraint for operand 0.
185 (*extendsfdf2_1_sse_only): Rename to *extendsfdf2_sse.
186 (*extend{s,d}fxf2_1): Rename to *extend{s,d}fxf2_i387.
188 2004-12-16 Andrew Pinski <pinskia@physics.uc.edu>
191 * config/darwin.c (machopic_symbol_defined_p): Return false
192 if the binds local and is a common symbol.
194 2004-12-16 Richard Henderson <rth@redhat.com>
196 * config/i386/i386.md (extv, extzv, insv): Revalidate the
197 operand with ext_register_operand.
199 2004-12-16 Kazu Hirata <kazu@cs.umass.edu>
201 * global.c: Fix a comment typo.
203 2004-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
204 Roger Sayle <roger@eyesopen.com>
206 PR tree-optimization/18707
207 * cfgloopmanip.c (create_preheader): Move the preheader
208 only if the latch was falling through to the header.
210 2004-12-16 Danny Smith <dannysmith@users.sourceforge.net>
213 * config/i386/cygwin.h (GTHREAD_USE_WEAK): Define to 0.
215 2004-12-16 Richard Henderson <rth@redhat.com>
216 Aldy Hernandez <aldyh@redhat.com>
218 * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
221 2004-12-16 H.J. Lu <hongjiu.lu@intel.com>
224 * config/alpha/t-osf4 (SHLIB_LINK): Use `.backup' as the suffix
225 to back up the existing shared library.
226 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
227 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
228 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
229 * config/sh/t-linux (SHLIB_LINK): Likewise.
230 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
231 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
232 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
233 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
235 * config/i386/t-nwld (SHLIB_LINK): Don't use the temporary
238 2004-12-16 Richard Henderson <rth@redhat.com>
240 * Makefile.in (MD_DEPS, s-mddeps): New.
241 (s-config, s-conditions, s-flags, s-codes, s-constants, s-emit,
242 s-recog, s-opinit, s-extract, s-peep, s-attr, s-attrtab, s-output,
243 s-preds): Depend on MD_DEPS instead of md_file.
244 (genobjnames): Add genmddeps.o
245 (build/genmddeps, build/genmddeps.o): New.
246 (mostlyclean): Remove mddeps.mk.
247 * genmddeps.c: New file.
248 * gensupport.c (include_callback): New.
249 (process_include): Call it.
250 * gensupport.h (include_callback): Declare.
252 2004-12-16 Nathan Sidwell <nathan@codesourcery.com>
254 * local-alloc.c (block_alloc): Replace IN_RANGE with simple
257 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
259 2004-12-16 Mark Dettinger <dettinge@de.ibm.com>
261 * config/s390/s390.c (struct processor_costs): Two new fields:
263 (s390_rtx_costs): Added handling of multipy and add in SFmode.
264 More precise values for cost of multiply and add.
266 2004-12-15 Richard Henderson <rth@redhat.com>
269 * config/i386/i386.md (sse compare splitter): Test for SF and DFmode
270 explicitly instead of using VALID_SSE_REG_MODE.
272 2004-12-15 Richard Henderson <rth@redhat.com>
275 * config/i386/i386.md (swaphi_1): Swap with swaphi_2, allow with
277 (swapqi_1): Rename from swapqi. Enable only for no partial reg
278 stall and optimize_size.
280 (swaphi_1, swaphi_2, swapqi_1): Add athlon_decode.
281 (swapsi, swaphi_1, swaphi_2, swapqi_1, swapdi): Remove modrm override.
283 2004-12-16 Uros Bizjak <uros@kss-loka.si>
285 * config/i386/i386.md (*floathisf2_i387, *floathidf2_i387):
286 Also enable for TARGET_MIX_SSE_I387.
288 2004-12-16 Uros Bizjak <uros@kss-loka.si>
290 * config/i386/i386.md (sqrt{s,d}f2_1, sqrt{s,d}f2_1_sse_only,
291 sqrt{s,d}f2_i387): Unify enable constraint with respect to
292 TARGET_SSE, TARGET_SSE2, TARGET_USE_FANCY_MATH_387,
293 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
294 (sqrt{s,d}f2_1): Rename to *sqrt{s,d}f2_mixed.
295 (sqrt{s,d}f2_1_sse_only): Rename to *sqrt{s,d}f2_sse.
296 (sqrt{s,d}f2_i387): Rename to *sqrt{s,d}f2_i387.
297 (*sqrtextendsfdf2): Also enable for TARGET_MIX_SSE_I387.
298 (*sqrtextend?f?f2): Rename to *sqrtextendsfdf2_i387.
300 2004-12-16 Uros Bizjak <uros@kss-loka.si>
302 * config/i386/i386.md (*fop_?f_comm_{,sse,nosse},
303 *fop_?f_1_{,sse,nosse}, *fop_{d,x}f_{2,3,4,5,6}): Unify enable
304 constraint with respect to TARGET_80387, TARGET_SSE, TARGET_SSE2,
305 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
306 (*fop_?f_{comm,1}): Rename to *fop_?f_{comm,1}_mixed.
307 (*fop_?f_{comm,1}_nosse): Rename to *fop_?f_{comm,1}_i387.
308 (*fop_{d,x}f_{2,3,4,5,6}): Rename to *fop_{d,x}f_{2,3,4,5,6}_i387.
310 2004-12-15 H.J. Lu <hongjiu.lu@intel.com>
313 * configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
314 -Bstatic/-Bdynamic option.
315 * config.in: Regenerated.
316 * configure: Likewise.
318 * gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
319 -lunwind if possible.
321 2004-12-15 Daniel Berlin <dberlin@dberlin.org>
323 * cfgloop.c (flow_loops_dump): Don't print out levels.
324 (flow_loops_find): Don't set loop->levels.
325 (flow_loops_level_compute): Make void.
326 * cfgloop.h (struct loops): Remove levels member.
327 Add comment about loops in parray possibly being NULL.
329 2004-12-15 Alexandre Oliva <aoliva@redhat.com>
331 * reload.c (SMALL_REGISTER_CLASS_P): New.
332 (push_secondary_reload, find_reusable_reload, find_reloads): Use
333 it instead of testing only the class size.
335 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
338 * tree-inline.c (expand_call_inline): Set TREE_SIDE_EFFECTS
339 on the STMT_EXPR wrapping up the inlined body.
341 2004-12-15 Vladimir Makarov <vmakarov@redhat.com>
342 Steven Bosscher <stevenb@suse.de>
345 * global.c: Update comments in a few places.
346 (check_earlyclobber): Return true if there are early clobber
348 (calculate_local_reg_bb_info): Do not try to mark earlyclobber
349 regs if there are none.
350 (bb_info, allocate_bb_info, free_bb_info, modify_reg_pav,
351 make_accurate_live_analysis): Rename pavin, pavout to live_pavin,
353 (modify_bb_reg_pav): Remove.
354 (calculate_reg_pav): Use code from modify_bb_reg_pav.
355 (temp_bitmap): New variable.
356 (calculate_reg_pav): Allocate/deallocate temp_bitmap.
358 2004-12-15 Richard Henderson <rth@redhat.com>
361 * config/i386/i386.c (ix86_must_pass_in_stack): Don't return true
363 (gen_reg_or_parallel): New.
364 (function_arg): Use it.
365 (ix86_hard_regno_mode_ok): Test SSE1 and SSE2 separately,
366 MMX and 3DNOW separately.
367 (ix86_rtx_costs): Simplify FLOAT_EXTEND case.
368 (ix86_vector_mode_supported_p): Test SSE1 and SSE2 separately.
369 * config/i386/i386.h (VALID_SSE2_REG_MODE): Move SSE2 cases from ...
370 (VALID_SSE_REG_MODE): ... here.
372 2004-12-15 David Edelsohn <edelsohn@gnu.org>
374 * xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.
376 2004-12-15 Ian Lance Taylor <ian@wasabisystems.com>
378 * config/arm/arm.c (arm_xscale_rtx_costs): Increase cost of
380 * config/arm/arm.md (mulsi3_compare0): Don't check
382 (mulsi_compare0_scratch, mulsi3_addsi_compare0): Likewise.
383 (mulsi3addsi_compare0_scratch): Likewise.
385 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
388 * libgcc-std.ver (GCC_3.4.4): Inherit from GCC_3.4.2.
389 Export __absvti2, __addvti3, __mulvti3, __negvti2 and __subvti3.
390 * libgcc2.c (__addvsi3): Rename to __addvSI3.
391 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
392 (__addvdi3): Rename to __addvDI3.
393 (__subvsi3): Rename to __subvSI3. Use word type for the result.
394 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
395 (__subvdi3): Rename to __subvDI3.
396 (_mulvsi3): Rename to _mulvSI3.
397 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
398 (_mulvdi3): Rename to _mulvDI3.
399 (__negvsi2): Rename to __negvSI2.
400 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
401 (__negvdi2): Rename to __negvDI2.
402 (__absvsi2): Rename to __absvSI2.
403 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
404 (__absvdi2): Rename to __absvDI2.
405 * libgcc2.h (64-bit targets): Define COMPAT_SIMODE_TRAPPING_ARITHMETIC.
406 (__absvSI2, __addvSI3, __subvSI3, __mulvSI3, __negvSI2, __absvDI2,
407 __addvDI3, __subvDI3, __mulvDI3, __negvDI2): Define to the appropriate
409 (__absvsi2, __addvsi3, __subvsi3, __mulvsi3, __negvsi2): Declare if
410 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
412 2004-12-15 Kazuhiro Inaoka <inaoka.kazuhiro@reneasas.com>
414 * config/m32r/m32r.h (PREFERRED_DEBUGGING_TYPE):
417 * config/m32r.c (m32r_legitimize_pic_address): Changed
418 to support GOTOFF relocation.
419 * config/m32r.md (UNSPEC_GOTOFF): New.
420 (gotoff_load_addr): New.
422 2004-12-15 Richard Sandiford <rsandifo@redhat.com>
424 * config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
425 decide whether an argument is double-word aligned.
427 2004-12-15 Richard Henderson <rth@redhat.com>
429 * config/i386/i386.md: Fix missing modes on cmove splitters.
431 2004-12-15 Jan Beulich <jbeulich@novell.com>
433 * mklibgcc.in (libgcc2_c_dep): Add dependency on libgcc2.h.
435 2004-12-15 Uros Bizjak <uros@kss-loka.si>
437 * config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
438 *floatsisf2_i387, *floatsisf2_sse, floatdisf2,
439 *floatdisf2_i387_only, *floatdisf2_i387, *floatdisf2_sse,
440 floathidf2, *floathidf2_1, *floatsidf2_i387, *floatsidf2_sse,
441 floatdidf2, *floatdidf2_i387_only, *floatdidf2_i387,
442 *floatdidf2_sse, floatunssisf2, floatunsdisf2, floatunsdidf2):
443 Unify enable constraint with respect to TARGET_80387, TARGET_SSE,
444 TARGET_SSE2, TARGET_64BIT, TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
445 (*float?i?f_i387): Rename to *float?i?f2_mixed.
446 (*float?i?f2_1): Rename to *float?i?f2_i387.
447 (*float?i?f2_i387_only): Rename to *float?i?f2_i387.
448 (float?ixf2): Penalize integer register operand.
450 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
453 * configure.ac: Add GAS check for HP-UX .nsubspa comdat.
454 * configure, config.in: Rebuilt.
455 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Delete
457 * config/pa/pa.c (pa_select_section): Allow uninitialized variables in
458 one-only (comdat) subspaces.
459 * config/pa/som.h (SUPPORTS_SOM_COMDAT): New define.
460 (SUPPORTS_ONE_ONLY): True if SUPPORTS_WEAK or SUPPORTS_SOM_COMDAT are
462 (MAKE_DECL_ONE_ONLY): Place uninitialized variables in common.
464 2004-12-14 Ian Lance Taylor <ian@wasabisystems.com>
466 * combine.c (combine_validate_cost): Consider cost of
467 undobuf.other_insn rather than always allowing the recombination
470 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
472 * pa-host.c (MAP_FAILED): Define if not defined.
473 (pa_gt_pch_use_address): Handle short reads.
475 2004-12-14 Richard Henderson <rth@redhat.com>
478 * config/i386/i386.c (x86_use_bt): New.
479 (ix86_expand_unary_operator): Use MEM_P.
480 (ix86_expand_fp_absneg_operator): New.
481 * config/i386/i386.h (x86_use_bt): Declare.
482 (TARGET_USE_BT): New.
483 * config/i386/i386-protos.h: Update.
484 * config/i386/i386.md (negsf2): Use ix86_expand_fp_absneg_operator.
485 (negdf2, negxf2, abssf2, absdf2, absxf2): Likewise.
486 (negsf2_memory, negsf2_ifs, negsf2_if, negdf2_memory, negdf2_ifs,
487 negdf2_ifs_rex64, negdf2_if, negdf2_if_rex64, negxf2_if,
488 abssf2_memory, abssf2_ifs, abssf2_if, absdf2_memory, absdf2_ifs,
489 absdf2_ifs_rex64, absdf2_if, absxf2_if): Remove.
490 (absnegsf2_mixed, absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed,
491 absnegdf2_sse, absnegdf2_i387, absnegxf2_i387): New. Merge all
492 neg and abs splitters. Handle DFmode in general regs in 64-bit mode.
493 (negextendsfdf2, absextendsfdf2): Disable for non-mixed sse math.
494 (btsq, btrq, btcq): New. Add peepholes as well.
495 (movv4sf_internal splitter): Postpone til after reload.
496 (movv2di_internal splitter): Likewise.
497 * config/i386/predicates.md (const_0_to_63_operand): New.
498 (absneg_operator): New.
500 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
502 * pa.h (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P):
503 Check register number and that reg_renumber is nonzero before using it.
505 2004-12-14 Steve Ellcey <sje@cup.hp.com>
507 * doc/invoke.texi (IA-64 options): Add existing options that
508 weren't already listed.
510 2004-12-14 Jeff Law <law@redhat.com>
512 * tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
513 partition to conflict_graph_merge_regs.
515 2004-12-14 Uttam Pawar <uttamp@us.ibm.com>
516 Janis Johnson <janis187@us.ibm.com>
518 * rs6000.c (rs6000_handle_altivec_attribute_tree): Report errors
519 for vector types with invalid component types.
521 2004-12-14 Jakub Jelinek <jakub@redhat.com>
524 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2,
525 expand_builtin_mathfn_3): Avoid using arguments passed to
526 save_expr after that call.
528 * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
529 LOAD_EXTEND_OP is not defined.
530 (fold): Likewise. If flag_syntax_only, don't depend on BITS_PER_WORD.
532 2004-12-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
534 * tree.def, doc/c-tree.texi: Correctly document restrictions on the
537 2004-12-14 Kazu Hirata <kazu@cs.umass.edu>
539 * expr.h (expand_modifier): Define EXPAND_STACK_PARM as 1.
541 2004-12-14 Richard Earnshaw <rearnsha@arm.com>
544 arm-cores.def (arm926ej-s, arm1026ej-s, arm1136j-s, arm1136-jfs)
545 (arm1176jz-s, arm1176jzf-s, mpcorenovfp, mpcore): Add load-scheduling
548 2004-12-14 Diego Novillo <dnovillo@redhat.com>
550 * tree-gimple.c (get_base_address): Update documentation.
552 2004-12-13 Richard Henderson <rth@redhat.com>
555 * passes.c (rest_of_clean_state): Fix computation of
556 preferred_incoming_stack_boundary.
558 2004-12-13 Wolfgang Bangerth <bangerth@dealii.org>
560 * reload.h: Remove struct needs and its only use.
562 2004-12-13 Roger Sayle <roger@eyesopen.com>
564 PR rtl-optimization/18928
565 * simplify_rtx.c (plus_minus_operand_p): New function to encode
566 the test for suitable operands for calls to simplify_plus_minus.
567 Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
568 (simplify_binary_operation): Use plus_minus_operand_p.
570 2004-12-13 Alexandre Oliva <aoliva@redhat.com>
573 * tree-inline.c (setup_one_parameter): Don't directly map a
574 parameter to the address of another variable of the same
577 2004-13-12 Steven Bosscher <stevenb@suse.de>
579 * basic-block.h (PROP_POSTRELOAD): Do not include PROP_AUTOINC, we
580 can never create autoinc insns after reload.
582 2004-12-13 Jeff Law <law@redhat.com>
583 Kazu Hirata <kazu@cs.umass.edu>
585 PR tree-optimization/18694
586 * tree-ssa-dom.c (thread_across_edge): Do not thread jumps if a
587 PHI argument is set from a PHI_RESULT in the same block and the
588 PHI argument is not the same as the PHI result.
590 2004-12-13 David Edelsohn <edelsohn@gnu.org>
592 * xcoffout.c (xcoffout_declare_function): Always strip storage
595 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
598 * config/darwin.c (darwin_assemble_visibility): Fix minor diagnostic
599 problem, adding a space at the end of the string before concatenation.
601 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
603 * c-common.c (fname_as_string): Free namep if we are returning
606 * tree-ssa-dom.c (record_edge_info): Fix memory leak.
608 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
610 * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
612 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
614 * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
615 doing a pointer comparison.
617 * tree-ssa-dom.c (record_equivalences_from_phis): Add a
620 * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
623 2004-12-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
625 * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
626 the list rather than replacing the existing value.
628 2004-12-13 Richard Henderson <rth@redhat.com>
630 * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
632 2004-12-13 Richard Henderson <rth@redhat.com>
634 * Makefile.in (insn-preds.o): Depend on REGS_H.
635 * genpreds.c (write_insn_preds_c): Include regs.h.
636 * config/i386/predicates.md (index_register_operand): Use
637 REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
639 * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
640 * config/i386/i386.md (lea_general_1, lea_general_1_zext,
641 lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
642 adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
643 ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
644 ashlqi3_1_lea): Use 'l' for index register operand.
645 (ashldi3_1_rex64 splitter): Use index_register_operand.
646 (ashlsi3_1 splitter): Be more careful with modes.
648 2004-12-13 Danny Smith <dannysmith@users.sourceforge.net>
651 * defaults.h (TARGET_USE_JCR_SECTION): New macro.
652 * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
653 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
656 2004-12-13 Uros Bizjak <uros@kss-loka.si>
660 * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
661 Fix wrong vec_merge selector bitmask.
663 2004-12-12 Richard Henderson <rth@redhat.com>
666 * reg-stack.c (move_nan_for_stack_reg): New.
667 (subst_stack_regs_pat): Use it.
668 (move_for_stack_reg): Handle source register not live with a nan.
670 2004-12-12 Richard Henderson <rth@redhat.com>
672 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
673 errors across operations.
675 2004-12-12 Di-an Jan <dianj@freeshell.org>
677 * doc/passes.texi (Pass Manager): Correct list of source files.
679 2004-12-12 Richard Henderson <rth@redhat.com>
681 * expr.c (emit_move_change_mode): New.
682 (emit_move_via_alt_mode): Use it.
684 2004-12-12 Nathanael Nerode <neroden@gcc.gnu.org>
685 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
688 * dojump.c (do_compare_and_jump): Only canonicalize function pointers
689 in a comparison if both sides are function pointers.
691 2004-12-12 Richard Henderson <rth@redhat.com>
694 * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
695 and compare_operator to propagate the input CC mode to the output.
696 * config/i386/predicates.md (compare_operator): New.
698 2004-12-12 Andrew Pinski <pinskia@physics.uc.edu>
701 * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
703 (handled_component_p): Likewise.
705 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
707 * reg-stack.c (convert_regs_2): Free stack.
709 * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
712 2004-12-12 Daniel Berlin <dberlin@dberlin.org>
714 * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
715 * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
718 2004-12-12 Diego Novillo <dnovillo@redhat.com>
720 * tree-gimple.c (get_base_address): Update documentation.
722 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
724 * lcm.c (optimize_mode_switching): Free ptr even when mode_set
727 2004-12-12 Roger Sayle <roger@eyesopen.com>
729 * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
730 its correct location during popping if we need to permute the stack
731 afterwards. Attempt to preserve the original stack ordering.
733 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
735 * lcm.c (optimize_mode_switching): Free insert and delete in
738 2004-12-11 David Edelsohn <edelsohn@gnu.org>
739 Ulrich Weigand <uweigand@de.ibm.com>
742 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
743 constants into all register classes intersecting with FLOAT_REGS
745 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
746 * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
747 choosing register preferences.
748 (movdi_internal64): Same.
750 2004-12-11 Kazu Hirata <kazu@cs.umass.edu>
752 * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
753 before we release an SSA_NAME.
755 2004-12-11 Roger Sayle <roger@eyesopen.com>
758 * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
759 instead of constant_boolean_node as arg0 may have side-effects.
761 2004-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
763 * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
764 file to anonymous private map.
766 2004-12-10 Roger Sayle <roger@eyesopen.com>
770 * dojump.c (do_jump): When attempting to reverse the effects of
771 fold_single_bit_test, we need to STRIP_NOPS and narrowing type
772 conversions, and handle BIT_XOR_EXPR that's used to invert the
773 sense of the single bit test.
775 2004-12-10 Devang Patel <dpatel@apple.com>
778 * gcc.c (main): Do not break out of loop when error is reported while
779 processing one source file.
781 2004-12-10 Diego Novillo <dnovillo@redhat.com>
783 * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
784 (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
785 don't need any operands rewritten.
786 (rewrite_stmt): Ignore statements that don't need to be
788 (rewrite_operand): Validate that an existing SSA_NAME is
789 identical to the current reaching definition of the operand.
791 2004-12-10 Diego Novillo <dnovillo@redhat.com>
793 * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
794 * tree-vectorizer.c (vectorizable_load): Call it.
795 * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
796 * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
798 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
800 * regmove.c (combine_stack_adjustments_for_block): Free
801 memlist if it hasn't been freed.
803 2004-12-10 Ziemowit Laski <zlaski@apple.com>
805 * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
806 pointer field is set before dereferencing it.
808 2004-12-10 Andrew Pinski <pinskia@physics.uc.edu>
811 * tree-cfg.c (remove_bb): Put the moved label at the beginning
814 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
816 * tree-data-ref.c (free_data_refs): Free each data_reference
819 * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
820 call to is_gimple_min_invariant if we know the result.
822 2004-12-10 Jeff Law <law@redhat.com>
824 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
825 redundant test of v_ann->mem_tag_kind.
827 * tree-ssa-operands.c (get_indirect_ref_operands): Remove
828 redundant conditional clearing opf_kill_def.
830 2004-12-10 Richard Sandiford <rsandifo@redhat.com>
832 * config/frv/frv-modes.def: Fix comment typos.
833 (CC_NZ): Define new mode.
834 * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
835 (condexec_intop_cmp_operator): Delete.
836 * config/frv/frv.c (comparison_string): New function.
837 (frv_print_operand): Use it to handle 'c' and 'C'.
838 (relational_operator): Redefine in terms of integer_relational_operator
839 and float_relational_operator.
840 (signed_relational_operator, unsigned_relational_operator): Delete.
841 (integer_relational_operator): New predicate, combining the above.
842 Check the mode of the first operand but leave frv.md to check the rest.
843 (float_relational_operator): Just check the mode of the first operand
844 and leave frv.md to check the rest.
845 (intop_compare_operator): Assume the result is compared with zero
846 in mode CC_NZmode. Allow PLUS and MINUS. Leave frv.md to check
847 the operand predicates.
848 (condexec_intop_cmp_operator): Delete.
849 (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
850 (frv_hard_regno_mode_ok): Handle CC_NZmode.
851 (frv_select_cc_mode): New function.
852 * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
853 (REVERSIBLE_CC_MODE): Include CC_NZmode.
854 (PREDICATE_CODES): Replace entries for signed_relational_operand and
855 unsigned_relational_operator with one for integer_relational_operator.
856 Delete entry for condexec_intop_cmp_operator.
857 * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
858 (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
859 (*combo_intop_compare2, *combo_intop_compare4): Delete.
860 (*combo_intop_compare1): Change mode to CC_NZ.
861 (*combo_intop_compare2): Likewise. Renamed from *combo_intop_compare3.
862 (branch_{un,}signed_true, branch_{un,}signed_false)
863 (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
864 (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
865 (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
866 (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
867 (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
868 (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
869 pattern pairs. Use integer_relational_operator. Remove mode from
872 2004-12-10 Mark Dettinger <dettinge@de.ibm.com>
874 * config/s390/s390.c (struct processor_costs): New fields ml,
876 (s390_rtx_costs): Added the missing handling of multiply & add,
877 square root, and umulsidi.
879 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
881 * expmed.c (synth_mult): Initialize new_limit.latency before
882 making a recursive call.
884 2004-12-10 Nick Clifton <nickc@redhat.com>
886 * config/mn10300/mn10300.c (legitimate_address_p): Reject address
887 whose index is itself the sum of two other parts.
889 2004-12-10 Alan Modra <amodra@bigpond.net.au>
891 * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
893 2004-12-10 Uros Bizjak <uros@kss-loka.si>
895 * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
897 2004-12-09 Richard Henderson <rth@redhat.com>
900 * attribs.c (decl_attributes): Use relayout_decl.
901 * c-common.c (handle_mode_attribute): Copy all relevant type
902 parameters from the new underlying integral type.
904 2004-12-09 Richard Henderson <rth@redhat.com>
906 * c-common.c (shorten_compare): Don't special-case min/maxval
909 2004-12-09 Richard Sandiford <rsandifo@redhat.com>
911 * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
912 the request subreg is entirely contained in the requested component.
913 (simplify_gen_subreg): Return null for CONCATs that are rejected
915 * expmed.c (store_bit_field): Create a temporary when changing the
916 value to an integer mode.
918 2004-12-09 David Edelsohn <edelsohn@gnu.org>
920 * real.c (ibm_extended): Correct comment.
922 2004-12-09 Stan Shebs <shebs@apple.com>
924 * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
925 formerly in darwin-tramp.asm.
926 * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
927 * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
928 * config/rs6000/t-darwin: Add dependencies.
930 2004-12-09 Richard Henderson <rth@redhat.com>
933 * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
934 (test_qi_1, andqi_2): Do not promote to simode.
936 2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
939 * tree-chrec.c (chrec_convert): Use fold_convert
942 2004-12-09 Matt Rice <ratmice@yahoo.com>
944 PR preprocessor/18102
945 * c-incpath.c (remove_duplicates): Check for construct
948 2004-12-09 Dorit Naishlos <dorit@il.ibm.com>
950 * genopinit.c (vec_realign_store_optab): Initialization removed.
951 * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
952 * optabs.h (optab_index): OTI_vec_realign_store Removed.
953 (vec_realign_store_optab): Removed.
954 * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
955 * target.h (builtin_mask_for_store): Removed.
956 * tree.def (REALIGN_STORE_EXPR): Removed.
957 * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
958 (altivec_builtin_mask_for_store): Removed.
959 (altivec_init_builtins): Removed initialization of
960 altivec_builtin_mask_for_store.
962 * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
963 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
965 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
967 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
969 * tree.def (SET_TYPE): Remove.
970 (CONSTRUCTOR): Update description.
971 * builtins.c (type_to_class) Remove SET_TYPE case.
972 * dbxout.c (dbxout_type): Likewise.
973 * dwarf2out.c (is_base_type): Likewise.
974 (gen_set_type_die): Remove.
975 (gen_type_die): Remove SET_TYPE case.
976 * expr.c (count_type_elements): Likewise.
977 (mostly_zeroes_p): Likewise.
978 (store_constructor): Likewise.
979 * print_tree.c (print_node): Likewise.
980 * stor-layout.c (layout_type): Likewise.
981 * tree-browser.c (browse_tree): Likewise.
982 * tree-inline.c (remap_type): Likewise.
983 * tree-pretty-print.c (dump_generic_node): Likewise.
984 * tree.c (type_contains_plaeholder_1, type_hash_eq,
985 variably_modified_type_p, initializer_zerop): Likewise.
986 * tree.h (SET_OR_ARRAY_CHECK): Remove.
987 (AGGREGATE_TYPE_P): Remove SET_TYPE check.
988 (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
989 * typeclass.h (enum type_class): Remove set_type_class.
990 * varasm.c (const_hash_1): Remove SET_TYPE case.
991 (compare_constant, copy_constant, output_constant): Likewise.
992 * config/i386/i386.c (classify_argument): Likewise.
993 * config/ia64/ia64.c (hfa_element_mode): Likewise.
994 * config/sparc/sparc.c (sparc_type_code): Likewise.
997 * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
999 2004-12-08 Richard Henderson <rth@redhat.com>
1001 * config/i386/i386.md: Use FLAGS_REG everywhere.
1003 2004-12-08 Eric Christopher <echristo@redhat.com>
1005 * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
1006 to avoid call to default function.
1008 2004-12-08 Zack Weinberg <zack@codesourcery.com>
1011 * varasm.c (pending_assemble_externals): New static.
1012 (assemble_external_real): Meat of assemble_external split out
1013 to this new function.
1014 (process_pending_assemble_externals): New function.
1015 (assemble_external): Use gcc_assert. If flag_unit_at_a_time
1016 is true and the basic test passes, merely cons the decl onto
1017 the pending list to be handled later.
1018 * tree.h: Declare process_pending_assemble_externals.
1019 * cgraphunit.c (cgraph_optimize): Call it.
1021 * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
1023 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
1025 * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
1026 and simplifying FOR_EACH_EDGE.
1028 2004-12-08 Richard Sandiford <rsandifo@redhat.com>
1030 * config/frv/frv.c (frv_sort_insn_group): Always initialize
1033 2004-12-08 Nathan Sidwell <nathan@codesourcery.com>
1036 * gimplify.c (canonicalize_addr_expr): Cope with array of
1038 (gimplify_conversion): Remove redundant checks.
1040 * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
1042 2004-12-08 Uros Bizjak <uros@kss-loka.si>
1044 * config/i386/i386.c (output_387_binary_op,
1045 ix86_prepare_fp_compare_args): Fix is_sse condition.
1047 2004-12-07 Uros Bizjak <uros@kss-loka.si>
1049 * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
1052 * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
1053 Use EFLAGS_P only when fcomi insn should be used. Fix handling
1054 of eflags_p variable. Change alt table accordingly. For non-fcomi
1055 compare insn always use trailing fnstsw insn. Fix intmode
1056 calculation for ficom insn.
1057 (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
1058 ix86_free_from_memory when "pushed" is specified.
1059 (ix86_expand_branch): Change call to ix86_split_fp_branch.
1061 * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
1062 Change eflags_p parameter in call to output_fp_compare.
1063 (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
1064 (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
1065 *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf. Change eflags_p
1066 parameter in call to output_fp_compare.
1067 (*cmpfp_2_u): Remove.
1068 (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
1069 in call to output_fp_compare.
1070 (*ficom_1): Remove insn definition and corresponding define_split.
1071 (*cmpfp_si): New insn definition.
1072 (*fp_jcc_8): New insn definition. Add new splitters for
1073 "memory_operand" and "register_operand".
1074 (define_split): Add new parameter in call to ix86_split_fp_branch.
1076 config/i386/predicates.md (float_operator): New predicate.
1078 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
1080 * c-common.c (verify_tree): Don't check code length if we know
1081 we are handling tcc_unary.
1082 * print_tree.c (print_node): Remove code to handle RTL
1083 appearing as a part of a tree node.
1084 * tree-gimple.c (recalculate_side_effects): Rename fro as len.
1085 * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
1086 (PROCESS_ARG): Don't refer to fro.
1087 (build2_stat, build3_stat, build4_stat): Don't compute fro.
1089 2004-12-07 Roger Sayle <roger@eyesopen.com>
1092 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
1093 (expand_mult): Special case powers of two to avoid synth_mult.
1094 * loop.c (product_cheap_p): Handle case where expand_mult does
1095 require/generate any instructions (i.e. multiplication by zero).
1097 2004-12-07 Richard Henderson <rth@redhat.com>
1099 * tree-pretty-print.c (dump_array_domain): Split out from
1100 dump_generic_node; fix off-by-one error on zero-based array bounds.
1101 (dump_generic_node): Use it.
1102 (print_declaration): Likewise.
1104 2004-12-08 Richard Guenther <richard.guenther@uni-tuebingen.de>
1106 * doc/invoke.texi: Adjust default values for
1107 large-function-growth and inline-unit-growth to match
1108 params.def. Clarify used algorithm.
1110 2004-12-07 David Mosberger <davidm@hpl.hp.com>
1113 * config/ia64/ia64.c (ia64_assemble_integer): Add support for
1114 emitting unaligned pointer-sized integers.
1116 2004-12-07 Steven Bosscher <stevenb@suse.de>
1119 * c-typeck.c (c_start_case): Set orig_type to error_mark_node
1120 when the type of the controlling expression is not a valid type.
1122 2004-12-07 Steven Bosscher <stevenb@suse.de>
1124 PR tree-optimization/17340
1125 * tree-ssa-pre.c (compute_antic): Fix comment.
1126 (compute_avail): Do not recurse, instead do a DFS using a stack
1128 (execute_pre): Adjust.
1130 2004-12-07 Ziemowit Laski <zlaski@apple.com>
1132 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
1135 2004-12-07 Eric Christopher <echristo@redhat.com>
1138 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
1140 2004-12-07 Eric Christopher <echristo@redhat.com>
1142 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
1144 * config/mips/mips.c: ... here. Make static.
1146 2004-12-07 Eric Christopher <echristo@redhat.com>
1149 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
1150 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
1152 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
1154 * c-common.c, expr.c, fold-const.c, print-tree.c,
1155 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
1156 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
1157 first_rtl_op with TREE_CODE_LENGTH.
1158 * tree.c (first_rtl_op): Remove.
1159 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
1160 * tree.h: Remove the prototype for first_rtl_op.
1162 2004-12-07 David Edelsohn <edelsohn@gnu.org>
1164 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1165 Revert 2004-12-01 change.
1167 2004-12-06 Ziemowit Laski <zlaski@apple.com>
1169 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
1171 2004-12-06 DJ Delorie <dj@redhat.com>
1173 * reload.c (find_valid_class): Fix logic to test inner mode as well.
1174 (push_reload): Pass inner mode.
1176 2004-12-06 Eric Christopher <echristo@redhat.com>
1178 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
1180 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
1182 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
1184 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
1185 Kazu Hirata <kazu@cs.umass.edu>
1187 PR tree-optimization/18601
1188 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
1189 (tree_forwarder_block_p): Do not consider blocks that are its own
1190 successors forwarders.
1191 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
1192 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
1194 * tree-flow.h (bb_ann_d): Remove forwardable.
1196 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
1198 * expr.c (expand_expr_real_1): Remove an "if" whose condition
1201 2004-12-06 Roger Sayle <roger@eyesopen.com>
1203 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
1204 for loops whose conditions are known at compile-time.
1205 * gimplify.c (append_to_statement_list_1): Remove side_effects
1206 parameter, this function should never be called if its false.
1207 (append_to_statement_list): Only call append_to_statement_list_1
1208 if t is non-NULL tree with side-effects.
1209 (append_to_statement_list_force): Likewise, if t is not NULL.
1211 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
1213 * bt-load.c (btr_def_s): New member own_end;
1214 (add_btr_to_live_range): Add second parameter. Changed caller.
1215 (clear_btr_from_live_range): Clear btrs_live_at_end bit
1216 for the register its definition basic block if own_end is set.
1217 (augment_live_range): Also take btrs_live_at_end into account.
1218 (combine_btr_defs): Don't bother with
1219 other_def->other_btr_uses_after_use if it pertains to a different
1221 (move_btr_def): Set def->other_btr_uses_before_def after
1222 calling combine_btr_defs."
1224 * bt-load.c (augment_live_range): New argument full_range.
1225 Changed all callers.
1227 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
1228 taking new btr assignment into account.
1230 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
1232 * tree-ssa-alias.c (create_global_var): Use void_type_node,
1235 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1237 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
1240 2004-12-05 Richard Henderson <rth@redhat.com>
1243 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
1244 (builtin_setjmp_receiver_er_sl_1): Use it.
1245 (builtin_setjmp_receiver_er_1): Likewise.
1246 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
1247 (builtin_setjmp_receiver): Don't split for explicit relocs until
1249 (exception_receiver): Likewise.
1251 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1253 * mklibgcc.in (vis_hide): Add the prototype for the test.
1255 2004-12-05 Roger Sayle <roger@eyesopen.com>
1257 * c-typeck.c (c_finish_loop): Improve initial implementations
1258 for loops whose conditions are known at compile-time.
1260 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1262 * builtins.c: Fix comment typos.
1264 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1267 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
1268 the first/last insn is a sequence, return the first/last insn of the
1272 * mklibgcc.in (vis_hide): Use implementation instead of declaration
1275 2004-12-04 Richard Henderson <rth@redhat.com>
1277 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
1278 use ofs in BWX two byte special case.
1279 (alpha_expand_unaligned_store): Likewise.
1281 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
1283 * gcse.c (gcse_main): Add a comment.
1285 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1288 * builtins.c (fold_builtin_next_arg): Export and return true
1289 when there is a warning or an error.
1290 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
1292 (expand_builtin): Likewise.
1293 * gimplify.c (gimplify_call_expr): Error out if there is not
1294 enough arguments to va_start. Call fold_builtin_next_arg also
1295 on the second argument.
1296 * tree.h (fold_builtin_next_arg): Prototype.
1298 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1300 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
1301 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
1302 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
1303 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
1304 shlib_dir and shlib_so_name.
1305 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
1306 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
1307 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
1308 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
1309 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
1310 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
1312 2004-12-03 Roger Sayle <roger@eyesopen.com>
1314 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
1316 2004-12-03 Richard Henderson <rth@redhat.com>
1318 * alias.c (component_uses_parent_alias_set): Rename from
1319 can_address_p. Return bool. Reverse the sense of the result.
1320 Reinstate the check for alias set zero.
1321 (get_alias_set): Update to match.
1322 * alias.h (component_uses_parent_alias_set): Likewise.
1323 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1324 * expr.c (expand_assignment): Likewise.
1325 * expr.h: Remove commented out prototypes that were moved to alias.h.
1327 2004-12-03 Richard Henderson <rth@redhat.com>
1329 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
1330 (TARGET_CANNOT_FORCE_CONST_MEM): New.
1332 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1335 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
1337 * sched-ebb.c (schedule_ebb): Likewise.
1339 2004-12-03 Andreas Schwab <schwab@suse.de>
1341 * Makefile.in (HOSTHOOKS_DEF_H): Define.
1342 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
1343 (host-default.o): Likewise.
1345 2004-12-03 Eric Christopher <echristo@redhat.com>
1347 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
1348 pophi): Add number of arguments to name so that the
1349 pattern is recognized as a named pattern.
1351 2004-12-03 Janis Johnson <janis187@us.ibm.com>
1353 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
1355 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
1357 * config/rs6000/rs6000.c (rs6000_override_options): Protect
1358 darwin_one_byte_bool with #if.
1360 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
1362 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
1364 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
1366 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
1368 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
1370 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
1371 Set libstdcxx_incdir directly.
1372 * configure: Regenerate.
1374 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
1376 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
1377 "if" whose condition is always true.
1379 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
1382 2004-12-02 Stan Shebs <shebs@apple.com>
1384 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
1385 Darwin default to one-byte bools.
1387 2004-12-02 Richard Henderson <rth@redhat.com>
1390 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
1392 2004-12-03 Ben Elliston <bje@au.ibm.com>
1394 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
1395 type and its methods.
1397 2004-12-02 Richard Henderson <rth@redhat.com>
1399 * expr.c (write_complex_part): Use simplify_gen_subreg when the
1400 submode is at least as large as a word.
1401 (read_complex_part): Likewise.
1403 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1406 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
1407 multilib at a time. Don't build the default set. Don't add
1408 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
1409 filter for shared libunwind and libgcc.
1411 2004-12-02 Roger Sayle <roger@eyesopen.com>
1414 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
1415 already been specified, ignore the -momit-leaf-frame-pointer option.
1417 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1419 * varasm.c (make_decl_rtl): Add the missing `;'.
1421 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1423 * tree.c (is_attribute_p): Split out to ..
1424 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
1425 of strlen and compare the string lengths before calling strcmp.
1426 (lookup_attribute): Call is_attribute_with_length_p instead of
1429 2004-12-02 Devang Patel <dpatel@apple.com>
1431 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
1432 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
1433 * config/i386/darwin.h (CC1_SPEC): Same.
1435 2004-12-02 Richard Henderson <rth@redhat.com>
1437 * optabs.c (lowpart_subreg_maybe_copy): New.
1438 (expand_unop, expand_abs_nojump): Use it.
1440 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
1442 * sh.md (extv, extzv): Add pattern predicate.
1444 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1446 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1449 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1452 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
1454 2004-12-02 Jeff Law <law@redhat.com>
1456 * tree-eh.c: Revert yesterday's change.
1458 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1460 * varasm.c (decode_reg_name): Revert change to check for zero
1462 (make_decl_rtl): Make sure that we call decode_reg_name only
1465 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
1468 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
1469 then and else labels.
1471 2004-12-02 Andreas Schwab <schwab@suse.de>
1473 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
1474 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
1475 (STAGE2_FLAGS_TO_PASS): Likewise.
1477 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
1479 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1481 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
1482 now-redundant AC_SUBSTs.
1483 * aclocal.m4: Include ../config/gcc-version.m4.
1484 * configure: Regenerate.
1486 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1488 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
1489 #ifdef RELOCATABLE_NEEDS_FIXUP.
1491 2004-12-01 Roger Sayle <roger@eyesopen.com>
1494 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
1495 Intel assembler syntax by using %A1 instead of %*%1.
1497 2004-12-01 Richard Henderson <rth@redhat.com>
1499 * expr.c (expand_assignment): Handle CONCAT both as a final
1500 destination and as a middle point.
1502 2004-12-01 Jeff Law <law@redhat.com>
1504 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
1505 (honor_protect_cleanup_actions): Only create save_eptr and
1506 save_filt if they do not already exist.
1507 (lower_eh_constructs): Wipe all knowledge of save_eptr and
1508 save_filt before returning.
1510 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1512 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
1514 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1517 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
1518 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
1519 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
1520 of target_flags_explicit.
1521 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
1522 case. Define as 0 for non-biarch.
1524 2004-12-01 Zack Weinberg <zack@codesourcery.com>
1526 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1527 Change temporary file tag from a prefix to an infix.
1529 2004-12-02 Andreas Schwab <schwab@suse.de>
1531 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
1533 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
1537 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
1538 the statements if aliases_computed_p is true.
1540 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1542 * Makefile.in (WERROR): New variable.
1543 (STRICT2_WARN): Use it.
1544 (STAGE2_FLAGS_TO_PASS): Likewise.
1545 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
1547 2004-12-01 Richard Henderson <rth@redhat.com>
1549 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
1552 2004-12-01 Diego Novillo <dnovillo@redhat.com>
1554 PR tree-optimization/18291
1555 * tree-ssa-copy.c (merge_alias_info): Fix merging of
1556 flow-sensitive alias information. If the new pointer has no
1557 name tag, copy it from the original pointer. Otherwise, make
1558 sure that the pointed-to sets have a common intersection.
1560 2004-12-01 Richard Henderson <rth@redhat.com>
1563 * emit-rtl.c (gen_complex_constant_part): Remove.
1564 (gen_realpart, gen_imagpart): Remove.
1565 * rtl.h (gen_realpart, gen_imagpart): Remove.
1566 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
1567 gen_realpart/gen_imagpart.
1568 * expr.c (write_complex_part, read_complex_part): New.
1569 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
1570 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
1571 emit_move_multi_word): Split out from ...
1572 (emit_move_insn_1): ... here.
1573 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
1574 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
1575 * function.c (assign_parm_setup_reg): Hard-code transformations
1576 instead of using gen_realpart/gen_imagpart.
1578 * expr.c (optimize_bitfield_assignment_op): Split out from ...
1579 (expand_assignment): ... here. Use handled_component_p to gate
1580 get_inner_reference code. Simplify MEM handling. Special case
1581 CONCAT destinations.
1583 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
1584 of gen_rtx_SUBREG directly.
1586 2004-12-01 David Edelsohn <edelsohn@gnu.org>
1587 Nathan Sidwell <nathan@codesourcery.com>
1590 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
1595 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
1598 * params.c (set_param_value): Add range check.
1599 * params.def: Add min and max values. Reformat long strings.
1600 * params.h (struct param_info): Add min and max fields.
1601 (enum compiler_param): Adjust DEFPARAM.
1602 * toplev.c (lang_independent_params): Likewise.
1604 2004-12-01 Alan Modra <amodra@bigpond.net.au>
1607 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1609 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
1611 * doc/standards.texi: Update for C99 TC2.
1613 2004-11-30 Jeff Law <law@redhat.com>
1615 * sbitmap.c (sbitmap_any_common_bits): New function.
1616 * sbitmap.h (sbitmap_any_common_bits): Prototype.
1617 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1618 No longer allocate/free "psp", "pss" sbitmaps.
1619 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1621 (group_aliases): Similarly.
1623 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
1625 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1626 uninitialized variable.
1628 2004-11-30 Eric Christopher <echristo@redhat.com>
1630 * fold-const.c (fold_widened_comparison): Make sure that we're
1631 passing an INTEGER_TYPE to int_fits_type_p.
1632 (fold): Clean up comment.
1634 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1636 * mklibgcc.in: Correct calculation of libgcc_s_soname and
1637 libunwind_soname. Use $out, not $outS, in commands for
1638 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
1639 library build rules, make $libunwind_so and $libgcc_s_so
1640 depend on them in the normal fashion, and filter those objects
1641 out of @shlib_objs@.
1643 2004-11-30 Janis Johnson <janis187@us.ibm.com>
1645 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1647 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
1650 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1651 pass right after fold builtins.
1653 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1655 * config/s390/s390-modes.def: Added cc modes documentation.
1656 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1657 s390_expand_addcc): Added cc mode comments.
1658 * config/s390/s390.md: Removed old cc mode documentation.
1660 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
1662 * config/s390/s390.c (struct processor_costs): New data type.
1663 (s390_cost, z900_cost, z990_cost): New global variables.
1664 (override_options): Initialize s390_cost.
1665 (s390_rtx_costs): Reimplement.
1667 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
1669 Fix PR tree-optimization/18673
1671 * tree-ssa-pre.c: Remove splay-tree.h include.
1672 (bitmap_value_replace_in_set): Fix to add if it does not exist.
1673 (find_or_generate_expression): Remove now-wrong condition.
1674 (create_expression_by_pieces): Fix condition and comment reason
1676 (insert_aux): Fix condition and comment reasons for it.
1677 Factor insertion code from here.
1678 (insert_into_preds_of_block): To here. Fix conditions in factored
1679 function and comment reasons for them.
1681 2004-11-30 Ira Rosen <irar@il.ibm.com>
1684 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
1685 variable for data_reference when looking for memtag.
1687 2004-11-30 Jakub Jelinek <jakub@redhat.com>
1689 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
1692 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1694 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
1695 tree_low_cst instead of TREE_INT_CST_LOW.
1697 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1700 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
1701 decls that are assembled before vectorization takes place.
1702 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
1704 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1706 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
1707 if local_alloc modified jumps.
1709 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1711 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
1713 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
1716 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1718 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
1719 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
1721 * mklibgcc.in: Drastic restructure for comprehensibility.
1722 Remove the old hidden-directive hack.
1723 Eliminate support for .txt files in LIB2ADD etc (never used).
1724 Eliminate support for assembly source files in LIB2ADDEH* and
1725 LIBUNWIND (also never used).
1726 Build up dependency lists for libraries incrementally.
1727 If we have SHLIB_LINK, compile each file twice, once for the
1728 static and once for the shared library; also probe for
1729 -fvisibility=hidden in the generated libgcc.mk. If found,
1730 pass that and -DHIDE_EXPORTS to the compilation of every C
1731 source file going into the static library. If found, generate
1732 hidden-directive lists for every assembly source file going
1733 into the static library, but incorporate them with -include
1735 Write comments into generated libgcc.mk to facilitate debugging.
1736 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
1737 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
1739 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
1742 2004-11-29 Richard Henderson <rth@redhat.com>
1744 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
1745 (handled_component_p): Likewise.
1746 * alias.c (can_address_p): Reformat and simplify. Handle
1747 REAL/IMAGPART_EXPR. Do not disable addressability based on
1749 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
1750 check for REAL/IMAGPART_EXPR.
1751 * gimplify.c (gimplify_compound_lval): Likewise.
1752 * tree-cfg.c (verify_expr): Likewise.
1753 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1754 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
1755 (convert_local_reference): Likewise.
1756 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
1758 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1760 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
1762 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1765 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
1766 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
1767 and host_xmake_file using new host configuration files.
1769 2004-11-29 Roger Sayle <roger@eyesopen.com>
1771 * reg-stack.c (change_stack): Improve algorithm used to pop regs
1772 off the stack to maximize ffreep usage and reduce fxch count.
1774 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
1777 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
1780 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1782 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
1783 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
1785 2004-11-30 Ben Elliston <bje@au.ibm.com>
1787 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
1789 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1792 * c-common.c (handle_visibility_attribute): When the type decl
1793 is really a identifier node, warn about being ignored and return.
1795 2004-11-29 Richard Henderson <rth@redhat.com>
1797 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
1799 2004-11-29 Steven Bosscher <stevenb@suse.de>
1801 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
1802 Remove CASE_DROPS_THROUGH checks, it is never defined.
1803 * cfglyout.c (fixup_reorder_chain): Likewise.
1804 * cfgrtl.c (rtl_verify_flow_info): Likewise.
1805 * stmt.c (expand_case): Likewise.
1806 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
1808 * system.h (CASE_DROPS_THROUGH): Poison.
1809 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1810 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1812 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
1814 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1817 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
1820 2004-11-29 Diego Novillo <dnovillo@redhat.com>
1822 PR tree-optimization/18712
1823 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
1824 WORK_STACK by reference.
1825 Call VEC_safe_push instead of VEC_quick_push.
1828 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
1831 * Makefile.in (c-lang.o): Update dependencies.
1832 * c-lang.c: Include "c-pragma.h".
1833 (finish_file): Call maybe_apply_pending_pragma_weaks.
1834 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
1835 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
1837 2004-11-29 Richard Henderson <rth@redhat.com>
1840 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
1841 outside the referenced object.
1843 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
1845 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
1846 EDGE_PRED instead of PHI_ARG_EDGE.
1847 * tree-ssa-live.c: Likewise.
1848 * tree-ssa-loop-manip.c: Likewise.
1849 * tree-ssa.c: Likewise.
1851 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
1852 simplifying edge manipulation.
1854 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
1857 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
1860 * cfg.c (flow_obstack): Remove.
1861 (flow_firstobj): Likewise.
1862 (init_flow): Remove all uses of flow_obstack.
1864 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1866 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
1869 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
1871 * opts.c (decode_options): Do not set max-inline-insns-rtl.
1872 (common_handle_option): Likewise.
1873 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
1874 * params.h (MAX_INLINE_INSNS_RTL): Remove.
1875 * doc/invoke.texi (max-inline-insns-rtl): Remove.
1877 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1880 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
1882 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1885 * gimplify.c (gimplify_asm_expr): If the length of an output operand
1886 is zero, do not process it, just let it go through.
1888 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1889 Diego Novillo <dnovillo@redhat.com>
1891 PR/18662, also backported from tree-cleanup-branch.
1892 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
1893 always call maybe_clean_eh_stmt and modify_stmt.
1895 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1898 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
1899 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
1900 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
1901 add an inverse VIEW_CONVERT_EXPR to const_val.
1904 * tree-nested.c (check_for_nested_with_variably_modified): New.
1905 (create_nesting_tree): Call it.
1907 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
1908 special code for assigning to non-pointer.
1909 (is_escape_site): If RHS is a conversion between pointer and integer
1910 types, this is an escape site.
1912 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
1913 (store_motion): Don't move store if any edge we'd want to move it
1916 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
1917 non-zero lower bound.
1919 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
1921 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
1924 * opts.c (find_opt): Require that the input match a switch exactly
1925 or that the switch take a joined option to be interpreted as a
1926 match for another language.
1928 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1930 * timevar.def (TV_TREE_REDPHI): New timevar.
1931 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
1933 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1935 PR preprocessor/17651
1936 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
1937 flag_no_line_commands.
1938 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
1941 2004-11-28 Theodore A. Roth <troth@openavr.org>
1943 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
1944 warning if the function name does not begin with "__vector" and the
1945 function has either the 'signal' or 'interrupt' attribute.
1947 2004-11-28 Theodore A. Roth <troth@openavr.org>
1949 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
1950 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
1951 atmega325, atmega3250, atmega645 and atmega6450.
1952 * config/avr/avr.h (LINK_SPEC): Ditto.
1954 (LIBGCC_SPEC): Ditto.
1955 (CRT_BINUTILS_SPECS): Ditto.
1956 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
1958 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1960 PR preprocessor/17610
1961 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
1963 2004-11-28 Jeff Law <law@redhat.com>
1965 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
1966 (pass_maybe_create_global_var): New.
1967 * tree-pass.h (pass_maybe_create_global_var): Declare.
1968 * tree-optimize.c (init_tree_optimization_passes): Link in
1969 pass_maybe_create_global_var.
1971 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1973 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
1975 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1977 PR rtl-optimization/18420
1978 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
1980 2004-11-28 Steven Bosscher <stevenb@suse.de>
1981 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1983 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
1984 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
1985 that the case is in range, to make sure the casesi insn is always
1986 in range and never falls through.
1987 (casesi1): Add comment to explain why casesi never falls through.
1988 Remove the unnamed special case casesi pattern.
1990 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
1993 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
1994 "*movdicc_real". Only match reversible comparisons.
1995 ("*movdicc_real_nonreversible"): New pattern, split from
1996 "*movdicc_real". Match only nonreversible comparisons. Exclude
1997 reversed alternatives.
1998 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
2001 2004-11-27 Richard Henderson <rth@redhat.com>
2003 * config/ia64/ia64.md: Move all define_predicate's ...
2004 * config/ia64/predicates.md: ... here. New file.
2006 2004-11-27 Per Bothner <per@bothner.com>
2009 Re-applied following, with two modifications: add a URL for the
2010 fixed cctools; only exit if $build = $target.
2012 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
2013 * configure.ac (powerpc-*-darwin*): Require assembler to support
2015 * configure: Regenerate.
2017 2004-11-28 David Edelsohn <edelsohn@gnu.org>
2020 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
2021 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
2022 Distinguish between SImode and DImode CONST_INT.
2024 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
2025 Alan Modra <amodra@bigpond.net.au>
2028 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
2029 functions, strings and thread-local vars.
2031 2004-11-28 Alan Modra <amodra@bigpond.net.au>
2033 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
2034 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
2035 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
2036 to allow non-darwin ABIs to optimize away code.
2037 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2039 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
2041 * tree.c (operand_equal_for_phi_arg_p): New.
2042 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
2043 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
2044 Replace operand_equal_p with operand_for_phi_arg_p
2047 * bb-reorder.c (find_traces_1_round): Speed up by using
2048 EDGE_COUNT instead of FOR_EACH_EDGE.
2050 * fold-const.c, config/i386/linux64.h: Fix comment typos.
2052 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2055 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
2057 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
2059 * config/i386/linux.h: Fix a comment typo.
2060 * doc/extend.texi: Fix a typo.
2062 2004-11-27 Jeff Law <law@redhat.com>
2064 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
2067 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2069 * config/i386/linux64.h (REG_NAME): Define.
2071 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2073 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
2074 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
2075 and only afterwards convert to ctype.
2077 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
2079 * config/mips/mips-protos.h (function_arg_boundary): Declare.
2080 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
2081 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
2082 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
2083 * config/mips/mips.c (function_arg_boundary): New function.
2084 Impose a maximum alignment of STACK_BOUNDARY.
2086 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2088 PR rtl-optimization/17825
2089 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
2092 2004-11-27 Alan Modra <amodra@bigpond.net.au>
2095 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
2096 from rs6000_default_long_calls for libcalls.
2098 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2100 * expmed.c (extract_bit_field): When extracting from non-integer mode,
2101 force a SUBREG into a register because we may be taking a further
2104 2004-11-27 Di-an Jan <dianj@freeshell.org>
2106 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
2108 2004-11-26 Robert Millan <robertmh@gnu.org>
2110 Changes for k*bsd-gnu support.
2111 * config/i386/linux.h: Define REG_NAME to allow overriding of
2112 register names in sc structure.
2113 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
2115 * config.gcc: Detect x86_64-k*bsd-gnu systems.
2117 2004-11-26 Jeff Law <law@redhat.com>
2119 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
2120 retrieve annotations or pointer info before it's necessary.
2121 Reorder tests for early continue of the loop. Manually CSE
2124 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
2126 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
2127 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
2128 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
2129 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
2130 to a fixed reg if the source is the Return Address register.
2131 Implement new Rule 15.
2132 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
2133 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
2134 sparc_dwarf_handle_frame_unspec.
2135 (gen_save_register_window): New function.
2136 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
2137 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
2138 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
2139 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
2140 (sparc_asm_function_prologue): Do not emit call frame debugging info.
2141 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
2142 (sparc_expand_epilogue): Likewise.
2143 (sparc_dwarf_handle_frame_unspec): New function.
2144 * config/sparc/sparc.md (save_register_window): Remove.
2145 (save_register_windowdi): Rewrite modelled on the callframe debug info.
2146 (save_register_windowsi): Likewise.
2148 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
2150 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
2151 BB_HEAD, not BLOCK_HEAD.
2153 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
2155 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
2156 scratch insns that set a register live at the join point.
2158 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
2160 * cse.c, tree-ssa-operands.c: Fix comment typos.
2162 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
2164 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
2167 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
2169 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
2171 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
2172 check that tests if all edges go to the same destination.
2174 * bitmap.c (bitmap_find_bit): Speed up by traversing from
2175 head->first if that seems profitable.
2177 2004-11-25 Jeff Law <law@redhat.com>
2179 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
2180 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
2181 (pass_loop_done): Use TV_TREE_LOOP_FINI.
2183 2004-11-26 Alan Modra <amodra@bigpond.net.au>
2185 PR rtl-optimization/16356
2186 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
2187 separate output register and one less jump. Enable for powerpc64.
2188 (floatdisf2): Adjust for above.
2190 2004-11-25 Bob Wilson <bob.wilson@acm.org>
2192 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
2193 (GCC_DRIVER_HOST_INITIALIZATION): Define.
2195 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2198 * tree-complex.c (vector_inner_type): New variable moved from
2199 build_word_mode_vector_type.
2200 (vector_last_type): Likewise.
2201 (vector_last_nunits): Likewise.
2202 (build_word_mode_vector_type): Use the new variables.
2203 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
2204 (GTFILES): Add tree-complex.c.
2205 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
2207 2004-11-25 Bob Wilson <bob.wilson@acm.org>
2209 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
2210 __XTENSA_WINDOWED_ABI__.
2212 2004-11-25 Richard Henderson <rth@redhat.com>
2214 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
2215 args_size adjustments for calls even with cfa as stack pointer.
2216 Search calls for stack adjustments after the insn is issued.
2217 (dwarf2out_frame_debug): Add after_p argument; pass it on.
2218 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
2219 * final.c (final_start_function, final_scan_insn): Likewise.
2221 2004-11-25 Richard Henderson <rth@redhat.com>
2224 * reload1.c (set_initial_eh_label_offset): New.
2225 (set_initial_label_offsets): Use it.
2227 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
2229 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
2230 before calling life_analysis and release them after.
2232 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2234 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
2237 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2239 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
2240 BITMAP_OBSTACK_ALLOC.
2241 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
2243 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2245 parts of PR rtl-opt/18463, rtl-opt/17647
2246 * cse.c (canon_for_address): New function.
2247 (find_best_addr): Call canon_for_address before getting the
2248 address's cost when checking if we should take that address.
2250 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2252 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
2253 "tree *" as the first argument.
2254 * tree-flow.h: Update the prototype of add_phi_arg.
2255 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
2256 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2257 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
2258 tree-vectorizer.c: Update all call sites of add_phi_arg.
2260 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2262 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2263 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2264 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
2265 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
2267 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
2269 PR tree-optimization/18587
2270 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
2271 call clobbered caches as invalid.
2272 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
2273 indicating whether the call clobbered operand cache is valid.
2274 (ssa_ro_call_cache_valid): New. Flag indicating whether the
2275 pure/const call operand cache is valid.
2276 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
2277 list of operands for cached call virtual operands.
2278 (clobbered_aliased_loads, clobbered_aliased_stores,
2279 ro_call_aliased_load): New. flags caching whether alias bits are
2280 to be set in call stmt's.
2281 (fini_ssa_operands): Remove call operand caches if present.
2282 (get_expr_operands, get_asm_expr_operands,
2283 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
2284 (get_call_expr_operands): Add call clobbered variables first.
2285 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
2286 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
2287 if it is valid, otherise fill the cache.
2288 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
2289 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
2290 in_v_may_def_list bits.
2291 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
2292 in_list bits for the v_may_def elements and empty the operand
2294 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
2295 VUSES by checking the in_v_may_def_list bit.
2296 (append_v_may_def, append_vuse): Use the in_list bit rather than
2297 scanning the array for duplicates.
2299 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2301 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
2302 displacements are not short.
2304 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2306 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
2309 2004-11-25 Mark Mitchell <mark@codesourcery.com>
2312 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
2313 (lvalue_or_else): Declare.
2314 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
2315 * c-typeck.c (lvalue_use): Remove.
2316 (lvalue_or_else): Remove.
2319 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
2320 unemitted variables with static storage duration.
2322 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
2324 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
2327 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2329 * config/rs6000/altivec.md (VIshort): New mode macro.
2330 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
2332 (altivec_vaddu<VI_char>s): ... this.
2333 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
2335 (altivec_vadds<VI_char>s): ... this.
2336 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
2338 (altivec_vsubu<VI_char>s): ... this.
2339 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
2341 (altivec_vsubs<VI_char>s): ... this.
2342 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
2344 (altivec_vavgu<VI_char>): ... this.
2345 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
2347 (altivec_vavgs<VI_char>): ... this.
2348 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
2349 (altivec_vmsumu<VI_char>m): ... this.
2350 (altivec_vmsummbm, altivec_vmsummhm): Replace
2352 (altivec_vmsumm<VI_char>m): ... this.
2353 (altivec_vandc): Remove.
2354 (*andc<mode>3): Renamed to ...
2355 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
2356 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
2358 (altivec_vrl<VI_char>): ... this.
2359 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
2361 (altivec_vsl<VI_char>): ... this.
2362 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
2364 (altivec_vsr<VI_char>): ... this.
2365 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
2367 (altivec_vsra<VI_char>): ... this.
2368 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
2369 (altivec_vsum4s<VI_char>s): ... this.
2370 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
2372 (altivec_vperm_<mode>): ... this.
2373 (altivec_vsel_4sf): Rename to ...
2374 (altivec_vsel_v4sf): ... here.
2375 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
2377 (altivec_vsel_<mode>): ... this.
2378 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
2379 altivec_vsldoi_16qi): Rename to ...
2380 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
2381 altivec_vsldoi_v16qi): ... here.
2382 (altivec_vsldoi_4sf): Rename to ...
2383 (altivec_vsldoi_v4sf): ... here.
2384 (altivec_predicate_v4si, altivec_predicate_v8hi,
2385 altivec_predicate_v16qi): Replace with ...
2386 (altivec_predicate_<mode>): ... this.
2387 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
2389 (altivec_lve<VI_char>x): ... this.
2390 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
2392 (altivec_stve<VI_char>x): ... this.
2393 (absv16qi2, absv8hi2, absv4si2): Replace
2395 (abs<mode>2): ... this.
2396 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
2398 (altivec_abss_<mode>): ... this.
2399 (vec_realign_load_v16qi, vec_realign_load_v8hi,
2400 vec_realign_load_v4si): Replace with ...
2401 (vec_realign_load_<mode>): ... this.
2402 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
2404 (rs6000_expand_ternop_builtin): Likewise.
2406 2004-11-25 Andrew Haley <aph@redhat.com>
2408 * gcc.c (process_command): Don't supply -v to linker.
2410 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
2412 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
2413 instead of `%s' in diagnostic.
2415 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2417 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
2418 (FREE_REG_SET): Adjust.
2419 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
2420 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
2421 (BITMAP_ALLOC): ... here.
2422 (BITMAP_OBSTACK_FREE): Rename to ...
2423 (BITMAP_FREE): Don't check for NULL bitmap here.
2424 * tree-ssa-pre.c (value_insert_into_set_bitmap,
2425 bitmap_set_new): Use new names.
2427 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
2428 * df.c (df_free): Likewise.
2429 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
2430 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
2432 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
2433 (ALLOC_REG_SET): ... here.
2434 (FREE_REG_SET): Adjust.
2435 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
2436 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
2437 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
2438 * cfgrtl.c (rtl_split_block, rtl_split_edge,
2439 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
2440 * flow.c (update_life_info, calculate_global_regs_live,
2441 allocate_bb_life_data, init_propagate_block_info): Adjust.
2442 * global.c (build_insn_chain): Adjust.
2443 * ifcvt.c (dead_or_predicable): Adjust.
2444 * loop-iv.c (simplify_using_initial_values): Adjust.
2445 * recog.c (peephole2_optimize): Adjust.
2446 * sched-deps.c (init_deps_global): Adjust.
2448 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
2450 * config.gcc (avr-*-rtems*): Fix typo.
2452 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
2454 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2456 2004-11-24 Jeff Law <law@redhat.com>
2458 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
2459 the number of queries to random elements in the ai->written_vars
2462 2004-11-24 Roger Sayle <roger@eyesopen.com>
2464 * config/i386/i386.c (override_options): Disable x87 fancy math
2465 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
2467 2004-11-24 Roger Sayle <roger@eyesopen.com>
2469 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
2470 system header conflict on AIX 5.2.
2471 * configure: Regenerate.
2473 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2475 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
2476 instead of calling phi_arg_from_edge.
2478 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
2481 2004-11-24 Ben Elliston <bje@au.ibm.com>
2483 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
2484 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
2485 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
2488 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2490 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
2492 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
2493 type will be remapped.
2495 2004-11-24 Steven Bosscher <stevenb@suse.de>
2497 * c-opts.c (c_common_post_options): Don't clear
2498 flag_inline_functions.
2499 * dojump.c (clear_pending_stack_adjust): Remove check on
2500 flag_inline_functions, it's always true.
2501 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
2502 that can never trigger.
2503 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
2504 flag_inline_trees, now that flag_inline_functions is never
2506 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
2507 flag_inline_functions at optimization levels greater than
2508 or equal to 3. This is already done by default.
2510 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2512 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
2513 instead to find the PHI argument. Do not take I as an
2515 (eliminate_phi): Adjust the call to eliminate_build. Do not
2516 take I as an argument.
2517 (rewrite_trees): Adjust the call to eliminate_phi.
2519 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
2521 * optabs.h (force_expand_binop): Declare.
2522 * optabs.c (force_expand_binop): Export.
2523 * stmt.c (shift_return_value): Delete.
2524 (expand_return): Don't call it.
2525 * expr.h (shift_return_value): Declare.
2526 * calls.c (shift_returned_value): Delete in favor of...
2527 (shift_return_value): ...this new function. Leave the caller to check
2528 for non-BLKmode values passed in the msb of a register. Take said mode
2529 and a shift direction as argument. Operate on the hard function value,
2531 (expand_call): Adjust accordingly.
2532 * function.c (expand_function_start): If a non-BLKmode return value
2533 is padded at the last significant end of the return register, use the
2534 return value's natural mode for the DECL_RESULT, not the mode of the
2536 (expand_function_end): Shift the same sort of return values left by
2537 the appropriate amount.
2539 2004-11-24 Matt Austern <austern@apple.com>
2541 * recog.c (recog_memoized_1): Remove.
2542 * recog.h (recog_memoized_1): Remove declaration.
2543 (recog_memoized): Change from macro to inline function.
2545 2004-11-24 Devang Patel <dpatel@apple.com>
2548 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
2549 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
2551 2004-11-24 Devang Patel <dpatel@apple.com>
2553 * gcc.c (process_command): Supply -v to linker.
2555 2004-11-24 David Edelsohn <edelsohn@gnu.org>
2556 Paolo Bonzini <bonzini@gnu.org>
2558 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
2559 vector modes without ALTIVEC_ABI. Use GCC vector instead of
2561 (rs6000_pass_by_reference): Split conditional into pieces. Use
2562 GCC vector instead of synthetic vector.
2564 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
2566 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
2567 thread-local variable is invariant.
2569 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2571 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
2572 Handle TYPE_REF_CAN_ALIAS_ALL.
2573 (print_declaration): Print array dimensions like dump_generic_node.
2575 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
2576 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
2578 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
2580 * bitmap.c (INLINE): Do not define.
2581 (bitmap_elem_to_freelist, bitmap_element_free,
2582 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
2583 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2585 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2587 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
2588 find the index of a PHI argument. Use e->dest_idx instead.
2589 Replace hint with index.
2591 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
2594 2004-11-24 Diego Novillo <dnovillo@redhat.com>
2596 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
2597 regarding PT_MALLOC.
2599 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2601 * config/i386/i386.c (optimization_options): Use
2602 SUBTARGET_OPTIMIZATION_OPTIONS.
2603 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2604 (TARGET_SUBTARGET_DEFAULT): Don't include
2605 MASK_OMIT_LEAF_FRAME_POINTER.
2607 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2609 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2612 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2614 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2615 Use amd64 instead of 64.
2617 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2618 Joseph Myers <joseph@codesourcery.com>
2620 * crtstuff.c (IN_LIBGCC2): Define it.
2621 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2622 instead of HAVE_LD_RO_RW_SECTION_MIXING.
2623 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2624 * dwarf2out.c (named_section_eh_frame_section): Check
2625 EH_TABLES_CAN_BE_READ_ONLY.
2626 * except.c (default_exception_section): Likewise.
2627 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2628 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2630 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2632 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2633 index of a PHI argument.
2635 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2636 find_edge to find the index of a PHI argument.
2638 2004-11-24 Steven Bosscher <stevenb@suse.de>
2640 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2641 and LABELED_BLOCK_EXPR.
2642 * gimplify.c (gimplify_labeled_block_expr): Remove.
2643 (gimplify_exit_block_expr): Remove.
2644 (gimplify_expr): Don't call them.
2645 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2646 and LABELED_BLOCK_EXPR.
2647 (estimate_num_insns_1): Likewise.
2648 (walk_tree): Likewise.
2649 * tree-pretty-print.c (dump_generic_node): Don't handle
2650 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2651 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2652 (LABELED_BLOCK_EXPR): Likewise.
2653 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2654 (LABELED_BLOCK_BODY): Likewise.
2655 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2656 (EXIT_BLOCK_RETURN): Removed.
2658 2004-11-24 Steven Bosscher <stevenb@suse.de>
2660 * cfgrtl.c (rtl_delete_block): Fix comment.
2661 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2662 or BLOCK_END insn notes.
2663 * jump.c (squeeze_notes): Likewise.
2664 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2665 EH_REGION_END notes, we never have them to begin with.
2666 * sched-deps.c (sched_analyze_insn): When updating loop notes,
2667 verify that we have indeed only recorded loop notes.
2668 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2669 Only record loop notes.
2671 * cfgexpand.c (tree_expand_cfg): Fix comment.
2673 * passes.c (rest_of_compilation): Don't do a second call to
2674 convert_from_eh_region_ranges from here, it's already called
2676 * except.c (resolve_fixup_regions): Remove.
2677 (remove_fixup_regions): Remove.
2678 (convert_from_eh_region_ranges_1): Remove.
2679 (convert_from_eh_region_ranges): Remove the case where EH is
2680 not already lowered at the tree level. We always lower there.
2682 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
2685 * tree.c (make_vector_type): Move qualifiers to the vector type,
2686 use the inner type's main variant and build a main variant for
2687 the vector type if necessary.
2688 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
2690 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2692 * target.h (late_rtl_prologue_epilogue): Remove.
2693 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2694 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
2695 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
2696 remaining bits to...
2697 (rest_of_handle_flow2): ...here.
2698 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
2699 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2701 2004-11-23 Mark Mitchell <mark@codesourcery.com>
2703 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
2704 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
2705 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
2707 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
2709 * config/i386/i386.c (override_options): Move
2710 SUBTARGET_OVERRIDE_OPTIONS before defaulting
2711 flag_omit_frame_pointer.
2713 2004-11-23 Richard Henderson <rth@redhat.com>
2715 * rtl.h (validate_subreg): Declare.
2716 * emit-rtl.c (validate_subreg): New.
2717 (gen_rtx_SUBREG): Use it.
2718 * simplify-rtx.c (simplify_subreg): Likewise.
2719 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
2720 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
2721 fallback whenever gen_realpart/gen_imagpart would not be able to
2724 2004-11-23 Richard Henderson <rth@redhat.com>
2726 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
2727 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
2730 2004-11-23 Diego Novillo <dnovillo@redhat.com>
2732 PR tree-optimization/18618
2733 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
2734 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
2735 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
2737 (stmts_to_rescan): Likewise.
2738 (const_and_copies_stack): Likewise.
2739 (nonzero_vars_stack): Likewise.
2740 (vrp_variables_stack): Likewise.
2742 2004-11-23 Richard Henderson <rth@redhat.com>
2744 * cse.c (record_jump_cond_subreg): New.
2745 (record_jump_cond): Use it instead of gen_lowpart.
2747 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
2748 Joseph Myers <joseph@codesourcery.com>
2750 * config/sol2-c.c (solaris_register_pragmas): Use
2751 c_register_pragma_with_expansion.
2752 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
2753 * c-pragma.c (c_register_pragma): Update call to
2754 cpp_register_pragma.
2755 (c_register_pragma_with_expansion): New function.
2756 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
2757 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
2758 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
2760 * doc/tm.texi (c_register_pragma_with_expansion,
2761 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
2763 2004-11-23 Richard Henderson <rth@redhat.com>
2765 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
2766 as mode sizes into local temporaries. Unify failure path.
2768 2004-11-23 Richard Henderson <rth@redhat.com>
2770 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
2771 * caller-save.c (mark_set_regs): Use subreg_regno instead.
2772 * final.c (alter_subreg): Likewise.
2773 * local-alloc.c (reg_is_born): Likewise.
2775 2004-11-23 Richard Henderson <rth@redhat.com>
2777 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
2778 instead of using a SUBREG temporary.
2780 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2782 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
2785 2004-11-23 Zack Weinberg <zack@codesourcery.com>
2787 * function.h (struct function): Remove calls_longjmp.
2788 (current_function_calls_longjmp): Delete.
2789 * tree.h (ECF_LONGJMP): Delete.
2790 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
2791 (ECF_LIBCALL_BLOCK): Everybody slide down one.
2792 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
2793 * builtins.c (expand_builtin_longjmp): Don't set
2794 current_function_calls_longjmp.
2795 * calls.c (special_function_p): Mark longjmp and siglongjmp
2796 with ECF_NORETURN, not ECF_LONGJMP.
2797 (emit_call_1, expand_call, emit_library_call_value_1):
2798 Don't check for ECF_LONGJMP.
2799 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
2800 (need_fake_edge_p): Likewise.
2802 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
2803 * system.h: Poison NON_SAVING_SETJMP.
2804 * function.c (use_register_for_decl)
2805 * gcse.c (compute_hash_table_work, compute_store_table)
2806 * postreload-gcse.c (record_opr_changes)
2807 * reload.c (find_equiv_reg)
2808 * reload1.c (reload)
2809 * config/i386/i386.c (ix86_can_use_return_insn_p):
2810 Remove code conditional on NON_SAVING_SETJMP.
2811 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
2813 * config/i386/sysv3.h: Delete file.
2814 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
2816 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2818 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
2819 the vectorization factor is greater than the iteration count.
2820 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
2821 iteration count is known.
2823 (vect_build_symbol_bound): Removed. Its functionality moved to
2824 vect_generate_tmps_on_preheader.
2825 (vect_generate_tmps_on_preheader): Moved content of
2826 vect_build_symbol_bound here instead of calling it. Changed some
2829 (vect_build_loop_niters): We don't expect a new_bb to be generated -
2831 (vect_gen_niters_for_prolog_loop): Likewise.
2832 (vect_gen_niters_for_prolog_loo): Likewise.
2834 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
2835 (slpeel_add_loop_guard): Likewise.
2836 (slpeel_tree_peel_loop_to_edge): Likewise.
2837 (vect_do_peeling_for_alignment): Likewise.
2839 (vect_get_first_index): Missing space.
2841 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
2843 * config/s390/s390.md ("*iordi3"): Mark commutative.
2844 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
2846 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2848 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
2849 greater than PHI_ARG_CAPACITY.
2850 (reserve_phi_args_for_new_edge): Initialize the new PHI
2851 argument to NULL_TREE. Increment PHI_NUM_ARGS.
2852 (add_phi_arg): Add a PHI argument to the slot given by
2854 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
2855 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
2856 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
2857 argument by looking at PHI_ARG_DEF.
2858 (verify_phi_args): Check for a missing PHI argument. Remove
2859 the check for duplicate PHI arguments.
2860 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
2861 (phi_arg_d): Remove e.
2863 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
2864 by restricting to the case with two outgoing edges.
2866 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
2868 * config/s390/s390.c (s390_backchain_string): Removed.
2869 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
2870 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
2871 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
2872 TARGET_KERNEL_BACKCHAIN to reflect the new options.
2873 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
2874 (TARGET_KERNEL_BACKCHAIN): Removed.
2875 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
2876 (TARGET_PACKED_STACK): New macro.
2877 (TARGET_SWITCHES): New switches added.
2878 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
2880 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
2881 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
2882 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
2883 the change in target switch semantics.
2884 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
2885 (TARGET_DEFAULT): MASK_BACKCHAIN added.
2886 * doc/invoke.texi: Added documentation for the new/changed options.
2888 2004-11-23 Uros Bizjak <uros@kss-loka.si>
2890 PR rtl-optimization/18614
2891 * simplify-rtx.c (simplify_binary_operation): Do not
2892 simplify inner elements of constant arguments of
2895 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2897 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
2900 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2902 * tree-phinode.c (make_phi_node): Use a new variable,
2903 capacity, to receive the return value of ideal_phi_node_len.
2905 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2907 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
2908 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2909 __gthread_recursive_mutex_init_function.
2910 (__gthread_key_create): Properly cast -1.
2911 (__gthread_recursive_mutex_init_function): New function.
2912 (__gthread_recursive_mutex_lock): Rewrite.
2913 (__gthread_recursive_mutex_trylock): Likewise.
2914 (__gthread_recursive_mutex_unlock): Likewise.
2916 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2918 * config/c4x/t-rtems: New.
2919 * config.gcc: Reflect having added c4x/t-rtems.
2921 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2925 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
2926 lang_hooks.types.type_for_size instead of integer_type_node for the
2929 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2931 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
2933 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2935 * config/arm/t-rtems: New.
2936 * config.gcc: Reflect having added arm/t-rtems.
2938 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2940 * tree-cfg.c (tree_execute_on_growing_pred): New.
2941 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
2942 * tree-flow.h: Add a prototype for
2943 reserve_phi_args_for_new_edge.
2944 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
2945 (add_phi_arg): Don't resize a PHI array.
2947 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2949 * config.gcc: Add avr-*-rtems*.
2950 * config/avr/t-rtems: New.
2951 * config/avr/rtems.h: New.
2953 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2955 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
2956 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
2957 Add comment to function.
2959 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2962 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
2964 PR rtl-optimization/14838
2965 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
2967 (get_last_nonnote_insn): Don't assume last insn is a note.
2969 2004-11-22 Roger Sayle <roger@eyesopen.com>
2971 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
2972 to fold_binary_to_constant.
2973 (nondestructive_fold_unary_to_constant): Likewise, rename to
2974 fold_unary_to_constant.
2975 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
2976 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
2977 (nondestructive_fold_unary_to_constant): Likewise.
2978 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
2979 and fold_binary_to_constant.
2980 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2981 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
2982 and EXEC_UNARY with calls to fold_*nary_to_constant.
2983 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2984 (idx_find_step): Replace uses of EXEC_BINARY with calls to
2985 fold_binary_to_constant.
2987 2004-11-22 Nick Clifton <nickc@redhat.com>
2989 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2990 initialisation of 'e'.
2992 2004-11-22 Roger Sayle <roger@eyesopen.com>
2994 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
2995 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
2996 automatically for targets without TARGET_80387.
2997 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
2998 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
2999 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
3000 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
3001 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
3002 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
3003 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
3004 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
3005 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
3006 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
3007 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
3008 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
3009 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
3010 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
3011 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
3012 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
3013 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
3014 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
3015 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
3016 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
3018 2004-11-22 Dale Johannesen <dalej@apple.com>
3020 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
3021 properly and comment.
3023 2004-11-22 James A. Morrison <phython@gcc.gnu.org
3025 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
3026 (sparc_init_builtins): New function.
3027 (sparc_init_vis_builtins): Create builtin functions for VIS
3029 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
3030 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
3031 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
3032 (def_builtin): New macro for creating builtin functions.
3033 (P): New mode macro for pointer types.
3034 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
3035 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
3036 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
3037 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
3038 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
3039 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
3040 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
3042 2004-11-22 Devang Patel <dpatel@apple.com>
3044 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
3046 2004-11-22 Devang Patel <dpatel@apple.com>
3048 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
3049 (if_convertible_phi_p): ... new name.
3050 (if_convertable_modify_expr_p): Rename to ...
3051 (if_convertible_modify_expr_p): ... new name.
3052 (if_convertable_stmt_p): Rename to ...
3053 (if_convertible_stmt_p): ... new name.
3054 (if_convertable_bb_p): Rename to ...
3055 (if_convertible_bb_p): ... new name.
3056 (if_convertable_loop_p): Rename to ...
3057 (if_convertible_loop_p): ... new name.
3059 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3062 * configure.ac (threading): Accept 'posix95'.
3063 * configure: Regenerate.
3064 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
3065 include sol26.h and default to posix95 threads if have_pthread_h.
3066 (sparc-*-solaris2*): Likewise.
3067 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
3068 * gthr-posix95.h: New file.
3069 * config/sol26.h: New file.
3070 * doc/install.texi (--enable-threads): Document 'posix95'.
3072 2004-11-23 Ben Elliston <bje@au.ibm.com>
3074 * pointer-set.h (pointer_set_contains): Remove.
3075 * pointer-set.c (pointer_set_contains): Likewise.
3077 2004-11-22 Dale Johannesen <dalej@apple.com>
3079 * calls.c (expand_call): Do not call preserve_temp_slots.
3081 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
3083 * tree-flow.h: Remove the prototype for remove_phi_arg.
3084 Add a prototype for remove_phi_args.
3085 * tree-phinodes.c (remove_phi_arg): Remove.
3086 (remove_phi_args): New.
3087 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
3090 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
3091 after making an edge.
3092 (remove_edge): Call execute_on_shrinking_pred before removing
3094 (redirect_edge_succ): Call execute_on_growing_pred and
3095 execute_on_shrinking_pred.
3096 * cfghooks.c (execute_on_growing_pred): New.
3097 (execute_on_shrinking_pred): Likewise.
3098 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
3099 execute_on_shrinking_pred.
3100 Add prototypes for execute_on_growing_pred and
3101 execute_on_shrinking_pred.
3102 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
3103 execute_on_growing_pred and execute_on_shrinking_pred.
3104 (cfg_layout_rtl_cfg_hook): Likewise.
3105 * tree-cfg.c (tree_cfg_hooks): Likewise.
3107 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
3108 (tree_cfg_hooks): Use it.
3109 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
3110 (ssa_redirect_edge): Don't call remove_phi_arg_num.
3112 * tree-phinodes.c (remove_phi_arg_num): Make it static.
3113 * tree-flow.h: Remove the corresponding prototype.
3115 * tree-ssa.c (ssa_remove_edge): Remove.
3116 * tree-flow.h: Remove the corresponding prototype.
3117 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
3118 * basic-block.h: Likewise.
3119 * tree-if-conv.c: Likewise.
3120 * tree-ssa-threadupdate.c: Likewise.
3122 2004-11-23 Ben Elliston <bje@au.ibm.com>
3124 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
3125 @table to list the BSI methods. Use individual @findex directives
3126 instead of one with a comma-separated list of index entries.
3128 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
3130 PR tree-optimization/18529
3131 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
3132 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
3133 (fold): Call fold_to_nonsharp_ineq_using_bound.
3134 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
3135 (number_of_iterations_cond): Fold the expressions before futher
3137 (tree_simplify_using_condition): Handle case when cond or expr is
3138 an EQ_EXPR specially.
3140 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
3142 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
3143 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
3145 2004-11-22 David Edelsohn <edelsohn@gnu.org>
3146 Fariborz Jahanian <fjahanian@apple.com>
3148 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
3150 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
3151 Align 16 byte and larger vectors like Altivec.
3152 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
3153 (function_arg): Same.
3154 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
3156 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3159 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
3162 2004-11-22 Richard Henderson <rth@redhat.com>
3164 * function.c (assign_parm_setup_block): Revert 11-13 change to
3165 forcably re-mode a (possibly BLKmode) hard register.
3167 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3169 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
3171 2004-11-22 David Edelsohn <edelsohn@gnu.org>
3173 * config/rs6000/power4.md: Remove delay between dispatch and issue
3174 associated with dispatch group slots 3 and 4.
3175 * config/rs6000/power5.md: Same.
3177 2004-11-21 Jeff Law <law@redhat.com>
3179 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
3181 * cfgbuild.c (make_edges): Likewise.
3182 * cfghooks.c (can_duplicate_block_p): Likewise.
3183 * cfgloop.c (loop_latch_edge): Likewise.
3184 * cfgloopmanip.c (force_single_succ_latches): Likewise.
3185 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3186 * predict.c (predict_loops, propagate_freq): Likewise.
3187 * tracer.c (tail_duplicate): Likewise.
3188 * tree-cfg.c (disband_implicit_edges): Likewise.
3189 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
3191 2004-11-22 Nick Clifton <nickc@redhat.com>
3193 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
3194 initialisation of 'e'.
3196 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
3198 PR rtl-optimization/18599
3199 * regrename.c (copyprop_hardreg_forward): Speed up by putting
3200 BB_VISITED flags on basic blocks as we process them.
3202 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3205 * config/rs6000/altivec.md (VI_char): New mode attribute.
3206 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
3207 (add<mode>3): ... this.
3208 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
3209 (sub<mode>3): ... this.
3210 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
3211 (smax<mode>3): ... this.
3212 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
3213 (smin<mode>3): ... this.
3214 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
3215 (umax<mode>3): ... this.
3216 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
3217 (umin<mode>3): ... this.
3218 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3219 (and<mode>3): ... this.
3220 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3221 (ior<mode>3): ... this.
3222 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
3223 (xor<mode>3): ... this.
3224 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3225 (and<mode>3): ... this.
3226 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3227 (ior<mode>3): ... this.
3228 (altivec_vnor): Replace with ...
3229 (altivec_nor<mode>): ... this.
3230 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
3231 (one_cmpl<mode>2): ... this.
3232 (altivec_vandc): New expander.
3233 (*andc<mode>3): New insn.
3234 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
3236 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3239 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
3240 creating iv instead of integer_type.
3241 (vect_build_loop_niters): Remove redundant code.
3242 (vect_transform_loop_bound): Removed (duplicates functionality of
3243 make_loop_iterate_ntimes.
3244 (vect_gen_niters_for_prolog_loop): Add documentation. Call
3245 lang_hooks.types.type_for_size to create a type of the required size.
3246 Use that type instead of integer_type. Remove redundant code.
3247 (vect_update_niters_after_peeling): Use type of niters instead of
3249 (vect_transform_loop): Unify handling of known and unknown loop bound
3250 cases. Call make_loop_iterate_ntimes instead of
3251 vect_transform_loop_bound.
3253 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3256 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
3259 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3262 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
3264 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3266 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
3268 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
3269 m32r/libgcc-glibc.ver.
3270 * config/m32r/libgcc-glibc.ver: Add New file.
3272 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3274 * bitmap.h (struct bitmap_obstack): New obstack type.
3275 (struct bitmap_head_def): Replace using_obstack with obstack
3277 (bitmap_default_obstack): New.
3278 (bitmap_initialize): Make inline, does not do allocation.
3279 (bitmap_release_memory): Remove.
3280 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
3281 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3282 bitmap_obstack_free, bitmap_malloc_free): Declare.
3283 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
3284 (BITMAP_FREE): Replace with ...
3285 (BITMAP_OBSTACK_FREE): ... this.
3286 (BITMAP_XFREE): Adjust.
3287 (BITMAP_INIT_ONCE): Remove.
3288 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
3289 (bitmap_default_obstack): New.
3290 (bitmap_elem_to_freelist): Adjust.
3291 (bitmap_element_allocate): Adjust. Break initialization into ...
3292 (bitmap_obstack_initialize): ... here.
3293 (bitmap_release_memory): Replace with ...
3294 (bitmap_obstack_release): ... this.
3295 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3296 bitmap_obstack_free, bitmap_malloc_free): New.
3297 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
3299 (bitmap_initialize): Move to bitmap.h.
3300 * gengtype.c (open_base_files): Add obstack.h to ifiles.
3301 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
3302 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
3303 (INITIALIZE_REG_SET): Remove.
3304 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
3305 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
3306 (flow_obstack): Do not declare.
3307 (reg_obstack): Declare.
3308 * regs.h: Include obstack.h.
3309 * tree-optimize.c (tree_rest_of_compilation): Initialize and
3310 release bitmap obstack here.
3311 * bb-reorder.c: #include regs, not basic-block.
3312 (fix_crossing_conditional_branches): Allocate regsets from
3314 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
3316 * caller-save.c: Include regs.h earlier.
3317 * cfg.c: Do not include basic-block.h or obstack.h.
3318 (reg_obstack): Define.
3319 * cfganal.c: Include obstack.h
3320 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
3322 * cfglayout.c: Do not include obstack.h.
3323 (flow_obstack): Remove declaration.
3324 (cfg_layout_duplicate_bb): Use reg_obstack.
3325 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
3326 * cfgrtl.c (rtl_split_block): Use reg_obstack.
3327 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
3328 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
3329 (cfg_layout_split_edge): Use reg_obstack.
3330 * cse.c: Include regs.h earlier.
3331 * ddg.c: Do not include basic-block.h.
3332 * dominance.c: Inlude obstack.h.
3333 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
3334 (calculate_global_regs_live): Likewise.
3335 (allocate_bb_life_data): Use reg_obstack.
3336 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
3337 * global.c: Do not include basic-block.h.
3338 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
3339 * graph.c: Include obstack.h.
3340 * haifa-sched.c: Do not include basic-block.h.
3341 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
3342 * local-alloc.c: Do not include basic-block.h.
3343 * loop-init.c, loop-invariant.c: Include obstack.h.
3344 * loop-iv.c: Likewise.
3345 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
3347 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
3348 * modulo-sched.c: Do not include basic-block.h.
3349 * passes.c (rest_of_handle_final): Do not call
3350 regset_release_memory.
3351 * ra-debug.c: Include regs.h earlier. Do not include
3353 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
3354 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
3355 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
3356 (regset_release_memory): Remove.
3357 * resource.c: Do not include basic-block.h.
3358 * rtlanal.c: Do not include basic-block.h.
3359 * sbitmap.c: Include obstack.h.
3360 * sched-deps.c: Do not include basic-block.h.
3361 (reg_pending_sets_head, reg_pending_clobbers_head,
3362 reg_pending_uses_head): Remove.
3363 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
3364 * sched-ebb.c: Do not include basic-block.h.
3365 * sched-rgn.c: Likewise.
3366 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
3368 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
3369 * tree-sra.c (decide_instantiations): Adjust bitmap
3371 * tree-ssa-dce.c: Include obstack.h.
3372 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
3373 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
3374 (bitmap_set_new): Likewise.
3375 (init_pre): Initialize bitmap obstack.
3376 (fini_pre): Release bitmap obstack.
3377 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
3378 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
3379 (mark_for_rewrite, unmark_for_rewrite): Likewise.
3380 (marked_ssa_names): Likewise.
3381 (init_ssanames): Use BITMAP_XMALLOC.
3382 (fini_ssanames): Use BITMAP_XFREE.
3383 * web.c: Include obstack.h
3385 2004-11-22 Nick Clifton <nickc@redhat.com>
3387 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
3388 predecessor in the first for-loop.
3390 2004-11-21 Stan Shebs <shebs@apple.com>
3392 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
3394 (function_arg): Move darwin test up, sniff mode first for
3395 efficiency, test for union type.
3397 2004-11-21 Dale Johannesen <dalej@apple.com>
3399 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3401 2004-11-21 Jeff Law <law@redhat.com>
3403 * tree-ssa.c (verify_use): Fix comment.
3404 (verify_phi_args): Check that the number of incoming edges matches
3405 the number of PHI arguments. Check that each PHI argument is
3406 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
3407 dead or duplicated edges. Clear e->aux earlier and avoid separate
3408 loop to clear e->aux and test for missed edges.
3409 (verify_ssa): Remove first walk over statements. Move checking
3410 of PHI args into verify_phi_args. Move checking of statements
3411 with aliased stores and V_MAY_DEFS into the remaining loop over
3412 the statements. Register defs by walking through the formal
3415 2004-11-21 Roger Sayle <roger@eyesopen.com>
3418 * dojump.c (compare_from_rtx): Clarify mode argument in function
3419 description. Correct order of mode/cmp_mode arguments in call to
3420 simplify_relational_operation. Check "tem" for COMPARISON_P.
3422 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
3423 David Edelsohn <edelsohn@gnu.org>
3426 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
3427 synthetic vectors in memory.
3428 (function_arg_boundary): Align large synthetic vectors.
3429 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
3431 2004-11-21 Jeff Law <law@redhat.com>
3433 * cfg.c (update_bb_profile_for_threading): Do not rescale the
3434 successor probabilities if they are not going to change. Pull
3435 division out of loop if we do need to rescale successor probabilities.
3437 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
3438 index of the destination block for the hash value rather than
3441 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
3443 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
3444 checks for neither argument being an array or pointer (swapping
3445 the arguments if necessary), the array argument being a pointer to
3446 or array of functions and for -Wchar-subscripts warnings upfront.
3448 2004-11-20 Jeff Law <law@redhat.com>
3450 * regrename.c (copyprop_hardreg_forward): Only search for a
3451 previously processed block if the current block only has one
3454 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
3456 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
3458 * config/arm/arm.c: Follow spelling conventions.
3460 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
3462 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
3463 a bit in tune_flags.
3464 (const_double_needs_minipool): Likewise. Split most of the code out
3466 (arm_const_double_inline_cost): ... new function here.
3467 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
3468 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
3469 word constants of length 2, 3 and 4 insns respectively.
3470 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
3471 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
3472 constraints. Set insn lenghts accordingly.
3474 2004-11-19 Jeff Law <law@redhat.com>
3476 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
3477 a hash table. Extensive modifications throughout to support
3480 (struct local_info): New.
3481 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
3483 (redirection_data): Now a hashtable.
3484 (redirection_data_hash, redirection_data_eq): New.
3485 (lookup_redirection_data, create_duplicates): New.
3486 (create_edge_and_update_destionation_phis): New.
3487 (fixup_template_block, redirect_edges): New.
3488 (thread_block): Use hash table traversals instead of loops over
3489 varray entries or incoming edge vectors.
3491 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3493 * basic-block.h (edge_def): Add dest_idx.
3494 * cfg.c (unchecked_make_edge): Initialize dest_idx.
3495 (remove_edge): Simplify the disconnection of an edge from its
3497 (redirect_edge_succ): Likewise.
3498 * cfghooks.c (verify_flow_info): Check the consistency of
3499 dest_idx for each edge.
3501 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
3503 * simplify-rtx.c (simplify_ternary_operation): Use
3506 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3508 * tree-cfg.c (reinstall_phi_args): New.
3509 (tree_split_edge): Use it after redirecting an edge. Don't
3510 modify PHI_ARG_EDGE.
3512 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
3514 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
3515 if checking is enabled.
3517 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
3519 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
3520 too many nested scopes.
3522 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3525 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
3526 changed to suppoer uses-after-loop and to void creating flow paths
3527 that shouldn't exist.
3528 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
3529 Modified to fit the new peeling scheme. Avoid quadratic behavior.
3530 (slpeel_add_loop_guard): Takes additional argument.
3531 (slpeel_verify_cfg_after_peeling): New function.
3532 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
3533 documentation. Use 'exit-bb' instead of creating 'new-bb'.
3534 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
3535 the new peeling scheme.
3536 (copy_phi_nodes): Function removed. Its functionality moved to
3537 update_phis_for_duplicate_loop.
3538 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
3539 moved here. Added documentation. Modified to fit the new peeling scheme.
3540 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
3541 needed - done in slpeel_tree_peel_loop_to_edge.
3542 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
3543 (vect_do_peeling_for_loop_bound): Add documentation. Call
3544 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
3545 with additional argument.
3546 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
3548 (vect_finish_stmt_generation): Avoid 80 column oveflow.
3550 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3552 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
3554 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
3555 without last two arguments. Update single_exit of loops.
3556 (vect_update_niters_after_peeling): Removed. Its functionality was
3557 moved to vect_do_peeling_for_alignment.
3558 (vect_do_peeling_for_loop_bound): New name for function previously
3559 called vect_transform_for_unknown_loop_bound.
3560 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
3561 instead of code that duplicates the same functionality.
3562 (vect_do_peeling_for_alignment): Functionality of
3563 vect_update_niters_after_peeling moved here.
3564 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
3565 previously named vect_transform_for_unknown_loop_bound - for both known
3566 and unknown loop bound cases.
3568 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3570 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
3571 previously called verify_loop_for_duplication. All conditions compacted
3572 into one compound condition. Removed debug dumps.
3573 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
3574 functionality moved to vect_can_advance_ivs_p, and some to
3575 vect_analyze_loop_form.
3576 (vect_can_advance_ivs_p): New function. Contains functionality that was
3577 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
3578 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
3579 (vect_analyze_operations): Call vect_can_advance_ivs_p and
3580 slpeel_can_duplicate_loop_p.
3581 (vect_get_loop_niters): Added documentation.
3582 (vect_analyze_loop_form): Check the loop entry always - not only in case
3583 of unknown loop bound. Create preheader and exit bb if necessary. Apply
3584 a check that used to take place in
3585 vect_analyze_loop_with_symbolic_num_of_iters.
3586 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
3587 Remove redundant call to rewrite_into_loop_closed_ssa.
3588 (vect_compute_data_refs_alignment): Removed obsolete comment.
3590 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3592 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
3593 function previously called tree_duplicate_loop_to_edge.
3594 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
3595 previously called tree_duplicate_loop_to_edge_cfg.
3596 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
3598 (slpeel_update_phi_nodes_for_guard): Likewise.
3599 (slpeel_make_loop_iterate_ntimes): Likewise.
3600 (slpeel_add_loop_guard): Likewise.
3601 (allocate_new_names, free_new_names): Function declaration moved to top
3603 (rename_use_op, rename_def_op): Likewise.
3604 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3605 (vect_generate_tmps_on_preheader): Function declaration moved.
3606 (vect_transform_for_unknown_loop_bound): Added missing function
3609 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
3612 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3613 Define a VEC(tree_on_heap) for head.
3614 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3615 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3616 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3617 the VEC(tree_on_heap) function. Also free it before returning.
3618 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3619 for block_defs_stack.
3620 (restore_currdefs_to_original_value): Use VEC_length instead of
3621 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3622 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3623 for block_defs_stack.
3624 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3625 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3626 for block_defs_stack.
3627 (ssa_register_new_def): Likewise.
3628 (ssa_rewrite_initialize_block): Likewise.
3629 (rewrite_finalize_block): Use VEC_length instead of
3630 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3631 (ssa_rewrite_finalize_block): Likewise.
3632 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3633 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3634 (rewrite_blocks): Initialize block_defs_stack with
3635 the VEC(tree_on_heap) function. Also free it before returning.
3636 (rewrite_ssa_into_ssa): Likewise.
3638 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
3640 * config/darwin.c (machopic_data_defined_p): return 1 for
3641 MACHOPIC_DEFINED_FUNCTION.
3643 2004-11-19 Jeff Law <law@redhat.com>
3645 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3648 2004-11-19 Paul Brook <paul@codesourcery.com>
3651 * varasm.c (default_assemble_integer): Allow pointer-sized values.
3654 2004-11-19 Nick Clifton <nickc@redhat.com>
3656 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3657 zero_extension and lshiftrt insns.
3658 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3660 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3661 to handle bp and bn insn patterns with a zero_extend rtx
3664 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
3666 * config/arm/arm.md (generic_sched): Make const.
3668 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3670 * emit-rtl.c (classify_insn): Make it static.
3671 * rtl.h: Remove the corresponding prototype.
3673 * integrate.c (has_func_hard_reg_initial_val,
3674 get_func_hard_reg_initial_val): Make them static.
3675 * integrate.h: Remove the corresponding prototypes.
3677 2004-11-19 Ben Elliston <bje@au.ibm.com>
3679 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3680 (dw2_asm_output_delta_sleb128): Likewise.
3681 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3682 (dw2_asm_output_delta_sleb128): Likewise.
3684 2004-11-19 Adam Nemet <anemet@lnxw.com>
3686 * tree-ssa-alias.c: Fix comment.
3688 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3690 * tree-outof-ssa.c: Fix a comment typo.
3692 2004-11-19 Ben Elliston <bje@au.ibm.com>
3694 * predict.h (predict_insn): Remove extern declaration.
3695 * predict.c (predict_insn): Make static.
3697 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3699 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
3701 2004-11-18 Nicolas Pitre <nico@cam.org>
3703 * config/arm/arm.c (const_double_needs_minipool): New function to
3704 determine if a CONST_DOUBLE should be pushed to the minipool.
3705 (note_invalid_constants): Use it.
3707 2004-11-18 Paul Brook <paul@codesourcery.com>
3709 * config/arm/arm.c (target_float_switch): New variable..
3710 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
3711 target_float_switch.
3712 * config/arm/arm.h (target_float_switch): Declare.
3713 (ARM_FLAG_SOFT_FLOAT): Remove.
3714 (TARGET_SWITCHES): Remove hard-float and soft-float.
3715 (TARGET_OPTIONS): Add hard-float and soft-float.
3716 (TARGET_DEFAULT_FLOAT_ABI): Define.
3717 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
3718 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
3719 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
3720 * config/arm/netbsd-elf.h: Ditto.
3721 * config/arm/netbsd.h: Ditto.
3722 * config/arm/pe.h: Ditto.
3723 * config/arm/unknown-elf.h: Ditto.
3724 * config/arm/wince-pe.h: Ditto.
3725 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3726 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3727 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3729 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3731 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
3732 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
3733 altivec_lvx_4sf): Rename and replace with ...
3734 (altivec_lvx_<mode>): ... mode macro version.
3735 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
3736 altivec_stvx_4sf): Rename and replace with ...
3737 (altivec_stvx_<mode>): ... mode macro version.
3738 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
3739 (mov<mode>): ... mode macro version.
3740 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
3741 *movv4sf_internal1): Replace with ...
3742 (*mov<mode>_internal): ... mode macro version.
3743 (get_vrsave_internal, *set_vrsave_internal, *save_world,
3744 *restore_world): Unquote output statements.
3745 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
3746 altivec_expand_st_builtin): Adjust insn names.
3748 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
3750 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
3752 (rs6000_override_options): Likewise.
3753 (spe_build_register_parallel): Handle complex doubles on e500v2.
3754 (rs6000_spe_function_arg): Likewise.
3755 (function_arg): Likewise.
3756 (rs6000_function_value): Likewise.
3757 (rs6000_libcall_value): Likewise.
3759 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
3761 * ifcvt.c (find_if_block): Move the check for the number of edges
3762 above the loops checking for complex edges.
3763 Remove the counting of edges as we use EDGE_COUNT now.
3765 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3767 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3768 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
3770 2004-11-18 Andreas Schwab <schwab@suse.de>
3772 * config/i386/i386.md (define_peephole2): Revert last change.
3774 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3776 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3777 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
3779 2004-11-18 Diego Novillo <dnovillo@redhat.com>
3781 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
3784 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
3786 * Makefile.in (macro_list): Depend on s-macro_list.
3787 (s-macro_list): New target.
3789 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3792 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3793 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3794 (fold_range_test): Adjust.
3795 (fold_truthop): Use it.
3796 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3797 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3799 2004-11-18 Uros Bizjak <uros@kss-loka.si>
3801 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
3802 insn split constraint.
3803 (define_peephole2): Remove unneeded "&& 1" from peephole2
3806 2004-11-18 Ben Elliston <bje@au.ibm.com>
3808 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
3809 element for bsi_prev; use @findex instead.
3811 2004-11-18 Ben Elliston <bje@au.ibm.com>
3813 * opts.h (add_input_filename): Remove extern declaration.
3814 * opts.c (add_input_filename): Make static.
3816 2004-11-17 Mark Mitchell <mark@codesourcery.com>
3818 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
3821 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3823 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
3824 * system.h: Poison it.
3825 * doc/tm.texi: Delete its documentation.
3827 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
3828 Mark Mitchell <mark@codesourcery.com>
3830 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
3831 * config/i386/i386.c (i386_solaris_elf_named_section): New
3833 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
3834 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
3836 (ASM_QUAD): Don't undefine for biarch targets.
3837 * config/i386/t-sol2: Introduce multilib support.
3839 2004-11-18 Ben Elliston <bje@au.ibm.com>
3841 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
3843 2004-11-18 Ben Elliston <bje@au.ibm.com>
3845 * cgraph.h: Replace "it's" with "its" throughout.
3847 2004-11-18 Ben Elliston <bje@au.ibm.com>
3849 * doc/rtl.texi (Flags): Grammar fix.
3851 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3853 * expmed.c (alg_code): Add alg_unknown.
3854 (alg_hash_entry): New.
3855 (NUM_ALG_HASH_ENTRIES): Likewise.
3856 (alg_hash): Likewise.
3857 (synth_mult): Cache the result into alg_hash.
3859 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3861 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
3862 config/rs6000/libgcc-ppc64.ver.
3864 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3866 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
3867 checking if an unconditional return is followed by a barrier.
3869 * jump.c (condjump_p): Remove unreachable code.
3871 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
3872 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
3873 tree-ssa-live.h, tree.h: Remove unused prototypes.
3875 2004-11-17 Jeff Law <law@redhat.com>
3877 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
3878 (edge_to_cases_elt): Renamed from edge_to_case_leader.
3879 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
3880 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
3881 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
3882 (get_cases_for_edge): New function.
3883 (start_recording_case_labels, end_recording_case_labels): Similarly.
3884 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
3885 chain equivalent CASE_LABEL_EXPRs together.
3886 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
3887 (make_switch_expr_edges): Do not record edge/cases here.
3888 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
3889 (split_critical_edges): Record cases around the edge splitting code.
3890 (cleanup_dead_labels): Use CASE_LABEL again.
3891 (tree_redirect_edge_and_branch): If we have a mapping from edge
3892 to cases, use it to handle redirections. Else do it the slow way.
3893 * tree.h (CASE_LEADER_OR_LABEL): Kill.
3894 (CASE_LABEL): Revert to just looking at the tree's second operand.
3895 * tree.c (get_case_label): Kill.
3897 2004-11-17 Diego Novillo <dnovillo@redhat.com>
3899 PR tree-optimization/18307
3900 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
3901 'orig' are the same node.
3902 (collect_points_to_info_r): Do not call merge_pointed_to_info
3903 when the PHI argument is identical to the LHS.
3905 2004-11-17 Steven Bosscher <stevenb@suse.de>
3907 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
3908 to insert the exit or entry block.
3909 (ssa_prop_init): Use add_control_edge to seed the algorithm.
3911 2004-11-16 Zack Weinberg <zack@codesourcery.com>
3913 * mkmap-flat.awk, mkmap-symver.awk: If the last version
3914 assigned to a symbol was '%exclude', do not emit it anywhere.
3915 If leading_underscore is true, prefix all symbols from the
3916 version scripts with a leading underscore before comparing
3917 them with nm output or emitting them. Remove support for dot
3919 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
3920 (SHLIB_MAPFILES): Use libgcc-std.ver.
3921 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
3922 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
3923 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
3924 libgcc-excl.ver and libgcc-glibc.ver.
3926 * config/sh/libgcc-excl.ver: New file.
3927 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
3929 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
3931 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
3932 the test when the edge has the opposite meaning, not when
3933 the first argument is invariant.
3935 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
3937 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
3939 (rs6000_complex_function_value): Handle e500 v2 variant.
3941 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
3943 Fix PR tree-optimization/18519
3945 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
3946 * tree-pass.h: Add TODO_cleanup_cfg.
3947 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
3948 (ccp_finalize): Remove call to cleanup_cfg.
3949 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
3950 (pass_cd_dce): Ditto.
3951 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
3952 dump_function_to_file.
3953 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
3955 (pass_ch): Add TODO_cleanup_cfg.
3956 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
3958 (pass_loop_done): Add TODO_cleanup_cfg.
3959 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
3960 (tree_ssa_phiopt): Remove call to cleanup_cfg.
3962 2004-11-16 Devang Patel <dpatel@apple.com>
3964 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
3966 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
3968 * expmed.c, ra-colorize.c: Fix comment typos.
3970 * doc/tm.texi: Fix typos.
3972 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
3973 Mark Mitchell <mark@codesourcery.com>
3976 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
3979 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
3981 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
3982 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
3984 2004-11-16 Devang Patel <dpatel@apple.com>
3986 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
3988 2004-11-16 Eric Christopher <echristo@redhat.com>
3990 * config/mips/mips.c: Use rtl _P predicates.
3991 * config/mips/mips.h: Ditto.
3992 * config/mips/mips.md: Ditto.
3994 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
3996 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
3999 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
4001 * config/s390/s390.c (s390_cc_modes_compatible): New function.
4002 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
4004 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
4007 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
4008 before and after the insns for getting GOT address in non-PIC
4009 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
4012 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
4014 * gcc/cse.c (struct change_cc_mode_args): New structure.
4015 (cse_change_cc_mode_insn): New function.
4016 (cse_change_cc_mode): Use validate_change to perfom changes.
4017 (cse_change_cc_mode_insns, cse_condition_code_reg):
4018 Call cse_change_cc_mode_insn.
4020 2004-11-16 Steven Bosscher <stevenb@suse.de>
4024 2004-11-16 Steven Bosscher <stevenb@suse.de>
4026 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
4028 2004-11-15 Dale Johannesen <dalej@apple.com>
4030 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
4032 2004-11-15 Dale Johannesen <dalej@apple.com>
4034 * profile.c (compute_branch_probabilities): Prevent
4035 crash with EH in RTL-based profiling.
4037 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
4039 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
4041 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
4042 * tree-ssa-dom.c (thread_across_edge): Likewise.
4043 * tree-vectorizer.c (vect_transform_loop_bound): Replace
4044 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
4047 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
4048 (tree_flow_call_edges_add): Update the call to
4049 bsi_commit_edge_inserts.
4050 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
4051 * profile.c (branch_prob): Likewise.
4052 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
4053 * tree-sra.c (scalarize_function): Likewise.
4054 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
4055 * tree-ssa-pre.c (fini_pre): Likewise.
4056 * tree-flow.h: Update the prototype for
4057 bsi_commit_edge_inserts.
4059 2004-11-15 Eric Christopher <echristo@redhat.com>
4061 * sched-deps.c (set_sched_group_p): Delete.
4062 (delete_all_dependencies): New function.
4063 (fixup_sched_groups): Use. New function.
4064 (sched_analyze_insn): Use.
4066 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
4068 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
4069 RROTATE_EXPR or unknown code.
4070 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
4071 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
4072 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
4075 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
4078 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
4079 after processing the declarator.
4081 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
4083 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
4085 (altivec_vspltb): Same.
4086 (altivec_vspltw): Same.
4087 (altivec_vspltisb): Same.
4088 (altivec_vspltish): Same.
4089 (altivec_vspltisw): Same.
4090 (altivec_vspltisw_v4sf): Same.
4091 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
4093 Move "End of vector xor's" comment to the right place.
4095 2004-11-15 Steve Ellcey <sje@cup.hp.com>
4097 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
4098 instead of nonimmediate_operand.
4100 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4102 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
4103 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
4104 * config/sol2.c (solaris_output_init_fini): Update calls to
4105 ASM_OUTPUT_CALL. Include "rtl.h".
4107 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4109 * config/sol2-c.c (cmn_err_char_table): Add "p".
4111 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4113 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
4114 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
4116 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4118 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
4119 within the multilib directory.
4121 2004-11-15 Nick Clifton <nickc@redhat.com>
4123 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
4124 builtin assert of cpu=xstormy16.
4126 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
4128 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
4131 2004-11-14 Richard Henderson <rth@redhat.com>
4134 * calls.c (struct arg_data): Add parallel_value.
4135 (precompute_register_parameters): Set it.
4136 (load_register_parameters): Use it.
4137 (store_one_arg): Also set it here.
4139 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
4141 PR tree-optimization/18431
4142 * fold-const.c (associate_trees): Do not produce x + 0.
4143 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
4145 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
4147 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
4148 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
4150 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
4152 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
4154 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4156 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
4157 value-prof.c: Fix comment typos.
4159 2004-11-14 Stan Shebs <shebs@apple.com>
4161 Basic ABI changes for passing structs by value in 64-bit Darwin.
4162 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
4163 (rs6000_override_options): Set it for 64-bit Darwin.
4164 (rs6000_parse_abi_options): Add testing options to change it.
4165 (rs6000_return_in_memory): Test whether the type is one
4166 that can be passed in registers.
4167 (darwin64_function_arg_advance): New.
4168 (function_arg_advance): Call it, plus add recursion depth
4169 argument and test when counting off arguments.
4170 (rs6000_darwin64_function_arg): New.
4171 (function_arg): Call it.
4172 (setup_incoming_varargs): Add argument to function_arg_advance.
4173 (rs6000_darwin64_function_value): New.
4174 (rs6000_function_value): Call it.
4175 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
4176 * config/rs6000/rs6000-protos.h: Update decl of
4177 function_arg_advance.
4179 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
4182 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
4183 support TImode before adding __int128_t and __uint128_t types.
4185 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
4188 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
4189 (vect_transform_loop_bound): Set loop->nb_iterations.
4191 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
4192 Andrew Pinski <pinskia@physics.uc.edu>
4195 * tree-vectorize.c (vect_build_loop_niters): Do not insert
4196 NULL into the instruction stream. Initialize new_bb to NULL.
4197 (vect_update_ivs_after_vectorizer): Likewise.
4198 (vect_gen_niters_for_prolog_loop): Likewise.
4200 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
4202 PR tree-optimization/18431
4203 * tree-flow.h (stmt_references_memory_p): Declare.
4204 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
4205 * tree-ssa.c (stmt_references_memory_p): New function.
4207 2004-11-14 Andreas Schwab <schwab@suse.de>
4209 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
4212 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4214 * c-common.c (walk_stmt_tree): Remove.
4215 * c-common.h: Remove the corresponding prototype.
4217 * emit-rtl.c (push_to_full_sequence): Remove.
4218 * rtl.h: Remove the corresponding prototype.
4220 * cselib.c, expr.c: Fix comment typos.
4222 2004-11-13 Richard Henderson <rth@redhat.com>
4224 * calls.c (precompute_register_parameters): Force all PARALLELs
4225 into pseudo registers.
4226 (load_register_parameters): Copy PARALLELs into hard registers.
4227 * function.c (assign_parm_setup_block): Copy PARALLELS into
4228 pseudo registers. Do emit_group_store in conversion_insns.
4229 * expr.c (emit_group_load_1): Rename from emit_group_load, take
4230 tmps as an argument. Move final copy loop ...
4231 (emit_group_load): ... here. New function.
4232 (emit_group_load_into_temps, emit_group_move_into_temps): New.
4233 * expr.h: Declare them.
4235 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4237 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
4238 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
4239 with PHI_CHAIN where appropriate.
4241 2004-11-13 Dale Johannesen <dalej@apple.com>
4243 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
4244 (tree_block_label): Ditto.
4245 (flush_pending_stmts): Ditto.
4246 (insert_edge_copies): Ditto.
4247 (expr_invariant_in_loop_p): Ditto.
4248 (TDF_USE_OPS): Parenthesize definition.
4249 (TDF_USE_VOPS): Ditto.
4251 2004-11-13 David Edelsohn <edelsohn@gnu.org>
4253 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
4254 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
4256 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
4258 2004-11-14 Joseph Myers <joseph@codesourcery.com>
4260 * config/i386/i386.c (override_options): Move loop to set default
4261 tuning to correct place.
4263 2004-11-13 Zak Kipling <zak@transversal.com>
4266 * config/i386/i386.c (classify_argument): Fix infinite loop when
4267 passing object with 3 or more base classes by value.
4269 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4271 * doc/md.texi (constraints) <% modifier>: Mention that it is
4272 useless when the two alternatives are strictly identical.
4274 2004-11-13 Richard Henderson <rth@redhat.com>
4276 * expmed.c (extract_split_bit_field): Temporarily disable call to
4277 extract_force_align_mem_bit_field.
4279 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4281 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
4284 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
4285 lambda-code.c, postreload.c, predict.c, tree-sra.c,
4286 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
4288 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4290 * doc/install.texi (automake): Correctly document that everything now
4291 will use automake 1.9.3.
4293 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
4296 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
4297 TImode. Sorry for other non-complex larger-than-64-bit modes.
4298 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
4300 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4302 * doc/install.texi (automake): Document that everything now uses 1.9.
4304 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
4306 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
4309 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4311 * tree.h: Fix comment typos.
4313 2004-11-13 Steven Bosscher <stevenb@suse.de>
4315 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
4316 HARD_REGISTER_NUM_P.
4318 * cselib.c (new_cselib_val): Make comment correct and more detailed.
4319 * flow.c (mark_set_1): Likewise.
4321 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
4322 duplicate_eh_regions): Remove.
4323 * except.h (duplicate_eh_regions): Remove prototype.
4324 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
4325 global_const_equiv_varray): Remove.
4326 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
4327 global_const_equiv_varray, set_label_in_map): Remove prototypes,
4328 extern declaration, and #define.
4329 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
4330 (struct inline_remap): Remove.
4331 * varray.c (struct element): Remove entry for const_equiv_data.
4332 * varray.h (struct const_equiv_data): Remove.
4333 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
4334 (union varray_data_tag) <const_equiv>: Remove.
4335 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
4336 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
4338 * regstack.c (record_label_references): Remove unused function.
4340 * rtl.def (VALUE): Update comment.
4341 (LABEL_REF): Remove unused operand 2.
4342 * rtl.h (struct rtx_def): Update for removed accessor macros.
4343 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
4344 REG_LOOP_TEST_P): Remove.
4345 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
4346 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
4347 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
4349 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
4350 Eric Botcazou <ebotcazou@libertysurf.fr>
4353 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
4355 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
4356 (V32I): New macro for 32-bit modes.
4357 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
4358 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
4359 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
4360 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
4361 one_cmpldi_sp64): Use V64I instead of DI.
4362 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
4363 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
4364 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
4365 (nandv64i_vis, nandv32i_vis): New patterns.
4367 2004-11-12 Mike Stump <mrs@apple.com>
4369 * Makefile.in: Add html support.
4370 * java/Make-lang.in: Likewise.
4371 * fortran/Make-lang.in: Likewise.
4372 * treelang/Make-lang.in: Likewise.
4373 * doc/install.texi: Likewise.
4374 * doc/makefile.texi: Likewise.
4375 * doc/sourcebuild.texi: Likewise.
4377 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4379 * tree-ssa-loop-manip.c: Fix a comment typo.
4381 2004-11-12 Mike Stump <mrs@apple.com>
4383 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
4384 renaming this node to Concept Index.
4385 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
4386 to more closely match gcc.texi.
4388 2004-11-12 Jeff Law <law@redhat.com>
4390 * tree-cfg.c (hashtab.h): Include.
4391 (struct edge_to_case_leader_elt): New structure.
4392 (edge_to_case_leader): New.
4393 (edge_to_case_leader_hash): New hashtable hasing function.
4394 (edge_to_case_leader_eq): New hashtable equality function.
4395 (record_switch_edge): New function.
4396 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
4397 (make_switch_expr_edges): Build the edge-to-case-leader
4398 hash table. Tear down the hash table when we're done.
4399 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
4401 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
4402 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
4403 to use new concept of case leaders to reduce overhead of
4404 redirecting outgoing edges from switch statements.
4405 * tree.c (get_case_label): New function.
4406 * tree.h (CASE_LABEL): Define in terms of get_case_label.
4407 (CASE_LEADER_OR_LABEL): Define.
4409 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4411 * varasm.c (output_addressed_constants): For CONST_DECLs,
4412 output the initializer if present.
4414 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4416 * config/rs6000/darwin.h: Fix confusing typo in comment.
4418 2004-11-12 Devang Patel <dpatel@apple.com>
4420 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
4422 2004-11-12 Devang Patel <dpatel@apple.com>
4424 * tree-if-conv.c (clean_predicate_lists): Use loop header
4427 2004-11-12 Richard Henderson <rth@redhat.com>
4430 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4431 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4432 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4433 * config/i386/i386-modes.def (XF): Use it.
4435 2004-11-11 Geoffrey Keating <geoffk@apple.com>
4437 * Makefile.in (macro_list): Use move-if-change to avoid spurious
4440 2004-11-12 Mark Mitchell <mark@codesourcery.com>
4443 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
4444 when deciding whether to pass a variable to
4445 cgraph_varpool_finalize_decl or assemble_variable.
4446 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
4448 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
4450 * tree-vectorizer.c: Fix a comment typo.
4452 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
4454 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
4456 2004-11-12 Diego Novillo <dnovillo@redhat.com>
4458 * tree-scalar-evolution.c (analyzable_condition): Remove
4459 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
4461 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
4463 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
4464 Remove m505/roe multilib variant.
4466 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
4468 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
4469 to load from the stack.
4471 2004-11-12 Richard Henderson <rth@redhat.com>
4473 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
4474 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
4475 * toplev.h (FL2T__): Remove.
4476 (CLZ_HWI): Rename from FL2T_CLZ__.
4478 (floor_log2): Simplify.
4481 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4483 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
4484 compute the first overlapping iterations.
4486 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4489 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
4490 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
4492 2004-11-12 Steven Bosscher <stevenb@suse.de>
4494 PR tree-optimization/18419
4495 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
4496 pointer set instead of a bitmap.
4497 (walk_use_def_chains): Create, pass and clean up that pointer_set.
4499 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
4501 (init_alias_info): Allocate and zero it here.
4502 (delete_alias_info): Delete it here.
4503 (collect_points_to_info_for): Use it.
4505 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4507 * alias.c (record_alias_subset, addr_side_effect_eval):
4509 * alias.h: Remove the prototype for record_alias_subset.
4510 * expr.h: Remove the commented-out prototype for
4511 record_alias_subset.
4512 * rtl.h: Remove the prototype for addr_side_effect_eval.
4514 * cfglayout.c (choose_inner_scope): Make it static.
4515 * rtl.h: Remove the corresponding prototype.
4517 * cfgloopmanip.c (update_single_exits_after_duplication,
4518 unloop): Make them static.
4519 * cfgloop.h: Remove the corresponding prototypes.
4521 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
4523 * c-tree.h: Remove the corresponding prototypes.
4525 * explow.c (round_push): Make it static.
4526 * expr.h: Remove the corresponding prototype.
4528 * varasm.c (get_named_section_flags, decl_tls_model): Make
4530 * output.h: Remove the prototype for get_named_section_flags.
4531 * tree.h: Remove the prototype for decl_tls_model.
4533 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4535 * function.c (expand_function_end): Remove an "if" statement
4536 that always triggers.
4537 * stmt.c (expand_null_return_1): Likewise.
4539 2004-11-11 James E. Wilson <wilson@specifixinc.com>
4541 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
4542 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
4543 CLASS_MAX_NREGS): Likewise.
4545 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
4547 PR tree-optimization/17742
4548 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
4549 MINUS_EXPR correctly.
4551 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
4553 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4554 Give up as soon as the evolution is known not computable.
4556 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4559 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
4560 mask64_1or2_operand.
4561 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
4562 to spot rlwinm opportunities.
4563 (and64_2_operand): Use mask_1or2_operand.
4564 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
4566 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
4568 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
4569 (vect_update_ivs_after_vectorizer): Update function documentation.
4570 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
4572 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4574 * config/arm/arm.c: Fix a comment typo.
4576 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4578 * bitmap.h (nBITMAP_WORD_BITS): Remove.
4579 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
4580 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
4582 (bitmap_first_set_bit): Return unsigned, use ctzl.
4583 (bitmap_last_set_bit): Remove.
4584 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
4586 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
4587 remove special case code for two word elements.
4588 (bitmap_last_set_bit): Remove.
4589 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
4590 bitmap_first_set_bit with bitmap_empty_p.
4591 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
4592 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
4593 bitmap_last_bit_set.
4595 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4598 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
4601 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
4602 unsigned equality compare when we know the operands are unsigned.
4604 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
4606 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
4607 __PIC__ and __pic__ only if TARGET_ABICALLS.
4608 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
4609 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
4610 -KPIC only if not -mno-abicalls.
4612 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
4613 * config/sparc/linux.h, config/sparc/linux64.h
4614 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
4616 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
4617 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
4618 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
4619 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
4621 2004-11-11 Paul Brook <paul@codesourcery.com>
4623 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
4624 register if current_function_uses_pic_offset_table is set.
4626 2004-11-10 David Edelsohn <edelsohn@gnu.org>
4628 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
4629 Change multi-instruction sequences to new attribute.
4630 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
4631 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
4632 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
4634 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
4636 * tree-data-ref.c (build_classic_dist_vector): If either loop
4637 is outside of the nest we asked about, the dependence can't
4639 (build_classic_dir_vector): Ditto.
4641 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
4643 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
4645 (force_var_cost): Determine cost of addition and multiplication more
4647 (get_computation_cost_at): Add cost for computing address elements to
4650 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
4651 one of the arguments of MINUS_EXPR is an address.
4652 (split_address_to_core_and_offset): New function.
4653 (ptr_difference_const): Handle case when one of the operands is a
4655 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
4656 (ptr_difference_cost): Pass addresses instead of objects to
4657 ptr_difference_const.
4659 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
4661 * tree.c (tree_check_failed): Emit general error if the list of
4662 node types is empty.
4664 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4666 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
4667 argument. When the union is passed in the 6th slot, build a
4668 PARALLEL with only one element.
4669 (function_arg): Adjust call to function_arg_union_value.
4670 (function_value): Likewise.
4672 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
4674 PR tree-optimization/17892
4675 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
4676 MINUS_EXPR operator.
4678 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
4681 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
4682 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
4684 2004-11-10 Steven Bosscher <stevenb@suse.de>
4686 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
4687 (struct basic_block_def): Remove local_set and cond_local_set
4688 fields. Update comment for global_live_at_start.
4689 * flow.c (calculate_global_regs_live): Allocate local_sets and
4690 cond_local_sets here as arrays of bitmaps previously stored in
4691 bb->local_set and bb->cond_local_set. Use xmalloc instead of
4692 obstack allocated bitmaps.
4694 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
4697 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
4700 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
4702 2004-11-09 Jeff Law <law@redhat.com>
4704 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
4705 argument holding last unvisited block. Start search for
4706 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
4707 (connect_infinite_loops_to_exit): Supply last unvisited block
4708 to flow_dfs_compute_reverse_execute.
4710 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
4712 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
4714 (floatunssidf2): Same.
4716 ("extendsfdf2"): New expander.
4717 (*extendsfdf2_fpr): Rename.
4718 (*truncdfsf2_fpr): Same.
4719 (*negdf2_fpr): Same.
4720 (*absdf2_fpr): Same.
4721 (*nabsdf2_fpr): Same.
4722 (*adddf3_fpr): Same.
4723 (*subdf3_fpr): Same.
4724 (*muldf3_fpr): Same.
4725 (*divdf3_fpr): Same.
4727 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
4728 ("spe_fix_truncdfsi2"): Same.
4729 (spe_floatunssidf2): Same.
4730 (spe_floatsidf2): Same.
4732 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4735 * c-common.c (fname_decl): Don't use line number of decl in
4738 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4740 * config/s390/s390-protos.h (s390_pool_operand): Remove.
4741 * config/s390/s390.c (s390_pool_operand): Likewise.
4742 (s390_extra_constraint_str): Handle 'B' constraints.
4743 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
4744 * config/s390/s390.md: Document 'B' constraints.
4745 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
4746 s390_pool_operand to prevent insns with two literal pool
4747 references. Make pattern commutative.
4748 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
4749 'B' constraint instead of s390_pool_operand.
4751 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4753 * tree-cfg.c (create_bb): Remove unnecessary memset.
4755 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4757 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
4758 (thread_block): Call flush_pending_stmt instead of
4761 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4763 * loop-iv.c (iv_number_of_iterations): Make it static.
4764 * cfgloop.h: Remove the corresponding prototype.
4766 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4768 * function.c (combine_temp_slots, assign_parms,
4769 expand_pending_sizes): Make them static.
4770 * tree.h: Remove the corresponding prototypes.
4772 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4774 * emit-rtl.c (copy_most_rtx): Remove.
4775 * rtl.h: Remove the corresponding prototype.
4777 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4779 * cfgloop.c (flow_loops_update): Remove.
4780 * cfgloop.h: Remove the corresponding prototype.
4782 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4784 * conflict.c (mark_reg, conflict_graph_compute): Remove.
4785 * basic-block.h: Remove the prototype for
4786 conflict_graph_compute.
4788 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4790 * tree-if-conv.c (add_to_dst_predicate_list): Change the
4791 second argument to basic_block.
4792 (tree_if_convert_cond_expr): Update call sites.
4794 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4796 * fold-const.c (pedantic_non_lvalue): Make it static.
4797 * tree.h: Remove the corresponding prototype.
4799 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4801 * optabs.c (prepare_operand): Make it static.
4802 * optabs.h: Remove the corresponding prototype.
4804 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4806 * reload1.c (reloads_conflict, gen_reload): Make them static.
4807 * reload.h: Remove the corresponding prototypes.
4809 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4811 * reload.c (refers_to_mem_for_reload_p,
4812 refers_to_regno_for_reload_p): Make them static.
4813 * reload.h: Remove the corresponding prototypes.
4815 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
4816 Eric Botcazou <ebotcazou@libertysurf.fr>
4819 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
4820 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
4821 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
4822 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
4823 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
4824 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
4825 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
4826 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
4827 MODE_VECTOR_INT modes.
4828 (sparc_extra_constraint_check): Add new constraint 'Y'.
4829 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
4830 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
4831 (V64): New mode macro for 64-bit modes.
4832 (movsf): Use V32 for mode instead of SF.
4833 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
4834 alongside 'G' constraint.
4835 (movdf): Use V64 for mode instead of DF.
4836 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
4837 of DF. Add 'Y' constraint alongside 'G' constraint.
4838 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
4841 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4843 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
4844 integer NEG and ABS.
4845 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
4846 ("*negdi2_31"): Reimplement using a splitter.
4847 ("*negdi2_cc", "*negdi2_cconly"): New insns.
4848 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
4849 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
4850 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
4851 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
4852 ("*absdi2_cc", "*absdi2_cconly"): New insns.
4853 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
4854 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
4855 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
4856 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
4857 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
4858 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
4859 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
4860 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
4861 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
4863 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4865 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
4866 when eliminating an UNSPEC_CMPINT.
4867 (s390_secondary_input_reload_class): Fix test for CC register reload.
4868 (s390_secondary_output_reload_class): Likewise.
4869 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
4870 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
4871 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
4872 insn patterns with splitters.
4874 2004-11-09 David Edelsohn <edelsohn@gnu.org>
4876 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
4877 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
4879 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4881 * tree-phinodes.c (phi_reverse): New.
4882 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
4884 * tree-flow.h: Add a prototype for phi_reverse.
4886 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4888 * tree-ssa-loop-ivopts.c: Fix a comment typo.
4890 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
4893 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
4896 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4898 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
4899 instead of "arg" in diagnostics.
4901 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4903 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
4904 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
4905 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
4906 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
4907 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
4908 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
4909 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
4910 config/iq2000/iq2000.c, config/m32r/m32r.c,
4911 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
4912 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
4913 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
4914 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
4915 config/sh/symbian.c, config/stormy16/stormy16.c,
4916 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
4917 and %> as appropriate. Use %' as apostrophe in diagnostics where
4918 applicable. Use %< and %> in place of '' quotes where applicable.
4919 Use %qs in place of %<%s%>. Consistently quote __builtin function
4922 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
4924 * gdbinit.in (pbb, pbm): New macros.
4926 2004-11-08 Jeff Law <law@redhat.com>
4928 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
4929 implementing it inline.
4931 * cfganal.c (find_edge): Search pred->succs or succ->preds,
4932 whichever is shorter.
4934 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4936 * passes.c (rest_of_handle_jump): Remove dead code.
4938 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4940 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
4941 the last used element in the worklist.
4943 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4945 * tree-inline.c (remap_save_expr): Make it static.
4946 * tree-inline.h: Remove the corresponding prototype.
4948 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4950 * tree-ssa-loop-niter.c (upper_bound_in_type,
4951 lower_bound_in_type): Make them static.
4952 * tree.h: Remove the corresponding prototypes.
4954 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4956 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
4958 * tree-ssa-live.h: Remove the corresponding prototypes.
4960 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4962 * tree-if-conv.c (tree_if_conversion): Make it static.
4963 * tree-flow.h: Remove the corresponding prototype.
4965 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4967 * tree-ssa-operands.c (build_ssa_operands): Make it static.
4968 * tree-flow.h: Remove the corresponding prototype.
4970 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
4973 * tree-inline.c (copy_body_r): Change "t = t" to empty
4974 statement instead of "t".
4976 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4978 * modulo-sched.c (create_partial_schedule,
4979 free_partial_schedule, reset_partial_schedule,
4980 ps_add_node_check_conflicts, rotate_partial_schedule): Make
4983 2004-11-08 Richard Henderson <rth@redhat.com>
4985 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
4988 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4990 * sched-deps.c (add_insn_mem_dependence): Make it static.
4991 * sched-int.h: Remove the corresponding prototypes.
4993 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4995 * flow.c (allocate_bb_life_data): Make it static.
4996 * basic-block.h: Remove the corresponding prototype.
4998 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5000 * calls.c (split_complex_values, split_complex_types): Make
5002 * expr.h: Remove the corresponding prototypes.
5004 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
5006 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
5007 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
5009 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5011 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
5012 statements that always trigger.
5014 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5016 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
5017 tree-scalar-evolution.c, tree-ssa-loop-im.c,
5018 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
5019 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
5022 2004-11-08 Ben Elliston <bje@au.ibm.com>
5024 * cgraph.h (cgraph_calls_p): Remove.
5025 * cgraph.c (cgraph_calls_p): Likewise.
5027 * varray.h (varray_copy): Remove.
5028 * varray.c (varray_copy): Likewise.
5030 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
5033 * config/darwin.c (machopic_indirect_data_reference):
5034 Call gen_macho_high and gen_macho_low instead of
5035 checking the mode and calling gen_macho_high_di directly.
5036 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5037 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
5039 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
5040 load_macho_picbase, macho_low, macho_high): Removed.
5041 (builtin_setjmp_receiver): Call gen_macho_high and
5042 gen_macho_low instead of checking the mode and calling
5043 gen_macho_high_di directly.
5044 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
5045 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
5046 Moved from rs6000.md.
5047 (macho_high): New expander.
5048 (macho_high_si): Renamed version of macho_high from rs6000.md.
5049 (macho_low): New expander.
5050 (macho_low_si): Renamed version of macho_low from rs6000.md.
5051 (load_macho_picbase): New expander.
5052 (load_macho_picbase_si): Renamed version of load_macho_picbase
5054 (macho_correct_pic): New expander.
5055 (macho_correct_pic_si): Renamed version of macho_correct_pic
5058 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
5060 * c-decl.c (finish_struct): Use complete sentences for diagnostic
5061 for structures or unions with no members or named members.
5063 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
5065 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
5066 taking address of bit-field by assertion.
5068 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5070 * config/s390/s390.md (attribute "op_type"): Default to "NN".
5071 (attribute "atype"): Default to "agen".
5072 (attribute "length"): Default to 6.
5073 (define_asm_attibutes): Remove.
5074 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
5075 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
5076 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
5077 Do not set type attribute to "cs" where already default.
5078 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
5080 Do not set type attribute to "other" where already default.
5081 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
5082 "*strlendi", "*strlensi",
5083 "*movmem_long_64", "*movmem_long_31",
5084 "*clrmem_long_64", "*clrmem_long_31",
5085 "*cmpmem_long_64", "*cmpmem_long_31",
5086 "*cmpint_si", "*cmpint_di",
5087 "addti3", "*adddi3_31z", "*adddi3_31",
5088 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
5089 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
5090 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
5091 "*pool_entry", "pool_align", "pool_section_start",
5092 "pool_section_end", "main_pool", "reload_base_31", "pool"):
5093 Do not set op_type attribute to "NN" where already default.
5094 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
5095 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
5096 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
5097 Do not set atype attribute to "agen" where already default.
5098 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
5100 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
5102 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
5104 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
5107 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
5108 R3000 and R4000 macros on IRIX.
5110 2004-11-06 Andreas Schwab <schwab@suse.de>
5113 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
5116 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5118 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
5120 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5122 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
5123 matches no insns already matched by other reservations.
5124 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
5125 matches no insns already matched by other reservations.
5126 ("x_ss"): Remove, replace by ...
5127 ("x_cs"): ... this new reservation. Check type instead of op_type.
5128 Update bypasses to use x_cs instead of x_ss.
5129 ("x_nn"): Remove, replace by ...
5130 ("x_other"): ... this new reservation. Check type instead of op_type.
5131 Add x_other and x_branch to bypasses.
5132 ("x_vs"): New reservation.
5133 * config/s390/s390.md (attribute "type"): Default according to op_type.
5134 ("*execute"): Set type to "cs".
5136 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5138 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
5139 if we are in GIMPLE.
5141 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
5143 PR rtl-optimization/17933
5144 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
5145 (covers_regno_p): New function. Handle SETs of PARALLEL,
5146 and defer the rest to...
5147 (covers_regno_no_parallel_p): New function.
5149 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5151 * config/sparc/sparc.c (function_arg_record_value_1): Skip
5152 fields with zero length.
5153 (function_arg_record_value_2): Likewise.
5154 (function_arg_record_value_3): Use smallest_mode_for_size
5155 instead of mode_for_size.
5156 (function_arg_union_value): Return naked register for unions
5159 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5161 * config/sparc/sparc.c (scan_record_type): Handle vector types.
5162 (function_arg_slotno): Handle vector types specially.
5163 (function_arg_record_value_1): Split fields with vector type and
5164 BLKmode into their subparts.
5165 (function_arg_record_value_2): Likewise. Be prepared to handle
5166 more than 2 registers per field.
5167 (function_arg_union_value): Increment regno inside the loop.
5168 (function_arg_vector_value): New function.
5169 (function_arg): Use it to split fields with vector type and
5170 BLKmode into their subparts and build a PARALLEL. Treat
5171 other vector types like floats.
5172 (function_value): Likewise.
5173 (sparc_pass_by_reference): Handle vector types.
5174 (sparc_return_in_memory): Likewise.
5176 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5178 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
5179 statement that never triggers.
5181 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5183 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
5184 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
5185 ("x_fdivd"): Use also for fsqrtd type.
5186 ("x_fdivs"): Use also for fsqrts type.
5187 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
5188 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
5189 ("fix_truncdfsi2_ibm"): Set type to "other".
5190 ("floatdidf2", "floatdisf2"): Do not clobber CC.
5191 ("floatsidf2", "floatsidf2_ieee"): Likewise.
5192 ("floatsisf2", "floatsisf2_ieee"): Likewise.
5193 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
5194 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
5196 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
5197 ("sqrtdf2"): Set type to "fsqrtd".
5198 ("sqrtsf2"): Set type to "fsqrts".
5200 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5202 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
5203 pointer to the last PHI node in the new PHI chain.
5205 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
5207 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
5208 for non-PIC TLS_MODEL_INITIAL_EXEC case.
5210 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5212 * expmed.c: Fix a comment typo.
5214 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5217 * config/i386/cygming.h
5218 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
5220 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5222 * config/sh/sh4a.md: Fix copyright.
5224 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5226 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
5229 2004-11-05 David Edelsohn <edelsohn@gnu.org>
5231 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
5232 when carry not used. Suggested by Torbjorn Granlund.
5234 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
5235 operand[1] unnecessarily. Suggested by Eric Christopher.
5236 (rs6000_adjust_cost): Increase latency of store to wider load.
5237 (rs6000_rtx_costs): mulli only allows 16-bit constants.
5239 2004-11-05 Stan Shebs <shebs@apple.com>
5241 * config/rs6000/rs6000.c (machopic_output_stub): Output
5242 ldu instead of lwzu for 64-bit stubs.
5244 2004-11-05 Richard Henderson <rth@redhat.com>
5246 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
5248 (alpha_expand_unaligned_store): Likewise.
5250 2004-11-05 Richard Henderson <rth@redhat.com>
5252 * expmed.c (extract_force_align_mem_bit_field): New.
5253 (extract_split_bit_field): Call it.
5255 2004-11-05 Richard Henderson <rth@redhat.com>
5257 * ia64.md (UNSPEC_SHRP): New.
5258 (dshift_count_operand): New.
5259 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
5260 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
5262 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5264 * c-typeck.c (output_init_element): Return early if value is
5267 2004-11-05 James E Wilson <wilson@specifixinc.com>
5269 * invoke.texi (-fno-guess-branch-probability): Rewrite.
5271 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
5272 1 to UNSPEC_GR_SPILL.
5274 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
5276 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
5277 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
5279 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
5281 * bitmap.h (enum bitmap_bits): Remove.
5282 (bitmap_operation): Remove.
5283 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5284 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5285 bitmap_xor_into): Prototype.
5286 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
5287 (bitmap_operation): Remove.
5288 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5289 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5290 bitmap_xor_into): New.
5291 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
5293 PR tree-optimization/18307
5294 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
5295 and ORIG being the same node.
5297 2004-11-04 Geoffrey Keating <geoffk@apple.com>
5299 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
5300 (install-mkheaders): Install the version built for the
5301 host, not for the build machine.
5302 * configure.ac: Always run fixincludes.
5303 (all_outputs): Remove mkheaders.
5304 * configure: Regenerate.
5305 * fixinc.in: Move to fixincludes/.
5306 * mkfixinc.sh: Likewise.
5307 * mkheaders.in: Likewise.
5308 * README-fixinc: Likewise.
5310 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5313 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
5314 equivalent on the A4.
5316 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5318 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
5319 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
5320 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
5321 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
5322 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5323 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
5324 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
5325 doc/trouble.texi: Correct end-of-sentence markup and markup of
5326 "etc.", "e.g." and "i.e.". Use @code in various places where
5329 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5331 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
5332 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
5333 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
5336 2004-11-04 Mark Mitchell <mark@codesourcery.com>
5338 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
5339 * doc/extend.texi: Document "notshared" attribute.
5341 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5343 * tree-phinodes.c (make_phi_node): Make it static.
5344 * tree.h: Remove the prototypes for make_phi_node.
5346 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5348 * stmt.c (expand_asm, expand_asm_operands): Make them static.
5349 * tree.h: Remove the prototypes for expand_asm and
5350 expand_asm_operands.
5352 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5354 * passes.c (rest_of_compilation): Make it static.
5355 * toplev.h: Remove the prototype for rest_of_compilation.
5357 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5359 * jump.c (cleanup_barriers): Use delete_insn instead of
5361 (delete_barrier): Remove.
5362 * rtl.h: Remove the corresponding prototype.
5364 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5366 * expr.c (mostly_zero_p): Make it static.
5367 * tree.h: Remove the prototype for mostly_zeros_p.
5369 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5371 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
5373 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5375 * builtins.c (expand_builtin_return_addr,
5376 expand_builtin_longjmp, expand_builtin_trap): Make them static.
5377 * expr.h: Remove the prototypes for expand_builtin_longjmp and
5378 expand_builtin_trap.
5379 * tree.h: Remove the prototype for expand_builtin_return_addr.
5381 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5383 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
5384 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
5385 with VAL being NULL.
5387 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5389 * cfghooks.c (delete_basic_block): Remove code to truncate
5392 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
5394 * flow.c (init_propagate_block_info): Change the type of i to
5397 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5399 PR tree-optimization/18184
5400 * c-typeck.c (comptypes): Do not treat pointers of different
5401 modes or alias-all flags as equivalent.
5402 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
5404 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
5406 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
5407 reference specific C parser files in examples.
5409 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
5412 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
5413 as OP_INOUT if the instruction is predicated.
5415 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5417 * bitmap.h: Fix a comment typo. Follow spelling conventions.
5418 * tree-vectorizer.c: Fix a comment typo.
5420 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5422 * sdbout.c (SDB_GENERATE_FAKE): Remove.
5423 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
5424 * system.h: Poison SDB_GENERATE_FAKE.
5425 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
5427 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5429 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
5431 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5434 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
5437 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
5439 * predict.c (propagate_freq): Make bitno unsigned. Move
5440 npredecessors update out of loop.
5442 * bitmap.h (bitmap_iterator): Remove word_bit and bit
5443 fields. Rename others.
5444 (bmp_iter_common_next_1, bmp_iter_single_next_1,
5445 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
5446 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
5447 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
5448 bmp_iter_and_next): Remove.
5449 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
5450 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
5452 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
5453 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
5455 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
5456 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
5457 bitmap_and_into, bitmap_ior_into as appropriate.
5458 * except.c (remove_eh_handler): Likewise.
5459 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
5460 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
5461 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
5462 * tree-ssa-live.h (live_merge_and_clear): Likewise.
5463 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
5466 * bitmap.c (bitmap_print): Make bitno unsigned.
5467 * bt-load.c (clear_btr_from_live_range,
5468 btr_def_live_range): Likewise.
5469 * caller-save.c (save_call_clobbered_regs): Likewise.
5470 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5471 * cfgcleanup.c (thread_jump): Likewise.
5472 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5473 * conflict.c (conflict_graph_compute): Likewise.
5474 * ddg.c (add_deps_for_use): Likewise.
5475 * df.c (df_refs_update): Likewise.
5476 * except.c (remove_eh_handler): Likewise.
5477 * flow.c (verify_local_live_at_start, update_life_info,
5478 initialize_uninitialized_subregs, propagate_one_insn,
5479 free_propagate_block_info, propagate_block, find_use_as_address,
5480 reg_set_to_hard_reg_set): Likewise.
5481 * gcse.c (clear_modify_mem_tables): Likewise.
5482 * global.c (global_conflicts, build_insn_chain): Likewise.
5483 * ifcvt.c (dead_or_predicable): Likewise.
5484 * local-alloc.c (update_equiv_regs): Likewise.
5485 * loop.c (load_mems): Likewise.
5486 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
5488 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
5490 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
5491 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
5492 * sched-rgn.c (propagate_deps
5493 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
5494 * tree-dfa.c (dump_dfa_stats
5495 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5496 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
5498 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
5499 free_temp_expr_table, find_replaceable_exprs): Likewise.
5500 * tree-sra.c (scan_function, scalarize_parms): Likewise.
5501 * tree-ssa-alias.c (init_alias_info,
5502 compute_points_to_and_addr_escape,
5503 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
5504 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
5505 * tree-ssa-live.c (new_tree_live_info, live_worklist,
5506 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
5507 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
5508 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
5509 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5510 add_call_read_ops): Likewise.
5511 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
5512 * tree-ssa-live.h (num_var_partitions): Return unsigned.
5514 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
5516 PR tree-optimization/18009
5517 * tree-vectorizer.h (enum dr_alignment_support): New type.
5518 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
5519 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
5520 single data_reference (instead of a varray of references).
5521 * tree-vectorizer.c (new_loop_vec_info): Likewise.
5522 (vect_gen_niters_for_prolog_loop): Likewise.
5523 (vect_update_inits_of_drs): Likewise.
5525 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
5526 vect_enhance_data_refs_alignment.
5527 (vect_do_peeling_for_alignment): Likewise.
5528 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
5529 this functionality used to be in vect_analyze_data_refs_alignment.
5530 Also update DR_MISALIGNMENT due to peeling; this functionality used to
5531 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
5532 (vect_analyze_data_refs_alignment): Decision on whether and by how much
5533 to peel moved to vect_enhance_data_refs_alignment. Call
5534 vect_supportable_dr_alignment.
5536 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
5537 (vect_compute_data_refs_alignment): Return bool. Consider return value
5538 of vect_compute_data_ref_alignment and return true/false accordingly.
5539 (vect_enhance_data_refs_alignment): Consider return value of
5540 vect_compute_data_refs_alignment and return true/false accordingly.
5542 (vect_supportable_dr_alignment): New function.
5543 (vectorizable_store): Call vect_supportable_dr_alignment.
5544 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
5545 support checks moved from here to vect_supportable_dr_alignment.
5547 (vect_transform_loop): Avoid 80 columns overflow.
5549 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5551 * timevar.c (timevar_enable): Change from
5553 (timevar_push): Rename to ...
5554 (timevar_push_1): this and remove the
5556 (timevar_pop): Rename to ...
5557 (timevar_pop_1): this and remove the
5559 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
5560 (timevar_pop): New macro.
5561 (timevar_push): New macro.
5562 (timevar_enable): Declare.
5564 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5566 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
5567 libgcc for shared libraries.
5569 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5571 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
5572 * config/s390/s390.c (s390_split_access_reg): New function.
5573 (regclass_map): Add access registers.
5574 (get_thread_pointer): Use access register instead of UNSPEC_TP.
5575 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
5576 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
5577 (TP_REGNUM): New define.
5578 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5579 REG_ALLOC_ORDER): Add access registers.
5580 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5581 CANNOT_CHANGE_MODE_CLASS): Support access registers.
5582 (enum reg_class): Add ACCESS_REGS.
5583 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5584 (REG_CLASS_FROM_LETTER): Add 't' constraint.
5585 (REGISTER_NAMES): Add access registers.
5586 * config/s390/s390.md (UNSPEC_TP): Remove.
5587 ("*movdi_64"): Add access register alternatives. Provide splitters
5588 to split DImode access register <-> GPR moves into SImode moves.
5589 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
5590 ("movstrictsi"): Likewise.
5591 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
5592 ("set_tp_64", "set_tp_31"): Likewise.
5593 ("*set_tp"): New insn.
5595 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5597 * tree-phinodes.c (resize_phi_node): Copy only a portion of
5598 the PHI node currently in use.
5600 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5603 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
5606 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
5608 PR tree-optimization/18270
5609 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
5610 abnormal edges, commit all pending stmts on incoming edges.
5612 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5614 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
5615 cause extra costs. Generate canonical RTL.
5617 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
5619 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
5620 (lambda_compute_target_space). Ditto.
5621 * lambda.h (lambda_trans_matrix): Ditto.
5622 (lambda_linear_expression): Ditto.
5623 (lambda_body_vector): Ditto.
5624 (lambda_loopnest): Ditto.
5625 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
5626 update comments, and remove pointless addition of 0.
5627 (linear_transform_loops): Update comments.
5629 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
5631 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
5634 2004-11-03 Jeff Law <law@redhat.com>
5636 * predict.c (struct block_info_def): Kill "tovisit" field.
5637 (propagate_freq): Accept new "tovisit" parameter. Change
5638 read/write access methods for "tovisit" to check the "tovisit"
5639 bitmap instead of a bit in block_info_def.
5640 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
5641 it to propagate_freq.
5643 * stmt.c (expand_case): Speed up code to detect duplicate case
5644 label targets and count unique case label targets.
5646 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5648 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
5650 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5652 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
5654 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5656 * tree-cfg.c (find_taken_edge): Abort if we are given a
5657 statement that is neither COND_EXPR nor SWITCH_EXPR.
5659 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
5661 * fold-const.c (fold): Reassociate also (x - mult) + mult and
5662 (mult - x) + mult. Cast operands of expression after applying
5663 distributive law to the correct types. Apply distributive law
5664 to a * c - b * c for all non-float types.
5666 2004-11-02 Geoffrey Keating <geoffk@apple.com>
5668 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
5669 because we don't want to run them now; instead, set them to
5670 stmp-install-fixproto or stmp-install-fixinc.
5671 * Makefile.in (stmp-install-fixproto): New.
5672 (stmp-install-fixinc): New.
5673 * configure: Regenerate.
5675 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5677 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
5680 2004-11-02 Ziemowit Laski <zlaski@apple.com>
5682 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
5683 (c_types_compatible_p): Move function definition...
5684 * c-objc-common.c (c_types_compatible_p): ...here.
5685 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
5688 2004-11-02 Steven Bosscher <stevenb@suse.de>
5690 * cfgloop.h (struct loop): Update comment.
5691 * cse.c (cse_main): Remove obsolete comment.
5693 * expr.h (gen_cond_trap): Move prototype under functions provided
5695 (canonicalize_condition, get_condition): Move to...
5696 * rtl.h (canonicalize_condition, get_condition): ...here.
5697 (branch_target_load_optimize): Add comment that this function is
5699 * loop.c (canonicalize_condition, get_condition): Move to...
5700 * rtlanal.c (canonicalize_condition, get_condition): ...here.
5701 * sched-deps.c (get_condition): Rename to sched_get_condition.
5702 (add_dependence): Update this caller.
5704 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
5707 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
5708 that the vops get marked for renaming.
5710 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
5712 * config/s390/s390.md ("movcc"): Set type attribute.
5714 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5716 * tree-phinodes.c (add_phi_arg): Add an assertion that the
5717 edge already exists.
5719 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5721 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
5722 element that's being removed.
5724 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5726 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
5727 arguments using PENDING_STMT.
5728 (thread_block): Call copy_phis_to_block after redirecting an
5731 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5733 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
5734 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
5735 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
5736 (bitmap_ior_and_compl_into): Produce bool.
5737 (bitmap_union_of_diff): Rename to ...
5738 (bitmap_ior_and_compl): ... here. Produce bool.
5739 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
5740 bitmap_operation directly.
5741 (bitmap_union_of_diff): Rename to ...
5742 (bitmap_ior_and_compl): ... here. Return bool, use
5743 bitmap_operation directly.
5744 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
5745 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
5746 * global.c (modify_bb_reg_pav): Likewise.
5748 * bitmap.h (bitmap_equal_p): Return bool.
5749 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
5750 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
5751 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
5752 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
5753 bitmap_intersect_compl_p.
5754 * ifcvt (dead_or_predicable): Likewise.
5756 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5758 PR rtl-optimization/17104
5759 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
5760 loads in zero_extend.
5762 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
5765 * toplev.c (debug_type_names): Remove "dwarf-1".
5767 2004-11-02 Ben Elliston <bje@au.ibm.com>
5769 * timevar.h (timevar_get): Remove.
5770 * timevar.c (timevar_get): Remove unused function.
5772 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
5774 * doc/include/texinfo.tex: Update from Texinfo CVS.
5776 2004-11-02 Ben Elliston <bje@au.ibm.com>
5778 * cppdefault.h (cpp_SYSROOT): Remove.
5779 * cppdefault.c (cpp_SYSROOT): Likewise.
5781 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
5783 PR tree-optimization/16447
5784 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
5785 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
5786 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
5787 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
5788 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
5789 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
5790 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
5791 (identical_copies_p): New. Return true is two copies are the same.
5792 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
5793 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
5795 (perform_edge_inserts): New. Determine what to do with all stmts that
5796 have been inserted on edges.
5797 (remove_ssa_form): Analyze and commit edges from here.
5799 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
5802 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
5803 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
5804 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
5805 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
5807 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
5810 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
5811 parameter declarations.
5813 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
5815 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
5816 (s390_secondary_input_reload_class)
5817 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
5819 (s390_expand_cmpmem): Enable cmpmem implementation.
5820 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
5821 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
5822 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
5823 * config/s390/s390.md ("movcc"): New insn pattern.
5824 * doc/md.texi: Document 'c' constraint for s390.
5826 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
5829 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
5832 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
5834 Fix PR tree-optimization/17672
5835 Fix PR tree-optimization/18168
5837 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
5839 (gcc_tree_to_linear_expression): Add extra to existing constant.
5840 (depth_of_nest): Factor out function used in various places.
5841 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
5843 (find_induction_var_from_exit_cond): Stop guessing, and just
5844 get the right answer :).
5845 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
5846 Print out message about result of attempt to create perfect nest.
5847 (lbv_to_gcc_expression): Add type argument, use it to do math
5848 and induction variable creation.
5849 (lle_to_gcc_expression): Ditto.
5850 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
5851 oldiv. Pass type argument to lle_to_gcc_expression and
5852 lbv_to_gcc_expression.
5853 Reset number of iterations after transformation.
5854 (perfect_nestify): Remove useless pre-allocation, and cleanup
5857 * tree-data-ref.c (build_classic_dist_vector): Return false for
5858 dependences completely outside of the loop nest we asked about.
5859 (build_classic_dir_vector): Ditto.
5860 (compute_data_dependences_for_loop): Only add dependence relations
5861 inside the loop we asked about.
5863 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
5864 Compute immediate uses.
5866 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
5868 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
5870 * tree-cfg.c (thread_jumps): Fix a comment typo.
5872 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
5874 * tree-cfg.c (thread_jumps): Fix a comment typo.
5876 2004-10-31 Nicolas Pitre <nico@cam.org>
5878 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
5879 values smaller than 2^32.
5881 2004-10-31 Jeff Law <law@redhat.com>
5883 * cfgloop.h (struct loop): Remove unused "nodes" field.
5884 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
5885 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
5886 instead of calling flow_bb_inside_loop_p for every basic block
5888 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
5890 2004-10-31 Graham Stott <graham.stott@btinternet.com>
5892 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
5893 INT_5_BITS instead of VAL_5_BITS_P.
5895 2004-10-31 Roger Sayle <roger@eyesopen.com>
5898 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
5899 for consistent quoting in diagnostic messages.
5900 (expand_call_inline): Likewise.
5901 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5902 * tree-ssa.c (warn_uninitialized_var): Likewise.
5903 (warn_uninitialized_phi): Likewise.
5905 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
5907 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
5910 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
5912 * c-common.c: Fix a comment typo.
5914 2004-10-31 Jason Merrill <jason@redhat.com>
5917 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
5918 aggregate types that are not BLKmode.
5920 2004-10-30 Ziemowit Laski <zlaski@apple.com>
5922 * c-common.h (objc_lookup_ivar): Add second parameter to
5924 * c-typeck.c (build_external_ref): After looking up symbol,
5925 pass it to objc_lookup_ivar() to decide whether it or the
5926 ivar should be used, rather than deciding the issue locally.
5927 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
5928 which is simply returned in the non-ObjC case.
5930 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5932 * sdbout.c (sdbout_symbol): Do not output type .def statements
5935 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5937 * c-common.c (catenate_strings): New.
5938 (c_parse_error): Use it. Don't over-escape.
5940 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
5942 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
5943 modify the for loop expressions for it. Remove unnecessary casts.
5944 (sh_expand_prologue): Declare reg as unsigned.
5945 (sh_gimplify_va_arg_expr): Initinalize lab_over.
5946 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
5948 2004-10-30 Geoffrey Keating <geoffk@apple.com>
5950 * doc/invoke.texi (Darwin Options): Improve description of
5951 how the subtype is chosen.
5953 2004-10-30 Roger Sayle <roger@eyesopen.com>
5956 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
5957 the stack adjustment, "size", is valid for Pmode. If the stack
5958 frame is too large, generate a trap insn and issue a warning.
5960 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
5962 * tree-ssa-dom.c: Fix comment typos.
5964 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
5966 * config/sh/sh.c (prepare_move_operands): Use operands[0]
5967 for the output rtl if no_new_pseudos is set. Remove redundant
5970 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
5973 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
5974 determining whether to copy parameter types from a previous
5975 prototype declaration.
5977 2004-10-29 Roger Sayle <roger@eyesopen.com>
5979 PR rtl-optimization/17581
5980 * cselib.c (cselib_process_insn): The last instruction of a libcall
5981 block, with the REG_RETVAL note, should be considered in the libcall.
5982 * gcse.c (do_local_cprop): Allow constants to be propagated outside
5984 (adjust_libcall_notes): Use simplify_replace_rtx instead of
5985 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
5987 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
5989 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
5991 2004-10-29 Jeff Law <law@redhat.com>
5993 * tree-ssa-dom.c (struct edge_info): New structure holding
5994 edge equivalences and edge redirection information.
5995 (get_eq_expr_value, record_dominating_conditions): Kill.
5996 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
5997 Call record_edge_info.
5998 (allocate_edge_info, free_edge_info): New.
5999 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
6000 rather than cprop_into_phis. Free all edge infos before threading
6002 (thread_across_edge): Allocate new edge info structures as needed
6003 and store the redirection target into the edge info structure
6004 instead of the edge's AUX field.
6005 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
6006 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
6007 Revamp code which finds and records equivalences associated with
6008 edges to use saved data in the edge_info structure.
6009 (record_equivalencs_from_phis): Similarly.
6010 (dom_opt_finalize_block): Revamp code which finds and records
6011 equivalences associated with edges to use saved data in the
6012 edge_info structure.
6013 (build_and_record_new_cond): New function.
6014 (record_conditions): Use build_and_record_new_cond to record
6015 dominating conditions.
6016 (record_edge_info): New function.
6017 (record_range): Tighten test for conditions which create
6018 useful range records.
6020 2004-10-29 Geoffrey Keating <geoffk@apple.com>
6022 * config/i386/darwin.h (ASM_SPEC): Simplify.
6023 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
6024 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
6025 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
6026 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
6027 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
6028 in all cases. Pass the right -arch or -arch_only based on -mcpu.
6029 (ASM_SPEC): Handle -force_cpusubtype_ALL.
6030 * doc/invoke.texi (Darwin Options): Improve documentation for
6031 Darwin linker (and libtool) switches.
6033 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
6035 2004-10-29 Stan Shebs <shebs@apple.com>
6037 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
6039 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6041 * tree-phinodes.c (allocate_phi_node): New.
6042 (make_phi_node, resize_phi_node): Use it.
6044 2004-10-29 David Edelsohn <edelsohn@gnu.org>
6046 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
6047 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
6049 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6051 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
6053 * tree.h (tree_phi_node): Tell the garbage collector to chase
6056 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
6058 * opts.c (decode_options): Lower the crossjump threshold for -Os.
6060 2004-10-29 Diego Novillo <dnovillo@redhat.com>
6062 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
6064 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6066 * bitmap.h (bitmap_empty_p): New.
6067 (bitmap_and, bitmap_and_into, bitmap_and_compl,
6068 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
6069 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
6071 (bitmap_ior_and_compl): Rename to ...
6072 (bitmap_ior_and_compl_into): ... here.
6073 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
6074 (bitmap_ior_and_compl): Rename to ...
6075 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
6077 (bitmap_union_of_diff): Use renamed bitmap functions.
6078 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
6079 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
6080 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
6081 * df.c (df_bb_rd_local_compute)
6082 * flow.c (calculate_global_regs_live,
6083 init_propagate_block_info): Likewise.
6084 * ifcvt.c (find_if_case_1, find_if_case_2,
6085 dead_or_predicable): Likewise.
6086 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
6087 reset_conflicts, conflicts_between_webs): Likewise.
6088 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
6089 detect_web_parts_to_rebuild): Likewise.
6090 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6091 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
6092 * tree-sra.c (decide_instantiations): Likewise.
6093 * tree-ssa-alias.c (create_name_tags,
6094 merge_pointed_to_info): Likewise.
6095 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6096 * tree-ssa-loop-im.c (move_computations): Likewise.
6097 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
6098 * tree-ssa-pre.c (fini_pre): Likewise.
6099 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
6100 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
6101 * tree-vectorizer.c (vectorize_loops): Likewise.
6103 2004-10-29 Nick Clifton <nickc@redhat.com>
6105 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
6106 adding the PIC register to the fixed_regs array, also add it
6107 to the call_used_regs array.
6109 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
6111 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
6112 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
6114 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
6116 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
6117 (rewrite_blocks): Modify argument, and use it to decide which
6119 (rewrite_def_def_chains): Call rewrite_blocks with true here.
6120 (rewrite_into_ssa): and call it with false here.
6122 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6124 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
6125 triggers into gcc_assert.
6127 2004-10-28 Diego Novillo <dnovillo@redhat.com>
6129 PR tree-optimization/16728
6130 * tree-flow.h (get_ptr_info): Declare.
6131 * tree-ssa-alias.c (get_ptr_info): Make extern.
6132 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
6135 2004-10-28 Stan Shebs <shebs@apple.com>
6137 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
6138 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
6141 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
6143 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
6144 prevent their later unnecessary registration.
6145 (mf_build_check_statement_for): Remove "addr" argument, and
6146 related "__mf_value" generated code. Update callers.
6147 (mf_decl_eligible_p): New function, factored from mx_register_decls.
6148 (mx_register_decls): Call it.
6149 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
6150 to restore support for complex nested expressions.
6151 (mudflap_enqueue_decl): Simplify. Move registration call emission
6153 (mudflap_finish_file): ... to here.
6154 (mudflap_enqueue_constant): Remove dump code.
6156 2004-10-28 Zack Weinberg <zack@codesourcery.com>
6159 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
6160 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
6161 (dbxout_finish_complex_stabs): Update to match.
6162 (dbxout_symbol_location): Call emit_pending_bincls_if_required
6163 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
6164 dbxout_begin_complex_stabs_noforcetext.
6165 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
6166 N_GSYM, using new SYM parameter. Correct logic for special
6169 * varasm.c (function_section): If DECL is NULL_TREE, don't try
6170 to do anything else. Do not call get_insns if cfun or
6171 cfun->emit are NULL.
6173 2004-10-28 Adam Nemet <anemet@lnxw.com>
6176 * c-typeck.c (c_mark_addressable): Issue error if address of a
6177 register variable is taken. Use "%qD" to print DECL_NAME.
6179 2004-10-28 Diego Novillo <dnovillo@redhat.com>
6181 * opts.c (decode_options): Don't run PRE at -Os.
6183 2004-10-28 Richard Henderson <rth@redhat.com>
6185 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
6186 zero in the conditional.
6187 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
6189 2004-10-28 Richard Henderson <rth@redhat.com>
6191 * cse.c (memory_extend_rtx): Remove.
6192 (cse_main): Don't set it.
6193 (cse_insn): Use a local buffer instead.
6195 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
6197 * profile.c (branch_prob): Call to init_edge_profiler added.
6198 * rtl-profile.c (rtl_init_edge_profiler): New function.
6199 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
6200 call to safe_insert_insn_on_edge.
6201 (rtl_profile_hooks): rtl_init_edge_profiler added.
6202 * tree-profile.c (tree_init_edge_profiler): New function.
6203 (tree_profile_hooks): tree_init_edge_profiler added.
6204 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
6206 2004-10-28 Nick Clifton <nickc@redhat.com>
6208 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
6209 emit_jump_insn() to generate the return instruction.
6211 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6213 * tree-phinodes.c: Remove trailing whitespace.
6215 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6217 * tree-ssa-loop-ivopts.c: Fix a comment typo.
6218 * doc/invoke.texi: Fix a typo.
6220 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6222 * Makefile.in (OBJS-common): Remove duplicates.
6224 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6226 * lambda-code.c (nestify_update_pending_stmts): Remove.
6227 (perfect_nestify): Use flush_pending_stmts instead of
6228 nestify_update_pending_stmts.
6229 * tree-cfg.c (tree_make_forwarder_block): Use
6230 flush_pending_stmts.
6231 * tree-flow.h: Add a prototype for flush_pending_stmts.
6232 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
6233 Use flush_pending_stmts.
6234 (lv_update_pending_stmts): Remove.
6235 (tree_ssa_loop_version): Use flush_pending_stmts instead of
6236 lv_update_pending_stmts.
6237 * tree-ssa.c (flush_pending_stmts): New.
6239 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
6242 * final.c (alter_subreg): Compute correct offset to use with
6243 paradoxical SUBREGs of memory operands.
6244 * recog.c (general_operand): Allow paradoxical SUBREGs of
6245 memory operands after reload.
6246 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
6247 has failed when passed a hard register.
6249 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
6251 * function.c (assign_parm_setup_block): Handle parallels correctly.
6253 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
6255 * final.c (shorten_branches): Initialize flags structure.
6257 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6259 * tree.c (int_cst_node, int_cst_hash_table): New variables.
6260 (init_ttree): Initialize them.
6261 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
6262 (build_int_cst_wide): Use hash table for oversized integers.
6264 2004-10-28 Nick Clifton <nickc@redhat.com>
6266 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
6269 2004-10-27 Richard Henderson <rth@redhat.com>
6272 * expr.c (emit_group_load): Don't go force temporary for memory
6274 (emit_group_store): Similarly.
6276 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6279 * common.opt (--param): Fix spelling of parameter.
6281 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6284 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
6285 Don't fold statement.
6286 <case ASM_EXPR>: Fold the statement.
6288 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6290 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6291 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
6293 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6295 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
6296 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
6297 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
6298 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
6300 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6302 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
6303 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
6304 punctuation outside quotes.
6306 2004-10-27 David Mosberger <davidm@hpl.hp.com>
6307 James E Wilson <wilson@specifixinc.com>
6310 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
6311 sibcall alloc instruction.
6312 (process_set): Handle sibcall alloc instruction.
6314 2004-10-27 Geoffrey Keating <geoffk@apple.com>
6316 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
6317 SUBTARGET_ATTRIBUTE_TABLE.
6318 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
6319 (SUBTARGET_ATTRIBUTE_TABLE): Define.
6320 * config/darwin.c (darwin_handle_weak_import_attribute): New.
6321 (HAVE_DEAD_STRIP): Delete.
6322 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
6323 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
6326 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
6328 * config/darwin.h (GTHREAD_USE_WEAK): Define.
6330 2004-10-28 Ben Elliston <bje@au.ibm.com>
6332 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
6333 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
6334 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
6335 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
6336 * tree-sra.c: Include "params.h".
6337 (decide_block_copy): Use new parameters.
6338 * doc/invoke.texi (Optimize Options): Document new SRA pass
6339 parameters sra-max-structure-size and sra-field-structure-ratio.
6341 2004-10-27 Nicolas Pitre <nico@cam.org>
6343 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
6345 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
6347 PR tree-optimization/18048
6348 * fold-const.c (try_move_mult_to_index): New function.
6349 (fold): Use try_move_mult_to_index.
6350 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
6351 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
6352 an all-ones unsigned constant without extra bits.
6353 * tree.c (build_low_bits_mask): New function.
6354 * tree.h (build_low_bits_mask): Declare.
6356 2004-10-27 David Edelsohn <edelsohn@gnu.org>
6359 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
6365 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6367 * tree-cfg.c (thread_jumps): Speed up by reordering the two
6368 conditions for entering basic blocks into worklist.
6370 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6372 * tree-cfg.c (thread_jumps): Speed up by pretending to have
6373 ENTRY_BLOCK_PTR in worklist.
6375 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6377 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6378 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
6380 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
6382 Fix PR tree-optimization/17133
6384 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
6387 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
6388 (get_v_must_def_result_ptr): Modify for new structure of
6390 (get_v_must_def_kill_ptr): New.
6391 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
6392 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6393 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6394 (op_iter_init): Initialize new mustu members.
6395 (op_iter_next_mustdef): New function.
6396 (op_iter_init_mustdef): Ditto.
6398 * tree-flow.h (rewrite_def_def_chains): New function.
6400 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
6401 (ssa_mark_def_sites): Ditto.
6402 (rewrite_stmt): Ditto.
6403 (ssa_rewrite_stmt): Ditto.
6404 (rewrite_blocks): Factor out from rewrite_into_ssa.
6405 (mark_def_block_sites): Ditto.
6406 (rewrite_def_def_chains): New function, just rewrites def-def
6407 chains without phi node insertion.
6409 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
6411 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
6413 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
6414 they include the rhs now.
6416 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
6419 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
6421 (mark_really_necessary_kill_operand_phis): New function.
6422 (perform_tree_ssa_dce): Call it.
6423 (pass_dce): Add TODO_fix_def_def_chains.
6424 (pass_cd_dce): Ditto.
6426 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
6428 (rewrite_mem_refs): Ditto.
6430 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
6433 * tree-ssa-operands.c (allocate_v_may_def_optype):
6434 v_may_def_operand_type_t became v_def_use_operand_type_t.
6435 (allocate_v_must_def_optype) Ditto.
6436 (finalize_ssa_v_must_defs): Update for new operand type, as well
6437 as setting the use portion as well.
6438 (copy_virtual_operands): Copy the kill operand as well.
6439 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
6442 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
6443 v_def_use_operand_type.
6444 (v_must_def_optype_d): Use v_def_use_operand_type.
6445 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
6446 (V_MUST_DEF_KILL_*): New macros.
6447 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
6449 Rename existing must_i and num_v_must members to mustd_i and
6451 (SSA_OP_VMUSTDEFKILL): New flag.
6452 (SSA_OP_VIRTUAL_KILLS): New flag.
6453 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
6454 (SSA_OP_ALL_KILLS): New flag.
6455 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
6457 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
6459 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
6460 became V_MUST_DEF_RESULT.
6461 (rename_variables_in_bb): Rename kill pointer as well.
6463 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
6466 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
6468 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
6469 the block that needs it.
6471 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6473 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
6476 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6478 * c-lex.c (cb_def_pragma): Clean up code for making location
6479 palatable to diagnostic.c.
6481 2004-10-27 Steven Bosscher <stevenb@suse.de>
6483 PR tree-optimization/17757
6484 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
6485 without any PHI arguments left. Make sure the argument that
6486 we're supposed to remove exists at all.
6488 2004-10-27 Paul Brook <paul@codesourcery.com>
6490 * configure.ac: Don't test for [build] __cxa_atexit when building a
6492 * configure: Regenerate.
6494 2004-10-27 Paul Brook <paul@codeosurcery.com>
6496 * configure.ac: Use build_exeext not host_exeext when lookin for
6498 * configure: Regenerate.
6500 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6502 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
6504 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6505 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
6508 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
6509 to match -fprofile-use.
6511 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6513 * config/rs6000/rs6000.c: Fix a comment typo.
6515 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6517 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
6520 2004-10-27 Andreas Schwab <schwab@suse.de>
6522 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
6524 (default_stabs_asm_out_constructor): Likewise.
6526 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6528 * builtins.c (fold_builtin_unordered_cmp): Always bring both
6529 operands to the same type.
6531 2004-10-26 James E Wilson <wilson@specifixinc.com>
6534 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
6536 2004-10-26 Zack Weinberg <zack@codesourcery.com>
6538 * dbxout.c: Include obstack.h.
6539 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
6541 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
6542 Default-define here.
6543 (DBX_CONTIN_LENGTH): Move definition with others.
6544 (DBX_FINISH_STABS): New target macro.
6545 (current_sym_code, current_sym_value, current_sym_addr)
6546 (current_sym_nchars, CHARS, dbxout_continue)
6547 (print_int_cst_octal, print_octal, print_wide_int)
6548 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
6549 (stabstr_ob, stabstr_last_contin_point): New variables.
6550 (NUMBER_FMT_LOOP): New improper macro.
6551 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
6552 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
6553 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
6554 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
6555 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
6556 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
6557 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
6558 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
6559 New functions and/or proper function-like macros.
6560 (CONTIN): Use stabstr_continue, unconditionally.
6561 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
6562 (dbxout_init): Initialize stabstr_ob. Check
6563 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
6564 if it was used. Use the new interfaces.
6565 (dbxout_source_file): Remove file argument; always write to
6566 asm_out_file. Use the new interfaces.
6567 (dbxout_type_method_1): Remove second argument which is always
6568 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
6569 (dbxout_type_methods): Remove write-only variables. Use the
6571 (dbxout_parms): Refactor to remove code duplicated in each of
6572 several successive if-else-if blocks. Use the new interfaces.
6573 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
6574 (dbxout_source_line, dbxout_finish, dbxout_type_index)
6575 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
6576 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
6577 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
6578 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
6579 Use the new interfaces.
6580 * Makefile.in (dbxout.o): Update dependencies.
6582 * defaults.h: Don't define ASM_STABD_OP.
6583 * output.h: Prototype new dbxout_* interfaces.
6584 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
6585 * varasm.c: Don't define ASM_STABS_OP.
6586 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
6587 Use the new dbxout.c interfaces. Call sorry if neither
6588 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
6590 * xcoffout.h: Don't define ASM_STABS_OP.
6591 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
6592 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
6593 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
6594 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
6595 do { ... } while (0) idiom.
6597 * config/alpha/alpha.c (num_source_filenames): Export.
6598 * config/alpha/alpha.h (num_source_filenames): Declare.
6599 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6600 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6601 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6602 Always use .debugsym. Update commentary.
6603 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6604 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6605 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
6607 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
6608 (macho_branch_islands): Use new interfaces.
6610 * doc/tm.texi: Update.
6612 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6614 * expr.c (emit_group_store): Do not treat floats as BLKmode.
6615 (emit_group_load): Same.
6617 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
6619 * c-parse.in (datadef): Use pedwarn rather than error and warning
6620 for diagnostic in case of no declaration specifiers.
6622 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
6625 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
6626 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
6627 can be used to work around this.
6629 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6631 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
6634 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6636 * stmt.c (expand_case): Update a comment.
6638 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6640 * stmt.c (expand_case): Put an assertion that index_expr is
6641 never INTEGER_CST. Don't special case for constant
6644 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
6647 * c-parse.in (designator): Finish with a semi-colon.
6649 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
6651 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
6654 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6656 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
6657 a default case only.
6659 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6661 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
6663 (spe_build_register_parallel): New.
6664 (rs6000_spe_function_arg): Handle e500 doubles.
6665 (function_arg): Same.
6666 (spe_func_has_64bit_regs_p): Same.
6667 (rs6000_function_value): Same.
6668 (rs6000_libcall_value): Same.
6669 (legitimate_lo_sum_address_p): Return false for e500 doubles.
6671 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
6673 (DATA_ALIGNMENT): Same.
6674 (CANNOT_CHANGE_MODE_CLASS): Same.
6676 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6678 * expr.c (emit_group_load): Handle floats.
6679 (emit_group_store): Same.
6681 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
6683 * c-lex.c (get_nonpadding_token): Remove.
6684 (c_lex_with_flags): Push timevar and eat padding here. Improve
6685 stray token diagnostic.
6686 (lex_string): Replace logic with switch statement, eat padding
6689 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6692 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
6694 2004-10-25 Geoffrey Keating <geoffk@apple.com>
6696 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
6698 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
6699 (ASM_MAKE_LABEL_LINKONCE): Delete.
6700 (ASM_WEAKEN_DECL): New.
6701 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
6702 (ASM_DECLARE_FUNCTION_NAME): Likewise.
6703 (TEXT_SECTION_ASM_OP): Add a tab.
6704 (DATA_SECTION_ASM_OP): Likewise.
6705 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
6706 data_section on every section change.
6707 (EXTRA_SECTIONS): Add a bunch of new extra sections.
6708 (EXTRA_SECTION_FUNCTIONS): Likewise.
6709 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
6710 (JCR_SECTION_NAME): Define.
6711 (TARGET_SECTION_TYPE_FLAGS): Don't define.
6712 * config/darwin.c (darwin_encode_section_info): A symbol is defined
6713 in this file if it is not weak.
6714 (textcoal_section): Delete.
6715 (datacoal_section): Delete.
6716 (darwin_make_decl_one_only): Delete.
6717 (machopic_select_section): Handle functions.
6718 (darwin_asm_named_section): Add a tab.
6719 (darwin_section_type_flags): Delete.
6720 (darwin_unique_section): Delete contents.
6721 (darwin_emit_unwind_label): Add a tab. Make decls weak if
6723 * config/darwin-protos.h (darwin_section_type_flags): Delete.
6724 (darwin_make_decl_one_only): Delete.
6725 (text_coal_section): New.
6726 (text_unlikely_section): New.
6727 (text_unlikely_coal_section): New.
6728 (const_coal_section): New.
6729 (data_coal_section): New.
6730 (const_data_coal_section): New.
6731 * varasm.c (function_section): Honour
6732 USE_SELECT_SECTION_FOR_FUNCTIONS.
6733 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
6734 TARGET_USES_WEAK_UNWIND_INFO is in effect.
6735 * dbxout.c (dbxout_source_file): Don't change sections while
6736 a function is being output.
6738 2004-10-25 David Ayers <d.ayers@inode.at>
6740 * c-common.h: Remove RID_ID.
6741 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
6742 (typespec_reserved_attr): Add rule for TYPENAME
6743 non_empty_protocolrefs.
6744 (yylexname): Remove special handling of RID_ID.
6746 2004-10-25 James E Wilson <wilson@specifixinc.com>
6748 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
6750 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
6753 * c-parse.in (array_designator): New.
6754 (designator): Use it.
6755 (initelt): Only permit array_designator without '=', not ".foo".
6757 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
6758 * gcc/Makefile.in: removed ggc for cgraphunit.
6759 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
6760 * gcc/cgraph.h: removed static var analysis data structures and calls.
6762 cgraph_mark_local_and_external_functions:changed name to
6763 cgraph_mark_local_functions
6764 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
6765 cgraph_reset_static_var_maps,get_global_static_vars_info,
6766 get_global_statics_not_read,get_global_statics_not_written,searchc,
6767 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
6768 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
6769 scan_for_static_refs,cgraph_characterize_statics_local,
6770 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
6772 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
6773 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
6775 * gcc/tree-flow.h static_vars_info: removed
6776 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
6777 removed calls to static vars analysis.
6778 get_call_expr_operands: removed callee variable.
6780 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6782 * cfg.c (unchecked_make_edge, redirect_edge_succ,
6783 redirect_edge_pred): Use VEC_safe_push instead of
6785 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6787 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6789 * cfgloopmanip.c (loopify): Take two more arguments true_edge
6791 * cfgloop.h: Adjust the corresponding prototype.
6792 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
6793 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
6795 2004-10-25 Jakub Jelinek <jakub@redhat.com>
6797 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
6798 DECL_INCOMING_RTL is NULL.
6800 2004-10-25 Steven Bosscher <stevenb@suse.de>
6802 * timevar.def (TV_FIND_REFERENCED_VARS): New.
6803 * tree-dfa.c (pass_referenced_var): Use it.
6805 2004-10-25 Roger Sayle <roger@eyesopen.com>
6806 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6808 * cse.c: Change encoding of quantity numbers to avoid undefined
6809 pointer arithmetic on qty_table.
6810 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
6811 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
6812 (new_basic_block): Assign "real" quantity numbers from zero.
6813 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
6814 REG_QTY to its unique negative value.
6815 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
6816 (cse_main): Don't include max_reg when determining max_qty.
6817 (cse_basic_block): Avoid subtracting a large offset from qty_table,
6818 which causes undefined C99 behaviour. Only allocate needed memory.
6820 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6822 * stmt.c (expand_case): Remove an obsolete comment.
6824 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
6827 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
6828 layout_type as it is already done by build_array_type.
6829 * tree.c (build_array_type): Layout the type even
6831 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
6833 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
6835 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
6837 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
6838 with wider-than-32-bit HOST_WIDE_INTs.
6840 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
6842 * config/mips/mips.c(mips_output_filename): Remove unused
6843 array ltext_label_name
6845 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
6847 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
6849 2004-10-25 Ben Elliston <bje@au.ibm.com>
6851 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
6853 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
6855 * predict.c (predict_loops): Call scev_finalize instead of
6858 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
6860 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
6861 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
6862 config/sh/ushmedia.h, config/sparc/elf.h,
6863 config/sparc/sp64-elf.h: Update copyright.
6865 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
6867 * stmt.c (expand_case): Handle the default label outside of
6868 the for loop. Remove code to handle a missing default label.
6870 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
6872 * dbxout.c (dbxout_function_decl): Don't use
6873 DBX_OUTPUT_FUNCTION_END.
6874 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
6875 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
6877 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
6880 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
6882 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
6884 * tree-ssa-dom.c (record_equality): Use loop depth to determine
6885 which way to record the equality as well.
6886 (loop_depth_of_name): New function.
6888 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6891 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
6892 through the operand if it is a useless type conversion.
6894 2004-10-23 Ben Elliston <bje@au.ibm.com>
6896 * cfg.c (remove_edge): Use VEC_unordered_remove.
6897 (redirect_edge_succ): Likewise.
6898 (redirect_edge_pred): Likewise.
6899 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6901 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6903 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
6906 2004-10-22 Eric Christopher <echristo@redhat.com>
6908 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
6911 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
6913 * config/rs6000/spe.md (spe_extendsfdf2): New.
6914 (movdf_e500_double): New.
6915 (spe_truncdfsf2): New.
6922 (spe_floatsidf2): New.
6923 (spe_floatunssidf2): New.
6924 (fix_truncdfsi2): New.
6925 (spe_fixuns_truncdfsi2): New.
6927 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
6928 (fpr_truncdfsf2): New.
6929 (negdf2): Change to expander.
6931 (fpr_nabsdf2): Name pattern.
6932 (adddf3): Change to expander.
6934 (subdf3): Change to expander.
6936 (muldf3): Change to expander.
6938 (divdf3): Change to expander.
6940 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
6941 (cmpdf): Allow for TARGET_E500_DOUBLE.
6943 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6945 * c-semantics.c (re_push_stmt_list): Remove.
6946 * c-common.h: Remove the corresponding prototype.
6948 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6950 * stmt.c (asm_op_is_mem_input): Remove.
6951 * tree.h: Remove the corresponding prototype.
6953 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6955 * tree-gimple.c (is_gimple_constructor_elt): Remove.
6956 * tree-gimple.h: Remove the corresponding prototype.
6958 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6960 * varasm.c (get_pool_mode_for_function, get_pool_offset):
6962 * rtl.h: Remove the corresponding prototypes.
6964 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6966 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
6967 edge information when we commit ourselves to threading a
6970 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6972 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
6973 into worklist instead of their indexes.
6975 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6977 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
6978 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
6979 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
6980 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
6981 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
6982 tree-scalar-evolution.c, tree-ssa-dom.c,
6983 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6984 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
6985 tree-vectorizer.c, vec.h: Fix comment formatting.
6987 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6989 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
6990 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
6992 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6994 * config/ptx4.h, config/mcore/mcore-pe.h,
6995 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
6997 2004-10-22 Peter Barada <peter@the-baradas.com>
6999 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
7000 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
7001 renaming of non-live registers in interrupt functions.
7002 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
7004 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
7006 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
7007 Use integer for loop counter.
7008 (num_ending_zeros): New function.
7009 (number_of_iterations_cond): Use num_ending_zeros.
7011 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
7013 * config.gcc: Add support for --enable-e500_double.
7015 * config/rs6000/e500-double.h: New file.
7017 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
7020 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
7023 * config/rs6000/linuxspe.h: Same.
7025 * doc/invoke.texi (Option Summary): Document new options for
7027 (RS/6000 and PowerPC Options): Same.
7029 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
7031 (rs6000_override_options): Use it. Use
7032 SUB3TARGET_OVERRIDE_OPTIONS.
7033 Add 8548 to processor_target_table.
7034 (rs6000_legitimate_address): Handle e500 doubles.
7035 (rs6000_legitimize_address): Same.
7036 (rs6000_legitimize_reload_address): Same.
7037 (rs6000_hard_regno_nregs): Same.
7038 (spe_func_has_64bit_regs_p): Same.
7039 (emit_frame_save): Same.
7040 (gen_frame_mem_offset): Same.
7041 (rs6000_dwarf_register_span): Same.
7042 (rs6000_generate_compare): Same.
7043 (easy_fp_constant): Same.
7044 (legitimate_offset_address_p): Same.
7046 * config/rs6000/spe.md: (cmdfeq_gpr): New.
7055 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7057 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
7059 2004-10-21 Zack Weinberg <zack@codesourcery.com>
7061 * dbxout.c: Remove unnecessary #undefs.
7062 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
7063 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
7064 definition into use sites.
7065 (cwd): Make local to dbxout_init.
7066 (dbxout_init): Restructure cwd-using logic for clarity. Use
7068 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
7069 STABS_GCC_MARKER folded in here.
7070 * system.h: Poison now-unused macros.
7071 * doc/tm.texi: Remove documentation of now-unused macros.
7073 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
7076 * c-opts.c (push_command_line_include): Use the current file
7077 name instead of the main one.
7079 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
7082 * tree.c (staticp): A CONST_DECL has static storage if either
7083 TREE_STATIC or DECL_EXTERNAL is set.
7084 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
7087 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7089 * expr.c (store_expr): Remove dont_store_target.
7091 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7093 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
7095 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7097 * tree-cfg.c (thread_jumps): Move a part of it to ...
7098 (thread_jumps_from_bb): ... here.
7100 2004-10-21 David Edelsohn <edelsohn@gnu.org>
7102 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
7103 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
7105 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7107 * expr.c (store_expr): Clean up by renaming want_value to
7110 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
7112 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
7115 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
7118 * expmed.c (store_bit_field): Pass original 'value' before
7121 2004-10-21 Nicolas Pitre <nico@cam.org>
7123 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
7124 * config/arm/ieee754-df.S: Ditto.
7126 2004-10-20 Zack Weinberg <zack@codesourcery.com>
7128 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
7129 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
7131 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
7132 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
7133 an internal label and an N_SLINE .stabn whose value is the
7134 difference between that label and the function entry label.
7135 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
7136 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
7137 label and an N_SO stab with an empty string referring to it.
7138 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
7139 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
7140 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
7141 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
7142 macro is never defined.
7143 * sdbout.c (sdbout_source_line_counter): Delete.
7144 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
7145 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
7147 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
7149 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
7150 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
7151 definitions (identical to default).
7152 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
7153 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
7154 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
7155 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
7156 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
7157 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
7158 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
7159 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
7160 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
7161 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
7162 (sym_lineno): Delete.
7163 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
7164 now-unused variable.
7165 (alpha_output_lineno): Delete.
7166 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
7167 * config/mips/mips.c (mips_output_filename): Don't use
7168 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
7169 (mips_output_lineno): Delete.
7170 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
7171 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
7172 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
7173 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
7174 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
7175 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
7176 * config/mmix/mmix.h: Likewise.
7177 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
7178 * config/mmix/mmix-protos.h: Don't prototype it.
7179 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
7180 no need to #undef ASM_OUTPUT_SOURCE_LINE.
7181 * config/arm/aout.h: Remove RISCiX-specific definition of
7182 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
7183 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
7184 ASM_OUTPUT_SOURCE_LINE.
7185 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
7186 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
7187 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
7189 * doc/tm.texi: Update.
7191 2004-10-20 Richard Henderson <rth@redhat.com>
7193 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
7195 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
7197 * configure.ac: Revert my previous patch.
7198 * configure: Regenerate.
7200 2004-10-20 Ben Elliston <bje@au.ibm.com>
7202 * config/rs6000/rs6000.c
7203 (rs6000_va_start): Use build_va_arg_indirect_ref.
7204 (rs6000_gimplify_va_arg): Likewise.
7206 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
7209 * configure.ac: Declare AM_LANGINFO_CODESET.
7210 * aclocal.m4: Define AM_LANGINFO_CODESET.
7211 * configure, config.in: Rebuilt.
7213 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7215 * expr.c (store_expr): Remove code that is run when
7216 want_value & 1 is nonzero.
7218 2004-10-20 Mark Mitchell <mark@codesourcery.com>
7220 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
7221 from function pointer to void *.
7223 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
7226 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
7227 the frame pointer adjustment when exception handling is enabled.
7229 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7231 * stor-layout.c: Fix a comment typo.
7233 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7235 * expr.c (store_field): Remove two arguments value_mode and
7237 (expand_assignment, store_constructor_field,
7238 expand_expr_real_1): Adjust calls to store_field.
7240 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
7242 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
7245 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
7246 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
7247 base and index register for loads.
7249 * config/arc/t-arc: Fix multilib handling.
7251 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
7253 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7254 don't inspect BLOCK_FOR_INSN for barriers.
7255 * emit-rtl.c (emit_barrier_before): Revert last change.
7256 (emit_barrier_after, emit_barrier): Ditto.
7258 * doc/extend.texi (Extended Asm): Warn and provide example
7259 solution for using a call-clobbered asm register.
7260 (Local Reg Vars): Similar. Cross-reference example.
7262 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
7264 * tree-cfg.c (group_case_labels): Look at the second to last
7265 case statement for combing with the default case.
7267 2004-10-19 Richard Hendeson <rth@redhat.com>
7270 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
7272 2004-10-19 Richard Hendeson <rth@redhat.com>
7274 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
7275 succeeds, only expand the result.
7277 2004-10-19 Richard Hendeson <rth@redhat.com>
7280 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
7283 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7285 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
7288 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7290 * expr.c (expand_assignment): Remove the last argument.
7291 Change the return type to void.
7292 * expr.h: Update the prototype of expand_assignment.
7293 * function.c (assign_parm_setup_reg): Update a call to
7295 * stmt.c (expand_asm_expr): Likewise.
7297 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7299 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
7300 unnecessary assignments to temp. Return const0_rtx.
7302 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
7304 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
7306 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
7308 * configure.ac (powerpc-*-darwin*): Require assembler to support
7310 * configure: Regenerate.
7312 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7314 * reload1.c (ior_hard_reg_set): Remove.
7315 (finish_spills): Use IOR_HARD_REG_SET instead of
7318 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7320 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
7321 the currently visited word to right.
7323 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7326 * expmed.c (expand_smod_pow2): Handle modes whose size
7327 is greater than that of HOST_WIDE_INT.
7329 2004-10-18 Ziemowit Laski <zlaski@apple.com>
7331 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
7333 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7334 Roger Sayle <roger@eyesopen.com>
7337 * dojump.c (discard_pending_stack_adjust): New function.
7338 (clear_pending_stack_adjust): Call it.
7339 * expr.h (discard_pending_stack_adjust): Declare it.
7340 * explow.c (emit_stack_save): Emit pending stack adjustments
7341 before saving the stack pointer.
7342 (emit_stack_restore): Discard pending stack adjustments before
7343 restoring the stack pointer.
7345 2004-10-18 Richard Henderson <rth@redhat.com>
7347 * c-common.c (handle_mode_attribute): Allow scalar->vector
7350 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7352 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
7353 value to expand_assignment.
7355 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7357 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
7359 (thread_jumps): Iterate until no new forwarder block arises.
7361 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7363 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
7364 (thread_jumps): Use forwardable as cache of
7365 tree_forwarder_block_p throughout the function.
7367 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
7369 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
7371 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
7375 * tree-cfg.c (remove_bb): If we have a label expression in the
7376 basic block and the label we have taken the address, move the
7377 label expression to the basic block which is previous in the
7379 (tree_verify_flow_info): Fix printing out the label name of the
7380 problematic label expression.
7382 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
7384 PR rtl-optimization/18002
7385 * simplify-rtx.c (mode_signbit_p): Externalize function...
7386 * rtl.h (mode_signbit_p): ... to here.
7387 * combine.c (simplify_shift_const): Recognize PLUS signbit as
7388 canonical form of XOR signbit and move to outer op.
7390 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7392 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
7394 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
7395 Don't call fold_stmt more than once, use bsi_replace.
7397 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7399 PR tree-optimization/17656
7400 * tree-ssa.c (replace_immediate_uses): When replacing a
7401 constant, if the call to fold_stmt produced a different
7402 statement, get an appropriate statement pointer by scanning
7405 2004-10-18 Richard Henderson <rth@redhat.com>
7407 * pointer-set.c (hash1): Don't use libm functions in fallback case.
7409 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
7412 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
7413 (stage1-start): Remove and copy libunwind.a and
7414 libunwind*$(SHLIB_EXT) instead of libunwind*.
7415 (stage2-start): Likewise.
7416 (stage3-start): Likewise.
7417 (stage4-start): Likewise.
7418 (stageprofile-start): Likewise.
7419 (stagefeedback-start): Likewise.
7421 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
7422 the shared library to be created and don't remove the existing
7424 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
7425 * config/i386/t-nwld (SHLIB_LINK): Likewise.
7426 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
7427 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
7428 * config/sh/t-linux (SHLIB_LINK): Likewise.
7429 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
7430 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
7431 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
7432 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7434 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
7437 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7439 * basic-block.h (reg_set_iterator): New.
7440 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
7441 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
7442 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
7443 * caller-save.c (save_call_clobbered_regs): Adjust to the new
7445 * cfgcleanup.c (thread_jump): Likewise.
7446 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
7447 * conflict.c (conflict_graph_compute): Likewise.
7448 * flow.c (verify_local_live_at_start, update_life_info,
7449 initialize_uninitialized_subregs, propagate_one_insn,
7450 init_propagate_block_info, free_propagate_block_info,
7451 propagate_block, dump_regset): Likewise.
7452 * global.c (global_conflicts): Likewise.
7453 * graph.c (start_bb): Likewise.
7454 * local-alloc.c (update_equiv_regs): Likewise.
7455 * loop.c (load_mems): Likewise.
7456 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
7457 find_reg, finish_spills): Likewise.
7458 * resource.c (mark_target_live_regs): Likewise.
7459 * sched-deps.c (sched_analyze_insn): Likewise.
7460 * sched-rgn.c (sched-rgn.c): Likewise.
7461 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7463 2004-10-18 Jakub Jelinek <jakub@redhat.com>
7465 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
7466 operand 1 instead of 2
7468 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7470 * loop-unroll.c: Fix comment typos.
7472 2004-10-18 Revital Eres <eres@il.ibm.com>
7474 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
7475 * loop-unroll.c: Include varray.h.
7476 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
7477 opt_info and expand it to support variable expansion.
7478 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
7479 expand it to support variable expansion.
7480 (pt_info_start_duplication): Rename si_info_start_duplication.
7481 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
7482 to the variable expansion optimization.
7483 (free_opt_info): Rename free_si_info.
7484 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
7485 expand_var_during_unrolling, insert_var_expansion_initialization,
7486 combine_var_copies_in_loop_exit, release_var_copies,
7487 get_expansion): New functions.
7488 (peel_loop_completely, unroll_loop_constant_iterations,
7489 unroll_loop_runtime_iterations, peel_loop_simple,
7490 unroll_loop_stupid): Change uses of struct si_info
7492 and add uses of fvariable-expansion-in-unroller flag.
7493 * params.def: Add parameter to restrict the number of expansions.
7494 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
7495 the number of expansions.
7496 * common.opt: (fvariable-expansion-in-unroller): New flag.
7497 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
7499 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
7501 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
7502 __GXX_MERGED_TYPEINFO_NAMES to 0.
7504 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
7506 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7507 handle barriers in a bb by checking that it points to a NULL bb.
7508 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
7509 (emit_barrier_after, emit_barrier): Ditto.
7511 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
7513 * doc/extend.texi (Attribute Syntax): Clarify details of
7514 attributes on parameters.
7516 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
7518 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
7521 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7524 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7526 * c-typeck.c (default_function_array_conversion): Always create
7527 &a[0] for array types.
7528 (build_unary_op): Do not fold &a[x] into a + x.
7530 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7533 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
7534 block if there is a goto with a locus.
7536 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7538 * config/elfos.h, config/gofast.h, config/interix.h,
7539 config/netbsd.h, config/svr3.h, config/vxworks.h,
7540 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
7541 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
7542 config/alpha/netbsd.h, config/arm/arm-modes.def,
7543 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
7544 config/cris/aout.h, config/frv/frv-modes.def,
7545 config/i386/beos-elf.h, config/i386/gas.h,
7546 config/i386/i386-coff.h, config/i386/i386-modes.def,
7547 config/i386/linux.h, config/i386/linux64.h,
7548 config/i386/mingw32.h, config/i386/netbsd-elf.h,
7549 config/i386/netbsd64.h, config/i386/sco5.h,
7550 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
7551 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
7552 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
7553 config/mips/mips-modes.def, config/mips/sdb.h,
7554 config/mips/vr.h, config/mips/vxworks.h,
7555 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
7556 config/pa/pa32-linux.h, config/rs6000/40x.md,
7557 config/rs6000/7450.md, config/rs6000/8540.md,
7558 config/rs6000/linuxspe.h, config/rs6000/power4.md,
7559 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
7560 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
7561 config/s390/s390-modes.def, config/sh/elf.h,
7562 config/sh/sh-modes.def, config/sh/sh64.h,
7563 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
7564 config/stormy16/stormy16.md, config/v850/v850-protos.h,
7565 config/vax/vax.md: Update copyright.
7567 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7569 * expr.c (expand_expr_real_1): Remove an obsolete comment.
7571 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7573 * c-typeck.c (default_function_array_conversion): Always create
7574 &a[0] for array types.
7575 (build_unary_op): Do not fold &a[x] into a + x.
7577 2004-10-17 Jakub Jelinek <jakub@redhat.com>
7579 * pointer-set.c (hash1): Use integer part of 2^64 / phi
7580 instead 2^32 / phi if long is 64-bit.
7582 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
7584 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
7586 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
7588 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
7589 __ptrextent__, __ptrvalue and __ptrvalue__.
7590 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
7593 2004-10-16 Dale Johannesen <dalej@apple.com>
7595 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
7597 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7599 PR tree-optimization/17766
7600 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
7601 (dom_info_available_p): Declare.
7602 * cfghooks.c (split_block, make_forwarder_block): Use
7603 dom_info_available_p.
7604 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
7605 free_dominance_info, verify_dominators): Ditto.
7606 (dom_info_available_p): New function.
7607 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
7608 (thread_jumps): Use dom_info_available_p.
7609 * tree-complex.c (expand_complex_div_wide): Ditto.
7610 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7612 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7614 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
7615 (find_best_candidate): Take also important candidates into account.
7616 (find_optimal_iv_set): Initialize important_candidates bitmap.
7618 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7620 PR tree-optimization/17560
7621 * predict.c (tree_estimate_probability): Mark irreducible
7624 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7626 PR rtl-optimization/17723
7627 * cfgcleanup.c (merge_memattrs): Handle case when
7628 MEM_SIZE == NULL_RTX.
7630 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
7632 * toplev.c (dump_file_name): Change type to be const.
7634 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
7636 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
7637 non_lvalue to stop something being a null pointer constant.
7639 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
7641 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
7642 available for TARGET_FPRS.
7643 (FUNCTION_VALUE_REGNO_P): Same.
7645 2004-10-15 Geoffrey Keating <geoffk@apple.com>
7647 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7648 -maltivec in same style as other ISA options.
7650 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
7652 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
7655 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7657 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
7658 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
7659 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
7660 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
7661 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
7662 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
7663 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
7664 predict.def, predict.h, protoize.c, reload.h, resource.h,
7665 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
7666 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
7667 unwind-sjlj.c, value-prof.h: Update copyright.
7669 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7671 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
7673 2004-10-15 Diego Novillo <dnovillo@redhat.com>
7675 * tree-optimize.c (execute_one_pass): Stop timer right after
7678 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7681 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7684 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7685 (remove_useless_stmts_1): Fold trees we know how to fold.
7687 2004-10-14 David Edelsohn <edelsohn@gnu.org>
7689 * configure.ac: Add .machine power4 directive when testing for
7691 * configure: Regenerate.
7693 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7695 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
7697 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7699 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
7702 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
7704 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
7705 for 'f' if !TARGET_FPRS.
7707 2004-10-14 Richard Henderson <rth@redhat.com>
7710 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
7712 2004-10-14 Richard Henderson <rth@redhat.com>
7715 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
7717 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
7718 instaed of current_function_decl non-null.
7720 2004-10-14 Matt Austern <austern@apple.com>
7722 * pointer-set.c: New file, special-purpose hash table.
7723 * pointer-set.h: New file.
7724 * tree.h (struct pointer_set_t): Declare as opaque type.
7725 (tree_walk): Last argument is pointer_set_t* now.
7726 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
7728 (walk_tree): Convert from htab_t to pointer_set_t for keeping
7729 track of which nodes have already been visited.
7730 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
7731 * cgraphunit.c (cgraph_create_edges): Likewise.
7732 (cgraph_characterize_statics_local): Likewise.
7733 * tree-dfa.c (collect_dfa_stats): Likewise.
7734 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
7736 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
7737 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
7738 of walk_subtrees is pointer_set_t* now.
7739 * Makefile.in (OBJS-common): add pointer-set.o
7740 (tree-inline.o): Depends on pointer-set.h
7741 (tree-dfa.o): Likewise
7742 (cgraphunit.o): Likewise
7744 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7746 * config/rs6000/darwin.h (ASM_SPEC): Delete.
7747 (TARGET_ASM_FILE_START): Define.
7748 * config/darwin.h (ASM_SPEC): Define.
7749 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
7750 -mlong-double-128, it's the default. Update comment about reason
7751 for force_cpusubtype_ALL.
7752 * config/rs6000/darwin-vecsave.asm: Supply .machine.
7753 * config/rs6000/darwin-world.asm: Likewise.
7754 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
7755 (symbolic_operand): Delete #if 0ed code.
7757 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7759 * stmt.c (add_case_node): Make sure that we have integer
7760 constant before calling tree_int_cst_compare.
7762 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7766 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7767 (remove_useless_stmts_1): Fold trees we know how to fold.
7769 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
7771 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
7772 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
7775 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
7777 * reload.c (find_reloads): When reloading a PLUS with constant
7778 operand, make sure the constant is pushed to the constant pool
7780 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
7781 reload bug workaround.
7782 (s390_expand_plus_operand): Likewise.
7784 2004-10-14 David Edelsohn <edelsohn@gnu.org>
7786 * opts.c (common_handle_option): Do not enable
7787 flag_speculative_prefetching for -fprofile-generate/use.
7789 2004-10-14 Devang Patel <dpatel@apple.com>
7792 * tree-if-conv.c (process_phi_nodes): Process latch block.
7793 (combine_blocks): Process latch block and update loop structure.
7795 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
7797 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
7798 (vect_update_ivs_after_vectorizer):
7799 (vect_transform_for_unknown_loop_bound):
7800 (tree_duplicate_loop_to_edge):
7801 (allocate_new_names):
7804 (rename_variables_in_bb):
7806 (rename_variables_in_loop):
7808 (update_phis_for_duplicate_loop):
7809 (update_phi_nodes_for_guard):
7810 (make_loop_iterate_ntimes):
7811 (tree_duplicate_loop_to_edge_cfg):
7813 (vect_analyze_loop_with_symbolic_num_of_iters):
7814 (verify_loop_for_duplication):
7815 (vect_gen_niters_for_prolog_loop):
7816 (vect_update_niters_after_peeling):
7817 (vect_update_inits_of_dr):
7818 (vect_update_inits_of_drs):
7819 (vect_build_loop_niters):
7820 (vect_do_peeling_for_alignment): New functions.
7821 (vect_transform_loop): Add unknown and known but indivisible loop
7822 bound support; add peeling for unalignment support.
7823 (vect_analyze_loop_form): Support symbolic number of iterations.
7824 (vect_transform_loop_bound): New input parameter.
7825 (vect_get_loop_niters): Change input parameter type.
7826 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
7827 (vectorizable_store): Allow unaligned access.
7828 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
7829 (vect_analyze_data_refs_alignment): Allowed one unaligned
7831 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
7833 (LOOP_VINFO_INT_NITERS): New macro.
7834 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
7835 (do_peeling_for_alignment):
7836 (unaligned_drs): New members of _loop_vec_info.
7837 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
7839 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
7841 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
7842 (struct tree_string): Remove "const" qualifier for "str".
7844 2004-10-14 Ira Rosen <irar@il.ibm.com>
7846 * tree-vectorizer.c (vect_analyze_data_refs): Call
7847 vect_get_base_and_bit_offset to get memory tag for array ref.
7848 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
7850 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
7852 * configure.ac: Use $LN_S for creating symlinks (not $LN).
7853 * configure: Regenerate.
7855 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7857 * doc/install.texi (*-*-solaris2*): Update with info about kernel
7858 patches to solve spurious testsuite failures.
7860 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
7862 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
7863 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
7864 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
7865 gcc_assert under ENABLE_CHECKING.
7866 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
7867 get_vectype_for_scalar_type).
7869 (vect_get_vec_def_for_operand): Remove redundant variables.
7870 (vect_transform_loop): Likewise.
7872 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
7874 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
7875 global for -mcaller-super-interworking.
7876 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
7877 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
7878 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
7879 not need a frame pointer.
7880 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
7881 the soft frame pointer offset.
7882 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
7883 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
7884 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
7885 the stack. Use frame_pointer_needed to choose between them.
7886 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
7887 (interwork_with_frame): New macro.
7888 (interwork): Add _interwork_{r7,r11}_call_via_rN().
7890 2004-10-14 Ben Elliston <bje@au.ibm.com>
7893 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
7894 up the filename looking for a previous directory separator.
7896 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
7898 * c-tree.h (enum c_typespec_kind, struct c_typespec,
7899 parser_xref_tag): New.
7900 (struct c_declspecs): Add tag_defined_p. Adjust definition of
7902 (declspecs_add_type): Adjust prototypes.
7903 * c-parse.in (%union): Add tstype.
7904 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
7905 typespec_reserved_attr, typespec_nonreserved_nonattr,
7906 structsp_attr, structsp_nonattr): Change to tstype. Update
7908 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
7909 (declspecs_add_type): Update to take struct c_typespec argument.
7910 Set tag_defined_p and typedef_p as appropriate.
7911 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
7912 Update to return struct c_typespec.
7913 (shadow_tag_warned): Don't let empty declarations with qualifiers
7914 or storage class specifiers redeclare a tag if a previous
7915 declaration is visible.
7917 2004-10-13 Richard Henderson <rth@redhat.com>
7920 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
7921 for DECL_INCOMING_RTL.
7923 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
7926 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
7927 trunc_int_for_mode for constants used in shortened mode.
7929 2004-10-13 Richard Henderson <rth@redhat.com>
7932 * c-common.c (handle_mode_attribute): Disallow mode changes that
7933 alter the CODE of the top-level type.
7935 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
7936 integer from internal limits macros.
7937 * config/i386/mm3dnow.h (__v2sf): Fix base type.
7939 2004-10-13 Richard Henderson <rth@redhat.com>
7942 * function.c (instantiate_decl): Recurse for CONCAT.
7944 2004-10-13 David Edelsohn <edelsohn@gnu.org>
7946 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
7949 (extzvdi_internal1): Add attribute "compare".
7950 (extzvdi_internal2): Same.
7952 2004-10-12 Tom Tromey <tromey@redhat.com>
7954 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
7956 2004-10-13 Dale Johannesen <dalej@apple.com>
7958 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
7960 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
7962 * toplev.c (compile_file): Call mudflap_finish_file from here ...
7963 * c-decl.c (c_write_global_declarations): ... instead of here ...
7964 * cp/decl.c (cp_finish_file): ... and here.
7965 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
7967 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
7969 * tree-ssa-dom.c (record_range): Free the element if we are not
7972 2004-10-13 Tom Tromey <tromey@redhat.com>
7975 * gcc.c (option_map): Added --extdirs and --encoding.
7977 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
7980 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
7981 sparc_can_output_mi_thunk.
7982 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
7983 handling of vcall offset.
7984 (sparc_can_output_mi_thunk): New predicate.
7985 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
7986 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
7987 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
7989 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
7991 * config/sparc/sparc.md (movdi): Remove redundant test.
7993 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
7995 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
7996 TDF_IPA from -fdump-tree-*-all.
7998 2004-10-13 Paul Brook <paul@codesourcery.com>
8000 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
8001 * config/arm/arm.c (thumb_find_work_register): Update comments.
8002 (arm_load_pic_register): Add argument for scratch register.
8003 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
8004 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
8006 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
8008 * tree-data-ref.c: Fix comment typos.
8010 2004-10-13 Jakub Jelinek <jakub@redhat.com>
8011 Zdenek Dvorak <dvorakz@suse.cz>
8013 PR tree-optimization/17724
8014 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
8016 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
8018 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
8019 (altivec_builtin_mask_for_store): Likewise.
8020 (altivec_init_builtins): Use lang_hooks.builtin_function to
8021 create the decls for builtin_altivec_mask_for_load/store.
8023 2004-10-13 Nick Clifton <nickc@redhat.com>
8025 * config/c4x/c4x.c: Remove inclusion of loop.h.
8027 2004-10-12 Ben Elliston <bje@au.ibm.com>
8029 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
8030 (ei_container): New; renamed.
8031 (ei_start, ei_last): New macros.
8032 (ei_start_1, ei_last_1): Renamed from ei_start.
8033 (ei_last_1, ei_end_p): Use ei_container() where applicable.
8034 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
8035 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
8037 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8039 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
8040 * cfgloop.c (initialize_loops_parallel_p): New.
8041 (flow_loops_find): Initialize the parallel_p field to true for all
8043 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
8044 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
8045 the size of the data accessed in the loop.
8046 (struct nb_iter_bound): Moved...
8047 * cfgloop.h (struct nb_iter_bound): ... here.
8048 (estimated_nb_iterations, parallel_p): New fields in struct loop.
8049 (record_estimate): Declare extern here.
8050 * tree-chrec.c: Fix comments.
8051 (nb_vars_in_chrec): New function.
8052 * tree-chrec.h (nb_vars_in_chrec): Declared here.
8053 * tree-data-ref.c: Don't include lambda.h, that is already included
8055 (tree_fold_divides_p): Don't check for integer_onep.
8056 (tree_fold_bezout): Removed.
8057 (gcd): New static duplicated function.
8058 (int_divides_p, dump_subscript): New.
8059 (dump_data_dependence_relation): Use dump_subscript.
8060 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
8061 estimate_niter_from_size_of_data): New.
8062 (analyze_array_indexes, analyze_array): Call
8063 estimate_niter_from_size_of_data during the detection of array
8064 references. Pass in a pointer to the statement that contains the
8066 (all_chrecs_equal_p): New.
8067 (compute_distance_vector): Renamed compute_subscript_distance.
8068 Deal with multivariate conflict functions.
8069 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
8070 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
8071 (non_affine_dependence_relation): New.
8072 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
8073 analyze_siv_subscript, analyze_miv_subscript,
8074 analyze_overlapping_iterations, subscript_dependence_tester):
8075 Initialize and return last_conflicts function.
8076 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
8077 compute_overlap_steps_for_affine_1_2): New.
8078 (analyze_siv_subscript_affine_cst): Removed.
8079 (analyze_subscript_affine_affine): Disprove dependences based on the
8080 iteration domains. Solve the univariate dependence case as before,
8081 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
8082 Implement the multivariate case of 2 versus 1 variables.
8083 (build_classic_dist_vector, build_classic_dir_vector): Implement some
8085 (find_data_references_in_loop): Compute and initialize
8086 loop->estimated_nb_iterations and loop->parallel_p.
8087 (analyze_all_data_dependences): Modify the debug dump order.
8088 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
8089 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
8090 (SUB_LAST_CONFLICT, subscript->last_conflict,
8091 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
8092 DDR_AFFINE_P, DDR_SIZE_VECT): New.
8093 (find_data_references_in_loop, initialize_data_dependence_relation,
8094 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
8096 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
8098 * configure: Regenerate.
8100 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
8103 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
8104 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
8105 and constant folding of floating point MULT_EXPR/PLUS_EXPR
8108 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
8110 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
8111 (s390_gimplify_va_arg): Likewise.
8113 2004-10-12 Daniel Jacobowitz <dan@debian.org>
8115 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
8116 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
8117 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
8118 * regclass.c (record_address_regs): Remove ifdef. Use
8119 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
8120 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
8122 (scan_rtx_address, replace_oldest_value_addr): Use
8123 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
8124 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
8125 unnecessary definitions.
8126 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
8127 and MODE_BASE_REG_REG_CLASS.
8128 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
8129 (MODE_BASE_REG_REG_CLASS): Define.
8130 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
8131 (REG_MODE_OK_FOR_REG_BASE_P): Define.
8132 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
8133 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
8135 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
8137 * tree-ssa-alias.c (verify_name_tags): New function.
8138 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
8139 (verify_alias_info): Call verify_name_tags.
8141 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
8143 PR rtl-optimization/17931
8144 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
8147 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
8149 * arm.c (arm_print_operand): Use output_operand_lossage where possible
8150 rather than aborting.
8152 2004-10-12 Paul Brook <paul@coudesourcery.com>
8154 * config.gcc: Add armv6{k,z,zk}
8155 * config/arm/arm-cores.def: Add arm1176 and mpcore.
8156 * config/arm/tune.md: Regenerate.
8157 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
8159 (all_architectures): Add armv6k, armv6z, armv6zk.
8160 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
8161 * doc/invoke.texi: Document new arch and cpu values.
8163 2004-10-12 Paul Brook <paul@coodesourcery.com>
8165 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
8168 2004-10-12 Paul Brook <paul@codesourcery.com>
8170 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
8171 Handle negative constants.
8173 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
8176 * c-typeck.c (convert_arguments): Return error_mark_node if there
8177 are too few arguments.
8178 (build_function_call): Handle error_mark_node return from
8181 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
8183 * configure.ac (symbolic_link): Replace with $LN_S.
8184 (Assembler/Linker): Hard link from gas and binutils trees.
8185 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
8186 * configure: Regenerate.
8188 2004-10-12 Paul Brook <paul@codesourcery.com>
8190 * configure.ac: Don't look for host assembler when building a canadian
8192 * configure: Regenerate.
8194 2004-10-11 Roger Sayle <roger@eyesopen.com>
8197 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
8198 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
8199 line options for "-lang-asm" and if found allow any of the C-family
8201 (c_common_handle_option): Remove last use of permit_fortran_options.
8203 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8205 * config/s390/s390.c (print_operand): Support 'S' format flag.
8206 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
8207 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
8208 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
8209 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
8210 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
8211 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
8212 ("*movstricthi"): Likewise.
8213 ("*load_multiple_di", "*load_multiple_si"): Likewise.
8214 ("*store_multiple_di", "*store_multiple_si"): Likewise.
8215 ("*sethiqisi", "*sethihisi"): Likewise.
8216 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
8217 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
8218 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
8219 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
8220 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
8222 ("*tmhi_full"): Fix incorrect op_type attribute.
8224 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
8225 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
8226 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
8227 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
8229 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
8232 * function.c (temp_slots_at_level): Fix typo which creates too
8233 many temp stack slots levels.
8235 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8237 * config/s390/s390.c (s390_trampoline_template): Generate shorter
8239 (s390_trampoline_instantiate): Adapt.
8240 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
8242 2004-10-11 Roger Sayle <roger@eyesopen.com>
8245 * stmt.c (add_case_node): Add additional type argument. Declare
8246 as static to match prototype. Convert the upper and lower bounds
8247 to the specified index type. Optimize away case ranges/values
8248 that are outside the index type's bounds. Truncate case ranges
8249 that span the index type's bounds.
8250 (expand_case): Avoid unnessary computation and memory allocation
8251 when index type is error_mark_node. Pass index_type as required
8252 by change to add_case_node API. No need to convert case range
8253 bounds to index_type, this is now done by add_case_node.
8255 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8257 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
8258 * config/s390/s390.c (s390_offset_p): New function.
8259 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
8260 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
8261 transform Q->Q alternatives to *clc pattern.
8263 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
8264 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
8265 to transform Q->Q alternatives to *mvc pattern.
8266 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
8267 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
8268 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
8269 transform Q->Q alternatives to *nc pattern.
8270 ("*nc"): New insn. New peephole to merge adjacent NCs.
8271 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
8272 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
8273 transform Q->Q alternatives to *oc pattern.
8274 ("*oc"): New insn. New peephole to merge adjacent OCs.
8275 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
8276 transform Q->Q alternatives to *xc pattern.
8277 ("*xc"): New insn. New peephole to merge adjacent XCs.
8278 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
8280 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
8282 * gimplify.c (gimple_push_condition): Make sure that we don't
8283 have any saved condition cleanup if we were at the top level.
8285 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
8287 * config/frv/frv.md (*adddi3_internal): Change name to...
8288 (adddi3): ...replacing the exisiting define_expand. Combine
8289 alternatives. Fix the range of the constant constraints ('J' instead
8290 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
8291 to extract the lower and upper halves of the DImode operands.
8292 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
8293 (adddi3_lower): Fix the range of the constant constraints and
8294 remove the bogus operands[2] check.
8295 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
8296 operand 2. Use addxi to handle constant operands.
8297 (subdi3_lower, subdi3_upper): Don't handle constant operands.
8299 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
8301 * gengtype-lex.l: Add commented } & ) characters to unconfuse
8302 editor's paren matching. Allow #define inside a struct.
8304 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
8307 part of PR c++/17657
8308 * fold-const.c (fold_build_cleanup_point_expr): New function.
8309 * tree.h (fold_build_cleanup_point_expr): Prototype.
8311 2004-10-10 Eric Christopher <echristo@redhat.com>
8313 * dwarf2out.c: Move attribute to subprogram declaration
8314 instead of subroutine type.
8316 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8318 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
8319 hoist_insn_after, and hoist_insn_to_edge.
8320 * rtl.h: Remove the prototypes for reg_referenced_between_p,
8321 no_jumps_between_p, and insn_dependent_p.
8322 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
8323 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
8324 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
8325 hoist_insn_to_edge): Remove.
8327 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8330 * c-decl.c (grokparms): Don't warn for parameters of incomplete
8331 type in declarations that are not definitions except for the case
8332 of parameters of void type.
8334 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8336 * tree-cfg.c: Fix comment typos.
8338 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8341 * builtins.c (expand_builtin_va_start): Check for too few
8342 arguments to va_start.
8344 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8347 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
8348 fields a pedwarn. Pedwarn here for unnamed structs/unions if
8350 * c-parse.in (component_decl): Don't pedwarn here for unnamed
8353 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
8355 PR tree-optimization/17906
8356 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
8357 copy non-gimple reg arguments.
8359 2004-10-09 Roger Sayle <roger@eyesopen.com>
8361 PR rtl-optimization/17853
8362 * simplify-rtx.c (simplify_relational_operation): Correct comment.
8363 Reorganize handling of comparison operations with floating point
8364 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
8365 Likewise, introduce support for comparison operations with vector
8366 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
8368 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
8369 * doc/tm.texi: Likewise.
8371 2004-10-09 Steven Bosscher <stevenb@suse.de>
8373 * regs.h (struct reg_info_def): Remove the last_node_uid and
8374 changes_mode fields.
8375 (REGNO_LAST_NOTE_UID): Don't define.
8376 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
8377 * regmove.c (copy_src_to_dest): Likewise.
8379 2004-10-09 Roger Sayle <roger@eyesopen.com>
8382 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
8383 relational comparison operator op needs to be swapped/reversed when
8384 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
8386 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8389 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
8390 instead of bsi_start.
8391 (value_replacement): Likewise.
8392 (abs_replacement): Likewise
8394 2004-10-09 Steven Bosscher <stevenb@suse.de>
8396 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
8397 (expand_gimple_cond_expr, expand_gimple_tailcall,
8398 expand_gimple_basic_block): Use it to dump RTL for each stmt.
8399 (tree_expand_cfg): Announce full RTL function dump.
8400 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
8401 not the graph version.
8402 * tree-pretty-print.c (dump_generic_node): Allow empty statements
8403 in the arms of a COND_EXPR for lowered nodes.
8405 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
8407 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
8408 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
8409 strtoufix16, strtoufix32, strtoufix64): Declare.
8411 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8413 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
8414 for an out-of-range floating point constant.
8415 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
8416 warning if the target format does not support infinities.
8418 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8420 * emit-rtl.c (last_label_num, base_label_num): Remove.
8421 (max_label_num): Always return label_num.
8422 (set_new_last_label_num, restore_emit_status): Remove.
8423 (init_emit): Don't initialize last_label_num.
8424 * function.c (pop_function_context_from): Don't call
8425 restore_emit_status.
8426 * function.h: Remove the prototype for restore_emit_status.
8427 * rtl.h: Remove the prototype for set_new_last_label_num.
8429 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8431 * stmt.c (expand_decl_init): Remove.
8432 * tree.h: Remove the corresponding prototype.
8434 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8436 * integrate.c (try_constants, subst_constants, mark_stores):
8438 * integrate.h: Remove the prototype for try_constants.
8440 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8442 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
8443 (convert_for_assignment): Handle ic_argpass_nonproto. Add
8444 comments about its relevance to errors.
8445 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
8447 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8450 * c-ppoutput.c (cb_ident): Don't quote string as it is already
8453 2004-10-08 Diego Novillo <dnovillo@redhat.com>
8455 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
8456 reference_node_pool.
8458 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8460 * tree-cfg.c: Fix a comment typo.
8462 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
8464 * config/s390/s390.c (s390_register_info): Don't save fprs for
8466 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
8468 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
8470 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
8471 (TARGET_DEFAULT): Use symbolic values.
8472 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
8473 (TARGET_DEFAULT): Use symbolic values.
8474 * config/s390/s390.c (s390_backchain_string): Initialize to
8475 TARGET_DEFAULT_BACKCHAIN.
8477 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8479 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
8480 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
8482 (expand_builtin_strcat): Accept a type parameter.
8483 (fold_builtin_mempcpy): Accept a type and endp parameter.
8485 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
8486 Accept an `exp' instead of an `arglist'.
8488 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
8490 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
8491 reverting my 2004-09-07 patch to use build_int_cst.
8493 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
8496 * config/sparc/sparc.c (input_operand): Remove redundant code
8497 for handling LO_SUM.
8498 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
8499 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
8500 Otherwise only accept it for TFmode if quad move insns are available.
8502 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8504 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
8505 common cases will be caught earlier than others.
8507 2004-10-08 Michael Matz <matz@suse.de>
8509 * loop-doloop.c (doloop_optimize): Extend count.
8511 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8513 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
8514 (prefetch): Convert to expander.
8516 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8518 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
8519 first argument of CALL.
8520 (tls_local_dynamic): Likewise.
8522 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8524 * c-typeck.c (enum impl_conv): New.
8525 (convert_for_assignment): Use it. Take tree for function called
8526 instead of its name. Handle ObjC selectors for diagnostics at
8527 start of function. Select diagnostic text within the function
8528 using full sentences for diagnsotics. Use %qE to name functions
8530 (convert_arguments, build_modify_expr,
8531 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
8532 callers to convert_for_assignment.
8533 (warn_for_assignment): Remove.
8535 2004-10-08 Nick Clifton <nickc@redhat.com>
8537 * config/sh/symbian.c (symbian_possibly_export_base_class):
8538 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
8539 TYPE_CONTAINS_VPTR_P.
8541 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8543 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
8544 fixed registers form all_used_regs. Update call_really_used_regs.
8545 (CALL_REALLY_USED_REGISTERS): Define.
8546 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
8547 with call_really_used_regs.
8549 2004-10-08 Alan Modra <amodra@bigpond.net.au>
8551 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
8552 for -profile as well as -p and -pg.
8554 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
8556 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
8558 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8560 * tree-cfg.c (tree_block_forwards_to): Remove.
8561 * tree-flow.h: Remove the corresponding prototype.
8563 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8565 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
8566 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
8568 2004-10-07 Geoffrey Keating <geoffk@apple.com>
8571 * config/rs6000/rs6000.c (rs6000_generate_compare): When
8572 flag_trapping_math is in effect, don't generate subtract
8575 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
8577 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
8578 * config/s390/s390.c (s390_narrow_logical_operator): New function.
8579 (s390_extra_constraint_str): Add 'A' constraints.
8580 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
8581 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
8582 (CONSTRAINT_LEN): Likewise.
8583 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
8584 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
8585 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
8586 ("*iordi3"): Add OI alternative and splitter.
8587 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
8588 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
8589 ("*xordi3"): Add XI alternative and splitter.
8590 ("*xorsi3", "*xorhi3"): Likewise.
8592 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8594 * config/mips/mips.c (mips_function_rodata_section): New function.
8595 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
8597 2004-10-07 Devang Patel <dpatel@apple.com>
8599 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
8600 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
8601 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
8602 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
8603 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
8604 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
8605 UNSPEC_VCONDU_V16QI): New constant defines.
8606 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
8607 vconduv16qi): New patterns.
8608 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
8609 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
8610 (get_vec_cmp_insn): Same.
8611 (get_vsel_insn): Same.
8612 (rs6000_emit_vector_compare): Same.
8613 (rs6000_emit_vector_select): Same.
8614 (INSN_NOT_AVAILABLE): New.
8616 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8618 PR tree-optimization/17749
8619 * tree-tailcall.c (find_tail_calls): Check that parameter is
8622 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8624 * config/ia64/ia64.c: Fix a comment typo.
8626 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8628 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
8630 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8633 * tree-inline.c (expand_call_inline): Do not warn for functions
8634 marked with attribute noinline.
8636 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8639 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
8640 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
8642 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
8643 of 0 as 4th argument to pass_by_reference.
8644 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
8646 2004-10-06 Eric Christopher <echristo@redhat.com>
8648 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
8651 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8654 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
8656 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8658 PR rtl-optimization/17791
8659 * loop-doloop.c (doloop_modify): Take number of iterations as
8661 (doloop_optimize): Extend or shorten the number of iterations
8662 when changing mode of counter register.
8663 * loop-iv.c (lowpart_subreg): Export.
8664 * rtl.h (lowpart_subreg): Declare.
8666 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8668 PR tree-optimization/17806
8669 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
8670 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
8671 flags moved to split_edge.
8673 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8676 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
8677 before tentatively building the conditional move sequence.
8679 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8682 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
8684 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
8685 function_arg_padding.
8687 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8690 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
8692 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8694 * hooks.c (hook_int_void_1, hook_void_int): Remove.
8695 * hooks.h: Remove the corresponding prototypes.
8697 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8700 * tree-nested.c (walk_stmt_info): Add changed field.
8701 (convert_nonlocal_reference): Set changed to when we
8702 change a decl to unnested decl.
8703 <case ADDR_EXPR>: Instead of checking if the immediate part
8704 of the ADDR_EXPR changed, check the field changed.
8705 Use recompute_tree_invarant_for_addr_expr instead of unsetting
8707 (convert_local_reference): Set changed to when we
8708 change a decl to unnested decl.
8709 <case ADDR_EXPR>: Instead of checking if the immediate part
8710 of the ADDR_EXPR changed, check the field changed.
8711 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
8713 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8715 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8716 * dwarf2out.c (dwarf2out_init): Remove references to
8717 DWARF2_GENERATE_TEXT_SECTION_LABEL.
8718 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
8719 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8721 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
8723 * c-typeck.c (convert_arguments): Take expression for called
8724 function rather than its name. Handle ObjC selectors directly
8725 rather than relying on warn_for_assignment to do so. Call warning
8726 directly rather than warn_for_assignment. Use %qE in diagnostics.
8727 Say "argument" rather than "arg" in diagnostics.
8728 (build_function_call): Update call to convert_arguments.
8730 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8733 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
8734 ENUMs specially instead of just saying we do.
8736 2004-10-06 Eric Christopher <echristo@redhat.com>
8738 * dwarf2.h: Sync with include/elf/dwarf2.h
8740 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8742 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
8745 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8747 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
8748 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
8750 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8752 * lambda-code.c (compute_nest_using_fourier_motzkin): New
8754 (lambda_compute_auxillary_space): Split from here.
8756 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8758 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
8759 * tree-flow.h: Add prototype.
8760 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
8761 expr_invariant_in_loop.
8763 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8765 * tree-cfg.c (thread_jumps): Remove a duplicate check for
8768 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
8770 * config/s390/s390-protos.h (s_imm_operand): Remove.
8771 (s390_pool_operand): Add prototype.
8772 * config/s390/s390.c (general_s_operand): Remove.
8773 (s_imm_operand): Remove.
8774 (s_operand): Merge contents of general_s_operand.
8775 (s390_pool_operand): New function.
8776 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
8777 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
8778 ("*cmpdi_ccu"): Merge Q->Q alternative.
8779 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
8780 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
8782 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
8783 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
8784 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
8786 2004-10-06 Steve Ellcey <sje@cup.hp.com>
8788 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
8789 call ia64_function_arg_boundary.
8790 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
8791 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
8792 (ia64_function_arg_advance): Do not put 128 bit floats into
8795 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8797 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
8798 Accept an expression instead of an arglist.
8799 (expand_builtin_stpcpy): Accept an expression instead of an
8802 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
8805 * doc/install.texi (*-*-solaris2*): Mention potential problem
8806 with Sun assembler + GNU linker and C++ programs.
8807 Document status of binutils 2.15 release.
8809 2004-10-06 Jan Hubicka <jh@suse.cz>
8811 * cse.c (cse_main): Kill push/pop context.
8813 2004-10-05 Zack Weinberg <zack@codesourcery.com>
8815 * pretty-print.c: Include tree.h.
8816 (pp_base_prepare_to_format): New function, logic from
8817 text_specifies_location.
8818 (pp_base_format_text): Use gcc_assert.
8819 * pretty-print.h (pp_prepare_to_format): New macro.
8820 (pp_base_prepare_to_format): Prototype.
8821 * diagnostic.c (text_specifies_location): Delete.
8822 (bug_report_request): Delete.
8823 (diagnostic_set_info): Don't call text_specifies_location.
8824 (diagnostic_action_after_output): Put text from
8825 bug_report_request inline here. Use gcc_unreachable.
8826 (diagnostic_report_current_function): Fix comment.
8827 (diagnostic_report_diagnostic): Clarify logic for error recursion.
8828 Call pp_prepare_to_format before diagnostic_starter.
8829 (trim_filename): Use IS_DIR_SEPARATOR.
8830 (fatal_error, internal_error): Use gcc_unreachable.
8831 (error_recursion): Call diagnostic_action_after_output to
8832 issue the bug_report_request message and exit.
8833 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
8835 * c-parse.in: Add list of diagnostic messages to insulate
8836 translation template from version of yacc/bison used to
8837 compile the grammar.
8839 2004-10-06 Alan Modra <amodra@bigpond.net.au>
8842 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
8844 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8846 * basic-block.h: Remove the prototype for
8847 flow_preorder_transversal_compute.
8848 * cfganal.c (dfst_node): Remove.
8849 (flow_preorder_transversal_compute): Likewise.
8850 * rtl.h: Remove the prototype for get_jump_table_offset.
8851 * rtlanal.c (get_jump_table_offset): Remove.
8853 2004-10-05 Richard Henderson <rth@redhat.com>
8856 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
8858 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
8861 * Makefile.in: Stage the build directory too.
8863 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
8865 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
8867 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
8868 (frv_emit_move): Same.
8870 * config/frv/frv.c (frv_emit_move): New.
8871 (frv_legitimize_address): New.
8873 * config/frv/frv.md ("movsi"): Call frv_emit_move.
8880 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
8882 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
8885 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
8887 * c-decl.c (pushdecl): When an extern declaration at block scope
8888 refers to a visible entity with internal linkage, use the old DECL
8889 rather than the new one.
8891 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8893 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
8896 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8898 * tree-cfg.c (thread_jumps): Remove a duplicate check for
8901 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8903 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
8904 of FOR_BB_BETWEEN. Remove a useless check for unreachable
8907 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8909 * tree-cfg.c (cleanup_tree_cfg): Don't call
8910 delete_unreachable_blosk() after thread_jumps().
8911 (thread_jumps): Always remove basic blocks as they become
8914 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8916 * tree-cfg.c (cleanup_tree_cfg): Remove variable
8917 something_changed. Simplify the while loop.
8919 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8921 * builtins.c (expand_builtin_memmove): Delete duplicate code
8922 and accept a tree type for the result.
8923 (expand_builtin_bcopy): Accept a tree type for the result.
8924 (fold_builtin_memmove): Accept an arglist and tree type for
8927 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
8929 * config/s390/s390.c (s390_dump_pool): Remove return value.
8930 Use gen_pool_align, gen_pool_section_start/end instead of
8931 gen_pool_start/end_31/64.
8932 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
8933 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
8934 ("pool_start_31", "pool_end_31"): Remove.
8935 ("pool_start_64", "pool_end_64"): Likewise.
8936 ("pool_align", "pool_section_start", "pool_section_end": New insns.
8938 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
8939 (TARGET_CANNOT_COPY_INSN_P): Define.
8940 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
8941 (struct constant_pool): New member 'execute'.
8942 (s390_add_execute, s390_find_execute): New functions.
8943 (s390_execute_label, s390_execute_target): Likewise.
8944 (s390_dump_pool): Output in-pool execute target templates.
8945 (s390_dump_execute): New function.
8946 (s390_alloc_pool, s390_free_pool): Handle execute templates.
8947 (s390_mainpool_start, s390_mainpool_finish): Likewise.
8948 (s390_chunkify_start, s390_chunkify_finish): Likewise.
8949 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
8950 ("*execute"): New insn pattern.
8951 ("movmem_short", "*movmem_short"): Use splitters to generate
8952 explicit execute pattern, remove embedded execute.
8953 ("clrmem_short", "*clrmem_short"): Likewise.
8954 ("cmpmem_short", "*cmpmem_short"): Likewise.
8956 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
8958 * tree-ssa.c (verify_ssa): Verify phi arguments only
8959 contain renamed names.
8961 2004-10-05 Alan Modra <amodra@bigpond.net.au>
8963 * config/rs6000/linux.h: Formatting, whitespace.
8964 * config/rs6000/linux64.h: Likewise.
8965 * config/rs6000/rs6000-protos.h: Likewise.
8966 * config/rs6000/rs6000.c: Likewise.
8967 (easy_vector_splat_const): Add fall thru comments.
8968 (output_vec_const_move): Likewise.
8970 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
8972 * Makefile.in: Update -Wno-error exceptions for move to build dir.
8974 2004-10-05 Chao-Ying Fu <fu@mips.com>
8975 Richard Sandiford <rsandifo@redhat.com>
8977 * doc/invoke.texi (-mpaired-single): Link to the new description of the
8978 built-in functions. Document dependencies.
8979 (-mips3d): Add link here too.
8980 * doc/extend.texi (MIPS Paired-Single Support): New section.
8982 2004-10-04 Chao-ying Fu <fu@mips.com>
8984 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
8986 2004-10-04 Diego Novillo <dnovillo@redhat.com>
8988 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
8989 Initialize OPT_STATS to 0.
8991 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
8993 * tree-data-ref.c: Fix comment typos.
8995 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
8997 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
8998 the predicate cannot be computed, don't initialize the result to
9001 2004-10-01 Eric Christopher <echristo@redhat.com>
9003 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
9004 locally defined enum.
9005 * dwarf2out.c (add_calling_convention_attribute): Don't
9008 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
9010 PR c/17178, PR c/17820
9011 * c-decl.c (pop_scope): Do not warn about unused static
9012 variables as they warned in the middle-end.
9014 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9016 * builtins.c (expand_builtin_memcpy): Delete duplicate code
9017 and make the first parameter the expression not the arglist.
9019 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
9021 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
9022 as valid modes to expand address expressions.
9024 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
9026 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
9027 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
9028 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
9029 code formatting conventions.
9031 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
9033 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
9035 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
9037 PR tree-optimization/16632
9038 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
9039 fold (A & C) == D into 0, fold ~C. Similarly, for the case
9040 where | is used instead of &.
9042 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
9044 * ginclude/stddef.h: Fix a comment typo.
9046 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
9049 * config.gcc (i?86-*-solaris2*): Restore correct logic
9050 for --enable-threads option.
9051 (sparc64-*-solaris2*): Likewise.
9052 (sparc-*-solaris2*): Likewise.
9054 2004-10-03 Alan Modra <amodra@bigpond.net.au>
9056 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
9057 (OS_MISSING_POWERPC64): Move, and comment.
9058 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
9059 (OS_MISSING_POWERPC64): Move, and comment.
9061 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
9063 * arm.c (output_call_mem): Add missing \t.
9065 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9067 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
9068 expand_builtin_strncmp): Delete duplicate code.
9070 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
9072 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
9073 take check-base and -limit arguments.
9074 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
9075 check ranges for ARRAY_REF and COMPONENT_REF.
9076 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
9079 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
9081 * c-objc-common.c (c_tree_printer): Correct description of %E.
9082 Don't fall through after printing an expression.
9084 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
9086 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
9088 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
9090 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
9091 delete_unrechable_blocks() only when necessary.
9093 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
9095 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
9096 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
9097 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
9098 __gthread_recursive_mutex_unlock): New functions.
9100 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
9102 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
9103 * config/s390/tpf-eh.c: Remove file.
9104 * config/s390/tpf-unwind.h: New file.
9105 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
9106 (MD_UNWIND_SUPPORT): Define.
9108 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
9110 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
9112 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
9114 * config/s390/s390-protos.h (s390_comparison): Add prototype.
9115 * config/s390/s390.c (s390_comparison): New function.
9116 (s390_branch_condition_mask): Return -1 for invalid comparisons.
9117 (s390_branch_condition_mnemonic): Assert valid comparison.
9118 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
9119 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
9120 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
9121 s390_comparison instead of comparison_operator.
9123 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
9124 ("cmpmemdi"): Remove.
9125 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
9126 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
9127 ("cmpint_si"): Rename to ...
9128 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
9129 ("cmpint_di", "*cmpint_di"): Likewise.
9130 * config/s390/s390.c (s390_canonicalize_comparison): Remove
9131 redundant UNSPEC_CMPINT conversions.
9132 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
9134 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
9136 * collect2.c (COLLECT_PARSE_FLAG): Remove.
9137 (main): Remove a reference to COLLECT_PARSE_FLAG
9138 * system.h: Poison COLLECT_PARSE_FLAG.
9139 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
9141 2004-10-01 Paul Brook <paul@codesourcery.com>
9143 * config/arm/crti.asm: Give _init and _fini function type.
9145 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
9147 * common.opt (ftree-loop-ivcanon): Enable by default.
9148 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9149 Enable complete loop unrolling.
9150 (canonicalize_induction_variables, tree_unroll_loops_completely):
9153 2004-10-01 Paul Brook <paul@codesourcery.com>
9155 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
9156 not register number.
9157 (thumb_find_work_register): Search full register range.
9159 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
9162 * tree-cfg.c (group_case_labels): Get the label and not
9163 the case expr for the default case.
9164 When the label we looking at is the default, decrement the
9167 2004-10-01 Jan Hubicka <jh@suse.cz>
9169 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
9170 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9171 * toplev.h (tree_rest_of_compilation): Update prototype.
9172 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
9174 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
9176 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
9177 cleanup_control_flow() out of the while loop.
9179 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
9181 * tree-vectorizer.c (vectorizable_operation): Fail unless
9182 the mode for the vector type is indeed a vector mode.
9184 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
9186 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
9187 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
9189 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
9190 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
9191 follow_ssa_edge_in_rhs): Ditto.
9192 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
9193 (dump_iv): Dump base_object.
9194 (dump_use, dump_cand): Use dump_iv.
9195 (determine_base_object): New function.
9196 (alloc_iv): Initialize base_object field.
9197 (record_use): Clear the ssa_name field of iv.
9198 (get_computation_cost_at): Do not use difference of addresses of
9199 two different objects.
9200 (may_eliminate_iv): Do not require the loop to have just single exit.
9201 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
9202 (nonzero_p): New function.
9203 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
9204 tree_simplify_using_condition, simplify_using_initial_conditions,
9205 loop_niter_by_eval, find_loop_niter_by_eval,
9206 estimate_numbers_of_iterations_loop, compare_trees,
9207 upper_bound_in_type, lower_bound_in_type,
9208 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
9209 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
9210 instead of integer_(non)zerop.
9212 2004-10-01 Jakub Jelinek <jakub@redhat.com>
9215 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9217 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9218 and TI_VA_LIST_FPR_COUNTER_FIELD.
9219 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9220 * tree-pass.h (pass_stdarg): Add.
9221 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9222 * tree-stdarg.c: New file.
9223 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9224 (tree-stdarg.o): Add dependencies.
9225 * function.h (struct function): Add va_list_gpr_size and
9226 va_list_fpr_size fields.
9227 * function.c (allocate_struct_function): Initialize them.
9229 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9230 va_list_{g,f}pr_counter_field.
9231 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9232 area will not be used. Only save registers that tree-stdarg.c
9233 detected they need saving.
9234 (ix86_va_start): Don't set up fields that won't be used.
9236 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9237 va_list_{g,f}pr_counter_field.
9238 (setup_incoming_varargs): Don't do anything if reg_save
9239 area will not be used. Only save registers that tree-stdarg.c
9240 detected they need saving.
9241 (rs6000_va_start): Don't set up fields that won't be used.
9243 2004-09-30 Eric Christopher <echristo@redhat.com>
9245 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
9247 * dwarf2out.c (add_calling_convention_attribute): New function.
9248 (gen_subroutine_type_die): Use.
9249 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
9250 * target.h (gcc_target): Add dwarf_calling_convention.
9251 * hooks.c (hook_int_tree_0): New function.
9252 * hooks.h: Prototype.
9253 * config/sh/sh.c: Include dwarf2.h.
9254 (sh_dwarf_calling_convention): New function.
9255 (TARGET_DWARF_CALLING_CONVENTION): Use.
9256 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
9258 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9260 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
9261 expand_builtin_strrchr, expand_builtin_strpbrk,
9262 expand_builtin_strncat, expand_builtin_strspn,
9263 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
9266 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9268 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
9270 (s390_logical_operator_ok_p): Likewise.
9271 * config/s390/s390.c (s390_expand_logical_operator): New function.
9272 (s390_logical_operator_ok_p): Likewise.
9273 * config/s390/s390.md ("anddi3"): New expander.
9274 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
9275 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
9276 ("andsi3"): Use s390_expand_logical_operator.
9277 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
9278 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
9279 ("andhi3"): New expander.
9280 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
9281 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
9282 ("andqi3"): New expander.
9283 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
9284 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
9285 ("iordi3"): New expander.
9286 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
9287 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
9288 ("iorsi3"): Use s390_expand_logical_operator.
9289 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
9290 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
9291 ("iorhi3"): New expiorer.
9292 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
9293 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
9294 ("iorqi3"): New expiorer.
9295 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
9296 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
9297 ("xordi3"): New expander.
9298 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
9299 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
9300 ("xorsi3"): New expander.
9301 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
9302 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
9303 ("xorhi3"): New expander.
9304 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
9305 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
9306 ("xorqi3"): New expander.
9307 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
9308 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
9310 2004-09-30 Roger Sayle <roger@eyesopen.com>
9312 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
9313 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
9314 machine mode as the result.
9316 2004-09-30 Ben Elliston <bje@au.ibm.com>
9319 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
9320 FOR_EACH_EDGE macros.
9322 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9324 * c-tree.h (readonly_error): Remove.
9325 * c-typeck (enum lvalue_use): New.
9326 (lvalue_or_else, readonly_error): Use it. All callers changed.
9327 (readonly_error): Make static.
9329 2004-09-30 Jan Hubicka <jh@suse.cz>
9332 * cfgrtl.c (try_redirect_by_replacing_jump,
9333 force_nonfallthru_and_redirect, commit_one_edge_insertion,
9334 cfg_layout_merge_blocks): Do not attach any line number information
9335 to newly inserted instructions.
9336 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
9338 (emit_*insn_before, emit_insn*_after): New.
9339 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
9341 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
9342 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
9344 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9346 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
9347 (s390_return_address_offset): Remove.
9348 (s390_can_eliminate): Add prototype.
9349 (s390_initial_elimination_offset): Add prototype.
9350 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
9351 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
9352 * config/s390/s390.c (s390_arg_frame_offset): Remove.
9353 (s390_return_address_offset): Remove.
9354 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
9355 (struct machine_function): New member split_branches_pending_p.
9356 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
9357 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
9358 (s390_optimize_prologue): Remove base_used argument. Call
9359 s390_update_frame_layout instead of s390_register_info. Handle
9360 prologue/epilogue insns that touch only RETURN_REGNUM.
9361 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
9362 (s390_register_info): Remove base_used and return_addr_used
9363 arguments, compute special register usage inline. Return live
9364 register data to caller.
9365 (s390_frame_info): Remove arguments, do not call s390_register_info.
9366 (s390_init_frame_layout): New function.
9367 (s390_update_frame_layout): Likewise.
9368 (s390_emit_prologue): Call s390_update_frame_layout; some code
9369 move to there. Do not emit pool placeholder insn if unnecessary.
9371 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9373 * config/s390/s390.c (legitimate_reload_constant_p): Remove
9374 floating point constant workaround.
9375 (s390_secondary_input_reload_class): Handle PLUS reloads
9376 with too-large constant.
9377 (s390_expand_plus_operand): Likewise.
9378 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
9379 ("movsi"): Likewise. Also, remove workaround for non-general
9381 ("movdf"): Do not call force_const_mem.
9382 ("movsf"): Likewise. Merge expander with *movsf insn.
9383 ("*movsf"): Remove, merge with movsf expander.
9385 2004-09-30 Paul Brook <paul@codesourcery.com>
9387 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
9388 (ENDFILE_SPEC): Define.
9389 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
9391 2004-09-30 Richard Henderson <rth@redhat.com>
9393 * config/alpha/qrnnd.asm: Mark for noexecstack.
9395 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9397 * protoize.c, tree-cfg.c: Fix comment typos.
9399 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9402 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
9404 2004-09-30 Diego Novillo <dnovillo@redhat.com>
9406 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
9408 (add_pointed_to_expr): ... here.
9409 Call add_pointed_to_expr for variables with DECL_INITIAL set.
9410 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
9411 pointer variable, if set.
9413 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9415 * config/sh/sh.c: Follow spelling conventions.
9417 2004-09-29 Richard Henderson <rth@redhat.com>
9419 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
9420 * doc/tm.texi (DWARF_ZERO_REG): New.
9422 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
9423 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
9424 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
9426 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
9428 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
9429 with a PLUS as source operand.
9430 (expand_movstr): Likewise.
9431 (expand_builtin_stpcpy): Likewise.
9433 2004-09-29 Richard Henderson <rth@redhat.com>
9436 * tree-gimple.c (is_gimple_reg): Reject hard registers.
9437 (is_gimple_asm_val): New.
9438 * tree-gimple.h (is_gimple_asm_val): Declare.
9439 * gimplify.c (gimplify_asm_expr): Use it.
9440 * tree-pretty-print.c (print_declaration): Dump hard regs.
9441 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
9442 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9443 * tree-ssa-pre.c (is_undefined_value): Likewise.
9444 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9445 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
9446 * tree-ssa.c (warn_uninit): Likewise.
9447 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
9449 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
9451 * c-decl.c (merge_decls): Use comptype when comparing
9452 types to decide on DECL_SIZE save of olddecl.
9454 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
9456 * tree.h (INDIRECT_REF_P): New macro.
9457 * alias.c (get_alias_set): Use it
9458 (nonoverlapping_memrefs_p): Ditto.
9459 * emit-rtl.c (mem_expr_equal_p): Ditto.
9460 (set_mem_attributes_minus_bitpos): Ditto.
9461 (is_gimple_addressable): Ditto.
9462 (get_base_address): Ditto.
9463 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
9464 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
9465 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
9466 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
9467 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
9468 (add_address_candidates): Ditto.
9469 (rewrite_address_base): Ditto.
9471 2004-09-30 Ben Elliston <bje@au.ibm.com>
9473 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
9474 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
9475 (rewrite_ssa_into_ssa): Likewise.
9476 * tree-phinodes.c (create_phi_node): Access the number of
9477 predecessor edges using EDGE_COUNT() and not num_preds.
9479 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
9482 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
9484 2004-09-29 Eric Christopher <echristo@redhat.com>
9486 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
9488 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
9490 * config/cris/cris.md (moverside, movemside): With MEM, make sure
9491 the address is (plus reg mem).
9493 2004-09-29 David Edelsohn <edelsohn@gnu.org>
9495 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9497 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
9499 * tree.c (make_node_stat): Fix uninitialized warning. Replace
9500 cascaded if ... else if with a switch.
9502 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9504 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
9506 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9508 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9509 and TI_VA_LIST_FPR_COUNTER_FIELD.
9510 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9511 * tree-pass.h (pass_stdarg): Add.
9512 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9513 * tree-stdarg.c: New file.
9514 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9515 (tree-stdarg.o): Add dependencies.
9516 * function.h (struct function): Add va_list_gpr_size and
9517 va_list_fpr_size fields.
9518 * function.c (allocate_struct_function): Initialize them.
9520 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9521 va_list_{g,f}pr_counter_field.
9522 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9523 area will not be used. Only save registers that tree-stdarg.c
9524 detected they need saving.
9525 (ix86_va_start): Don't set up fields that won't be used.
9527 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9528 va_list_{g,f}pr_counter_field.
9529 (setup_incoming_varargs): Don't do anything if reg_save
9530 area will not be used. Only save registers that tree-stdarg.c
9531 detected they need saving.
9532 (rs6000_va_start): Don't set up fields that won't be used.
9534 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9536 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
9537 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
9538 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
9539 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
9540 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
9541 ATTR_NONNULL_1_4): New.
9543 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9545 PR tree-optimization/17697
9546 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
9549 2004-09-28 Per Bothner <per@bothner.com>
9551 * profile.c (branch_prob): Pass correct value to output_location,
9552 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
9554 2004-09-28 Richard Henderson <rth@redhat.com>
9557 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
9558 * tree-flow.h (may_propagate_copy_into_asm): Declare.
9559 * tree-ssa-ccp.c (replace_uses_in): Use it.
9560 * tree-ssa-dom.c (cprop_operand): Likewise.
9562 2004-09-28 Jeff Law <law@redhat.com>
9564 * tree-ssa-threadupdate.c (create_block_for_threading): Request
9565 that no outgoing edges be left in the duplicate block. Do no
9566 update information on outgoing edges or PHI nodes in target
9568 (remove_ctrl_stmt_and_useless_edges): Renamed from
9569 remove_last_stmt_and_useless_edges. Handle case where the
9570 block is empty or has no control statements. Do not update edge
9572 (thread_block): Create a template block rather than copying the
9573 original block every time. Create outgoing edges from the
9574 duplicate blocks and update PHIs at the target of the outgoing
9575 edges here. Fix edge flags for the original block if necessary.
9576 * cfghooks (duplicate_block): No longer assert that the original
9577 block has incoming edges.
9579 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
9581 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
9582 Reg Vars to enforce register allocation with general constraints.
9583 (Explicit Reg Vars): Clarify relation to asm statements.
9584 (Local Reg Vars): Similar.
9586 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9588 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
9589 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
9590 build_control_flow, new_edge): Remove.
9591 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
9592 (bitlst, bitlst_table_last, bitlst_table): Remove.
9593 (bblst): Store basic_block pointer instead of block index.
9594 (bblst_table): Likewise.
9595 (edgelst): Store edge pointer instead of edge index.
9596 (edgelst_table, edgelst_last): New variables.
9597 (extract_bitlst): Rename to ...
9598 (extract_edgelst): ... this. Return edge pointers, not indices.
9599 (split_edges): Update call.
9600 (rgn_edges): Store edge pointers instead of indices.
9601 (edge_to_bit): Remove.
9602 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
9603 (SET_EDGE_TO_BIT): New macro.
9604 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
9605 (find_rgns): Remove edge_list parameter. Traverse standard CFG
9606 data structures instead of haifa_edge et al. Use edge pointers
9607 instead of edge indices everywhere.
9608 (compute_dom_prob_ps): Use standard CFG data structures. Account
9610 (compute_trg_info): Likewise.
9611 (propagate_deps): Likewise.
9612 (debug_candidate): Account for bblst data structure change.
9613 (check_live_1, update_live_1, is_pfree): Likewise.
9614 (IS_REACHABLE): Use standard CFG data structures.
9615 (init_ready_list): Update bblst_table/edgelst_table allocation.
9616 (schedule_region): Update alloc/cleanup code to data structure
9617 changes. Use edge->aux to store per-region edge index.
9618 (init_regions): No longer call build_control_flow. Do not
9619 create edge list any more.
9621 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9623 * cse.c (cse_insn): Avoid creating direct non-local jumps.
9624 * combine.c (can_combine_p): Likewise.
9625 * local-alloc. (update_equiv_regs): Likewise.
9627 2004-09-28 Richard Henderson <rth@redhat.com>
9630 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
9631 Don't check VOIDmode here. Force PLUS operands to common type.
9632 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
9633 Pmode if given a non pointer type.
9635 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9638 * optabs.c (expand_binop): Force constants to the correct mode.
9640 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9642 * config/s390/s390.c (s390_adjust_cost): Remove.
9643 (TARGET_SCHED_ADJUST_COST): Do not redefine.
9644 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
9645 * config/s390/s390.md ("main_pool"): Use "larl" type
9646 attribute if TARGET_CPU_ZARCH.
9648 2004-09-28 Jakub Jelinek <jakub@redhat.com>
9650 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
9653 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9655 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
9658 2004-09-28 Steven Bosscher <stevenb@suse.de>
9660 * common.opt (flag_gcse_sm): Disable by default.
9661 (flag_gcse_las): Likewise.
9662 (flag_web): Likewise. Create from this file.
9663 * flags.h: Remove flag_web declaration.
9664 * toplev.c (flag_web): Likewise.
9665 (process_options): Never set flag_web.
9667 2004-09-28 Steven Bosscher <stevenb@suse.de>
9669 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
9670 * tree-ssa-propagate.c: Include vec.h.
9671 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
9673 (cfg_blocks_add): Assert the block is not already in the worklist.
9674 Update uses of interesting_ssa_edges and varying_ssa_edges.
9675 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
9676 ssa_propagate): Likewise.
9678 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
9681 * c-decl.c (start_decl): Check for initializing incomplete array
9683 (build_compound_literal): Check for TYPE being error_mark_node.
9684 * c-parse.in (primary): Check for VLA compound literals.
9686 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9688 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
9689 with --disable-checking.
9691 2004-09-28 Devang Patel <dpatel@apple.com>
9693 * tree-pretty-print.c (dump_generic_node): Print vector types.
9695 2004-09-28 Nick Clifton <nickc@redhat.com>
9697 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
9698 invocation of the function sh_init_cumulative_args.
9699 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
9700 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
9701 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
9702 * config/sh/sh.c (sh_init_cumulative_args): New function based
9703 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
9704 heuristic added to determine the setting of force_mem when a
9705 library function is being called.
9707 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9709 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
9710 Skip constant arguments.
9712 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9714 * tree-ssa-alias.c (create_name_tags): If PTR points to a
9715 volatile type, mark the tag volatile.
9716 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
9719 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
9721 * tree.def (vec_cond_expr): Fix. Change 'e'
9724 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9726 * basic-block.h: Fix a comment typo.
9728 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9730 * optabs.c, optabs.h: Fix comment typos.
9732 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
9734 * config/sparc/sparc.md (call_address_struct_value_sp32):
9735 Properly mask the immediate field of the 'unimp' instruction.
9736 (call_symbolic_struct_value_sp32): Likewise.
9738 2004-09-28 Ben Elliston <bje@au.ibm.com>
9739 Steven Bosscher <stevenb@suse.de>
9740 Andrew Pinski <pinskia@physics.uc.edu>
9742 Merge from edge-vector-branch:
9743 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
9744 (struct edge_def): Remove pred_next, succ_next members.
9745 (struct basic_block_def): Remove pred, succ members. Add preds
9746 and succs members of type VEC(edge).
9747 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
9748 (BRANCH_EDGE): Likewise.
9749 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
9750 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
9751 (edge_iterator): New.
9752 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
9753 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
9754 (FOR_EACH_EDGE): New.
9755 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
9757 (rotate_loop): Likewise.
9758 (find_traces_1_route): Likewise.
9759 (bb_to_key): Likewise.
9760 (connect_traces): Likewise.
9761 (copy_bb_p): Likewise.
9762 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
9763 (add_labels_and_missing_jumps): Likewise.
9764 (fix_up_fall_thru_edges): Likewise.
9765 (find_jump_block): Likewise.
9766 (fix_crossing_conditional_branches): Likewise.
9767 (fix_crossing_unconditional_branches): Likewise.
9768 (add_reg_crossing_jump_notes): Likewise.
9769 * bt-load.c (augment_live_range): Likewise.
9770 * cfg.c (clear_edges): Likewise.
9771 (unchecked_make_edge): Likewise.
9772 (cached_make_edge): Likewise.
9773 (make_single_succ_edge): Likewise.
9774 (remove_edge): Likewise.
9775 (redirect_edge_succ_nodup): Likewise.
9776 (check_bb_profile): Likewise.
9777 (dump_flow_info): Likewise.
9778 (alloc_aux_for_edges): Likewise.
9779 (clear_aux_for_edges): Likewise.
9780 (dump_cfg_bb_info): Likewise.
9781 * cfganal.c (forwarder_block_p): Likewise.
9782 (can_fallthru): Likewise.
9783 (could_fall_through): Likewise.
9784 (mark_dfs_back_edges): Likewise.
9785 (set_edge_can_fallthru_flag): Likewise.
9786 (find_unreachable_blocks): Likewise.
9787 (create_edge_list): Likewise.
9788 (verify_edge_list): Likewise.
9789 (add_noreturn_fake_exit_edges): Likewise.
9790 (connect_infinite_loops_to_exit): Likewise.
9791 (flow_reverse_top_sort_order_compute): Likewise.
9792 (flow_depth_first_order_compute): Likewise.
9793 (flow_preorder_transversal_compute): Likewise.
9794 (flow_dfs_compute_reverse_execute): Likewise.
9795 (dfs_enumerate_from): Likewise.
9796 (compute_dominance_frontiers_1): Likewise.
9797 * cfgbuild.c (make_edges): Likewise.
9798 (compute_outgoing_frequencies): Likewise.
9799 (find_many_sub_basic_blocks): Likewise.
9800 (find_sub_basic_blocks): Likewise.
9801 * cfgcleanup.c (try_simplify_condjump): Likewise.
9802 (thread_jump): Likewise.
9803 (try_forward_edges): Likewise.
9804 (merge_blocks_move): Likewise.
9805 (outgoing_edges_match): Likewise.
9806 (try_crossjump_to_edge): Likewise.
9807 (try_crossjump_bb): Likewise.
9808 (try_optimize_cfg): Likewise.
9809 (merge_seq_blocks): Likewise.
9810 * cfgexpand.c (expand_gimple_tailcall): Likewise.
9811 (expand_gimple_basic_block): Likewise.
9812 (construct_init_block): Likewise.
9813 (construct_exit_block): Likewise.
9814 * cfghooks.c (verify_flow_info): Likewise.
9815 (dump_bb): Likewise.
9816 (delete_basic_block): Likewise.
9817 (split_edge): Likewise.
9818 (merge_blocks): Likewise.
9819 (make_forwarder_block): Likewise.
9820 (tidy_fallthru_edges): Likewise.
9821 (can_duplicate_block_p): Likewise.
9822 (duplicate_block): Likewise.
9823 * cfglayout.c (fixup_reorder_chain): Likewise.
9824 (fixup_fallthru_exit_predecessor): Likewise.
9825 (can_copy_bbs_p): Likewise.
9826 (copy_bbs): Likewise.
9827 * cfgloop.c (flow_loops_cfg_dump): Likewise.
9828 (flow_loop_entry_edges_find): Likewise.
9829 (flow_loop_exit_edges_find): Likewise.
9830 (flow_loop_nodes_find): Likewise.
9831 (mark_single_exit_loops): Likewise.
9832 (flow_loop_pre_header_scan): Likewise.
9833 (flow_loop_pre_header_find): Likewise.
9834 (update_latch_info): Likewise.
9835 (canonicalize_loop_headers): Likewise.
9836 (flow_loops_find): Likewise.
9837 (get_loop_body_in_bfs_order): Likewise.
9838 (get_loop_exit_edges): Likewise.
9839 (num_loop_branches): Likewise.
9840 (verify_loop_structure): Likewise.
9841 (loop_latch_edge): Likewise.
9842 (loop_preheader_edge): Likewise.
9843 * cfgloopanal.c (mark_irreducible_loops): Likewise.
9844 (expected_loop_iterations): Likewise.
9845 * cfgloopmanip.c (remove_bbs): Likewise.
9846 (fix_bb_placement): Likewise.
9847 (fix_irreducible_loops): Likewise.
9848 (remove_path): Likewise.
9849 (scale_bbs_frequencies): Likewise.
9850 (loopify): Likewise.
9852 (fix_loop_placement): Likewise.
9853 (loop_delete_branch_edge): Likewise.
9854 (duplicate_loop_to_header_edge): Likewise.
9855 (mfb_keep_just): Likewise.
9856 (create_preheader): Likewise.
9857 (force_single_succ_latches): Likewise.
9858 (loop_split_edge_with): Likewise.
9859 (create_loop_notes): Likewise.
9860 * cfgrtl.c (rtl_split_block): Likewise.
9861 (rtl_merge_blocks): Likewise.
9862 (rtl_can_merge_blocks): Likewise.
9863 (try_redirect_by_replacing_jump): Likewise.
9864 (force_nonfallthru_and_redirect): Likewise.
9865 (rtl_tidy_fallthru_edge): Likewise.
9866 (commit_one_edge_insertion): Likewise.
9867 (commit_edge_insertions): Likewise.
9868 (commit_edge_insertions_watch_calls): Likewise.
9869 (rtl_verify_flow_info_1): Likewise.
9870 (rtl_verify_flow_info): Likewise.
9871 (purge_dead_edges): Likewise.
9872 (cfg_layout_redirect_edge_and_branch): Likewise.
9873 (cfg_layout_can_merge_blocks_p): Likewise.
9874 (rtl_flow_call_edges_add): Likewise.
9875 * cse.c (cse_cc_succs): Likewise.
9876 * df.c (hybrid_search): Likewise.
9877 * dominance.c (calc_dfs_tree_nonrec): Likewise.
9878 (calc_dfs_tree): Likewise.
9879 (calc_idoms): Likewise.
9880 (recount_dominator): Likewise.
9881 * domwalk.c (walk_dominator_tree): Likewise.
9882 * except.c (emit_to_new_bb_before): Likewise.
9883 (connect_post_landing_pads): Likewise.
9884 (sjlj_emit_function_enter): Likewise.
9885 (sjlj_emit_function_exit): Likewise.
9886 (finish_eh_generation): Likewise.
9887 * final.c (compute_alignments): Likewise.
9888 * flow.c (calculate_global_regs_live): Likewise.
9889 (initialize_uninitialized_subregs): Likewise.
9890 (init_propagate_block_info): Likewise.
9891 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9892 * gcse.c (find_implicit_sets): Likewise.
9893 (bypass_block): Likewise.
9894 (bypass_conditional_jumps): Likewise.
9895 (compute_pre_data): Likewise.
9896 (insert_insn_end_bb): Likewise.
9897 (insert_store): Likewise.
9898 (remove_reachable_equiv_notes): Likewise.
9899 * global.c (global_conflicts): Likewise.
9900 (calculate_reg_pav): Likewise.
9901 * graph.c (print_rtl_graph_with_bb): Likewise.
9902 * ifcvt.c (mark_loop_exit_edges): Likewise.
9903 (merge_if_block): Likewise.
9904 (find_if_header): Likewise.
9905 (block_jumps_and_fallthru_p): Likewise.
9906 (find_if_block): Likewise.
9907 (find_cond_trap): Likewise.
9908 (block_has_only_trap): Likewise.
9909 (find_if_case1): Likewise.
9910 (find_if_case_2): Likewise.
9911 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
9912 (perfect_nestify): Likewise.
9913 * lcm.c (compute_antinout_edge): Likewise.
9914 (compute_laterin): Likewise.
9915 (compute_available): Likewise.
9916 (compute_nearerout): Likewise.
9917 * loop-doloop.c (doloop_modify): Likewise.
9918 * loop-init.c (loop_optimizer_init): Likewise.
9919 * loop-invariant.c (find_exits): Likewise.
9920 * loop-iv.c (simplify_using_initial_values): Likewise.
9921 (check_simple_exit): Likewise.
9922 (find_simple_exit): Likewise.
9923 * loop-unroll.c (peel_loop_completely): Likewise.
9924 (unroll_loop_constant_iterations): Likewise.
9925 (unroll_loop_runtime_iterations): Likewise.
9926 * loop-unswitch.c (may_unswitch_on): Likewise.
9927 (unswitch_loop): Likewise.
9928 * modulo-sched.c (generate_prolog_epilog): Likewise.
9929 (sms_schedule): Likewise.
9930 * postreload-gcse.c (eliminate_partially_redundant_load):
9932 * predict.c (can_predict_insn_p): Likewise.
9933 (set_even_probabilities): Likewise.
9934 (combine_predictions_for_bb): Likewise.
9935 (predict_loops): Likewise.
9936 (estimate_probability): Likewise.
9937 (tree_predict_by_opcode): Likewise.
9938 (tree_estimate_probability): Likewise.
9939 (last_basic_block_p): Likewise.
9940 (propagate_freq): Likewise.
9941 (estimate_loops_at_level): Likewise.
9942 (estimate_bb_frequencies): Likewise.
9943 * profile.c (instrument_edges): Likewise.
9944 (get_exec_counts): Likewise.
9945 (compute_branch_probabilities): Likewise.
9946 (branch_prob): Likewise.
9947 * ra-build.c (live_in): Likewise.
9948 * ra-rewrite.c (rewrite_program2): Likewise.
9949 * ra.c (reg_alloc): Likewise.
9950 * reg-stack.c (reg_to_stack): Likewise.
9951 (convert_regs_entry): Likewise.
9952 (compensate_edge): Likewise.
9953 (convert_regs_1): Likewise,
9954 (convert_regs_2): Likewise.
9955 (convert_regs): Likewise.
9956 * regrename.c (copyprop_hardreg_forward): Likewise.
9957 * reload1.c (fixup_abnormal_edges): Likewise.
9958 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
9959 (sbitmap_insersection_of_preds): Likewise.
9960 (sbitmap_union_of_succs): Likewise.
9961 (sbitmap_union_of_preds): Likewise.
9962 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
9963 (fix_basic_block_boundaries): Likewise.
9964 (sched_ebbs): Likewise.
9965 * sched-rgn.c (build_control_flow): Likewise.
9966 (find_rgns): Likewise.
9967 * tracer.c (find_best_successor): Likewise.
9968 (find_best_predecessor): Likewise.
9969 (tail_duplicate): Likewise.
9970 * tree-cfg.c (make_edges): Likewise.
9971 (make_ctrl_stmt_edges): Likewise.
9972 (make_goto_expr_edges): Likewise.
9973 (tree_can_merge_blocks_p): Likewise.
9974 (tree_merge_blocks): Likewise.
9975 (cfg_remove_useless_stmts_bb): Likewise.
9976 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
9977 (tree_block_forwards_to): Likewise.
9978 (cleanup_control_expr_graph): Likewise.
9979 (find_taken_edge): Likewise.
9980 (dump_cfg_stats): Likewise.
9981 (tree_cfg2vcg): Likewise.
9982 (disband_implicit_edges): Likewise.
9983 (tree_find_edge_insert_loc): Likewise.
9984 (bsi_commit_edge_inserts): Likewise.
9985 (tree_split_edge): Likewise.
9986 (tree_verify_flow_info): Likewise.
9987 (tree_make_forwarder_block): Likewise.
9988 (tree_forwarder_block_p): Likewise.
9989 (thread_jumps): Likewise.
9990 (tree_try_redirect_by_replacing_jump): Likewise.
9991 (tree_split_block): Likewise.
9992 (add_phi_args_after_copy_bb): Likewise.
9993 (rewrite_to_new_ssa_names_bb): Likewise.
9994 (dump_function_to_file): Likewise.
9995 (print_pred_bbs): Likewise.
9996 (print_loop): Likewise.
9997 (tree_flow_call_edges_add): Likewise.
9998 (split_critical_edges): Likewise.
9999 (execute_warn_function_return): Likewise.
10000 (extract_true_false_edges_from_block): Likewise.
10001 * tree-if-conv.c (tree_if_conversion): Likewise.
10002 (if_convertable_bb_p): Likewise.
10003 (find_phi_replacement_condition): Likewise.
10004 (combine_blocks): Likewise.
10005 * tree-into-ssa.c (compute_global_livein): Likewise.
10006 (ssa_mark_phi_uses): Likewise.
10007 (ssa_rewrite_initialize_block): Likewise.
10008 (rewrite_add_phi_arguments): Likewise.
10009 (ssa_rewrite_phi_arguments): Likewise.
10010 (insert_phi_nodes_for): Likewise.
10011 (rewrite_into_ssa): Likewise.
10012 (rewrite_ssa_into_ssa): Likewise.
10013 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
10014 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
10015 (rewrite_trees): Likewise.
10016 * tree-pretty-print.c (dump_bb_header): Likewise.
10017 (dump_implicit_edges): Likewise.
10018 * tree-sra.c (insert_edge_copies): Likewise.
10019 (find_obviously_necessary_stmts): Likewise.
10020 (remove_data_stmt): Likewise.
10021 * tree-ssa-dom.c (thread_across_edge): Likewise.
10022 (dom_opt_finalize_block): Likewise.
10023 (single_incoming_edge_ignoring_loop_edges): Likewise.
10024 (record_equivalences_from_incoming_edges): Likewise.
10025 (cprop_into_successor_phis): Likewise.
10026 * tree-ssa-live.c (live_worklist): Likewise.
10027 (calculate_live_on_entry): Likewise.
10028 (calculate_live_on_exit): Likewise.
10029 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10030 (copy_loop_headers): Likewise.
10031 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
10032 (fill_always_executed_in): Likewise.
10033 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
10034 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
10035 (compute_phi_arg_on_exit): Likewise.
10036 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
10037 (get_loops_exit): Likewise.
10038 (split_loop_exit_edge): Likewise.
10039 (ip_normal_pos): Likewise.
10040 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
10042 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
10043 (replace_phi_with_stmt): Likewise.
10044 (value_replacement): Likewise.
10045 * tree-ssa-pre.c (compute_antic_aux): Likewise.
10046 (insert_aux): Likewise.
10047 (init_pre): Likewise.
10048 * tree-ssa-propagate.c (simulate_stmt): Likewise.
10049 (simulate_block): Likewise.
10050 (ssa_prop_init): Likewise.
10051 * tree-ssa-threadupdate.c (thread_block): Likewise.
10052 (create_block_for_threading): Likewise.
10053 (remove_last_stmt_and_useless_edges): Likewise.
10054 * tree-ssa.c (verify_phi_args): Likewise.
10055 (verify_ssa): Likewise.
10056 * tree_tailcall.c (independent_of_stmt_p): Likewise.
10057 (find_tail_calls): Likewise.
10058 (eliminate_tail_call): Likewise.
10059 (tree_optimize_tail_calls_1): Likewise.
10060 * tree-vectorizer.c (vect_transform_loop): Likewise.
10061 * var-tracking.c (prologue_stack_adjust): Likewise.
10062 (vt_stack_adjustments): Likewise.
10063 (vt_find_locations): Likewise.
10064 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10065 * config/i386/i386.c (ix86_pad_returns): Likewise.
10066 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10067 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10069 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
10072 * config/sparc/sparc.c (struct machine_function): New field
10073 'leaf_function_p' and 'prologue_data_valid_p'.
10074 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
10075 to conveniently access the above fields.
10076 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
10077 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
10078 of the generic flavor 'current_function_uses_only_leaf_regs'.
10079 (eligible_for_sibcall_delay): Likewise.
10080 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
10081 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
10082 (sparc_asm_function_prologue): Add sanity check for the assumption
10083 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
10084 (sparc_can_use_return_insn_p): New function.
10085 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
10086 (output_restore): Likewise.
10087 (output_sibcall): Likewise.
10088 (sparc_output_mi_thunk): Likewise.
10089 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
10090 * config/sparc/sparc.md (return): New expander.
10092 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
10094 2004-09-27 Mark Mitchell <mark@codesourcery.com>
10097 * stor-layout.c (layout_decl): Use fold_convert, not convert.
10098 (bit_from_pos): Likewise.
10099 (byte_from_pos): Likewise.
10100 (pos_from_bit): Likewise.
10101 (normalize_offset): Likewise.
10102 (place_field): Likewise.
10103 (finalize_type_size): Likewise.
10104 (layout_type): Likewise.
10105 * tree.c (build_index_type): Likewise.
10107 2004-09-27 Devang Patel <dpatel@apple.com>
10109 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
10110 * genopinit.c (optabs): New entry for vcond_gen_code and
10112 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
10113 (get_rtx_code): New function.
10114 (vector_compare_rtx): New function.
10115 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
10116 (expand_vec_cond_expr_p): New function.
10117 (expand_vec_cond_expr): New function.
10118 (get_vcond_icode): New function.
10119 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
10120 (vcond_gen_code, vcondu_gen_code): Same.
10122 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
10124 * Makefile.in (STAGESTUFF): Split into ...
10125 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
10126 (mostlyclean): Update.
10127 (stage1-start, stage2-start, stage3-start, stage4-start,
10128 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
10129 Move the STAGEMOVESTUFF.
10131 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
10133 * system.h (getpagesize): Return 'int' instead of 'long'.
10135 2004-09-27 Michael Matz <matz@suse.de>
10139 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
10140 bmp_iter_and_init): Shift by bit_in_word.
10142 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
10144 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
10145 * configure.ac: Don't sinclude it here.
10146 * configure: Regenerate.
10148 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
10150 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
10153 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
10156 * c-typeck.c (build_component_ref): Name type involved in
10157 diagnostic for structure or union without a member of the given
10160 2004-09-27 DJ Delorie <dj@redhat.com>
10162 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
10163 .comm alignment is bytes, not bits.
10165 2004-09-27 Devang Patel <dpatel@apple.com>
10167 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
10168 (print_call_name): Do not print VEC_COND_EXPR.
10170 2004-09-27 Devang Patel <dpatel@apple.com>
10172 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
10174 2004-09-27 Jan Hubicka <jh@suse.cz>
10176 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
10178 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
10180 * bitmap.h: Fix a comment typo.
10182 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
10184 * libgcc2.c (getpagesize): Change type of return value to int.
10186 2004-09-26 Matt Austern <austern@apple.com>
10188 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
10191 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10193 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
10194 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
10195 (bitmap_iterator): New type.
10196 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
10197 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
10198 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
10199 bmp_iter_and_init, bmp_iter_and_next): New functions.
10200 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
10201 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
10202 use iterator-style EXECUTE_IF_IN_BITMAP macros.
10203 * bitmap.c (bitmap_print): Ditto.
10204 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
10205 btr_def_live_range): Ditto.
10206 * cfganal.c (compute_dominance_frontiers_1) Ditto.
10207 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
10209 * ddg.c (build_inter_loop_deps): Ditto.
10210 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
10212 * except.c (remove_eh_handler): Ditto.
10213 * flow.c (reg_set_to_hard_reg_set): Ditto.
10214 * gcse.c (clear_modify_mem_tables): Ditto.
10215 * global.c (build_insn_chain): Ditto.
10216 * ifcvt.c (dead_or_predicable): Ditto.
10217 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
10219 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
10220 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
10221 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
10222 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
10223 tree_purge_all_dead_eh_edges): Ditto.
10224 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
10225 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
10226 rewrite_ssa_into_ssa): Ditto.
10227 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
10228 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
10230 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
10231 compute_flow_sensitive_aliasing, maybe_create_global_var,
10232 dump_points_to_info_for): Ditto.
10233 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
10234 * tree-ssa-dse.c (dse_finalize_block): Ditto.
10235 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
10236 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
10238 * tree-ssa-loop-ivopts.c (find_induction_variables,
10239 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
10240 determine_use_iv_costs, determine_set_costs, find_best_candidate,
10241 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
10243 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
10244 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
10245 add_call_read_ops): Ditto.
10246 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
10248 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10250 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
10251 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
10253 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10255 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
10256 reflect size of memory regions being compared.
10258 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10260 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
10261 expressions. Always clear MEM_SIZE and alias set.
10263 2004-09-26 Roger Sayle <roger@eyesopen.com>
10264 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10266 PR middle-end/17112
10267 * stor-layout.c (compute_record_mode): For records with a single
10268 field, only use the field's mode if its size matches what we'd
10269 have choosen for the record ourselves. This forces the use of
10270 BLKmode for packed records that don't completely fill a mode.
10272 2004-09-26 Roger Sayle <roger@eyesopen.com>
10274 PR middle-end/17151
10275 * combine.c (force_to_mode): Remove dubious early return test that
10276 inhibits further optimization.
10278 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
10280 * profile.c: Fix a comment typo.
10282 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10285 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
10286 with varying offset.
10287 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
10288 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
10290 (expr_invariant_in_loop_p): New function.
10291 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
10292 component_ref_field_offset for COMPONENT_REFs. Do not allow
10293 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
10294 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
10295 MISALIGNED_INDIRECT_REFs.
10296 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
10297 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
10298 MISALIGNED_INDIRECT_REFs.
10300 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
10303 * gcc.c (cpp_options, cc1_options): Preserve relative order of
10304 -std and -ansi options.
10306 2004-09-26 Jan Hubicka <jh@suse.cz>
10308 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
10309 for nested functions whose proper parent has not been output.
10311 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
10312 when re-constructing profile previously invalidated by loop.
10314 2004-09-25 Dale Johannesen <dalej@apple.com>
10316 * tree-gimple.c: Move GIMPLE definition...
10317 * doc/tree-ssa.texi: here.
10319 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10321 * tree-vectorizer.c: Fix a comment typo.
10323 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10325 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
10326 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
10327 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
10328 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
10330 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10332 * tree-ssa-loop-unswitch.c: Fix a comment typo.
10334 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10336 * doc/passes.texi: Fix a typo.
10338 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10340 * tree-optimize.c (init_tree_optimization_passes): Add
10341 pass_record_bounds.
10342 * tree-pass.h (pass_record_bounds): Declare.
10343 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
10346 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10348 PR tree-optimization/17474
10349 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
10350 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
10352 2004-09-25 Jan Hubicka <jh@suse.cz>
10354 * predict.c (counts_to_freqs): Make global.
10355 * predict.h (counts_to_freqa): Declare.
10356 * profile.c (compute_branch_probabilities): Compute frequencies
10357 * tree-profile.c (do_tree_profiling): Refine conditional on when
10358 tree profiling pass is needed.
10360 * passes.c (rest_of_handle_cfg): Disable const/pure function
10361 detection when doing tree based profiling.
10363 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
10366 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10368 * config/mips/mips.h (struct mips_args): Clarify comments.
10369 * config/mips/mips.c (struct mips_arg_info): Likewise.
10370 (mips_arg_info): Don't allow fpr_p to affect the register or
10371 stack alignment. Remove o64 silliness.
10372 (function_arg): Deal with the o32 float,float case specially.
10374 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10376 * config/mips/mips.md (loadx, storex): Define for V2SF.
10378 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
10380 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
10381 * config/s390/s390.c (s390_back_chain_rtx): New function.
10382 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
10383 Call anti_adjust_stack.
10384 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
10385 only if compiling with back chain.
10386 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
10387 back chain only if back chain enabled. Use s390_back_chain_rtx.
10389 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10391 * doc/trouble.texi: Remove obsolete information. Update
10392 information on how to regenerate fixincluded headers.
10394 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10397 * doc/invoke.texi: Document that
10398 -Wno-error-implicit-function-declaration is not accepted.
10400 2004-09-24 Richard Henderson <rth@redhat.com>
10402 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
10403 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
10405 (alpha_expand_mov): Allow unaligned vectors.
10406 (alpha_expand_unaligned_store): Use CONST0_RTX.
10407 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
10409 2004-09-24 Jeff Law <law@redhat.com>
10411 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
10413 (simplify_cond_and_lookup_avail_expr): Likewise.
10415 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10418 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
10419 title. Document interaction with -fms-extensions.
10420 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
10423 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10426 * doc/extend.texi: Document interaction of attribute noreturn and
10429 2004-09-24 Richard Henderson <rth@redhat.com>
10432 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
10433 (som_hash, som_eq): New.
10434 (init_subregs_of_mode, record_subregs_of_mode): New.
10435 (cannot_change_mode_set_regs): Rewrite for htab implementation.
10436 (invalid_mode_change_p): Likewise.
10437 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
10438 * flow.c (mark_used_regs): Likewise.
10439 (life_analysis): Use init_subregs_of_mode.
10440 * regs.h (subregs_of_mode): Remove.
10441 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
10443 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10445 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
10446 type with the copy of the conditional.
10448 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10451 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10452 Prevent renaming if the aliasing sets of the type which the
10453 pointer points to are different.
10455 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10458 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
10459 declarations of enumerators.
10460 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
10461 for redefinition. Check for nested redefinition.
10462 (finish_struct): Don't check for nested redefinition.
10463 (start_enum): Check for nested redefinition.
10465 2004-09-24 Devang Patel <dpatel@apple.com>
10467 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
10468 only when necesssary.
10469 (combine_blocks): Combine loop header and exit block.
10471 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
10473 * hooks.c (hook_tree_tree_bool_null): New.
10474 * hooks.h (hook_tree_tree_bool_null): Declare it.
10475 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
10476 * targhooks.c (default_fold_builtin): Remove.
10477 * targhooks.h (default_fold_builtin): Remove.
10479 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10481 PR rtl-optimization/17625
10482 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
10484 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10487 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
10488 Reject if any of the operands occur in an abnormal PHI.
10490 2004-09-24 Andreas Schwab <schwab@suse.de>
10492 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
10495 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10497 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
10498 if the GNU assembler is used.
10499 (sparc-*-solaris2*): Likewise.
10500 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
10501 (dbxout_function_end): Protect N_ENSYM with it.
10502 (dbxout_begin_prologue): Protect N_BNSYM with it.
10503 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
10504 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
10505 * config/sparc/sol2-gas.h: New file.
10507 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
10510 * Makefile.in (@set_gcc_lib_path@): Added.
10512 * configure.ac: Include ../config/gcc-lib-path.m4. Use
10513 TL_AC_GNU_MAKE_GCC_LIB_PATH.
10514 * configure: Regenerated.
10516 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10519 * c-typeck.c (build_c_cast): Improve wording of
10520 -Wbad-function-cast diagnostic.
10522 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
10525 * config/cris/cris.md (moverside, movemside): Rename variable
10526 "reg" to "otherop". To generate canonical RTX, check that otherop
10527 isn't constant instead of checking that operand 1 is a register.
10529 2004-09-23 Jakub Jelinek <jakub@redhat.com>
10531 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
10533 2004-09-23 Diego Novillo <dnovillo@redhat.com>
10534 Jakub Jelinek <jakub@redhat.com>
10536 * tree-flow.h (find_new_referenced_vars): Add prototype.
10537 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
10539 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
10541 (mark_new_vars_to_rename): Walk through all operands.
10542 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
10543 (execute_fold_all_builtins): Use it.
10544 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
10546 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
10548 * gthr-tpf.h: New file.
10549 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
10550 * gthr.h: Use gthr-tpf.h on TPF OS.
10552 2004-09-23 Jeff Law <law@redhat.com>
10554 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
10555 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10556 (substitute_and_fold): Likewise.
10557 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
10558 except invariants from SSA_NAME_VALUE.
10559 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
10560 and SET_SSA_NAME_EQUIV.
10561 (restore_vars_to_original_value, record_const_or_copy): Likewise.
10562 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
10563 (record_equality, cprop_into_successor_phis): Likewise.
10564 (record_equivalences_from_stmt, cprop_operand): Likewise.
10565 (lookup_avail_expr): Likewise.
10566 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
10567 from SSA_NAME_VALUE.
10568 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
10569 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
10570 annotation from the VALUE_HANDLE field.
10572 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
10576 * tree.c (reconstruct_complex_type): Remove extra "this".
10577 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
10578 Add V4SFmode to case statement.
10580 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
10583 * doc/extend.texi, doc/invoke.texi: Document interaction of
10584 -fno-builtin with format checks. Note that built-in functions
10585 have effects beyond generating code that avoids calls to those
10588 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
10590 PR tree-optimization/17533
10591 * dominance.c (verify_dominators): Tolerate even more incorrect
10592 dominance data during error message printing.
10593 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
10594 and edges more correctly.
10596 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
10598 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
10600 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
10601 MISALIGNED_INDIRECT_REF.
10602 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
10603 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
10605 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
10606 (find_interesting_uses_address): Likewise.
10607 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
10608 (build_fold_addr_expr_with_type): Likewise.
10609 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
10610 * print-rtl.c (print_mem_expr): Likewise.
10611 * tree-dump.c (dequeue_and_dump): Likewise.
10612 * tree-eh.c (tree_could_trap_p): Likewise.
10613 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
10614 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
10615 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
10617 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10618 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10619 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
10620 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10621 (add_address_candidates, rewrite_address_base): Likewise.
10622 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
10624 * tree.c (staticp, build1_stat): Likewise.
10626 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
10627 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
10628 * tree-ssa-operands.c (get_expr_operands): Likewise.
10629 * expr.c (expand_expr_real_1): Likewise.
10631 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
10633 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
10634 for the new optabs.
10635 (expand_ternary_op): New function.
10636 * genopinit.c (optabs): Handle the new optabs.
10637 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
10638 (init_optabs): Initialize vec_realign_load_optab.
10639 (expand_ternary_op): New functions.
10641 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
10642 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
10643 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
10644 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
10645 * target.h (struct vectorize): New member for struct gcc_target.
10646 (misaligned_mem_ok): New member for targetm.vectorize.
10647 (builtin_mask_for_load): Likewise.
10648 (builtin_mask_for_store): Likewise.
10649 * targethooks.c (default_vect_misaligned_mem_ok): New function.
10650 * targethooks.h (default_vect_misaligned_mem_ok): New function.
10652 * config/rs6000/altivec.md (build_vector_mask_for_load): New
10654 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
10655 (vec_realign_load_v16qi): New define_insn.
10656 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
10657 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
10658 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
10659 (altivec_builtin_mask_for_store): New variables.
10660 (rs6000_builtin_mask_for_load): New function. Implements
10661 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
10662 (rs6000_builtin_mask_for_store): New function. Implements
10663 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
10664 (rs6000_expand_builtin): Expand the target builtins
10665 builtin_mask_for_load and builtin_mask_for_store.
10666 (altivec_init_builtins): Initialize the new target builtins.
10667 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
10668 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
10670 * tree-vectorizer.c (vect_create_data_ref): Renamed to
10671 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
10672 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
10673 (vectorizable_store): Call vect_create_data_ref_ptr with additional
10674 arguments, and create an indirect_ref with its return value data_ref.
10675 Check aligned_access_p.
10676 (vectorizable_load): Handle misaligned loads, using software-pipelined
10677 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
10678 vec_realign_load_optab is supported, or using a scheme without
10679 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
10680 misaligned_mem_ok is supported.
10682 (vect_finish_stmt_generation): Typo.
10683 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
10684 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
10685 presence of misaligned loads.
10686 (vect_analyze_data_ref_access): Add check for constant init.
10687 (vect_get_symbl_and_dr): Remove duplicate line.
10688 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
10690 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10692 * builtins.c: Fix a comment typo.
10694 2004-09-23 Jan Hubicka <jh@suse.cz>
10696 * profile.c (branch_prob): Do not verify flow info in the middle of the
10699 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10701 * cfgloop.h (update_single_exits_after_duplication): Declare.
10702 (loopify, split_loop_bb): Declaration changed.
10703 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
10705 (loopify): Added redirect_all_edges argument.
10706 (update_single_exits_after_duplication): Export.
10707 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
10708 * tree-flow.h (tree_duplicate_loop_to_header_edge,
10709 tree_ssa_loop_version): Declare.
10710 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
10711 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
10712 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
10713 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
10715 * tree-ssa-loop-unswitch.c: New file.
10716 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
10717 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
10718 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
10719 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
10720 * tree-pass.h (pass_unswitch): Declare.
10721 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
10722 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
10723 * doc/passes.texi: Documen tree level loop unswitching.
10725 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10727 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
10729 2004-09-22 Eric Christopher <echristo@redhat.com>
10731 * builtins.c (simplify_builtin_va_start): Remove.
10732 (simplify_builtin): Ditto.
10733 (fold_builtin_strchr): Ditto.
10734 (simplify_builtin_*): Rename remainders to fold_builtin_*.
10735 (expand_builtin): Fix up for above changes.
10736 (fold_builtin_1): Add new folders. Change for above.
10737 (expand_builtin_va_start): Call fold_builtin_next_arg.
10738 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
10739 * tree.h: Remove prototype for simplify_builtin.
10741 2004-09-23 Jan Hubicka <jh@suse.cz>
10744 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
10745 of fully inlined functions.
10746 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
10749 * cfgexpand.c (add_reg_br_prob_note): New function.
10750 (expand_gimple_cond_expr): Use it.
10751 (tree_expand_cfg): No longer kill the profile.
10752 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
10753 only if it is present.
10754 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
10755 * predict.c (combine_predictions_for_insn): Set the probabilities
10756 based on REG_BR_PROB note if present.
10757 * predict.c (branch_prob): Profile is read only with
10758 flag_branch_probabilities.
10760 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10762 * aclocal.m4: Add in gettext's m4 includes.
10763 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
10764 * configure.ac: Add in check for iconv.h
10765 * configure: Regenerate.
10767 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10769 * aclocal.m4: Update for rename of gettext-sister.m4.
10771 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
10773 Fix PR tree-optimization/17587
10774 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
10775 (insert_aux): Instead of here.
10777 2004-09-22 Diego Novillo <dnovillo@redhat.com>
10779 PR tree-optimization/16721
10780 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
10781 * tree-ssa-alias.c (create_memory_tag): Move setting of
10782 TREE_THIS_VOLATILE ...
10783 (get_tmt_for): ... here.
10785 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
10787 * config/sparc/sparc.md (cmove splitter): Fix formatting.
10788 (conditional_trap expander): Reject inappropriate CCmodes.
10789 (conditional trap insn): Use V9 syntax if possible.
10791 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
10794 * c-typeck.c (build_component_ref): Don't special-case
10797 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
10799 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
10802 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
10804 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
10805 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
10806 TRUTH_XOR_EXPR): Mention the restriction on types.
10808 2004-09-22 Matt Austern <austern@apple.com>
10810 * config/darwin.c (darwin_make_decl_one_only):
10811 Allow coalesced symbol to appear in static archive's table of contents
10813 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
10815 PR tree-optimization/17512
10816 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
10819 2004-09-22 David Edelsohn <edelsohn@gnu.org>
10821 * dbxout.c (get_lang_number): Do not define if
10822 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
10824 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10827 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
10828 builtin_define ("__USE_INIT_FINI__").
10830 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
10832 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
10833 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
10834 * config/s390/s390.h (TARGET_TPF): New macro.
10835 * config/s390/s390.md ("eh_return"): New expander.
10836 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
10837 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
10838 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
10839 * config/s390/tpf.h (TARGET_TPF): Define to 1.
10840 (STACK_POINTER_OFFSET): Increase to 448.
10841 (TARGET_DEFAULT): Set -mtpf-trace on as default.
10842 (TPF_LOC_DIFF_OFFSET): New macro.
10843 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
10845 (__isPATrange): Add prototype.
10846 (MD_FALLBACK_FRAME_STATE_FOR): Define.
10847 * config/s390/tpf-eh.c: New file.
10849 2004-09-22 Diego Novillo <dnovillo@redhat.com>
10851 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
10852 operands in an integer comparison.
10853 * tree-cfg.c (find_taken_edge): Call fold() to determine
10854 whether the predicate is known.
10856 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10858 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
10859 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
10860 Create build and doc directories along with the language directories.
10861 Don't create doc directory separately.
10862 * configure: Regenerate.
10863 * Makefile.in: Create all object and executables files built
10864 with the build compiler in a build/ directory.
10865 (genobjnames): Add missing build objects.
10866 (STAGESTUFF): Don't stage the gen* programs.
10867 (ggc-none.o): Define dependencies for the target compiler.
10868 (build-print-rtl.o): Rename to build/print-rtl.o.
10869 (build-errors.o): Rename to build/errors.o.
10870 (build-varray.o): Rename to build/varray.o.
10871 (maintainerclean): Delete the contents of the build directory.
10872 ($(genobjs): %.o): Explicitly use -o.
10873 (build/insn-conditions.o): Delete specfic rule to use generic rule.
10874 (build/gengtype-lex.o): Likewise.
10875 (build/gengtype-yacc.o): Likewise.
10876 (build/gcov-iov.o): Likewise.
10878 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
10880 * vec.h (VEC_space): Return true if there _is_ space.
10881 (VEC_reserve): Adjust.
10883 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
10885 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
10886 use FPRs for scalar, complex and vector types only.
10888 2004-09-21 Jeff Law <law@redhat.com>
10890 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
10891 the opt_stats_d structure.
10892 (vrp_data): Change from a varray into a hash table.
10893 (vrp_hash_elt): New structure for elements in the vrp hash table.
10894 (vrp_hash, vrp_eq):New functions for hashing and testing equality
10895 in the vrp hash table.
10896 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
10897 initialization slightly to make it easier to read. No longer need
10898 to grow/clear the varray. Instead empty and delete the hash table.
10899 (dom_opt_finalize_block): Update due to change of VRP_DATA from
10900 a varray to a hash table.
10901 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
10903 * tree-ssa-ccp.c (get_default_value): If we have a constant
10904 value recorded for an SSA_NAME, then use that constant as
10905 the initial lattice value.
10906 (substitute_and_fold): Transfer equivalences discovered into
10909 * tree.h (SSA_NAME_EQUIV): Add comments.
10910 (SET_SSA_NAME_EQUIV): Similarly.
10912 2004-09-21 David Edelsohn <edelsohn@gnu.org>
10914 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
10916 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
10918 2004-09-21 Mark Mitchell <mark@codesourcery.com>
10920 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
10921 (finish_decl): Likewise.
10923 2004-09-21 Devang Patel <dpatel@apple.com>
10925 * tree.def (VEC_COND_EXPR): New tree node.
10926 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
10928 2004-09-21 Stan Shebs <shebs@apple.com>
10930 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
10931 * config/rs6000/darwin-world.asm: Likewise.
10933 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
10935 * tree-ssa.c (verify_def): Use print_generic_stmt,
10936 not debug_generic_stmt.
10937 (verify_use): Ditto.
10938 (verify_phi_args): Ditto.
10939 (verify_ssa): Ditto.
10941 2004-09-21 Paul Brook <paul@codesourcery.com>
10943 * varasm.c (default_assemble_integer): Return false for values wider
10944 than the target word size. Works around GAS bug.
10946 2004-09-21 Zack Weinberg <zack@codesourcery.com>
10948 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
10950 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
10953 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
10955 * c-typeck.c (build_function_call): Give name of object
10956 we are attempting to call in error message.
10957 * c-objc-common.c (c_tree_printer): Call pp_expression,
10958 not return false, for 'E' case.
10960 2004-09-21 Steven Bosscher <stevenb@suse.de>
10962 PR rtl-optimization/17482
10963 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
10964 load_killed_in_block_p): Clarify comments.
10965 (record_last_reg_set_info): Make static inline.
10966 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
10967 (record_opr_changes): New function to replace the above.
10968 (compute_hash_table): Clarify comments. Use record_opr_changes.
10969 (reg_set_between_after_reload_p): Clean up.
10970 (reg_used_between_after_reload_p): Likewise.
10971 (eliminate_partially_redundant_load): Clarify comments.
10973 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
10975 PR rtl-optimization/17266
10976 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
10978 2004-09-21 Uros Bizjak <uros@kss-loka.si>
10980 PR rtl-optimization/14851
10981 * rtlanal.c (commutative_operand_precedence): Calculate
10982 precedence of stripped constant.
10984 2004-09-20 Jeff Law <law@redhat.com>
10985 Jan Hubicka <jh@suse.cz>
10987 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
10988 initialize key elements here.
10989 (release_ssa_name): Zero the released SSA_NAME here.
10990 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
10991 (struct tree_ssa_name): Add new "equiv" field.
10992 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
10993 (tree_ssa_dominator_optimize): No longer allocate, resize or
10994 clear CONST_AND_COPIES.
10995 (get_value_for, set_value_for): Kill.
10996 (thread_across_edge): Get/set the equivalency using
10997 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10998 (restore_vars_to_original_value): Likewise.
10999 (record_equivalences_from_phis): Likewise.
11000 (record_dominating_conditions): Likewise.
11001 (record_const_or_copy, record_equality): Likewise.
11002 (lookup_avail_expr): Likewise.
11003 (record_equivalences_from_stmt, cprop_operand): Likewise.
11004 (cprop_into_successor_phis): No longer need to pass around
11005 CONST_AND_COPIES. Callers updated. Get equivalences via
11007 (cprop_into_phis): Likewise.
11009 2004-09-20 Matt Austern <austern@apple.com>
11010 Zack Weinberg <zack@codesourcery.com>
11012 * c-common.c (fix_string_type): Build the unqualified array
11013 type unconditionally, then use c_build_qualified_type to get
11014 the proper const-qualified variant, and set its
11015 TYPE_MAIN_VARIANT to refer to the unqualified type.
11016 * c-lex.c (c_lex_return_raw_string): New global.
11017 (c_lex_with_flags): Honor it.
11018 * c-pragma.h: Declare it.
11020 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
11022 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
11024 2004-09-21 Jan Hubicka <jh@suse.cz>
11026 PR middle-end/17126
11027 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
11028 (tree_rest_of_compilation): Cleanup.
11030 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
11032 * config/s390/s390.c (s390_select_rtx_section): Remove.
11033 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
11035 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
11037 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
11038 note to pretend a direct save from the original register when an
11039 intermediate register is used for the save.
11041 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11043 * tsystem.h (alloca): Provide a default definition.
11046 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11047 * unwind-dw2.c: Call __builtin_alloca, not alloca.
11049 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
11052 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
11053 aliasing sets are the same rather than just conflicting.
11055 2004-09-20 Jan Hubicka <jh@suse.cz>
11057 PR middle-end/16460
11059 * cgraph.c (cgraph_unnest_node): New function.
11060 (c_finalize): Rename to ....
11061 (c_warn_unused_result_recursivly): ... this one; do only the warning
11062 (finish_function): Finalize the toplevel function; do not lower nested tree.
11063 * cgraph.h (cgraph_unnest_node): Declare.
11064 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
11065 nestedness datastructure.
11066 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
11067 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
11068 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
11070 2004-09-20 Richard Henderson <rth@redhat.com>
11072 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
11073 from some_small_symbolic_operand_1; export.
11074 (some_small_symbolic_operand): Remove.
11075 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
11077 * config/alpha/predicates.md (some_small_symbolic_operand): New.
11079 2004-09-20 Jan Hubicka <jh@suse.cz>
11081 * predict.c (return_prediction): New function.
11082 (apply_return_prediction): Likewise.
11083 (tree_bb_level_predictions): Likewise.
11084 (tree_estimate_probability): Add noreturn exit edges; call
11085 bb_level_predictions; fix logic of return heuristics.
11086 (predict_paths_leading_to): Rescuesce from old CVS version of
11087 process_note_prediction function.
11088 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
11090 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
11092 * config/s390/s390.c (s390_frame_info): Added alignment statement for
11093 floating point register area on stack.
11095 2004-09-20 Jakub Jelinek <jakub@redhat.com>
11097 * predict.c (expr_expected_value): Use *_CLASS_P macros.
11099 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
11101 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
11102 generating useless garbage.
11104 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
11106 * builtins.c (fold_builtin): Call the new omonymous
11107 target hook for machine-dependent built-ins.
11108 * target-def.h (TARGET_FOLD_BUILTIN): New.
11109 * target.h (struct gcc_target): Add the fold_builtin hook.
11110 * targhooks.c (default_fold_builtin): New.
11111 * targhooks.h (default_fold_builtin): Declare it.
11113 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
11115 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
11118 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
11121 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
11123 2004-09-20 Jan Hubicka <jh@suse.cz>
11125 * predict.c (estimate_probability): Remove unnecesary code.
11127 2004-09-19 Ira Rosen <irar@il.ibm.com>
11129 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
11130 (STMT_VINFO_VECT_DR_BASE): Declare.
11131 (VECT_SMODULO): Declare.
11132 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
11133 (vect_compute_array_base_alignment): New function.
11134 (vect_analyze_data_ref_access): Check array indices. Remove one
11135 dimensional arrays restriction.
11136 (vect_get_ptr_offset): New function.
11137 (vect_get_symbl_and_dr): New function.
11138 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
11139 (former name vect_get_base_decl_and_bit_offset).
11140 (vect_create_index_for_array_ref): Removed.
11141 (vect_create_index_for_vector_ref): New function.
11142 (vect_create_addr_base_for_vector_ref): New function.
11143 (vect_create_data_ref): Handle additional data refs. Call
11144 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
11145 (vect_compute_data_ref_alignment): Support the changes. Call
11146 vect_get_base_and_bit_offset.
11147 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
11148 data refs. Store vect_dr_base.
11149 (vect_analyze_data_ref_accesses): Support nonconstant init.
11150 (new_stmt_vec_info): Initialize vect_dr_base field.
11151 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
11152 (get_vectype_for_scalar_type): Check for BLKmode.
11153 * tree-chrec.h (initial_condition_in_loop_num): Declare.
11154 * tree-chrec.c (initial_condition_in_loop_num): New function.
11155 (chrec_component_in_loop_num): New function.
11156 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
11157 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
11158 to be pointer to varray_type.
11160 2004-09-19 Jan Hubicka <jh@suse.cz>
11162 * basic-block.h (update_bb_profile_after_threading): Declare.
11163 * cfg.c (update_bb_profile_after_threading): Break out from ...
11164 * cfgcleanup.c (try_forward_edges): ... here; use it.
11165 * tree-ssa-dom.c (thread_across_edge): Use it.
11166 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
11167 profile of the new BB.
11169 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
11171 * tree-ssa-pre.c (insert_into_set): Don't put
11172 is_gimple_min_invariant values into the set.
11174 2004-09-19 Andreas Jaeger <aj@suse.de>
11176 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
11179 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11181 * config/cris/cris.h: Preserve the original spelling in a
11184 2004-09-18 Jeff Law <law@redhat.com>
11186 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
11187 global varrays to replace the block local varrays.
11188 (struct dom_walk_block_data): Remove, no longer used.
11189 (get_eq_expr_value): No longer need to pass around pointers to local
11190 varrays. Callers updated. Unused markers added to unused parameters.
11191 (record_range, record_equivalences_from_stmt): Likewise.
11192 (record_equivalences_from_incoming_edge): Likewise.
11193 (record_var_is_nonzero): Likewise. Update now that we have a
11194 single global varray of SSA_NAMEs that need restoring.
11195 (dom_opt_initialize_block_local_data): Kill, no longer used.
11196 (tree_ssa_dominator_optimize): Initialize new global varrays.
11197 Update callbacks in dominator walker structure.
11198 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
11199 VRP_VARIABLES_STACK.
11200 (restore_nonzero_vars_to_original_value): Update now that we have
11201 a single global varray of SSA_NAMEs that need restoring.
11202 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
11203 Remove unused variables.
11204 (optimize_stmt): Remove unused variable.
11206 2004-09-18 Jan Hubicka <jh@suse.cz>
11208 * tree-cfg.c (thread_jumps): Fix updating of the profile.
11210 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
11211 verify_cgraph call.
11213 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11215 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
11216 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
11217 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
11218 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
11219 tree-ssa-operands.c, tree-ssa-phiopt.c,
11220 tree-ssa-threadupdate.c: Fix comment typos.
11222 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11224 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
11225 config/arm/README-interworking, config/arm/arm-cores.def,
11226 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
11227 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
11228 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
11229 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
11230 config/frv/frv.md, config/i386/winnt.c,
11231 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
11232 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
11233 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
11234 config/mcore/mcore.c, config/mips/mips.h,
11235 config/mn10300/mn10300.md, config/pa/pa.c,
11236 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
11237 config/rs6000/rs6000.c, config/sh/symbian.c,
11238 config/sparc/sparc.h: Fix comment typos. Follow spelling
11241 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
11244 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
11246 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11248 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
11249 remove TREE_ADDRESSABLE from RESULT_DECL.
11251 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11253 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
11255 2004-09-18 Jan Hubicka <jh@suse.cz>
11257 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
11259 * tree-ssa-alias.c (init_alias_info): Likewise.
11260 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
11261 (verify_ssa): Likewise.
11262 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
11264 2004-09-18 Jan Hubicka <jh@suse.cz>
11266 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
11269 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
11271 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
11272 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11273 DW_EH_PE_sdata* for data.
11274 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11276 2004-09-17 Geoffrey Keating <geoffk@apple.com>
11278 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
11282 * c-typeck.c (constructor_asmspec): Delete.
11283 (struct initializer_stack): Delete field 'asmspec'.
11284 (start_init): Delete saving of asmspec.
11285 (finish_init): Don't update constructor_asmspec.
11286 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
11287 * stmt.c (expand_asm): Duplicate strings from tree.
11288 (expand_asm_operands): Likewise.
11289 * tree.c (tree_size): Update computation of size of STRING_CST.
11290 (make_node): Don't make STRING_CST nodes.
11291 (build_string): Allocate string with tree node.
11292 (tree_code_size): Clean up assertions, don't allow requests
11293 for "the size of a STRING_CST".
11294 * tree.def (STRING_CST): Update comment.
11295 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
11296 (tree_string): Place contents of string in tree node.
11297 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
11300 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11302 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
11303 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
11305 2004-09-17 Jones Desougi <jones@ingate.com>
11307 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
11308 * configure, config.in: Regenerate.
11310 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11312 * tree.c, tree.h (tree_class_strings): Make array const.
11313 Reindent per coding convention. Move asterisk to proper place
11314 per coding convention.
11316 2004-09-18 Andreas Schwab <schwab@suse.de>
11318 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
11319 (tree-vectorizer.o): Likewise.
11320 (targhooks.o): Likewise.
11322 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
11323 Zack Weinberg <zack@codesourcery.com>
11325 * alias.c (find_base_decl): Remove unreachable case '3' block.
11326 * expr.c (safe_from_p): Abort if passed a type.
11327 * tree-gimple.c (recalculate_side_effects): Abort if passed
11328 anything other than an expression.
11329 * tree-ssa-pre.c (phi_translate): Return expr immediately if
11330 is_gimple_min_invariant is true for it. Reorder cases for clarity.
11331 Abort on un-handled tree classes.
11332 (valid_in_set): Likewise.
11333 * tree.c (tree_code_class_strings): New static data.
11335 * tree.h (enum tree_code_class): New.
11336 (tree_code_class_strings): Declare.
11337 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
11338 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
11339 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
11340 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
11341 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
11343 * tree.def, c-common.def, objc/objc-tree.def: Use
11344 tree_code_class enumeration constants instead of code letters.
11346 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
11347 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
11348 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
11349 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
11350 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
11351 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
11352 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
11353 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
11354 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
11355 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
11356 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
11357 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
11358 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
11361 * LANGUAGES: Add note about change.
11363 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11365 PR tree-optimization/17319
11366 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
11367 examine pointers on the LHS of an assignment.
11368 (collect_points_to_info_r): Handle RETURN_EXPR.
11370 2004-09-17 Jeff Law <law@redhat.com>
11372 * tree-ssa-dom.c (const_and_copies_stack): New.
11373 (dom_walk_block_data): Remove const_and_copies field.
11374 (record_const_or_copy): No longer need to pass in varray_type *.
11375 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
11377 (record_equality): Similarly.
11378 (restore_vars_to_original_value): Similarly. Revamp to use new
11379 single global stack rather than per-block stacks.
11380 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
11381 (thread_across_edge): Remove now unused parameters.
11382 (dom_opt_initialize_block_local_data): No longer test the block
11383 local CONST_AND_COPIES.
11384 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
11386 2004-09-17 Jan Hubicka <jh@suse.cz>
11388 PR tree-optimization/17509
11389 * tree-optimize.c (update_inlined_to_pointers): New function.
11390 (tree_rest_of_compilation): Use it.
11392 2004-09-17 Devang Patel <dpatel@apple.com>
11394 * dbxout.c (get_lang_number): New.
11395 (dbxout_init): Include lang number in N_SO stab.
11396 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
11397 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
11399 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11401 PR tree-optimization/17273
11402 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
11403 replacement is a constant.
11405 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
11407 * c-tree.h (enum c_typespec_keyword): New.
11408 (struct c_declspecs): Adjust description of "type". Remove
11409 specbits, explicit_int_p and explicit_char_p. Rename
11410 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
11411 short_p, signed_p, unsigned_p and complex_p.
11412 (finish_declspecs): New.
11413 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
11414 typename): Call finish_declspecs.
11415 * c-decl.c (finish_declspecs): New.
11416 (declspecs_add_type): Check for combinations which cannot occur in
11417 valid specifier lists. Update comments.
11418 (shadow_tag_warned): Remove checks done in finish_declspecs.
11419 Don't report useless type name if type defaulted to int.
11420 (grokdeclarator): Remove checks and actions done in
11421 finish_declspecs. Don't allow for type being NULL. Update for
11422 datastructures changes. Initialize decl_attr.
11423 (build_null_declspecs, quals_from_declspecs): Update for
11424 datastructures changes.
11426 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
11428 * doc/extend.texi: Fix duplicated word.
11430 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
11432 * doc/invoke.texi: Remove stray explanation on
11433 -freduce-all-givs and -fmove-all-movables.
11435 2004-09-17 James Morrison <phython@gcc.gnu.org>
11437 * doc/cfg.texi: Use @smallexample.
11438 * doc/md.texi: Likewise.
11439 * doc/tree-ssa.texi: Likewise.
11440 * doc/extend.texi: Likewise. Use @r{} in comments.
11441 * doc/trouble.texi: Use @r{} in comments.
11443 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
11445 * configure.ac (gcc_cv_gld_version): Handle whitespace before
11447 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
11448 * configure: Regenerate.
11450 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
11452 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
11453 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
11454 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
11455 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
11456 slashes in substitutions.
11457 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
11459 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11461 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
11462 gimplify.c, lambda-code.c, optabs.c, predict.c,
11463 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
11464 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
11467 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11469 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
11470 doc/extend.texi, doc/install.texi, doc/invoke.texi,
11471 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
11472 doc/trouble.texi: Use @option around options.
11474 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
11476 * Makefile.in (gen-protos.o): Depend on errors.h.
11478 2004-09-17 Steven Bosscher <stevenb@suse.de>
11480 PR tree-optimization/17513
11481 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
11482 for successors of the entry block.
11484 2004-09-17 Uros Bizjak <uros@kss-loka.si>
11486 PR rtl-optimization/15187
11487 * ifcvt.c (noce_try_cmove_arith): Exit early if total
11488 insn_rtx_cost of both branches > BRANCH_COST
11490 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11492 PR tree-optimization/17528
11493 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
11494 erase the may-alias set for a tag when merging it with
11497 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11499 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
11500 for 32-bit TARGET_SHMEDIA.
11501 (call_value): Likewise.
11503 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11505 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
11506 test apply only to TREE_STATIC and DECL_EXTERNAL.
11508 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11510 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
11511 * basic-block.h (get_dominated_by_region): Declare.
11512 * dominance.c (get_dominated_by_region): New function.
11513 * tree-cfg.c: Include cfglayout.h.
11514 (tree_duplicate_bb): Duplicate also phi nodes.
11515 (struct ssa_name_map_entry): New type.
11516 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
11517 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
11518 allocate_ssa_names, rewrite_to_new_ssa_names_def,
11519 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
11520 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
11521 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
11522 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
11523 rewrite_to_new_ssa_names, allocate_ssa_names,
11524 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
11525 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
11526 (copy_loop_headers): Use tree_duplicate_sese_region.
11528 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
11530 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
11532 2004-09-16 Jeff Law <law@redhat.com>
11534 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
11535 (rewrite_block_data): Remove, no longer used.
11536 (rewrite_initialize_block_local_data): Remove, no longer used.
11537 (rewrite_initialize_block): Mark parameters as unused as needed.
11538 Change references to the block local block_defs to be block_defs_stack.
11539 Push a marker onto the block_defs_stack.
11540 (ssa_rewrite_initialize_block): Similarly.
11541 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
11542 (ssa_register_new_def): No longer needs varray argument. Use
11543 block_defs_stack instead. No longer handle possibly null block_defs
11544 varray. Reverse order of items we push on the stack to make it
11545 easier to identify our marker.
11546 (register_new_def): No longer handle possibly null block_defs
11548 (rewrite_finalize_block): Revamp to look for markers in the global
11549 block_defs_stack varray rather than wiping a block local varray.
11550 Mark arguments as unused as needed.
11551 (ssa_rewrite_finalize_block): Similarly.
11552 (rewrite_into_ssa): Update initialization of dom walker structure
11553 to reflect that we don't need block local data anymore. Initialize
11554 the block_defs_stack varray.
11555 (rewrite_ssa_into_ssa): Similarly.
11556 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
11557 (struct dom_walk_data): Kill block_defs field.
11558 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
11559 (thread_across_edge): Use the global block_defs_stack instead of
11560 the old block_defs varray.
11561 (dom_opt_initialize_block_local_data): Update now that we don't have
11562 block_defs field to check anymore.
11563 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
11564 (restore_currdefs_to_original_value): Use the new block_defs_stack
11565 instead of a block local varray.
11566 (dom_opt_finalize_block): Similarly.
11567 (record_equivalencs_from_phis): Similarly.
11568 (optimize_stmt, register_definitions_for_stmt): Similarly.
11570 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
11572 PR tree-optimization/17517
11573 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11574 coalesce same-root variables without checking for abnormal PHI usage.
11576 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11578 * cfgloop.h (duplicate_loop): Add prototype.
11579 * cfgloopmanip.c (duplicate_loop): Make non-static.
11580 * lambda-code.c (perfect_nestify): Factor out test whether
11581 we can handle this loop into separate function.
11583 (can_convert_to_perfect_nest): New function.
11584 (replace_uses_of_x_with_y): Add modify_stmt call.
11585 * tree-loop-linear.c (linear_transform_loops): Call
11586 rewrite_into_loop_closed_ssa and free_df.
11588 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11590 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
11591 loop invariant as well.
11592 (perfect_nestify): new function.
11593 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
11594 upper bounds, and steps.
11595 Set outerinductionvar properly.
11596 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
11598 Return NULL if we need a perfect loop and can't make one.
11599 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
11600 (not_interesting_stmt): New function.
11601 (phi_loop_edge_uses_def): Ditto.
11602 (stmt_uses_phi_result): Ditto.
11603 (stmt_is_bumper_for_loop): Ditto.
11604 (perfect_nest_p): Ditto.
11605 (nestify_update_pending_stmts): Ditto.
11606 (replace_uses_of_x_with_y): Ditto.
11607 (stmt_uses_op): Ditto.
11608 (perfect_nestify): Ditto.
11609 * lambda-mat.c (lambda_matrix_id_p): New function.
11610 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
11611 * lambda.h: Update prototypes.
11612 * tree-loop-linear (linear_transform_loop): Use new
11613 perfect_nest_p. Detect and ignore identity transform.
11614 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
11616 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
11618 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
11619 Gather also strides of accessed data. Pass in the data references
11621 (try_interchange_loops): Add a new heuristic for handling the temporal
11622 locality. Pass in the data references array.
11623 (linear_transform_loops): Pass the data references array to
11624 try_interchange_loops.
11626 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
11628 * doc/invoke.texi: Fix typos. Follow spelling conventions.
11630 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
11632 * doc/c-tree.texi (Classes): Remove index entries for
11633 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
11635 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11637 * fold-const.c (fold): Fold difference of addresses.
11638 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
11639 get_inner_reference.
11640 * tree-ssa-loop-ivopts.c (peel_address): Removed.
11641 (ptr_difference_const): Moved to fold-const.c.
11642 (split_address_cost): Use get_inner_reference instead of peel_address.
11643 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
11644 * tree.h (ptr_difference_const): Export.
11646 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
11647 variable type to the dump. Fix indentation.
11648 (idx_find_step): Handle nonconstant array_ref_element_size and
11649 array_ref_low_bound.
11650 (idx_record_use): Handle array_ref_element_size and
11651 array_ref_low_bound.
11652 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
11653 statements correctly.
11654 (get_computation_at, iv_value): Do not unshare expressions here.
11655 (rewrite_use_outer): Unshare the expression before it is emitted
11657 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
11659 * tree.c (unsigned_type_for, signed_type_for): Moved from
11660 tree-ssa-loop-niter.c. Use langhooks.
11661 * tree.h (signed_type_for): Export.
11663 2004-09-16 David Edelsohn <edelsohn@gnu.org>
11665 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
11668 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
11671 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
11672 Add two parameters to extra_includes.
11673 (C_INCPATH_INIT): Remove.
11674 * c-incpath.c (register_include_chains): Call extra_pre_includes
11675 before adding the standard include directory.
11676 Update call to extra_includes.
11677 (!defined TARGET_EXTRA_INCLUDES): Update
11678 hook_void_charptr_charptr_int and add !define
11679 TARGET_EXTRA_PRE_INCLUDES.
11680 (!define TARGET_EXTRA_INCLUDES): Define as
11681 hook_void_charptr_charptr_int.
11682 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11683 (target_c_incpath): Always declare.
11684 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
11686 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11687 * config/darwin.h: (darwin_register_frameworks): Update for
11688 the two new parameters.
11689 (darwin_register_objc_includes): Add prototype.
11690 (TARGET_EXTRA_PRE_INCLUDES): Define.
11691 * config/darwin-c.c (darwin_register_objc_includes): New function.
11692 (darwin_register_frameworks): Update for the two new parameters.
11693 (target_c_incpath): Remove.
11694 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
11696 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
11698 (TARGET_EXTRA_PRE_INCLUDES): Document.
11700 * gcc.c (spec_function): Add replace-outfile.
11701 (replace_outfile_spec_function): New function.
11702 * config/darwin.h (LINK_SPEC): Add replace
11703 -lobjc with -lobjc-gnu if -fgnu-runtime is
11705 * invoke.texi (replace-outfile): Document.
11707 2004-09-13 Jan Hubicka <jh@suse.cz>
11709 * predict.c (expr_expected_value, strip_builtin_expect): New function.
11710 (tree_predict_by_opcode): Use it.
11711 (tree_estimate_probability): Add, for now disabled,
11712 strip_builtin_expect call.
11714 2004-09-15 James E Wilson <wilson@specifixinc.com>
11717 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
11718 if current_function_decl is a sibcall.
11720 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11722 * varasm.c (default_function_rdodata_section): Make sure to pass
11723 along a decl for a link-once section.
11725 2004-09-15 Richard Henderson <rth@redhat.com>
11727 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
11728 warning with code disable. Fix formatting.
11730 2004-09-15 Steven Bosscher <stevenb@suse.de>
11732 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
11733 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
11734 after propagating into an ADDR_EXPR.
11736 2004-09-15 Andrew Pinski <apinski@apple.com>
11739 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
11740 Move it out of gcc_assert.
11742 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
11744 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
11745 except.c, fold-const.c, function.c, langhooks.c, params.c,
11746 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
11747 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
11748 for quoting in diagnostics going through pretty-print.c. Use ''
11749 for quoting in other diagnostic text.
11750 * langhooks.c: Include intl.h. Mark text locating diagnostics for
11752 * Makefile.in (langhooks.o): Update dependencies.
11753 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
11756 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11758 * configure.ac: Check for COMDAT support. Robustify check for
11760 * configure: Regenerated.
11761 * config.in: Likewise.
11762 * langhooks-def.h (lhd_comdat_group): New function.
11763 (LANG_HOOKS_COMDAT_GROUP): New macro.
11764 (LANG_HOOKS_DECLS): Use it.
11765 * langhooks.c (lhd_comdat_group): Define.
11766 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
11767 * output.h (named_section_flags): Make it a macro.
11768 (named_section_real): New function.
11769 (default_no_named_section): Add decl parameter.
11770 (default_elf_asm_named_section): Likewise.
11771 (default_coff_asm_named_section): Likewise.
11772 (default_pe_asm_named_section): Likewise.
11773 * target.h (gcc_target): Adjust type of named_section.
11774 * varasm.c (named_section_flags): Rename to named_section_real.
11775 Add decl parameter.
11776 (default_no_named_section): Add decl parameter.
11777 (default_elf_asm_named_section): Use COMDAT, if available. Deal
11778 with the case that ASM_COMMENT_START is "@".
11779 (default_coff_asm_named_section): Add decl parameter.
11780 (default_pe_asm_named_section): Likewise.
11781 * config/alpha/alpha.c (vms_asm_named_section): Add decl
11783 (unicosmk_asm_named_section): Likewise.
11784 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
11785 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
11786 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
11787 * config/cris/cris-protos.h (cris_target_asm_named_section):
11789 * config/cris/cris.c (cris_target_asm_named_section):
11791 * config/darwin/darwin-protos.h (darwin_asm_named_section):
11793 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
11794 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
11795 * config/i386/i386-protos.h (i386_pe_asm_named_section):
11797 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
11798 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
11799 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
11800 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
11802 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
11803 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
11804 * cp/cp-tree.h (cxx_comdat_group): Declare.
11805 * cp/decl.c (cxx_comdat_group): New function.
11807 2004-09-15 Jan Hubicka <jh@suse.cz>
11809 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
11810 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
11812 * tree-cfg.c (remove_bb): Release SSA defs.
11814 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
11816 * doc/tm.texi: Follow spelling conventions.
11818 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
11820 * tree-ssa-dom.c: Fix comment typos.
11822 2004-09-15 Alan Modra <amodra@bigpond.net.au>
11824 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
11826 (ppc_fallback_frame_state): Save location of CR.
11828 2004-09-15 Jakub Jelinek <jakub@redhat.com>
11830 * expr.c (string_constant): Handle also read-only variables
11831 initialized to string literals.
11833 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
11834 into memcpy (x, y, 1) if memcpy can be expanded inline.
11836 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11838 PR tree-optimization/17468
11839 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
11840 definition inside a block precede uses.
11841 * tree-tailcall.c (adjust_return_value): Emit statements in the
11844 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
11846 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
11848 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
11850 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
11852 2004-09-14 Jeff Law <law@redhat.com>
11854 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
11855 (struct dom_walk_block_data): Remove avail_exprs member.
11856 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
11857 (lookup_avail_expr): No longer need to pass in address of
11858 the block local available exprs stack. All callers changed.
11859 (simplify_cond_and_lookup_avail_expr): Similarly.
11860 (simplify_switch_and_lookup_avail_expr): Similarly.
11861 (get_eq_expr_value, record_cond): Likewise.
11862 (record_dominating_conditions): Likewise.
11863 (update_rhs_and_lookup_avail_expr): Likewise.
11864 (record_equivalences_from_stmt): Likewise.
11865 (dom_opt_initialize_block_local_data): No longer test state of
11866 block local avail_exprs.
11867 (dom_opt_initialize_block): Mark unwind point in the global
11869 (remove_expressions_from_table): Update to unwind to the
11870 most recent unwind marker in the global avail_expr stack.
11871 All callers changed.
11872 (dom_opt_finalize_block): Mark unwind point in the global
11873 avail_expr stack as needed.
11874 (record_cond): Push elements into the global avail_exprs stack.
11876 * tree-dfa.c (free_df_for_stmt): No longer static.
11877 (free_df): Update comments.
11878 * tree-flow.h (free_df_for_stmt): Prototype.
11879 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
11882 2004-09-14 Diego Novillo <dnovillo@redhat.com>
11884 PR tree-optimization/17252
11885 * tree-ssa-alias.c (may_alias_p): Don't assume that a
11886 pointer may not point to itself when using relaxed
11889 2004-09-14 Richard Henderson <rth@redhat.com>
11891 PR middle-end/17397
11892 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
11893 while folding <ADDR_EXPR <INDIRECT_REF X>>.
11895 2004-09-14 Andrew Pinski <apinski@apple.com>
11897 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
11898 sets of the pointers but the aliasing sets of what they point to.
11900 2004-09-14 Roger Sayle <roger@eyesopen.com>
11902 PR rtl-optimization/9771
11903 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
11904 conditional compilation in init_reg_sets_1.
11905 (init_reg_sets_1): Let global_regs[i] take priority over the frame
11906 (but not stack) pointer exceptions to regs_invalidated_by_call.
11907 (globalize_reg): Globalizing a fixed register may need to update
11908 regs_invalidated_by_call.
11910 2004-09-14 Diego Novillo <dnovillo@redhat.com>
11912 PR tree-optimization/15262
11913 * tree-dfa.c (dump_variable): Also print the type of the
11915 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
11916 memory tags are of conflicting alias sets but have no aliased
11917 symbols in common, add one tag to the alias set of the other.
11918 (setup_pointers_and_addressables): Remove hack to deal with
11919 programs with no aliased symbols.
11920 (may_alias_p): Don't special case aggregate types.
11922 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
11925 * doc/invoke.texi (Environment Variables): Correct example locale.
11927 2004-09-14 Jan Hubicka <jh@suse.cz>
11929 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
11931 2004-09-14 Mark Mitchell <mark@codesourcery.com>
11933 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
11935 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
11937 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
11939 (struct c_declarator): Change u.array.quals and pointer_quals to
11940 int. Add u.array.attrs.
11941 (quals_from_declspecs): New.
11942 * c-decl.c (quals_from_declspecs): New.
11943 (shadow_tag_warned): Give more specific message for useless type
11945 (build_array_declarator, set_array_declarator_inner,
11946 grokdeclarator, make_pointer_declarator, build_null_declspecs,
11947 declspecs_add_qual): Update for changed structures.
11949 2004-09-14 Jeff Law <law@redhat.com>
11951 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
11952 to a global varray.
11953 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
11954 (dom_opt_initialize_block_local_data): No longer test state
11955 of stmts_to_rescan.
11956 (dom_opt_finalize_block): Update due to change in scope of
11958 (optimize_stmt): Similarly.
11960 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11962 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
11963 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
11964 comment typos. Follow spelling conventions.
11966 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11968 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
11969 config/i386/predicates.md, config/sparc/sparc.c: Follow
11970 spelling conventions.
11972 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11973 Steven Bosscher <stevenb@suse.de>
11975 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
11976 * basic-block.h (struct reorder_block_def): Add copy_number field.
11977 * cfgloop.h (biv_p): Declare.
11978 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
11979 * common.opt (fsplit-ivs-in-unroller): New flag.
11980 * loop-iv.c (biv_p): New function.
11981 * loop-unroll.c: Include hashtab.h and recog.h.
11982 (struct iv_to_split, struct split_ivs_info): New types.
11983 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
11984 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
11985 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
11986 insert_base_initialization, split_iv): New functions.
11987 (peel_loop_completely, unroll_loop_constant_iterations,
11988 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
11990 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
11992 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11994 * tree-cfg.c (thread_jumps): Update dominators correctly in
11995 case destination of threaded edge dominates its source.
11997 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11999 * unroll.c: Removed.
12001 * Makefile.in (LOOP_H, unroll.o): Removed.
12002 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
12004 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
12006 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
12007 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
12008 * loop.c: Do not include loop.h.
12009 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
12010 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
12011 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
12012 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
12013 struct loop_regs, struct loop_movables, struct loop_info): Moved
12015 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
12016 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
12017 find_common_reg_term, loop_iterations, final_giv_value): Moved
12019 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
12020 loop_dump_stream, for_each_insn_in_loop, express_from,
12021 extend_value_for_giv, loop_iv_add_mult_emit_before,
12022 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
12023 loop_insn_first_p, get_condition_for_loop,
12024 loop_insn_emit_before, loop_insn_hoist,
12025 loop_insn_sink): Made static.
12026 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
12028 (strength_reduce): Do not call unroller.
12029 (record_giv): Do not initialize unrolled field.
12030 (prescan_loop): Do not set loop_info->preconditioned.
12031 * passes.c: Do not include loop.h.
12032 (rest_of_handle_loop_optimize): Do not call unroller.
12033 * predict.c: Do not include loop.h.
12034 * rtl.h (NOTE_PRECONDITIONED): Removed.
12035 * stmt.c: Do not include loop.h.
12036 * toplev.c: Do not include loop.h.
12037 (process_options): Do not handle flag_old_unroll_loops.
12039 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
12040 Documentation removed.
12041 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
12043 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
12045 * Makefile.in (STAGE1_CHECKING): New variable.
12046 (stage1_build): Use it.
12047 * tree-ssa.c (verify_ssa): Preserve state of dominance
12050 2004-09-14 Uros Bizjak <uros@kss-loka.si>
12052 * config/i386/i386.c (output_fp_compare): Add generation
12053 of ftst instruction.
12054 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
12055 Use output_fp_compare () function.
12056 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
12057 (fix_truncdi_memory): Remove operands[5] copy.
12059 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
12061 * config/m32r/m32r.md, config/m68k/m68kelf.h,
12062 config/mcore/mcore.md, config/rs6000/linux64.h,
12063 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
12066 2004-09-13 James E Wilson <wilson@specifixinc.com>
12068 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
12069 * gen-protos.c: Include errors.h.
12070 (progname): Delete.
12072 2004-09-14 Jan Hubicka <jh@suse.cz>
12074 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
12075 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
12076 (predict_loops): Use number_of_iterations_exit to predict
12077 number of iterations on trees.
12079 2004-09-13 Dale Johannesen <dalej@apple.com>
12083 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
12084 objects declared extern.
12086 2004-09-14 Paul Brook <paul@codesourcery.com>
12088 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
12091 2004-09-13 Daniel Jacobowitz <dan@debian.org>
12093 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
12094 Only use TYPE_BINFO for aggregates.
12096 2004-09-13 Daniel Jacobowitz <dan@debian.org>
12098 * expmed.c (synth_mult): Initialize latency. Check cost before
12099 checking ops count.
12101 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
12103 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
12104 add_call_clobber_ops and add_call_read_ops.
12105 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
12106 the number of vdefs and vuses inserted based on analysis of global
12107 variables across calls. * tree-dfa.c (find_referenced_vars):
12108 Needed to reset static var maps before each function is compiled.
12110 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
12111 static_vars_info,functions_to_static_vars_info,module_statics_escape,
12112 all_module_statics,searchc_env,dfs_info): New fields to support
12113 analysis of static global variables.
12114 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
12115 cgraph_reset_static_var_maps, get_global_static_vars_info,
12116 get_global_statics_not_read, get_global_statics_not_written,
12117 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
12118 check_rhs_var, check_lhs_var, get_asm_expr_operands,
12119 process_call_for_static_vars, scan_for_static_refs,
12120 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
12121 clear_static_vars_maps, cgraph_propagate_bits,
12122 cgraph_characterize_statics): New. Functions to support analysis
12123 of static global variables.
12124 (cgraph_mark_local_and_external_functions): Renamed from:
12125 (cgraph_mark_local_functions)
12126 (cgraph_expand_all_functions): Remove call to
12127 cgraph_mark_local_and_external_functions.
12128 (cgraph_optimize): Added driver to analyze static variables whose
12129 scope is within the compilation unit. * cgraph.h (struct
12130 cgraph_local_info, GTY): Added statics_read, statics_written,
12131 local, calls_read_all, calls_write_all, for_functions_valid.
12132 (struct cgraph_node): Added next_cycle. * cgraph.c
12133 (dump_cgraph_node): Added print routines for new fields. *
12134 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
12137 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
12139 * c-decl.c (grokdeclarator): Correct comments about where storage
12140 class specifiers are rejected by grammar and add corresponding
12141 asserts. Diagnose typedefs and parameters declared inline.
12142 Change warning for inline main to a pedwarn. Only diagnose inline
12144 (declspecs_add_scspec): Allow duplicate "inline".
12146 2004-09-13 Steve Ellcey <sje@cup.hp.com>
12148 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
12149 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12151 2004-09-13 Richard Henderson <rth@redhat.com>
12154 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
12155 (tree_type): Replace spare with contains_placeholder_bits.
12156 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
12157 make static. Remove seen_types list.
12158 (type_contains_placeholder_p): New.
12160 2004-09-13 James E Wilson <wilson@specifixinc.com>
12162 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
12163 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
12164 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
12165 bdesc_arrays instead of mips_bdesc.
12166 (mips_init_builtins): Likewise.
12167 * config/mips/mips.h (TARGET_SB1): New.
12168 (HAVE_SQRT_P): Delete.
12169 * config/mips/mips.md (divide_condition): Support V2SF.
12170 (sqrt_condition, recip_condition): New.
12171 (div<mode>3): Use ANYF instead of SCALARF.
12172 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
12174 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
12175 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
12177 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
12178 instead of SCALARF. Use UNITMODE instead of MODE.
12180 2004-09-13 Zack Weinberg <zack@codesourcery.com>
12182 * config.in: Regenerate after removal of libbanshee.
12184 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
12186 PR tree-optimization/17400
12187 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12188 coalesce partitions when one occurs in an abnormal PHI.
12190 2004-09-13 Andrew Pinski <apinski@apple.com>
12192 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
12195 2004-09-13 Richard Henderson <rth@redhat.com>
12198 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
12199 (cselib_invalidate_rtx_note_stores): New.
12200 (cselib_record_sets, cselib_process_insn): Update to match.
12201 * cselib.h (cselib_invalidate_rtx): Declare.
12202 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
12204 2004-09-13 Richard Henderson <rth@redhat.com>
12207 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
12208 after copying its argument.
12210 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
12212 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
12213 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
12214 in diagnostics. Use %' for English apostrophes.
12215 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
12216 (pedwarn_c90, pedwarn_c99): Use it.
12217 * c-decl.c (lookup_label): Quote label name in diagnostic.
12218 * c-parse.in (yyprint): Use ' instead of ` for left quote.
12219 * c-typeck.c (warn_for_assignment): Likewise.
12221 2004-09-13 Jan Hubicka <jh@suse.cz>
12223 * i386.c (x86_schedule): New global variable.
12224 (override_options): Disable scheduling when not supported.
12225 * i386.h (x86_schedule): Declare.
12226 (TARGET_SCHEDULE): New macro.
12228 2004-09-12 Richard Henderson <rth@redhat.com>
12231 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
12232 * tree.c, tree.h (has_cleanups): Remove.
12234 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12236 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
12237 arguments of the phi nodes correctly.
12239 2004-09-12 Jan Hubicka <jh@suse.cz>
12241 * ggc-common.c (cmp_statistics): Fix sorting.
12243 2004-09-12 David Edelsohn <edelsohn@gnu.org>
12246 * expmed.c (expand_divmod): If cheap power of 2 divide is
12247 available, use it for negative constant as well.
12249 2004-09-12 Andrew Pinski <apinski@apple.com>
12251 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
12254 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
12256 2004-09-12 Richard Henderson <rth@redhat.com>
12258 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
12260 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
12261 post-reload, and scratch NULL.
12262 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
12263 (x86_shift_adj_2): Use ix86_expand_clear.
12264 (ashldi3): Remove CMOVE expansion difference.
12265 (ashldi3_1): Remove.
12266 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
12267 add constraints for immediates. New peephole for split-with-temp.
12268 Run splitter after peep2 pass.
12269 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
12270 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
12271 (setcc_2): Rename with *.
12272 * config/i386/predicates.md (reg_or_pm1_operand): New.
12273 (ashldi_input_operand): New.
12275 2004-09-12 Richard Henderson <rth@redhat.com
12277 * print-rtl.c (print_decl_name): New.
12278 (print_mem_expr): Use it.
12280 2004-09-12 Richard Henderson <rth@redhat.com
12282 PR 17186, part deux
12283 * except.c (sjlj_emit_function_exit): Fix logic locating
12284 sjlj_exit_after in final block.
12286 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
12288 * common.opt: Remove flags -fmove-all-movables and
12290 * loop-invariant.c (find_invariants_to_move):
12291 Remove all uses of flag_move_all_movables.
12292 * loop.c (move_movables): Remove all uses of
12293 flag_move_all_movables.
12294 (strength_reduce): Remove all uses of
12295 flag_reduce_all_givs.
12296 * doc/invoke.texi: Remove documentation of flags
12297 -fremove-all-movables and -freduce-all-givs.
12299 2004-09-11 Roger Sayle <roger@eyesopen.com>
12301 PR middle-end/17411
12302 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
12303 change. elt->type may be a floating point type, so use fold_convert.
12305 2004-09-11 Geoffrey Keating <geoffk@apple.com>
12307 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
12308 the thing referenced as used, not the stub itself.
12310 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12312 * c-tree.h (enum c_storage_class): New.
12313 (struct c_declspecs): Add storage_class, inline_p and thread_p.
12314 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
12315 declarations and "auto" or "register" in file scope empty
12316 declarations. Give more specific warnings for other cases of
12317 storage class specifiers in empty declarations.
12318 (grokdeclarator): Update for new structures. Don't check for
12319 multiple storage classes. Diagnose file-scope "register" if
12321 (build_null_declspecs): Update.
12322 (declspecs_add_scspec): Update. Diagnose multiple storage class
12323 specifiers and invalid uses of "__thread".
12325 2004-09-11 Zack Weinberg <zack@codesourcery.com>
12327 * tree.c (tree_code_size): New function, bulk of code from tree_size.
12328 (tree_size, make_node): Use it.
12329 * tree-ssa-pre.c (init_pre): Use it.
12330 * tree.h: Prototype it.
12332 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12334 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
12335 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
12336 redirect_immediate_use): Use PHI_DF.
12337 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
12338 (bb_for_stmt): Use PHI_BB.
12339 (get_immediate_uses): Use PHI_DF.
12340 * tree-ssa-dse.c (max_stmt_uid): New variable.
12341 (get_stmt_uid): New function.
12342 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
12344 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
12345 (max_uid): Renamed to max_stmt_uid.
12346 (get_stmt_uid): New function.
12347 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
12348 phi node annotations.
12349 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
12350 * tree.h (PHI_BB, PHI_DF): New accessor functions.
12351 (struct tree_phi_node): Add bb and df fields.
12353 2004-09-11 Richard Henderson <rth@redhat.com>
12355 PR middle-end/17416
12356 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
12359 2004-09-11 Jan Hubicka <jh@suse.cz>
12361 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
12362 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
12363 * i386.md (i387_cw): Add 'uninitialized' mode.
12365 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
12366 (output_location): Break out from ....
12367 (branch_prob): ... here; handle gcov output on trees.
12368 * toplev.c (process_options): No longer be sorry about coverage for
12371 2004-09-11 Steven Bosscher <stevenb@suse.de>
12374 * fold-const.c (fold): Do not try to fold the operand of a
12375 CLEANUP_POINT_EXPR if that operand does itself not have any
12378 PR middle-end/17417
12379 * langhooks.c (lhd_decl_printable_name): Make sure that this
12380 function is called with is a decl node that has an identifier.
12381 * tree-pretty-print.c (dump_function_name): New function to
12382 wrap PRINT_FUNCTION_NAME and dump_decl_name.
12383 (print_call_name): Use it.
12385 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
12387 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
12390 2004-09-11 Jakub Jelinek <jakub@redhat.com>
12392 * tree-ssa-alias.c (collect_points_to_info_r): Handle
12393 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
12396 2004-09-11 Richard Henderson <rth@redhat.com>
12398 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
12399 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
12400 operand of the ADDR_EXPR.
12401 (expand_expr_real_1): Update to match.
12403 2004-09-11 David Edelsohn <edelsohn@gnu.org>
12406 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
12407 choose 64-bit version.
12409 2004-09-11 Richard Henderson <rth@redhat.com>
12412 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
12414 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
12416 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
12417 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
12418 Insert @: after i.e. or e.g.
12420 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12422 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
12423 D.xxx rather than <Dxxx>.
12425 2004-09-10 Adam Nemet <anemet@lnxw.com>
12427 * configure.ac (AC_MSG_CHECKING(what linker to use)):
12428 in_tree_ld_is_elf should be true for LynxOS.
12429 * configure: Regenerate.
12431 2004-09-10 Adam Nemet <anemet@lnxw.com>
12433 * Makefile.in (all.cross): Add srcextra.
12435 2004-09-10 Roger Sayle <roger@eyesopen.com>
12437 PR middle-end/17024
12438 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
12439 floating point comparison operators. Change aborts to gcc_asserts.
12441 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12443 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
12445 2004-09-10 James E Wilson <wilson@specifixinc.com>
12447 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
12448 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
12450 * convert.c (convert_to_vector): Replace recursive call with
12453 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
12454 Add integer argument named constant. Use const_tiny_rtx instead of
12456 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
12458 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
12460 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
12461 of gen_rtx_raw_CONST_VECTOR.
12463 2004-09-10 Eric Christopher <echristo@redhat.com>
12466 * c-parse.in (attribute): Add NULL_TREE for error case
12467 for error recovery.
12469 2004-09-10 Zack Weinberg <zack@codesourcery.com>
12471 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
12472 (extract_interface_info): Delete prototype.
12473 * c-decl.c (extract_interface_info): Delete stub.
12474 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
12475 it's not already been done ...
12476 (init_c_lex): ... not here.
12477 (fe_file_change): Don't call extract_interface_info.
12479 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12481 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
12482 typedef_p and typedef_signed_p.
12483 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
12484 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
12485 Check typedef_p and typedef_signed_p, not typedef_decl.
12486 (grokfield): Check typedef_p, not typedef_decl.
12487 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
12489 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
12492 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12494 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
12496 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12498 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
12499 temporary variables.
12501 * dbxout.c (dbxout_block): Update for
12502 current_function_func_begin_label a string.
12503 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
12504 * except.c (dw2_output_call_site_table): Likewise.
12505 * toplev.c (current_function_func_begin_label): Likewise.
12506 * tree.h (current_function_func_begin_label): Likewise.
12507 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
12509 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
12512 * config/darwin.c: Include target.h.
12513 (struct machopic_indirection): Make ptr_name a string.
12514 (machopic_indirection_hash): Update for ptr_name a string.
12515 (machopic_indirection_eq): Likewise.
12516 (machopic_indirection_name): Likewise.
12517 (machopic_output_indirection): Likewise.
12518 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
12519 string. Don't expect stub names to be in the identifier hash table.
12520 Do call strip_name_encoding before looking up entry in ID hash table.
12521 * config/t-darwin (darwin.o): Add target.h to dependencies.
12523 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
12524 of fprintf for register names.
12526 * output.h (unlikely_section_label): Delete declaration.
12527 (unlikely_text_section_name): Likewise.
12528 * varasm.c (unlikely_section_label_printed): Make static.
12529 (unlikely_section_label): Likewise.
12530 (unlikely_text_section_name): Likewise.
12531 (assemble_start_function): Use reconcat.
12533 * rtl.def (REG): Add comment to describe third field.
12535 2004-09-10 Andrew Pinski <apinski@apple.com>
12537 * config/darwin.c (machopic_mcount_stub_name): Call
12538 machopic_indirection_name instead of making the string
12541 2004-09-10 Diego Novillo <dnovillo@redhat.com>
12545 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
12547 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12548 memory tag is call clobbered, so are its aliases.
12549 (group_aliases): When two memory tags being grouped, if one is
12550 call clobbered, so are the other and its aliases.
12551 (add_may_alias): Remove call-clobbering stuff.
12552 (replace_may_alias): Likewise.
12553 (merge_pointed_to_info): Merge pt_global_mem
12555 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12557 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
12558 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
12559 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
12560 tree-scalar-evolution.c, tree-ssa-copyrename.c,
12561 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
12563 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12565 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
12566 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
12567 pair. Remove match_dup from inputs. Remove masaccs handling.
12568 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
12569 (masaccs, mdasaccs): Turn into define_insns.
12571 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12573 * tree-tailcall.c (process_assignment): Only do accumulator transforms
12574 for floating-point types if flag_unsafe_math_optimizations.
12576 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12578 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
12579 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
12580 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
12581 config/h8300/h8300.md, config/i386/gmm_malloc.h,
12582 config/ia64/ia64.md, config/ip2k/libgcc.S,
12583 config/mips/mips-ps-3d.md, config/mips/mips.c,
12584 config/rs6000/rs6000.c, config/s390/s390.c,
12585 config/sh/symbian.c: Fix comment typos.
12587 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
12589 * config/s390/s390.c (s390_emit_prologue): Added missing
12592 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12594 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
12595 typos. Follow spelling conventions.
12597 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
12599 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
12600 in diagnostic. Don't dereference NULL TYPE_NAME.
12602 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12604 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
12605 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
12606 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
12607 value-prof.c: Fix comment typos. Follow spelling conventions.
12609 2004-09-10 Jan Hubicka <jh@suse.cz>
12611 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
12612 * tree-split_edge.c (tree_split_edge): Likewise.
12613 (thread_jumps): Likewise.
12615 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12617 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
12620 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
12622 * cgraph.h (cgraph_dump_file): Do not declare.
12623 * cgraphunit.c (cgraph_dump_file): Declare as static.
12624 (init_cgraph): New.
12625 * toplev.c (cgraph_dump_file): Do not declare.
12626 (compile_file): Call init_cgraph.
12627 * tree-dump.c (dump_files): Add IPA dump file, remove
12628 XML dump of call graph.
12629 (get_dump_file_name): Support IPA dump file naming scheme.
12630 * tree.h (enum tree_dump_index): Add IPA dump file, remove
12631 XML dump of call graph.
12632 * doc/invoke.texi (Debugging Options): Document the new options.
12634 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12636 * doc/extend.texi: Document the FR-V built-in functions.
12638 2004-09-09 James E Wilson <wilson@specifixinc.com>
12640 * doc/sourcebuild.texi: Delete libbanshee reference.
12642 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
12644 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
12646 2004-09-09 James E Wilson <wilson@specifixinc.com>
12648 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
12649 before calling vector_types_convertible_p.
12650 (digest_init): Check that inside_init has VECTOR_TYPE before calling
12651 vector_types_convertible_p. Don't give another error if
12652 convert_for_assignment returns error_mark_node.
12654 2004-09-09 Roger Sayle <roger@eyesopen.com>
12656 PR middle-end/17055
12657 * fold-const.c (build_zero_vector): New function to construct a
12658 vector (either floating point or integer) of zeros.
12659 (fold_convert): Internally, enable conversions of integer zero
12660 to arbitrary vector types, using the new build_zero_vector.
12662 2004-09-09 Roger Sayle <roger@eyesopen.com>
12664 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
12665 expand a left shift by an immediate constant as either an ashl or
12666 a sequence of additions.
12667 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
12668 instead of calling gen_ashlsi3 with a constant directly.
12670 2004-09-09 Roger Sayle <roger@eyesopen.com>
12672 * config/i386/i386.c (ix86_split_long_move): When optimizing for
12673 size, and the low and high parts of a DImode constant are equal,
12674 copy one register to another instead of loading the same immediate
12677 2004-09-09 Richard Henderson <rth@redhat.com>
12679 PR middle-end/17367
12680 * function.c (assign_parm_setup_block): Only put PARALLELs into
12681 a register if use_register_for_decl.
12683 2004-09-09 Eric Christopher <echristo@redhat.com>
12685 * ra-colorize.c (reset_lists): Move variable declaration inside
12686 ENABLE_CHECKING to avoid unused variable warnings when
12687 not --enable-checking.
12688 (check_colors): Ditto.
12690 2004-09-09 Mike Stump <mrs@apple.com>
12692 * version.c (version_string): Bump to 4.0.0.
12693 * doc/include/gcc-common.texi (version-GCC): Likewise.
12695 2004-09-10 Jakub Jelinek <jakub@redhat.com>
12697 * doc/extend.texi (nothrow attribute): The attribute is not
12698 implemented in 3.2 and earlier.
12700 2004-09-09 Steve Ellcey <sje@cup.hp.com>
12702 * genrecog.c (compute_predicate_codes): Use op0_codes
12705 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12707 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
12708 implementation changes.
12710 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12712 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
12713 a PARALLEL instead of a SET due to added clobbers.
12715 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12717 * reload.c (find_reloads_address): Pass correct operand to
12718 maybe_memory_address_p.
12720 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
12722 * Makefile.in: Remove libbanshee, tree-alias-*.
12723 Remove tree-alias-common.h dependencies.
12724 * common.opt: Remove -ftree-points-to.
12725 * configure.ac: Remove libbanshee.
12726 * flags.h: Remove pta_type, flag_tree_points_to.
12727 * gengtype.c (open_base_files): Remove tree-alias-type.h.
12728 * opts.c (OPT_ftree_points_to): Remove.
12729 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
12730 * tree-dfa.c: Remove tree-alias-common.h
12731 * tree-into-ssa.c: Ditto.
12732 * tree-outof-ssa.c: Ditto.
12733 * tree-ssa-copyrename.c: Ditto.
12734 * tree-ssa-live.c: Ditto.
12735 * tree-optimize.c: Ditto.
12736 * tree-ssa.c: Ditto.
12737 Remove pass_build_pta, pass_del_pta.
12738 * tree-pass.h: Ditto.
12739 * tree-ssa-alias.c: Remove tree-alias-common.h.
12740 (struct alias_stats_d): Remove pta_queries, pta_resolved.
12741 (pass_may_alias): Remove PROP_pta requirement.
12742 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
12743 (get_tmt_for): Ditto.
12744 (dump_alias_stats): Ditto.
12745 * doc/passes.texi: Remove blurb about points-to analysis.
12746 * fortran/Make-lang.in: Remove tree-alias-*.o.
12748 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12750 * genattrtab.c (write_insn_cases): New function, split out from
12751 write_attr_case. Correctly handle define_peepholes when printing
12752 the instruction name.
12753 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
12755 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
12758 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
12759 * config/cris/cris.c (cris_return_address_on_stack): New function.
12760 * config/cris/cris.md ("return"): For location of return address,
12761 also check cris_return_address_on_stack.
12763 2004-09-09 Diego Novillo <dnovillo@redhat.com>
12765 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
12766 calling phi_ssa_name_p.
12768 2004-09-09 Richard Henderson <rth@redhat.com>
12771 * c-typeck.c (valid_compound_expr_initializer): Use only
12772 initializer_constant_valid_p, and not TREE_CONSTANT.
12773 (digest_init): Likewise.
12774 (output_init_element): Likewise.
12776 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
12778 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
12779 live_out_1, prune_hardregs_for_mode, init_one_web_common,
12780 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
12781 record_conflict, compare_and_free_webs, init_webs_defs_uses,
12782 parts_to_webs_1, parts_to_webs, reset_conflicts,
12783 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
12784 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
12785 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
12786 put_move, remove_move, combine, select_spill, colorize_one_web,
12787 try_recolor_web, insert_coalesced_conflicts, check_colors,
12788 break_precolored_alias, restore_conflicts_from_coalesce,
12789 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
12790 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
12791 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
12792 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
12793 check_df): Likewise.
12794 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
12795 real_arithmetic, real_compare, real_exponent, real_ldexp,
12796 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
12797 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
12798 real_digit, real_nan, real_maxval, round_for_format, real_convert,
12799 real_to_target, real_from_target, real_hash, encode_ieee_single,
12800 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
12801 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
12802 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
12803 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
12804 extract_insn, peep2_next_insn, peep2_reg_dead_p,
12805 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
12806 if_test_bypass_p): Likewise.
12807 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
12808 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
12809 emit_swap_insn, swap_to_top, move_for_stack_reg,
12810 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
12811 compensate_edge, convert_regs_1): Likewise.
12812 * regclass.c (init_reg_sets, init_reg_sets_1,
12813 memory_move_secondary_cost): Likewise.
12814 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
12816 * reload.c (push_secondary_reload, find_valid_class, push_reload,
12817 operands_match_p, decompose, immune_p, find_reloads,
12818 find_reloads_toplev, find_reloads_address_1, subst_reloads,
12819 copy_replacements, refers_to_regno_for_reload_p,
12820 reg_overlap_mentioned_for_reload_p): Likewise.
12821 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
12822 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
12823 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
12824 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
12825 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
12826 do_output_reload, fixup_abnormal_edges): Likewise.
12827 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
12828 fill_slots_from_thread, relax_delay_slots): Likewise.
12829 * resource.c (mark_referenced_resources, mark_set_resources):
12831 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
12832 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
12833 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
12834 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
12835 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
12836 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
12837 * rtlhooks.c (gen_lowpart_general): Likewise.
12838 * sbitmap.c (sbitmap_difference): Likewise.
12839 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
12840 sched_analyze, add_forward_dependence): Likewise.
12841 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
12842 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
12843 schedule_insns): Likewise.
12844 * sched-vis.c (print_pattern): Likewise.
12845 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
12846 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
12847 simplify_const_relational_operation, simplify_ternary_operation,
12848 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
12850 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
12851 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
12852 resolve_operand_name_1, expand_return, expand_decl,
12853 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
12854 * stor-layout.c (put_pending_size, smallest_mode_for_size,
12855 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
12856 set_sizetype, get_mode_bounds): Likewise.
12858 2004-09-09 Zack Weinberg <zack@codesourcery.com>
12860 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
12861 * config/arm/pecoff.h, config/i386/beos-elf.h
12862 * config/i386/cygming.h, config/i386/i386-interix.h:
12863 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
12864 comment cloned from manual.
12865 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
12867 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
12869 * builtins.c (build_va_arg_indirect_ref): New function.
12870 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
12871 build_fold_indirect_ref.
12872 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
12873 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
12874 * tree.h: Declare new function.
12876 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12878 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
12879 dumping for development builds.
12880 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
12881 development builds only.
12882 * genattrtab.c (write_eligible_delay): Fix typo in previous
12884 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
12887 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12889 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
12890 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
12891 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
12892 hoist_code, extract_mentioned_regs_helper, compute_store_table,
12893 insert_store): Use gcc_assert and gcc_unreachable.
12894 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
12895 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
12896 ggc_record_overhead): Likewise.
12897 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
12898 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
12899 ggc_pop_context, clear_marks, validate_free_objects,
12900 ggc_pch_read): Likewise.
12901 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
12902 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
12903 ggc_push_context, check_cookies, ggc_collect,
12904 ggc_print_statistics): Likewise.
12905 * gimple-low.c (lower_function_body, lower_stmt,
12906 lower_bind_expr): Likewise.
12907 * gimplify.c (gimple_tree_eq, push_gimplify_context,
12908 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
12909 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
12910 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
12911 gimplify_case_label_expr, gimplify_exit_block_expr,
12912 canonicalize_component_ref, gimplify_compound_lval,
12913 gimplify_self_mod_expr, gimplify_call_expr,
12914 gimplify_init_ctor_eval, gimplify_init_constructor,
12915 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
12916 gimplify_expr, check_pointer_types_r,
12917 force_gimple_operand): Likewise.
12918 * global.c (global_alloc, build_insn_chain): Likewise.
12919 * graph.c (clean_graph_dump_file,
12920 finish_graph_dump_file): Likewise.
12921 gcov-io.c (gcov_open): Use GCOV_CHECK.
12923 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12925 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
12927 2004-09-09 Jan Hubicka <jh@suse.cz>
12930 * tree-inline.c (expand_call_inline): Make overactive sanity check
12933 2004-09-09 Jan Hubicka <jh@suse.cz>
12935 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
12938 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12940 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
12941 (gengtype.o): Depend on errors.h.
12942 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
12943 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
12944 attr_alt_subset_p, attr_alt_subset_of_compl_p,
12945 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
12946 write_test_expr, write_attr_value, write_eligible_delay,
12947 make_internal_attr, make_numeric_value): Likewise.
12948 * genautomata.c (regexp_name, get_str_vect,
12949 gen_presence_absence_set, automaton_decl_hash,
12950 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
12951 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
12952 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
12953 test_unit_reserv, it_is_empty_reserv_sets,
12954 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
12955 reserv_sets_and, output_cycle_reservs, get_free_state,
12956 intersected_state_reservs_p, states_union, remove_arc,
12957 copy_insn_regexp, transform_1, transform_2, transform_3,
12958 regexp_transform_func, store_alt_unit_usage,
12959 check_regexp_units_distribution, process_seq_for_forming_states,
12960 process_alts_for_forming_states, make_automaton,
12961 form_arcs_marked_by_insn, create_composed_state,
12962 set_out_arc_insns_equiv_num, partition_equiv_class,
12963 process_insn_equiv_class, set_insn_equiv_classes,
12964 units_to_automata_heuristic_distr, form_regexp,
12965 longest_path_length, output_dfa_max_issue_rate, add_vect,
12966 out_state_arcs_num, add_vect_el, output_trans_table,
12967 output_state_alts_table, output_dead_lock_vect,
12968 output_max_insn_queue_index_def,
12969 output_min_insn_conflict_delay_func,
12970 output_internal_insn_latency_func, output_print_reservation_func,
12971 output_cpu_unit_reservation_p, output_state_arcs,
12972 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
12973 make_default_insn_latency_attr,
12974 form_important_insn_automata_lists): Likewise.
12975 * genemit.c (gen_exp, output_add_clobbers,
12976 output_added_clobbers_hard_reg_p): Likewise.
12977 * genextract.c (print_path, main): Likewise.
12978 * genflags.c (gen_macro): Likewise.
12979 * gengenrtl.c: Include errors.h
12980 (type_from_format, accessor_from_format): Likewise.
12981 * gengtype.c (get_file_basename, output_mangled_typename,
12982 walk_type, write_types_process_field,
12983 write_types_local_process_field): Likewise.
12984 * genmodes.c (complete_mode): Likewise.
12985 * genopinit.c (gen_insn): Likewise.
12986 * genoutput.c (output_insn_data, check_constraint_len,
12987 constraint_len): Likewise.
12988 * genpreds.c (add_mode_tests):Likewise.
12989 * gen-protos.c (add_hash): Likewise.
12990 * genrecog.c (find_operand, find_matching_operand,
12991 validate_pattern, add_to_sequence, maybe_both_true,
12992 nodes_identical_1, merge_trees, write_switch, write_cond,
12993 write_action, is_unconditional, make_insn_sequence,
12994 debug_decision_2): Likewise.
12995 * gensupport.c (is_predicable, collect_insn_data,
12996 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
12998 2004-09-09 Jan Hubicka <jh@suse.cz>
13000 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
13001 * cfgbuild.c (compute_outgoing_frequencies): When probability is
13003 (find_many_sub_basic_blocks): Do update profile only when it is
13005 * predict.c (set_even_probabilities): Break out from ...
13006 (combine_predictions_for_insn): ... here; deal with
13007 !can_predict_insn_p insns.
13008 (combine_predictions_for_bb): Use set_even_probabilities.
13009 (bb_estimate_probability_locally): Break out from ....
13010 (estimate_probability): ... here.
13011 (guess_outgoing_edge_probabilities): New entry point.
13013 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13015 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
13016 handle_braces, process_brace_body, main, used_arg,
13017 set_multilib_dir, print_multilib_info): Use fatal, not abort.
13019 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
13021 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
13022 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
13023 Morgan's theorem in last checkin.
13025 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
13026 Nathan Sidwell <nathan@codesourcery.com>
13028 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
13029 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
13030 * timevar.c (timevar_push, timevar_pop, timevar_start,
13031 timevar_stop): Likewise.
13032 * toplev.c (default_pch_valid_p): Likewise.
13033 * tracer.c (tail_duplicate): Likewise.
13034 * tree-alias-common.c (get_alias_var_decl,
13035 get_values_from_constructor, create_alias_var, delete_alias_vars,
13036 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
13038 * tree.c (tree_size, make_node_stat, copy_node_stat,
13039 build_int_cst_wide, integer_all_onesp, list_length, chainon,
13040 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
13041 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
13042 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
13043 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
13044 build_method_type_directly, decl_type_context, get_callee_fndecl,
13045 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
13046 tree_fold_gcd): Likewise.
13047 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
13048 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
13049 cleanup_control_expr_graph, find_taken_edge,
13050 find_taken_edge_switch_expr, phi_alternatives_equal,
13051 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
13052 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
13053 tree_split_edge, tree_verify_flow_info, thread_jumps,
13054 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
13055 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
13056 chrec_fold_multiply_poly_poly): Likewise.
13057 * tree-complex.c (extract_component, expand_complex_division,
13058 expand_complex_comparison, expand_complex_operations_1,
13059 build_replicated_const, expand_vector_operations_1): Likewise.
13060 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
13061 build_classic_dir_vector): Likewise.
13062 * tree-dfa.c (compute_immediate_uses_for_phi,
13063 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
13064 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
13065 * tree-dump.c (dequeue_and_dump): Likewise.
13066 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
13067 record_in_finally_tree, replace_goto_queue_1,
13068 maybe_record_in_goto_queue, verify_norecord_switch_expr,
13069 do_return_redirection): Likewise.
13070 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
13071 add_to_dst_predicate_list, find_phi_replacement_condition,
13072 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
13074 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
13075 initialize_inlined_parameters, declare_return_variable,
13076 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
13077 optimize_inline_calls, copy_tree_r): Likewise.
13078 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
13079 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
13080 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
13081 tsi_split_statement_list_after, tsi_split_statement_list_before):
13083 * tree-mudflap.c (mf_varname_tree): Likewise.
13084 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
13085 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
13086 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13087 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
13088 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
13089 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
13091 * tree-phinodes.c (resize_phi_node, add_phi_arg,
13092 remove_all_phi_nodes_for): Likewise.
13093 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
13094 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
13095 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
13096 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
13097 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
13098 generate_one_element_ref, generate_element_copy,
13099 generate_element_zero, scalarize_copy, scalarize_init,
13100 scalarize_ldst): Likewise.
13101 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
13102 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
13103 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
13104 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
13105 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
13106 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
13107 widen_bitfield, ccp_fold_builtin): Likewise.
13108 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
13109 replace_exp_1, propagate_tree_value): Likewise.
13110 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13111 * tree-ssa-dce.c (set_control_dependence_map_bit,
13112 find_control_dependence, find_pdom, mark_operand_necessary,
13113 mark_stmt_if_obviously_necessary,
13114 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
13115 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
13116 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
13117 eliminate_redundant_computations, avail_expr_eq): Likewise.
13118 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
13119 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
13120 duplicate_blocks): Likewise.
13121 * tree-ssa-loop-im.c (for_each_index, set_level,
13122 is_call_clobbered_ref): Likewise.
13123 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
13124 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
13125 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
13126 peel_address, ptr_difference_cost, may_replace_final_value,
13127 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
13128 rewrite_use, rewrite_uses): Likewise.
13129 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
13130 check_loop_closed_ssa_use): Likewise.
13131 * tree-ssanames.c (make_ssa_name): Likewise.
13132 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
13133 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
13134 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
13135 get_indirect_ref_operands, add_stmt_operand): Likewise.
13136 * tree-ssa-pre.c (value_exists_in_set_bitmap,
13137 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
13138 phi_translate, valid_in_set, compute_antic,
13139 find_or_generate_expression, create_expression_by_pieces, insert_aux,
13140 create_value_expr_from, eliminate): Likewise.
13141 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
13142 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
13144 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
13145 eliminate_tail_call): Likewise.
13146 * tree-vectorizer.c (vect_create_index_for_array_ref,
13147 vect_align_data_ref, vect_create_data_ref,
13148 vect_create_destination_var, vect_get_vec_def_for_operand,
13149 vect_finish_stmt_generation, vect_transform_stmt,
13150 vect_transform_loop_bound, vect_transform_loop,
13151 vect_analyze_operations): Likewise.
13152 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
13154 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
13155 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
13156 bsi_after_labels, bsi_last): Likewise.
13157 * tree-ssa-live.c (var_union, change_partition_var,
13158 create_ssa_var_map, calculate_live_on_entry, root_var_init,
13159 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
13161 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
13162 tpa_find_tree): Likewise.
13163 (register_ssa_partition_check): Declare.
13164 (register_ssa_partition): use it.
13165 * tree-ssa-live.c: Include errors.h.
13166 (register_ssa_partition_check): New.
13167 * tree-ssa-operands.c: Include errors.h.
13168 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
13170 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
13171 Catherine Moore <clm@redhat.com>
13173 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
13174 (FRV_CPU_FR405): New processor enums.
13175 (frv_issue_rate, frv_acc_group): Declare.
13176 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
13177 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
13178 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
13179 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
13180 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
13181 handled by CPP_SPEC.
13182 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
13183 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
13184 (ACC_MASK): New macro.
13185 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
13186 (TARGET_MEDIA_FR450): New macro.
13187 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
13188 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
13189 (LABEL_ALIGN_AFTER_BARRIER): Define.
13190 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
13191 (IACC_FIRST, IACC_LAST): New pair of SPRs.
13192 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
13193 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13194 (REGISTER_NAMES): Add entries for new registers.
13195 (REG_CLASS_CONTENTS): Update for new register ranges.
13196 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
13197 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
13198 (PACKING_FLAG_USED_P): Delete.
13199 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
13200 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
13201 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
13202 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
13203 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
13204 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
13205 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
13206 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
13207 (CPU_UNITS_QUERY): Define to 1.
13208 * config/frv/frv.c: Include gt-frv.h
13209 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
13210 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
13211 (frv_insn_group): New enumeration.
13212 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
13213 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
13214 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
13215 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
13216 gap left by REGSTATE_LIVE.
13217 (regstate_t): New typedef.
13218 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13219 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
13220 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
13221 Initialize frv_unit_codes[] and frv_type_to_unit[].
13222 (frv_conditional_register_usage): Remove redundant fixing of
13223 accumulator registers.
13224 (frv_insn_packing_flag): Update specification.
13225 (frv_function_prologue): Don't set frv_insn_packing_flag here.
13226 Zero out frv_nops[].
13227 (frv_expand_epilogue): Remove comments about the no-longer-present
13228 SIBCALL_P argument.
13229 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
13230 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
13231 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
13232 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
13233 packing is disabled and if INSN can only issue to M1.
13234 (call_operand): Check TARGET_LONG_CALLS.
13235 (acc_operand, even_acc_operand, quad_acc_operand)
13236 (accg_operand): Simplify. Don't accept pseudo registers.
13237 (output_move_single): Handle SPR<-zero moves.
13238 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
13239 (frv_registers_update, frv_registers_used_p): Delete.
13240 (frv_registers_set_p): Delete.
13241 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
13242 (frv_issues_to_branch_unit_p): New function.
13243 (frv_packet): New structure.
13244 (frv_cond_flags, frv_regstate_conflict_p): New functions.
13245 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
13246 (frv_registers_update_1, frv_registers_update): New functions.
13247 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
13248 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
13249 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
13250 (frv_sort_insn_group, frv_reorder_packet): New functions.
13251 (frv_pack_insns): Use frv_reorder_packet.
13252 (frv_packet_address): New variable.
13253 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
13254 (frv_register_nop, frv_reorg): New functions.
13255 (bdesc_1arg): Add __SCUTSS.
13256 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
13257 __SUBSS, __SLASS and __SCAN.
13258 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
13259 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
13260 (frv_init_builtins): Register the above builtins.
13261 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
13262 registers. Turn the referenced accumulators into global registers.
13263 (frv_read_iacc_argument): New function.
13264 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
13265 (frv_split_iacc_move): New function.
13266 (frv_expand_builtin): Handle the new builtins.
13267 * config/frv/frv.md: Replace old schedulers with new order-independent
13268 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
13270 (cpu): Add fr550, fr450 and fr405.
13271 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
13272 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
13273 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
13274 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
13275 (fnop, mnop): New patterns.
13276 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
13278 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
13279 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
13281 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
13282 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
13283 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
13284 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
13285 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
13286 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
13287 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
13288 (frv_prefetch0, frv_prefetch): New patterns.
13289 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
13290 -mcpu=simple. Add -mcpu=fr550.
13291 (MULTILIB_DIRNAMES): Update accordingly.
13292 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
13294 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
13295 -mlong-calls and -malign-labels options for FR-V.
13297 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13300 * c-tree.h (struct c_declspecs): New.
13301 (struct c_declarator, struct c_type_name, struct c_parm): Update
13303 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
13304 start_function, start_decl, build_c_parm,
13305 make_pointer_declarator): Update prototypes.
13306 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13307 declspecs_add_scspec, declspecs_add_attrs): New.
13308 (split_specs_attrs): Remove.
13309 * c-parse.in (%union): Add dsptype.
13310 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13311 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13312 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13313 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13314 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13315 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13316 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13317 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
13318 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
13319 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
13320 maybe_type_quals_attrs): Change to dsptype.
13321 (struct c_declspec_stack): New.
13322 (current_declspecs, declspec_stack): Change type.
13323 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
13325 (extdefs): Likewise.
13326 (setspecs): Likewise.
13327 (fndef): Use current_declspecs for empty declspecs list.
13328 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13329 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13330 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13331 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13332 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13333 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13334 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13335 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
13336 structures and helper functions. Update comments.
13337 (typespec_nonattr): Correct comment.
13338 (maybe_type_quals_attrs, typename): Update to new structures.
13339 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
13340 shadow_tag, shadow_tag_warned, start_function, start_decl,
13341 build_c_parm, make_pointer_declarator,
13342 set_array_declarator_inner, groktypename): Update to new
13344 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13345 declspecs_add_scspec, declspecs_add_attrs): New.
13346 (split_specs_attrs): Remove.
13347 (shadow_tag_warned): Make warning for useless type names a
13348 pedwarn. Give hard error for long, short, signed, unsigned or
13349 _Complex used with struct, union or enum in empty declaration.
13350 Make found_tag a bool.
13351 (grokdeclarator): Remove checks now done at parse time.
13353 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13355 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
13356 c_declarator, struct c_type_name, struct c_parm): New.
13357 (build_array_declarator, set_array_declarator_inner,
13358 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
13359 start_function, start_decl, build_c_parm, build_attrs_declarator,
13360 build_function_declarator, make_pointer_declarator, c_cast_expr,
13361 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
13362 (build_id_declarator): New.
13363 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
13365 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
13366 ARG_INFO_OTHERS): Remove.
13367 (build_id_declarator): New.
13368 (build_array_declarator, set_array_declarator_inner, groktypename,
13369 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
13370 grokfield, start_function, store_parm_decls_newstyle,
13371 store_parm_decls_oldstyle, store_parm_decls,
13372 build_c_parm, build_attrs_declarator, build_function_declarator,
13373 make_pointer_declarator, grokdeclarator): Update to new
13375 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
13377 (declarator, notype_declarator, after_type_declarator,
13378 parm_declarator, parm_declarator_starttypename,
13379 parm_declarator_nostarttypename, array_declarator, typename,
13380 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
13381 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
13382 parmlist_1, parmlist_2, parmlist_or_identifiers,
13383 parmlist_or_identifiers_1): Use these types.
13384 (primary, after_type_declarator, parm_declarator_starttypename,
13385 notype_declarator, component_decl, component_declarator,
13386 component_notype_declarator, typename, absdcl,
13387 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
13388 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
13390 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13392 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
13393 in_typeof, record_maybe_used_decl, pop_maybe_used,
13394 c_expr_sizeof_expr, c_expr_sizeof_type): New.
13395 * c-decl.c (parser_obstack): New.
13396 (c_init_decl_processing): Initialize parser_obstack.
13397 (c_write_global_declarations_1): Check for used but undefined
13399 * c-parse.in (%union): Add otype.
13400 (save_obstack_position): New.
13402 (unary_expr): Update in_sizeof and in_alignof. Use
13403 c_expr_sizeof_expr and c_expr_sizeof_type.
13404 (sizeof): Update in_sizeof.
13405 (alignof): Update in_alignof.
13406 (typeof): Update in_typeof.
13407 (typespec_nonreserved_nonattr): Call pop_maybe_used.
13408 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
13409 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
13410 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
13411 (build_external_ref): Set C_DECL_USED or call
13412 record_maybe_used_decl if appropriate.
13413 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
13415 2004-09-08 Eric Christopher <echristo@redhat.com>
13417 * builtins.c: Fix prototype for fold_builtin_atan.
13419 2004-09-08 Eric Christopher <echristo@redhat.com>
13421 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
13422 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
13423 fold_builtin_atan): New functions. Migrate function bodies...
13424 (fold_builtin_1): ... from here.
13426 2004-09-09 Alan Modra <amodra@bigpond.net.au>
13428 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
13431 2004-09-08 David Edelsohn <edelsohn@gnu.org>
13433 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
13434 * config/rs6000/power5.md (power5-lmul): Same.
13436 2004-09-08 Richard Henderson <rth@redhat.com>
13439 * function.c (expand_function_end): Have fall-off-the-end
13440 return path jump around return register setup.
13442 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13444 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
13445 (output_return): Do not test for the presence of the 'unimp' insn.
13446 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
13447 as predicates instead of custom ones. Return raw strings when
13449 (output_sibcall): Likewise. Concatenate strings.
13450 (output_ubranch): Remove kludge for TurboSPARC.
13451 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
13452 (output_v9branch): Likewise.
13453 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
13454 <#>: Set sparc_indent_opcode if the delay slot is filled.
13456 <)>: New operand to emit the displacement from the saved PC on return.
13458 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
13459 (ASM_OUTPUT_OPCODE): New macro.
13460 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
13461 * config/sparc/sparc.md (normal_branch, inverted_branch,
13462 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13463 inverted_fpe_branch): Adjust call to output_cbranch.
13464 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
13465 call to output_v9branch.
13466 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
13467 (output_v9branch): Likewise.
13469 2004-09-08 Devang Patel <dpatel@apple.com>
13471 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
13472 -segs_read_only_addr and -segs_read_write_addr.
13473 (WORD_SWITCH_TAKES_ARG): Same.
13475 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
13476 -segs_read_write_addr.
13478 2004-09-08 Richard Henderson <rth@redhat.com>
13480 * function.c (reference_callee_copied): New.
13481 (assign_parm_setup_reg): Use it.
13482 * calls.c (initialize_argument_information): Likewise.
13483 (emit_library_call_value_1): Likewise.
13484 * function.h (reference_callee_copied): Declare.
13486 * target.h (struct gcc_target): Add callee_copies.
13487 * target-def.h (TARGET_CALLEE_COPIES): New.
13488 (TARGET_PASS_BY_REFERENCE): Update default.
13489 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13490 * targhooks.c (hook_callee_copies_named): New.
13491 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
13492 hook_pass_by_reference_false.
13493 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
13494 * targhooks.h: Update decls.
13495 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
13496 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13497 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
13498 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
13499 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13500 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
13501 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13502 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
13503 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13504 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
13505 (mips_callee_copies): New.
13506 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13507 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
13508 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13509 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
13510 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13511 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
13512 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13513 * config/sh/sh.c (sh_callee_copies): New.
13514 (TARGET_CALLEE_COPIES): New.
13515 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13516 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
13517 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13518 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
13519 for FUNCTION_ARG_CALLEE_COPIES.
13520 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
13522 2004-09-08 Devang Patel <dpatel@apple.com>
13524 * tree-if-conv.c (find_phi_replacement_condition): Return true
13526 (replace_phi_with_cond_modify_expr): Select conditional expr args
13527 based on true edge basic block.
13529 2004-09-08 Jan Hubicka <jh@suse.cz>
13531 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
13532 variables being alias set.
13534 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13536 * final.c (shorten_branches, final, get_insn_template,
13537 output_alternate_entry_point, final_scan_insn, alter_subreg,
13538 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
13539 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
13540 * fix-header.c (lookup_std_proto): Likewise.
13541 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
13542 verify_local_live_at_start, update_life_info, mark_reg,
13543 calculate_global_regs_live, allocate_reg_life_data,
13544 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
13545 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
13546 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
13547 * fold-const.c (force_fit_type, div_and_round_double,
13548 may_negate_without_overflow_p, int_const_binop, const_binop,
13549 size_binop, size_diffop, fold_convert_const, fold_convert,
13550 invert_tree_comparison, swap_tree_comparison,
13551 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
13552 range_binop, make_range, fold_cond_expr_with_comparison,
13553 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
13554 fold_abs_const, fold_not_const, fold_relational_const, round_up,
13555 round_down): Likewise.
13556 * function.c (find_function_data, assign_stack_temp_for_type,
13557 instantiate_virtual_regs_lossage, aggregate_value_p,
13558 assign_parm_find_entry_rtl, assign_parm_setup_block,
13559 expand_function_start, expand_function_end, keep_stack_depressed,
13560 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
13562 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
13564 * Makefile.in (tree-loop-linear.o): Added.
13565 (OBJS-common): Add tree-loop-linear.o
13566 * common.opt: New flag, ftree-loop-linear.
13567 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
13568 * tree-flow.h: Add prototype for linear_transform_loops.
13569 * tree-optimize.c: Add linear transform after vectorization.
13570 * tree-pass.h: Add struct pass_linear_transform.
13571 * tree-ssa-loop.c: Add pass_linear_transform.
13572 * tree-loop-linear.c: New file.
13573 * lambda-code.c: gcc_assertify.
13574 (gcc_loop_to_lambda_loop): Handle all exit tests.
13575 Handle case where we have (invariant >= induction var).
13576 (find_induction_var_from_exit_cond): Ditto.
13578 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
13580 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
13581 memory tag is call clobbered, so are its aliases.
13582 (group_aliases): When two memory tags being grouped, if one is
13583 call clobbered, so are the other and its aliases.
13584 (add_may_alias): Remove call-clobbering stuff.
13585 (replace_may_alias): Likewise.
13586 (merge_pointed_to_info): Merge pt_global_mem
13588 2004-09-08 Jan Hubicka <jh@suse.cz>
13590 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
13591 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
13592 (cgraph_expand_function): Remove stale cgraph edges of currently
13593 compiled function; fix non-unit-at-a-time code copying function
13594 node for later reuse.
13596 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13598 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
13599 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
13600 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
13601 (vec_gc_free, vec_heap_free): New.
13602 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
13603 (DEF_VEC_P): Add allocator argument. Adjust.
13604 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
13605 (DEF_VEC_O): Add allocator argument. Adjust.
13608 * tree.h (tree): Define a GC'd vector.
13609 * lamba-code.c (lambda_loop): Likewise.
13610 * value-prof.h (histogram_value): Likewise.
13612 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13614 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
13615 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
13616 gen_lowpart_common, gen_highpart, gen_highpart_mode,
13617 subreg_highpart_offset, operand_subword, operand_subword_force,
13618 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
13619 set_mem_alias_set, change_address_1, verify_rtx_sharing,
13620 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
13621 try_split, add_insn_after, add_insn_before, remove_insn,
13622 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
13623 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
13624 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
13625 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
13626 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
13627 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
13628 record_path_before_1, check_path_after_1, check_path_after): Likewise.
13629 * except.c (gen_eh_region, resolve_one_fixup_region,
13630 remove_unreachable_regions, convert_from_eh_region_ranges_1,
13631 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
13632 connect_post_landing_pads, sjlj_emit_function_exit,
13633 remove_exception_handler_label, remove_eh_handler,
13634 reachable_next_level, collect_one_action_chain,
13635 output_function_exception_table): Likewise.
13636 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
13637 optimize_save_area_alloca, allocate_dynamic_stack_space,
13638 probe_stack_range, hard_function_value): Likewise.
13639 * expmed.c (mode_for_extraction, store_bit_field,
13640 store_fixed_bit_field, extract_bit_field, expand_shift,
13641 expand_mult_const, expand_mult, choose_multiplier,
13642 expand_mult_highpart, expand_divmod, emit_store_flag,
13643 do_cmp_and_jump): Likewise.
13644 * expr.c (convert_move, convert_modes, move_by_pieces,
13645 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
13646 move_block_from_reg, gen_group_rtx, emit_group_load,
13647 emit_group_move, emit_group_store, use_reg, use_regs,
13648 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
13649 emit_move_insn, emit_move_insn_1, emit_push_insn,
13650 expand_assignment, store_expr, count_type_elements,
13651 store_constructor, store_field, safe_from_p, expand_var,
13652 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
13654 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13656 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
13657 gcc_assert and gcc_unreachable.
13658 * ddg.c (create_ddg_dependence, add_deps_for_def,
13659 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
13660 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
13661 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
13662 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
13663 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
13664 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
13665 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
13666 dataflow_set_copy, hybrid_search, diagnostic.c,
13667 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
13668 * dojump.c (do_jump): Likewise.
13669 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
13670 compute_dom_fast_query, calculate_dominance_info,
13671 free_dominance_info, get_immediate_dominator,
13672 set_immediate_dominator, get_dominated_by,
13673 redirect_immediate_dominators, nearest_common_dominator,
13674 dominated_by_p, verify_dominators, recount_dominator,
13675 iterate_fix_dominators, add_to_dominance_info,
13676 delete_from_dominance_info): Likewise.
13677 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
13678 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
13679 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
13680 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
13681 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
13682 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
13683 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
13684 output_call_frame_info, output_loc_operands, build_cfa_loc,
13685 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
13686 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
13687 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
13688 splice_child_die, attr_checksum, same_dw_val_p,
13689 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
13690 unmark_dies, value_format, output_loc_list, output_die,
13691 output_pubnames, output_aranges, base_type_die, is_base_type,
13692 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
13693 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
13694 field_byte_offset, add_data_member_location_attribute,
13695 add_const_value_attribute, rtl_for_decl_location,
13696 add_location_or_const_value_attribute, add_byte_size_attribute,
13697 add_bit_offset_attribute, add_bit_size_attribute,
13698 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
13699 decl_start_label, gen_formal_parameter_die,
13700 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
13701 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
13702 force_decl_die, force_type_die, gen_decl_die,
13703 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
13704 dwarf2out_finish): Likewise.
13706 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
13708 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
13709 * builtins.c: Include tree-mudflap.h.
13711 2004-09-08 Uros Bizjak <uros@kss-loka.si>
13713 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
13714 force operand 0.0 into register in XFmode. Also do not force
13715 operand 0.0 into register if !TARGET_CMOVE.
13716 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
13717 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
13718 implement ftst x87 instruction.
13719 (*fp_jcc_7): New insn pattern. Change corresponding split
13720 pattern to handle "general_operand" instead of
13721 "nonimmediate_operand".
13723 2004-09-08 Ben Elliston <bje@au.ibm.com>
13725 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
13727 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
13729 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
13730 generated from standard va_arg expansion.
13731 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
13733 (mf_varname_tree, mf_file_function_line_tree): Add some support
13734 for column numbers if compiled with USE_MAPPED_LOCATION.
13736 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13738 * c-decl.c (groktypename_in_parm_context): Remove function.
13739 * c-tree.h (groktypename_in_parm_context): Remove prototype.
13741 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13743 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
13744 * c-parse.in: Include c-common.h instead of objc-act.h.
13745 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
13746 myparms, myparm): Remove %type declarations.
13747 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
13748 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
13750 (objc_inherit_code, objc_public_flag): Remove.
13751 (typespec_nonreserved_nonattr): Call
13752 objc_get_protocol_qualified_type() instead of get_static_reference()
13753 and get_protocol_reference().
13754 (stmt_nocomp): Call grokparm() on @catch parameter.
13755 (objcdef): Move semantic action to objc_finish_implementation().
13756 (classdef): Move semantic action to objc_start_class_interface(),
13757 objc_continue_interface(), objc_finish_interface(),
13758 objc_start_class_implementation(), objc_continue_implementation(),
13759 objc_start_category_interface() and
13760 objc_start_category_implementation().
13761 (protocoldef): Move semantic actions to objc_start_protocol() and
13762 objc_finish_interface().
13763 (ivar_decl_list): Remove nonterminal.
13764 (visibility_spec): Move semantic actions to objc_set_visibility().
13765 (ivar_decls): Remove assignment to $$.
13766 (ivar_decl): Rephrase in terms of component_decl; call
13767 objc_add_instance_variable().
13768 (ivars, ivar_declarator): Remove nonterminals.
13769 (opt_semi): New nonterminal.
13770 (methodtype): Remove semantic actions.
13771 (methoddef): Move semantic actions to objc_set_method_type(),
13772 objc_start_method_definition() and objc_finish_method_definition().
13773 (methodproto): Move semantic actions to objc_set_method_type() and
13774 objc_add_method_declaration().
13775 (methoddecl): Use objc_typename instead of typename; move semantic
13776 actions to objc_build_method_signature().
13777 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
13778 (optparmlist): Express in terms of optparms and optellipsis.
13779 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
13781 (keyworddecl): Use objc_typename instead of typename.
13782 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
13783 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
13785 2004-09-08 Alan Modra <amodra@bigpond.net.au>
13787 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
13788 (MD_FALLBACK_FRAME_STATE_FOR): Update.
13789 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
13790 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13791 (MD_FROB_UPDATE_CONTEXT): Remove default.
13792 (uw_update_context_1): Instead #ifdef invocation.
13793 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
13794 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13795 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
13796 (MD_UNWIND_SUPPORT): Undefine this instead.
13797 * config/i386/gnu.h: Likewise.
13798 * config/alpha/linux-unwind.h: New file, macro converted to
13799 function, extracted from..
13800 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
13801 (MD_UNWIND_SUPPORT): Define.
13802 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
13803 * config/i386/linux-unwind.h, config/i386/linux.h,
13804 config/i386/linux64.h: Likewise.
13805 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
13806 MD_HANDLE_UNWABI too.
13807 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
13808 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
13809 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
13810 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
13811 * config/sparc/linux-unwind.h, config/sparc/linux.h,
13812 config/sparc/linux64.h: Likewise.
13813 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
13814 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
13815 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
13816 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
13817 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
13819 2004-09-07 Jan Hubicka <jh@suse.cz>
13821 * cse.c (fold_rtx): Avoid building of
13822 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
13824 * tree-ssa-pre.c (grand_bitmap_obstack): New.
13825 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
13826 (init_pre): Initialize obstack.
13827 (fini_pre): Free obstack.
13829 2004-09-07 David Daney <ddaney@avtrex.com>
13831 * config.gcc: Added support for --with-divide=[breaks|traps] for
13833 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
13834 (TARGET_DIVIDE_TRAPS): New macro.
13835 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
13836 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
13837 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
13838 GENERATE_DIVIDE_TRAPS.
13839 (mips_output_division): Emit conditional trap if
13840 GENERATE_DIVIDE_TRAPS is set.
13841 * doc/install.texi: Document --with-divide.
13842 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
13844 2004-09-07 Caroline Tice <ctice@apple.com>
13846 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
13847 EDGE_CROSSING, to flags test case.
13849 2004-09-07 Jan Hubicka <jh@suse.cz>
13851 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
13854 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13856 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
13857 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
13858 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
13859 or gcc_unreachable.
13860 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
13861 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
13862 alloc_aux_for_edges, free_aux_for_edges): Likewise.
13863 * cfgcleanup.c (try_forward_edges,
13864 merge_blocks_move_predecessor_nojumps,
13865 merge_blocks_move_successor_nojumps): Likewise.
13866 * cfgexpand.c (expand_gimple_cond_expr,
13867 expand_gimple_tailcall): Likewise.
13868 * cfghooks.c (duplicate_block): Likewise.
13869 * cfglayout.c (record_effective_endpoints,
13870 insn_locators_initialize, change_scope, fixup_reorder_chain,
13871 verify_insn_chain, fixup_fallthru_exit_predecessor,
13872 duplicate_insn_chain, cfg_layout_finalize): Likewise.
13873 * cfgloopanal.c (check_irred): Likewise.
13874 * cfgloop.c (superloop_at_depth, flow_loops_free,
13875 flow_loop_entry_edges_find, flow_loops_find,
13876 flow_loop_outside_edge_p, get_loop_body,
13877 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
13878 get_loop_exit_edges, num_loop_branches, cancel_loop,
13879 verify_loop_structure): Likewise.
13880 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
13881 duplicate_loop_to_header_edge, create_preheader,
13882 create_loop_notes): Likewise.
13883 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
13884 edirect_branch_edge, force_nonfallthru_and_redirect,
13885 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
13886 commit_edge_insertions, commit_edge_insertions_watch_calls,
13887 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
13888 cfg_layout_redirect_edge_and_branch_force,
13889 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
13890 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
13891 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
13892 cgraph_varpool_node): Likewise.
13893 * cgraphunit.c (cgraph_finalize_function,
13894 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
13895 cgraph_expand_function, cgraph_remove_unreachable_nodes,
13896 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13897 cgraph_mark_inline, cgraph_expand_all_functions,
13898 cgraph_build_static_cdtor): Likewise.
13899 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
13900 simplify_logical, distribute_notes, insn_cuid): Likewise.
13901 * conflict.c (conflict_graph_add, print_conflict): Likewise.
13902 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
13903 coverage_checksum_string): Likewise.
13904 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
13905 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
13906 cse_cc_succs, cse_condition_code_reg): Likewise.
13907 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
13908 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
13909 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
13910 cselib_record_set): Likewise.
13912 2004-09-07 Jan Hubicka <jh@suse.cz>
13914 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
13916 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13918 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
13920 (fold_builtin_strpbrk): Likewise.
13921 * expr.c (array_ref_low_bound): Likewise.
13922 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
13923 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
13924 * tree-sra.c (generate_element_zero): Likewise.
13925 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13926 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
13927 add_old_iv_candidates, add_iv_candidates): Likewise.
13928 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13930 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13932 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
13933 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
13934 c_expand_expr, boolean_increment, nonnull_check_p,
13935 check_function_arguments_recurse, fold_offsetof_1): Likewise.
13936 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
13937 builtin_define_type_max): Likewise.
13938 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
13939 implicit_decl_warning, builtin_function, build_compound_literal,
13940 complete_array_type, grokdeclarator, get_parm_info,
13941 start_function, store_parm_decls_oldstyle,
13942 c_write_global_declarations): Likewise.
13943 * c-format.c (get_constant, decode_format_attr,
13944 maybe_read_dollar_number, get_flag_spec, check_format_arg,
13945 check_format_types, format_type_warning,
13946 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
13947 init_dynamic_diag_info, handle_format_attribute): Likewise.
13948 * c-gimplify.c (push_context, pop_context, finish_bc_block):
13949 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
13950 * c-objc-common.c (c_tree_printer): Likewise.
13951 * c-pch.c (pch_init): Likewise.
13952 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
13953 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
13954 * c-typeck.c (c_incomplete_type_error, composite_type,
13955 common_pointer_type, common_type, same_translation_unit_p,
13956 tagged_types_tu_compatible_p, finish_init, pop_init_level,
13957 set_designator, set_nonincremental_init_from_string,
13958 process_init_element, c_finish_if_stmt): Likewise.
13959 * caller-save.c (init_caller_save, save_call_clobbered_regs,
13960 insert_restore, insert_save, insert_one_insn): Likewise.
13961 * calls.c (emit_call_1, compute_argument_block_size,
13962 precompute_arguments, expand_call, emit_library_call_value_1,
13963 store_one_arg): Likewise.
13965 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13967 * configure.ac (enable-checking): Add release option. Reorganize
13968 to avoid repetition.
13969 * configure: Rebuilt.
13970 * doc/install.texi (enable-checking): Amend documentation.
13972 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
13975 * Makefile.in (specs.ready): Depend on cc1$(exeext).
13977 2004-09-06 James E Wilson <wilson@specifixinc.com>
13979 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
13980 movdf_hardfloat_32bit): Split fG into two alternatives.
13981 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
13983 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
13985 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
13987 * final.c (output_in_slot): Delete.
13988 (final_scan_insn): Revert 2004-09-03 change.
13989 (output_asm_insn): Likewise.
13990 * config/sparc/sparc.c (output_return): Likewise.
13991 (output_sibcall): Likewise.
13993 2004-09-06 Jan Hubicka <jh@suse.cz>
13995 * loop.c (loop_dump_aux): Do not print RTL when not available.
13996 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
13997 frontend specific type nodes.
13998 (produce_memory_decl_rtl): Break out from ...
13999 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
14000 (get_computation_at): Avoid random tree sharing.
14001 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
14003 2004-09-06 Zack Weinberg <zack@codesourcery.com>
14005 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
14006 unnecessary commands.
14008 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
14010 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
14011 (bitmap.o): Likewise.
14013 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
14015 Unify the management of RTL and tree-level dump files.
14017 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
14018 Don't print function name to the dump file, the pass manager
14019 would do this for us. Add code from the top of
14020 rest_of_compilation, up to the initial RTL dump.
14021 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
14022 close the DFI_sibling dump file.
14023 (rest_of_compilation): Don't do that here. Remove code up to the
14025 (init_optimization_passes): Remove.
14026 (pass_rest_of_compilation): Change pass name to NULL.
14027 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
14028 Do not call init_optimization_passes.
14029 * toplev.h (init_optimization_passes): Remove.
14031 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
14032 finish_graph_dump_file): Remove SUFFIX parameter.
14033 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
14034 finish_graph_dump_file): Likewise.
14036 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
14037 * cfgexpand.c (pass_expand): Adjust.
14038 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
14039 * passes.c (pass_rest_of_compilation): Adjust.
14040 * predict.c (pass_profile): Adjust.
14041 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
14042 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
14043 pass_split_crit_edges, pass_warn_function_return): Adjust.
14044 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
14045 * tree-dfa.c (pass_referenced_vars): Adjust.
14046 * tree-eh.c (pass_lower_eh): Adjust.
14047 * tree-if-conv.c (pass_build_ssa): Adjust.
14048 * tree-into-ssa.c (pass_build_ssa): Adjust.
14049 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
14050 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
14051 * tree-nrv.c (pass_nrv): Adjust.
14052 * tree-optimize.c (pass_gimple, pass_all_optimizations,
14053 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
14054 pass_init_datastructures): Adjust.
14055 * tree-outof-ssa.c (pass_del_ssa): Adjust.
14056 * tree-profile.c (pass_tree_profile): Adjust.
14057 * tree-sra.c (pass_sra): Adjust.
14058 * tree-ssa-alias.c (pass_may_alias): Adjust.
14059 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
14060 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
14061 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
14062 * tree-ssa-dom.c (pass_dominator): Adjust.
14063 * tree-ssa-dse.c (pass_dse): Adjust.
14064 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
14065 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
14066 * tree-ssa-loop-ch.c (pass_ch): Adjust.
14067 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
14068 pass_loop_done, pass_complete_unroll, pass_iv_canon,
14069 pass_iv_optimize, pass_vectorize): Adjust.
14070 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
14071 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
14072 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
14073 pass_late_warn_uninnitialized): Adjust.
14074 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
14076 * Makefile.in (tree-dump.o): Add new dependencies.
14077 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
14078 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
14080 * toplev.c (dump_file_name): New.
14081 * tree-dump.c (dump_enable_all): Add LETTER parameter.
14082 (struct dump_file_info): Add NUM and LETTER fields.
14083 (dump_files): Adjust and add RTL dump files.
14084 (dump_register): Add NUM and LETTER fields.
14085 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
14086 (dump_begin): Use get_dump_file_name.
14087 (dump_switch_p_1): Adjust call to dump_enable_all.
14088 * tree-dump.h (dump_register): Adjust prototype.
14089 * tree-optimize.c (register_one_dump_file): Take dump file index.
14090 Support flags for RTL dumps.
14091 (register_dump_files): Fill in NUM field of struct dump_file_info.
14092 Track properties both when the gate is executed and when it is not.
14093 (execute_todo): Dump RTL. Add PROPERTIES parameter.
14094 (execute_one_pass): Pass properties to execute_todo. Handle VCG
14096 * tree-pass.h (dump_file_name): New.
14097 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
14100 * Makefile.in (passes.o): Add new dependencies.
14101 * passes.c (struct dump_file_info, enum dump_file_index,
14102 dump_file_tbl, init_optimization_passes): Remove.
14103 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
14104 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
14106 (finish_optimization_passes): Update finish_graph_dump_file loop.
14107 (enable_rtl_dump_file): Remove.
14108 * tree-dump.c (dump_files): Adjust and add RTL dump files.
14109 (enable_rtl_dump_file): Add here.
14110 * tree.h (enum tree_dump_index): Add RTL dump file indices.
14111 * doc/invoke.texi (Debugging options): Document new RTL debugging
14114 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
14116 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
14117 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
14118 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
14119 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14120 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
14121 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
14122 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
14123 vec.h: Fix comment formatting.
14125 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
14127 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
14128 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
14129 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
14130 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
14131 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
14132 tree-ssa-loop-niter.c, tree-ssa-operands.c,
14133 tree-ssa-operands.h, tree-ssa-propagate.c,
14134 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
14135 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
14137 2004-09-05 Diego Novillo <dnovillo@redhat.com>
14139 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
14140 vectorizer is enabled.
14142 2004-09-05 Andreas Jaeger <aj@suse.de>
14144 * tree-if-conv.c: Spell check comments and clean up whitespace.
14146 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14148 * tree-ssa-loop-ivopts.c: New file.
14149 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
14150 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
14151 target_pres_cost, target_spill_cost): Declare.
14152 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
14153 spill_cost): Renamed to ...
14154 (target_avail_regs, target_res_regs, target_small_cost,
14155 target_pres_cost, target_spill_cost): ... and exported.
14156 (init_set_costs, global_cost_for_size): Work with renamed variables.
14157 * common.opt (flag_ivopts): New flag.
14158 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
14160 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
14161 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
14162 generating SSA form.
14163 (force_gimple_operand): New function.
14164 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
14165 * tree-cfg.c (stmt_bsi): New function.
14166 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
14167 PARAM_IV_MAX_CONSIDERED_USES): New.
14168 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
14169 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
14170 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
14171 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
14172 * tree-nested.c (build_addr): Export.
14173 * tree-optimize.c (init_tree_optimization_passes): Add
14175 * tree-pass.h (pass_iv_optimize): Declare.
14176 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
14178 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
14179 as a phi node argument.
14180 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
14181 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
14183 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
14184 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
14185 pass_iv_optimize): New pass.
14186 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
14187 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
14188 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
14189 * tree.h (REF_ORIGINAL): New macro.
14190 (build_int_cst_type, unsigned_type_for, zero_p,
14191 cst_and_fits_in_hwi, build_addr): Declare.
14192 * doc/invoke.texi (-fivopts): Document.
14193 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
14194 PARAM_IV_MAX_CONSIDERED_USES): Document.
14195 * doc/passes.texi: Document induction variable optimizations pass.
14197 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14199 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
14200 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
14201 * c-common.c (c_common_attribute_table): Accept parameters to
14202 sentinel attribute.
14203 (check_function_sentinel, handle_sentinel_attribute): Likewise.
14204 * doc/extend.texi: Update accordingly.
14206 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14208 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
14210 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
14212 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
14214 (c_common_attribute_table): Add `sentinel' attribute.
14215 (check_function_arguments): Handle `sentinel' attribute.
14216 * doc/extend.texi: Document `sentinel' attribute.
14218 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
14220 * configure: Regenerated.
14222 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14224 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
14226 * tree.c (save_expr): No longer TREE_READONLY.
14228 2004-09-04 Jan Hubicka <jh@suse.cz>
14230 * passes.c (rest_of_clean_state): Fix merge conflict made during
14231 commiting the patch.
14233 2004-09-04 Jan Hubicka <jh@suse.cz>
14235 * passes.c (rest_of_clean_state): Decompose the instruction stream.
14237 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14239 * doc/md.texi (shift patterns): New anchor. Add reference to
14240 TARGET_SHIFT_TRUNCATION_MASK.
14241 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
14242 * target.h (shift_truncation_mask): New target hook.
14243 * targhook.h (default_shift_truncation_mask): Declare.
14244 * targhook.c (default_shift_truncation_mask): Define.
14245 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
14246 (TARGET_INITIALIZER): Include it.
14247 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
14248 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
14249 reject all out-of-range values. Fix sign-extension code for modes
14250 whose width is smaller than HOST_BITS_PER_WIDE_INT.
14251 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
14252 (expand_superword_shift, expand_subword_shift): Likewise.
14253 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
14254 (expand_binop): Use them to implement double-word shifts.
14255 * config/arm/arm.c (arm_shift_truncation_mask): New function.
14256 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14258 2004-09-04 Jan Hubicka <jh@suse.cz>
14260 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
14261 (mix): New macro copied from hashtab.c
14262 (iterative_hash_hashval_t, iterative_hash_pointer,
14263 iterative_hash_host_wide_int): New functions based on hashtab.c
14266 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14268 * config/mips/mips.md (mask): New mode attribute.
14269 (zero_extendsidi2): Add memory alternative.
14270 (*zero_extendsidi2_mem): Delete.
14271 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
14272 memory_operand in the TARGET_MIPS16 check.
14273 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
14274 Redefine using :GPR and :SHORT.
14275 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
14277 2004-09-04 Uros Bizjak <uros@kss-loka.si>
14279 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
14281 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
14282 expand_builtin_mathfn.
14283 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
14284 btrunc?f patterns for btrunc_optab. Implement rint_optab using
14286 * optabs.c (init_optabs): Initialize rint_optab.
14287 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
14289 (btrunc_optab): Rename macro from trunc_optab.
14290 (rint_optab): Define corresponding macro.
14292 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
14293 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
14295 * config/i386/i386-protos.h (emit_i387_cw_initialization):
14296 Change prototype. Add new int parameter.
14297 * config/i386/i386.c (emit_i387_cw_initialization):
14298 Handle new rounding modes.
14300 * config/i386/i386.h (enum fp_cw_mode): Delete.
14301 (MODE_NEEDED): Handle new rounding modes.
14302 (EMIT_MODE_SET): Change condition to handle new rounding modes.
14304 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
14305 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
14306 represent different rounding modes of frndint insn.
14307 (type): Add frndint type.
14308 (i387, length, memory): Handle this type.
14309 (i387_cw): New attribute definition.
14310 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
14311 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
14312 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
14313 Add "i387_cw" attribute defined to "trunc".
14314 (x86_fnstcw_1): Remove comment.
14315 (*frndintxf2): Rename insn definition to frndintxf2. Move
14316 insn definition near rint?f2 expanders.
14317 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
14318 rintf and rintl built-ins as inline x87 intrinsics.
14319 (frndintxf2_floor): New pattern to implement floor rounding
14320 mode with frndint x87 instruction.
14321 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
14322 floorf and floorl built-ins as inline x87 intrinsics.
14323 (frndintxf2_ceil): New pattern to implement ceil rounding
14324 mode with frndint x87 instruction.
14325 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
14326 ceilf and ceill built-ins as inline x87 intrinsics.
14327 (frndintxf2_trunc): New pattern to implement trunc rounding
14328 mode with frndint x87 instruction.
14329 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
14330 truncf and truncl built-ins as inline x87 intrinsics.
14331 (frndintxf2_mask_pm): New pattern to implement rounding
14332 mode with exceptions with frndint x87 instruction.
14333 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
14334 implement nearbyint, nearbyintf and nearbyintl built-ins as
14335 inline x87 intrinsics.
14337 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14339 * config/mips/mips.md (SHORT): New mode macro.
14340 (size): New mode attribute.
14341 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
14342 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
14343 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
14345 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
14346 *extend[qh]isi2_hw patterns and extending them to di.
14347 (extendqihi2): Implement as define_insn_and_split that produces
14348 extendqisi2 after reload.
14350 2004-09-03 Devang Patel <dpatel@apple.com>
14352 * Makefile.in (OBJS-common): Add tree-if-conv.o
14353 (tree-if-conv.o): New rule.
14354 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
14355 (get_loop_body_in_bfs_order): New.
14356 * cfgloop.h (get_loop_body_in_bfs_order): New.
14357 * tree-flow.h (enum move_pos): Move here from ..
14358 * tree-ssa-loop-im.c (enum move_pos): here.
14359 (movement_possibility): Make externally visible.
14360 * tree-optimize.c (init_tree_optimization_passes): New entry for
14361 if conversion pass.
14362 * tree-pass.h (pass_if_conversion): New.
14363 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
14364 * tree-if-conv.c: New file.
14365 * doc/passes.texi: Document tree if-conversion pass.
14366 * doc/tree-ssa.texi: Same.
14368 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14371 Makefile.in (LIB2ADDEHSTATIC): New.
14372 (LIB2ADDEHSHARED): New.
14374 (LIBUNWINDDEP): New.
14375 (SHLIBUNWIND_LINK): New.
14376 (SHLIBUNWIND_INSTALL): New.
14377 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
14378 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
14379 (clean): Remove libunwind*
14380 (stage1-start): Remove and copy stage1/libunwind*.
14381 (stage2-start): Remove and copy stage2/libunwind*.
14382 (stage3-start): Remove and copy stage3/libunwind*.
14383 (stage4-start): Remove and copy stage4/libunwind*.
14384 (stageprofile-start): Remove and copy stageprofile/libunwind*.
14385 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
14387 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
14388 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
14389 tmake_file if --with-system-libunwind isn't used.
14391 * config/ia64/t-glibc-libunwind: New file.
14392 * config/t-libunwind-elf: Likewise.
14393 * unwind-compat.c: Likewise.
14394 * unwind-compat.h: Likewise.
14395 * unwind-dw2-fde-compat.c: Likewise.
14397 * config/ia64/t-glibc (LIB2ADDEH): Updated.
14398 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14400 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
14402 * unwind-dw2-fde-glibc.c: Likewise.
14403 * unwind-dw2.c: Likewise.
14405 * config/t-libunwind (LIB2ADDEH): Updated.
14406 (LIB2ADDEHSTATIC): New.
14407 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14408 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
14410 * configure.ac: Change --enable-libunwind-exceptions to
14411 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
14412 * configure: Regenerated.
14413 * config.in: Updated.
14415 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
14416 above and mention --with-system-libunwind.
14417 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
14418 removed in gcc 3.4.3 and later.
14420 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
14421 USE_LIBUNWIND_EXCEPTIONS is defined.
14423 * mklibgcc.in: Support libunwind.
14425 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14427 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
14430 2004-09-03 Richard Henderson <rth@redhat.com>
14433 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
14434 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
14435 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
14436 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
14437 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
14438 resize_stack_vars_conflict, add_stack_var_conflict,
14439 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
14440 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
14441 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
14442 expand_one_static_var, expand_one_hard_reg_var,
14443 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
14444 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
14445 (expand_used_vars): Rewrite.
14446 * Makefile.in (cfgexpand.o): Update dependencies.
14448 2004-09-04 Jan Hubicka <jh@suse.cz>
14450 * cfg.c (free_edge): Use ggc_free.
14451 (expunge_block): Use ggc_free.
14452 * passes.c (rest_of_clean_state): Free after compilation.
14453 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
14454 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
14456 2004-09-03 James E Wilson <wilson@specifixinc.com>
14458 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
14459 DECL_EXTERNAL check.
14461 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14463 * final.c (output_in_slot): New global variable.
14464 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
14465 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
14466 'output_in_slot' before invoking output_asm_insn.
14467 (output_asm_insn): Add a space after the tab if 'output_in_slot'
14469 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
14471 (output_sibcall): Likewise.
14473 2004-09-03 Jan Hubicka <jh@suse.cz>
14475 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
14476 * tree-ssanames (init_ssanames): Likewise.
14478 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14480 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
14481 objc_declare_protocols, objc_start_protocol,
14482 objc_start_class_interface, objc_start_category_interface,
14483 objc_continue_interface, objc_finish_interface,
14484 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
14485 objc_start_class_implementation, objc_start_category_implementation,
14486 objc_continue_implementation, objc_finish_implementation,
14487 objc_add_method_declaration, objc_start_method_definition,
14488 objc_finish_method_definition, objc_build_keyword_decl,
14489 objc_build_method_signature, objc_build_encode_expr,
14490 objc_build_protocol_expr, objc_build_selector_expr,
14491 objc_build_message_expr, objc_build_string_object,
14492 objc_get_class_reference, objc_get_protocol_qualified_type,
14493 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
14495 2004-09-03 James E Wilson <wilson@specifixinc.com>
14497 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
14499 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
14500 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
14501 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
14502 (mips_recip1_<fmt>): Use frdiv1 type.
14503 (mips_recip2_<fmt>): Use frdiv2 type.
14504 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
14505 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
14507 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
14509 2004-09-03 Daniel Jacobowitz <dan@debian.org>
14511 * reload.c (find_reloads): Swap operand_loc pointers for
14512 find_dummy_reload if we have swapped two operands.
14514 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
14516 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
14517 to get the tablejump-insn before the jump-table label.
14519 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14521 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
14522 objc_declare_protocols, objc_build_message_expr,
14523 objc_finish_message_expr, objc_build_selector_expr,
14524 objc_build_protocol_expr, objc_build_encode_expr,
14525 objc_build_string_object, objc_get_protocol_qualified_type,
14526 objc_get_class_reference, objc_get_class_ivars,
14527 objc_start_class_interface, objc_start_category_interface,
14528 objc_start_protocol, objc_continue_interface, objc_finish_interface,
14529 objc_start_class_implementation, objc_start_category_implementation,
14530 objc_continue_implementation, objc_finish_implementation,
14531 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
14532 objc_add_method_declaration, objc_start_method_definition,
14533 objc_finish_method_definition, objc_add_instance_variable,
14534 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
14535 objc_finish_try_stmt, objc_begin_catch_clause,
14536 objc_finish_catch_clause, objc_build_finally_clause,
14537 objc_build_synchronized, objc_static_init_needed_p,
14538 objc_generate_static_init_call): New prototypes.
14540 2004-09-03 Steve Ellcey <sje@cup.hp.com>
14542 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
14544 (ia64_function_value): Ditto.
14546 2004-09-03 Jan Beulich <jbeulich@novell.com>
14548 * config.gcc: Resurrect NetWare as a target. Handle special case of
14549 Novell linker to be used (specified through --with-ld=) and threading
14550 model of either Posix (default) or NKS.
14551 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
14552 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
14553 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
14554 * config/i386/netware.c, config/i386/netware.h: New.
14555 * config/i386/nwld.c, config/i386/nwld.h: New.
14556 * config/i386/netware-crt0.c: New.
14557 * config/i386/netware-libgcc.c: New.
14558 * config/i386/netware-libgcc.def: New.
14559 * config/i386/netware-libgcc.exp: New.
14560 * config/i386/t-netware, config/i386/t-nwld: New.
14562 * doc/install.texi: Document NKS threading model.
14564 2004-09-03 Jan Beulich <jbeulich@novell.com>
14567 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
14568 * tree.h (initial_max_fld_align): Declare
14569 * stor-layout.c (initial_max_fld_align): Define and initialize.
14570 (maximum_field_alignment): Initialize to the same value.
14571 * common.opt: Add -fpack-struct= variant of switch.
14572 * opts.c: Handle -fpack-struct= variant of switch.
14573 * c-pragma.c: Change #pragma pack() handling so that it becomes
14574 compatible to other compilers: accept individual 'push' argument,
14575 make final pop restore (command line) default, correct interaction
14576 of push/pop and sole specification of a new alignment (so that the
14577 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
14578 to #pragma pack(push, <n>).
14579 * doc/extend.texi: New node "Structure-Packing Pragmas" under
14580 "Pragmas", describing #pragma pack.
14581 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
14582 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
14583 Document new TARGET_DEFAULT_PACK_STRUCT.
14585 2004-09-03 Devang Patel <dpatel@apple.com>
14587 * dwarf2out.c (gen_field_die). Equate decl number to die.
14589 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
14592 * global.c (modify_reg_pav): New function.
14593 (make_accurate_live_analysis): Call the new function. Move pavin
14594 modification by earlyclobber set into the new function.
14596 2004-09-03 Andreas Schwab <schwab@suse.de>
14598 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
14599 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
14602 2004-09-02 Jan Beulich <jbeulich@novell.com>
14604 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
14605 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
14606 not unwind code specific ones.
14607 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
14608 Remove unwind code specific dependencies.
14609 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
14610 Remove gbl-ctors.h.
14611 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
14612 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
14613 * tsystem.h: Declare memcpy and memset when inhibit_libc.
14615 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14617 * combine.c (try_combine): Delay modifying of insns which cannot
14620 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
14622 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
14624 * gcc/tree-ssa-loop.c: Ditto
14625 * gcc/tree-ssa-loop-ivcanon.c: Ditto
14626 * gcc/doc/invoke.texi: Ditto.
14628 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14630 * c-decl.c (store_parm_decls_newstyle): Make static.
14631 (store_parm_decls_from): New function.
14632 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
14633 (store_parm_decls_from): New prototype.
14635 2004-09-02 David Edelsohn <edelsohn@gnu.org>
14637 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
14638 HImode with STRICT_ALIGNMENT.
14640 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14642 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
14643 (TARGET_OS_CPP_BUILTINS): Likewise.
14644 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
14645 TARGET_BPABI_CPP_BUILTINS.
14647 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14649 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
14651 2004-09-02 Eric Christopher <echristo@redhat.com>
14653 * builtins.c (expand_builtin_cabs): Delete.
14654 (expand_builtin): If unable to fold the values do a normal
14655 library call for builtin_cab*.
14656 (fold_builtin_cabs): Depend on optimize and optimize_size.
14657 * optabs.c (expand_cmplxdiv_straight): Delete.
14658 (expand_cmplxdiv_wide): Ditto.
14659 (expand_vector_binop): Ditto.
14660 (expand_vector_unop): Ditto.
14661 (expand_complex_abs): Delete.
14662 (expand_binop): Remove calls to above functions.
14663 Remove open coding of complex arithmetic.
14664 (expand_unop): Ditto.
14665 * optabs.h: Remove prototypes.
14667 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14669 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
14670 * c-tree.h (store_parm_decls_newstyle): New prototype.
14672 2004-09-02 Geoffrey Keating <geoffk@apple.com>
14674 * config/rs6000/rs6000.c (expand_block_clear): Use vector
14675 instructions if available.
14676 (expand_block_move): Likewise.
14678 2004-09-03 Jan Hubicka <jh@suse.cz>
14680 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
14682 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14684 * config/arm/symbian.h (LIB_SPEC): Define to empty.
14685 * config/arm/t-symbian (SHLIB_LC): Likewise.
14687 2004-09-02 Paul Brook <paul@codesourcery.com>
14689 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
14691 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14693 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
14694 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
14695 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
14696 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
14697 (mips_issue_rate): Remove unreachable abort.
14698 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
14699 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
14700 (mips_block_move_straight, print_operand_address, mips_file_start)
14701 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
14702 (mips_output_conditional_branch, mips_expand_builtin_direct)
14703 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
14704 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
14707 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14709 * config/mips/mips.md (*lea_high64): Change split condition to
14710 flow2_completed. Add a peephole2 to generate a more parallel version.
14712 2004-09-02 Jan Hubicka <jh@suse.cz>
14714 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
14717 * ggc-page.c: include tree-flow.h.
14718 (extra_order_size_table): Add stmt_ann_d.
14719 (STAT_LABEL): Rename from ....
14720 (LABEL): ... this one.
14721 * Makefile.in (ggc-page.o): Add dependency.
14723 * ggc-common.c (ggc_force_collect): New global variable.
14724 (loc_description): Add fields "freed", "collected"
14725 (ptr_hash): New static hash
14726 (ptr_hash_entry): New structure.
14727 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
14728 (ggc_record_overhead): Take ptr argument, record it
14729 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
14730 (cmp_statistics): Imrove sorting.
14731 (dump_ggc_loc_statistics): Output newly collected statistics
14732 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
14733 (ggc_free): Call ggc_free_overhead.
14734 (ggc_collect): Force collection when asked to be forced.
14735 (ggc_collect): Call ggc_prune_overhead_list.
14736 * ggc.h (ggc_force_collect): Declare
14737 (ggc_record_overhead): Update prototype.
14738 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
14740 2004-09-02 James E Wilson <wilson@specifixinc.com>
14742 * common.opt (ftrapping-math): Default to on.
14744 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
14746 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
14748 2004-09-02 Denis Chertykov <denisc@overta.ru>
14751 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
14753 (*movmemqi_insn): Likewise.
14754 (*movmemhi): Likewise.
14755 (clrmemhi): Likewise.
14756 (*clrmemqi): Likewise.
14757 (*clrmemhi): Likewise.
14759 2004-09-02 Paul Brook <paul@codesourcery.com>
14761 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
14762 default_use_cxa_atexit=yes.
14764 2004-09-02 Alan Modra <amodra@bigpond.net.au>
14766 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
14767 (struct kernel_old_ucontext): Delete.
14768 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
14769 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
14772 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14774 * toplev.c (process_options): Fix typo.
14776 2004-09-01 Richard Henderson <rth@redhat.com>
14778 PR middle-end/17258
14779 * calls.c (initialize_argument_information): Tighten pass-through
14780 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
14781 Use build_fold_addr_expr.
14782 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
14783 that assumes ADDR_EXPR allocates stack space.
14784 * fold-const.c (build_fold_addr_expr_with_type): Look through
14787 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
14789 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
14790 * ggc.h (ggc_alloc_rtx): Delete.
14792 2004-09-01 Roger Sayle <roger@eyesopen.com>
14794 * expmed.c (enum alg_code): Remove long unused enumeration values.
14795 (struct mult_cost): New structure to hold the "score" of a synthetic
14796 multiply sequence, including both a rtx_cost and a latency field.
14797 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
14798 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
14799 (struct algorithm): Change type of cost field to be mult_cost.
14800 (synth_mult): Change type of cost_limit argument to be a
14801 pointer to a mult_cost. Update all cost comparisons to use the
14802 new mult_cost infrastructure. For alg_add_factor and
14803 alg_sub_factor operations, latency is lower than the rtx_cost.
14804 (choose_mult_variant): Update calls to synth_mult. Perform
14805 cost comparisons using the new mult_cost infrastructure.
14806 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
14807 to optain the total rtx_cost of a synth_mult "algorithm".
14809 2004-09-01 David Edelsohn <edelsohn@gnu.org>
14811 * config/rs6000/power4.md: Increase store latency to 12.
14812 * config/rs6000/power5.md: Same.
14814 2004-09-01 James E Wilson <wilson@specifixinc.com>
14817 * config/avr/avr.c (avr_unique_section): Delete prototype and
14819 (TARGET_ASM_UNIQUE_SECTION): Delete.
14821 2004-09-01 Ziemowit Laski <zlaski@apple.com>
14823 * c-parse.in (primary): Call objc_build_message_expr(),
14824 objc_build_selector_expr(), objc_build_protocol_expr(),
14825 objc_build_encode_expr() and objc_build_string_object() instead of
14826 build_message_expr(), build_selector_expr(), build_protocol_expr(),
14827 build_encode_expr() and build_objc_string_object(), respectively.
14828 (component_decl_list2): Call objc_get_class_ivars() instead of
14829 get_class_ivars_from_name().
14830 (keyworddecl): Call objc_build_keyword_decl() instead of
14831 build_keyword_decl().
14832 (receiver): Call objc_get_class_reference() instead of
14833 get_class_reference().
14834 (reswords): Add blank line before @@ifobjc section, for clarity.
14836 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
14838 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
14841 2004-09-01 Wu Yongwei <adah@sh163.net>
14842 Danny Smith <dannysmith@users.sourceforge.net>
14844 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
14845 not Windows 'DWORD'.
14846 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
14847 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
14848 (__gthr_win32_recursive_mutex_init_function): Add prototype for
14849 __GTHREAD_HIDE_WIN32API case..
14850 (__gthr_win32_recursive_mutex_lock): Likewise.
14851 (__gthr_win32_recursive_mutex_trylock): Likewise.
14852 (__gthr_win32_recursive_mutex_unlock): Likewise.
14853 (__gthread_recursive_mutex_init_function); Add definition for
14854 __GTHREAD_HIDE_WIN32API case.
14855 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
14856 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
14857 call to InterlockedDecrement.
14859 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14861 * tree-tailcall.c (find_tail_calls): Also fail is statement has
14864 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
14866 * doc/c-tree.texi: Document new operands for ARRAY_REF and
14869 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14871 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
14872 * common.opt (fspeculative-prefetching): New.
14873 * flags.h (flag_speculative_prefetching_set): Declare.
14874 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
14876 * opts.c (flag_sepculative_prefetching_set): New variable.
14877 (common_handle_option): Handle -fspeculative-prefetching.
14878 * passes.c (rest_of_compilation): Ditto.
14879 * profile.c (instrument_values, compute_value_histograms, branch_prob):
14880 Use vectors instead of arrays.
14881 * toplev.c (process_options): Handle -fspeculative-prefetching.
14882 * rtl-profile.c: Include ggc.h.
14883 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
14884 rtl_gen_one_value_profiler_no_edge_manipulation,
14885 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
14887 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
14888 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
14890 * value-prof.c: Include ggc.h.
14891 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
14893 (insn_prefetch_values_to_profile, find_mem_reference_1,
14894 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
14895 speculative_prefetching_transform): New.
14896 (value_profile_transformations): Call speculative_prefetching_transform.
14897 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
14898 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
14899 tree_find_values_to_profile, find_values to profile): Use vectors
14901 (free_profiled_values): Removed.
14902 * value-prof.h (struct histogram_value): Renamed to
14903 struct histogram_value_t.
14904 (histogram_value, histogram_values): New types.
14905 (find_values_to_profile): Declaration changed.
14906 (free_profiled_values): Removed.
14907 (struct profile_hooks): Type of argument of the hooks changed to
14909 * doc/invoke.texi (-fspeculative-prefetching): Document.
14911 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14913 PR rtl-optimization/16408
14914 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
14916 2004-09-01 Richard Henderson <rth@redhat.com>
14918 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
14919 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
14921 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14923 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
14925 2004-09-01 Mike Stump <mrs@apple.com>
14927 * config/darwin.c (machopic_symbol_defined_p): In addition to
14928 being SYMBOL_REF_LOCAL_P, a symbol must also be
14929 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
14930 defined in this output file, or translation unit in the case
14931 of IMA not being used.
14932 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
14933 never need .indirect_symbol when indirecting.
14935 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14937 * Makefile.in (bb-reorder.o): Add several dependencies.
14939 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14941 * fold-const.c (operand_equal_p): Require equal sign also for
14942 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
14944 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14946 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
14947 for use in configargs.h. Put the cname in a separate variable. Use
14948 that to set target_cpu_default2.
14950 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
14951 Nick Clifton <nickc@redhat.com>
14953 * config/sh/sh.md ("length"): Increase branch length when
14954 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
14955 constant, 2 byte for aligning the constant.
14957 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14959 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
14961 (arm7tdmi-s): New CPU name.
14962 * arm/arm.c (ARM_CORE): Update for new format.
14963 * arm/arm.h (ARM_CORE): Likewise.
14964 * arm/gentune.sh: Update for extra field.
14965 * config.gcc: Likewise.
14966 * arm/arm-tune.md: Regenerate.
14967 * doc/invoke.texi: Document the real processor names for ARM cpus.
14969 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14971 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
14972 (floatdidf): New functions.
14973 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
14974 (floatdisf): New functions.
14975 * t-arm-elf: Use them.
14977 2004-09-01 Ziemowit Laski <zlaski@apple.com>
14979 * c-common.h (lookup_interface): Remove prototype.
14980 (is_class_name): Rename to objc_is_class_name.
14981 (lookup_objc_ivar): Rename to objc_lookup_ivar.
14982 (get_current_scope): Rename to objc_get_current_scope.
14983 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
14984 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
14985 (yylexname): Call objc_is_class_name() instead of is_class_name().
14986 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
14987 instead of lookup_objc_ivar().
14988 * stub-objc.c (lookup_interface): Remove stub.
14989 (is_class_name): Rename to objc_is_class_name.
14990 (lookup_objc_ivar): Rename to objc_lookup_ivar.
14992 2004-08-31 Mark Mitchell <mark@codesourcery.com>
14994 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
14995 * config/arm/lib1funcs.asm: Do not include supplemental .S files
14996 when compiling for Symbian.
14997 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
14998 (TARGET_OS_CPP_BUILTINS): Likewise.
14999 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
15001 2004-08-31 Stan Shebs <shebs@apple.com>
15003 * toplev.c (process_options): Ensure debug_hooks is initialized.
15005 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15007 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
15008 * target.h (cxx): Add export_class_data.
15009 * config/arm/arm.c (arm_cxx_export_class_data): New function.
15010 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
15011 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
15013 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
15015 * config/sh/sh.c (output_branch): Check the insn length possibly
15016 in the delayed slot.
15018 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15020 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
15022 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
15024 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
15025 (c_sizeof_of_alignof_type): Likewise.
15026 * expr.c (array_ref_element_size): Likewise.
15027 (highest_pow2_factor_for_target): Likewise.
15028 * gimplify.c (canonicalize_addr_expr): Likewise.
15029 (gimplify_compound_lval): Likewise.
15030 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
15031 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
15032 * varasm.c (assemble_variable): Likewise.
15033 (output_constant_def_contents): Alignments are unsigned.
15035 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15036 Jeff Law <law@redhat.com>
15038 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
15041 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15043 * hooks.c (hook_bool_void_true): New function.
15044 * hooks.h (hook_bool_void_true): Declare.
15045 * target-def.h (TARGET_CXX): Add
15046 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
15047 * target.h (struct cxx): Add key_method_may_be_inline.
15048 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
15050 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
15051 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
15054 2004-08-31 Denis Chertykov <denisc@overta.ru>
15057 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
15058 frame pointer register only in Pmode while reload in progress.
15060 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
15063 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
15064 because it breaks the 32-bit shift patterns that rely on a match_dup.
15066 2004-08-31 Matt Austern <austern@apple.com>
15068 * config/darwin.c (darwin_make_decl_one_only): Allocate section
15069 names once per compilation, instead of once per symbol.
15071 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
15073 * Makefile.in (build_subdir): New substitution.
15074 (fixinc.sh): Simplify heavily since fixincludes is already built.
15075 (stmp-fixinc): Depend on specs.ready.
15076 (install-mkheaders): Use new location of fixincludes.
15077 (clean): Do not descend into fixinc.
15078 (FORBUILD): Replace with ../$(build_subdir).
15079 * configure.ac (build_subdir): Substitute.
15080 (FORBUILD): Do not set.
15081 (all_outputs): Remove fixinc/Makefile.
15082 (default commands): Do not create links in fixinc.
15083 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
15084 the fixincludes configuration steps and substituting
15085 @FIXINCL@ in fixinc.in.
15086 * fixinc.in: New, from fixinc/fixincl.sh.
15088 * fixinc/*: Removed.
15090 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
15092 * attribs.c (strip_attrs): Remove.
15093 (split_specs_attrs): Move ...
15094 * c-decl.c: ... to here.
15095 * tree.h (split_specs_attrs, strip_attrs): Remove.
15096 * c-tree.h (split_specs_attrs): Declare.
15098 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
15100 * read-rtl.c: Disable RTL checking.
15101 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
15103 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
15105 * config/mips/mips.md (fcond): New code macro and attribute.
15106 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
15107 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
15108 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
15110 2004-08-30 Mark Mitchell <mark@codesourcery.com>
15113 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15114 PR rtl-optimization/16590
15115 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15117 2004-08-30 Andrew Pinski <apinski@apple.com>
15120 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
15121 * ChangeLog: Fix previous ChangeLog entry.
15124 * config.host (use_long_long_for_widest_fast_int): New, default is
15126 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
15127 * configure.ac: If use_long_long_for_widest_fast_int, then
15128 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
15129 * configure: Regenerate.
15130 * config.in: Regenerate.
15131 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
15132 New: widest integer type supported efficiently in hardware for the
15134 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
15135 HOST_BITS_PER_WIDEST_FAST_INT.
15136 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
15137 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
15138 HOST_WIDEST_FAST_INT
15139 instead of HOST_WIDE_INT.
15140 (HARD_REG_SET_LONGS): Likewise.
15141 (UHOST_BITS_PER_WIDE_INT): Likewise.
15142 Change the checks for the fast cases to be based on
15143 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
15145 2004-08-30 Steven Bosscher <stevenb@suse.de>
15147 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
15150 2004-08-30 Geoffrey Keating <geoffk@apple.com>
15156 * c-decl.c (grokdeclarator): Produce error for 'static' on local
15157 function declaration.
15159 2004-08-30 Richard Henderson <rth@redhat.com>
15161 * expr.c (array_ref_element_size): Force aligned_size back to
15163 (component_ref_field_offset): Similarly for aligned_offset.
15164 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
15165 low-bound, element-size, field-offset fields rather than
15168 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
15170 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
15173 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
15175 * c-tree.h (struct language_function): Add arg_info element.
15176 * c-decl.c (current_function_arg_info): New.
15177 (grokdeclarator, store_parm_decls): Use it instead of
15179 (c_push_function_context, c_pop_function_context): Save and
15182 2004-08-30 Richard Henderson <rth@redhat.com>
15184 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
15185 COMPONENT_REF to pointer arithmetic.
15186 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
15187 constant "c" as a valid constant initializer. Allow narrowing of
15188 differences against the same base object, for any base object.
15190 2004-08-30 Richard Henderson <rth@redhat.com>
15192 * expr.c (expand_expr_addr_expr): New.
15193 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
15195 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15197 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
15198 (mips_fp_condition): New enum.
15199 (mips_fp_conditions): New array.
15200 (print_fcc_operand): Delete.
15201 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
15202 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
15203 (builtin_description): Add "cond" field.
15204 (DIRECT_BUILTIN): Initialize it.
15205 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
15206 into INSN and CODE. Initialize the "cond" field.
15207 (CMP_BUILTINS): Update accordingly.
15208 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
15209 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
15210 mips_fp_condition as argument. Make it the final operand of the
15211 comparison instruction.
15212 (mips_expand_builtin): Update accordingly.
15213 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
15214 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
15216 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
15217 Don't use the 'Q' operand prefix; just print the operand normally.
15218 (mips_cabs_*, mips_c_*): Delete, replacing with...
15219 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
15220 patterns. Split the 4s versions into 2 ps patterns after reload.
15222 2004-08-30 Richard Henderson <rth@redhat.com>
15224 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
15225 assuming an ADDR_EXPR is non-null.
15227 2004-08-30 Jason Merrill <jason@redhat.com>
15229 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
15231 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15233 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
15234 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
15235 gcc_assert and gcc_unreachable instead of abort.
15236 * alloc-pool.c (abort, fancy_abort): Remove.
15237 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
15238 gcc_assert or gcc_unreachable.
15239 * attribs.c (init_attributes, decl_attributes): Likewise.
15240 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
15241 mark_bb_for_unlikely_executed_section,
15242 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
15243 fix_crossing_unconditional_branches): Likewise.
15244 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
15245 bitmap_operation): Likewise.
15246 * bt-load.c (insn_sets_btr_p, augment_live_range,
15247 move_btr_def): Likewise.
15248 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
15249 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
15250 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
15251 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
15252 expand_builtin_memcmp, expand_builtin_args_info,
15253 std_gimplify_va_arg_expr, expand_builtin_unop,
15254 expand_builtin_fputs, expand_builtin_profile_func,
15255 expand_builtin_fork_or_exec, fold_builtin_bitop,
15256 fold_builtin_classify, fold_builtin_fputs): Likewise.
15258 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15260 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
15261 * gcov.c (abort): Remove undef.
15263 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
15264 (struct tree_binfo): Remove primary field.
15266 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15268 * fixinc/Makefile.in (machname.h): Remove.
15269 (fixincl.x): Do not pass $@ to genfixes.
15270 * fixinc/genfixes: Remove code to produce machname.h.
15271 * fixinc/fixincl.sh: Move it here instead.
15272 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
15273 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
15274 return a bool indicating whether pz_mn_name_pat is NULL.
15275 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
15276 Declare extern C variables for the ENV_TABLE.
15277 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
15278 instead use the result of mn_get_regexps.
15279 * fixinc/fixtests.c: Likewise.
15281 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15283 * configure.ac: Do not run fixincludes after stage1 during
15284 toplevel bootstrap.
15285 * configure: Regenerate.
15287 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15289 * sched-deps.c (get_condition): Partially revert previous, by never
15290 trying to extract the condition from a condjump.
15292 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15294 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
15295 (handle_visibility_attribute, c_determine_visibility): Likewise.
15296 * c-common.h (my_friendly_assert): Remove.
15298 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15300 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
15301 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
15302 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
15303 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
15304 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
15306 2004-08-30 Diego Novillo <dnovillo@redhat.com>
15308 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
15309 in COMPONENT_REF nodes.
15311 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
15314 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
15315 global_dc->warning_as_error_requested.
15316 * diagnostic.c (diagnostic_initialize): Tidy.
15317 * diagnostic.h (diagnostic_context::x_data): Remove
15318 (diagnostic_context::issue_warnings_are_errors_message): Rename
15319 from warnings_are_errors_message.
15320 (diagnostic_context::warning_as_error_requested): New.
15322 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15324 * sched-deps.c (get_condition): Fix breakage in previous patch.
15326 2004-08-30 Paul Brook <paul@codesourcery.com>
15328 * doc/install.texi: Fix broken mpfr link.
15330 2004-08-29 David O'Brien <obrien@FreeBSD.org>
15332 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
15333 other FreeBSD platforms.
15335 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15337 * arm.h (REVERSE_CONDITION): Define.
15338 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
15340 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15342 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
15343 just the codes, call reversed_comparison_code ().
15344 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
15345 (not_reg_cond): Use reversed_comparison_code.
15346 (and_reg_cond): Likewise.
15347 * ifcvt.c (cond_exec_process_if_block): Likewise.
15348 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
15350 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15352 * sched-deps.c (get_condition): Rewrite using jump support functions.
15353 Use reversed_comparison_code.
15354 (conditions_mutex_p): Use reversed_comparison_code.
15356 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15358 * config/mips/mips.c (override_options): Disable hot/cold partitioning
15361 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15363 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
15364 (mips_function_type): Move to mips.c.
15365 * config/mips/mips.c (mips_builtin_type): New enum.
15366 (builtin_description): Replace code and ftype with builtin_type
15368 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
15369 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
15370 (CODE_FOR_mips_abs_ps): Define.
15371 (mips_bdesc): Use new macros.
15372 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
15373 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
15374 (mips_expand_builtin_direct): New function.
15375 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
15376 builtin. Replace boolean parameter with builtin_type.
15377 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
15378 (mips_expand_4s_compare_builtin): Delete, replacing with...
15379 (mips_expand_builtin_compare): ...this new function.
15381 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15383 PR rtl-optimization/16590
15384 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15386 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15388 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
15389 * tree-ssa-propagate.c: Fix documentation.
15391 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15393 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
15394 (mov[sd]fcc): Likewise.
15396 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15398 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
15400 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15402 * config/mips/mips.md (divide_condition): New mode attribute.
15403 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
15404 (sqrt[sd]f3): Redefine using SCALARF.
15405 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
15408 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15410 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
15411 (loadx, storex, fmt, UNITMODE): New mode attributes.
15412 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
15413 (mul[sd]f3): Redefine using :SCALARF.
15414 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
15415 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
15416 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
15417 Check TARGET_FUSED_MADD for V2SF too.
15418 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
15419 were already named.
15420 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
15421 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
15423 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15425 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
15426 V2SF_type_node if it will be needed.
15428 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15430 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
15431 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
15432 (mips_prepare_builtin_target): New function.
15433 (mips_expand_builtin): Use them. Update calls to subroutines.
15434 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
15435 cmp_choice with a boolean argument to select between movt and movf.
15436 Take the comparison's icode as an argument, not the function's fcode.
15437 (mips_expand_compare_builtin): New function. Rename existing function
15438 to mips_expand_scalar_compare_builtin.
15439 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
15440 (mips_expand_ps_compare_builtin): Use the new functions. Take the
15441 comparison's icode as an argument, not the builtin's fcode.
15443 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15445 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
15446 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
15447 registers are false and -1 if all registers are true.
15448 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
15449 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
15450 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
15451 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
15452 (bc1any2t, bc1any2f): Likewise CCV2.
15453 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
15455 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15457 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
15458 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
15459 UNSPEC rather than an IF_THEN_ELSE.
15460 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
15461 mips_cond_move_tf_ps by name.
15463 2004-08-29 Chao-ying Fu <fu@mips.com>
15464 James E Wilson <wilson@specifixinc.com>
15466 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
15467 8 byte size and alignment. Give CCV4 16 byte size and alignment.
15468 * config/mips/mips-ps-3d.md: New file.
15469 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
15470 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15471 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
15472 (mips_output_move): Emit "mov.ps" for V2SFmode.
15473 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
15475 (override_options): Check if TARGET_MIPS3D and there was an explicit
15476 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
15477 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
15478 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
15479 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
15480 and allow CCV2 and CCV4 to occupy two and four CC registers.
15481 (print_fcc_operand): New function.
15482 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
15483 %Z to call print_fcc_operand.
15484 (mips_function_value): Handle MODE_VECTOR_FLOAT.
15485 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
15486 (mips_vector_mode_supported_p): New function.
15487 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
15488 (builtin_description): New struct.
15489 (mips_bdesc): New array of struct builtin_description.
15490 (mips_expand_builtin, mips_init_builtins,
15491 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
15492 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
15494 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
15495 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
15496 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
15497 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
15498 "-mips3d", and "-mno-mips3d".
15499 (ASM_SPEC): Map -mips3d to -mips3d in gas.
15500 (EXTRA_CONSTRAINT_Y): New macro.
15501 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
15502 multi-letter constraint 'Y'.
15503 (CONSTRAINT_LEN): New macro.
15504 (enum mips_builtins): New for MIPS builtin functions.
15505 (enum mips_function_type): New for the types of MIPS builtin functions.
15506 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
15507 * config/mips/mips.md: New constants for paired single and MIPS-3D
15508 instructions. Include the new mips-ps-3d.md file.
15509 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
15510 movv2sf_hardfloat_64bit): New named patterns.
15511 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
15512 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
15513 sdxc1_v2sf_di): New unnamed patterns.
15514 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
15515 const_vector support.
15516 (const_0_or_1_operand): New predicate.
15517 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
15519 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15521 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
15522 (tree-ssa-propagate.o): New rule.
15523 (GTFILES): Add tree-ssa-propagate.c.
15524 * tree-flow.h (struct stmt_ann_d): Remove field
15526 * tree-ssa-propagate.c: New file.
15527 * tree-ssa-propagate.h: New file.
15528 * tree-ssa-ccp.c: Re-write to use the routines from
15529 tree-ssa-propagate.c.
15531 2004-08-28 Andrew Pinski <apinski@apple.com>
15533 * tree-ssa-loop.c: Remove extra include of basic-block.h.
15535 2004-08-28 Ziemowit Laski <zlaski@apple.com>
15537 * c-common.h: Update comments about ObjC/ObjC++ entry points.
15538 (objc_is_reserved_word): New prototype.
15539 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
15540 separate section; these are call-backs.
15541 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
15542 ObjC/ObjC++ "@" keywords.
15543 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
15544 prototypes; they already live in c-common.h.
15545 * stub-objc.c: Update copyright notice.
15546 (objc_is_reserved_word): New stub.
15548 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
15550 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
15551 even when not checking.
15553 2004-08-27 Jason Merrill <jason@redhat.com>
15556 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
15557 (gimple_push_cleanup): Add eh_only parm.
15558 (gimplify_target_expr): Pass it.
15559 * c.opt (-fno-threadsafe-statics): New option.
15560 * c-opts.c (c_common_handle_option): Handle it.
15561 * c-common.h (flag_threadsafe_statics): Declare it.
15562 * c-common.c (flag_threadsafe_statics): Record it.
15563 * doc/invoke.texi: Document it.
15564 * tsystem.h (_GNU_SOURCE): Define.
15565 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
15566 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
15567 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
15568 (__gthread_recursive_mutex_init_function): New fn.
15569 (__gthread_recursive_mutex_lock): New fn.
15570 (__gthread_recursive_mutex_trylock): New fn.
15571 (__gthread_recursive_mutex_unlock): New fn.
15572 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
15573 * gthr-win32.h, gthr-vxworks.h: Likewise.
15574 * gthr.h: Document.
15576 2004-08-27 David Edelsohn <edelsohn@gnu.org>
15578 * config/rs6000/rs6000.c (rs6000_override_options): Increase
15579 maximum skip to 15. Set function alignment, jump alignment, and
15580 loop alignment to 16 for processors that form dispatch groups.
15581 (rs6000_rtx_costs): outer_code is used.
15583 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15585 * stor-layout.c (sizetype_set): Remove.
15586 (set_sizetype): Don't test or set it.
15588 * tree.h (size_int_type): Remove.
15589 * fold-const.c: Do not #include gt-fold-const.h.
15590 (size_htab_hash, size_htab_eq): Remove.
15591 (size_int_kind): Use build_int_cst.
15592 (new_const, size_htab): Remove.
15593 (size_int_type): Remove.
15594 (round_up): Use build_int_cst.
15595 (round_down): Likewise. Remove spurious constant build.
15597 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15599 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
15600 Add is_release variable, use it for --enable-werror and
15601 --enable-checking defaults.
15602 * system.h (gcc_assert, gcc_unreachable): New.
15603 * doc/install.texi (--enable-checking): Update.
15604 * configure, config.in: Rebuilt.
15606 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
15608 * rtl.h (read_rtx): Change prototype.
15609 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
15610 line number. Return true on success.
15611 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
15612 callers accordingly.
15614 2004-08-26 Richard Henderson <rth@redhat.com>
15616 * c-typeck.c (build_offsetof): Remove.
15617 * c-tree.h (build_offsetof): Remove.
15618 * c-common.c (fold_offsetof_1, fold_offsetof): New.
15619 * c-common.h (fold_offsetof): Declare.
15620 * c-parse.in (offsetof_base): New.
15621 (offsetof_member_designator): Use it. Build references, not just
15623 (primary): Use fold_offsetof, not build_offsetof.
15625 2004-08-26 Richard Henderson <rth@redhat.com>
15627 * tree.c (staticp): Return the static object.
15628 * tree.h (staticp): Update decl.
15629 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
15630 * langhooks.c (lhd_staticp): Return NULL_TREE.
15631 * langhooks-def.h (lhd_staticp): Update decl.
15632 * c-common.c (c_staticp): Return the static object.
15633 * c-common.h (c_staticp): Update decl.
15635 2004-08-26 Richard Henderson <rth@redhat.com>
15637 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
15640 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
15643 * c-decl.c (struct c_binding): Add type and inner_comp fields.
15644 (bind): Set type and inner_comp fields.
15645 (pop_scope): Restore type of decl to the correct type from an
15646 outer scope. Give error when popping file scope for incomplete
15647 arrays completed incompatibly with default initialization in an
15649 (diagnose_mismatched_decls): Handle externs with initializers at
15651 (pushdecl): Set type of external declaration at block scope based
15652 only on the visible declarations. Save type when changing the
15653 type of a declaration. Merge an external declaration at block
15654 scope with a visible static declaration at file scope.
15655 (implicitly_declare): Give recycled old declaration the new type
15656 except for incompatible declarations of built-in functions, saving
15659 2004-08-26 Ziemowit Laski <zlaski@apple.com>
15661 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
15663 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15665 * tree-alias-common.c (gate_pta): New function.
15666 (pass_build_pta): Use it.
15667 (pass_del_pta): Use it.
15668 (delete_alias_vars): Don't check flag_tree_points_to.
15670 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15672 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
15673 TFmode as additional register mode cloberred by call.
15675 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15677 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
15678 parallel pattern for library call returning DImode in
15681 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15683 * config/rs6000/rs6000.c (function_arg): Generate parallel
15684 pattern for more split args.
15686 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15688 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
15689 either gen_movdi_di_update or gen_movdi_si_update depending on
15691 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
15692 to generate two versions.
15694 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15696 * Makefile.in (lambda-code.o): New.
15697 (lambda-trans.o): Ditto.
15698 (TREE_DATA_REF_H): Ditto.
15700 (lambda-mat.o): Use LAMBDA_H.
15701 (tree-data-ref.o): Ditto.
15702 * lambda-code.c: New file. Lambda code generation algorithm.
15703 * lambda-trans.c: Ditto. Lambda transformation matrix support.
15704 * lambda.h: Add lambda loop structures.
15705 Add lambda loopnest structures.
15706 Add lambda body vector structure.
15707 Add lambda linear expression structures.
15708 Add prototypes for functions in new files.
15709 * lambda-mat.c: Include tree.h
15711 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15712 Sebastian Pop <pop@cri.ensmp.fr>
15714 * tree-data-ref.h: Include lambda.h
15715 (free_dependence_relation): Declared here.
15716 (free_dependence_relations): Ditto.
15717 (free_data_refs): Ditto.
15718 * tree-data-ref.c (free_dependence_relation): New function.
15719 (free_dependence_relations): Ditto.
15720 (free_data_refs): Ditot.
15721 (analyze_all_data_dependences): Free datarefs and dependence_relations.
15722 (build_classic_dist_vector): Store in the dependence_relations the
15723 information. Each arc in the dependence_relations graph is labelled
15724 with the distance and direction vectors.
15725 (build_classic_dir_vector): Ditto.
15726 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
15727 Now computes again the whole dependence graph including read-read
15729 (compute_data_dependences_for_loop): Now dependence_relations contains
15730 all the data, and thus it doesn't need to initialize the classic_dir
15731 and classic_dist vectors.
15732 (analyze_all_data_dependences): Adjusted for using the new interface of
15733 compute_data_dependences_for_loop. Remove the statistics dump.
15735 2004-08-26 Bob Wilson <bob.wilson@acm.org>
15737 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
15738 (xtensa_expand_block_move): Update comment.
15739 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
15741 2004-08026 Richard Earnshaw <rearnsha@arm.com>
15744 * toplev.c (crash_signal): If we crashed while emitting
15745 a user asm, then die more gracefully.
15747 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
15750 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
15751 checking for a valid constant, regardless of sign.
15753 2004-08-25 Richard Henderson <rth@redhat.com>
15756 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
15757 if the constant satisfies add_operand.
15759 2004-08-25 Richard Henderson <rth@redhat.com>
15762 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
15763 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
15764 unwind info for >16-bit frames.
15766 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
15769 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
15771 2004-08-25 Richard Henderson <rth@redhat.com>
15773 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
15774 (TARGET_CANNOT_FORCE_CONST_MEM): New.
15776 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
15778 * doc/tree-ssa.texi: Document new operand iterator.
15780 2004-08-26 Alan Modra <amodra@bigpond.net.au>
15783 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
15784 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
15787 2005-08-28 Paul Brook <paul@codesourcery.com>
15789 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
15790 -mfpu=vfp -march=armv5t
15791 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
15793 2004-08-25 Richard Henderson <rth@redhat.com>
15795 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15796 * target.h (struct gcc_target): Add scalar_mode_supported_p.
15797 * targhooks.c (default_scalar_mode_supported_p): New.
15798 * targhooks.h (default_scalar_mode_supported_p): Declare.
15799 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
15801 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
15802 before attempting to create types. Tidy.
15803 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
15805 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
15806 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15808 2004-08-25 Richard Henderson <rth@redhat.com>
15810 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15811 set REAL_MODE_FORMAT for TFmode.
15813 2004-08-25 Ziemowit Laski <zlaski@apple.com>
15815 * c-decl.c (grokparm): New function.
15816 * c-tree.h (grokparm): New prototype.
15818 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
15820 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
15821 iterator controlling structure.
15822 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
15823 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
15824 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
15826 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
15827 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
15828 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
15829 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
15830 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
15831 Empty operand pointers.
15832 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
15833 (op_iter_next_use): New. Return next use_operand_p.
15834 (op_iter_next_def): New. Return next def_operand_p.
15835 (op_iter_next_tree): New. Return next operands as a tree.
15836 (op_iter_init): New. Initialize an iterator structure.
15837 (op_iter_init_use): New. Initialize structure and get the first use.
15838 (op_iter_init_def): New. Initialize structure and get the first def.
15839 (op_iter_init_tree): New. Initialize structure and get the first tree.
15840 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
15841 (op_iter_init_maydef): New. Initialize structure and get the first
15842 V_MAY_DEF operands.
15843 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
15844 * tree-dfa.c (compute_immediate_uses_for_stmt,
15845 redirect_immediate_uses): Use new operand iterator.
15846 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
15847 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
15848 operands instead of using *_disappeared_p routines.
15849 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
15850 ssa_rewrite_stmt): Use new operand iterator.
15851 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
15852 rewrite_trees): Use new operand iterator.
15853 * tree-pretty-print.c (dump_vops): Use new operand iterator.
15854 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
15855 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
15856 dump_points_to_info): Use new operand iterator.
15857 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
15858 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
15860 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
15861 propagate_necessity): Use new operand iterator.
15862 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
15863 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
15864 a parameter instead of a stmt_ann_t.
15865 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
15866 build_tree_conflict_graph): Use new operand iterator.
15867 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
15868 rewrite_mem_refs): Use new operand iterator.
15869 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
15870 check_loop_closed_ssa_use): Use new operand iterator.
15871 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
15872 * tree-ssanames.c (release_defs): Use new operand iterator.
15873 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
15875 2004-08-25 Adam Nemet <anemet@lnxw.com>
15877 * tlink.c (initial_cwd): New variable.
15878 (tlink_init): Initialize it.
15879 (recompile_files): Use tlink_execute() instead of system(). Don't
15880 duplicate verbose output of collect_execute. Restore initial_cwd.
15881 Update comment before the function.
15883 2004-08-25 Ziemowit Laski <zlaski@apple.com>
15885 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
15886 accept) a cast from one Objective-C pointer type to another.
15888 2004-08-25 Paolo Carlini <pcarlini@suse.de>
15890 * doc/install.texi: Document that libstdc++-v3 requires
15891 now automake 1.9.1.
15893 2004-08-25 Caroline Tice <ctice@apple.com>
15895 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
15896 to comments at start of function.
15897 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
15899 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15900 merge_blocks_move_predecessor_nojumps,
15901 merge_blocks_move_successor_nojumps, merge_blocks_move,
15902 try_crossjump_to_edge, try_crossjump_bb): Likewise.
15903 * cfglayout.c (fixup_reorder_chain): Likewise.
15904 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
15905 cfg_layout_can_merge_blocks_p): Likewise.
15906 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15907 * passes.c (rest_of_compilation): Update comments for calling
15908 optimization that partitions hot/cold basic blocks.
15909 * doc/invoke.texi: Update documentation of
15910 freorder-blocks-and-partition flag.
15912 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
15914 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
15915 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
15917 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
15919 * config/mips/mips.md (any_shift): New code macro.
15920 (optab, insn): New code attributes.
15921 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
15922 Use the standard rather than internal patterns for the MIPS16
15923 double-shift optimization.
15924 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
15925 Redefine using :GPR and any_shift.
15926 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
15927 to cover all three shifts.
15928 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
15929 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
15930 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
15932 2004-08-24 Geoffrey Keating <geoffk@apple.com>
15934 * gimplify.c (lookup_tmp_var): Separate temporaries when not
15937 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15939 PR libstdc++/17005 (fix for HP-UX 11.11)
15940 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
15941 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
15942 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
15943 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
15944 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
15945 (LINK_SPEC): Handle march=1.0 option.
15946 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15947 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
15948 (SUBTARGET_OPTIONS): New define.
15949 (LINK_SPEC): Handle march=1.0 option.
15950 (STARTFILE_SPEC): New define.
15951 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15952 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
15953 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
15954 (SUBTARGET_OPTIONS): New define.
15955 (LINK_SPEC): Handle march=1.0 option.
15956 (STARTFILE_SPEC): New define.
15957 * config/pa/pa.c (override_options): Add code to process -munix= option.
15958 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
15959 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
15961 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
15962 (SUBTARGET_OPTIONS): Provide default define.
15963 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
15964 STANDARD_STARTFILE_PREFIX_2): New defines.
15965 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
15966 (ENDFILE_SPEC): Use %O.
15967 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
15968 Mention issue caused by changing namespace and runtime to UNIX 95/98.
15969 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
15970 Document -munix=std option.
15972 2004-08-25 Steven Bosscher <stevenb@suse.de>
15974 * cse.c (cse_around_loop, cse_check_loop_start,
15975 cse_set_around_loop): Remove.
15976 (cse_basic_block): Remove the around_loop argument.
15977 (cse_end_of_basic_block): Remove the after_loop argument.
15978 (cse_main): Likewise.
15979 * rtl.h (cse_main): Update prototype.
15980 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
15981 rest_of_handle_gcse): Update cse_main calls.
15983 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
15985 * tree.h (build_int_cst): New, sign extended constant.
15986 (build_int_cstu): New, zero extended constant.
15987 (build_int_cst_wide): Renamed from build_int_cst.
15988 * tree.c (build_int_cst, build_int_cstu): New.
15989 (build_int_cst_wide): Renamed from build_int_cst.
15990 (make_vector_type, build_common_tree_nodes,
15991 build_common_tree_nodes_2): Adjust build_int_cst calls.
15992 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
15993 expand_builtin_strpbrk, expand_builtin_fputs,
15994 build_string_literal, expand_builtin_printf,
15995 expand_builtin_sprintf, fold_builtin_classify_type,
15996 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
15997 fold_builtin_toascii, fold_builtin_isdigit,
15998 simplify_builtin_strstr, simplify_builtin_strpbrk,
15999 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
16000 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
16001 DEF_ATTR_INT): Likewise.
16002 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
16004 * c-lex.c (interpret_integer, lex_charconst): Likewise.
16005 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
16006 * c-pretty-print.c (pp_c_integer_constant): Likewise.
16007 * c-typeck.c (really_start_incremental_init, push_init_level,
16008 set_nonincremental_init_from_string): Likewise.
16009 * calls.c (load_register_parameters): Likewise.
16010 convert.c (convert_to_pointer): Likewise.
16011 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
16012 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
16013 build_gcov_info): Likewise.
16014 * except.c (init_eh, assign_filter_values): Likewise.
16015 * expmed.c (store_fixed_bit_field, extract_bit_field,
16016 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
16017 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
16018 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
16019 * expr.c (convert_move, emit_group_load, emit_group_store,
16020 expand_assignment, store_constructor, store_field,
16021 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16022 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
16023 invert_truthvalue, optimize_bit_field_compare,
16024 decode_field_reference, all_ones_mask_p, constant_boolean_node,
16025 fold_div_compare, fold, fold_read_from_constant_string,
16026 fold_negate_const, fold_abs_const, fold_not_const, round_up,
16027 round_down): Likewise.
16028 * function.c (assign_parm_setup_block): Likewise.
16029 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
16031 * stor-layout.c (layout_type, initialize_sizetypes,
16032 set_min_and_max_values_for_integral_type): Likewise.
16033 * tree-chrec.c (chrec_fold_multiply_poly_poly,
16034 reset_evolution_in_loop): Likewise.
16035 * tree-chrec.h (build_polynomial_chrec): Likewise.
16036 * tree-complex.c (build_replicated_const): Likewise.
16037 * tree-eh.c (honor_protect_cleanup_actions,
16038 lower_try_finally_onedest, lower_try_finally_copy,
16039 lower_try_finally_switch): Likewise.
16040 * tree-mudflap.c (mf_build_string, mx_register_decls,
16041 mudflap_register_call, mudflap_enqueue_constant): Likewise.
16042 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
16043 * tree-pretty-print.c (dump_generic_node): Likewise.
16044 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
16046 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
16047 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16048 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
16050 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
16051 canonicalize_loop_induction_variables): Likewise.
16052 * tree-vectorizer.c (vect_create_index_for_array_ref,
16053 vect_transform_loop_bound, vect_compute_data_ref_alignment):
16056 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
16057 alpha_gimplify_va_arg_1): Likewise.
16058 * config/arm/arm.c (arm_get_cookie_size): Likewise.
16059 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
16060 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
16061 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16062 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
16063 mips_gimplify_va_arg_expr): Likewise.
16064 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16065 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
16066 add_compiler_branch_island): Likewise.
16067 * config/s390/s390.c (s390_va_start): Likewise.
16068 * config/sh/sh.c (sh_va_start): Likewise.
16069 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
16071 * config/xtensa/xtensa.c (xtensa_va_start,
16072 xtensa_gimplify_va_arg_expr): Likewise.
16074 * objc/objc-act.c (build_objc_string_object,
16075 build_objc_symtab_template, init_def_list, init_objc_symtab,
16076 init_module_descriptor, generate_static_references,
16077 build_selector_translation_table, get_proto_encoding,
16078 build_typed_selector_reference, build_selector_reference,
16079 build_next_objc_exception_stuff,
16080 build_method_prototype_list_template, generate_descriptor_table,
16081 generate_protocols, build_protocol_initializer,
16082 build_ivar_list_template, build_method_list_template,
16083 build_ivar_list_initializer, generate_ivars_list,
16084 generate_dispatch_table, generate_protocol_list,
16085 build_category_initializer, build_shared_structure_initializer,
16086 generate_shared_structures, handle_impent,
16087 generate_objc_image_info): Likewise.
16089 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
16091 * cfglayout.c (duplicate_insn_chain): Remove references to
16092 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
16093 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
16094 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
16095 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
16096 and NOTE_INSN_LOOP_CONT.
16097 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
16098 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
16099 and NOTE_INSN_LOOP_CONT.
16100 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
16101 check_dbra_loop, loop_dump_aux): Remove references to removed notes
16103 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
16104 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
16105 references to removed notes and fields.
16106 (subtract_reg_term, ujump_to_loop_cont): Remove.
16108 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
16110 * doc/install.texi: Document that libcpp does not require
16111 Automake any longer. Document that Automake 1.9.1 should
16114 2004-08-25 Zack Weinberg <zack@codesourcery.com>
16116 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
16117 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
16118 DWARF_DEBUGGING_INFO from choice-of-definition chain;
16119 restructure using C89 features (#elif, #error).
16120 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
16121 * config/sh/sh.h: Remove references to DWARF_DEBUG.
16122 * doc/invoke.texi: Remove references to DWARF version 1;
16123 clarify why -gdwarf-2<n> doesn't work.
16125 2004-08-25 Zack Weinberg <zack@codesourcery.com>
16127 * basic-block.h (BB_SET_PARTITION): Clear old value first.
16128 * cfg.c (clear_bb_flags): Don't clear partition setting.
16129 * ifcvt.c (find_if_case_1): Remove ??? comment.
16131 2004-08-25 Alan Modra <amodra@bigpond.net.au>
16134 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
16135 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
16136 current_function_stdarg in place of sysv_varargs_p.
16137 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
16140 2004-08-24 Richard Henderson <rth@redhat.com>
16143 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
16144 random codes within CONST.
16146 2004-08-24 James E Wilson <wilson@specifixinc.com>
16148 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
16149 -freorder-blocks-and-partition.
16151 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16153 PR middle-end/17044
16154 * tree-ssa-threadupdate.c (redirection_data): Make static.
16155 (thread_block): Use ggc_alloc_cleared to allocate struct
16156 redirection_data. Don't free elements in redirection_data.
16158 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16160 * config/mips/predicates.md (small_data_pattern): Match prefetches.
16162 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16164 PR tree-optimization/17016
16165 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16166 number_of_iterations_exit): Use POINTER_TYPE_P instead
16167 of testing for POINTER_TYPE.
16169 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16171 * tree-ssa-loop-ivcanon.c: New file.
16172 * tree-ssa-loop-manip.c (create_iv): New function.
16173 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
16174 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
16175 * cfgloop.c (mark_single_exit_loops): New function.
16176 (verify_loop_structure): Verify single-exit loops.
16177 * cfgloop.h (struct loop): Add single_exit field.
16178 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
16179 (mark_single_exit_loops): Declare.
16180 (tree_num_loop_insns): Declare.
16181 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
16182 (duplicate_loop_to_header_edge): Use it.
16183 * common.opt (fivcanon): New flag.
16184 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
16185 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
16186 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
16187 (bsi_insert_on_edge_immediate): New function.
16188 * tree-flow.h (bsi_insert_on_edge_immediate,
16189 canonicalize_induction_variables, tree_unroll_loops_completely,
16190 create_iv): Declare.
16191 * tree-optimize.c (init_tree_optimization_passes): Add
16192 pass_iv_canon and pass_complete_unroll.
16193 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
16194 * tree-scalar-evolution.c (get_loop_exit_condition,
16195 get_exit_conditions_rec, number_of_iterations_in_loop,
16196 scev_initialize): Use single_exit information.
16197 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
16198 missing assumptions.
16199 (loop_niter_by_eval): Return number of iterations as unsigned
16201 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
16202 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
16203 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
16205 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
16206 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
16207 the defining statement is ready.
16208 * tree-vectorizer.c (vect_create_iv_simple): Removed.
16209 (vect_create_index_for_array_ref, vect_transform_loop_bound):
16211 (vect_transform_loop_bound): Use single_exit information.
16212 (vect_analyze_loop_form): Cleanup bogus tests.
16213 (vectorize_loops): Do not call flow_loop_scan.
16214 * tree.h (may_negate_without_overflow_p): Declare.
16215 * fold-const.c (may_negate_without_overflow_p): Split out from ...
16216 (negate_expr_p): ... this function.
16217 (tree_expr_nonzero_p): Handle overflowed constants correctly.
16218 * doc/invoke.texi (-fivcanon): Document.
16219 * doc/passes.texi: Document canonical induction variable creation.
16221 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16223 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
16224 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
16225 using the mode of the operand to decide between them.
16226 * config/mips/mips.md (MOVECC): New mode macro.
16227 (ccreg): New mode attribute.
16228 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
16229 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
16230 (mov[sd]icc): Redefine using :GPR.
16232 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16234 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
16235 (mips_prefetch_cookie): New function.
16236 * config/mips/mips.c (print_operand_address): Fix handling of
16238 (mips_emit_prefetch): Delete.
16239 (mips_prefetch_cookie): New function.
16240 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
16241 mode of QImode for the address_operand. Use mips_prefetch_cookie
16242 to calculate the first "pref" operand.
16243 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
16244 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
16246 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
16248 * arm.md: Include predicates.md.
16249 * predicates.md: New file.
16250 * arm.c (s_register_operand, arm_hard_register_operand)
16251 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
16252 (arm_immediate_operand, arm_neg_immediate_operand)
16253 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
16254 (arm_add_operand, arm_addimm_operand, arm_not_operand)
16255 (offsettable_memory_operand, alignable_memory_operand)
16256 (arm_reload_memory_operand, arm_float_rhs_operand)
16257 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
16258 (index_operand, shiftable_operator, logical_binary_operator)
16259 (shift_operator, equality_operator, arm_comparison_operator)
16260 (minmax_operator, cc_register, dominant_cc_register)
16261 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
16262 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
16263 (const_shift_operand, load_multiple_operation)
16264 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
16265 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
16266 (cirrus_register_operand, cirrus_fp_register)
16267 (cirrus_shift_const): Delete, replaced with equivalents in
16269 (shift_op): Handle ROTATE.
16270 * arm-protos.h: Delete declarations for above.
16271 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
16272 * t-arm (MD_INCLUDES): Add predicates.md.
16273 (s-preds): Depends on MD_INCLUDES.
16275 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16277 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
16278 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
16279 patterns. Redefine using :GPR. Give the match_operator a mode.
16280 Use '%2' rather than '%z2' for operand 2.
16282 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16284 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
16287 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16289 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
16290 of internal patterns.
16291 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
16293 (tablejump): Use expand_binop to calculate address. Adjust names
16294 of internal patterns.
16295 (tablejump[sd]i): Renamed from tablejump_internal[12].
16297 (tablejump_mips16[12]): Delete.
16299 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16301 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
16302 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
16303 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
16304 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
16305 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
16307 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16309 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
16310 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
16312 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
16313 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
16314 (*branch_equality[sd]i_inverted): Likewise
16315 branch_equality{,_di}_inverted.
16316 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
16317 Redefine using :GPR.
16319 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16321 * rtl.def: Reorganize, placing all codes used only in machine
16322 descriptions at the end.
16324 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
16325 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
16326 rtx_name, rtx_format arrays by direct reference to rtl.def,
16327 first undefining GENERATOR_FILE. Define enum insn_note and
16328 note_insn_name array by direct reference to insn-notes.def.
16329 (adjust_field_rtx_def): Remove local definition of rtx_name.
16330 Use symbolic names for insn notes.
16331 * Makefile.in (gengtype.o): Update dependencies.
16333 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16335 * basic-block.h (struct basic_block_def): Reorder fields to
16336 eliminate interior padding. Remove 'partition' field.
16337 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
16338 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
16339 (BB_COPY_PARTITION): New macros.
16340 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
16341 Replace all references to the 'partition' field of a basic
16342 block with new macros.
16344 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16345 * final.c (final_scan_insn): Don't handle it.
16346 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
16347 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
16348 * sched-rgn.c (sched_is_disabled_for_current_region_p):
16349 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
16351 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16353 * c-decl.c (c_init_decl_processing): Adjust
16354 build_common_tree_nodes call.
16355 * expmed.c (const_mult_add_overflow_p): Use
16356 build_distinct_type_copy.
16357 * stor-layout.c (early_type_list): Remove.
16358 (layout_type): Don't append to early_type_list.
16359 (initialize_sizetypes): Add signed_p argument.
16360 (set_sizetype): Overwrite the stub type nodes directly.
16361 * tree.c (copy_node_stat): Clear a type's value cache here ...
16362 (build_distinct_type): ... not here.
16363 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
16364 * tree.h (initialize_sizetypes): Add signed_p argument.
16365 (build_common_tree_nodes): Likewise.
16367 * objc/objc-act.c (get_static_reference): Use
16368 build_variant_type_copy.
16369 (get_protocol_reference): Likewise.
16370 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
16372 2004-08-24 Richard Henderson <rth@redhat.com>
16373 Andrew Pinski <apinski@apple.com>
16375 * gimplify.c (gimplify_array_ref_to_plus): Delete.
16376 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
16379 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
16380 ARRAY_REF also to get to the STRING_CST.
16382 2004-08-24 Paul Brook <paul@codesourcery.com>
16384 * config/arm/arm.c (arm_override_options): Update error message.
16385 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
16386 TARGET_HARD_FLOAT_ABI.
16387 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
16388 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
16390 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16393 * config/m32r.md (movsi_sda): Add SI mode specification to
16396 2004-08-24 Nick Clifton <nickc@redhat.com>
16398 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
16399 of seth_add3_operand.
16401 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16403 * Makefile.in (PROTO_OBJS): Add errors.o.
16404 * protoize.c (fancy_abort): Remove.
16405 * mips-tfile.c (fancy_abort): Add parameters.
16407 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
16409 * doc/trouble.texi (C++ misunderstandings): Fix example code.
16411 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
16413 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
16414 (host-default.o): Add dependency on HOOKS_H.
16415 * config/x-linux: Likewise.
16416 * config/x-solaris: Likewise.
16417 * config/i386/x-mingw32: Likewise.
16418 * config/rs6000/x-darwin: Likewise.
16420 2004-08-23 James E Wilson <wilson@specifixinc.com>
16422 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
16425 2004-08-23 Mark Mitchell <mark@codesourcery.com>
16428 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
16430 2004-08-23 Diego Novillo <dnovillo@redhat.com>
16432 * cfg.c (check_bb_profile): Fix typos.
16433 * function.c (assign_parm_is_stack_parm): Likewise.
16434 * tree-nested.c: Likewise.
16436 2004-08-23 Daniel Jacobowitz <dan@debian.org>
16438 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
16440 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
16442 2004-08-23 Eric Christopher <echristo@redhat.com>
16444 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
16445 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
16446 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
16448 * hooks.h: Include machmode.h.
16449 (hook_bool_mode_false): Declare.
16450 * hooks.c (hook_bool_mode_false): Define.
16451 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
16452 * stor-layout.c (layout_type): Ditto.
16453 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
16454 Define to target macro.
16455 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
16456 * config/arm/arm.c: Ditto. Use.
16457 * config/arm/arm.h: Ditto.
16458 * config/arm/arm-protos.h: Ditto.
16459 * config/i386/i386.c: Ditto.
16460 * config/i386/i386.h: Ditto.
16461 * config/rs6000/rs6000.c: Ditto.
16462 * config/rs6000/rs6000.h: Ditto.
16463 * config/sh/sh.c: Ditto.
16464 * config/sh/sh.h: Ditto.
16465 * config/sh/sh-protos.h: Ditto.
16466 * config/sh/sh.md: Use.
16467 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
16468 to TARGET_VECTOR_MODE_SUPPORTED_P.
16470 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
16472 * Makefile.in (BUILD_ERRORS): Set to build-errors.
16473 (errors.o): New target for host.
16474 (build-errors.o): New target for build.
16475 (genobjs): Replace errors.o with build-errors.
16476 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
16477 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
16478 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
16479 (fix-header.o): Add errors.h
16480 * collect2.c (fancy_abort): Add parameters.
16481 * collect2.h (fancy_abort): Don't declare.
16482 * errors.h (fancy_abort): Don't declare.
16483 * errors.c: Include either bconfig.h or config.h.
16484 (fancy_abort): Trim filename.
16485 * fix-header.c (v_fatal, fatal): Remove.
16486 (progname): Remove definition.
16487 (main): Set progname here.
16488 * gcc.c (fancy_abort): Add parameters.
16489 * gcc.h (fancy_abort): Remove declaration.
16490 * gcov.c (fancy_abort): Remove.
16491 * rtl.h (fancy_abort): Don't declare.
16492 (abort): Don't define.
16493 * tree.h (fancy_abort): Don't declare.
16494 (abort): Don't define.
16495 * system.h (fancy_abort): Declare.
16496 (abort): Define to fancy_abort.
16497 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
16499 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
16500 (usize_type, ubitsizetype): Remove.
16501 * stor-layout.c (set_sizetype): Don't initialize usizetype,
16503 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
16505 * tree.h (build_distinct_type_copy): New.
16506 (build_type_copy): ... here. Rename to ...
16507 (build_variant_type_copy): ... here.
16508 * tree.c (build_qualified_type): Rename build_type_copy call.
16509 (build_distinct_type_copy): New, broken out of ...
16510 (build_type_copy): ... here. Rename to ...
16511 (build_variant_type_copy): ... here. Use
16512 build_distinct_type_copy.
16513 (build_common_tree_nodes_2): Rename build_type_copy call.
16514 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
16516 (handle_packed_attribute, handle_unused_attribute,
16517 handle_transparanet_union_attribute, handle_aligned_attribute,
16518 handle_deprecated_attribute): Likewise.
16519 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
16521 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
16522 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
16523 build_distinct_type_copy.
16525 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16527 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
16530 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16532 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
16534 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
16535 formerly unnamed patterns. Redefine using :P for the address. Remove
16536 explicit length attributes.
16538 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16540 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
16542 (single_reachable_address): Use them.
16543 (schedule_sm): Add dump.
16544 (is_call_clobbered_ref): New function.
16545 (determine_lsm_reg): Check whether the reference is call clobbered.
16546 Only work for gimple_reg_type values.
16548 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16550 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
16551 $31 store insns. Redefine using :GPR.
16553 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16555 * config/mips/mips.md (P): New mode macro.
16556 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
16557 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
16558 Add mode attributes.
16560 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16562 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
16563 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
16564 later constants to cover the gap.
16565 (load, store): New mode attributes.
16566 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
16567 Use new unspec constants.
16569 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16571 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
16572 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
16573 to use register_operand rather than uns_arith_operand as the predicate
16574 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
16575 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
16576 Redefine using :GPR. Make same predicate change here. Extend the
16577 commutativity of operands 1 and 2 from the SImode version to the
16579 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
16580 but with no predicate changes.
16581 (*nor[sd]i3): Redefine using :GPR.
16583 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16585 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
16586 noreturn functions.
16588 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16590 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
16591 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
16592 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
16593 rather than "%z2" (with a fake const0_rtx for operand 2).
16594 (ffs[sd]i2): Redefine using :GPR.
16595 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
16597 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16599 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
16601 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16603 * config/mips/mips.md (any_extend): New code macro.
16604 (u, su): New code attributes.
16605 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
16606 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
16607 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
16608 (*{s,u}mul_acc_di): Redefine using any_extend.
16609 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
16610 to reflect real insn names.
16611 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
16612 with an any_extend template.
16613 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
16616 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16618 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
16619 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
16620 (mul[sd]i3_r4000): Redefine using :GPR.
16621 (mulsi3_mult3): Don't check TARGET_MAD separately.
16622 (muldi3_mult3): Moved after mulsi_mult3.
16624 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16626 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
16627 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
16628 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
16629 (TARGET_GAS, TARGET_MIPS_AS): Delete.
16630 (TARGET_GPWORD): Define to true for n32 on IRIX.
16631 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
16632 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
16633 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
16634 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
16635 (MDEBUG_ASM_SPEC): Delete, folding into...
16636 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
16637 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
16638 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
16639 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
16640 to define asm_abi_default_spec.
16641 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
16642 (TARGET_ASM_SELECT_SECTION): Delete.
16643 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
16644 for non-mips16 code, removing previous workaround for SGI assemblers.
16645 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
16646 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
16647 (override_options): Remove !TARGET_GAS and !have_named_sections code.
16648 (print_operand): Fold TARGET_GAS conditionals into asm strings.
16649 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
16650 ASM_STABS_OP and ASM_STABN_OP.
16651 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
16652 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
16653 (mips_output_function_prologue): Remove !TARGET_GAS code.
16654 (mips_select_rtx_section): Remove !have_named_sections code.
16655 (mips_select_section): Delete.
16656 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
16657 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
16658 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
16659 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
16660 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
16661 * config/mips/windiss.h (ASM_SPEC): Likewise.
16663 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16665 * read-rtl.c (map_value, mapping, macro_group): New structures.
16666 (BELLWETHER_CODE): New macro.
16667 (modes, codes, bellwether_codes): New variables.
16668 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
16669 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
16670 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
16671 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
16672 (add_map_value, initialize_macros): New functions.
16673 (def_hash, def_hash_eq_p): Generalize to anything that points to,
16674 or starts with, a char * field.
16675 (find_macro, read_mapping, check_code_macro): New functions.
16676 (read_rtx_1): New, split out from read_rtx. Handle the new
16677 define_{mode,code}_{macro,attr} constructs. Use find_macro
16678 to parse the name of a code or mode. Use BELLWETHER_CODE to
16679 extract the format and to choose a suitable code for rtx_alloc.
16680 Modify recursive invocations to use read_rtx_1.
16681 (read_rtx): Call initialize_macros. Apply code and mode macros
16682 to the rtx returned by read_rtx_1. Cache everything after the
16683 first macro expansion for subsequent read_rtx calls.
16684 * doc/md.texi: Document new .md constructs.
16685 * config/mips/mips.md (GPR): New mode macro.
16686 (d, si8_di5): New mode attributes.
16687 (any_cond): New code macro.
16688 (add[sd]i3): Redefine using :GPR.
16689 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
16690 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
16691 previously unnamed MIPS16 patterns.
16692 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
16693 lines. Don't match (plus (const_int 0) ...).
16694 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
16695 Use a define_split to generate the addition.
16696 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
16697 (subsi3_internal): Delete.
16698 (*subsi3_extended): Renamed from subsi3_internal_2.
16699 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
16700 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
16701 using an any_cond template.
16703 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16705 * read-rtl.c (read_rtx): Tidy use of format_ptr.
16707 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16709 * read-rtl.c (string_obstack): New file-scope variable.
16710 (read_string, read_quoted_string, read_braced_string)
16711 (read_escape): Remove obstack parameter and use string_obstack instead.
16712 (read_rtx): Remove function-local rtl_obstack and initialize
16713 string_obstack instead. Update call to read_string.
16715 2004-08-22 Andrew Pinski <apinski@apple.com>
16718 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
16719 expression is not constant.
16720 (c_finish_return): Do not go through INDIRECT_REF when looking
16721 for the inner expression of an ADDR_EXPR for warning about.
16723 2004-08-22 Richard Henderson <rth@redhat.com>
16726 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
16727 create new blocks and fall through.
16728 (expand_gimple_basic_block): Update to match.
16730 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
16732 * reload.c (find_reloads_address): Make return value tri-state.
16733 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
16734 (find_reloads): Assume that reloaded addresses match 'o' or
16735 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
16736 returned 1 (not -1). Omit optional reloads for address operands
16737 only if find_reloads_address returned 1 (not -1).
16739 * config/s390/s390.c (legitimize_reload_address): New function.
16740 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
16741 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
16742 legitimize_reload_address.
16744 2004-08-22 Richard Hendersion <rth@redhat.com>
16746 * tree.h (SAVE_EXPR_RESOLVED_P): New.
16747 * gimplify.c (gimplify_save_expr): Use it.
16748 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
16749 on the temporary variable.
16751 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
16753 * fold-const.c (rtl_expr_nonnegative_p): Delete.
16754 * tree.h (rtl_expr_nonnegative_p): Remove.
16756 2004-08-22 Steven Bosscher <stevenb@suse.de>
16758 * config/i386/ppro.md (ppro_complex_insn): Add missing check
16759 for cpu==pentiumpro.
16761 * combine.c (struct reg_stat): Fix comment typo.
16763 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
16765 * c-tree.h (c_sizeof_nowarn): Remove.
16767 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
16769 * c-decl.c (set_array_declarator_type): Rename to
16770 set_array_declarator_inner.
16771 (build_c_parm, build_attrs_declarator, build_function_declarator):
16773 (make_pointer_declarator): Call build_attrs_declarator.
16774 * c-tree.h (set_array_declarator_type): Rename to
16775 set_array_declarator_inner.
16776 (build_c_parm, build_attrs_declarator, build_function_declarator):
16778 * c-parse.in (after_type_declarator,
16779 parm_declarator_starttypename, parm_declarator_nostarttypename,
16780 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
16781 firstparm): Use these functions
16783 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
16785 * c-decl.c (build_array_declarator, set_array_declarator_type,
16786 start_decl, grokdeclarator, grokparms): Change boolean parameters
16788 * c-tree.h (build_array_declarator, set_array_declarator_type,
16789 start_decl): Update prototypes.
16790 * c-decl.c, c-parse.in: All callers changed.
16792 2004-08-21 Mike Stump <mrs@apple.com>
16794 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
16795 (darwin_fix_and_continue): Likewise.
16796 (darwin_fix_and_continue_switch): Likewise.
16797 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
16798 (darwin_fix_and_continue): Likewise.
16799 (darwin_fix_and_continue_switch): Likewise.
16801 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
16804 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
16805 Remove, merging into ...
16806 (gen_stdcall_or_fastcall_suffix): New function, returning tree
16807 rather than const char*, and accepting additional parameter.
16808 Don't add suffix to '*'-prefixed symbols or variadic functions.
16809 (i386_pe_encode_section_info): Adjust for call to new function.
16810 Call change_decl_assembler_name.
16812 2004-08-20 Mike Stump <mrs@apple.com>
16814 * config/darwin.c (machopic_indirect_data_reference): Mark
16816 * config/386/386.c (darwin_local_data_pic): Add.
16817 (legitimate_constant_p): Reorder so that PLUS handling runs
16818 before darwin_local_data_pic to match the ordering in
16819 legitimate_pic_address_disp_p and so that MINUS runs after
16820 darwin_local_data_pic as otherwise the darwin_local_data_pic
16821 logic can be skipped, which would be very bad.
16822 (legitimate_pic_address_disp_p): Move from from here to
16823 darwin_local_data_pic so it can be reused.
16825 2004-08-21 Alan Modra <amodra@bigpond.net.au>
16827 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
16828 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
16829 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
16830 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
16831 (RS6000_ABI_NAME): Define as "linux".
16832 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
16833 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
16834 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
16835 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
16836 * config/rs6000/rs6000.c (dot_symbols): New global var.
16837 (rs6000_output_function_entry): New function, modified for
16839 (print_operand <case 'z'>): ..extracted from here.
16840 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
16841 (rs6000_output_function_epilogue): Likewise.
16842 (rs6000_elf_declare_function_name): Likewise.
16843 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
16844 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
16845 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
16846 * configure: Regenerate.
16847 * config.in: Regenerate.
16849 2004-08-20 Mark Mitchell <mark@codesourcery.com>
16851 * reload.c (find_reloads_address): Fix thinko in previous change.
16853 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
16856 2004-08-20 Jakub Jelinek <jakub@redhat.com>
16858 PR rtl-optimization/17099
16859 * combine.c (force_to_mode): Check if inner_mask has any bits set
16860 outside of GET_MODE (x) instead of op_mode.
16862 2004-08-20 Mark Mitchell <mark@codesourcery.com>
16864 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
16866 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
16867 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
16868 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
16870 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
16872 * config/arm/t-symbian: New file.
16874 2004-08-20 Andrew Pinski <apinski@apple.com>
16876 * regrename.c (kill_value_regno): ANSIfy.
16878 2004-08-20 Dale Johannesen <dalej@apple.com>
16880 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
16882 2004-08-20 Daniel Jacobowitz <dan@debian.org>
16884 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
16885 (kill_value_regno): New function, derived from kill_value.
16886 (kill_value): Update.
16887 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
16889 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
16891 Fix PR tree-optimization/17111
16892 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
16893 of non-value_handles.
16894 (bitmap_set_contains): All constants are in every set.
16896 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
16898 * fold-const.c (round_up, round_down): Use build_int_cst.
16899 Optimize common case.
16901 2004-08-20 Zack Weinberg <zack@codesourcery.com>
16902 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16904 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
16905 one_only_data_section): Rename to som_readonly_data_section,
16906 som_one_only_readonly_data_section and som_one_only_data_section.
16907 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
16908 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
16909 conditional defines.
16910 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
16911 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
16913 (pa_select_section): Use renamed section functions.
16914 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
16915 SOM_READONLY_DATA_SECTION_FUNCTION,
16916 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16917 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
16919 * config/pa/som.h: ... not here.
16920 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16921 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
16922 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16923 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
16924 (READONLY_DATA_SECTION): Use som_readonly_data_section.
16926 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
16928 * fold-const.c (int_const_binop): Don't generate non-overflowing
16929 size-types specially.
16930 (fold_convert_const): Likewise.
16932 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
16933 clear cache on copied sizetype.
16935 2004-08-20 Ben Elliston <bje@au.ibm.com>
16937 * configure.ac: Don't escape apostrophe in --enable-coverage help.
16938 * configure: Regenerate.
16940 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
16943 * gcc.c (struct stat input_stat): Don't define if
16944 HOST_LACKS_INODE_NUMBERS
16945 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
16946 than stat to determine if temp file is same as input file.
16947 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
16948 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
16950 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
16952 * configure.ac (mips*-*-*): Print an error if not using GAS.
16953 * configure: Regenerated.
16954 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
16955 comments about buggy MIPSpro assemblers.
16956 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
16957 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
16958 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
16959 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
16960 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
16961 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
16962 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
16963 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
16964 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
16965 of more general IRIX 6 definitions.
16966 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
16967 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
16968 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
16969 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
16970 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16971 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
16972 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
16973 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
16974 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
16975 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
16976 (LINK_SPEC): Move most of definition to iris.h.
16977 (SUBTARGET_LINK_SPEC): New macro.
16978 (IRIX_STARTFILE_SPEC): Fold into...
16979 (STARTFILE_SPEC): ...here.
16980 (IRIX_ENDFILE_SPEC): Fold into...
16981 (ENDFILE_SPEC): ...here.
16982 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
16983 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
16984 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
16985 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
16986 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
16987 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
16988 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
16989 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16990 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
16991 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
16992 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
16993 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
16994 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
16995 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
16996 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
16997 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
16998 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
16999 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
17000 (TARGET_IRIX6): Define to 1.
17001 (DRIVER_SELF_SPECS): Define.
17002 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
17003 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
17004 (SUBTARGET_LINK_SPEC): New macro.
17005 (IRIX_STARTFILE_SPEC): Fold into...
17006 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
17007 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
17008 (LIB_SPEC, LIBGCC_SPEC): Use them.
17009 (LIB_SPEC): Remove !mabi=* case.
17010 (IRIX_ENDFILE_SPEC): Fold into...
17011 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
17012 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
17013 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
17014 (TARGET_IRIX6): New macro.
17015 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
17016 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
17017 (LABEL_AFTER_LOC): Delete.
17018 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
17019 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
17020 (mips_build_builtin_va_list): Check TARGET_IRIX6.
17021 (override_options): Remove TARGET_SGI_O32_AS-related code.
17022 (irix_output_external_libcall): Make static.
17023 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
17025 (mips_file_start): Tidy guard for ABI sections. Remove use of
17026 ABICALLS_ASM_OP; use .abicalls instead.
17027 (mips_output_aligned_decl_common, mips_declare_object_name)
17028 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
17029 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
17030 .globl foo .text directives.
17031 (irix_asm_named_section_1, irix_asm_named_section)
17032 (irix_section_align_entry, irix_section_align_htab)
17033 (irix_orig_asm_out_file, irix_section_align_entry_eq)
17034 (irix_section_align_entry_hash, irix_asm_output_align)
17035 (irix_file_start, irix_section_align_1, copy_file_data)
17036 (irix_file_end, irix_section_type_flags): Delete.
17037 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
17038 Use standard section syntax. Remove protective "jr $31".
17039 (__gcc_fini): Likewise .gcc_fini.
17040 * config/mips/irix-crtn.asm: Adjust sections accordingly.
17041 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
17043 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
17045 (EXTRA_MULTILIB_PARTS): Define.
17046 * config/mips/t-iris6: Remove bogus comment.
17047 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
17048 * config/mips/iris5gas.h, config/mips/iris5gld.h,
17049 config/mips/iris6gas.h, config/mips/iris6gld.h,
17050 config/mips/t-iris5-as, config/mips/t-iris5-gas
17051 config/mips/t-irix-gld: Delete.
17052 * config/mips/iris.h: New file.
17053 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
17055 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
17057 * postreload.c (reload_cse_move2add): Allow any condjump, but check
17058 that the implicit set isn't clobbered in the jump insn.
17060 2004-08-19 Mark Mitchell <mark@codesourcery.com>
17062 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
17063 * optabs.c (init_optabs): Don't check it.
17064 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
17065 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
17067 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
17069 * config/s390/s390.md (s390_warn_framesize_string)
17070 (s390_warn_dynamic_string, s390_stack_size_string)
17071 (s390_stack_guard_string): New global string variables.
17072 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
17073 (s390_stack_guard): New global variables.
17074 (override_options): Added checks for the new options.
17075 (s390_emit_prologue): Emit stack check and trap code and perform
17076 compile time stack size checking.
17078 * config/s390/s390.h (TARGET_OPTIONS): Added new options
17079 "warn-framesize", "warn-dynamicstack", "stack-size" and
17082 * doc/invoke.texi: Added documentation for the new options.
17084 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
17086 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
17087 to eliminate warning.
17088 (linear_search_fdes): Declare p as unsigned.
17089 (binary_search_mixed_encoding_fdes): Likewise.
17090 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
17091 to eliminate warning.
17092 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
17095 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
17097 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
17098 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
17099 instead of one. Check for strictly legitimate address.
17100 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
17101 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
17103 2004-08-19 Eric Christopher <echristo@redhat.com>
17105 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
17106 * langhooks.h (unsave_expr_now): Ditto.
17107 * tree.h (unsave_expr_1): Remove prototype.
17108 (lhd_unsave_expr_now): Rename to unsave_expr_now.
17109 * tree-inline.c (unsave_expr_1): Move here
17110 from tree.c. Make static.
17111 (unsave_expr_now): Rename from lhd_unsave_expr_now.
17112 * tree-sra.c: Fix up for rename.
17113 * tree-ssa-copy.c: Ditto.
17114 * tree-eh.c: Ditto.
17115 * tree.c (unsave_expr_1): Move to tree-inline.c.
17117 2004-08-19 Caroline Tice <ctice@apple.com>
17119 * config/i386/cygming.h (switch_to_section): Fix typo (change
17120 in_unlikely_text_section to in_unlikely_executed_text).
17122 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
17124 * vec.h (VEC_lower_bound): New macro.
17126 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
17129 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
17130 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
17131 treat each ABI separately. Deal with n32/n64 complex float arguments.
17132 (function_arg): Add associated complex handling here.
17134 2004-08-19 Richard Henderson <rth@redhat.com>
17136 * config/arm/arm.c (arm_gen_load_multiple): Use
17137 adjust_automodify_address. Take base memory and offset instead
17138 of unchanging/struct/scalar bits.
17139 (arm_gen_store_multiple): Likewise.
17140 (arm_gen_movmemqi): Use adjust_automodify_address.
17141 * config/arm/arm-protos.h: Update decls.
17142 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
17143 (store_multiple): Similarly.
17145 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
17147 * regclass.c (globalize_reg): Update call_really_used_regs.
17149 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
17151 * doc/invoke.texi (integer-share-limit): Document.
17153 * tree.h (TYPE_CACHED_VALUES_P): New.
17154 (TYPE_CACHED_VALUES): New.
17155 (TYPE_ORIG_SIZE_TYPE): Adjust.
17156 * tree.def (INTEGER_CST): Update documentation.
17157 * tree.c: Inlcude params.h.
17158 (build_int_cst): Cache small values.
17159 (build_type_copy): Do not copy the value cache.
17160 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
17162 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
17163 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
17165 * fold-const.c (force_fit_type): Copy value when setting
17167 (int_const_binop): Likewise.
17168 * stor-layout.c: Include params.h
17169 (set_sizetype): Create values cache.
17170 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
17171 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
17172 * params.h (INTEGER_SHARE_LIMIT): New.
17173 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
17175 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
17177 * gimplify.c (gimplify_minimax_expr): Remove.
17178 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
17180 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
17182 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
17183 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
17185 2004-08-19 Mark Mitchell <mark@codesourcery.com>
17187 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
17189 2004-08-18 Andrew Pinski <apinski@apple.com>
17191 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
17193 2004-08-18 Mark Mitchell <mark@codesourcery.com>
17195 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
17196 (__aeabi_ul2f): Likewise.
17198 2004-08-18 Richard Henderson <rth@redhat.com>
17200 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
17201 move to rtl completely.
17202 (struct meminsnbuf, xtensa_emit_block_move): Remove.
17203 (xtensa_find_mode_for_size): Remove.
17204 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
17205 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
17207 2004-08-18 Richard Henderson <rth@redhat.com>
17209 * config/mcore/mcore.c (mode_from_align): Remove DImode.
17210 (block_move_sequence): Rewrite to use adjust_address.
17211 (mcore_expand_block_move): Cleanup logic. Accept only operands.
17212 Return boolean indicating success/failure.
17213 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
17214 * config/mcore/mcore.md (movmemsi): Update to match.
17216 2004-08-18 Mike Stump <mrs@apple.com>
17218 * doc/invoke.texi (-mfix-and-continue): Add support for
17219 fast turn around debugging.
17220 (-ffix-and-continue): Likewise.
17221 (-mindirect-data): Likewise.
17222 (-findirect-data): Likewise.
17223 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
17224 (indirect_data): Likewise.
17225 (machopic_data_defined_p): Likewise.
17226 (machopic_output_indirection): Likewise.
17227 (darwin_encode_section_info): Likewise.
17228 (darwin_fix_and_continue): Likewise.
17229 (darwin_fix_and_continue_switch): Likewise.
17230 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
17231 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
17232 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
17233 (SUBTARGET_OPTIONS): Likewise.
17234 (darwin_fix_and_continue): Likewise.
17235 (darwin_fix_and_continue_switch): Likewise.
17236 (TARGET_FIX_AND_CONTINUE): Likewise.
17237 * config/rs6000.c (rs6000_emit_prologue): Likewise.
17239 2004-08-19 Steven Bosscher <stevenb@suse.de>
17241 * basic-block.h (struct edge_def): Remove crossing_edge.
17242 (EDGE_CROSSING): New define.
17243 (EDGE_ALL_FLAGS): Update.
17244 * bb-reorder.c (find_traces_1_round, better_edge_p,
17245 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
17246 find_jump_block, fix_crossing_conditional_branches,
17247 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
17248 Replace all occurences of crossing_edge with an edge flag check
17250 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
17251 try_crossjump_bb): Likewise.
17252 * cfglayout.c (fixup_reorder_chain): Likewise.
17253 * cfgrtl.c (force_nonfallthru_and_redirect,
17254 commit_one_edge_insertion): Likewise.
17256 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
17257 * tree-flow.h (compute_dominance_frontiers): Move prototype...
17258 * basic-block.h: ...here.
17259 * tree-cfg.c (compute_dominance_frontiers_1,
17260 compute_dominance_frontiers): Move from here...
17261 * cfganal.c: ...to here. Include timevar.h.
17263 2004-08-18 James E Wilson <wilson@specifixinc.com>
17265 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
17266 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
17268 * config/mips/mips.md (type): Add frdiv.
17269 (divsf3+1, divsf3+2): Change type to frdiv.
17270 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
17271 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
17273 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
17274 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
17275 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
17276 * config/mips/5000.md (r5k_fdiv_single): Likewise.
17277 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
17278 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
17279 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
17280 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
17281 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
17282 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
17284 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
17286 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
17288 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
17289 get regression tester working again.
17291 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17293 * insn-notes.def, reg-notes.def: New files.
17294 * rtl.h: Use them to define enum insn_note and enum reg_note.
17295 * rtl.c: Use them to define note_insn_name and reg_note_name.
17296 * Makefile.in (RTL_BASE_H): Update.
17298 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
17299 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
17301 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17303 * arm.c (arm_size_rtx_costs): New function.
17304 (arm_override_options): Use it if optimizing for space.
17306 2004-08-18 Richard Henderson <rth@redhat.com>
17308 * emit-rtl.c (gen_const_mem): New.
17309 * rtl.h (gen_const_mem): Declare.
17310 * expr.c (do_tablejump): Use it.
17311 * varasm.c (force_const_mem): Likewise.
17312 * config/darwin.c (machopic_indirect_data_reference): Likewise.
17313 (machopic_legitimize_pic_address): Likewise.
17314 * config/arm/arm.c (legitimize_pic_address): Likewise.
17315 * config/i386/i386.c (legitimize_pic_address): Likewise.
17316 (legitimize_tls_address): Likewise.
17317 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17318 * config/ia64/ia64.md (load_fptr): Likewise.
17319 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17320 * config/pa/pa.c (legitimize_pic_address): Likewise.
17321 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17322 (rs6000_emit_move): Likewise.
17323 * config/s390/s390.c (legitimize_pic_address): Likewise.
17324 (legitimize_tls_address): Likewise.
17325 * config/s390/s390.md (casesi): Likewise.
17326 * config/sh/sh.c (sh_reorg): Likewise.
17327 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17328 * config/v850/v850.md (casesi): Likewise.
17330 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
17331 * config/sh/sh.c (prepare_move_operands): Remove incorrect
17332 use of MEM_READONLY_P.
17334 2004-08-18 Steven Bosscher <stevenb@suse.de>
17336 * Makefile.in (OBJS-common): Add postreload-gcse.c.
17337 Add new postreload-gcse.o.
17338 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
17339 (lookup_as_function, insert, rehash_using_reg, use_related_value,
17340 equiv_constant): Use SAFE_HASH instead of safe_hash.
17341 (exp_equiv_p): Export. Add for_gcse argument when comparing
17343 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
17344 find_comparison_args, fold_rtx, cse_insn): Update callers.
17345 (hash_rtx): New function derived from old canon_hash and bits
17346 from gcse.c hash_expr_1.
17347 (canon_hash_string): Rename to hash_rtx_string.
17348 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
17349 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
17350 (cselib_lookup): Update this caller.
17351 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
17353 (hash_expr): Call hash_rtx.
17354 (ldst_entry): Likewise.
17355 (expr_equiv_p): Call exp_equiv_p.
17356 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
17357 reg_used_on_edge, reg_set_between_after_reload_p,
17358 reg_used_between_after_reload_p, get_avail_load_store_reg,
17359 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
17360 get_bb_avail_insn, hash_scan_set_after_reload,
17361 compute_hash_table_after_reload,
17362 eliminate_partially_redundant_loads, gcse_after_reload,
17363 get_bb_avail_insn, gcse_after_reload_main): Remove.
17364 * postreload-gcse.c: New file, reincarnating most of the above.
17365 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
17366 (gcse_after_reload_main): Update prototype.
17367 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
17368 * passes.c (rest_of_handle_gcse2): Use it.
17370 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17372 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
17373 (pass_loop_done): Likewise.
17375 2004-08-18 Andrew Pinski <apinski@apple.com>
17377 * config/rs6000/darwin.md: Delete the altivec patterns which are
17378 handled differently now.
17379 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
17380 (macho_correct_pic_di): Likewise.
17381 (call_indirect_nonlocal_darwin64): Likewise.
17382 Delete the save world/saveFP/saveVec patterns.
17384 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
17385 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17386 * config/rs6000/rs6000.md: Include darwin.md.
17387 (builtin_setjmp_receiver): Add DImode case.
17388 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17391 2004-08-18 Matt Austern <austern@apple.com>
17393 Dead code stripping
17394 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
17395 * darwin.c (darwin_file_end): Mark file as potentially strippable.
17397 2004-08-18 Richard Henderson <rth@redhat.com>
17399 * alias.c (readonly_fields_p): Remove.
17400 (objects_must_conflict_p): Don't call it.
17401 * tree.h (readonly_fields_p): Remove.
17402 * langhooks.h (struct lang_hooks): Remove honor_readonly.
17403 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
17405 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17407 * tree-dfa.c (add_referenced_var): Only global variables are
17409 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
17410 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
17411 all pointers dereferenced if the statement dereferences them.
17412 (create_name_tags): Do not create memory tags for pointers
17413 that have PT_ANYTHING set.
17414 Also check if PT_VARS is not empty before creating a name tag.
17415 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
17416 variables that share the same alias set with a pointer that
17417 may point anywhere.
17418 (add_may_alias): Add FIXME comment to remove clobbering
17419 aliased variables and tags.
17420 (replace_may_alias): Likewise.
17421 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
17422 (merge_pointed_to_info): If the original variable has not
17423 points-to information, call set_pt_anything.
17424 (add_pointed_to_var): Do not prevent adding a pointed-to
17425 variable if the pointers is PT_ANYTHING.
17426 If the variable is a global, set PT_GLOBAL_MEM.
17427 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
17428 pointer type only come in PTR+OFFSET flavours.
17429 Always call merge_pointed_to_info on PHI arguments that are
17431 (get_nmt_for): Mark call-clobbered tags whose pointer points
17433 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
17435 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
17437 (add_stmt_operand): Abort if the caller tried to add a killing
17438 definition for a memory tag.
17439 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
17440 unnecessary checks.
17442 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
17444 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
17445 from call_used_regs. Update call_really_used_regs.
17446 (CALL_REALLY_USED_REGISTERS): Define.
17447 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
17448 Replace call_used_regs with call_really_used_regs.
17449 (calc_live_regs, sh_media_register_for_return): Likewise.
17450 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
17451 * sh.md (return_media): Likewise.
17453 2004-08-18 Andrew Pinski <apinski@apple.com>
17455 * config/darwin.c (machopic_legitimize_pic_address): Only set
17456 MEM_READONLY_P in the non TARGET_TOC case.
17458 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17460 * rtl.def (NIL): Delete.
17461 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
17462 Tighten the syntax a little.
17464 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
17465 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
17466 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
17467 * config/i386/predicates.md, config/m32r/m32r.h
17468 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
17469 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
17470 * config/sparc/sparc.h, doc/tm.texi:
17471 Replace all occurrences of NIL with UNKNOWN.
17473 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17475 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
17476 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
17477 sequence inline. Move drop_through_label code into this
17478 block, being the only place it is used. Adjust comments.
17480 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
17482 * config/rs6000/altivec.md: Add new patterns for calls to
17483 save_world/rest_world functions.
17485 * config/rs6000/rs6000-protos.h: (save_world_operation,
17486 restore_world_operation) new declarations.
17488 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
17490 (rs6000_stack_info): Set world_save_p field.
17491 (save_world_operation): New function.
17492 (restore_world_operation): New function.
17493 (compute_save_world_info): New function.
17494 (rs6000_stack_info): Call compute_save_world_info.
17495 (rs6000_emit_prologue): Check for world_save_p and generate
17496 pattern to call save_world for saving all non-volatile and
17498 (rs6000_emit_epilogue): Check for world_save_p and generate
17499 pattern to call rest_world to restore saved registers.
17501 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
17502 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
17503 (rs6000_reg_names): New entries added for save_world_operation and
17504 restore_world_operation.
17506 2004-08-18 Caroline Tice <ctice@apple.com>
17508 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
17509 "-freorder-blocks-and-partition" to the flags used in second
17510 stage of profiledbootstrap.
17511 * bb-reorder.c (push_to_next_round_p): Add new variable,
17512 next_round_is_last; set and use variable to make sure, when
17513 partitioning, that the last trace construction round consists
17514 of all (and only) cold basic blocks.
17515 (rotate_loop): Don't copy blocks that end in a section
17517 (copy_bb): Correctly initialize "partition" of duplicated bb.
17518 (add_unlikely_executed_notes): Add a comment.
17519 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
17520 to make sure, if function contains hot blocks, that the
17521 successors of ENTRY_BLOCK_PTR are hot; also, only look for
17522 crossing edges if the architecture supports named sections.
17523 (mark_bb_for_unlikely_executed_section): Modify to always
17524 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
17525 the basic block note insn.
17526 (fix_crossing_unconditional_branches): Remove extra space.
17527 (fix_edges_for_rarely_executed_code): Modify to only do
17528 partitioning work if the architecture supports named sections.
17529 (reorder_basic_blocks): Modify to only add
17530 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
17531 supports named sections.
17532 * c-common.c (handle_section_attribute): Initialize new global
17533 variable, user_defined_section_attribute, to true if user has
17535 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
17536 forward edges that cross section boundaries.
17537 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
17538 partitioning information if the architecture supports named
17540 * cfgrtl.c (target.h): Add statement to include this.
17541 (rtl_split_block): Make sure newly created bb gets correct
17543 (try_redirect_by_replacing_jump): Make sure redirection isn't
17544 attempting to cross section boundaries.
17545 (force_nonfallthru_and_redirect): Only do partition fix up if
17546 architecture supports named sections.
17547 (rtl_split_edge): Make sure newly created bb ends up in
17549 (commit_one_edge_insertion): Remove code that incorrectly
17550 updated basic block partition; Make sure partition fix up only
17551 happens if architecture supports named sections and it's not
17553 (rtl_verify_flow_info_1): Fix if-condition on test/error
17554 condition that fallthru edges are not allowed to cross section
17556 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
17557 * final.c (final_scan_insn): Remove redundant test from if-statement;
17558 change calls to text_section into calls to function_section; add code
17559 to only to partitioning fix up if architecture supports named
17561 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
17563 (if_convert): Add targetm.have_named_sections to test.
17564 * output.h (unlikely_section_label): Extern declaration for new global
17566 (unlikely_text_section_name): Likewise.
17567 * opts.c (decode_options): If both partitioning and DWARF debugging
17568 are turned on, issue a warning that this doesn't work, and change
17569 partitiong to basic block reordering (without hot/cold partitions).
17570 * passes.c (rest_of_handle_final): Re-set new global variable,
17571 user_defined_section_attribute, to false.
17572 (rest_of_compilation): Change options for calling partitioning
17573 function: Don't call if the user defined the section attribute, and
17574 don't call if DECL_ONE_ONLY is true for the current function.
17575 * predict.c (choose_function_section): Return immediately if we
17576 are doing hot/cold partitioning (i.e. let the basic block partitioning
17577 determine where the function belongs).
17578 * reg-stack.c (emit_swap_insn): Add condition to step over
17579 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
17580 * toplev.c (user_defined_section_attribute): New global variable.
17581 * toplev.h (user_defined_section_attribute): Extern declaration
17582 for new global variable.
17583 * varasm.c (unlikely_section_label): New global variable.
17584 (unlikely_text_section_name): New global variable.
17585 (unlikely_text_section): Add code to initialize
17586 unlikely_text_section_name if necessary; modify to use
17587 unlikely_text_section_name and unlikely_section_label; also to use
17588 named_section properly.
17589 (in_unlikely_text_section): Modify to work correctly with
17590 named_section and to use unlikely_text_section_name.
17591 (named_section): Add code to work properly with cold section.
17592 (function_section): Clean up if-statement.
17593 * config/darwin.c (darwin_asm_named_section): Return to original
17594 code, removing use of SECTION_FORMAT_STRING.
17595 * config/arm/pe.h (switch_to_section): Add case for
17596 in_unlikely_executed_text to switch statement.
17597 * config/i386/cygming.h (switch_to_section): Likewise.
17598 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17599 (SECTION_FORMAT_STRING): Likewise.
17600 * config/mcore/mcore.h (switch_to_section): Likewise.
17601 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17602 (SECTION_FORMAT_STRING): Remove.
17604 2004-08-18 Roger Sayle <roger@eyesopen.com>
17606 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
17607 -ffixed-reg safe, by preserving the meanings of zero and one.
17608 (CALL_USED_REGISTERS): Likewise.
17609 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
17611 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
17613 * config/sh/sh.c (split_branches): Check the result of
17615 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
17616 Call rtl_register_cfg_hooks.
17618 2004-08-18 Richard Henderson <rth@redhat.com>
17620 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17621 * alias.c (true_dependence): Update to match new semantics.
17622 (canon_true_dependence, write_dependence_p): Likewise.
17623 (anti_dependence, output_dependence): Update write_dependence_p args.
17624 (unchanging_anti_dependence): Remove.
17625 * calls.c (purge_mem_unchanging_flag): Remove.
17626 (fixup_tail_calls): Don't call it.
17627 (expand_call): Don't add unchanging memory to function usage.
17628 * expr.c (emit_block_move_via_libcall): Likewise.
17629 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
17630 (get_subtarget): Don't use RTX_UNCHANGING_P.
17631 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
17632 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
17633 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
17634 * cse.c (insert): Don't use RTX_UNCHANGING_P.
17635 (cse_insn, canon_hash): Use MEM_READONLY_P.
17636 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
17637 instead of RTX_UNCHANGING_P.
17638 * explow.c (maybe_set_unchanging): Remove.
17639 * expr.h (maybe_set_unchanging): Remove.
17640 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
17641 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
17642 (assign_parm_setup_reg, expand_function_start): Likewise.
17643 * integrate.c (copy_rtx_and_substitute): Likewise.
17644 * ra-rewrite.c (emit_colors): Likewise.
17645 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
17646 (fixup_match_1): Likewise.
17647 * reload1.c (reload, alter_reg): Likewise.
17648 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
17649 not RTX_UNCHANGING_P.
17650 (equiv_init_varies_p): Likewise.
17651 * loop-invariant.c (check_maybe_invariant): Likewise.
17652 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
17653 * loop.c (note_addr_stored): Likewise.
17654 (prescan_loop): Likewise. Don't check function usage for clobbered
17656 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
17657 not RTX_UNCHANGING_P.
17658 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
17659 * varasm.c (force_const_mem): Likewise.
17660 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
17661 * web.c (entry_register): Likewise.
17662 * tree-gimple.h (get_base_address): Move decl ...
17663 * tree.h: ... here.
17664 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17666 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
17667 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
17668 (alpha_set_memflags): Update to match.
17670 * config/darwin.c (machopic_indirect_data_reference): Set
17671 MEM_READONLY_P instead of RTX_UNCHANGING_P.
17672 (machopic_indirect_call_target): Likewise.
17673 (machopic_legitimize_pic_address): Likewise.
17674 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
17675 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
17676 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
17677 * config/frv/frv.md (symGOT2reg): Likewise.
17678 * config/i386/i386.c (legitimize_pic_address,
17679 legitimize_tls_address, ix86_split_to_parts): Likewise.
17680 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17681 * config/ia64/ia64.md (load_fptr): Likewise.
17682 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17683 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
17684 * config/mcore/mcore.c (block_move_sequence): Likewise.
17685 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
17686 * config/pa/pa.c (legitimize_pic_address): Likewise.
17687 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17688 (rs6000_emit_move): Likewise.
17689 * config/s390/s390.c (legitimize_pic_address): Likewise.
17690 (legitimize_tls_address): Likewise.
17691 * config/s390/s390.md (casesi): Likewise.
17692 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
17693 * config/sh/sh.md (symGOT2reg): Likewise.
17694 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17695 * config/v850/v850.md (casesi): Likewise.
17697 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
17698 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
17699 * config/mips/mips.c (mips_restore_gp): Likewise.
17700 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
17701 * config/sh/sh.c (sh_reorg): Likewise.
17703 2004-08-18 Richard Henderson <rth@redhat.com>
17705 * tree.h (struct tree_decl): Add gimple_formal_temp.
17706 (DECL_GIMPLE_FORMAL_TEMP_P): New.
17707 * gimplify.c (pop_gimplify_context): Clear it.
17708 (lookup_tmp_var): Set it, if is_formal.
17709 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
17710 Use is_gimple_val for VECTOR. Simplify return value.
17711 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
17712 (gimplify_expr): Likewise.
17713 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
17714 is_gimple_tmp_rhs for clarity. Update all callers.
17715 (is_gimple_reg_rhs): Simplify logic.
17716 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
17717 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
17718 (is_gimple_formal_tmp_reg): Similarly.
17719 * tree-gimple.h: Update decls.
17720 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
17721 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
17722 * tree-ssa-live.c (var_union, type_var_init): Likewise.
17724 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
17726 * c4x.c (legitimize_operands): Remove calls to
17727 preserve_subexpressions_p.
17729 2004-08-18 David Edelsohn <edelsohn@gnu.org>
17731 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
17732 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
17734 2004-08-18 Ziemowit Laski <zlaski@apple.com>
17736 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
17737 Objective-C++ extensions.
17738 * gengtype.c (get_file_basename): Match entire subdirectory name
17739 ('cp', 'objc', 'objcp') rather than just its suffix.
17740 (get_base_file_bitmap): Allow for files to belong to more than one
17742 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
17743 used by more than one front-end.
17745 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17747 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
17748 avoid use of preserve_subexpressions_p.
17750 2004-08-17 Richard Henderson <rth@redhat.com>
17753 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
17755 2004-08-17 DJ Delorie <dj@redhat.com>
17757 * doc/extend.texi: Document new xstormy16 attribute.
17759 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
17760 (xstormy16_splittable_below100_or_register): New.
17761 (combine_bnp): New.
17762 (xstormy16_reorg): New.
17763 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17765 * config/stormy16/stormy16.md (movqi_internal): Make name public.
17766 (movhi_internal): Likewise.
17767 (cbhranchhi): Likewise.
17768 (cbhranchhi_neg): Likewise.
17769 (andhi3): Only allow splittable below100 operands.
17770 (iorhi3): Likewise.
17771 (peephole2): New and/zero_extend->and peephole.
17772 (peephole2): New load/ior/save->set1 peephole.
17773 (peephole2): New load/and/save->clr1 peephole.
17774 (bclrx, bclrx2, bclr7, bclr15): New.
17775 (bsetx, bsetx2, bset7, bset15): New.
17777 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
17778 liberal about acceptable 'B' masks.
17780 * config/stormy16/stormy16-protos.h
17781 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17782 xstormy16_below100_operand, xstormy16_below100_or_register,
17783 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17784 (PREDICATE_CODES): Add new predicates.
17786 * config/stormy16/stormy16.c
17787 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17788 xstormy16_below100_operand, xstormy16_below100_or_register,
17789 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17790 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
17791 (xstormy16_legitimate_address_p): Allow below100 symbols.
17792 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
17793 (xstormy16_expand_move): Leave below100 operands as-is.
17794 (xstormy16_encode_section_info): Encode below100 symbols.
17795 (xstormy16_strip_name_encoding): New.
17796 (xstormy16_print_operand): Print 'b' as shift mask.
17797 (xstormy16_attribute_table): Add below100 attributes.
17798 (xstormy16_handle_below100_attribute): New.
17800 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
17801 (XSTORMY16_SECTION_FUNCTION): New.
17802 (EXTRA_SECTION_FUNCTIONS): Define using the above.
17803 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17804 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
17805 (ASM_OUTPUT_LABELREF): Define.
17807 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
17808 (movhi_internal): Add below100 support.
17809 (andhi3): Add below100 support.
17810 (iorhi3): Add below100 support.
17811 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
17813 2004-08-17 James E Wilson <wilson@specifixinc.com>
17815 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
17816 of VOIDmode for comparison code mode.
17817 * config/mips/mips.md: For conditional move patterns, use mode of
17818 first compare operand for comparison mode, instead of VOIDmode.
17820 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
17821 normal and -ffast-math code.
17823 2004-08-17 Mark Mitchell <mark@codesourcery.com>
17826 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
17828 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
17830 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
17832 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
17834 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
17835 for non Darwin targets.
17836 (*call_value_nonlocal_darwin64): Likewise.
17838 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
17840 * config/rs6000/rs6000.c (rs6000_function_value): Check for
17841 altivec mode for altivec return register.
17843 2004-08-17 David Edelsohn <edelsohn@gnu.org>
17845 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
17846 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17847 * config/rs6000/rs6000.md: Include darwin.md.
17848 (builtin_setjmp_receiver): Add DImode case.
17849 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17852 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
17854 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
17856 * tree-vectorizer.h: New File: Same.
17857 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
17858 * common.opt (ftree-vectorize): New flag to enable vectorization.
17859 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
17860 vectorization pass.
17861 * tree-data-ref.h (init_data_ref): Additional argument.
17862 (array_base_name_differ_p): Moved to tree-data-ref.c.
17863 * tree-data-ref.c (array_base_name_differ_p): Revised.
17864 (initialize_data_dependence_relation): Call array_base_name_differ_p
17865 with an extra argument.
17866 (analyze_all_data_dependences): Same.
17867 (init_data_ref): Additional argument is_read to set DR_IS_READ.
17868 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
17870 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
17871 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
17872 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
17873 vectorization pass.
17874 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
17875 (tree_ssa_loop_done): Call scev_finalize.
17876 (tree_vectorize): Define the new vectorization pass.
17877 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
17878 size of the vector they support (until support for multiple vector
17879 sizes is added to the vectorizer).
17880 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
17881 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
17882 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
17885 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
17887 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
17889 (generate_protocol_list, handle_impent): Likewise.
17891 2004-08-17 Roger Sayle <roger@eyesopen.com>
17893 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
17894 ensure that call_used_regs is a superset of both fixed_regs and
17895 call_really_used_regs.
17897 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
17900 * arm.md (addsi3_cbranch_scratch): Correct case labels.
17902 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
17904 PR middle-end/17036
17905 * fold-const.c (fold): Check for integer operand when
17906 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
17907 Pinski <pinskia@physics.uc.edu>.
17909 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
17911 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
17912 No need to check if in a cross configuration.
17913 * configure: Regenerate.
17915 * calls.c (precompute_register_parameters):
17916 Inline preserve_subexpressions_p ().
17917 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
17918 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
17920 * expr.c (get_subtarget): Likewise.
17921 * rtl.h (preserve_subexpressions_p): Remove.
17922 * stmt.c (preserve_subexpressions_p): Remove.
17924 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
17925 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
17926 Abort on gimplified cases.
17928 2004-08-16 James E Wilson <wilson@specifixinc.com>
17930 * tree.h (VECTOR_FLOAT_TYPE_P): New.
17931 (FLOAT_TYPE_P): Use it.
17932 * c-typeck.c (build_binary_op): After convert calls, check for
17933 check for ERROR_MARK operands.
17935 2004-08-16 Zack Weinberg <zack@codesourcery.com>
17937 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
17938 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
17939 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
17940 (genobjs static pattern rule): Remove %.c dependency.
17941 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
17942 Rename rules; delete commands; fix dependencies.
17943 (mostlyclean): Do not delete temporary source copies.
17944 * configure.ac: Delete all references to BUILD_PREFIX and
17946 * configure: Regenerate.
17948 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
17949 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
17950 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
17951 with #ifndef GENERATOR_FILE so that nothing from those headers
17954 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
17956 2004-08-16 Adam Nemet <anemet@lnxw.com>
17958 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
17960 2004-08-16 Andrew Pinski <apinski@apple.com>
17962 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
17963 extraneous semicolon.
17965 2004-08-16 Devang Patel <dpatel@apple.com>
17967 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
17968 * print-tree.c (print_node): Print DECL_PRESERVE_P.
17969 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
17970 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
17971 * target.h (struct gcc_target): New member, mark_decl_preserved.
17972 * hooks.c (hook_void_charptr): Rename to ...
17973 (hook_void_constcharptr): ... new name.
17974 * hooks.h (hook_void_charptr): Rename to ..
17975 (hook_void_constcharptr): ... new name.
17976 * tree.h (DECL_PRESERVE_P): New #define.
17977 (struct tree_decl): New member, preserve_flag.
17978 * varasm.c (assemble_start_function): Mark decl preserved.
17979 (assemble_variable): Same.
17980 * darwin.c (darwin_mark_decl_preserved): New function.
17981 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
17982 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
17983 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
17985 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
17987 * c-decl.c (grokdeclarator): Allow for function definition where
17988 innermost declarator has attributes.
17990 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
17992 * except.c (get_exception_filter, build_post_landing_pads,
17993 dw2_build_landing_pads): Use target-specific mode for 'filter'.
17994 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
17995 * target.h (eh_return_filter_mode): New field added.
17996 * targhooks.c (default_eh_return_filter_mode): Defined.
17997 * targhooks.h (default_eh_return_filter_mode): Declared.
17998 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
18000 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
18002 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
18003 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
18004 * configure: Regenerate.
18006 2004-08-16 Stan Shebs <shebs@apple.com>
18008 Basic support for 64-bit Darwin.
18009 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
18010 (machopic_legitimize_pic_address): Similarly, plus use Pmode
18012 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
18013 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
18014 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
18015 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
18016 (PROCESSOR_DEFAULT64): Define.
18017 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
18019 * config/rs6000/rs6000.md: Include darwin.md.
18020 (builtin_setjmp_receiver): Add DImode case.
18021 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
18023 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
18024 (rs6000_emit_move): Add DImode case to Darwin bits.
18025 (machopic_output_stub): Use .quad if 64-bit.
18026 * invoke.texi: Document -m32 and -m64.
18028 2004-08-16 Janis Johnson <janis187@us.ibm.com>
18030 * doc/extend.texi (AltiVec builtins): Document additional differences
18031 from the Motorola AltiVec PIM.
18033 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
18035 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
18036 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
18037 (struct tree_common): Update public_flag documentation.
18039 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
18041 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18042 Check for artificial variables, not is_gimple_tmp_var.
18043 * tree-ssa-live.c (var_union): Likewise.
18045 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
18047 * calls.c (load_register_parameters): Remove spurious FIXME token.
18049 2004-08-15 Ziemowit Laski <zlaski@apple.com>
18051 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
18052 (c-lang.o): Depend on c-objc-common.h.
18053 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
18054 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
18055 * c-lang.c: Include c-objc-common.h.
18056 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
18057 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
18058 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
18059 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
18060 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
18061 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
18062 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
18063 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
18064 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
18065 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
18066 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
18067 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
18068 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
18069 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
18070 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
18071 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
18072 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
18073 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
18074 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
18075 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
18076 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
18077 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
18078 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
18079 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
18080 Move to c-objc-common.h.
18081 * c-objc-common.c: Include c-objc-common.h.
18082 * c-objc-common.h: New file.
18084 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
18085 Andrew Pinski <pinskia@physics.uc.edu>
18088 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
18091 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
18093 * tree.h (build_int_cst): New.
18094 (build_int_2): Remove.
18095 * tree.c (build_int_2): Remove.
18096 (build_int_cst): New.
18097 (make_vector_type, build_common_tree_nodes,
18098 build_common_tree_nodes_2): Use build_int_cst.
18099 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
18100 expand_builtin_strpbrk, expand_builtin_fputs,
18101 build_string_literal, expand_builtin_printf,
18102 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
18103 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
18104 fold_builtin_isdigit, simplify_builtin_strstr,
18105 simplify_builtin_strpbrk, fold_builtin_fputs,
18106 simplify_builtin_sprintf): Use build_int_cst.
18107 * c-common.c (start_fname_decls, fix_string_type,
18108 c_common_nodes_and_builtins, c_init_attributes,
18109 shorten_compare): Likewise.
18110 * c-decl.c (complete_array_type,
18111 check_bitfield_type_and_width): Likewise.
18112 * c-lex.c (interpret_integer, lex_charconst): Likewise.
18113 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
18114 * c-pretty-print.c (pp_c_integer_constant): Likewise.
18115 * c-typeck.c (really_start_incremental_init, push_init_level,
18116 set_nonincremental_init_from_string): Likewise.
18117 * calls.c (load_register_parameters): Likewise.
18118 * convert.c (convert_to_pointer): Likewise.
18119 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
18120 build_fn_info_type, build_ctr_info_value, build_gcov_info):
18122 * except.c (init_eh, assign_filter_values, assign_filter_values):
18124 * expmed.c (store_fixed_bit_field, extract_bit_field,
18125 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
18126 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
18127 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
18128 * expr.c (convert_move, emit_group_load, emit_group_store,
18129 expand_assignment, store_constructor, store_field,
18130 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
18131 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
18132 invert_truthvalue, optimize_bit_field_compare,
18133 decode_field_reference, all_ones_mask_p, constant_boolean_node,
18134 fold_div_compare, fold, fold_read_from_constant_string,
18135 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
18136 * function.c (assign_parm_setup_block): Likewise.
18137 * stmt.c (shift_return_value, expand_end_case_type,
18138 estimate_case_costs): Likewise.
18139 * stor-layout.c (layout_type, initialize_sizetypes,
18140 set_min_and_max_values_for_integral_type): Likewise.
18141 * tree-chrec.c (chrec_fold_multiply_poly_poly,
18142 reset_evolution_in_loop): Likewise.
18143 * tree-chrec.h (build_polynomial_chrec): Likewise.
18144 * tree-complex.c (build_replicated_const): Likewise.
18145 * tree-eh.c (honor_protect_cleanup_actions,
18146 lower_try_finally_onedest, lower_try_finally_copy,
18147 lower_try_finally_switch): Likewise.
18148 * tree-mudflap.c (mf_build_string, mx_register_decls,
18149 mudflap_register_call, mudflap_enqueue_constant): Likewise.
18150 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
18151 * tree-pretty-print.c (dump_generic_node): Likewise.
18152 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
18154 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
18155 * tree-ssa-loop-niter.c (number_of_iterations_cond,
18156 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
18159 * config/alpha/alpha.c (alpha_initialize_trampoline,
18160 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
18161 * config/arm/arm.c (arm_get_cookie_size): Likewise.
18162 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
18163 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
18164 * config/i860/i860.c (i860_va_start): Likewise.
18165 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18166 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
18167 mips_gimplify_va_arg_expr): Likewise.
18168 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
18169 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
18170 add_compiler_branch_island): Likewise.
18171 * config/s390/s390.c (s390_va_start): Likewise.
18172 * config/sh/sh.c (sh_va_start): Likewise.
18173 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
18175 * config/xtensa/xtensa.c (xtensa_va_start,
18176 xtensa_gimplify_va_arg_expr): Likewise.
18178 * objc/objc-act.c (build_objc_string_object,
18179 build_objc_symtab_template, init_def_list, init_objc_symtab,
18180 init_module_descriptor, generate_static_references,
18181 build_selector_translation_table, get_proto_encoding,
18182 build_typed_selector_reference, build_selector_reference,
18183 build_next_objc_exception_stuff,
18184 build_method_prototype_list_template, generate_descriptor_table,
18185 generate_protocols, build_protocol_initializer,
18186 build_ivar_list_template, build_method_list_template,
18187 build_ivar_list_initializer, generate_ivars_list,
18188 generate_dispatch_table, generate_protocol_list,
18189 build_category_initializer, build_shared_structure_initializer,
18190 generate_shared_structures, handle_impent,
18191 generate_objc_image_info): Use build_int_cst.
18193 2004-08-15 Ben Elliston <bje@au.ibm.com>
18195 * vec.h: Comment improvements.
18197 2004-08-14 Roger Sayle <roger@eyesopen.com>
18199 * c-common.c (shorten_compare, pointer_int_sum,
18200 c_common_truthvalue_conversion, boolean_increment): Replace calls
18201 to build with calls to buildN.
18202 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
18203 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
18204 gimplify_switch_stmt): Likewise.
18205 * c-typeck.c (default_function_array_conversion,
18206 build_component_ref, build_array_ref, build_function_call,
18207 pointer_diff, build_unary_op, build_conditional_expr,
18208 build_compound_expr, build_modify_expr, c_finish_goto_label,
18209 c_finish_goto_ptr, c_finish_return, c_finish_loop,
18210 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
18211 build_binary_op): Likewise.
18213 2004-08-15 Steven Bosscher <stevenb@suse.de>
18215 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
18217 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18219 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
18220 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
18221 * fixinc/fixincl.x: Rebuilt.
18223 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
18225 * config/mips/mips-protos.h (mips_symbolic_constant_p)
18226 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
18227 (mips_small_data_pattern_p): Declare.
18228 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
18229 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
18230 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
18231 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
18232 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
18233 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
18234 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
18235 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
18236 (pc_or_label_operand, call_insn_operand, move_operand)
18237 (consttable_operand, symbolic_operand, general_symbolic_operand)
18238 (global_got_operand, local_got_operand, stack_operand)
18239 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
18240 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
18241 (mips_small_data_pattern_p): Replace previous small_data_pattern
18242 predicate. Turn into a bool () (rtx) function.
18243 * config/mips/predicates.md: New file.
18244 * config/mips/mips.md: Include it. Use the target-independent
18245 comparison_operator instead of cmp_op. Rename trap_cmp_op to
18246 trap_comparison_operator and equality_op to equality_operator.
18247 Replace uses of small_int with the equivalent const_arith_operand.
18248 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
18249 const_float_1_operand to const_1_operand. Rename fcc_register_operand
18250 to fcc_reload_operand.
18251 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
18253 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18255 PR libstdc++/17005 partial fix.
18256 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
18257 except when generating ANSI/C89 code.
18259 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
18261 * c-common.c (shorten_compare): Use force_fit_type directly.
18263 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
18264 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
18265 Dave Korn <dk@artimi.com>
18267 * doc/install.texi (Building): Avoid duplicate reference to GNU
18269 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
18271 2004-08-14 Richard Henderson <rth@redhat.com>
18273 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
18274 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
18276 2004-08-13 Richard Henderson <rth@redhat.com>
18278 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
18279 for constant_call_address_operand.
18280 (call_value_pop_1, call_value_1): Likewise.
18281 (sibcall_value_1, call_value_1_rex64): Likewise.
18283 2004-08-13 James E Wilson <wilson@specifixinc.com>
18285 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
18286 Correct mode from SFmode to DFmode.
18288 2004-08-13 Ziemowit Laski <zlaski@apple.com>
18290 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
18291 __cstring_object and __image_info sections with the no_dead_strip
18294 2004-08-13 Roger Sayle <roger@eyesopen.com>
18295 David Billinghurst <David.Billinghurst@riotinto.com>
18297 PR libgfortran/15930
18298 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
18299 * fixinc/fixincl.x: Regenerate.
18300 * fixinc/tests/base/internal/math_core.h: New file.
18302 2004-08-13 Richard Henderson <rth@redhat.com>
18304 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
18305 (dbxout_function_end): Remove ifdefs for it.
18306 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
18308 2004-08-13 Richard Henderson <rth@redhat.com>
18310 * Makefile.in (insn-preds.o): Depend on TREE_H.
18311 * genpreds.c (write_insn_preds_c): Include tree.h.
18312 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
18313 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
18314 const48_operand, and_operand, or_operand, mode_width_operand,
18315 mode_mask_operand, mul8_operand, const0_operand,
18316 hard_fp_register_operand, hard_int_register_operand,
18317 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
18318 samegp_function_operand, direct_call_operand, small_symbolic_operand,
18319 global_symbolic_operand, call_operand, symbolic_operand,
18320 dtp16_symbolic_operand, dtp32_symbolic_operand,
18321 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
18322 gottp_symbolic_operand, alpha_comparison_operator,
18323 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
18324 signed_comparison_operator, alpha_fp_comparison_operator,
18325 divmod_operator, fix_operator, aligned_memory_operand,
18326 unaligned_memory_operand, reg_or_unaligned_mem_operand,
18327 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
18328 reg_no_subreg_operand, addition_operation): Move to predicates.md.
18329 (reg_or_const_int_operand): Remove. Replace all users with
18330 reg_or_cint_operand.
18331 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
18332 (resolve_reload_operand): Split out of aligned_memory_operand.
18333 * config/alpha/alpha-protos.h: Update for exports.
18334 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
18335 * config/alpha/alpha.md: Include predicates.md.
18336 * config/alpha/predicates.md: New file.
18338 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
18340 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
18341 fields with a pointer to the instruction definition.
18342 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
18343 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
18344 (write_attr_case, write_const_num_delay_slots): Update accordingly.
18345 (write_attr_case, write_const_num_delay_slots): Write the name of
18346 an insn next to its case statement.
18347 * genoutput.c (data): Add a filename field.
18348 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
18349 (output_insn_data): Print the location of each insn definition.
18350 * genrecog.c (write_action): Print the name of an insn above
18351 the statement that returns its code.
18353 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
18355 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
18356 * config/libgloss.h: Likewise.
18357 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
18358 * c4x/c4x-modes.def: Likewise.
18359 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
18360 (c4x_rptb_nop_p): Likewise.
18361 (c4x_rptb_valid_p): Likewise.
18362 (c4x_rptb_insert): Likewise.
18363 (c4x_address_conflict): Likewise.
18364 * config/c4x/c4x.md: Likewise.
18365 * config/frv/frv.md: Likewise.
18366 * config/i386/athlon.md: Likewise.
18367 * config/i386/i386.md: Likewise.
18368 * config/i386/predicates.md: Likewise.
18369 * config/ia64/ia64.c: Likewise.
18370 * config/ia64/itanium1.md: Likewise.
18371 * config/ia64/itanium2.md: Likewise.
18372 * config/iq2000/iq2000.md: Likewise.
18373 * config/mcore/mcore.c: Likewise.
18374 * config/mips/mips.c: Likewise.
18375 * config/mips/r3900.h: Likewise.
18376 * config/mips/sb1.md: Likewise.
18377 * config/pa/milli64.S: Likewise.
18378 * config/pa/pa.c: Likewise.
18379 * config/pa/pa.h: Likewise.
18380 * config/rs6000/8540.md: Likewise.
18382 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
18384 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
18386 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
18388 * sh.md (cbranch define_delay) Use cond_delay_slot for
18389 non-anulled condition too.
18391 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18393 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
18394 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18395 any_parallel_operand, lmw_operation, stmw_operation,
18396 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
18397 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
18398 any_parallel_operand.
18399 (return_and_restore_fpregs_{si,di}): Same.
18401 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18403 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
18404 if pred->singleton != PARALLEL, issue a warning and pretend it was.
18405 Also issue a warning for any predicate we don't know about.
18407 2004-08-12 Richard Henderson <rth@redhat.com>
18409 * config/i386/i386.c (internal_label_prefix): Export.
18410 (internal_label_prefix_len, struct ix86_address,
18411 ix86_decompose_address, maybe_get_pool_constant,
18412 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
18413 memory_address_length): Export.
18414 (any_fp_register_operand, fp_register_operand,
18415 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
18416 x86_64_general_operand, x86_64_szext_general_operand,
18417 x86_64_nonmemory_operand, x86_64_movabs_operand,
18418 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
18419 x86_64_zext_immediate_operand, const_int_1_31_operand,
18420 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
18421 tls_symbolic_operand, global_dynamic_symbolic_operand,
18422 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
18423 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
18424 constant_call_address_operand, const0_operand, const1_operand,
18425 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
18426 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
18427 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
18428 general_no_elim_operand, nonmemory_no_elim_operand,
18429 index_register_operand, q_regs_operand, flags_reg_operand,
18430 non_q_regs_operand, zero_extended_scalar_load_operand,
18431 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
18432 ix86_comparison_operator, ix86_carry_flag_operator,
18433 fcmov_comparison_operator, promotable_binary_operator,
18434 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
18435 mult_operator, div_operator, arith_or_logical_operator,
18436 memory_displacement_operand, cmpsi_operand, long_memory_operand,
18437 aligned_operand): Move to predicates.md as define_predicates.
18438 (tls_symbolic_operand_1): Remove.
18439 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
18440 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
18441 (legitimize_address): Merge tls_symbolic_operand contents.
18442 (ix86_expand_move): Likewise.
18443 * config/i386/i386-protos.h: Update for exports.
18444 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
18445 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
18446 * config/i386/i386.md: Include predicates.md.
18447 * config/i386/predicates.md: New file.
18449 2004-08-13 Mark Mitchell <mark@codesourcery.com>
18452 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
18454 (i386_pe_mark_dllimport): Likewise.
18455 (i386_pe_encode_section_info): Likewise, when overriding
18456 dllimport attribute.
18458 2004-08-12 Geoffrey Keating <geoffk@apple.com>
18460 * configure.ac: When testing for flex, nm, ar, and bison, check
18461 that they will actually be built.
18462 * configure: Regenerate.
18464 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
18466 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
18467 (MOVE_MAX_PIECES): Define.
18469 2004-08-12 Devang patel <dpatel@apple.com>
18471 * dbxout.c (dbxout_begin_prologue): New function.
18472 (dbx_debug_hooks): Use new begin prologue hook.
18473 (dbxout_function_end): Emit N_ENSYM.
18474 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
18476 2004-08-12 Janis Johnson <janis187@us.ibm.com>
18478 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
18479 argument is float*.
18481 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
18484 * doc/extend.texi (AltiVec builtins): Fix description for recent
18485 changes. Update operation list to match current support.
18487 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
18489 * config/s390/s390.c (struct s390_frame_layout): New struct as element
18490 of struct machine_function.
18491 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
18493 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
18495 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
18496 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
18497 (s390_frame_area, s390_register_info): New functions.
18498 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
18500 (s390_return_addr_rtx, s390_return_address_offset)
18501 (s390_va_start, s390_gimplify_va_arg)
18502 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
18504 (s390_frame_info): Functionality partly moved to s390_register_info.
18505 Made adaptions for new stack layout.
18506 (save_gprs, restore_gprs): Changed meaning of second parameter and
18507 adapted all callers.
18509 * config/s390/s390.h (s390_backchain_string): New global variable.
18510 (MASK_BACKCHAIN): Removed definition.
18511 (TARGET_BACKCHAIN): Changed check.
18512 (TARGET_KERNEL_BACKCHAIN): New macro.
18513 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
18514 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
18515 "kernel-backchain".
18516 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
18518 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
18519 as condition. Adjusted for new stack layout.
18521 * doc/invoke.texi: Added documentation for new option
18522 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
18525 2004-08-12 Paul Brook <paul@codesourcery.com>
18527 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
18528 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
18530 2004-08-12 David Daney <ddaney@avtrex.com>
18532 * java/gcj.texi: Add subsection on signal usage.
18534 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18536 * expr.c (move_by_pieces): Set alignment for move to minimum of
18537 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
18538 alignment, but not less than the original alignment.
18539 (move_by_pieces_ninsns): Same.
18540 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
18541 (store_by_pieces_1): Same.
18543 2004-08-12 Diego Novillo <dnovillo@redhat.com>
18545 PR tree-optimization/16867
18546 * tree.c (is_global_var): New function.
18547 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
18548 Call is_global_var.
18549 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
18551 (is_global_var): Declare.
18552 * tree-dfa.c (dump_variable): Display global and addressable
18554 (add_referenced_var): Clarify documentation when marking
18555 variables call-clobbered.
18556 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
18557 instead of needs_to_live_in_memory.
18558 (mark_call_clobbered): If the variable is a tag, mark it
18560 * tree-gimple.c (is_gimple_reg): Don't check for
18562 (is_gimple_non_addressable): Likewise.
18563 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
18564 needs to be marked call-clobbered.
18565 (setup_pointers_and_addressables): Call is_global_var instead
18566 of needs_to_live_in_memory.
18567 * tree-ssa-dce.c (need_to_preserve_store): Remove.
18568 Update all users with is_global_var.
18569 (mark_stmt_if_obviously_necessary): Fix processing of aliased
18570 stores. Don't check the virtual definitions. Rather, check
18571 whether the store is going into global memory.
18572 (find_obviously_necessary_stmts): Get the symbol from the PHI
18574 * tree-ssa-operands.c (get_call_expr_operands): Do not add
18575 clobbering may-defs if the call does not have side effects.
18577 2004-08-12 Jakub Jelinek <jakub@redhat.com>
18580 * output.h (default_function_rodata_section,
18581 default_no_function_rodata_section): New prototypes.
18582 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
18583 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18584 (TARGET_ASM_OUT): Add it.
18585 * varasm.c (default_function_rodata_section,
18586 default_no_function_rodata_section): New functions.
18587 * final.c (final_scan_insn): Call
18588 targetm.asm_out.function_rodata_section instead of
18589 readonly_data_section.
18590 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18591 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18592 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18593 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18595 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18596 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18598 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18600 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18601 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18602 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
18604 2004-08-12 Paul Brook <paul@codesourcery.com>
18606 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
18608 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
18609 DWARF2_UNWIND_INFO.
18611 2004-08-12 Ben Elliston <bje@au.ibm.com>
18614 * config/rs6000/altivec.h: Change vector to __vector throughout.
18615 (Except for the `vector' macro itself).
18617 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18619 * genpreds.c: Add capability to generate predicate bodies as
18620 well as function prototypes. Write function prototypes for
18621 the generic predicates too.
18622 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
18623 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
18624 (write_match_code, write_predicate_expr, write_one_predicate_function)
18625 (parse_option): New functions.
18626 (output_predicate_decls): Delete.
18627 (main): Read the machine description, process DEFINE_PREDICATE or
18628 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
18631 * genrecog.c (struct decision_test): Replace index with
18632 struct pred_data pointer.
18633 (next_index): Remove, unused.
18634 (pred_table, preds, special_mode_pred_table): Delete.
18635 (compute_predicate_codes, process_define_predicate): New functions.
18636 (validate_pattern, add_to_sequence, write_switch): Update for
18637 new data structures.
18638 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18639 Check both error_count and have_error.
18641 * gensupport.c (in_fname, first_predicate): New globals.
18642 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
18643 (predicate_table, last_predicate, old_pred_table)
18644 (old_special_pred_table): New statics.
18645 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
18646 (add_predicate, init_predicate_table): New functions.
18647 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18648 (init_md_reader_args_cb): Use the global in_fname. No need to zero
18649 it or max_include_len. Call init_predicate_table.
18650 (read_rtx): Run the predicate queue after the attribute queue
18651 but before all the others.
18652 * gensupport.h (in_fname, struct pred_data, first_predicate)
18653 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
18654 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
18655 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
18656 * dummy-conditions.c: Don't include bconfig.h, system.h,
18657 coretypes.h, tm.h, or system.h. Do include stddef.h.
18658 Duplicate declaration of struct c_test from gensupport.h.
18660 * Makefile.in (OBJS-common): Add insn-preds.o.
18661 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
18662 (insn-preds.c, insn-preds.o): New rules.
18663 (s-preds): Also generate insn-preds.c.
18664 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
18665 Update dependencies.
18666 (print-rtl.o, print-rtl1.o): Correct dependencies.
18668 * recog.h: Delete prototypes of predicate functions.
18670 * doc/md.texi (Predicates): New section with complete
18671 documentation of operand/operator predicates. Remove some
18672 incomplete documentation of predicates from other places.
18673 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
18674 PREDICATE_CODES; indicate that both are deprecated in favor
18675 of define_predicate/define_special_predicate.
18677 * config/ia64/ia64.c: All predicate function definitions moved
18679 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
18680 (ia64_expand_load_address, ia64_expand_move):
18681 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
18683 * config/ia64/ia64.md: All predicates now defined here.
18684 (symbolic_operand): Is now a special predicate.
18686 * config/ia64/ia64.h: Declare ia64_section_threshold.
18687 (PREDICATE_CODES): Delete.
18689 2004-08-12 Richard Henderson <rth@redhat.com>
18691 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
18692 * c-semantics.c (add_stmt): Set it.
18693 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
18694 before instantiating a variable sized type.
18696 2004-08-12 Richard Henderson <rth@redhat.com>
18698 * stor-layout.c (round_up, round_down): Move ...
18699 * fold-const.c (round_up, round_down): ... here. Use
18700 multiple_of_p to avoid any arithmetic at all.
18702 2004-08-12 Richard Henderson <rth@redhat.com>
18704 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
18705 (gimplify_init_ctor_preeval_1): New.
18706 (gimplify_init_ctor_preeval): New.
18707 (gimplify_init_ctor_eval): New.
18708 (gimplify_init_constructor): Use them. Always gimplify the LHS
18711 2004-08-12 Ziemowit Laski <zlaski@apple.com>
18713 (This patch is part of merge of objc-improvements-branch
18716 * doc/frontends.texi: Mention Objective-C++ in addition to
18718 * doc/install.texi: Add 'obj-c++' to list of configurable
18720 * doc/invoke.texi: Rename Objective-C option headings to
18721 indicate they also apply to Objective-C++. List file
18722 extensions for Objective-C++ sources. Mention that
18723 ObjC and ObjC++ compilations may also use C and C++ options,
18724 respectively. Point users to doc/standards.texi for
18725 further info on ObjC and ObjC++.
18726 * doc/sourcebuild.texi: Mention the objcp/ directory and
18727 the Objective-C++ sources it contains.
18728 * doc/standards.texi: Update link to Apple ObjC site;
18729 add link to gcc readings.html WWW doc.
18731 2004-08-12 Alan Modra <amodra@bigpond.net.au>
18733 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
18734 and 2004-07-14 changes.
18736 2004-08-12 Paul Brook <paul@codesourcery.com>
18738 * doc/invoke.texi: Fix typo.
18740 2004-08-11 Devang Patel <dpatel@apple.com>
18742 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
18743 and -no_dead_strip_inits_and_terms.
18745 * doc/invoke.texi (Darwin Options): Document -dead_strip and
18746 -no_dead_strip_inits_and_terms.
18748 2004-08-11 Paul Brook <paul@codesourcery.com>
18750 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
18751 (arm_load_pic_register): ... to this.
18752 * config/arm/arm.c (arm_finalize_pic): Rename ...
18753 (arm_load_pic_register): ... to this. Always output insns at the
18754 current location. Load via low reg in thumb mode.
18755 (arm_expand_prologue): Call arm_load_pic_register.
18756 (thumb_expand_prologue): Ditto.
18757 * config/arm/arm.h (FINALIZE_PIC): Remove.
18758 * config/arm/arm.md (builtin_setjmp_receiver): Call
18759 arm_load_pic_register.
18761 2004-08-11 Paul Brook <paul@codesourcery.com>
18763 * arm.c (thumb_force_lr_save): Add prototype.
18764 (thumb_compute_save_reg_mask): New function.
18765 (thumb_find_work_register): New function.
18766 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
18767 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
18768 Don't clobber r3 when removing pretend args.
18769 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
18770 (thumb_output_function_prologue): Use new functions.
18771 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
18772 * arm.h (THUMB_REG_PUSHED_P): Remove.
18774 2004-08-11 James E Wilson <wilson@specifixinc.com>
18776 PR rtl-optimization/16490
18777 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
18778 global_live_at_end for new basic block if already set for other blocks.
18780 2004-08-11 David Edelsohn <edelsohn@gnu.org>
18782 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
18784 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
18785 (mfcr rlwinm rlwinm patterns): Set length to 12.
18787 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
18789 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
18790 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
18791 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
18792 (start_ssa_stmt_operands): Delete.
18793 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
18794 struct stmt_operands_d.
18795 (build_ssa_operands): New extern entry point.
18796 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
18797 building code, replace with create_ssa_artficial_load_stmt().
18798 * tree-ssa-operands.c (struct voperands_d): Delete.
18799 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
18800 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
18801 (free_uses, free_defs, free_vuses, free_v_may_defs,
18802 free_v_must_defs): Remove dealloc parameter.
18803 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
18804 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
18805 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
18806 vector comparisons, ssa_name reuse, and allocations here.
18807 (verify_start_operands): Delete.
18808 (finalize_ssa_stmt_operands): Set new operands by calling finalize
18810 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
18811 (append_def, append_usei): Simplify to simple accumulation.
18812 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
18813 duplicates and simple accumulation.
18814 (free_ssa_operands): Free vectors in a stmt_operand structure.
18815 (build_ssa_operands): New. Create a new stmt_operand structure from
18816 a stmt and an old set of stmt_operands.
18817 (get_stmt_operands): Simplify and call build_ssa_operands.
18818 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
18819 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
18820 add_call_read_ops): Don't pass prev_vops around anymore.
18821 (note_addressable): Return if no stmt annotation.
18822 (copy_virtual_operands): Access v_may_def operands through a struct.
18823 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
18824 hash tables without treating the stmt as a real stmt.
18825 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
18826 v_may_def def and use through a struct instead of 2 array elements.
18827 (struct v_may_def_optype_d): Use v_may_def_operand_type.
18828 (struct stmt_operands_d): New. Struct for storing all operand vectors.
18830 2004-08-11 Nick Clifton <nickc@redhat.com>
18832 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
18833 this funciton's behaviour. Return true when the current function
18834 has a section attribute and -mlong-calls is in effect.
18835 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
18836 short-call marker when -mlong-calls is in effect and the function
18837 has a section attribute.
18839 2004-08-10 Zack Weinberg <zack@codesourcery.com>
18841 * stmt.c (expand_return): If asked to return the RESULT_DECL,
18842 just call expand_value_return on result_rtl.
18844 2004-08-10 Richard Henderson <rth@redhat.com>
18846 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
18847 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
18848 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
18849 (add_location_or_const_value_attribute): ... not here. Use
18850 loc_descriptor_from_tree if possible.
18851 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
18852 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
18854 (loc_descriptor_from_tree): New. Update callers.
18855 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
18856 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
18857 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
18858 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
18859 and BUILT_IN_STACK_RESTORE.
18860 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
18861 * stmt.c (expand_stack_alloc): Remove.
18862 * tree-mudflap.c (mx_register_decls): Don't look for
18863 BUILT_IN_STACK_ALLOC.
18864 * tree-nested.c (convert_local_reference): Likewise.
18865 * tree.h (DECL_VALUE_EXPR): New.
18867 2004-08-10 Richard Henderson <rth@redhat.com>
18869 * stor-layout.c (round_up): Check for 0/1 before dividing.
18870 (round_down): Likewise.
18872 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
18874 2004-08-09 Mark Mitchell <mark@codesourcery.com>
18876 * config.gcc (arm*-*-eabi*): New target.
18877 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
18878 (TARGET_LIB_INT_CMP_BIASED): Likewise.
18879 * expmed.c (expand_divmod): Try a two-valued divmod function as a
18881 * gthr.h: Remove bogus tokens at end of #pragma.
18882 * optabs.c (expand_twoval_binop_libfunc): New function.
18883 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
18884 (prepare_float_lib_cmp): Try reversing the condition.
18885 (debug_optab_libfuncs): New function.
18886 * optabs.h (expand_twoval_binop_libfunc): Declare.
18887 * config/arm/arm.c (arm_init_libfuncs): New function.
18888 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
18889 (TARGET_INIT_LIBFUNCS): Define it.
18890 * config/arm/arm.h (TARGET_BPABI): New macro.
18891 * config/arm/arm-protos.h
18892 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
18893 * config/arm/bpabi.S: New file.
18894 * config/arm/bpabi.c: Likewise.
18895 * config/arm/bpabi.h: Likewise.
18896 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
18897 (__aeabi_drsub): Likewise.
18898 (__aeabi_dsub): Likewise.
18899 (__aeabi_dadd): Likewise.
18900 (__aeabi_ui2d): Likewise.
18901 (__aeabi_i2d): Likewise.
18902 (__aeabi_f2d): Likewise.
18903 (__aeabi_dmul): Likewise.
18904 (__aeabi_ddiv): Likewise.
18905 (__aeabi_cdrcmple): Likewise.
18906 (__aeabi_cdcmpeq): Likewise.
18907 (__aeabi_cdcmple): Likewise.
18908 (__aeabi_dcmpeq): Likewise.
18909 (__aeabi_dcmplt): Likewise.
18910 (__aeabi_dcmple): Likewise.
18911 (__aeabi_dcmpge): Likewise.
18912 (__aeabi_dcmpgt): Likewise.
18913 (__aeabi_dcmpun): Likewise.
18914 (__aeabi_d2iz): Likewise.
18915 (__aeabi_d2uiz): Likewise.
18916 (__aeabi_d2f): Likewise.
18917 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
18918 (__aeabi_frsub): Likewise.
18919 (__aeabi_fsub): Likewise.
18920 (__aeabi_fadd): Likewise.
18921 (__aeabi_ui2f): Likewise.
18922 (__aeabi_i2f): Likewise.
18923 (__aeabi_fmul): Likewise.
18924 (__aeabi_fdiv): Likewise.
18925 (__aeabi_cfrcmple): Likewise.
18926 (__aeabi_cfcmpeq): Likewise.
18927 (__aeabi_cfcmple): Likewise.
18928 (__aeabi_fcmpeq): Likewise.
18929 (__aeabi_fcmplt): Likewise.
18930 (__aeabi_fcmple): Likewise.
18931 (__aeabi_fcmpge): Likewise.
18932 (__aeabi_fcmpgt): Likewise.
18933 (__aeabi_fcmpun): Likewise.
18934 (__aeabi_f2iz): Likewise.
18935 (__aeabi_f2uiz): Likewise.
18936 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
18937 (__aeabi_uidivmod): New function or alias.
18938 (__aeabi_idivmod): Likewise.
18939 (__aeabi_idiv0): Likewise.
18940 (__aeabi_ldiv0): Likewise.
18941 (__aeabi_llsr): Likewise.
18942 (__aeabi_lasr): Likewise.
18943 (__aeabi_llsl): Likewise.
18944 (bpabi.S): Include it.
18945 * config/arm/libgcc-bpabi.ver: New file.
18946 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
18947 (LINK_SPEC): Remove.
18948 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
18950 * config/arm/t-bpabi: New file.
18951 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
18952 (TARGET_LIB_INT_CMP_BIASED): Likewise.
18954 2004-08-10 David Edelsohn <edelsohn@gnu.org>
18956 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
18957 * config/rs6000/rs6000.md (clrmemsi): New pattern.
18958 * config/rs6000/rs6000.c (expand_block_clear): New function.
18959 (expand_block_move): Convert alignment to bits. Use SImode and
18960 HImode for unaligned addresses if not STRICT_ALIGNMENT.
18962 2004-08-10 Caroline Tice <ctice@apple.com>
18964 * varasm.c (unlikely_section_label): New global variable.
18965 (unlikely_text_section_name): New global variable.
18966 (text_section): Remove alignment statement.
18967 (unlikely_text_section): Remove alignment statement; use
18968 unlikely_section_label rather than hard-coded string.
18969 (assemble_start_function): Initialize unlikely_section_label and
18970 unlikely_text_section_name; make sure cold section is properly
18971 aligned at start of function; output unlikely_section_label if
18974 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
18976 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
18977 * config/s390/s390.c (s390_canonicalize_comparison): New function.
18978 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
18979 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
18980 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
18981 ("*tmqi_mem"): Remove SUBREG from pattern.
18982 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
18983 ("*andsi3_cconly"): Likewise.
18985 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
18988 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
18990 2004-08-10 Janis Johnson <janis187@us.ibm.com>
18992 * doc/sourcebuild.texi (compat testing): Document available test
18993 framework commands. Use the preferred spelling of DejaGnu.
18995 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
18997 * lambda.h: Add matrix type, and prototypes for remainder of
18998 matrix and vector functions.
18999 (lambda_vector_mult_const): New function.
19000 (lambda_vector_negate): Ditto.
19001 (lambda_vector_add): Ditto.
19002 (lambda_vector_add_mc): Ditto.
19003 (lambda_vector_copy): Ditto.
19004 (lambda_vector_zerop): Ditto.
19005 (lambda_vector_equal): Ditto.
19006 (lambda_vector_min_nz): Ditto.
19007 (lambda_vector_first_nz): Ditto.
19008 (lambda_vector_matrix_mult): Ditto.
19009 * lambda-mat.c: New file.
19010 * Makefile.in (lambda-mat.o): New.
19012 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
19014 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
19015 after linking stmt into the program.
19016 (bsi_remove): Don't call modify_stmt.
19017 * tree-complex.c (update_complex_assignment,
19018 expand_complex_comparison): Call modify_stmt after changing the stmt.
19019 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
19021 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
19022 the stmt, and only if needed.
19023 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
19025 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
19026 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
19027 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
19028 (eliminate_redundant_computations): Don't pass an annotation. Call
19029 modify_stmt rather than setting the annotation directly.
19030 (record_equivalences_from_stmt): Remove unused local 'j'.
19031 (cprop_operand): Take a stmt rather than an annotation as a parameter.
19033 (cprop_into_stmt): Pass stmt rather than annotation.
19034 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
19035 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
19037 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
19039 2004-08-10 Jason Merrill <jason@redhat.com>
19041 PR middle-end/16948
19042 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
19045 2004-08-10 Geoffrey Keating <geoffk@apple.com>
19047 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
19050 2004-08-10 Roger Sayle <roger@eyesopen.com>
19052 * config/mips/mips.md: New reciprocal square root patterns that
19053 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
19055 2004-08-10 Paul Brook <paul@codesourcery.com>
19057 * config/arm/arm-protos.h (arm_set_return_address,
19058 thumb_set_return_address): Add prototypes.
19059 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
19060 * config/arm/arm.c (arm_compute_func_type,
19061 use_return_insn, arm_compute_save_reg0_reg12_mask,
19062 arm_compute_save_reg_mask, arm_output_function_prologue,
19063 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
19064 current_function_calls_eh_return.
19065 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
19067 (arm_set_return_address, thumb_set_return_address): New functions.
19068 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
19069 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
19070 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
19071 (epilogue): Use the stackadj register.
19072 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
19074 2004-08-10 Jakub Jelinek <jakub@redhat.com>
19077 * expr.c (move_by_pieces_ninsns): Add max_size argument.
19078 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
19079 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
19080 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
19081 but using MOVE_RATIO.
19082 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
19083 (can_store_by_pieces): Change max_size type to unsigned int.
19084 (store_by_pieces_1): Likewise. Pass max_size to
19085 move_by_pieces_ninsns.
19086 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
19087 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
19088 to move_by_pieces_ninsns.
19089 (STORE_BY_PIECES_P): Define.
19090 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
19091 to move_by_pieces_ninsns.
19092 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
19094 * config/i386/i386.h (CLEAR_RATIO): Define.
19096 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19098 * expr.c (expand_expr_real_1): Add back code that was not dead.
19100 2004-08-09 Andrew Pinski <apinski@apple.com>
19102 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
19103 which is found to be compatible before returning the aliasing set.
19105 2004-08-09 Daniel Jacobowitz <dan@debian.org>
19107 * ggc-zone.c (struct alloc_zone): Add statistics counters.
19108 (always_collect): New flag.
19109 (ggc_alloc_zone_1): Update statistics support. Don't include
19110 overhead in allocated counter.
19111 (sweep_pages): Update allocated counter for large pages. Don'y
19113 (ggc_collect_1): Always collect.
19114 (ggc_collect): Honor always_collect flag. Sum all zones to decide
19115 whether to collect.
19116 (SCALE, LABEL): New macros.
19117 (ggc_print_statistics): Add statistics support.
19119 2004-08-09 Roger Sayle <roger@eyesopen.com>
19121 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
19122 (init_expmed): Fix potential overrun problem with "all.reg".
19123 (expand_sdiv2_pow2): Add an alternate implementation for signed
19124 division, if the target provides a suitable conditional move insn.
19126 2004-08-09 Paul Brook <paul@codesourcery.com>
19127 Richard Henderson <rth@redhat.com>
19129 * unwind-dw2.c (uw_install_context_1): Update target saved stack
19132 2004-08-09 Geoffrey Keating <geoffk@apple.com>
19134 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
19135 Check DATA limit only if there's no AS limit. Ignore insanely
19137 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
19138 but take care that the AS limit isn't overrun.
19139 * doc/invoke.texi: Update documentation of min-heapsize parameter.
19141 2004-08-09 Jeff Law <law@redhat.com>
19143 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
19144 (tree-ssa-threadupdate.o): Add dependencies.
19145 * tree-ssa-threadupdate.c: New file.
19146 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
19147 (rewrite_vars_out_of_ssa): Remove prototype.
19148 (cleanup_tree_cfg): Returns a bool.
19149 * tree.h (thread_through_all_blocks): Prototype.
19150 * tree-outof-ssa.c (SSANORM_*): Move into here.
19151 (remove_ssa_form): Now static.
19152 (rewrite_vars_out_of_ssa): Kill.
19153 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
19154 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
19155 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
19156 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
19157 anything was changed.
19158 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
19159 from the PHI's annotation rather than the edge associated with
19161 * tree-ssa-dom.c (redirection_edges): Kill.
19162 (redirect_edges_and_update_ssa_graph): Kill.
19163 (tree_ssa_dominator_optimize): Do not reset forwardable flag
19164 for blocks anymore. Do not initialize redirection_edges.
19165 Call thread_through_all_blocks. Simplify code for cleanup
19166 of the CFG and iterating. No longer call cleanup_tree_cfg
19167 outside the iteration loop.
19168 (thread_across_edge): No longer mess with forwardable blocks.
19170 2004-08-09 Zack Weinberg <zack@codesourcery.com>
19172 * explow.c (memory_address): Use memory_address_p.
19173 * recog.c (general_operand): Likewise.
19174 * regrename.c: No need to define REG_OK_STRICT.
19176 2004-08-09 Steven Bosscher <stevenb@suse.de>
19178 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
19180 * gcse.c: Include timevar.h.
19181 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
19182 and global_copy_prop_count.
19183 (local_const_prop_count, local_copy_prop_count): New static globals.
19184 (gcse_main): Set the right timevar for each pass.
19185 (cprop_jump): Increment global_const_prop_count when a constant is
19186 propagated. Add "GLOBAL" to dump output.
19187 (cprop_insn): Increment global_const_prop_count when a constant is
19188 propagated, or global_copy_prop_count when a copy is propagated.
19189 (do_local_cprop): Likewise for local_const_prop_count and
19190 local_copy_prop_count.
19191 (one_cprop_pass): Initialize const/cprop counters to zero.
19192 Print out results of local and global const/cprop separately.
19193 (bypass_block): Break over-length line.
19194 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
19195 for bb-reorder.o and tracer.o.
19197 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19199 * Makefile.in (GTFILES): Remove stmt.c
19200 (stmt.o): Do not depend on gt-stmt.h.
19201 * emit-rtl.c (emit_line_note): Do not call
19202 set_file_and_line_for_stmt.
19203 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
19205 * function.c (free_after_parsing): Do not free STMT field.
19206 (allocate_struct_function): Do not call init_stmt_for_function.
19207 (assign_stack_temp_for_type): Do not accept values of keep
19209 (init_temp_slots): Do not initialize removed variables.
19210 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
19211 and X_VAR_TEMP_SLOT_LEVEL fields.
19212 * rtl.h (set_file_and_line_for_stmt): Remove.
19213 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
19214 struct stmt_status, cond_stack, case_stack, nesting_stack,
19215 nesting_depth, emit_locus, set_file_and_line_for_stmt,
19216 same_case_target_p, init_stmt_for_function, emit_nop,
19217 expand_start_cond, expand_start_elseif, expand_start_else,
19218 expand_elseif, expand_end_cond): Remove.
19219 (preserve_subexpressions_p): Remove references to CFUN->STMT.
19220 (expand_start_case, expand_end_case_type): Remove, merge into...
19221 (expand_case): ... this one, including other bits from
19222 expand_expr_real_1. Inline same_case_target_p. Turn members
19223 of CASE_STACK into local variables.
19224 (emit_case_bit_tests): Inline same_case_target_p.
19225 (add_case_node): Add HEAD argument, return new head of the list,
19226 do not handle default label here.
19227 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
19228 expand_start_elseif, current_nesting_level, expand_start_case,
19229 expand_end_case_type, expand_end_case, add_case_node,
19230 init_stmt_for_function, expand_elseif): Remove prototypes.
19231 (expand_case): Add prototype.
19233 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19235 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
19237 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19239 * expr.c (var_rtx): Remove.
19240 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
19241 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
19242 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
19244 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
19245 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
19246 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
19248 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
19249 Ayal Zaks <zaks@il.ibm.com>
19251 * common.opt (freschedule-modulo-scheduled-loops): New flag.
19252 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
19253 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
19254 when -freschedule-modulo-scheduled-loops flag is not specified.
19255 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
19256 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
19257 More accurate placing of insn in row of partial schedule.
19258 (ps_insn_find_column): New function.
19259 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
19260 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
19261 (schedule_region): Use sched_is_disabled_for_current_region_p.
19262 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
19264 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19266 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
19269 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19271 * config/i386/i386.c (ix86_expand_clrmem): Properly call
19272 gen_strset for 64bit target.
19274 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
19276 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
19278 2004-08-07 Jason Merrill <jason@redhat.com>
19280 Make return in memory explicit.
19281 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
19282 (assign_parm_find_data_types): Remove code for old front end
19283 invisible reference handling.
19284 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
19285 (expand_function_end): Likewise.
19286 * gimplify.c (gimplify_return_expr): Handle a dereferenced
19288 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
19289 (declare_return_variable): Handle DECL_BY_REFERENCE.
19290 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
19291 (cp_genericize_r): Use convert_from_reference.
19292 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
19293 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
19295 * c-common.c (c_warn_unused_result): Check TREE_USED before
19296 warning about a CALL_EXPR with an unused value.
19298 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19300 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
19301 to the compiler. Use -fshort-wchar by default.
19303 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
19305 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
19306 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
19308 * doc/invoke.texi (param): Document min-crossjump-insns.
19310 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
19313 * c.opt (Wmissing-field-initializers): New option.
19314 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
19315 * c-typeck.c (pop_init_level): Guard the missing field warning with
19316 warn_missing_field_initializers rather than extra_warnings.
19317 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
19318 some of the explanation from...
19319 (-Wextra): ...here. Say that the missing field warning can be
19320 seperately controlled by -Wmissing-field-initializers.
19322 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
19324 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
19325 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
19326 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
19327 * tree.def (ENTRY_VALUE_EXPR): Remove.
19329 2004-08-06 Jakub Jelinek <jakub@redhat.com>
19331 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
19332 the places where it is actually needed. Don't use repz; stosb
19333 for -Os with sufficiently small constant sizes.
19334 For sufficiently small repz; stos{l,q} repeat counts use a sequence
19335 of stos{l,q} instructions instead.
19337 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19339 PR tree-optimization/16807
19340 * loop-iv.c (dump_iv_info): Dump invariants correctly.
19341 (iv_subreg, iv_extend): Express value of invariant purely in
19344 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19346 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
19347 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
19349 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
19351 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
19352 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
19354 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
19355 pattern until reload is finished to allow better code generation
19356 and split them completely into separate instrunctions.
19357 (*andsi3_split): New pattern.
19359 2004-08-05 Mark Mitchell <mark@codesourcery.com>
19361 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
19362 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
19363 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19364 * tree.h (handle_dll_attribute): Declare. Test
19365 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19366 * c-common.h (c_determine_visibility): Declare.
19367 * c-common.c (c_determine_visibility): New function.
19368 * c-decl.c (finish_decl): Use it.
19369 (finish_function): Likewise.
19370 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
19371 zero, by default. Use #if, not #ifdef, to test it.
19372 * config/arm/arm.c (arm_attribute_table): Use
19373 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
19375 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
19376 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19378 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
19379 * config/i386/i386.c (ix86_attribute_table): Use
19380 handle_dll_attribute for dllimport/dllexport. Test
19381 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19382 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
19383 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19385 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
19387 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19389 * doc/extend.texi (dllexport): Clarify and correct documentation.
19390 (dllimport): Likewise.
19391 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
19392 handle_dll_attribute.
19394 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19396 * tree-ssa-loop-manip.c: New file.
19397 * Makefile.in (tree-ssa-loop-manip.o): Add.
19398 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
19400 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
19402 (tree_ssa_loop_done): Verify loop closed ssa form.
19403 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
19405 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19407 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
19408 pa_asm_output_aligned_local): New functions.
19409 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
19410 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
19411 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
19412 pa_asm_output_aligned_common.
19413 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19414 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
19415 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19416 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19417 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
19418 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19419 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19420 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
19423 2004-08-05 Andrew Pinski <apinski@apple.com>
19425 * objc/objc-act.c (build_objc_string_object): Mark the address
19426 expression as constant.
19428 2004-08-05 David Edelsohn <edelsohn@gnu.org>
19430 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
19431 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
19432 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
19434 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19436 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
19437 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
19438 out, and associated obsolete comments.
19440 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
19442 * tree.h (force_fit_type): Return a tree, take three flags.
19443 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
19444 TREE_CONSTANT_OVERFLOW here.
19445 (int_const_binop, const_binop): Adjust.
19446 (size_int_type): Do sign extension here.
19447 (fold_convert_const, optimize_bit_field_compare,
19448 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
19449 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
19450 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
19452 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19454 PR tree-optimization/16864
19455 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
19456 for ssa names without default_def.
19458 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
19460 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
19461 frame pointer, restore eax with an ebp-relative address.
19463 2004-08-04 Geoffrey Keating <geoffk@apple.com>
19466 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
19467 * c-common.h (make_rtl_for_local_static): Delete.
19468 * c-decl.c (shadow_tag_warned): Clean up comment.
19469 (finish_decl): Clean up spacing. Use set_user_assembler_name when
19470 appropriate. Don't pass asmspec to rest_of_decl_compilation.
19471 * c-semantics.c (make_rtl_for_local_static): Delete.
19472 * expr.c (init_block_move_fn): Use set_user_assembler_name.
19473 (init_block_clear_fn): Likewise.
19474 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
19475 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
19476 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
19477 * tree.h (make_decl_rtl): Remove second parameter.
19478 (set_user_assembler_name): New.
19479 * varasm.c (set_user_assembler_name): New.
19480 (make_decl_rtl): Remove second parameter. Update callers in many
19483 2004-08-05 Adam Nemet <anemet@lnxw.com>
19485 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
19486 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
19488 * gthr-lynx.h: New file.
19489 * config/lynx-ng.h: Remove file.
19490 * config/lynx.h: Update to LynxOS 4.0.
19491 * config/t-lynx: New file.
19492 * config/i386/lynx-ng.h: Remove file.
19493 * config/i386/lynx.h: Update to LynxOS 4.0.
19494 * config/rs6000/lynxbase.h: Remove file.
19495 * config/rs6000/lynx.h: Update to LynxOS 4.0.
19496 * config/rs6000/t-lynx: New file.
19497 * doc/install.texi (Options specification): Remove reference to
19498 LynxOS from systems where --with-gnu-as makes a difference.
19500 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19502 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
19504 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
19506 (c_cpp_builtins): Call it.
19507 * doc/cpp.texi: Update.
19509 2004-08-04 David Edelsohn <edelsohn@gnu.org>
19511 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
19514 2004-08-04 Jan Hubicka <jh@suse.cz>
19516 * basic-block.h (profile_staus): New global variable.
19517 * cfg.c (profile_status): Declare.
19518 (check_bb_profile): Break out from ....; use profile_status
19519 (dump_flow_info): ... here.
19520 * cfgbuild.c (find_basic_blocks): Set profile_status.
19521 * cfgexpand.c (tree_expand_cfg): Likewise.
19522 * predict.c (estimate_probability): Likewise.
19523 * profile.c (branch_prob): Likewise.
19524 * tree-cfg.c (build_tree_cfg): Likewise.
19525 (dump_function_to_file): Use check_bb_profile.
19526 * tree-pretty-print (dump_bb_header): Likewise.
19527 * tree-profile.c (do_tree_profiling): Cleanup.
19529 2004-08-04 Zack Weinberg <zack@codesourcery.com>
19531 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
19532 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
19533 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
19534 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
19535 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
19536 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
19537 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
19538 (ggc-none.o, errors.o): Move rule to generators section;
19539 correct dependencies.
19540 (min-insn-modes.o): Move rule to generators section; remove
19541 unnecessary explicit command; correct dependencies.
19542 (print-rtl.o, print-rtl1.o): Correct dependencies.
19543 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
19544 (mostlyclean): Update.
19546 * errors.c: Include bconfig.h not config.h. Correct comment.
19547 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
19548 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
19549 * print-rtl.c: Don't include tm_p.h.
19551 * rtl.h: Move forward-decl of struct function down where it's
19552 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
19553 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
19555 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19556 Jeff Law <law@redhat.com>
19558 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
19559 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
19560 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
19561 manipulate the duplicated ssa names.
19562 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
19563 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
19564 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
19566 (release_ssa_name): Do not release ssa names that may have multiple
19568 * tree.h (release_ssa_name_force, mark_for_rewrite,
19569 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
19570 marked_ssa_names): Declare.
19571 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
19572 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
19573 Update call to rewrite_ssa_into_ssa.
19575 2004-08-04 Mark Mitchell <mark@codesourcery.com>
19577 * defaults.h (TARGET_DECLSPEC): New macro.
19578 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
19579 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
19580 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
19581 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
19582 __declspec support.
19583 (TARGET_DECLSPEC): Define.
19584 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
19585 __declspec support.
19586 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
19587 __declspec support.
19588 (TARGET_DECLSPEC): Define.
19589 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
19590 __declspec support.
19591 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
19593 * doc/tm.texi (TARGET_DECLSPEC): Document.
19595 * doc/extend.texi: Fix typo in comment.
19597 2004-08-04 Paul Brook <paul@codesourcery.com>
19599 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19600 (TARGET_CXX): Use it.
19601 * target.h (struct gcc_target): Add cdtor_returns_this.
19602 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
19603 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19604 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
19606 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
19608 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
19609 low/high pair. Do range checking directly.
19610 (interpret_integer): Adjust.
19612 2004-08-04 Nick Clifton <nickc@redhat.com>
19614 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
19616 * doc/invoke.texi: Document this new switch and also the -mrenesas
19619 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
19621 * cfglayout.c (insn_locators_initialize): Update the current
19622 location before initializing a location.
19624 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19626 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
19627 (dbxout_function_end): Return after emitting the "Lscope" symbol
19628 under the same conditions that this function formerly wasn't called.
19629 Add explanatory comments.
19632 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
19636 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
19637 functions, broken out of dbxout_block.
19638 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
19639 stabs too, if it contains symbols. Use the begin_label and
19640 the Lscope label (emitted by dbxout_function_end) for the
19641 range of this block.
19643 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
19645 * doc/install.texi: Update autoconf version requirements.
19647 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19649 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
19650 * recog.c (general_operand, immediate_operand, nonmemory_operand)
19651 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
19652 * regclass.c (record_reg_classes): Likewise.
19653 * reload.c (find_reloads): Likewise.
19654 * reload1.c (reload): Likewise.
19656 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19658 * gensupport.c (init_md_reader_args_cb): Renamed from
19659 init_md_reader_args. Add third option, callback function for
19660 parsing program-specific options. Add diagnosis of incorrect
19661 number of input files.
19662 (init_md_reader): Fold into init_md_reader_args_cb.
19663 (init_md_reader_args): Now a thin wrapper around
19664 init_md_reader_args_cb.
19665 * gensupport.h: Update prototypes.
19667 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
19668 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
19669 * genrecog.c: No need to diagnose lack of an input file;
19670 init_md_reader_args will handle it.
19671 * genconditions.c: Likewise, and use init_md_reader_args.
19672 * genconstants.c: Likewise, and no need to call read_md_rtx.
19674 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
19676 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
19679 2004-08-03 Mike Stump <mrs@apple.com>
19681 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
19683 * doc/invoke.texi (Darwin Options): Update to reflect above.
19685 2004-08-03 Roger Sayle <roger@eyesopen.com>
19687 PR middle-end/16790
19688 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
19689 truncations, not just global truncations.
19691 2004-08-03 Andrew Pinski <apinski@apple.com>
19694 * loop-iv.c (simplify_using_assignment): Initialize lhs.
19696 2004-08-03 Paul Brook <paul@codesourcery.com>
19698 * gcc/doc/install.texi: Document MPFR requirement.
19700 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
19702 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
19703 and mmap() explicitly instead of relying on preset autoconf cache
19705 * configure: Regenerate.
19707 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19710 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
19712 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
19713 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
19716 * config/i386/t-gmm_malloc: New file.
19717 * config/i386/t-pmm_malloc: Likewise.
19719 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
19721 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19722 Tanguy Fautrà <tfautre@pandora.be>
19724 * config/i386/pmm_malloc.h: New file.
19726 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
19728 * config/i386/gmm_malloc.h: New file.
19730 2004-08-03 Dale Johannesen <dalej@apple.com>
19732 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
19733 * c-common.c: Include opts.h.
19734 (c_common_get_alias_set): Fix check for a single input file.
19735 * toplev.c: Remove current_file_decl.
19738 2004-08-03 Mark Mitchell <mark@codesourcery.com>
19740 * config.gcc (arm*-*-symbianelf*): New target.
19741 * config/arm/symbian.h: New file.
19743 * gthr-gnat.c: Add visibility #pragmas.
19744 * gthr-gnat.h : Likewise.
19745 * gthr.h: Likewise.
19746 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
19747 (__ffsDI2): Likewise.
19748 (__clzSI2): Likewise.
19749 (__ctzSI2): Likewise.
19750 (__ctzDI2): Likewise.
19751 (__popcountSI2): Likewise.
19752 (__popcountDI2): Likewise.
19753 (__paritySI2): Likewise.
19754 (__parityDI2): Likewise.
19755 * libgcc2.h: Add visibility #pragmas.
19756 (__clzDI2): Add prototype.
19757 (__clzSI2): Likewise.
19758 (__ctzSI2): Likewise.
19759 (__ffsDI2): Likewise.
19760 (__ffsSI2): Likewise.
19761 (__ctzDI2): Likewise.
19762 (__popcountSI2): Likewise.
19763 (__popcountDI2): Likewise.
19764 (__paritySI2): Likewise.
19765 (__parityDI2): Likewise.
19766 * unwind-dw2-fde.h: Add visibility #pragmas.
19767 * unwind.h: Likewise.
19769 2004-08-03 David Edelsohn <edelsohn@gnu.org>
19770 Dale Johannesen <dalej@apple.com>
19771 Roger Sayle <roger@eyesopen.com>
19773 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
19774 constants more accurately. Adjust costs for FMA instructions.
19775 Add cases for most logical and float operations. Recurse into
19778 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19780 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
19782 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
19784 * ra-build.c (conflicts_between_webs): For webs that cross a call add
19785 conflicts to regs_invalidated_by_call.
19787 2004-08-03 Paul Brook <paul@codesourcery.com>
19789 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
19791 2004-08-03 Jan Hubicka <jh@suse.cz>
19793 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
19794 ARRAY_REF argument.
19796 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19798 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
19799 arm968es, arm10e, arm1020e, arm1022e.
19800 * invoke.texi: Update list of ARM cores.
19801 * arm-tune.md: Regenerate.
19803 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19805 * arm/gentune.sh: New file.
19806 * arm/t-arm: New file.
19807 * arm/arm-tune.md: New file (autogenerated).
19808 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
19809 * arm.md (attribute tune): Delete. Include arm-tune.md.
19811 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
19813 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
19814 penultimate parameter. All callers adjusted.
19815 (struct prefix_list): Remove used_flag_ptr.
19816 (find_a_file): Do not set *pl->used_flag_ptr.
19817 (warn_B, warn_std_ptr): Remove.
19819 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
19820 Mostafa Hagog <mustafa@il.ibm.com>
19822 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
19824 2004-08-02 Geoffrey Keating <geoffk@apple.com>
19826 * dwarf2out.c (output_call_frame_info): Don't change data format
19827 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
19828 label. Use 'true' not '1'.
19829 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
19832 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19834 * gdbinit.in: Reflect previous changes to rtunion_def.
19836 2004-08-02 Roger Sayle <roger@eyesopen.com>
19838 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
19839 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
19841 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19843 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
19845 * langhooks.h (lang_hooks::builtin_function): Rename parameter
19846 from "class" to "bt_class".
19848 2004-08-02 Paul Brook <paul@codesourcery.com>
19850 PR rtl-optimization/15068
19851 * flow.c (init_propagate_block_info): Check condition is reversible.
19853 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19855 * gengtype.h (options::info): Change type to const char *.
19856 (enum gc_used_enum): Move out of struct type scope.
19857 * gengtype.c (create_option): Convert initializer for option::info to
19859 (adjust_field_type, walk_type, write_func_for_structure,
19860 write_root, write_roots): Remove pointless cast.
19862 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
19864 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
19866 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19868 * rtl.h (union rtunion_def): Have all members start with the
19870 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
19871 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
19872 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
19873 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
19875 * gengtype.c (adjust_field_rtx_def): Likewise.
19876 * rtlanal.c (loc_mentioned_in_p): Likewise.
19878 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
19880 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
19881 Replace uses of mips/elf64.h with mips/elf.h
19882 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
19883 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
19884 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
19885 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
19886 (HANDLE_SYSV_PRAGMA): Delete.
19887 (ASM_OUTPUT_DEF): Fix formatting.
19888 * config/mips/elf64.h: Delete.
19890 2004-08-01 Zack Weinberg <zack@codesourcery.com>
19892 * config/ia64/ia64.c (got_symbolic_operand): Do require a
19893 symbol+offset operand to have its offset be zero mod 0x3fff
19894 when GOT entries are in use. Clarify logic in SYMBOL_REF
19895 case. Clarify comments.
19896 (ia64_expand_load_address): Split a symbol+offset load when
19897 the offset is nonzero mod 0x3fff, not 0x1fff.
19899 2004-08-01 Geoffrey Keating <geoffk@apple.com>
19901 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
19902 if trying to *store* to a non-offsettable address.
19903 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
19904 a nonoffsettable address.
19905 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
19907 (movti_string): Don't move GPRs to a nonoffsettable address.
19908 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
19910 2004-08-02 Ben Elliston <bje@au.ibm.com>
19913 * config/rs6000/altivec.h: Replace typeof with __typeof__.
19915 2004-08-01 Richard Henderson <rth@redhat.com>
19917 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
19918 variable sized types.
19920 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19922 * doc/invoke.texi: In the MIPS options section, remove the passage
19923 saying that -mexplicit-relocs is usually disabled for -mabicalls
19924 -fno-unit-at-a-time.
19925 * config/mips/mips.c (override_options): Remove the code that enforced
19928 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19930 * config/mips/mips.md (cprestore): Provide two alternatives, one for
19931 an in-range offset and one for an out-of-range offset. Wrap the latter
19932 in .set macro/.set nomacro if it's inside a .set nomacro block.
19934 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19936 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
19937 (mips_restore_gp): Declare.
19938 * config/mips/mips.c (mips_add_offset): Add a scratch register
19939 argument. Reimplement in rtl only, reusing MIPS16 logic from
19940 mips_output_mi_thunk.
19941 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
19942 to mips_add_offset.
19943 (mips_gp_save_slot): Delete.
19944 (mips_restore_gp): New function.
19945 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
19946 * config/mips/mips.md (exception_receiver): Turn into a
19947 define_insn_and_split. Use mips_restore_gp to do the split.
19948 (call_internal, call_value_internal, call_value_multiple_internal): Use
19949 mips_restore_gp to restore $gp.
19951 2004-07-31 Andrew Pinski <apinski@apple.com>
19954 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
19956 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
19958 * c-decl.c (diagnose_mismatched_decls): Give error for external
19959 redeclaration of identifier declared with no linkage, not just
19960 warning with -Wtraditional. Do not check DECL_CONTEXT to give
19961 error for redeclaration with no linkage.
19963 2004-07-30 Geoffrey Keating <geoffk@apple.com>
19964 Fariborz Jahanian <fjahanian@apple.com>
19966 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
19967 non-offsettable addresses even for DImode.
19968 (rs6000_split_multireg_move): Cope with non-offsettable addresses
19969 being moved into multiple GPRs.
19971 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
19973 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
19974 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
19976 * config/rs6000/darwin-ldouble.c (isless): New macro.
19978 (nonfinite): New macro.
19980 (_xlqadd): Completely rewrite.
19981 (_xlqmul): Correct overflow handling.
19982 (_xlqdiv): Correct overflow handling.
19983 * config/rs6000/darwin-ldouble-format: New file.
19985 2004-07-30 Roger Sayle <roger@eyesopen.com>
19986 Richard Henderson <rth@redhat.com>
19988 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
19989 9 into the equivalent lea instruction.
19991 2004-07-30 Richard Henderson <rth@redhat.com>
19993 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
19994 with DECL_INITIAL if fb_lvalue.
19995 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
19996 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
19998 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
20000 2004-07-30 Diego Novillo <dnovillo@redhat.com>
20002 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
20003 pointer escapes through a function call, assume that the
20004 callee will dereference it.
20005 (add_pointed_to_var): Assume that VALUE is always an
20007 (collect_points_to_info_r): Only call add_pointed_to_var if
20008 the value is an ADDR_EXPR.
20010 2004-07-30 Diego Novillo <dnovillo@redhat.com>
20012 * tree-ssa-alias.c (create_alias_map_for): Do not get the
20013 alias set of the inner type of ARRAY_TYPEs.
20015 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20017 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
20018 setting a non-register to UNDEFINED right before the call to
20021 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
20023 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
20025 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20027 * tree-ssa.c (verify_flow_sensitive_alias_info): When
20028 comparing points-to sets of different pointers, make sure the
20029 second pointer is actually referenced in the code.
20031 2004-07-29 Zack Weinberg <zack@codesourcery.com>
20033 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
20034 (got_symbolic_operand): Remove unreachable code.
20035 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
20036 setjmp_operand; add entry for tls_symbolic_operand.
20037 * config/ia64/ia64-protos.h: Remove all prototypes of
20038 predicate functions.
20040 2004-07-29 Mark Mitchell <mark@codesourcery.com>
20042 * c-common.h (lang_post_pch_load): New variable.
20043 * c-pch.c (lang_post_pch_load): Define it.
20044 (c_common_read_pch): Use it.
20045 * cgraphunit.c (record_call_1): Give the front end a chance to
20046 record additional needed entities when a variable is marked as
20048 * tlink.c (recompile_files): Robustify.
20049 (scan_linker_output): If a symbol is assigned to a file,
20050 but after recompilation is not present there, issue an error
20053 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20055 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
20056 Take orig_loop argument and pass it to set_level.
20057 (schedule_sm): Pass the correct orig_loop to force_move_till.
20059 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20061 * cfgloop.c (update_latch_info): Update dominator of the new block.
20062 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
20064 * dominance.c (verify_dominators): Check that the dominance tree is
20066 (recount_dominator): Ignore unreachable blocks.
20067 (iterate_fix_dominators): Cleanup old dominance information before
20070 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20072 * tree-ssa-operands.c (get_expr_operands): Revert changes
20073 to ADDR_EXPR processing introduced by:
20074 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20075 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
20077 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
20079 * doc/implement-c.texi: Add C90 subclause references. Point to
20080 preprocessor documentation instead of duplicating it. Add points
20081 only present in C90. Fill in documentation for all points.
20083 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20085 * pa.c (output_movb): Correct typo.
20087 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
20089 * ra.h (single_reg_in_regclass): Declare.
20090 * ra.c (single_reg_in_regclass): Define.
20091 (first_hard_reg): New.
20092 (init_ra): Initialize single_reg_in_regclass.
20093 * ra-colorize.c (ok_class): New.
20094 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
20096 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
20098 * gcov-io.h: Allow zero tag as EOF indicator.
20099 (gcov_is_eof): Remove.
20100 (gcov_truncate): Remove.
20101 * gcov-io.c (gcov_seek): Always SEEK_SET.
20102 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
20104 * coverage.c (read_counts_file): Don't use gcov_is_eof.
20105 * gcov-dump.c (dump_file): Likewise.
20106 * gcov.c (read_graph_file, read_count_file): Likewise.
20108 * c-decl.c (complete_array_type): Don't gratuitously copy
20109 maxindex. Check it always has a type.
20111 2004-07-29 Steven Bosscher <stevenb@suse.de>
20113 * rtl.c (currently_expanding_to_rtl): New.
20114 * rtl.h (currently_expanding_to_rtl): Export it.
20115 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
20117 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
20119 * config/sh/sh.c: Replace rtx_equal_function_value_matters
20120 with currently_expanding_to_rtl.
20121 * config/sh/sh.md: Likewise.
20122 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
20124 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
20126 Introduce sh2a support.
20127 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
20128 * config.gcc: Build multilibs for sh2a and sh2a-single by
20130 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
20131 default. Split their tests out of the corresponding SH4
20133 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
20134 multilibs for SH2a.
20135 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20136 * config.gcc: Handle sh2a multilibs and cpu selection.
20137 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
20138 * config/sh/t-mlib-sh2a: New.
20139 * config/sh/t-mlib-sh2a-nofpu: New.
20140 * config/sh/t-mlib-sh2a-single: New.
20141 * config/sh/t-mlib-sh2a-single-only: New.
20142 2004-07-09 Nick Clifton <nickc@redhat.com>
20144 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
20145 -ml and -m2a are used together.
20146 2004-03-23 DJ Delorie <dj@redhat.com>
20147 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
20148 when we have a double-sized FPU.
20149 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
20150 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
20152 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
20153 -msh2a-single and -msh2a-single-only
20154 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
20155 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
20157 2004-02-20 DJ Delorie <dj@delorie.com>
20158 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
20159 2004-02-20 Fred Fish <fnf@redhat.com>,
20160 Corinna Vinschen <vinschen@redhat.com>
20161 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
20162 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
20163 2004-02-18 DJ Delorie <dj@redhat.com>
20164 * config/sh/sh.c (broken_move): Add support for movi20.
20165 * config/sh/sh.h: Likewise.
20166 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
20167 * config/sh/sh.md (udivsi3_sh2a): New.
20168 (udivsi3): Call it.
20169 (divsi3_sh2a): New.
20172 (ashlsi3_sh2a): New.
20173 (ashrsi3_sh2a): New.
20174 (lshrsi3_sh2a): New.
20175 (movsi_i): Disable for sh2a.
20176 (movsi_ie): Add movi20.
20177 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
20178 sh2a, for -m2a-nofpu mode.
20179 2004-02-13 DJ Delorie <dj@redhat.com>
20180 * config/sh/lib1funcs.asm: Handle double vs single better.
20181 * config/sh/sh.h: Likewise.
20182 2004-02-09 DJ Delorie <dj@redhat.com>
20183 * config/sh/crt1.asm: Add support for sh2a.
20184 * config/sh/elf.h: Likewise.
20185 * config/sh/lib1funcs.asm: Likewise.
20186 * config/sh/sh.c: Likewise.
20187 * config/sh/sh.md: Likewise.
20188 * config/sh/sh.h: Likewise.
20189 * config/sh/t-sh: Likewise.
20191 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20193 * config/frv/frv.md (movqi_internal, movhi_internal,
20194 movsi_internal): Add backup alternatives for memory inputs.
20196 2004-07-28 Matt Austern <austern@apple.com>
20198 * config/darwin.c (darwin_one_byte_bool): New global variable.
20199 * config/darwin.h (darwin_one_byte_bool): Declare.
20200 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
20201 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
20202 value of darwin_one_byte_bool.
20203 * doc/invoke.texi: Document -mone-byte-bool flag.
20205 2004-07-28 Eric Christopher <echristo@redhat.com>
20207 * c-common.c (c_common_unsafe_for_reeval): Delete.
20208 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
20209 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
20210 * calls.c (fix_unsafe_tree): Delete.
20211 (expand_call): Delete code which used above.
20212 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
20213 * expr.c (expand_expr_real_1): Ditto.
20214 * fold-const.c (non_lvalue): Ditto.
20215 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20216 (lhd_unsafe_for_reeval): Ditto.
20217 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
20218 * langhooks.h (unsafe_for_reeval): Ditto.
20219 (unsave_expr_now): Adjust comment.
20220 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
20221 (estimate_num_insns_1): Ditto.
20222 * tree-pretty-print.c (dump_generic_node): Ditto.
20223 * tree.c (expr_align): Ditto.
20224 (unsave_expr): Delete.
20225 (unsafe_for_reeval): Ditto.
20226 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
20227 * tree.def (UNSAVE_EXPR): Delete.
20228 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20230 2004-07-28 Zack Weinberg <zack@codesourcery.com>
20232 * tree.h (enum tls_model): Move ...
20233 * coretypes.h: ... here.
20235 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20237 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
20239 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20241 * cse.c (validate_canon_reg): New function, split out from...
20242 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
20244 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20246 * tree-ssa-alias.c (maybe_create_global_var): Don't just
20247 return if .GLOBAL_VAR has been created.
20249 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20251 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
20252 every variable that may have aliases, not just tags.
20254 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
20256 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
20257 move_from_CR_eq_bit.
20258 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
20261 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
20264 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
20265 output_e500_flip_eq_bit.
20267 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
20268 output_e500_flip_eq_bit.
20269 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
20270 output_e500_flip_eq_bit.
20271 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
20272 (print_operand): case D. Get to EQ bit.
20274 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20276 * gcov.c (function_summary): Add missing \n.
20278 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20280 Introduce sh4a support.
20281 * config.gcc: Handle sh4a multilibs and cpu selection.
20282 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
20283 * config/sh/t-mlib-sh4a: New.
20284 * config/sh/t-mlib-sh4al: New.
20285 * config/sh/t-mlib-sh4a-nofpu: New.
20286 * config/sh/t-mlib-sh4a-single: New.
20287 * config/sh/t-mlib-sh4a-single-only: New.
20288 2004-02-20 DJ Delorie <dj@redhat.com>
20289 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
20290 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
20291 2003-08-22 Eric Christopher <echristo@redhat.com>
20292 * config/sh/sh4a.md: Update for chip errata.
20293 2003-08-07 Eric Christopher <echristo@redhat.com>
20294 * config/sh/sh4a.md: New file. sh4a processor description.
20295 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
20296 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
20298 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
20299 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
20300 * doc/invoke.texi (SH Options): Document -m4al.
20301 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
20302 * config/sh/sh.c (expand_block_move): Remove commented-out code
20303 checked in by mistake.
20304 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
20305 single elements from SFmode vectors.
20306 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
20308 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
20309 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
20310 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
20311 sh_fsca_int2sf): Remove variable declarations.
20312 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20313 sh_fsca_int2sf): New functions.
20314 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
20315 sh_fsca_int2sf_rtx): New static variables.
20316 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
20317 sh_fsca_int2sf): Declare.
20318 * config/sh/sh.md: Adjust.
20319 * doc/invoke.texi (SH Options): Document new options.
20320 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
20321 compatibility from SH4 code.
20322 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
20323 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
20325 (memory_movsrc_operand): Renamed to...
20326 (unaligned_load_operand): ... this. Simplified.
20327 * config/sh/sh.h (PREDICATE_CODES): Adjust.
20328 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
20329 input operand to SImode, and adjust the others. Introduce
20330 post-increment by peephole.
20331 * config/sh/sh.c (expand_block_move): Give the target address the
20332 same mode as the temp reg.
20333 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
20335 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
20336 Introduce support for SH4a.
20337 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
20338 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
20339 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20340 sh_fsca_int2sf): New.
20341 (sh_init_builtins): Initialize them.
20342 (print_operand): Support `d'.
20343 (expand_block_move): Use movua if src is misaligned.
20344 (memory_movsrc_operand): New.
20345 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
20346 and one of the SH4 macros.
20347 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
20348 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
20349 SELECT_SH4A_SINGLE): New.
20350 (TARGET_NONE): Add SH4A_BIT.
20351 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
20352 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
20353 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
20354 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
20355 (enum processor_type): Added PROCESSOR_SH4A.
20356 (PREDICATE_CODES): Add memory_movsrc_operand.
20357 * config/sh/sh.md: Removed unused variables.
20358 (attr cpu): Add sh4a.
20359 (attr type): Add movua, fsrra and fsca.
20360 (prefetch): New, for SH4.
20361 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
20362 (toggle_sz): Set type to fp.
20363 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
20364 (movua, extv, extzv): New.
20365 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
20366 and 4a-single-only.
20368 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20370 * tree-optimize.c (init_tree_optimization_passes): Schedule
20371 pass_may_alias right after the program is renamed into SSA.
20372 * tree-pass.h (PROP_alias): Define.
20373 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
20374 * tree-sra.c (pass_sra): Likewise.
20375 * tree-ssa-ccp.c (pass_ccp): Likewise.
20376 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
20377 * tree-ssa-dce.c (pass_dce): Likewise.
20378 * tree-ssa-dom.c (pass_dominator): Likewise.
20379 * tree-ssa-dse.c (pass_dse): Likewise.
20380 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
20381 * tree-ssa-loop-ch.c (pass_ch): Likewise.
20382 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20383 * tree-ssa-pre.c (pass_pre): Likewise.
20384 * tree-tailcall.c (pass_tail_recursion): Likewise.
20385 * tree-ssa.c (pass_redundant_phi): Likewise.
20386 * tree-ssa-alias.c (aliases_computed_p): Remove.
20388 (init_alias_info): Do not mark all type tags for renaming
20390 Clear may_aliases from every symbol.
20391 (setup_pointers_and_addressables): If a pointer has not been
20392 dereferenced and it had a type tag, clear it and mark the old
20395 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20397 PR tree-optimization/16705
20398 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
20401 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20403 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
20406 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
20407 don't make another one.
20409 PR optimization/15077
20410 * function.h (struct function): Add field saved_static_chain_decl.
20411 Fix comment for static_chain_decl.
20412 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
20413 * tree-inline.h (save_body): Add new arg.
20414 * tree-optimize.c (tree_rest_of_compilation): Handle saving
20417 2004-07-27 Richard Henderson <rth@redhat.com>
20419 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
20420 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
20421 is_gimple_addressable.
20422 * tree-gimple.c (is_gimple_addressable): Rename from
20423 is_gimple_addr_expr_arg; accept INDIRECT_REF.
20424 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
20425 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
20426 rename to is_gimple_addressable.
20428 2004-07-28 Alan Modra <amodra@bigpond.net.au>
20430 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
20432 2004-07-27 Richard Henderson <rth@redhat.com>
20434 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
20437 2004-07-27 Zack Weinberg <zack@codesourcery.com>
20439 * libgcc2.c: Change all conditionals testing
20440 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
20441 * libgcc2.h: Likewise.
20442 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
20443 TYPE_PRECISION of float80_type to 80.
20444 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
20445 of fpreg_type and float80_type to 80.
20446 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
20447 * config/m68k/netbsd-elf.h:
20448 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
20449 to evaluate to 80 whenever they would formerly have evaluated to 96.
20450 * config/i386/sco5.h: Remove unnecessary redefinition of
20451 LONG_DOUBLE_TYPE_SIZE.
20452 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
20453 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
20454 XFmode, with a bitsize of 80. Update commentary.
20455 * config/ia64/ia64-modes.def: Likewise.
20456 * config/m68k/m68k-modes.def: Likewise.
20458 2004-07-27 Steven Bosscher <stevenb@suse.de>
20460 * cfgexpand.c (tree_expand_cfg): Fix comment.
20462 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
20463 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
20465 (prepare_function_start): Don't set rtx_equal_function_value_matters.
20466 * integrate.c (copy_rtx_and_substitute): Don't test for it.
20467 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
20468 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
20469 here again. Update leading comment.
20470 * rtl.c (rtx_equal_function_value_matters): Remove.
20471 (rtx_equal_p): Don't test for it.
20472 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
20475 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
20476 * rtl.c (note_insn_name): Likewise.
20477 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
20478 * final.c (final_scan_insn): Likewise.
20480 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
20481 * passes.c (rest_of_handle_eh): Do it here.
20483 * stmt.c (struct nesting): Remove struct nesting block member.
20484 (struct stmt_status): Remove x_block_start_count field.
20485 (current_block_start_count): Remove.
20487 2004-07-27 Brian Booth <bbooth@redhat.com>
20489 * tree-optimize.c (register_one_dump_file): Update condition that uses
20490 static_pass_number.
20491 (dup_pass_1): Replace with...
20492 (next_pass_1): This.
20493 (NEXT_PASS): Call next_pass_1.
20494 (DUP_PASS): Remove.
20495 (init_tree_optimization_passes): Remove uses of DUP_PASS.
20496 (execute_one_pass): Update condition that uses
20497 static_pass_number.
20498 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
20501 2004-07-27 Nick Clifton <nickc@redhat.com>
20503 * config/m32r/m32r.c: Include integrate.h in order to get the
20504 prototype for get_hard_reg_initial_val().
20506 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
20507 and tidy up indentation.
20508 (final_presence_set): Use absence_set instead, so that if there is
20509 nothing in the "o" pipe the "s" pipe can be scheduled.
20511 2004-07-27 Diego Novillo <dnovillo@redhat.com>
20513 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
20514 don't have PT_VARS nor PT_MALLOC set.
20515 Clear name tag from pointers that have not been dereferenced.
20516 (set_pt_anything, set_pt_malloc): Forward declare.
20517 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
20518 not type compatibility when determining if a pointer can be
20521 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
20523 * expr.h (canonicalize_condition, get_condition): Add an int argument.
20524 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
20525 it to check whether the condition is still valid at the jump insn.
20526 * ifcvt.c (noce_get_condition): Likewise.
20527 (noce_get_alt_condition): Update call to canonicalize_condition.
20528 * loop-iv.c (simplify_using_initial_values): Update call to
20529 get_condition. Remove FIXME.
20530 (check_simple_exit): Update call to get_condition.
20531 * loop-unswitch.c (may_unswitch_on): Likewise.
20532 * loop.c (check_dbra_loop): Likewise.
20533 (canonicalize_condition, get_condition): Add an argument to say whether
20534 the condition must still be valid at INSN.
20535 (get_condition_for_loop): Update call to get_condition. Require that
20536 the condition be valid at INSN.
20537 * predict.c (estimate_probability): Update call to get_condition.
20538 Remove unused earliest parameter.
20539 (expected_value_to_br_prob): Update call to canonicalize_condition.
20541 2004-07-26 Eric Christopher <echristo@redhat.com>
20543 * tree-dfa.c (add_referenced_var): Register initializers of global
20546 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
20548 * config/i386/i386.c (function_arg): Always treat 8-
20549 and 16-byte wide vectors the same, even if MMX/SSE
20551 (contains_128bit_aligned_vector_p): Add comment.
20553 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
20555 * ra.h (enum node_type): Rename to:
20556 (enum ra_node_type).
20557 * ra-colorize.c: Likewise.
20559 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20561 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
20562 after simplifying the jump.
20564 2004-06-26 Richard Henderson <rth@redhat.com>
20566 * calls.c (combine_pending_stack_adjustment_and_call): Make
20567 preferred_unit_stack_boundary argument unsigned. Make
20568 unadjusted_alignment unsigned.
20569 (expand_call): Make preferred_stack_boundary and
20570 preferred_unit_stack_boundary variables unsigned.
20571 * function.c (assign_stack_local_1): Make alignment unsigned.
20572 * function.h (struct function): Make stack_alignment_needed,
20573 preferred_stack_boundary unsigned.
20574 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
20575 (ix86_compute_frame_layout): Make stack_alignment_needed,
20576 preferred_alignment variables unsigned.
20577 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
20579 2004-07-26 Tom Tromey <tromey@redhat.com>
20581 * tree.h: Fix typo in comment.
20583 2004-07-26 Daniel Jacobowitz <dan@debian.org>
20586 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
20587 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
20588 (ggc_free): Remove incorrect freeing.
20589 (sweep_pages): Advance PP for large pages. Fix indentation.
20591 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20593 PR rtl-optimization/16643
20594 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
20595 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
20596 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
20597 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
20598 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
20599 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20600 * rtl.h (tracer): Add a flags parameter.
20601 * tracer.c (tracer): Pass it to cfg_layout_initialise.
20602 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
20603 (rest_of_handle_reorder_blocks): Update calls to tracer and
20604 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
20605 (rest_of_handle_tracer): Pass 0 to tracer.
20606 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
20608 2004-07-25 David Edelsohn <edelsohn@gnu.org>
20611 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
20614 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
20616 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
20617 (BINFO_BASE_ACCESS): Adjust.
20618 (BINFO_BASE_ACCESS_APPEND): New.
20619 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
20620 * dbxout.c (dbxout_type): Adjust binfo access accessing.
20621 * dwarf2out.c (gen_member_die): Likewise.
20622 * tree-dump.c (deque_and_dump): Likewise.
20624 2004-07-26 Falk Hueffner <falk@debian.org>
20626 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
20629 2004-07-25 Roger Sayle <roger@eyesopen.com>
20631 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
20632 value off of the stack if TARGET_USE_FFREEP.
20634 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20636 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
20637 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
20638 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
20639 check on invocation of XRESIZEVEC ().
20641 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20643 * c-common.c (disable_builtin_function): Rename variable n to
20644 new_disabled_builtin.
20645 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
20646 Rename local variable old to old_decl.
20647 * gensupport.c (shift_output_template): Rename parameter old to src.
20648 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
20649 old_rtx and newx to new_rtx.
20651 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20653 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
20655 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
20657 * c-lex.c: Likewise.
20659 2004-07-25 Roger Sayle <roger@eyesopen.com>
20661 * fold-const.c (constant_boolean_node): Make extern.
20662 (make_range): Wrap long lines.
20663 (fold_cond_expr_with_comparison): Remove unnecessary call to
20664 pedantic_non_lvalue. Add missing calls to fold_convert.
20665 (fold_truthop): Add missing calls to fold_convert.
20667 * tree.h (constant_boolean_node): Add prototype here.
20668 * builtins.c (expand_builtin_strncmp): Add missing calls to
20670 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
20671 Call fold_convert and constant_boolean_node to correct types.
20672 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
20673 missing call to fold_convert to correct types.
20675 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
20676 Brian Ryner <bryner@brianryner.com>
20680 * c-common.c (c_common_attribute_table): Allow
20681 handle_visibility_attribute to be called for types.
20682 (handle_visibility_attribute) When given a type, set the visibility
20683 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
20684 so that we can check later whether the attribute was present. Added
20685 warning if attribute applied to non class type.
20686 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
20687 decls and checking that they are consistent.
20688 * common.opt: Added -fvisibility.
20689 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
20690 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
20691 * flags.h, tree.h: Added assorted support defines for overall patch
20692 * opts.c: Added parsing support for -fvisibility.
20693 * tree.c (build_decl): Set visibility for all decls to be whatever
20694 is in force at that time.
20695 * varasm.c (default_binds_local_p_1): Reworked logic determining
20696 when to make a symbol locally bound.
20697 * doc/invoke.texi: Added documentation for -fvisibility and
20698 -fvisibility-inlines-hidden.
20700 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20702 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
20703 * c-common.c: Add missing casts from void * to other types.
20704 * c-decl.c: Likewise.
20705 * c-format.c: Likewise.
20706 * c-lex.c: Likewise.
20707 * c-pragma.c: Likewise.
20708 * c-typeck.c: Likewise.
20709 * defaults.h: Likewise.
20710 * genconstants.c: Likewise.
20711 * gengtype-lex.l: Likewise.
20712 * genmodes.c: Likewise.
20713 * read-rtl.c: Likewise.
20716 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20718 * bitmap.c: Use type-safe memory allocation macros from libiberty.
20719 * c-common.c: Likewise.
20720 * c-decl.c: Likewise.
20721 * c-lang.c: Likewise.
20722 * c-lex.c: Likewise.
20723 * c-opts.c: Likewise.
20724 * c-parse.in: Likewise.
20725 * c-typeck.c: Likewise.
20726 * genconditions.c: Likewise.
20727 * gengtype-lex.l: Likewise.
20728 * gengtype-yacc.y: Likewise.
20729 * gengtype.c: Likewise.
20730 * genmodes.c: Likewise.
20731 * gensupport.c: Likewise.
20732 * read-rtl.c: Likewise.
20733 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
20736 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20738 * c-decl.c (groktypename, groktypename_in_param_context): Rename
20739 variable typename to type_name.
20740 * c-lex.c (interpret_float): Likewise.
20742 2004-07-25 Roger Sayle <roger@eyesopen.com>
20744 * convert.c (convert_to_real, convert_to_integer,
20745 convert_to_complex): Replace calls to build with calls to buildN.
20746 * coverage.c (tree_coverage_counter_ref): Likewise.
20747 * dojump.c (do_jump): Likewise.
20748 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
20749 * emit-rtl.c (component_ref_for_mem_expr,
20750 set_mem_attributes_minus_bitpos): Likewise.
20751 * explow.c (update_nonlocal_goto_save_area): Likewise.
20752 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
20753 expand_mult_add): Likewise.
20754 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
20755 store_constructor, get_inner_reference, expand_expr_real_1,
20756 try_casesi, try_tablejump): Likewise.
20757 * function.c (expand_function_start): Likewise.
20758 * stmt.c (emit_case_bit_tests, expand_end_case_type,
20759 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
20760 * stor-layout.c (place_union_field, layout_type): Likewise.
20761 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
20762 * varasm.c (copy_constant): Likewise.
20764 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20766 * c-common.c: Rename all identifiers named `new'.
20767 * c-decl.c: Likewise.
20768 * gensupport.c: Likewise.
20769 * simplify-rtx.c: Likewise.
20770 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
20772 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
20775 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
20778 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
20779 declarations until after calling pushdecl.
20780 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
20781 "extern" and not on whether the declaration is initialized.
20783 2004-07-25 Daniel Jacobowitz <dan@debian.org>
20785 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
20786 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
20787 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
20788 "cpplib.h", "c-pragma.h", "c-common.h".
20789 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
20790 (solaris_register_pragmas): New functions.
20791 * config/sol2-protos.h: New file.
20792 * config/sol2.c: New file.
20793 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
20794 (REGISTER_TARGET_PRAGMAS): New macros.
20795 (solaris_pending_aligns, solaris_pending_inits)
20796 (solaris_pending_finis): New variables.
20797 * config/t-sol2 (sol2-c.o): Update dependencies.
20798 (sol2.o): New rule.
20799 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
20800 SUBTARGET_INSERT_ATTRIBUTES.
20801 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
20802 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20803 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20804 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20805 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20806 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20807 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20808 * config/sparc/sparc.c (sparc_attribute_table): New.
20809 (TARGET_INSERT_ATTRIBUTES): Define in terms of
20810 SUBTARGET_INSERT_ATTRIBUTES.
20811 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
20813 * doc/extend.texi (Solaris Pragmas): New section.
20815 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20817 * c-common.c: Rename all identifiers named `class' to `cl'.
20818 * c-common.h: Likewise.
20819 * c-parse.in: Likewise.
20820 * c-typeck.c: Likewise.
20821 * genmodes.c: Likewise.
20822 * real.c: Likewise.
20823 * real.h: Likewise.
20824 * recog.c: Likewise.
20825 * recog.h: Likewise.
20826 * regrename.c: Likewise.
20827 * tree.h: Likewise.
20828 * c-common.c (builtin_function_2): Change type of 5th parameter from
20829 int to enum built_in_function. Change type of 8th parameter from int
20831 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
20833 * c-typeck.c (convert_arguments): Change type of formal_prec from
20834 int to unsigned int.
20835 * genmodes.c (blank_mode): Make a few negative constants unsigned.
20836 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
20837 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
20838 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
20839 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
20840 iterator to for_all_modes () instead of an enum because enums can't
20841 be incremented in C++.
20844 2004-07-25 Daniel Jacobowitz <dan@debian.org>
20846 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
20849 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20851 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
20852 Handle ARRAY_RANGE_REF like ARRAY_REF.
20854 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
20856 * c-typeck.c (digest_init): Don't allow arrays of signed or
20857 unsigned variants of wchar_t to be initialized by wide string
20858 constants. Do allow arrays of enumerated types compatible with
20859 wchar_t to be initialized by wide string constants. Refine tests
20860 distinguishing wide and narrow strings and arrays. Give specific
20861 error for arrays of other integer types initialized by string
20863 (output_init_element, process_init_element): Check for
20864 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
20865 initializing with string constants.
20867 2004-07-25 Richard Henderson <rth@redhat.com>
20869 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
20870 on the RESULT_DECL.
20871 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20872 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
20873 DECL_IGNORED_P to new decl.
20875 2004-07-24 Zack Weinberg <zack@codesourcery.com>
20877 * config/ia64/ia64.c (general_xfmode_operand)
20878 (destination_xfmode_operand): Delete.
20879 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
20880 * config/ia64/ia64.md (*movxf_internal): Use general_operand
20881 and destination_operand.
20883 2004-07-24 Alexander Kabaev <kan@freebsd.org>
20885 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
20886 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
20888 2004-07-24 Alexander Kabaev <kan@freebsd.org>
20889 Zack Weinberg <zack@codesourcery.com
20892 * c-decl.c (diagnose_mismatched_decls): Don't issue a
20893 redundant-declaration warning the first time a builtin is
20894 declared explicitly.
20896 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20898 * tree.h (staticp): Change return type to bool.
20900 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20902 * c-common.c (c_staticp): Last episode of the staticp saga.
20904 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20906 * c-common.h (c_staticp): Change return type from int to bool.
20907 * tree.c (staticp): Likewise.
20908 * langhooks.h (staticp): Likewise.
20910 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20912 * langhooks-def.h (lhd_staticp): Change return type from int to
20913 bool in prototype to match definition.
20915 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20917 * system.h (bool, true, false): Don't redefine as preprocessor macros
20920 2004-07-24 Roger Sayle <roger@eyesopen.com>
20922 * expmed.c (init_expmed): A signed modulus by a power of two is
20923 considered cheap if its less than or equal to four instructions.
20925 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20927 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
20928 GGC_CNEWVAR): New macros.
20930 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20932 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
20934 * c-decl.c: Likewise.
20935 * c-format.c: Likewise.
20936 * c-lex.c: Likewise.
20937 * c-opts.c: Likewise.
20938 * c-pragma.c: Likewise.
20939 * c-typeck.c: Likewise.
20940 * gencheck.c: Likewise.
20941 * genconditions.c: Likewise.
20942 * genconfig.c: Likewise.
20943 * genflags.c: Likewise.
20944 * gengtype.c: Likewise.
20945 * gensupport.c: Likewise.
20946 * ggc-none.c: Likewise.
20947 * langhooks.c: Likewise.
20948 * statistics.h: Likewise.
20949 * stub-objc.c: Likewise.
20950 * java/decl.c: Likewise.
20952 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
20954 * config/m68k/m68k.c (output_scc_di): Fix coding style.
20955 (symbolic_operand): Fix prototype.
20956 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
20957 * config/m68k/m68k.md: Add constants for registers a0 and sp and
20958 use them, change from the "{...}" syntax to the simpler {...}
20960 (*cfv4_extendqisi2): Fix destination predicate.
20961 * config/m68k/m68k-protos.h: Remove various declarations also
20962 generated via PREDICATE_CODES.
20964 2004-07-23 Mike Stump <mrs@apple.com>
20966 * c-typeck.c (convert_for_assignment): Tightened up pointer
20967 converstions that differ in signedness.
20969 2004-07-23 Zack Weinberg <zack@codesourcery.com>
20971 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
20973 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20975 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
20976 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
20978 * gimplify.c (gimplify_compound_lval): Check for no handled
20979 operations, rather than checking for explicit list of nodes.
20980 (is_gimple_addr_expr_arg_or_indirect): New function.
20981 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
20982 redundant setting of TREE_INVARIANT.
20983 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
20984 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
20986 2004-07-23 Diego Novillo <dnovillo@redhat.com>
20988 PR tree-optimization/16688
20989 PR tree-optimization/16689
20990 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
20991 unnecessary initialization of 'tag'.
20992 (get_tmt_for): Check that the new type tag has the same alias
20993 set as the pointed-to type.
20994 (group_aliases): Only regular variables need to be removed
20995 from the alias set of a name tag.
20996 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
20997 propagation if the two types are not compatible.
20998 (merge_alias_info): Rename from replace_ssa_names_ann.
21000 (replace_exp_1): If both arguments are SSA_NAMEs, check that
21001 the propagation can be done.
21002 Only call merge_alias_info on pointers.
21003 (propagate_value): Likewise.
21004 * tree-ssa-copyrename.c: Include langhooks.h.
21005 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
21007 Do not coalesce variables with incompatible types.
21008 (rename_ssa_copies): Call replace_ssa_name_symbol.
21009 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
21010 the same type as the underlying _DECL.
21011 * tree-ssanames.c (replace_ssa_name_symbol): New function.
21012 * tree.h (replace_ssa_name_symbol): Declare.
21014 2004-07-23 Richard Henderson <rth@redhat.com>
21017 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
21018 unshare it properly.
21019 (gimplify_modify_expr_rhs): Push assignment from a conditional into
21020 the conditional for all non-register types.
21022 2004-07-23 Richard Henderson <rth@redhat.com>
21024 * expr.c (expand_expr_real_1): Don't handle non-local variables.
21025 * expr.h (fix_lexical_addr): Remove.
21026 * function.c (NEED_SEPARATE_AP): Remove.
21027 (fix_lexical_addr): Remove.
21028 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
21029 not null decl_function_context.
21030 (create_alias_vars): Likewise.
21031 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
21032 (simple_goto_p): Likewise.
21033 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
21034 * tree-ssa-ccp.c (get_default_value): Likewise.
21035 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
21036 * tree.c (needs_to_live_in_memory): Likewise.
21037 * tree-flow-inline.h (may_be_aliased): Move...
21038 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
21039 when TREE_STATIC variables may be addressable.
21041 2004-07-24 Jakub Jelinek <jakub@redhat.com>
21043 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
21045 2004-07-23 Zack Weinberg <zack@codesourcery.com>
21047 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
21048 bitmap contents if GENERATOR_FILE is defined.
21049 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
21050 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
21052 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
21054 * c-decl.c (start_function): Form composite type of function types
21055 rather than copying type from previous prototype declaration.
21057 2004-07-23 Janis Johnson <janis187@us.ibm.com>
21059 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
21060 the const qualifier for the second argument in the C++ functions.
21062 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
21063 specific pointer types.
21065 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
21066 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
21067 for vector bool and/or vector pixel, add C++ and C missing support.
21068 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
21069 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
21070 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
21071 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
21072 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
21073 missing C++ and C support for vector bool and/or vector pixel.
21074 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
21075 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
21076 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
21077 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
21078 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
21079 C++ and C types used for vector bool and/or vector pixel.
21080 (vec_st, vec_stl): Add C++ support for vector pixel.
21081 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
21082 (vec_all_ne): Add C++ support for vector pixel.
21084 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
21085 (vec_vmulesb): Add missing C++ function.
21086 (vec_perm): Fix type of third argument in C++ function.
21087 (vec_vsum4shs): Fix C++ function name.
21088 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
21089 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
21090 argument passed to the error handler in C macro.
21091 (vec_nmsub): Remove extra parens around argument names in C macro.
21092 (vec_packpx): Add missing parens in C macro.
21094 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21096 * machmode.def: Remove vector modes.
21097 * config/alpha/alpha-modes.def: Add supported vector modes.
21098 * config/arm/arm-modes.def: Likewise.
21099 * config/frv/frv-modes.def: Likewise.
21100 * config/i386/i386-modes.def: Likewise.
21101 * config/rs6000/rs6000-modes.def: Likewise.
21102 * config/sh/sh-modes.def: Likewise.
21104 2004-07-23 Matthias Klose <doko@debian.org>
21106 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
21107 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
21108 * config.h: Regenerate.
21109 * configure: Likewise.
21111 2004-07-22 Mark Mitchell <mark@codesourcery.com>
21113 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
21114 generated SYMBOL_REFs for labels.
21115 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
21117 (machopic_stub_name): Remove.
21118 (machopic_indirection_name): New function.
21119 (machopic_mcount_stub_name): Likewise.
21120 (machopic_classify_name): Remove.
21121 (machopic_function_base_sym): New function.
21122 (machpoic_classify_symbol): Likewise.
21123 (machopic_classify_ident): Remove.
21124 (machopic_define_ident): Likewise.
21125 (machopic_define_name): Likewise.
21126 (machopic_name_defined_p): Likewise.
21127 (machopic_ident_defined_p): Likewise.
21128 (darwin_strip_name_encoding): Likewise.
21129 (machopic_define_symbol): New function.
21130 * config/darwin.c (hashtab.h): Include.
21131 (machopic_defined_list): Remove.
21132 (machopic_classify_ident): Likewise.
21133 (machopic_classify_name): Likewise.
21134 (machopic_ident_defined_p): Likewise.
21135 (machopic_define_ident): Likewise.
21136 (machopic_define_name): Likewise.
21137 (machopic_symbol_defined_p): New function.
21138 (machopic_classify_symbol): Likewise.
21139 (machopic_data_defined_p): Use machopic_classify_symbol.
21140 (machopic_define_symbol): New function.
21141 (machopic_function_base_sym): New function.
21142 (machopic_non_lazy_pointers): Remove.
21143 (machopic_non_lazy_ptr_name): Likewise.
21144 (machopic_stubs): Likewise.
21145 (machopic_stub_name): Likewise.
21146 (NON_LAZY_POINTER_SUFFIX): New macro.
21147 (STUB_SUFFIX): Likewise.
21148 (machopic_indirection): New structure.
21149 (machopic_indirections): New variable.
21150 (machopic_indirection_hash): New function.
21151 (machopic_indirection_eq): Likewise.
21152 (machopic_indirection_name): Likewise.
21153 (machopic_mcount_stub_name): New function.
21154 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
21156 (machopic_indirect_data_reference): Rework to use new functions.
21157 (machopic_indirect_call_target): Likewise.
21158 (machopic_legitimize_pic_address): Likewise.
21159 (machopic_output_indirection): New function.
21160 (machopic_finish): Use it.
21161 (machopic_operand_p): Rework to use new functions.
21162 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
21163 (darwin_strip_name_encoding): Remove.
21164 (update_non_lazy_ptrs): Remove.
21165 (update_stubs): Likewise.
21166 (darwin_non_lazy_pcrel): Use new functions.
21167 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
21168 (ASM_OUTPUT_LABELREF): Likewise.
21169 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21170 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
21171 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
21172 (TARGET_STRIP_NAME_ENCODING): Do not use
21173 darwin_strip_name_encoding.
21174 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
21175 darwin_strip_name_encoding.
21176 * config/i386/darwin.h (FUNCTION_PROFILER): Use
21177 machopic_mcount_stub_name.
21178 * config/i386/i386.c (x86_output_mi_thunk): Use
21179 machopic_indirection_name, not machopic_stub_name.
21180 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
21181 machopic_function_base_sym.
21182 (print_operand): Use machopic_classify_symbol.
21183 (rs6000_emit_prologue): Use machopic_function_base_sym.
21184 (output_profile_hook): Do not use machopic_stub_name.
21185 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
21187 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21190 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
21193 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21195 * doc/implement-c.texi: New file.
21196 * doc/extend.texi (C Implementation): Move to there.
21197 * doc/gcc.texi: Include implement-c.texi.
21198 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
21200 2004-07-22 Jason Merrill <jason@redhat.com>
21202 * integrate.c (copy_decl_for_inlining): Remove invisible reference
21204 * tree-inline.c (setup_one_parameter): Likewise.
21206 2004-07-22 Brian Booth <bbooth@redhat.com>
21208 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
21209 (substitute_and_fold): Propigate into VUSE operands when possible.
21210 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
21211 (cp_lattice_meet): Handle merging of latticevalues when
21212 UNKNOWN_VAL is present.
21213 (visit_stmt): Visit assignments with V_MUST_DEFs.
21214 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
21215 (ccp_fold): Deal with RHS' that are constant and virtual.
21216 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
21217 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
21218 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
21219 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
21220 computing immediate uses.
21221 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
21223 (replace_vuse_in): New function.
21224 (likely_value): Add check of vuse operands.
21225 (get_default_value): Set the default value of virtually defined
21226 variables to UKNOWN_VAL instead of VARYING.
21228 2004-07-22 Richard Henderson <rth@redhat.com>
21230 * expr.c (emit_push_insn): Don't use set_mem_attributes.
21232 2004-07-22 Richard Henderson <rth@redhat.com>
21234 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
21235 variables due to conditional compilation.
21237 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21239 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
21240 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
21241 Release SSA names that have been re-renamed.
21242 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
21244 * tree-ssa-alias.c (init_alias_info): If aliases have been
21245 computed before, clear existing alias information.
21246 (create_name_tags): Do no fixup PT_ANYTHING pointers.
21247 If the new name tag for a pointer is different than the one it
21248 had before, mark the old tag for renaming.
21249 (replace_may_alias): New function.
21250 (group_aliases): Call it.
21251 (setup_pointers_and_addressables): Always call get_tmt_for.
21252 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
21254 (set_pt_anything): New local function.
21255 (set_pt_malloc): New local function.
21256 (merge_pointed_to_info): Don't merge pointed-to variables from
21257 the original pointer if the destination is pointing to an
21259 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
21260 (add_pointed_to_var): Do not add a variable to the points-to
21261 set if the pointer is already pointing to anywhere.
21262 (collect_points_to_info_r): If the defining statement is a PHI
21263 node, only merge pointed-to information if the argument has
21264 already been visited.
21265 (get_tmt_for): Only create a new tag if the pointer didn't
21267 (dump_alias_info): Emit more information.
21268 (dump_points_to_info_for): Likewise.
21269 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
21270 try to get the annotation of an SSA_NAME.
21271 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
21272 alias sets when checking is enabled.
21273 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
21274 (eliminate): Mark basic blocks that will need
21275 EH information cleaned up.
21276 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
21278 Initialize need_eh_cleanup.
21279 (fini_pre): Call tree_purge_all_dead_eh_edges and
21280 cleanup_tree_cfg if needed.
21281 Free need_eh_cleanup.
21282 * tree-ssa.c (verify_ssa_name): New function.
21283 (verify_def): Call it.
21284 Re-arrange to avoid printing too many error messages.
21285 (verify_use): Likewise.
21286 (verify_phi_args): Likewise.
21287 (verify_flow_insensitive_alias_info): New function.
21288 (verify_flow_sensitive_alias_info): New function.
21289 (verify_alias_info): New function.
21290 (verify_ssa): Call verify_alias_info.
21291 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
21293 Re-arrange to avoid printing too many error messages.
21294 * tree-ssanames.c (make_ssa_name): Clear
21295 SSA_NAME_IN_FREE_LIST.
21296 (release_ssa_name): Never release a default definition.
21297 (release_defs): New function.
21298 * tree.h: Declare it.
21299 * tree-ssa-dce.c (remove_dead_stmt): Call it.
21301 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21303 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
21304 If true, do a depth-first search. Do a breadht-first search,
21306 (walk_use_def_chains): Add new argument IS_DFS.
21308 * tree-flow.h (walk_use_def_chains): Update prototype.
21310 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
21312 * config/cris/cris.md: Tweak formatting.
21313 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
21314 (mover2side, moverside, movemside, movei, op3, andu): Replace
21315 live define_peephole:s with define_peephole2 near-equivalents.
21317 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
21319 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
21320 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
21321 "*mov_sidesi_mem" respectively.
21323 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21325 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
21326 (gimplify_build1): Move from tree-complex.c do_unop.
21327 (gimplify_build2): Move from tree-complex.c do_binop.
21328 (gimplify_build3): New.
21329 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
21330 Adjust throughout to call the functions above.
21331 * tree-flow.h: Declare the functions above.
21332 * tree-nested.c (gimplify_val): Rename to...
21333 (tsi_gimplify_val): ... this.
21335 * Makefile.in (tree_complex.o): Update dependencies.
21336 (stor-layout.o): Depend on regs.h.
21337 * c-common.c (handle_vector_size_attribute): Update for
21338 vector types without corresponding vector modes.
21339 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
21340 a corresponding vector mode is not available.
21341 * print-tree.c (print_node): Print nunits for vector types
21342 * regclass.c (have_regs_of_mode): New.
21343 (init_reg_sets_1): Initialize it and use it instead
21344 of allocatable_regs_of_mode.
21345 * regs.h (have_regs_of_mode): Declare it.
21346 * stor-layout.c (layout_type): Pick a mode for vector types.
21347 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
21348 build_replicated_const, do_unop, do_binop, do_plus_minus,
21349 do_negate, expand_vector_piecewise, expand_vector_parallel,
21350 expand_vector_addition, expand_vector_operations_1,
21351 expand_vector_operations, tree_lower_operations,
21352 pass_lower_vector_ssa, pass_pre_expand): New.
21353 (expand_complex_operations, pass_lower_complex): Remove.
21354 * tree-optimize.c (init_tree_optimization_passes): Adjust
21355 pass ordering for changes in tree-complex.c.
21356 * tree-pass.h: Declare new passes.
21357 * tree.c (finish_vector_type): Remove.
21358 (make_vector_type): New.
21359 (build_vector_type_for_mode, build_vector_type): Rewritten.
21360 * tree.def (VECTOR_TYPE): Document where the number of
21361 subparts is stored.
21362 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
21363 (make_vector): Remove declaration.
21365 2004-07-21 Richard Henderson <rth@redhat.com>
21367 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
21368 TREE_THIS_VOLATILE, may_aliases, or optimization level.
21369 (remove_useless_vars): Dump debugging info.
21370 (expand_used_vars): Move ...
21371 * cfgexpand.c (expand_used_vars): ... here. Make static.
21372 * tree-flow-inline.h (set_is_used): New.
21373 (set_default_def): Use get_var_ann.
21374 * tree-flow.h: Update decls.
21375 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
21376 (create_ssa_var_map): Use it.
21377 * tree-ssa.c (set_is_used): Remove.
21379 2004-07-22 Ben Elliston <bje@au.ibm.com>
21381 * gdbinit.in: Set a breakpoint on internal_error.
21383 2004-07-21 Richard Henderson <rth@redhat.com>
21385 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
21386 to create a new basic block.
21388 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21391 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
21392 return type on function definitions. Move other warnings for
21393 qualified return type to -Wreturn-type. Do not condition any such
21394 warnings on -pedantic. Update comments.
21395 (start_function): Only copy function type from previous prototype
21396 declaration if return types are compatible.
21397 * c-typeck.c (function_types_compatible_p): Don't condition
21398 warning for incompatibility of volatile qualifiers on the return
21399 type on -pedantic. Update comment.
21400 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
21402 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21404 * c-typeck.c (set_init_index): Require designator to be of integer
21407 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21410 * c-parse.in (init): Change to exprtype.
21411 (primary): Set original_code for STRING to STRING_CST.
21412 Call maybe_warn_string_init for compound literals.
21413 (initdcl, notype_initdcl): Call maybe_warn_string_init.
21415 * c-tree.h (maybe_warn_string_init): New.
21416 (pop_init_level, process_init_element): Use struct c_expr.
21417 (struct c_expr): Update comment.
21418 * c-typeck.c (maybe_warn_string_init): New function.
21419 (digest_init): Call it. Additional parameter strict_string. All
21421 (output_init_element): Likewise.
21422 (struct constructor_stack): Use struct c_expr for
21424 (really_start_incremental_init, push_init_level): Update.
21425 (pop_init_level): Update. Return struct c_expr.
21426 (process_init_level): Update. Take struct c_expr argument.
21428 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
21430 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
21433 2004-07-21 Eric Christopher <echristo@redhat.com>
21435 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
21437 * c-decl.c (pop_scope): Ditto.
21438 * calls.c (expand_call): Remove call to current_nesting_level,
21439 update comment accordingly. Remove calls to expand_start_target_temps
21440 and expand_end_target_temps.
21441 * cfgexpand.c (construct_init_block): Remove call to
21442 expand_start_bindings_and_block.
21443 (construct_exit_block): Remove call to expand_end_bindings.
21444 * expr.c (safe_from_p): Remove BIND_EXPR handling.
21445 (expand_expr_real_1): Ditto. Fix formatting.
21446 (expand_vars): Delete.
21447 * stmt.c (POPSTACK): Remove block_stack.
21448 (stmt_status): Remove x_block_stack.
21449 (block_stack): Delete.
21450 (expand_start_bindings_and_block): Ditto.
21451 (expand_start_target_temps): Ditto.
21452 (expand_end_target_temps): Ditto.
21453 (current_nesting_level): Ditto.
21454 (warn_about_unused_variables): Ditto.
21455 (expand_end_bindings): Ditto.
21456 * tree.h: Remove declarations for above.
21458 2004-07-21 Steven Bosscher <stevenb@suse.de>
21460 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
21461 * rtl.c (note_insn_name): Likewise.
21462 * print-rtl.c (print_rtx): Don't print it.
21463 * cfgrtl.h (can_delete_note_p): Don't handle it.
21464 (rtl_delete_block): Likewise.
21465 * passes.c (rest_of_handle_guess_branch_prob): Remove.
21466 (rest_of_compilation): Don't call it.
21467 * predict.c (process_note_predictions, process_note_prediction,
21468 note_prediction_to_br_prob): Remove.
21469 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
21470 * stmt.c (return_prediction): Remove.
21471 (expand_value_return): Don't call it. Don't add prediction
21472 notes for return statements.
21474 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
21476 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
21479 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
21481 * c-common.c (vector_types_convertible_p): Use vector types'
21482 TYPE_SIZE and TREE_TYPE instead of their mode.
21483 * convert.c (convert_to_integer): Likewise.
21484 (convert_to_vector): Likewise.
21485 * fold-const.c (fold_convert): Likewise.
21486 * varasm.c (output_constant): Likewise.
21487 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
21488 Allow a VECTOR_TYPE initializer to be made of several vectors.
21489 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
21490 of cleared and need_to_clear, and use fold_convert.
21491 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
21494 2004-07-20 Richard Henderson <rth@redhat.com>
21496 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
21497 (expand_gimple_basic_block): out from here. Renamed from expand_block.
21499 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
21501 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
21502 enormous cost if not TARGET_HARD_MUL.
21504 2004-07-20 Andrew Pinski <apinski@apple.com>
21507 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
21510 2004-07-21 Paul brook <paul@codesourcery.com>
21512 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
21514 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21516 * fold-const.c (operand_equal_p): Temporarily support NULL args.
21517 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
21518 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
21520 2004-07-20 Zack Weinberg <zack@codesourcery.com>
21522 * rtl.h (plus_constant): Delete.
21523 (plus_constant_wide): Rename to plus_constant.
21524 (plus_constant_for_output_wide): Delete vestigial prototype.
21525 (GEN_INT): Remove unnecessary cast.
21526 * tree.h (build_int_2, size_int_type): Delete.
21527 (build_int_2_wide): Rename to build_int_2.
21528 (size_int_wide): Rename to size_int_kind.
21529 (size_int_type_wide): Rename to size_int_type.
21530 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
21531 Remove unnecessary cast.
21532 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
21533 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
21534 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
21535 (size_int_type_wide): Rename size_int_type.
21536 (int_const_binop): Use size_int_type.
21537 * c-lex.c (interpret_integer): Use build_int_2.
21538 * final.c (split_double): Remove unnecessary casts.
21539 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
21541 2004-07-20 Richard Henderson <rth@redhat.com>
21543 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
21544 (gimplify_compound_lval): Use is_gimple_tmp_reg.
21545 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
21546 (is_gimple_tmp_reg): New.
21547 * tree-gimple.h (is_gimple_tmp_reg): Declare.
21549 2004-07-20 Richard Henderson <rth@redhat.com>
21551 * tree-pretty-print.c (dump_generic_node): Dump
21552 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
21554 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
21556 * tree-mudflap.c (mf_set_options_fndecl): New tree.
21557 (mudflap_init): Set it.
21558 (mudflap_register_call): Remove __mf_init call.
21559 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
21560 to pass "-ignore-reads" option to libmudflap if needed.
21562 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
21565 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
21566 (MAKE_DECL_ONE_ONLY): Undefine.
21567 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
21568 readonly_data, one_only_data_section, forget_section): New prototypes.
21569 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
21571 (pa_select_section): Add one-only (COMDAT) support.
21572 * pa.h (struct machine_function): Define.
21573 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
21574 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
21575 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
21576 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
21577 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
21578 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
21579 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
21580 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
21581 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
21582 for EXTRA_SECTION_FUNCTIONS.
21583 * doc/install.texi: Update binutils requirements.
21585 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21587 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
21588 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
21589 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
21591 (struct VEC): Use unsigned for num and alloc.
21592 * vec.c (struct vec_prefix): Likewise.
21593 (vec_o_reserve): Adjust.
21595 * dbxout.c (dbxout_type): Fix printf format.
21597 * tree.h (binfo_member): Remove.
21598 * tree.c (binfo_member): Remove.
21600 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21602 * tree.h: Include vec.h
21603 (DEF_VEC_P(tree)): New type.
21604 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
21605 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
21606 (BINFO_LANG_SLOT): Remove.
21607 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
21608 (struct tree_binfo): Turn base_binfos into a trailing
21609 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
21610 (binfo_lang_slots): Remove.
21611 * tree.c (binfo_lang_slots): Remove.
21612 (make_tree_binfo_stat): Take a base binfo count, not a
21613 lang slot count. Adjust.
21614 * Makefile.in (TREE_H): Add vec.h
21615 * alias.c (record_component_aliases): Adjust BINFO access.
21616 * dbxout.c (dbxout_type): Likewise.
21617 * dwarf2out.c (gen_member_die): Likewise.
21618 * sdbout.c (sdbout_one_type): Likewise.
21619 * tree-dump.c (deque_and_dump): Likewise.
21620 * config/i386/i386.c (classify_argument,
21621 contains_128bit_aligned_vector_p): Likewise.
21622 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
21623 * doc/c-tree.texi (Classes): Update BINFO documentation.
21625 2004-07-20 Steven Bosscher <stevenb@suse.de>
21627 * c-common.h (check_case_value): Remove prototype.
21628 (c_add_case_label): Adjust prototype.
21629 * c-common.c (check_case_value): Make static.
21630 (check_case_bounds): New function.
21631 (c_add_case_label): Use it. Take new argument orig_type.
21632 * c-typeck.c (struct c_switch): New orig_type field.
21633 (c_start_case): Set it.
21634 (do_case): Pass it to c_add_case_label.
21635 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
21636 cases from here. Add the labels in reverse order.
21637 * stmt.c (struct case_node): Adjust comment. Remove balance field.
21638 (add_case_node): Return nothing, don't check for duplicate cases.
21639 Insert new case nodes in a list, not in an AVL tree.
21640 (expand_end_case_type): Don't turn a case tree into a case list.
21641 (case_tree2list): Remove.
21642 * tree.h (add_case_node): Adjust prototype.
21644 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
21646 * genattr.c (struct range, struct function_unit,
21647 write_units, extend_range, init_range): Remove them.
21648 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21649 Output "#define INSN_SCHEDULING" here.
21650 * genattrtab.c (struct range, struct function_unit_op,
21651 struct function_unit, struct dimension, enum operator,
21652 operate_exp, expand_units, simplify_knowing,
21653 encode_units_mask, simplify_by_exploding,
21654 find_and_mark_used_attributes, unmark_used_attributes,
21655 add_values_to_cover, increment_current_value,
21656 test_for_current_value, simplify_with_current_value,
21657 simplify_with_current_value_aux, gen_unit,
21658 write_unit_name, write_function_unit_info,
21659 write_complex_function, write_toplevel_expr,
21660 find_single_value, extend_range): Remove.
21661 (write_attr_get): Do not handle common_av->value
21663 (struct attr_desc): Remove func_units_p and blockage_p.
21664 (write_attr_valueq): Do not handle them.
21665 (find_attr): Do not clear them.
21666 (make_internal_attr): Do not initialize them.
21667 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21668 * sched-vis.c (init_target_units, insn_print_units,
21669 init_block_visualization, print_block_visualization,
21670 visualize_scheduled_insns, visualize_no_unit,
21671 visualize_stall_cycles, visualize_alloc,
21672 visualize_free, target_units, get_visual_tbl_length,
21673 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
21674 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
21675 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
21676 * haifa-sched.c (blockage_range, clear_units,
21677 schedule_unit, actual_hazard, potential_hazard,
21678 insn_unit, unit_last_insn, unit_tick,
21679 actual_hazard_this_instance, potential_hazard,
21680 schedule_unit, max_insn_queue_index_value): Remove.
21681 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
21682 max_insn_queue_index.
21683 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
21684 * doc/md.texi (Processor pipeline description): Remove
21685 references to old pipeline descriptions.
21686 (Automaton pipeline description): Merge with the above.
21687 (Old pipeline description, Comparison of the two descriptions):
21690 * bt-load.c (migrate_btr_def): Remove references to
21691 use_pipeline_interface.
21692 * haifa-sched.c (insn_cost, schedule_insn,
21693 schedule_block, advance_one_cycle, sched_init,
21694 queue_to_ready, sched_finish): Likewise.
21695 * modulo-sched.c (sms_schedule, advance_one_cycle,
21696 ps_has_conflicts): Likewise.
21697 * sched-rgn.c (init_ready): Likewise.
21698 (debug_dependencies): Likewise, and remove an "if (1)".
21699 * target.h (use_dfa_pipeline_interface): Remove.
21700 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21701 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21702 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21703 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21704 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21705 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21706 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21707 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21708 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21709 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21710 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21711 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21712 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21713 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21714 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21715 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21716 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21717 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21718 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21720 2004-07-19 Roger Sayle <roger@eyesopen.com>
21722 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
21724 2004-07-19 Jeff Law <law@redhat.com>
21726 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
21727 (get_eq_expr_value): Use it. Simplify slightly.
21729 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
21731 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
21732 (umulsidi3_32bit_r4000): Likewise.
21734 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
21736 * vec.h: Propagate location information properly.
21737 (VEC_T_iterate): Add result pointer parameter.
21738 (VEC_T_space): New.
21739 (VEC_T_reserve): Use it.
21741 2004-07-19 Daniel Jacobowitz <dan@debian.org>
21743 * Makefile.in (c-format.o): Depend on c-format.h.
21744 * c-format.h: New file.
21745 (struct format_char_info): Add CHAIN member.
21746 * c-format.c: Move some types and constants to c-format.h.
21747 (format_type_error): Set to -1.
21748 (struct function_format_info): Use an int for format_type.
21749 (decode_format_type): Return an int. Return format_type_error
21751 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
21752 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
21753 (scan_char_table, time_char_table, monetary_char_table): Initialize
21755 (n_format_types): New variable.
21756 (check_format_info_main): Handle CHAIN in format_char_info.
21757 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
21758 TARGET_N_FORMAT_TYPES.
21759 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21760 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
21761 * config/sol2-c.c: New file.
21762 * config/t-sol2: New file.
21763 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
21764 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
21765 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
21767 * doc/extend.texi (Target Format Checks): New section.
21768 (Function Attributes): Mention it.
21769 * doc/invoke.texi: Mention target format checks.
21770 * doc/sourcebuild.texi: Mention target format checks.
21771 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
21772 TARGET_FORMAT_TYPES.
21774 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
21776 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
21778 * config/s390/s390.c (regclass_map initializer): Register 35 added to
21780 (load_multiple_operation, store_multiple_operation): Removed
21781 pointless sanity check.
21782 (s390_decompose_address): Added check for return_address_pointer_rtx.
21783 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
21784 (s390_return_address_offset): New function.
21785 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
21786 (FRAME_REGNO_P): Added check for register 35.
21787 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
21788 REG_ALLOC_ORDER): Appended entry for register 35.
21789 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
21790 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
21791 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
21792 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
21793 is eliminable using stack pointer or hard frame pointer.
21794 (REGISTER_NAMES): Added name for register 35.
21795 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
21796 pointless sanity check.
21798 2004-07-19 Roger Sayle <roger@eyesopen.com>
21800 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
21801 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
21802 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
21803 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
21804 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
21805 (fold_relational_const): Tidy up handling of floating point
21806 comparisons by calling real_compare. Remove tree_expr_nonzero_p
21807 transformation; fold_relational_const assumes constant operands.
21809 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
21811 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
21814 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
21816 * c-tree.h (struct c_expr): Define.
21817 (C_SET_EXP_ORIGINAL_CODE): Remove.
21818 (parser_build_binary_op, build_compound_expr): Update prototypes.
21819 * c-parse.in (%union): Add exprtype.
21820 (FUNC_NAME): Mark as ttype.
21821 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
21823 (expr): Update. Define directly in terms of expr_no_commas
21824 instead of using nonnull_exprlist.
21825 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
21826 offsetof_member_designator, typespec_nonreserved_nonattr, init,
21827 initval, designator, component_declarator,
21828 component_notype_declarator, enumerator, array_declarator,
21829 condition, exexpr, switch_statement, stmt_nocomp, stmt,
21830 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
21831 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
21833 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
21834 * c-common.c (c_common_truthvalue_conversion): Don't check
21835 C_EXP_ORIGINAL_CODE.
21836 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
21837 Don't use C_EXP_ORIGINAL_CODE.
21838 (default_conversion, default_function_array_conversion): Don't use
21839 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
21840 (internal_build_compound_expr): Merge into build_compound_expr.
21841 (build_compound_expr): Take two operands instead of a TREE_LIST.
21842 * objc/objc-act.c (get_super_receiver): Update calls to
21843 build_compound_expr.
21845 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
21847 * config/sh/sh.c (sh_use_dfa_interface): Remove.
21848 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
21850 * config/sh/sh.md: Extract pipeline descriptions
21851 into separate files.
21852 * config/sh/sh1.md: New file, extracted from sh.md.
21853 * config/sh/sh4.md: New file, extracted from sh.md.
21854 * config/sh/shmedia.md: New file, extracted from sh.md
21855 and rewritten using new-style pipeline description.
21857 2004-07-18 Zack Weinberg <zack@codesourcery.com>
21859 * config/pa/pa.md: Delete the two remaining define_peephole
21862 2004-07-18 Steven Bosscher <stevenb@suse.de>
21863 Joseph S. Myers <jsm@polyomino.org.uk>
21865 * c-common.c (c_common_truthvalue_conversion): Don't warn if
21866 TREE_NO_WARNING is set.
21868 2004-07-18 Roger Sayle <roger@eyesopen.com>
21870 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
21871 simplify_builtin_strncmp): Delete.
21872 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
21873 Change argument to accept an arglist instead of an "exp". Assume
21874 that the return type is always integer_type_node. Copy missing
21875 transformations from their now obsolete simplify_builtin_*
21877 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
21878 fold_builtin_strcmp and fold_builtin_strncmp.
21879 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
21880 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
21881 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
21883 2004-07-18 Daniel Jacobowitz <dan@debian.org>
21885 * Makefile.in (tree-alias-common.o): Update dependencies.
21887 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
21889 * cfgloop.c (flow_loop_nested_p): Fix comment.
21891 2004-07-17 Jason Merrill <jason@redhat.com>
21894 * stor-layout.c (relayout_decl): New fn.
21895 * tree.h: Declare it.
21896 (DECL_BY_REFERENCE): New macro.
21898 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
21900 * libgcc2.c (__enable_execute_stack): New symbol.
21901 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
21902 and declare __enable_execute_stack.
21903 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
21904 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
21905 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21906 ENABLE_EXECUTE_STACK.
21907 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
21908 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21909 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21910 ENABLE_EXECUTE_STACK.
21911 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21912 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
21913 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21914 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21915 ENABLE_EXECUTE_STACK.
21916 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21917 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21918 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21919 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21920 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
21921 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21922 (sparc64_initialize_trampoline): Likewise.
21923 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
21925 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21927 * langhooks.h (builtin_function): New langhook.
21928 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
21929 (LANG_HOOKS_INITIALIZER): Update.
21930 * tree.h (builtin_function): Remove.
21931 * doc/tm.texi: Update.
21932 * c-tree.h (builtin_function): Declare.
21933 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
21934 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
21935 config/ia64/ia64.c, config/iq2000/iq2000.c,
21936 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
21937 config/stormy16/stormy16.c: All callers of builtin_function
21940 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
21943 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
21944 Remove white space after the backslash.
21946 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
21948 PR rtl-optimization/16294
21949 * resource.c (return_insn_p): New predicate.
21950 (mark_target_live_regs): Use it. Special-case return insns.
21951 (init_resource_info): Use it. Don't scan the epilogue past
21954 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21956 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
21957 destroy dominance information.
21958 * passes.c (rest_of_handle_loop2): Free dominance information.
21959 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
21961 (thread_jumps): Update dominance information and remove unreachable
21963 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
21964 information and remove the unreachable block.
21966 2004-07-17 Graham Stott <graham.stott@btinternet.com>
21968 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
21970 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
21972 * doc/sourcebuild.texi: Remove libf2c entry.
21974 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
21976 * config/i386/i386.md (movv16qi_internal): Fix typo.
21978 2004-07-17 Steven Bosscher <stevenb@suse.de>
21980 * final.c (final_scan_insn): Fix broken commit from previous
21983 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21985 * c-typeck.c (parser_build_binary_op): Condition warnings for
21986 X<=Y<=Z on -Wparentheses instead of -Wextra.
21987 * doc/invoke.texi: Update. Document that most of -Wparentheses is
21988 supported for C only.
21990 2004-07-17 Steven Bosscher <stevenb@suse.de>
21992 * cfgcleanup.c (try_simplify_condjump): Don't remove line
21993 notes to avoid unreachable code warnings.
21994 * toplev.c (backend_init): Don't emit line notes for
21995 unreachable code warnings.
21997 * combine.c (distribute_notes): Don't distribute a
21998 REG_VTABLE_REF note.
21999 * final.c (final_scan_insn): Don't handle it.
22000 * rtl.c (reg_note_name): Remove it.
22001 * rtl.h (enum reg_node): Dito.
22003 * emit-rtl.c (force_line_numbers, restore_line_number_status):
22005 * rtl.h (force_line_numbers, restore_line_number_status):
22008 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
22009 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
22010 (using_eh_for_cleanups): Also moved here.
22012 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
22013 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
22014 to expand_start_case and add_case_node.
22015 * stmt.c (struct nesting): Cleanup unused fields condition_code,
22016 last_unconditional_cleanup, nominal_type, printname, and
22017 line_number_status.
22018 (struct fixup_goto): Remove.
22019 (struct stmt_status): Remove x_goto_fixup_chain field.
22020 (goto_fixup_chain): Remove.
22021 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
22022 pushcase, pushcase_range): Remove.
22023 (expand_start_bindings_and_block): Don't set unused fields in
22025 (expand_start_case, add_case_node): Cleanup unused formal arguments.
22026 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
22027 instead of emit_jump_if_reachable.
22028 (emit_case_nodes): Likewise.
22029 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
22031 (update_eh_label): Work around left-over exception handing regions.
22032 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
22033 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
22034 (pass_cleanup_cfg_post_optimizing): New pass.
22035 (init_tree_optimization_passes): Run the new pass after all
22037 * tree.h (pushcase, pushcase_range): Remove prototypes.
22038 (expand_start_case, add_case_node): Update prototypes.
22040 2004-07-16 Krister Walfridsson <cato@df.lth.se>
22042 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
22044 2004-07-16 Richard Henderson <rth@redhat.com>
22046 * builtins.c (std_expand_builtin_va_arg): Remove.
22047 (expand_builtin_va_arg): Remove.
22048 * expr.h: Don't declare them.
22049 * gimplify.c (mark_decls_volatile_r): Remove.
22050 (copy_if_shared_r): Don't call it.
22051 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
22052 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
22053 * gimple-low.c (lower_stmt): Likewise.
22054 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
22055 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
22056 * tree-ssa-operands.c (get_expr_operands): Likewise.
22057 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
22058 EXPAND_BUILTIN_VA_ARG.
22059 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
22060 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
22061 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
22062 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
22064 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22066 * tree-ssa-pre.c (insert_aux): Break out if we hit
22069 2004-07-16 Richard Henderson <rth@redhat.com>
22071 * basic-block.h (remove_fake_exit_edges): Declare.
22072 * cfganal.c (remove_fake_predecessors): Rename from
22073 remove_fake_successors; iterate over predecessors.
22074 (remove_fake_exit_edges): New.
22075 * cfgcleanup.c (try_optimize_cfg): Use it.
22076 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
22077 * predict.c (estimate_probability): Likewise.
22078 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
22079 * tree-cfg.c (make_edges): Likewise.
22080 * tree-ssa-pre.c (fini_pre): Likewise.
22081 * profile.c (instrument_edges): Don't remove_fake_edges.
22082 (branch_prob): Do it earlier here.
22084 2004-07-16 Richard Henderson <rth@redhat.com>
22086 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
22087 switchification wrt CONSTRUCTOR. Document the reason.
22089 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
22091 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
22092 that prevented descriptive __mf_check source location strings.
22094 2004-07-16 Richard Henderson <rth@redhat.com>
22096 * tree-def (WITH_SIZE_EXPR): New.
22097 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
22098 * expr.c (expand_expr_real_1): Likewise.
22099 * gimplify.c (maybe_with_size_expr): New.
22100 (gimplify_arg, gimplify_modify_expr): Use it.
22101 (gimplify_modify_expr_to_memcpy): Take size parameter.
22102 (gimplify_modify_expr_to_memset): Likewise.
22103 (gimplify_expr): Handle WITH_SIZE_EXPR.
22104 * tree-alias-common.c (find_func_aliases): Likewise.
22105 * tree-eh.c (tree_could_trap_p): Likewise.
22106 (tree_could_throw_p): Likewise.
22107 * tree-gimple.c (is_gimple_lvalue): Likewise.
22108 (get_call_expr_in): Likewise.
22109 * tree-inline.c (estimate_num_insns_1): Likewise.
22110 (expand_calls_inline): Likewise.
22111 * tree-nested.c (convert_call_expr): Likewise.
22112 * tree-pretty-print.c (dump_generic_node): Likewise.
22113 * tree-sra.c (sra_walk_expr): Likewise.
22114 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
22115 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
22116 * tree-ssa-operands.c (get_expr_operands): Likewise.
22117 * tree-tailcall.c (find_tail_calls): Likewise.
22119 * calls.c (expand_call): Reset old_stack_allocated after
22120 calling emit_stack_restore.
22122 2004-07-16 Richard Henderson <rth@redhat.com>
22124 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
22125 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
22126 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
22127 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
22128 copy_res_decl_for_inlining.
22130 * tree-inline.c (declare_return_variable): New modify_dest argument.
22131 Use it as the return value, when possible or manditory. Handle
22132 TREE_ADDRESSABLE types.
22133 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
22134 replacement of CALL_EXPR.
22136 2004-07-16 Richard Henderson <rth@redhat.com>
22138 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
22139 * gimple-low.c (expand_var_p): Don't check it.
22140 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
22141 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
22142 * tree-ssa-operands.c (add_stmt_operand): Likewise.
22143 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
22144 (find_referenced_vars): Don't call them.
22145 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
22147 2004-07-16 Richard Henderson <rth@redhat.com>
22149 * function.c (pass_by_reference): True for all variable sized types.
22151 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
22153 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
22154 * tree-pretty-print.c: Include tree-chrec.h.
22155 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
22156 and POLYNOMIAL_CHREC nodes.
22158 2004-07-16 Steve Ellcey <sje@cup.hp.com>
22160 * builtins.c (expand_builtin_stpcpy): Do not create temporary
22163 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
22165 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
22167 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
22169 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
22171 * config/s390/s390.c: Likewise.
22172 * config/s390/s390.h: Likewise.
22174 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22176 * config/mips/mips.md (addsi3, adddi3): Remove special handling
22177 of $sp adds. Remove REGNO checks from mips16 patterns.
22179 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22181 * config/mips/mips.md: Delete outdated comment.
22183 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22185 * config/mips/mips.c (get_float_compare_codes): Delete.
22186 (mips_emit_compare): New function, mostly extracted from
22187 get_float_compare_codes and gen_conditional_branch.
22188 (gen_conditional_branch, gen_conditional_move): Use it.
22190 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
22192 * genautomata.c (add_vect): Speedup by using integers as
22193 bit-vectors for walking through the comb_vect and finding
22196 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22198 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
22199 operand is an uns_arith_operand; use subtraction otherwise.
22200 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
22201 not just arith_operands.
22203 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22205 * config/mips/mips-protos.h (gen_int_relational): Delete.
22206 (mips_emit_scc): Declare.
22207 * config/mips/mips.c (internal_test): Delete.
22208 (sle_operand, sleu_operand): New functions.
22209 (map_test_to_internal_test, gen_int_relational): Delete.
22210 (mips_emit_binary, mips_relational_operand_ok_p)
22211 (mips_emit_int_relational, mips_zero_if_equal)
22212 (mips_emit_scc): New functions.
22213 (gen_conditional_branch): Rework to use mips_emit_int_relational.
22214 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
22216 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
22217 (sltu, sleu): Use mips_emit_scc.
22218 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
22219 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
22220 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
22222 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22224 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
22226 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22228 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
22229 (*sne_[sd]i): Likewise sne_[sd]i_zero.
22230 (*sgt_[sd]i): ...and sgt_[sd]i.
22231 (*slt_[sd]i): ...and slt_[sd]i.
22232 (*sgtu_[sd]i): ...and sgtu_[sd]i.
22233 (*sltu_[sd]i): ...and sltu_[sd]i.
22234 (*sleu_[sd]i): ...and sleu_[sd]i_const.
22235 Name previously unnamed mips16 patterns. Formatting fixes.
22237 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22239 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
22240 (branch_type): Delete.
22241 (gen_conditional_branch, gen_conditional_move)
22242 (mips_gen_conditional_trap): Update after name change. Get the
22243 comparison mode from cmp_operands[0].
22244 * config/mips/mips.h (cmp_type, branch_type): Delete.
22245 (cmp_operands): Renamed from branch_cmp.
22246 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
22247 name change. Don't set branch_type.
22248 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
22249 mode class of cmp_operands[0] rather than branch_type. Update after
22252 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22254 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
22255 of 0...255 to 0 when inside a SET.
22257 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22259 * config/mips/mips.md: Remove mips16 define_peepholes.
22261 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22263 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
22264 (fini_pre): Remove fake edges.
22266 2004-07-15 Richard Henderson <rth@redhat.com>
22268 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
22269 (get_indirect_ref_operands, get_call_expr_operands): ... these.
22271 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22273 * vec.h (VEC_address): New function.
22275 2004-07-14 Jason Merrill <jason@redhat.com>
22277 PR middle-end/15885
22278 * gimplify.c (gimplify_arg): New fn, split out from...
22279 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
22281 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22283 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
22284 generate code which is generated by pushqi1 now
22285 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
22287 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22289 * combine.c (simplify_set): match the mode of the constant 0 with
22290 the tested operand to match the compare behaviour and the
22291 simplify_relational_operation() expectation.
22293 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22295 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
22296 ("bordered"): Same.
22298 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22300 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
22302 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
22304 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22306 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
22307 calls in mips16 code.
22309 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22311 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
22312 the destination of the li as well as for the neg.
22314 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
22317 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
22318 * cgraph.h: Update declaration.
22319 * c-decl.c (build_cdtor): Update call with default priority.
22320 * coverage.c (create_coverage): Ditto.
22321 * tree-mudflap.c (mf_init_fndecl): New tree.
22322 (mudflap_init): Set it.
22323 (mudflap_register_call): Arrange to call __mf_init before the first
22324 __mf_register call.
22325 (mudflap_finish_file): Mark the mudflap static initializer as extra
22326 high priority, to beat all C++ static constructors.
22328 2004-07-15 Jeff Law <law@redhat.com>
22330 * loop.c (check_insn_for_givs): Restore check for code labels that was
22331 accidentally deleted by a recent checkin.
22333 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22335 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
22336 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
22338 2004-07-14 Richard Henderson <rth@redhat.com>
22340 * print-tree.c (print_node): Fix casts last change.
22342 2004-07-15 Paul Brook <paul@codesourcery.com>
22344 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
22345 to TARGET_UNWIND_INFO.
22346 * except.c (output_function_exception_table): Ditto.
22348 * opts.c (decode_options): Ditto.
22349 * passes.c (rest_of_handle_final): Ditto.
22350 * final.c (final_start_function): Ditto.
22351 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
22353 * targhooks.h (default_unwind_emit): Declare.
22354 * targhooks.c (default_unwind_emit): New function.
22355 * target-def.h: Define and use TARGET_UNWIND_EMIT.
22356 * target.h (struct gcc_target): Add unwind_emit.
22357 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
22358 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
22359 Remove IA64_UNWIND_EMIT.
22360 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
22362 2004-07-14 Richard Henderson <rth@redhat.com>
22364 * print-tree.c (print_node): Handle SSA_NAME.
22366 2004-07-14 James E Wilson <wilson@specifixinc.com>
22369 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
22370 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
22372 2004-07-15 Jakub Jelinek <jakub@redhat.com>
22374 * expr.c (expand_assignment): Reenable bitfield += optimizations.
22375 Use alias set 0 for memory, do proper mode calculations and adjust
22376 address for memories.
22378 2004-07-14 Per Bothner <per@bothner.com>
22380 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
22381 structure with extra column field.
22382 * tree.c (expand_location): Also fill in column field.
22383 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
22384 gets confused by the two conditionally-compiled definitions.
22386 2004-07-14 Eric Christopher <echristo@redhat.com>
22388 * calls.c (expand_call): Fix typo in comment.
22390 2004-07-14 Steve Ellcey <sje@cup.hp.com>
22392 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
22393 comparision of TFmode.
22395 2004-07-14 Richard Henderson <rth@redhat.com>
22397 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
22398 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
22399 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
22400 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
22401 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
22402 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
22403 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
22404 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
22405 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
22407 2004-07-14 Mike Stump <mrs@apple.com>
22409 * config/darwin.h (WINT_TYPE): Define to be int to match
22410 system header files.
22412 2004-07-14 Bob Wilson <bob.wilson@acm.org>
22414 * config/xtensa/xtensa.c (function_arg_advance): Check for args
22415 that must be passed in the stack.
22416 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
22417 arguments if the size is not a constant.
22419 2004-07-14 Per Bothner <per@bothner.com>
22421 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
22422 instead of EXPR_LOCUS in a boolean context, which is always true
22423 if --enable-mapped-location.
22424 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
22426 2004-07-14 Richard Henderson <rth@redhat.com>
22428 * dominance.c (struct dom_info): Add fake_exit_edge.
22429 (init_dom_info): Allocate it.
22430 (free_dom_info): Free it.
22431 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
22433 (calc_idoms): Honor fake_exit_edge.
22435 2004-07-13 Jason Merrill <jason@redhat.com>
22437 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
22438 (rhs_test_for): New fn.
22439 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
22440 * tree-gimple.h: Declare them.
22441 * gimplify.c (gimplify_modify_expr): Use the new fns.
22443 2004-07-14 Richard Henderson <rth@redhat.com>
22445 * config/arm/arm-protos.h (arm_va_arg): Remove.
22446 * config/arm/arm.c (arm_va_arg): Remove.
22447 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
22448 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
22450 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22452 * pa.c (fix_range): New function to mark a range(s) of registers as
22454 (override_options): Call fix_range if the -mfixed-range option string
22456 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
22457 * doc/invoke.texi (-mfixed-range): Document new option.
22459 2004-07-14 David Edelsohn <edelsohn@gnu.org>
22461 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
22463 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
22465 2004-07-14 Roger Sayle <roger@eyesopen.com>
22467 * expmed.c (expand_sdiv_pow2): New function to expand signed division
22468 by a positive power of two, split out from expand_divmod. Provide
22469 an alternate implementation when shifts are expensive. Lower the
22470 threshold for using a branchless implementation to BRANCH_COST >= 2.
22471 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
22473 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22475 * tree-dfa.c (make_rename_temp): *Really* work just
22476 like create_tmp_var if called while outside SSA form.
22478 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
22480 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
22481 for division by zero.
22482 ("umodsi3"): Likewise.
22484 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22486 * config/mips/mips.c (mips_output_move): When generating mips16 code,
22487 force loads of negative constants to be split.
22488 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
22489 Generalize SImode li/neg splitter to cope with other modes.
22491 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22493 * expmed.c: Remove more references to QUEUED in the comments.
22494 * expr.c: Likewise.
22496 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22499 2004-07-13 Richard Henderson <rth@redhat.com>
22500 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
22503 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22505 * tree-dfa.c (make_rename_temp): Work just like
22506 create_tmp_var if called while outside SSA form.
22508 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22510 * expr.c (enqueue_insn, finish_expr_for_function,
22511 protect_from_queue, queued_subexp_p, mark_queue,
22512 emit_insns_enqueued_after_mark, emit_queue,
22513 expand_increment): Remove.
22514 (store_constructor): Expand increment as an assignment.
22515 (expand_expr_real_1 <case PREINCREMENT_EXPR,
22516 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
22517 case POSTDECREMENT_EXPR>): Abort.
22518 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
22519 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
22520 protect_from_queue, emit_queue, queued_subexp_p): Remove.
22521 * function.h (pending_chain, x_pending_chain): Remove.
22522 * rtl.def (QUEUED): Remove.
22524 * emit-rtl.c (copy_insn_1, copy_most_rtx,
22525 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
22526 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
22527 encode_units_mask): Likewise.
22528 * local-alloc.c (equiv_init_varies_p): Likewise.
22529 * rtl.c (copy_rtx): Likewise.
22530 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22531 * simplify-rtx.c (simplify_gen_subreg): Likewise.
22532 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
22534 * builtins.c (expand_builtin, expand_builtin_apply,
22535 expand_builtin_mathfn, expand_builtin_mathfn_2,
22536 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
22537 Remove calls to emit_queue and protect_from_queue.
22538 * calls.c (expand_call, precompute_arguments,
22539 precompute_register_parameters, rtx_for_function_call,
22540 store_one_arg): Likewise.
22541 * dojump.c (do_compare_and_jump, do_jump): Likewise.
22542 * explow.c (memory_address): Likewise.
22543 * expmed.c (clear_by_pieces_1, clear_storage,
22544 clear_storage_via_libcall, emit_group_load,
22545 emit_group_store, emit_store_flag,
22546 expand_expr_real_1, store_by_pieces,
22547 store_constructor, store_expr, try_casesi,
22548 try_tablejump): Likewise.
22549 * function.c (expand_pending_sizes): Likewise.
22550 * optabs.c (emit_cmp_and_jump_insns,
22551 emit_conditional_add, emit_conditional_move,
22552 expand_fix, expand_float, prepare_cmp_insn): Likewise.
22553 * stmt.c (emit_case_bit_tests,
22554 expand_asm_expr, expand_computed_goto,
22555 expand_decl_init, expand_end_case_type,
22556 expand_end_stmt_expr, expand_expr_stmt_value,
22557 expand_return, expand_start_case,
22558 optimize_tail_recursion): Likewise.
22559 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22560 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
22562 2004-07-14 Ben Elliston <bje@au.ibm.com>
22564 * vec.h: Comment fix.
22566 2004-07-13 Richard Henderson <rth@redhat.com>
22568 * target.h (struct gcc_target): Add calls.pass_by_reference.
22569 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
22570 * function.c (pass_by_reference): Use the hook.
22571 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
22572 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
22573 (hook_pass_by_reference_must_pass_in_stack): New.
22574 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
22575 (alpha_pass_by_reference): New.
22576 (TARGET_PASS_BY_REFERENCE): New.
22577 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22578 * config/arc/arc.c (arc_pass_by_reference): New.
22579 (TARGET_PASS_BY_REFERENCE): New.
22580 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22581 (FUNCTION_ARG_CALLEE_COPIES): True.
22582 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
22583 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
22584 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
22585 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22586 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22587 * config/cris/cris.c (cris_pass_by_reference): New.
22588 (TARGET_PASS_BY_REFERENCE): New.
22589 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
22590 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
22591 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22592 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
22593 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22594 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
22595 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
22596 (frv_function_arg_pass_by_reference): Remove.
22597 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22598 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
22599 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
22600 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
22601 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22602 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
22603 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
22604 (ia64_pass_by_reference): Rename from
22605 ia64_function_arg_pass_by_reference.
22606 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22607 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22608 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
22609 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
22610 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
22611 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22612 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22613 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
22614 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
22615 (m32r_pass_by_reference): Adjust prototype. Make static.
22616 Handle mode sizes correctly.
22617 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22618 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
22619 (m68hc11_function_arg_pass_by_reference): Remove.
22620 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22621 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22622 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
22623 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22624 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
22625 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
22626 (mips_va_arg): Use pass_by_reference.
22627 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
22628 Handle mode sizes correctly.
22629 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22630 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22631 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
22632 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
22633 (mmix_pass_by_reference): Rename from
22634 mmix_function_arg_pass_by_reference.
22635 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22636 (FUNCTION_ARG_CALLEE_COPIES): True.
22637 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
22638 (mn10300_pass_by_reference): New.
22639 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22640 (FUNCTION_ARG_CALLEE_COPIES): True.
22641 * config/pa/pa.c (pa_pass_by_reference): New.
22642 (TARGET_PASS_BY_REFERENCE): New.
22643 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22644 (FUNCTION_ARG_CALLEE_COPIES): True.
22645 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
22646 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
22647 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
22648 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22649 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
22650 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
22651 (s390_pass_by_reference): Rename from
22652 s390_function_arg_pass_by_reference.
22653 (s390_function_arg_advance): Don't query pass-by-ref.
22654 (s390_function_arg): Likewise.
22655 (s390_gimplify_va_arg): Use pass_by_reference.
22656 (s390_call_saved_register_used): Likewise.
22657 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22658 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
22659 (shcompact_byref, sh_pass_by_reference): New.
22660 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22661 (SHCOMPACT_BYREF): Remove.
22662 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
22663 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
22664 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
22665 (sparc_gimplify_va_arg): Use pass_by_reference.
22666 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22667 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22668 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
22669 (v850_pass_by_reference): New.
22670 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22671 (FUNCTION_ARG_CALLEE_COPIES): True.
22672 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
22673 FUNCTION_ARG_PASS_BY_REFERENCE docs.
22675 2004-07-14 Richard Henderson <rth@redhat.com>
22676 Richard Sandiford <rsandifo@redhat.com>
22678 * config/mips/mips-protos.h (mips_va_arg): Delete.
22679 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
22680 * config/mips/mips.c: Include tree-gimple.h.
22681 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22682 (mips_arg_info): Remove special handling of must_pass_in_stck args.
22683 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
22684 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
22686 2004-07-13 Bob Wilson <bob.wilson@acm.org>
22688 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
22689 arguments for COND_EXPR in big-endian adjustment code.
22691 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22693 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
22694 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
22695 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
22696 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
22698 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22700 PR tree-optimization/16443
22701 * tree-ssa-alias.c: Add more description for
22702 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
22703 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
22704 clobbering of call-clobbered and addressable variables. If
22705 there are any before aliases have been computed, add them.
22707 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22709 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
22712 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
22714 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
22715 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
22718 2004-07-13 Per Bothner <per@bothner.com>
22720 * collect2.c (main): Handle --no-demangle and --demangle flags.
22722 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
22724 * Makefile.in (OBJS-common): Add tree-data-ref.o.
22725 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
22726 (tree-data-ref.o): New rule.
22727 * lambda.h: New file.
22728 * tree-data-ref.c: New file.
22729 * tree-data-ref.h: New file.
22730 * tree.c (int_cst_value, tree_fold_gcd): New functions.
22731 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
22733 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22736 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
22737 * config/sparc/sparc.c (output_ubranch): New function.
22738 * config/sparc/sparc.md (jump pattern): Use it.
22740 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22743 * config/sparc/sparc.c (output_cbranch): Properly guard
22744 the code handling far branches with TARGET_V9.
22745 * config/sparc/sparc.md (length attribute): Document the
22746 side-effect of having a length greater or equal to 3.
22748 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22749 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
22752 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
22753 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
22755 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22756 Martin Sebor <sebor@roguewave.com>
22759 * doc/invoke.texi (SPARC options): Document -threads
22760 and -pthreads on Solaris.
22762 2004-07-13 Richard Henderson <rth@redhat.com>
22764 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
22766 (ind_gimplify_va_arg_expr): Remove.
22767 * tree.h (ind_gimplify_va_arg_expr): Remove.
22768 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
22769 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
22772 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
22773 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
22774 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
22775 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
22776 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
22778 2004-07-13 Richard Henderson <rth@redhat.com>
22780 * function.c (pass_by_reference): New.
22781 (assign_parm_find_data_types): Use it.
22782 * calls.c (initialize_argument_information): Likewise.
22783 (emit_library_call_value_1): Likewise.
22784 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22785 * function.h (pass_by_reference): Declare.
22787 2004-07-13 Richard Henderson <rth@redhat.com>
22789 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
22790 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
22791 * expr.h (MUST_PASS_IN_STACK): Remove.
22792 * system.h (MUST_PASS_IN_STACK): Poison.
22793 * tree.h (must_pass_in_stack_var_size): Declare.
22794 (must_pass_in_stack_var_size_or_pad): Declare.
22795 * calls.c (must_pass_in_stack_var_size): New.
22796 (must_pass_in_stack_var_size_or_pad): Rename from
22797 default_must_pass_in_stack.
22798 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
22799 (TARGET_MUST_PASS_IN_STACK): New.
22800 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
22801 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
22802 (TARGET_MUST_PASS_IN_STACK): New.
22803 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
22804 * config/frv/frv.c (frv_must_pass_in_stack): New.
22805 (TARGET_MUST_PASS_IN_STACK): New.
22806 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
22807 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
22808 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
22809 (ix86_must_pass_in_stack): Make static.
22810 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
22811 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
22812 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
22813 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
22814 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
22815 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
22816 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
22817 (mcore_must_pass_on_stack): Remove.
22818 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
22819 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
22820 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
22821 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
22822 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
22823 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
22824 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
22825 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
22826 (TARGET_MUST_PASS_IN_STACK): New.
22827 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
22828 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
22829 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
22830 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
22831 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
22832 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
22833 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
22834 MUST_PASS_IN_STACK.
22836 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
22837 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
22838 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
22839 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
22840 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
22841 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
22842 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
22843 config/xtensa/xtensa.c: Use target hook.
22845 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
22847 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
22848 * configure: Rebuilt.
22850 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
22852 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
22853 * config/mips/mips.h (mips_reg_names): Don't declare.
22854 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
22855 (TARGET_NAME_REGS): Delete.
22856 (TARGET_SWITCHES): Remove -mrnames.
22857 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
22858 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
22860 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
22861 (override_options): Remove handling of TARGET_NAME_REGS.
22863 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
22865 * config/mips/mips.h (TARGET_*): Boolify.
22867 2004-07-12 Nick Clifton <nickc@redhat.com>
22869 * config.gcc: Add sh-*-symbianelf target.
22870 * config/sh/sh.c: Add new target macros:
22871 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
22872 TARGET_CXX_IMPORT_EXPORT_CLASS.
22873 (sh_file_start): Create a definition of the .directive section.
22874 (sh_attribute): Add dllimport and dllexport attributes.
22875 * config/sh/symbian-pre.h: New file.
22876 * config/sh/symbian-post.h: New file.
22877 * config/sh/symbian.c: New file. Contains Symbian specific
22879 * config/sh/sh-protos.h: Add prototypes for new functions
22880 provided by symbian.c.
22881 * config/sh/t-symbian: New file.
22882 * doc/extend.texi: Document support for dllimport and dllexport
22883 attributes by the sh-symbianelf target.
22885 2004-07-12 James E Wilson <wilson@specifixinc.com>
22887 * Makefile.in (AR): Use @AR@ not ar.
22889 (AR_FOR_TARGET): Use $(AR) not ar for native.
22890 (NM_FOR_TARGET): Use $(NM) not nm for native.
22891 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
22892 * configure: Regenerate.
22894 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
22896 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
22898 (ashldi3_sp64): Likewise.
22900 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22903 * pa.c (function_arg): Update comment.
22904 * pa.h (BLOCK_REG_PADDING): Define.
22906 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22908 PR tree-optimization/16461
22909 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
22910 arguments of phi nodes.
22912 2004-07-12 Devang Patel <dpatel@apple.com>
22914 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
22916 2004-07-12 Steve Ellcey <sje@cup.hp.com>
22918 * function.c (expand_function_start): Ensure r_save is in Pmode.
22919 * calls.c (prepare_call_address): Ensure static_chain_value is
22921 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
22922 r_save_area are in Pmode.
22923 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
22924 fnaddr, and static_chain are in Pmode.
22926 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22929 * config/ia64/ia64.c (bundling): Don't count ignored insns.
22931 2004-07-12 Richard Henderson <rth@redhat.com>
22933 * target.h (struct gcc_target): Move gimplify_va_arg_expr
22934 next to build_builtin_va_list.
22935 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
22936 * builtins.c (gimplify_va_arg_expr): Likewise.
22937 * gimplify.c (copy_if_shared_r): Likewise.
22939 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
22941 * passes.c (rest_of_decl_compilation): Don't defer call of
22942 assemble_variable if its DECL_RTL is already set.
22944 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
22946 * cfgloop.h (struct loop): Add nb_iterations field.
22947 (current_loops): Declare.
22948 * tree-chrec.c (chrec_not_analyzed_yet,
22949 chrec_dont_know, chrec_known, count_ev_in_wider_type,
22950 chrec_contains_symbols_defined_in_loop): Remove the temporary
22952 * tree-flow-inline.h (loop_containing_stmt): New function.
22953 * tree-scalar-evolution.c: Add implementation.
22954 * tree-scalar-evolution.h: Add declarations.
22956 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22958 PR rtl-optimization/15921
22959 * Makefile.in (global.o): Add recog.h.
22961 * global.c (recog.h): Add the include-clause.
22962 (bb_info): New member earlyclobber.
22963 (allocate_bb_info, free_bb_info): Initialize/finish the new
22965 (earlyclobber_regclass, earlyclobber_regclass_length): The new
22967 (check_earlyclobber, regclass_intersect,
22968 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
22970 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
22971 (make_accurate_live_analysis): Modify pavin.
22973 2004-07-12 Diego Novillo <dnovillo@redhat.com>
22975 * tree-cfg.c (find_taken_edge): Statically compute the truth
22976 value of a predicate comparing an SSA_NAME to itself.
22978 2004-07-12 Roger Sayle <roger@eyesopen.com>
22980 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
22981 rs6000 doesn't have shift-and-add or shift-and-sub instructions
22982 by returning the cost of a multiplication plus an addition.
22984 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
22986 PR tree-optimization/14107
22987 * gimplify.c (gimplify_return_expr): Accept a
22988 RETURN_EXPR with an error argument.
22989 * tree-optimize.c (init_tree_optimization_passes):
22990 Run pass_warn_function_return at -O0.
22992 2004-07-12 Roger Sayle <roger@eyesopen.com>
22994 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
22997 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
22999 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
23000 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23001 * config/mips/3000.md: Add copyright notice. Remove automota and
23002 function units; use generic ones instead. Only define reservations
23003 for things that are different from generic.md. Extend each clause
23005 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
23006 * config/mips/mips.md: Include them. Remove define_function_units.
23007 (alu, imuldiv): New automata and units.
23009 2004-07-12 Ben Elliston <bje@au.ibm.com>
23011 * doc/invoke.texi (Optimize Options): Document -frename-registers
23012 not being enabled by default at -O3.
23014 2004-07-11 Roger Sayle <roger@eyesopen.com>
23016 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
23017 floating point additions, to keep real immediate constant positive.
23018 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
23019 into X + C, and leave positive real constants as X - C.
23021 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23023 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
23025 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23027 PR tree-optimization/15654
23028 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
23030 2004-07-11 Roger Sayle <roger@eyesopen.com>
23032 * builtins.c (fold_builtin_fputs): Don't bother converting the
23033 return type to integer_type_node, as we've already checked that
23034 the result will be ignored.
23036 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
23037 that signed addition, subtraction, multiplication, division,
23038 remainder, negation and absolute value may potentially trap.
23040 * fold-const.c (fold_ignored_result): New function to strip
23041 non-side-effecting tree nodes from an expression whose result
23043 (fold_convert): Call fold_ignored_result when casting a value
23045 (omit_one_operand): Call fold_ignored_result on the "omitted"
23046 operand when building a COMPOUND_EXPR.
23047 (pedantic_omit_one_operand): Likewise.
23048 * tree.h (fold_ignored_result): Prototype here.
23049 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
23050 when we're going to ignore the result.
23052 2004-07-11 Richard Henderson <rth@redhat.com>
23055 * tree-ssa-ccp.c (fold_stmt_r): Split out...
23056 * tree.c (fields_compatible_p, find_compatible_field): ... new.
23057 * tree.h (fields_compatible_p, find_compatible_field): Declare.
23058 * tree-sra.c (sra_hash_tree): Hash fields by offset.
23059 (sra_elt_eq): Use fields_compatible_p.
23060 (generate_one_element_ref): Use find_compatible_field.
23062 2004-07-11 Richard Henderson <rth@redhat.com>
23065 * tree-sra.c (generate_one_element_init): New.
23066 (generate_element_init): Use it.
23067 (scalarize_init): Push/pop gimplify context around it.
23068 (find_new_referenced_vars_1, find_new_referenced_vars): New.
23069 * gimplify.c (gimplify_expr): Allow SSA_NAME.
23071 2004-07-11 Roger Sayle <roger@eyesopen.com>
23073 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
23074 combine.c's combine_insn_cost.
23075 * rtl.h (insn_rtx_cost): Prototype here.
23076 * combine.c (combine_insn_cost): Delete function.
23077 (combine_validate_cost): Update callers of combine_insn_cost to
23078 call insn_rtx_cost instead.
23079 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
23080 requesting the rtx_cost of call and/or jump instructions.
23082 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
23083 rtx_cost directly. Don't request/use the cost of call or jump
23084 instructions. Return -1 if the cost of any instruction can't be
23085 determined (or the BB contains a function call).
23086 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
23087 -1 (i.e. can't determine the cost of any instruction or the basic
23088 block contains a subroutine call).
23089 (find_if_case_2): Likewise.
23091 2004-07-11 Roger Sayle <roger@eyesopen.com>
23093 * rs6000.c (struct processor_costs): Change semantics of fields to
23094 include the COST_N_INSNS scaling, and update all initializers.
23095 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
23096 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
23097 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
23098 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
23100 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23102 * LANGUAGES: Remove obsolete information.
23104 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
23106 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
23107 SIGBUS signal frames, the PSW address points *to* the faulting
23108 instruction, not after it.
23110 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
23112 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
23113 added to TLS symbol addresses.
23115 2004-07-11 Richard Henderson <rth@redhat.com>
23117 * expmed.c (init_expmed): Use stack-local structures for
23118 temporary rtl. Don't recognize shifts.
23120 2004-07-11 Richard Henderson <rth@redhat.com>
23122 * expr.c (store_expr): Don't fiddle subreg promotion for types
23123 with precision smaller than the mode.
23125 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23127 * tree.h (all_types_permanent): Remove.
23129 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23131 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
23132 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
23133 * langhooks.c (lhd_clear_binding_stack): Remove.
23134 * langhooks-def.h (lhd_clear_binding_stack,
23135 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
23136 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
23137 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
23138 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23139 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
23140 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
23141 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
23142 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
23143 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
23144 * tree.h (poplevel): Don't declare.
23145 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
23146 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23147 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
23148 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
23151 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23153 PR tree-optimization/16437
23154 * c-common.c (shorten_compare): Don't mark result of conversion to
23155 narrower signed type as overflowing.
23156 * fold-const.c (decode_field_reference): Determine whether
23157 signedness comes from outer type using precision rather than size.
23159 2004-07-11 Phil Edwards <phil@codesourcery.com>
23161 * configure.ac: Alphabetize --enable-checking list, add
23162 missing valgrind entry.
23163 * configure: Regenerate.
23165 2004-07-11 Phil Edwards <phil@codesourcery.com>
23167 * doc/install.texi (Testing): Fix syntax in "make check" example.
23169 2004-07-10 James E Wilson <wilson@specifixinc.com>
23171 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
23173 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23175 PR rtl-optimization/16001
23176 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
23179 2004-07-10 Geoffrey Keating <geoffk@apple.com>
23181 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
23183 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
23184 James Morrison <phython@gcc.gnu.org>
23186 * doc/contrib.texi (Contributors): Add gfortran contributors and
23187 fix a couple of typos.
23189 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23191 PR rtl-optimization/15387
23192 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
23193 to incoming args space correctly.
23195 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23197 * pa.c (output_indirect_call): Only use %r2 as the link register in
23198 indirect calls with the long PA 2.0 pc-relative branch.
23200 2004-07-10 Daniel Jacobowitz <dan@debian.org>
23202 * config/i386/i386.c (override_options): Pick a 64-bit CPU
23203 for the default tuning if TARGET_64BIT.
23205 2004-07-10 Richard Henderson <rth@redhat.com>
23207 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
23208 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
23210 2004-07-10 Jakub Jelinek <jakub@redhat.com>
23212 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
23213 * expmed.c (store_bit_field, extract_bit_field): Remove last
23215 * builtins.c (expand_builtin_signbit): Adjust callers.
23216 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
23217 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
23218 * ifcvt.c (noce_emit_move_insn): Likewise.
23219 * stmt.c (expand_return): Likewise.
23220 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
23221 store_field, expand_expr_real_1): Likewise.
23223 2004-07-10 Richard Henderson <rth@redhat.com>
23225 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
23227 2004-07-09 Mike Stump <mrs@apple.com>
23229 * config/darwin.c (no_dead_strip): Add.
23230 (HAVE_DEAD_STRIP): Add.
23231 (darwin_emit_unwind_label): Ensure that we don't dead code strip
23234 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23236 * tree-ssa-loop-im.c: New file.
23237 * Makefile.in (tree-ssa-loop-im.o): Add.
23238 * cfgloop.c (superloop_at_depth): New function.
23239 * cfgloop.h (superloop_at_depth): Declare.
23240 * common.opt (ftree-lim): New flag.
23241 * expr.c (array_ref_up_bound): New function.
23242 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
23243 * timevar.def (TV_LIM): New timevar.
23244 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
23245 computing immediate uses of a phi node.
23246 * tree-flow.h (struct tree_ann_common_d): Add aux field.
23247 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
23248 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
23249 * tree-pass.h (pass_lim): Declare.
23250 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
23252 (pass_lim): New pass structure.
23253 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
23254 * tree.c (in_array_bounds_p): New function.
23255 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
23256 (in_array_bounds_p, array_ref_up_bound): Declare.
23257 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
23258 * doc/passes.texi (tree-ssa-loop-im.c): Document.
23260 2004-07-09 Richard Henderson <rth@redhat.com>
23262 * builtins.c (expand_builtin_stpcpy): Don't modify len.
23264 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
23267 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
23269 * flags.h: Delete redundant prototypes that are being generated
23270 in options.h from common.opt.
23271 * common.opt: Add in the expository comments formerly in flags.h.
23273 2004-07-09 Jan Beulich <jbeulich@novell.com>
23275 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
23276 available for use only when TARGET_MMX/_SSE is set, and check for
23277 variable argument function if any register count is non-zero.
23278 (function_arg): Correctly suppress repeated warnings for passing SSE
23279 vectors are arguments without SSE enabled.
23280 (ix86_function_arg_boundary): Without SSE enabled, the use of what
23281 would be SSE register modes does no longer influence the alignment.
23283 2004-07-09 Richard Henderson <rth@redhat.com>
23285 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
23286 Always align upward to arg boundary. Use size_in_bytes/round_up.
23287 Maintain type-correctness of constants.
23288 * stor-layout.c (round_up, round_down): Special-case powers of 2.
23290 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23292 * config/sparc/sparc.c (*_costs): Scale instruction costs
23294 (sparc_rtx_costs): Adjust as appropriate.
23296 2004-07-09 Jan Beulich <jbeulich@novell.com>
23298 * config/i386/mm3dnow.h: New.
23299 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
23301 2004-07-09 Richard Henderson <rth@redhat.com>
23303 * simplify-rtx.c (simplify_const_relational_operation): Only
23304 look at bounds of scalar integers.
23306 2004-07-09 Jan Beulich <jbeulich@novell.com>
23308 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
23310 2004-07-09 Andrew Pinski <apinski@apple.com>
23312 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
23314 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
23315 UOBJC_METACLASS_decl.
23317 2004-07-09 James E Wilson <wilson@specifixinc.com>
23320 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
23321 do return a parallel if hfa_mode == XFmode and mode == TImode.
23323 2004-07-09 Jan Beulich <jbeulich@novell.com>
23325 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
23326 permissible for unary plus.
23328 2004-07-09 Jan Beulich <jbeulich@novell.com>
23330 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
23331 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
23332 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
23333 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
23334 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
23335 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
23336 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
23337 (BUILTIN_xxxIMAX): New.
23338 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
23339 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
23340 BUILT_IN_PARITYIMAX.
23342 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23344 * config/sparc/sparc.h (processor_costs): Define.
23345 (sparc_costs): Declare.
23346 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
23347 hypersparc_costs, sparclet_costs, ultrasparc_costs,
23348 ultrasparc3_costs): New.
23349 (sparc_override_options): Set sparc_costs as appropriate.
23350 (sparc_rtx_costs): Use sparc_costs instead of messy
23353 2004-07-09 Steven Bosscher <stevenb@suse.de>
23355 * doc/md.texi (Processor pipeline description): Mention that
23356 the old pipeline description is deprecated.
23358 * config/rs6000/7450.md (automaton ppc7450): Split up, move
23359 mciu_7450 function unit to...
23360 (automaton ppc7450mciu): ...new automaton.
23362 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
23363 (schedule_block): Don't consider inserting bubbles.
23364 (sched_init): Don't initialize DFA bubbles.
23365 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
23366 TARGET_SCHED_DFA_BUBBLE): Remove.
23367 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
23368 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
23369 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
23371 * stmt.c (conditional_context): Remove prototype.
23372 * tree.h (conditional_context): Remove.
23373 * tree-cfg.c (pre_insert_on_edge): Remove.
23375 * c-common.h (c_expand_asm_operands): Remove prototype.
23376 * c-typeck.c (c_expand_asm_operands): Remove.
23378 2004-07-09 Jan Beulich <jbeulich@novell.com>
23380 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
23381 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
23382 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
23383 and V8QI are class SSE. All sufficiently small remaining vector modes
23384 must be passed in one or two integer registers.
23385 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
23386 returned in memory.
23387 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
23388 __builtin_ia32_pmuludq128 have non-uniform argument and return types
23389 and must thus be handled explicitly.
23390 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
23392 (movv8qi_internal, movv4hi_internal, movv2si_internal,
23393 movv2sf_internal): Permit moving between MMX and XMM registers (since
23394 MMX areguments and return values are passed in XMM registers).
23395 (sse2_umulsidi3): Correct type and mode.
23397 2004-07-09 Richard Henderson <rth@redhat.com>
23399 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
23401 2004-07-09 Eric Christopher <echristo@redhat.com>
23403 * config/rs6000/40x.md: Split into two automatons.
23405 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23406 Andrew Pinski <apinski@apple.com>
23408 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
23409 on when we have more than one input file.
23410 (c_common_parse_file): Restore loop over all input files.
23411 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
23413 * c-decl.c (set_type_context): New function.
23414 (pop_scope): Use it to set context of types. When we
23415 encounter a TYPE_DECL, set the context of the attached type too.
23416 (pop_file_scope): Don't call cpp_undef_all here.
23417 (diagnose_mismatched_decls): Do not complain about a second
23418 definition of an 'extern inline' function if it's not in the
23419 same translation unit. Do not complain about inline
23420 declaration after use if the use was in a different
23422 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
23423 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
23424 the external scope.
23425 (pushdecl_top_level): Likewise.
23426 (grokdeclarator): Clarify what is going on with setting
23427 DECL_EXTERNAL on function types, a little.
23428 (c_write_global_declarations): Don't do anything if
23429 -fsyntax-only or errors have been encountered.
23431 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23433 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
23435 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23438 * pa.c (output_indirect_call): Use %r2 as the link register when
23439 calling $$dyncall with a pc-relative branch.
23441 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
23443 * doc/install.texi (Binaries): Mention OpenPKG.
23445 2004-07-09 Diego Novillo <dnovillo@redhat.com>
23447 Fix PR tree-optimization/15555
23448 * tree-dfa.c (dump_variable): If the variable is a pointer
23449 SSA_NAME, also dump its points-to information.
23450 * tree-flow.h (struct ptr_info_def): Add field
23452 (dump_points_to_info_for): Declare.
23453 (debug_points_to_info_for): Declare.
23454 * tree-optimize.c (init_tree_optimization_passes): Add a
23455 second alias analysis pass after DOM2.
23456 Move pass_del_pta to a later spot.
23457 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
23458 create a name tags when we find a dereferenced pointer. Just
23459 mark the pointer dereferenced.
23460 (collect_points_to_info_for): Move code to clear points-to
23461 information to create_name_tags.
23462 (create_name_tags): New function.
23463 (compute_flow_sensitive_aliasing): Call it.
23464 (setup_pointers_and_addressables): Mark type tags for renaming
23465 here instead of ...
23466 (create_memory_tag): ... here.
23467 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
23468 (dump_points_to_info_for): Declare extern.
23469 (debug_points_to_info_for): New function.
23471 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
23473 * config/arc/arc.md: Switch to DFA-based scheduler description.
23474 * config/arc/arc.c: Switch to DFA-based scheduler description.
23476 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23478 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
23481 2004-07-09 Richard Henderson <rth@redhat.com>
23483 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
23484 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23485 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
23486 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23488 * config/v850/v850-protos.h (v850_va_arg): Remove.
23489 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23490 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
23491 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
23492 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
23493 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
23495 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23498 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
23499 and DImode to use +/-4k offset.
23501 2004-07-09 Richard Henderson <rth@redhat.com>
23503 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
23505 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23506 (xstormy16_gimplify_va_arg_expr): Rewrite from
23507 xstormy16_expand_builtin_va_arg.
23508 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
23510 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
23511 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
23513 * config/sh/sh-protos.h (sh_va_arg): Remove.
23514 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23515 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
23516 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
23518 * config/pa/pa-protos.h (hppa_va_arg): Remove.
23519 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23520 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
23521 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23523 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
23524 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23525 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
23526 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
23528 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23530 * config/sparc/sparc.md (return): Rewrite length formula.
23531 * config/sparc/sparc.c (output_return): Pass 1 as 5th
23532 argument to final_scan_insn when in a delay slot.
23533 (output_sibcall): Likewise.
23535 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23537 * arm.c (arm_cpp_interwork): New variable.
23538 (arm_override_options): Set it if TARGET_INTERWORK was on the command
23540 * arm.h (arm_cpp_interwork): Declare it.
23541 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
23542 __THUMB_INTERWORK__ in the preprocessor.
23544 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
23546 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
23548 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23551 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
23552 Override default settings to account for -m32 and -m64.
23554 2004-07-08 Randolph Chung <tausq@debian.org>
23556 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
23558 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
23560 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
23561 before comparing it as such.
23563 2004-07-08 Richard Henderson <rth@redhat.com>
23565 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
23566 temporary. Use bit arithmetic to align.
23568 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
23570 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
23571 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
23572 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
23573 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
23574 add_labels_and_missing_jumps, find_jump_block,
23575 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
23577 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
23578 link_btr_uses, move_btr_def): Likewise.
23579 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
23580 expand_builtin_expect_jump): Likewise.
23581 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
23582 * calls.c (expand_call, emit_library_call_value_1): Likewise.
23583 * cfganal.c (forwarder_block_p): Likewise.
23584 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
23585 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
23586 find_bb_boundaries): Likewise.
23587 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
23588 merge_blocks_move_predecessor_nojumps,
23589 merge_blocks_move_successor_nojumps, insns_match_p,
23590 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
23591 try_optimize_cfg): Likewise.
23592 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
23593 * cfglayout.c (skip_insns_after_block, label_for_bb,
23594 record_effective_endpoints, insn_locators_initialize,
23595 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
23596 * cfgmainloop.c (create_loop_notes): Likewise.
23597 * cfgrtl.c (delete_insn, delete_insn_chain,
23598 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
23599 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
23600 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
23601 redirect_branch_edge, force_nonfallthru_and_redirect,
23602 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
23603 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
23604 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
23605 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
23606 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
23607 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
23608 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
23609 * combine.c (combine_instructions, can_combine_p, try_combine,
23610 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
23611 distribute_notes, distribute_links, insn_cuid): Likewise.
23612 * cse.c (fold_rtx, cse_insn, cse_around_loop,
23613 invalidate_skipped_block, cse_set_around_loop,
23614 cse_end_of_basic_block, cse_main, cse_basic_block,
23615 cse_condition_code_reg): Likewise.
23616 * cselib.c (cselib_process_insn): Likewise.
23617 * ddg.c (create_ddg): Likewise.
23618 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
23620 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
23621 gen_label_die, dwarf2out_var_location): Likewise.
23622 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
23623 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
23624 last_call_insn, active_insn_p, next_label, prev_label,
23625 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
23626 add_insn_before, remove_insn, add_function_usage_to,
23627 reorder_insns, find_line_note, remove_unnecessary_notes,
23628 emit_insn_after_1, classify_insn): Likewise.
23629 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
23630 connect_post_landing_pads, sjlj_mark_call_sites,
23631 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
23632 can_throw_internal, can_throw_external, set_nothrow_function_flags,
23633 convert_to_eh_region_ranges): Likewise.
23634 * explow.c (optimize_save_area_alloca): Likewise.
23635 * expr.c (expand_expr_real): Likewise.
23636 * final.c (insn_current_reference_address, compute_alignments,
23637 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
23638 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
23639 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
23640 propagate_block_delete_insn, propagate_one_insn,
23641 init_propagate_block_info, propagate_block, libcall_dead_p,
23642 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
23644 * function.c (instantiate_virtual_regs, reorder_blocks_1,
23645 expand_function_start, expand_function_end, contains,
23646 thread_prologue_and_epilogue_insns,
23647 reposition_prologue_and_epilogue_notes): Likewise.
23648 * gcse.c (constprop_register, bypass_conditional_jumps,
23649 insert_insn_end_bb, gcse_after_reload): Likewise.
23650 * genemit.c (gen_expand, gen_split): Likewise.
23651 * genpeep.c (gen_peephole, main): Likewise.
23652 * global.c (build_insn_chain): Likewise.
23653 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
23654 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
23655 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
23656 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
23657 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
23658 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
23659 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
23660 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
23661 dead_or_predicable): Likewise.
23662 * integrate.c (try_constants): Likewise.
23663 * jump.c (rebuild_jump_labels, cleanup_barriers,
23664 purge_line_number_notes, init_label_info, mark_all_labels,
23665 squeeze_notes, get_label_before, get_label_after,
23666 reversed_comparison_code_parts, simplejump_p, pc_set,
23667 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
23668 delete_barrier, delete_prior_computation, delete_computation,
23669 delete_related_insns, delete_for_peephole, redirect_jump):
23671 * lcm.c (optimize_mode_switching): Likewise.
23672 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
23674 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
23675 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
23676 * loop-iv.c (simplify_using_assignment): Likewise.
23677 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
23678 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
23679 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
23680 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
23681 check_insn_for_givs, check_final_value, update_giv_derive,
23682 basic_induction_var, product_cheap_p, check_dbra_loop,
23683 loop_insn_first_p, last_use_this_basic_block,
23684 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
23685 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
23686 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
23687 sms_schedule_by_order): Likewise.
23688 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
23689 * postreload.c (reload_cse_simplify_operands, reload_combine,
23690 reload_cse_move2add): Likewise.
23691 * predict.c (can_predict_insn_p, estimate_probability,
23692 expected_value_to_br_prob, process_note_predictions): Likewise.
23693 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
23694 * profile.c (branch_prob): Likewise.
23695 * ra-build.c (live_out_1, livethrough_conflicts_bb,
23696 detect_webs_set_in_cond_jump): Likewise.
23697 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
23698 ra_print_rtl_with_bb): Likewise.
23699 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
23700 * recog.c (next_insn_tests_no_inequality, find_single_use,
23701 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
23702 * reg-stack.c (next_flags_user, record_label_references,
23703 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
23704 compensate_edge, convert_regs_1): Likewise.
23705 * regclass.c (scan_one_insn): Likewise.
23706 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23707 regmove_optimize, fixup_match_1, single_set_for_csa,
23708 combine_stack_adjustments_for_block): Likewise.
23709 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
23710 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
23711 find_equiv_reg): Likewise.
23712 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
23713 reload_as_needed, emit_input_reload_insns, do_output_reload,
23714 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
23716 * reorg.c (find_end_label, emit_delay_sequence,
23717 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
23718 get_jump_flags, rare_destination, mostly_true_jump,
23719 try_merge_delay_insns, redundant_insn, own_thread_p,
23720 fill_simple_delay_slots, fill_slots_from_thread,
23721 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
23722 dbr_schedule): Likewise.
23723 * resource.c (find_basic_block, next_insn_no_annul,
23724 find_dead_or_set_registers, mark_target_live_regs): Likewise.
23725 * rtl.h (RTX_PREV): Likewise.
23726 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
23727 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
23728 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
23729 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
23730 tablejump_p, computed_jump_p, insns_safe_to_move_p,
23731 find_first_parameter_load, can_hoist_insn_p): Likewise.
23732 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
23733 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
23734 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
23735 schedule_ebbs): Likewise.
23736 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
23737 is_conditionally_protected, can_schedule_ready_p,
23738 add_branch_dependences, debug_dependencies): Likewise.
23739 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
23741 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
23742 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
23743 set_dominates_use, ujump_to_loop_cont): Likewise.
23744 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
23745 * varasm.c (output_constant_pool_1): Likewise.
23747 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23749 * tree-scalar-evolution.c: New file.
23750 * tree-scalar-evolution.h: New file.
23751 * tree-ssa-loop-niter.c: New file.
23752 * Makefile.in (SCEV_H): New.
23753 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
23754 * cfgloop.h (struct loop): Add bounds field.
23755 * tree-flow.h (struct tree_niter_desc): New type.
23756 (number_of_iterations_cond, number_of_iterations_exit,
23757 loop_niter_by_eval, find_loop_niter_by_eval,
23758 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
23759 free_numbers_of_iterations_estimates): Declare.
23760 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
23761 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
23762 * doc/invoke.texi (max-iterations-to-track): Document.
23764 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
23766 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
23767 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
23768 (MODE_AFTER): Add cast appropriately.
23769 * config/sh/sh.md (movdi splitter): Likewise.
23770 (casesi_worker_2): Add const qualifier appropriately.
23771 (eh_return): Remove unused variable.
23772 (insv): Initialize v;
23774 2004-07-08 Richard Henderson <rth@redhat.com>
23776 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
23777 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23778 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
23779 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
23780 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
23782 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
23783 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23784 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
23785 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
23787 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
23788 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23789 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
23790 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
23792 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
23793 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23794 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
23795 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
23797 * config/i860/i860-protos.h (i860_va_arg): Remove.
23798 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23799 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
23800 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
23802 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23804 * system.h: Prototype getpagesize if missing.
23805 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
23806 * configure: Regenerate.
23807 * config.in: Regenerate.
23809 2004-07-08 Richard Henderson <rth@redhat.com>
23811 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
23812 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23813 (fr30_gimplify_va_arg_expr): New.
23814 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
23815 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
23817 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
23820 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
23821 of asm_noperands result.
23823 2004-07-08 Richard Henderson <rth@redhat.com>
23825 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
23826 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23827 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
23828 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
23830 2004-07-08 Richard Henderson <rth@redhat.com>
23832 * builtins.c (ind_gimplify_va_arg_expr): New.
23833 * tree.h (ind_gimplify_va_arg_expr): Declare.
23834 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
23836 2004-07-08 Jan Beulich <jbeulich@novell.com>
23838 * expmed.c (extract_bit_field): Correct condition to use vec_extract
23839 patterns also on vector elements other than the first one.
23840 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
23843 2004-07-08 Geoffrey Keating <geoffk@apple.com>
23845 * config/rs6000/darwin-ldouble.c: Correct reference
23846 to the Linnainmaa paper.
23848 2004-07-08 Richard Henderson <rth@redhat.com>
23850 * config/arc/arc-protos.h (arc_va_arg): Remove.
23851 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23852 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
23853 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
23855 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
23856 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23857 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
23858 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
23860 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23862 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
23864 2004-07-08 Zack Weinberg <zack@codesourcery.com>
23866 * c-decl.c (static_ctors, static_dtors): Make static.
23867 (pop_file_scope): Call c_common_write_pch and
23868 cgraph_finalize_compilation_unit here.
23869 (build_cdtor): Moved here from c-objc-common.c; simplify.
23870 (c_write_global_declarations_1): Clarify comment.
23871 (c_write_global_declarations): Close the external scope before
23872 doing anything else. Call build_cdtor, cgraph_optimize, and
23873 mudflap_finish_file here.
23874 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
23876 * c-objc-common.c: No need to include cgraph.h.
23877 (build_cdtor): Moved to c-decl.c.
23878 (c_objc_common_finish_file): Delete.
23879 * c-tree.h: Update to match.
23880 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
23881 (generate_static_references): Set TREE_USED before calling finish_decl.
23882 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
23883 on the static_instances_decl.
23885 2004-07-08 Zack Weinberg <zack@codesourcery.com>
23887 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
23888 decls when there is only one input translation unit.
23889 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
23890 change of 2004-07-05; do not treat declarations with
23891 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
23892 * opts.c (cur_in_fname): Delete.
23893 * opts.h: Likewise.
23894 * tree.c: Revert changes of 2004-07-05; no special treatment
23895 for TRANSLATION_UNIT_DECLs.
23896 * Makefile.in (tree.o): Update dependencies.
23898 2004-07-08 Roger Sayle <roger@eyesopen.com>
23900 * builtins.c (fold_builtin_strcpy): Merge functionality from
23901 simplify_builtin_strcpy. Add additional len argument. No longer
23902 static. Remove function prototype.
23903 (fold_builtin_strncpy): Likewise integrate functionality from
23904 simplify_builtin_strncpy. Add additional slen argument. No
23905 longer static. Remove function prototype.
23906 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
23907 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
23908 types of "ignore" and "unlocked" parameters to bool.
23909 (fold_builtin_1): Add additional ignore argument. Call renamed
23910 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
23911 builtins. Update arguments to fold_builtin_strncpy and
23912 fold_builtin_strcpy. Add function prototype.
23913 (fold_builtin): Add additional Boolean ignore argument to pass
23915 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
23916 and fold_builtin_strncpy instead of simplify_builtin_fputs,
23917 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
23919 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
23920 simplify_builtin_strncpy): Delete function prototypes.
23921 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
23922 fold_builtin_strncpy): Add function prototypes here.
23923 (fold_builtin): Update function prototype with new "bool ignore".
23925 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
23926 (ccp_fold_builtin): Update call to fold_builtin. Call
23927 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
23928 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
23929 simplify_builtin_strncpy respectively.
23930 * fold-const.c (fold): Update call to fold_builtin.
23932 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
23934 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
23937 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
23938 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
23939 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
23940 * calls.c: Remove ifdefs of macros above.
23941 * functions.c: Likewise.
23942 * expr.c: Likewise.
23944 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23946 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
23947 (arch attribute): Delete.
23948 (current_function_calls_alloca attribute): Rename into calls_alloca.
23949 (calls_eh_return): New attribute.
23950 (leaf_function): Likewise.
23951 (length attribute): Fix formula for sibcalls.
23952 (return insn): Correctly compute the 'length' attribute.
23953 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
23955 2004-07-08 Richard Henderson <rth@redhat.com>
23957 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
23958 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
23959 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
23960 * tree-eh.c (lower_eh_constructs_1): Likewise.
23961 * tree-sra.c (sra_walk_modify_expr): Likewise.
23962 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23963 (eliminate_unnecessary_stmts): Likewise.
23964 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
23965 * tree-tailcall.c (optimize_tail_call): Likewise.
23966 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
23968 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
23969 Jakub Jelinek <jakub@redhat.com>
23971 * config/i386/i386.c (override_options): Enable
23972 SSE prefetches with -mtune, as long as we are
23973 compiling for i686 or higher. All i686 processors
23974 accept SSE prefetches as NOPS, some i586's don't.
23976 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23979 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
23981 2004-07-08 Diego Novillo <dnovillo@redhat.com>
23983 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
23984 the handling of clobbering ASM_EXPRs.
23986 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23989 * config/sparc/sparc.c (function_value): In 64-bit mode,
23990 return the aggregates larger than 16 bytes like unions.
23992 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23995 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
23996 'temp' is zero, generate new pseudos as needed and emit the
23997 sequence of insns in single-assignment form. Resync comments
23999 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
24000 function before reload.
24002 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
24004 * vec.c (vec_assert_fail): Remove duplicate 'function'.
24006 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
24008 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
24009 Allocation is signed.
24010 (VEC_reserve): Return flag, allocation is signed.
24012 2004-07-08 Richard Henderson <rth@redhat.com>
24014 * tree-ssa-ccp.c (fold_stmt): Get type directly from
24015 OBJ_TYPE_REF_OBJECT.
24017 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
24018 Neil Booth <neil@daikokuya.co.uk>
24022 * c-decl.c (finish_struct): Ensure bit-fields are given the
24024 * c-common.c (c_common_signed_or_unsigned_type): For C, require
24025 the precision to match as well as the mode.
24026 * expr.c (reduce_to_bit_field_precision): New function.
24027 (expand_expr_real_1): Reduce expressions of bit-field type to
24029 * langhooks.h (reduce_bit_field_operations): New hook.
24030 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
24032 * c-lang.c, objc/objc-lang.c
24033 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
24034 * objc/objc-act.c (check_ivars): Convert types to bit-field types
24036 * tree.c (build_nonstandard_integer_type): New function.
24037 * tree.h (build_nonstandard_integer_type): New prototype.
24038 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
24039 conversions between integer and boolean types as useless.
24041 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24043 * c-common.c (c_common_nodes_and_builtins): Do not
24044 create __builtin_ptrdiff_t and __builtin_size_t.
24046 2004-07-08 Andrew Pinski <apinski@apple.com>
24048 * Makefile.in (libbackend.o): Add -combine to the gcc
24051 2004-07-08 Nick Clifton <nickc@redhat.com>
24053 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
24056 2004-07-08 Richard Henderson <rth@redhat.com>
24058 * except.c (expand_eh_region_start, expand_eh_region_end,
24059 expand_eh_handler, expand_eh_region_end_cleanup,
24060 expand_start_all_catch, expand_start_catch, expand_end_catch,
24061 expand_end_all_catch, expand_eh_region_end_allowed,
24062 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
24063 expand_eh_region_end_fixup): Remove.
24064 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
24065 cleanups, outer_cleanups, label_chain, exception_region.
24066 (struct goto_fixup): Remove stack_level, cleanup_list_list.
24067 (struct label_chain): Remove.
24068 (struct stmt_status): Remove x_stack_block_stack.
24069 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
24070 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
24071 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
24072 end_cleanup_deferral, last_cleanup_this_contour,
24073 containing_blocks_have_cleanups_or_stack_level,
24074 any_pending_cleanups): Remove.
24075 (expand_null_return_1): Take no arguments.
24076 (expand_label, expand_naked_return, expand_return,
24077 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
24078 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
24079 expand_end_case_type): Don't use any of them.
24080 * calls.c (expand_call): Likewise.
24081 * dojump.c (do_jump): Likewise.
24082 * function.c (expand_function_end): Likewise.
24083 * expr.c (store_expr, expand_expr_real_1): Likewise.
24084 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
24085 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
24086 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
24087 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
24088 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
24089 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
24090 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
24091 for WITH_CLEANUP_EXPR.
24092 (gimple_push_cleanup): Likewise.
24093 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
24094 * print-tree.c (print_node): Likewise.
24095 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
24096 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
24097 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
24098 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
24099 (GOTO_SUBROUTINE_EXPR): Remove.
24100 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
24101 (DECL_TOO_LATE): Remove.
24102 * except.h, tree.h: Update decls.
24104 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24106 * explow.c (optimize_save_area_alloca): Do not accept parameters.
24107 * passes.c (rest_of_handle_final): Handle symout.
24108 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
24110 (rest_of_handle_sched): Break out SMS. Remove ifs for
24111 flag_schedule_insns and flag_modulo_sched.
24112 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
24113 collect at the end.
24114 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
24115 (rest_of_handle_partition_blocks, rest_of_handle_sms,
24116 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
24117 rest_of_handle_mode_switching, rest_of_handle_jump,
24118 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
24119 rest_of_handle_jump2, rest_of_handle_postreload,
24120 rest_of_handle_flow2, rest_of_clean_state,
24121 rest_of_handle_shorten_branches,
24122 rest_of_handle_prologue_epilogue,
24123 rest_of_handle_branch_target_load_optimize): New.
24124 (rest_of_compilation): Call the above. Remove ggc_collect
24125 calls moved to rest_of_handle_*.
24126 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
24128 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
24129 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
24130 * except.h (set_nothrow_function_flags): Update comment.
24131 * function.c (current_function_nothrow): Remove.
24132 * output.h (current_function_nothrow): Remove.
24133 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
24134 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
24136 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24139 * reorg.c: Revert 2004-06-30 change.
24140 (find_end_label): If HAVE_epilogue and !HAVE_return,
24141 return 0 instead of creating a label at the end of the insn chain.
24142 (optimize_skip): Account for the failure mode of find_end_label.
24143 (fill_simple_delay_slots): Likewise.
24144 (fill_slots_from_thread): Likewise.
24145 (relax_delay_slots): Likewise.
24147 2004-07-08 Diego Novillo <dnovillo@redhat.com>
24149 * tree-flow.h (addressable_vars): Declare.
24150 * tree-ssa-alias.c (addressable_vars): Define.
24151 (setup_pointers_and_addressables): Add addressable variables
24152 to addressable_vars.
24153 * tree-ssa-operands.c (get_stmt_operands): Move
24154 handling of ASM_EXPRs ...
24155 (get_asm_expr_operands): ... here.
24156 When the ASM_EXPR clobbers memory, also clobber addressable
24158 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
24159 (delete_tree_ssa): Reset addressable_vars.
24161 2004-07-07 Jan Beulich <jbeulich@novell.com>
24162 Richard Henderson <rth@redhat.com>
24164 * varasm.c (assemble_variable): Use assemble_zeros for
24165 zero-initialized variables.
24166 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
24167 for SECCAT_BSS and SECCAT_TBSS.
24169 2004-07-07 Jan Beulich <jbeulich@novell.com>
24171 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
24173 * expmed.c (emit_store_flag): Also special-case double-word
24174 (in-)equality comparison against -1.
24176 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
24177 passing arguments the containers for which are registers.
24179 * calls.c (emit_library_call_value_1): Use mode of function parameter
24180 rather than that of argument since constants have none.
24182 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
24184 Introduce H8SX support.
24185 * expr.c (expand_strcpy): Renamed and moved to...
24186 * builtins.c (expand_movstr): ... here. Tweak.
24187 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
24188 computed or has side effects.
24189 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
24190 unused, or if mempcpy fails. Adjust the return value in the
24191 latter case. Use movstr if everything else fails.
24192 * doc/md.texi (movstr): Document.
24193 (movmemM, clrmemM): Fix explanation of memory block operands.
24194 * config/h8300/h8300.md (stpcpy): Renamed to...
24195 (movstr): ... this. Adjust.
24196 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24197 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
24198 movmem* and clrstr* to clrmem*.
24199 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
24200 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
24201 GENERAL_REGS, always.
24202 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
24203 getting the stack pointer as addr.
24204 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
24205 from general_operand_dst.
24206 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
24208 (movmd_internal): ... this. Add modes to operands. Disparage `D'
24209 instead of requiring it to match only before reload.
24210 (stpcpy_internal_normal): New, normal-mode variant of...
24211 (stpcpy_internal): ... this. Add modes to operands. Disparage
24212 `D' instead of requiring it to match only before reload.
24213 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
24215 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
24216 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
24218 * config/h8300/h8300.md (attr type): Add call.
24219 (attr can_delay): If type is call, set it no.
24220 (call, call_value): Set type to call.
24221 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
24222 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
24223 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
24224 * tree.c (get_narrower): Don't narrow integral types into
24225 non-integral types.
24226 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
24227 frame_size *before* the first use.
24228 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
24230 (peephole2): Don't widen instructions that push SP. Move
24231 decrement of SP to the end of all stm-generating peepholes.
24232 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24233 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
24234 and OR to set it to all ones.
24235 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24236 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
24237 (call, call_value): Set can_delay to "no".
24238 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
24239 * config/h8300/h8300.md (extzv): Make subreg check more robust.
24240 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24241 * config/h8300/h8300.md (*brabit): Remove.
24242 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
24243 zero_extract. Use bit_memory_operand as the predicate for
24244 operand 1 and 'WU' as the constraint. Check the difference
24245 between the base length and the final one when deciding which
24246 type of branch to use.
24247 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24248 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
24249 Use convert_move to extend the result for TARGET_H8300SX. Check
24250 for QImode memory references. Optimize the case where the
24251 destination is a paradoxical subreg.
24252 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24253 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
24254 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
24255 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24256 * config/h8300/h8300.md: Include mova.md
24257 (length_table): Add mova and mova_zero.
24258 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
24259 after all constant addresses for '%R', '%X', '%T' and '%S'.
24260 (h8300_mova_length): New function.
24261 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
24262 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
24263 dependencies for s-config, etc.
24264 * config/h8300/gemova.sh: New file.
24265 * config/h8300/mova.md: Generated.
24266 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
24267 * config/h8300/h8300.c (h8300_bitfield_length): New.
24268 (nibble_operand): Adjust.
24269 (h8300_binary_length): Handle conditional binary op.
24270 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
24271 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
24272 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
24273 and P#<0, unused so far. W and Y are now prefixes to multi-letter
24274 constraints. WU is introduced as a variant of U that requires a
24275 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
24276 * config/h8300/h8300.md (attr type): Added bitbranch.
24277 (attr length_table): Added bitfield and bitbranch.
24278 (attr length): Compute bitbranch length.
24279 (andqi): Separate pattern for H8300SX. Use bfld for loading the
24280 least-significant bit of a byte.
24281 (brabit, brabc, brabs): New.
24282 (insv, extzv): Emit bfst and bfld on H8300SX.
24283 (bfld, bfst, seq, sne): New.
24284 (bstzhireg, cmpstz, bstz, bistz): New.
24285 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
24286 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
24287 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
24288 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
24289 (h8sx_unary_memory_operator): New function.
24290 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
24291 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
24292 * config/h8300/h8300.md: Add peepholes to combine reloads and
24294 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24295 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
24296 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
24297 (and?i, ior?i, xor?i): Likewise.
24298 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24299 * config/h8300/h8300.c: Move enums and prototypes to head of file.
24300 Various whitespace fixes.
24301 (h8300_constant_length): New function, split out from...
24302 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
24303 (h8300_classify_operand): Use IN_RANGE.
24304 (h8300_classify_operand): Use h8300_constant_length.
24305 (h8300_short_move_mem_p): Tighten size check.
24306 (h8sx_mergeable_memrefs_p): Tighten equality check.
24307 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
24308 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
24310 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
24311 * config/h8300/crtn.asm: Likewise.
24312 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
24313 if __H8300SX__ is defined.
24314 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
24315 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
24316 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
24317 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
24318 addresses as mode-dependent.
24319 * config/h8300/h8300.c (print_operand_address): Update call to
24321 (h8300_get_index): Take a mode argument. Rework to fix an
24322 earlier misunderstanding.
24323 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
24324 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
24325 into a register if TARGET_H8300SX.
24326 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
24327 TARGET_H8300SX. Also disable related define_splits.
24328 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
24329 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
24330 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
24331 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24332 * config/h8300/h8300.h (OK_FOR_Z): New macro.
24333 (EXTRA_CONSTRAINT_STR): Check it.
24334 * config/h8300/h8300.c (h8300_classify_operand): Accept null
24336 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
24337 * config/h8300/h8300.md (length_table): Add mov_imm4.
24338 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
24339 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24340 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
24342 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
24343 * config/h8300/h8300.c (h8300_reorg): New function.
24344 (TARGET_MACHINE_DEPENDENT_REORG): Define.
24345 * config/h8300/h8300.md (length): Subtract the length of the
24346 delay slot from (pc) when checking the range of forward branches.
24347 (delay_slot, can_delay): New attributes.
24348 (define_delay): Add bra/s handling.
24349 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
24350 (jump): Add delayed-branch handling.
24351 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
24352 * expr.c (expand_strcpy): New function.
24353 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
24354 (expand_builtin_stpcpy): Likewise.
24355 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
24356 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
24357 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
24358 handling to improve register allocation for -fno-omit-frame-pointer.
24359 (h8sx_split_movmd): Delete, moving er6 handling into...
24360 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
24361 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
24362 (movmd): Add calls to copy_rtx.
24363 (movmd_internal): In the second alternative, allow the initial and
24364 final destination registers to be different . Update the splitter
24365 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
24366 instead of h8sx_split_movmd.
24367 (stpcpy, movsd): New expanders.
24368 (movsd_internal): New define_insn.
24369 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
24370 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
24371 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
24372 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
24373 and DESTINATION_REGS.
24374 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
24375 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
24376 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
24377 (h8300_move_ratio): Declare.
24378 (MOVE_RATIO): Use it.
24379 * config/h8300/h8300.c (h8300_move_ratio): New variable.
24380 (h8300_init_once): Initialize it.
24381 (h8300_reg_class_from_letter): New function.
24382 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
24383 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
24384 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
24385 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
24386 (movstrsi, movmd): New expanders.
24387 (movmd_internal): New insn.
24388 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
24389 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
24390 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
24391 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
24392 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
24393 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24394 * config/h8300/h8300.c (nibble_operand): Fix warning.
24395 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
24396 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
24397 (movsf_h8300h): Disable for TARGET_H8300SX.
24398 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24399 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
24400 h8300_stm_parallel and h8300_return_parallel.
24401 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
24402 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
24403 h8300_stm_parallel, h8300_return_parallel): New functions.
24404 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
24405 if TARGET_H8300SX. Use h8300_push_pop.
24406 (h8300_expand_epilogue): Likewise. Try to merge the return insn
24407 and final pop when generating h8sx code. Always emit some form
24409 * config/h8300/h8300.md: Don't enforce register alignment in
24410 stm peepholes if TARGET_H8300SX.
24411 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
24412 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
24413 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
24414 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24415 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
24416 (MULTILIB_DIRNAMES): Add a directory for it.
24417 (MULTILIB_MATCHES): Delete.
24418 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24419 * final.c (walk_alter_subreg): Handle addresses with subregs
24420 inside a ZERO_EXTEND or AND.
24421 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
24422 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
24424 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
24425 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
24426 @(dd,Rn.w) and @(dd,ERn.L).
24427 (h8300_displacement_size): Take the whole address as argument.
24428 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
24429 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24430 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
24431 (h8sx_mergeable_memrefs_p): Declare.
24432 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
24433 (HAVE_PRE_INCREMENT): Likewise.
24434 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
24435 addresses for TARGET_H8300SX,
24436 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
24438 (movb_length_table, movl_length_table): New tables.
24439 (movw_length_table): Define to movb_length_table.
24440 (h8300_displacement_size): New, split out from...
24441 (h8300_classify_address): ...here. Handle pre/post inc/dec.
24442 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
24443 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
24444 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
24445 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
24446 (compute_plussi_length, compute_plussi_cc): Update accordingly.
24447 (h8sx_unary_shift_operator): Get the mode from the operator.
24448 (binary_shift_operator): Likewise.
24449 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
24450 a memory reference, check whether the reference is offsettable.
24451 (length_table): Add movb, movw and movl.
24452 (movqi): Add new h8sx pattern. Don't force one operand to be a
24453 register when generating h8sx code.
24454 (movhi, movsi, movsf): Likewise.
24455 (movstrictqi): Use the length_table attribute.
24456 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
24457 (addqi3): Split into a define_expand and define_insn. Don't accept
24458 memory operands in the expander. Use h8300_operands_match_p to
24459 check for matching operands in the define_insn.
24460 (subqi3, negqi2, one_cmplqi2): Likewise.
24461 (add[hs]i3): Don't accept memory operands in the expander. Likewise
24462 in any patterns that are unused in h8sx code. In the h8sx patterns,
24463 use h8300_operands_match_p to check whether operands match.
24464 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
24465 one_cmpl[hs]i3): Likewise.
24466 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
24468 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
24469 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
24470 (h8300_insn_length_from_table): Add a second parameter.
24471 (output_h8sx_shift): Declare.
24472 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
24473 (EXTRA_CONSTRAINT): Replace with...
24474 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
24475 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
24476 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
24477 and h8sx_binary_shift_operator.
24478 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
24479 for TARGET_H8300SX.
24480 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
24481 (bit_memory_operand, fix_bit_operand): Likewise.
24482 (h8300_length_table_for_insn): Remove.
24483 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
24485 (h8300_short_immediate_length, h8300_binary_length): New functions.
24486 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
24487 (output_plussi): Use sub to add negative constants.
24488 (compute_plussi_length): Adjust accordingly.
24489 (h8sx_single_shift_type): New enum.
24490 (h8sx_single_shift, h8sx_unary_shift_operator,
24491 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
24492 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
24493 single h8sx instruction. Return false in this case.
24494 * config/h8300/h8300.md (length_table): Add short_immediate.
24495 (length): Pass the operand array to h8300_insn_length_from_table.
24496 (adjust_length): Assume "no" for insns with a length_table attribute.
24497 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
24498 (*addhi3_h8300hs): Don't use for h8sx.
24499 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
24501 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
24502 1's predicate to nonimmediate_operand. Only skip default expansion
24503 if expand_a_shift or expand_a_rotate returns true. Add new patterns
24504 for single h8sx shift instructions.
24505 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
24506 * config/h8300/h8300.c (nibble_operand): Split out of...
24507 (reg_or_nibble_operand): ... this.
24508 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
24509 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
24510 umulhisi3): Introduce expand, and introduce separate insns for
24511 sign- or zero-extended REG and already-extended CONST_INT.
24512 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
24513 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
24514 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
24515 (subhi3): Likewise. Don't accept immediates for operand 1.
24516 Remove the early clobber from second alternative of the h8300s pattern.
24517 (subsi3): Generalize for h8sx. Force operand 2 into a register
24518 on plain h8300 targets.
24519 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
24520 (subsi3_h8300h): Generalize for h8sx.
24521 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
24522 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
24523 * config/h8300/h8300.c (reg_or_nibble_operand): New.
24524 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24525 (TARGET_H8300SXMUL): New.
24526 (CONST_OK_FOR_P): New.
24527 (CONST_OK_FOR_LETTER_P): Adjust.
24528 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
24529 umulhisi3): Accept 4-bit immediate on H8SX.
24530 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
24531 (udivsi3, divhi3, udivsi3, divsi3): New.
24532 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
24533 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
24534 * config/h8300/h8300.h (OK_FOR_Q): New macro.
24535 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
24536 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
24537 Add ADDRESSOF to the bit_operand entry.
24538 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
24539 (h8300_src_operand): Likewise.
24540 (bit_operand): Check nonimmediate_operand rather than general_operand.
24541 Accept any nonimmediate_operand in h8sx code.
24542 (h8300_and_costs): Initialize operands[1].
24543 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
24544 (h8300_operand_class): New enum.
24545 (h8300_length_table): New typedef.
24546 (addb_length_table, addw_length_table, addl_length_table,
24547 logicl_length_table): New tables.
24548 (logicb_length_table, logicw_length_table): New macros.
24549 (h8300_classify_operand, h8300_length_from_table,
24550 h8300_length_table_for_insn, h8300_unary_length,
24551 h8300_insn_length_from_table): New functions.
24552 (output_plussi): Only use adds and subs for register destinations.
24553 Disable redundant clause.
24554 (compute_plussi_cc): Likewise.
24555 (compute_plussi_length): Likewise. Use h8300_length_from_table
24556 to work out the length of an insn.
24557 (output_logical_op): Only use narrower immediate instructions
24558 if the destination is a register.
24559 (compute_logical_op_cc): Likewise.
24560 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
24561 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
24562 * config/h8300/h8300.md (length_table): New attribute.
24563 (length): When an instruction has a length_table attribute, use
24564 h8300_insn_length_from_table to calculate its default length.
24565 (cmpqi): Use h8300_dst_operand for the first operand and
24566 h8300_src_operand for the second.
24567 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
24568 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
24569 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
24570 iorsi3, xorhi3, xorsi3): Likewise.
24571 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
24572 so that it allows any combination of operands for TARGET_H8300SX.
24573 (iorqi3, xorqi3): Likewise.
24574 (cmpqi): Use the length_table attribute.
24575 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
24576 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24577 (cmpqi): Add 'Q' constraint.
24578 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
24579 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24580 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
24581 * config/h8300/h8300.h (MASK_H8300SX): New macro.
24582 (TARGET_H8300S): True for both -ms and -msx.
24583 (TARGET_H8300SX): New macro.
24584 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
24585 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
24586 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
24587 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
24588 [Temporary change.]
24589 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
24590 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
24591 16-bit pointers and 32-bit ints.
24592 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
24593 CONST_DOUBLE with mode no wider than SImode.
24594 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
24596 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
24597 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
24599 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24600 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
24601 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
24603 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24605 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
24607 2004-07-07 Per Bothner <per@bothner.com>
24609 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
24611 2004-07-07 Mike Stump <mrs@apple.com>
24613 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
24614 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
24615 (machopic_finish): Likewise.
24617 2004-07-07 Richard Henderson <rth@redhat.com>
24619 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
24620 through any value-preserving cast.
24622 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24624 * function.c (assign_parm_find_data_types): Call
24625 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
24627 2004-07-07 Steven Bosscher <stevenb@suse.de>
24629 * tree-cfg.c (group_case_labels): Remove case labels that have
24630 the same target as the default case.
24632 2004-07-07 Steven Bosscher <stevenb@suse.de>
24634 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
24635 regardless of DECL_LANG_SPECIFIC being present or not.
24636 * tree.h (DECL_NUM_STMTS): Purge.
24638 2004-07-07 Andrew Pinski <apinski@apple.com>
24640 * configure: Regenerate with the right autoconf.
24642 2004-07-07 David Edelsohn <edelsohn@gnu.org>
24644 * ifcvt.c (total_bb_rtx_cost): New function.
24645 (find_if_case_1): Compare rtx_cost of basic block to cost of
24647 (find_if_case_2): Same.
24649 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
24652 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
24653 (output_return): Likewise.
24654 (output_sibcall): Abort if !flag_delayed_branch.
24655 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
24656 (emit_and_preserve): New function.
24657 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
24658 indirect jump to the thunked-to function if !flag_delayed_branch.
24659 * config/sparc/sparc.md (delayed_branch): New attribute.
24660 (load_pcrel_sym): Honor flag_delayed_branch. Use above
24661 attribute to compute the length of the insn.
24662 (goto_handler_and_restore): Likewise.
24664 2004-07-07 Andrew Pinski <apinski@apple.com>
24666 PR tree-optimization/15777
24667 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
24669 * expr.c (expand_expr_real_1): Fix formating.
24670 BUFFER_REF and IN_EXPR are dead.
24671 * fold-const.c (non_lvalue): BUFFER_REF is dead.
24672 * tree-inline.c (estimate_num_insns_1): Likewise.
24673 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
24674 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
24675 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
24677 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
24679 * collect2.c (dump_file): Don't call cplus_demangle if
24680 HAVE_LD_DEMANGLE is defined.
24681 (main): Pass "--demangle" to ld if no_demangle is not 0 and
24682 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
24683 if HAVE_LD_DEMANGLE is defined.
24685 * configure.ac (--with-demangler-in-ld): Added
24686 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
24687 --with-demangler-in-ld is used.
24688 * config.in: Regenerated.
24689 * configure: Likewise.
24691 2004-07-07 Roger Sayle <roger@eyesopen.com>
24693 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
24694 for simple floating point operations "fp", double precision
24695 multiplication "dmul", and single and double precision division
24696 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
24697 (ppc630_cost): New table split from ppc620_cost, to distinguish
24698 differences in floating point latencies.
24699 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
24700 (rs6000_rtx_costs): Add support for single and double precision
24701 floating point addition, subtraction, multiplication, division,
24702 fused-multiply-add, fused-multiply-sub, negation, absolute value
24703 and negative absolute value. Tweak MEM case to use prefered idiom.
24705 2004-07-07 Richard Henderson <rth@redhat.com>
24707 * tree-flow-inline.h (may_propagate_copy): Move...
24708 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
24709 attempt to copy between types requiring conversion.
24710 * tree-flow.h (may_propagate_copy): Update decl.
24711 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
24713 2004-07-07 Jakub Jelinek <jakub@redhat.com>
24715 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
24716 from -mtune= option.
24718 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24720 * builtins.c: Rename movstr*, except for movstrict*, to
24721 movmem* and clrstr* to clrmem*.
24722 * expr.c: Likewise.
24723 * expr.h: Likewise.
24724 * genopinit.c: Likewise.
24725 * integrate.c: Likewise.
24726 * local-alloc.c: Likewise.
24727 * optabs.c: Likewise.
24728 * optabs.h: Likewise.
24729 * config/alpha/alpha.h: Likewise.
24730 * config/alpha/alpha.md: Likewise.
24731 * config/arm/arm-protos.h: Likewise.
24732 * config/arm/arm.c: Likewise.
24733 * config/arm/arm.md: Likewise.
24734 * config/avr/avr.md: Likewise.
24735 * config/c4x/c4x.c: Likewise.
24736 * config/c4x/c4x.md: Likewise.
24737 * config/frv/frv.md: Likewise.
24738 * config/i386/i386-protos.h: Likewise.
24739 * config/i386/i386.c: Likewise.
24740 * config/i386/i386.h: Likewise.
24741 * config/i386/i386.md: Likewise.
24742 * config/i860/i860.c: Likewise.
24743 * config/i860/i860.md: Likewise.
24744 * config/ip2k/ip2k.md: Likewise.
24745 * config/ip2k/libgcc.S: Likewise.
24746 * config/ip2k/t-ip2k: Likewise.
24747 * config/m32r/m32r.c: Likewise.
24748 * config/m32r/m32r.md: Likewise.
24749 * config/mcore/mcore.md: Likewise.
24750 * config/mips/mips.c: Likewise.
24751 * config/mips/mips.md: Likewise.
24752 * config/ns32k/ns32k.c: Likewise.
24753 * config/ns32k/ns32k.h: Likewise.
24754 * config/ns32k/ns32k.md: Likewise.
24755 * config/pa/pa.c: Likewise.
24756 * config/pa/pa.md: Likewise.
24757 * config/pdp11/pdp11.h: Likewise.
24758 * config/pdp11/pdp11.md: Likewise.
24759 * config/rs6000/rs6000.c: Likewise.
24760 * config/rs6000/rs6000.md: Likewise.
24761 * config/s390/s390-protos.h: Likewise.
24762 * config/s390/s390.c: Likewise.
24763 * config/s390/s390.md: Likewise.
24764 * config/sh/lib1funcs.asm: Likewise.
24765 * config/sh/sh.c: Likewise.
24766 * config/sh/sh.md: Likewise.
24767 * config/sh/t-sh: Likewise.
24768 * config/sparc/sparc.h: Likewise.
24769 * config/vax/vax.md: Likewise.
24770 * config/xtensa/xtensa.c: Likewise.
24771 * config/xtensa/xtensa.md: Likewise.
24772 * doc/invoke.texi: Likewise.
24773 * doc/md.texi: Likewise.
24774 * doc/rtl.texi: Likewise.
24776 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
24779 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
24780 * config/mips/mips.c (mips_declare_common_object): New function,
24781 mostly split out from...
24782 (mips_output_aligned_decl_common): ...here.
24783 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
24784 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
24785 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
24786 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
24788 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24791 * function.c (assign_parms): Fix typo from previous change.
24793 2004-07-07 Jason Merrill <jason@redhat.com>
24796 * doc/extend.texi (C++ Interface): Correct information and
24799 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
24804 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
24807 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
24810 * config/m32r/m32r.c (m32r_function_symbol): New function:
24811 Generate a symbol name RTX with the correct m32r specific flags
24813 (block_move_call): Use new function to generate correct symbol.
24814 * config/m32r/m32r-protos.h: Add prototype for new funcion.
24815 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
24818 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
24820 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
24821 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
24822 TYPE_BINFO_BASETYPE): Remove.
24823 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
24825 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
24827 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
24828 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
24829 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
24830 (struct tree_binfo): Rename base_types to base_binfos.
24831 * alias.c (record_component_aliases): Adjust BINFO macros.
24832 * dbxout.c (dbxout_type): Likewise.
24833 * dwarf2out.c (gen_member_die): Likewise.
24834 * sdbout.c (sdbout_one_type): Likewise.
24835 * tree-dump.c (deque_and_dump): Likewise.
24836 * config/i386/i386.c (classify_argument,
24837 contains_128bit_aligned_vector_p): Likewise.
24839 2004-07-07 Nick Clifton <nickc@redhat.com>
24841 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
24842 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
24844 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
24846 * vec.h: Fix the example use.
24848 2004-07-06 Richard Henderson <rth@redhat.com>
24850 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
24851 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
24852 * tree-inline.c (copy_body_r, setup_one_parameter,
24853 initialize_inlined_parameters, expand_call_inline,
24854 declare_inline_vars): Don't check it.
24855 (expand_calls_inline): Remove old version, rename new version
24856 from gimple_expand_calls_inline.
24857 * tree-optimize.c (execute_gimple): Remove.
24858 (pass_gimple): Don't run anything.
24860 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
24862 * doc/sourcebuild.texi: Use semicolons instead of commas in
24865 2004-07-06 Richard Henderson <rth@redhat.com>
24867 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
24868 (sra_walk_modify_expr, scan_init): Likewise.
24869 (generate_element_zero): Check visited before scanning children.
24870 (generate_element_init): Set visited on error.
24871 (scalarize_init): Handle generate_element_init failure similar
24874 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
24876 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
24877 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
24879 2004-07-06 Richard Henderson <rth@redhat.com>
24881 * config/i386/i386.c (legitimize_pic_address): Make static.
24882 (legitimize_address): Handle CONST with TLS operand.
24883 (ix86_expand_move): Don't call legitimize_pic_address directly.
24884 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
24886 2004-07-06 Roger Sayle <roger@eyesopen.com>
24888 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
24889 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
24890 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
24891 is currently executed unconditionally, i.e. not in "else_bb".
24893 2004-07-06 Steven Bosscher <stevenb@suse.de>
24895 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
24896 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24897 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
24898 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24899 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
24900 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24901 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
24902 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24903 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
24904 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24905 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
24906 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24907 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
24908 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24909 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
24910 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24912 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
24914 * dojump.c (do_jump): REFERENCE_EXPR is dead.
24915 * expr.c (expand_expr_real_1): Ditto.
24916 * tree-inline.c (estimate_num_insns_1): Ditto.
24917 * tree-pretty-print.c (dump_generic_node): Ditto.
24918 (op_symbol): Ditto.
24921 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
24923 * tree-ssa-pre.c (reference_node_pool): New pool.
24924 (find_or_generate_expression): Class 'r' is okay too.
24925 (create_value_expr_from): Ditto.
24926 (add_to_sets): LHS should not include vuses.
24927 (eliminate): Ditto.
24928 (compute_avail): Reverse ordering of tests.
24929 Valuize INDIRECT_REF as well.
24931 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
24933 PR rtl-optimization/16380
24934 * loop.c (check_dbra_loop): Sink comparison instructions if they
24935 do something other than set cc0.
24937 2004-07-06 James E Wilson <wilson@specifixinc.com>
24939 * doc/interface.texi (longjmp and automatic variables): Delete
24940 paragraph recommending taking the address of a variable.
24942 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
24944 * vec.h (VEC_embedded_alloc): Remove.
24945 (VEC_embedded_size, VEC_embedded_init): New.
24946 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
24948 (VEC_truncate): New.
24949 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
24950 (vec_embedded_alloc): Remove.
24951 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
24952 (vec_embedded_alloc): Remove.
24954 2004-07-06 Mark Mitchell <mark@codesourcery.com>
24956 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
24957 (gt-langhooks.h): Remove.
24959 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
24961 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
24963 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
24965 * config/sparc/sparc.c (get_pc_symbol): Rename into
24966 add_pc_to_pic_symbol.
24967 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
24968 (load_pic_register): Account for previous changes.
24969 Use reg_names. Don't create the label twice.
24970 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
24971 UNSPEC_LOAD_PCREL_SYM.
24972 (get_pc): Rename into load_pcrel_sym. Add predicate to
24973 operands. Remove condition.
24975 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
24977 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
24978 RECORD, UNION & QUAL_UNION is actually a binfo.
24980 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
24981 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
24982 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
24983 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
24984 * dwarf2out.c (add_data_member_location_attribute): Likewise.
24985 (gen_inheritance_die): Likewise.
24986 * tree-dump.c (deque_and_dump): Likewise.
24987 * doc/c-tree.texi (Binfos): Add under reconstruction note.
24989 2004-07-06 Steven Bosscher <stevenb@suse.de>
24991 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24993 * config/mcore/mcore.md: Model memory latency with a simple DFA
24994 pipeline description instead of a define_function_unit.
24996 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24998 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
24999 * langhooks.h (var_mod_type_p): Likewise.
25000 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
25001 * expr.c (count_type_elements): Properly handle return from
25002 array_type_nelts and properly test for overflow.
25003 * gimplify.c (gimplify_init_constructor): Properly handle return
25004 from array_type_nelts.
25005 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
25006 * integrate.c (copy_decl_for_inlining): Correct comments.
25007 * tree-inline.c (remap_decl): Update comments, remove dead code,
25008 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
25009 (remap_type): Only remap if variably modified by vars in function
25011 (copy_body_r): Use compatible_type langhooks to see when can fold.
25012 (setup_one_parameter): Don't remap type.
25013 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
25014 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
25015 compute TREE_INVARIANT for decl case.
25016 (find_var_from_fn): New function.
25017 (variably_modified_type_p): Add arg and call new function.
25018 * tree.h (variably_modified_type_p): Add extra arg.
25020 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
25022 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
25023 (goto_handler_and_restore_v9): Delete disabled insn.
25024 (goto_handler_and_restore_v9_sp64): Likewise.
25026 2004-07-05 Roger Sayle <roger@eyesopen.com>
25028 * calls.c (load_register_parameters): Call expand_shift instead
25029 of expand_binop with ashl_optab (or other shift optab) directly.
25030 * expr.c (emit_group_load, emit_group_store): Likewise.
25031 * function.c (assign_parm_setup_block): Likewise.
25032 * stmt.c (shift_return_value): Likewise.
25034 2004-07-05 Jakub Jelinek <jakub@redhat.com>
25036 * expr.c (expand_assignment): Disable the bitfield += optimizations.
25038 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25040 * doc/sourcebuild.texi: Revert previous patch.
25042 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25044 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
25045 TARGET_MEM_FUNCTIONS.
25046 * system.h: Poison TARGET_MEM_FUNCTIONS.
25047 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
25048 bcmp_libfunc, bzero_libfunc): Remove.
25049 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
25051 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
25052 * doc/standards.texi: Don't mention calling BSD string functions.
25053 * doc/invoke.texi: Likewise. Mention that memmove may be called.
25054 * config/vax/t-memfuncs: New.
25055 * config/memcmp.c, config/memcpy.c, config/memmove.c,
25056 config/memset.c: New.
25057 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
25058 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
25060 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
25061 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
25062 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
25063 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
25064 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
25065 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
25066 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
25067 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
25068 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
25069 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
25071 2004-07-05 Richard Henderson <rth@redhat.com>
25073 * function.c (assign_parm_setup_reg): Properly rename variables in
25074 FUNCTION_ARG_CALLEE_COPIES section.
25076 2004-07-05 Zack Weinberg <zack@codesourcery.com>
25078 * tree-mudflap.c: Include cgraph.h.
25079 (mf_init_extern_trees): Rename to mudflap_init. Export.
25080 Rewrite to create synthetic declarations instead of looking
25081 up declarations from mf-runtime.h.
25082 (mf_make_builtin, mf_make_cache_struct_type): New functions.
25083 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
25084 Correct commentary.
25085 (execute_mudflap_function_decls, mudflap_register_call):
25086 Don't call mf_init_extern_trees.
25087 (mudflap_finish_file): Use cgraph_build_static_cdtor.
25089 * tree-mudflap.h: Update prototypes.
25090 * c-mudflap.c: Delete file.
25091 * c-common.c: Include tree-mudflap.h.
25092 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
25093 * Makefile.in: Remove all references to c-mudflap.o.
25094 Update dependencies.
25096 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25098 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
25099 displacements with the spatial-locality cache-control completer.
25101 2004-07-05 Zack Weinberg <zack@codesourcery.com>
25103 * langhooks.c: Don't include gt-langhooks.h.
25104 (var_labelno): Delete.
25105 (lhd_set_decl_assembler_name): Do not append a distinguishing
25106 number to file-scope internal-linkage declarations for the first
25107 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
25108 the declaration itself (if at block scope), or its containing
25109 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
25112 * opts.c (cur_in_fname): New global.
25113 * opts.h: Declare it.
25114 * tree.c: Include opts.h.
25115 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
25116 DECL_UID equal to cur_in_fname.
25117 (copy_node_stat): Do not change DECL_UID when copying a
25118 TRANSLATION_UNIT_DECL.
25119 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
25120 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
25122 * c-decl.c (c_static_assembler_name): Delete.
25123 * c-tree.h (c_static_assembler_name): Delete prototype.
25124 * c-lang.c, objc/objc-lang.c: Don't override
25125 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
25127 * Makefile.in (tree.o): Update dependencies.
25128 (GTFILES): Remove langhooks.c.
25130 2004-07-05 Roger Sayle <roger@eyesopen.com>
25132 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
25133 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
25134 Normalize "X % C" as "X % -C" for signed modulus and negative C.
25135 Optimize "X % -Y" as "X % Y" for signed modulus.
25136 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
25137 into "((unsigned) X % Y) == 0".
25139 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25141 * sourcebuild.texi (Config Fragments): Use @comma{} in
25142 cross-reference to section title.
25144 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25146 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
25147 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
25148 (gimplify_target_expr, gimplify_expr): Likewise.
25149 (copy_if_shared_r): No longer need special case for BIND_EXPR.
25150 (unshare_body, unvisit_body): Only look at nested if BODY_P is
25152 (gimplify_compound_lval): See if we can strip any useless conversion.
25153 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
25155 (gimplify_modify_expr_to_memset): Likewise.
25156 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
25157 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
25158 (declare_inline_vars): Likewise.
25159 (walk_type_fields): New function.
25160 (walk_tree): Use it.
25161 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
25163 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
25164 (sra_walk_modify_expr): Allow init function to fail.
25165 (scan_init): Now returns bool.
25166 (generate_element_init): If can't understand INIT, return false.
25167 (scalarize_init): Return false if generate_element_init does.
25169 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
25172 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
25173 bounds if bounds aren't constant.
25175 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
25177 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
25178 to type hooks; remove bogus PARAMS.
25180 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
25182 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
25183 * dwarf2out.c (add_data_member_location_attribute): Check for
25185 * tree.c (tree_node_kinds): Add "binfos".
25186 (binfo_lang_slots): New.
25187 (make_node_stat): Add TREE_BINFO.
25188 (make_tree_binfo_stat): New.
25189 (tree_node_structure): Add TREE_BINFO.
25190 * tree.def (TREE_BINFO): New.
25191 * tree.h (REC_OR_UNION_CHECK): Rename to ...
25192 (RECORD_OR_UNION_CHECK): ... here.
25193 (NOT_RECORD_OR_UNION_CHECK): New.
25194 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
25195 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
25196 RECORD_OR_UNION_CHECK.
25197 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
25198 (TYPE_LANG_SLOT_1): New.
25199 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
25200 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
25201 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
25202 (BINFO_ELTS): Remove.
25203 (BINFO_LANG_SLOT): New.
25204 (struct tree_binfo): New.
25205 (binfo_lang_slots): Declare.
25206 (enum tree_node_structure_enum): Add TS_BINFO.
25207 (union tree_node): Add binfo.
25208 (make_tree_binfo_stat): Declare.
25209 (make_tree_binfo): New.
25210 (enum tree_node_kind): Add binfo_kind.
25212 * objc/objc-act.c (start_class, objc_declare_protocols,
25213 start_protocols): Use TYPE_LANG_SLOT_1.
25214 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
25216 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
25217 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
25218 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
25219 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
25221 2004-07-05 Steven Bosscher <stevenb@suse.de>
25223 * rtl.h (struct rtx_def): Remove the integrated flag.
25224 Use the return_val flag for MEM_SCALAR_P.
25225 Reshuffle and update flags in CLEAR_RTX_FLAGS.
25227 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
25230 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
25231 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
25234 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
25236 * var-tracking.c: Fix some comments.
25237 (frame_stack_adjust): New.
25238 (vt_stack_adjustments): Init stack_adjust of entry block to
25239 minus stack adjustment of function prologue.
25240 (adjust_stack_reference): Do not adjust if adjustment == 0.
25241 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
25242 (emit_notes_in_bb): Likewise.
25243 (vt_add_function_parameters): Do not adjust locations of
25244 function arguments.
25245 (vt_initialize): Compute the stack adjustment of function
25246 prologue and offset the initial "location" of frame_base_decl
25247 from the stack pointer after prologue.
25249 2004-07-04 Richard Henderson <rth@redhat.com>
25251 * function.c (struct assign_parm_data_all): New.
25252 (struct assign_parm_data_one): New.
25253 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
25254 assign_parm_find_data_types, assign_parms_setup_varargs,
25255 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
25256 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
25257 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
25258 assign_parm_setup_block, assign_parm_setup_reg,
25259 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
25260 (assign_parms): ... here.
25262 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
25264 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
25265 now are bitmap_set_t's.
25266 (bitmap_insert_into_set): No point in inserting the value if
25268 (bitmap_set_contains): New function.
25269 (bitmap_set_replace_value): Add comment on why we do it
25271 (set_contains): Removed.
25272 (bitmap_set_subtract_from_value_set): New name of
25273 set_subtract now that it's arguments are two different
25276 (bitmap_find_leader): Change algorithm used.
25277 (find_or_generate_expression): Update use of functions for new
25279 (create_expression_by_pieces): Ditto.
25280 (insert_aux): Ditto.
25282 (add_to_sets): Ditto.
25284 (execute_pre): Ditto.
25285 (compute_avail): Ditto.
25286 Also ignore virtual phis.
25288 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25290 * combine.c (simplify_comparison): Fix comment typo.
25292 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
25294 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
25295 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
25296 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
25297 (output_restore): Change parameter from 'insn' to 'pat'.
25298 (output_return): Adjust call to output_restore.
25299 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
25300 Adjust call to output_restore.
25302 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25304 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
25305 and assert system is bsd.
25307 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25309 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
25310 (TARGET_SWITCHES): Remove -mdebugc.
25311 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
25312 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
25313 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
25314 (sle_[sd]i_reg): Delete.
25316 2004-07-04 Steven Bosscher <stevenb@suse.de>
25318 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
25320 * config/iq2000/iq2000.md: Translate old pipeline description to an
25321 equivalent new one.
25323 2004-07-04 Roger Sayle <roger@eyesopen.com>
25325 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
25326 Ensure the replacement rhs is valid gimple before performing
25327 the substitution. Return false if these sanity checks fail.
25328 (fold_stmt): Only set changed to true, if set_rhs returns true.
25329 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
25332 2004-07-04 Richard Henderson <rth@redhat.com>
25335 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
25337 2004-07-04 Mark Mitchell <mark@codesourcery.com>
25339 * configure.ac (ranlib_flags): New variable.
25340 * Makefile.in (RANLIB_FLAGS): New variable.
25341 (libbackend.a): Use it.
25342 * configure: Regenerated.
25344 2004-07-04 Roger Sayle <roger@eyesopen.com>
25346 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
25347 a "sign mask" instead of using ashr_optab directly.
25349 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25351 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
25352 * doc/cppopts.texi: Clarify processing of command-line defines.
25354 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
25356 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
25358 2004-07-04 Richard Henderson <rth@redhat.com>
25360 * rtl.def (ADDRESSOF): Remove.
25361 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
25362 (find_base_term, memrefs_conflict_p): Likewise.
25363 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
25364 (fold_rtx, cse_insn, set_live_p): Likewise.
25365 * dwarf2out.c (mem_loc_descriptor): Likewise.
25366 (add_location_or_const_value_attribute): Likewise.
25367 * emit-rtl.c (copy_insn_1): Likewise.
25368 * explow.c (memory_address): Likewise.
25369 * expmed.c (store_split_bit_field): Likewise.
25370 * expr.c (expand_expr_real_1): Likewise.
25371 * function.c (instantiate_decl
25372 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
25373 * genrecog.c (preds, validate_pattern): Likewise.
25374 * integrate.c (copy_rtx_and_substitute): Likewise.
25375 * recog.c (general_operand, register_operand): Likewise.
25376 (memory_address_p): Likwise.
25377 * reload1.c (eliminate_regs, elimination_effects): Likewise.
25378 * rtl.c (copy_rtx): Likewise.
25379 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
25380 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
25381 * rtlhooks.c (gen_lowpart_general): Likewise.
25382 * stmt.c (expand_asm_operands): Likewise.
25383 * web.c (entry_register, replace_ref, web_main): Likewise.
25384 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
25385 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
25386 * config/arm/arm.c (thumb_rtx_costs): Likewise.
25387 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
25388 * config/frv/frv.c (move_destination_operand, move_source_operand,
25389 condexec_dest_operand, condexec_source_operand,
25390 condexec_memory_operand): Likewise.
25391 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
25392 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
25393 (destination_xfmode_operand): Likewise.
25394 * config/mips/mips.h (PREDICATE_CODES): Likewise.
25395 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
25396 * config/s390/s390.c (general_s_operand): Likewise.
25397 * config/s390/s390.md (mov*): Likewise.
25398 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
25400 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
25401 * expr.c (expand_expr_real_1): Likewise.
25402 * stmt.c (expand_decl): Likewise.
25403 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25405 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
25406 postponed_insns, put_var_into_stack, put_reg_into_stack,
25407 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
25408 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
25409 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
25410 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
25411 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
25412 purge_bitfield_addressof_replacements, purge_addressof_replacements,
25413 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
25414 struct insns_for_mem_walk_info, insns_for_mem_walk,
25415 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
25416 setjmp_protect_args): Remove.
25417 (push_function_context_to): Don't handle var_refs_queue.
25418 (pop_function_context_from, free_after_compilation): Likewise.
25419 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
25420 (assign_parms, allocate_struct_function): Likewise.
25421 (use_register_for_decl): New.
25422 (expand_function_end): Don't setjmp_protect.
25423 * function.h (struct emit_status): Update commentary.
25424 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
25425 (max_parm_reg, parm_reg_stack_loc): Remove.
25426 * passes.c (DFI_addressof): Remove.
25427 (dump_file_info): Remove addressof.
25428 (rest_of_handle_addressof): Remove.
25429 (rest_of_compilation): Don't call it.
25430 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
25431 * stmt.c (expand_decl): Use use_register_for_decl.
25432 * tree.h: Update decls.
25433 * web.c (mark_addressof): Remove.
25434 * doc/invoke.texi (-dF): Remove.
25436 2004-07-03 Richard Henderson <rth@redhat.com>
25438 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
25439 instead of gen_mem_addressof.
25440 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
25441 TImode output register.
25443 2004-07-03 Richard Henderson <rth@redhat.com>
25445 PR tree-optimization/16341
25446 * tree-sra.c (sra_walk_function): Increment to next stmt before
25447 processing the current stmt.
25448 (sra_insert_after): Always use BSI_SAME_STMT.
25450 2004-07-03 Richard Henderson <rth@redhat.com>
25452 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
25453 fp plus with minus.
25455 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25457 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
25458 with tree_int_cst_equal.
25460 2004-07-03 Andreas Schwab <schwab@suse.de>
25462 * config/ia64/ia64.md: Define new attribute "empty".
25463 (prologue_use, nop_x, insn_group_barrier): Set it.
25465 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
25466 skip over "empty" insns.
25468 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25470 * tree-inline.c (initialize_inlined_parameters): Pass proper function
25471 context to gimplify_body.
25472 (walk_tree): Don't walk into types twice.
25473 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
25475 * tree-sra.c (generate_element_init): Remove any useless conversions.
25477 * gimplify.c (gimplify_conversion): Remove stripping useless
25478 conversions from here.
25479 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
25480 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
25481 Unshare before substituting PLACEHOLDER_EXPR.
25482 (gimplify_modify_expr_to_memset): Likewise.
25483 Pass address of TO to memset, not TO itself.
25484 (gimplify_init_constructor): Make copy of OBJECT so we have it each
25485 time we make an expression (to match a PLACEHOLDER_EXPR).
25487 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
25488 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
25489 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
25490 * tree-ssa-dom.c (local_fold): Likewise.
25492 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
25493 * langhooks.h (strct lang_hooks): New field type_max_size.
25494 * function.c (assign_temp): Call it.
25496 2004-07-03 Steven Bosscher <stevenb@suse.de>
25498 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
25499 * config/sh/sh.md: Convert the SH1 pipeline description to
25502 2004-07-02 Zack Weinberg <zack@codesourcery.com>
25504 * c-decl.c (struct c_binding): Remove contour field; add
25505 depth, invisible, nested fields.
25506 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
25507 (B_IN_EXTERNAL_SCOPE): New convenience macros.
25508 (bind): Add invisible and nested arguments. Initialize
25509 new fields of struct c_binding; adjust loop scanning for
25511 (free_binding_and_advance): Clear structure with memset.
25512 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
25513 in file scope, even if it's in external scope too.
25514 (pushdecl): Adjust to match. Create invisible file-scope
25515 declarations for block-scope forward declarations of static functions.
25516 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
25517 (undeclared_variable, lookup_label, declare_label, define_label)
25518 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
25519 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
25520 (store_parm_decls_oldstyle): Adjust to match.
25521 (diagnose_mismatched_decls): Correct handling of linkage clashes.
25522 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
25524 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
25525 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
25527 2004-07-02 Richard Henderson <rth@redhat.com>
25529 * c-decl.c (grokdeclarator): Don't frob current_function_decl
25530 around variable_size.
25531 (set_decl_nonlocal): Remove.
25532 (store_parm_decls): Add stmts for pending sizes.
25533 * calls.c (calls_function, calls_function_1): Remove.
25534 (precompute_arguments): Don't call it.
25535 * cfgexpand.c (set_save_expr_context): Remove.
25536 (tree_expand_cfg): Don't call it.
25537 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
25538 (dwarf2out_finish): Likewise.
25539 * expr.c (emit_block_move): Adjust addresses to BLKmode.
25540 (store_constructor): Don't pre-evaluate SAVE_EXPR.
25541 (safe_from_p): Don't queue SAVE_EXPRs.
25542 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
25543 or build plain VAR_DECLs.
25544 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
25546 (fold_checksum_tree): Don't special-case SAVE_EXPR.
25547 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
25548 (put_var_into_stack): Don't handle SAVE_EXPR.
25549 (gen_mem_addressof): Likewise.
25550 * function.h (struct function): Remove x_save_expr_regs.
25551 (save_expr_regs): Remove.
25552 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
25553 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
25554 * stor-layout.c (variable_size): Don't set it.
25555 (force_type_save_exprs, force_type_save_exprs_1): Remove.
25556 * tree-inline.c (remap_save_expr): Remove fn argument. Update
25557 all callers. Don't set SAVE_EXPR_CONTEXT.
25558 * tree-inline.h (remap_save_expr): Update decl.
25559 * tree.c (save_expr): Update build size.
25560 (first_rtl_op): Don't handle SAVE_EXPR.
25561 (unsave_expr_1, contains_placeholder_p): Likewise.
25562 (decl_function_context): Likewise.
25563 * tree.def (SAVE_EXPR): Remove args 1 and 2.
25564 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
25565 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
25567 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25569 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
25570 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
25571 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
25572 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
25573 some first-person references and patronizing comments. Based on
25575 * doc/invoke.texi: Don't reference fortran@gnu.org.
25576 * doc/trouble.texi (Warning when a non-void function value is
25577 ignored): Rewrite. From Russ Allbery and Chris Devers.
25579 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
25581 * tree-ssa-pre.c (bitmap_set_t): New.
25582 (bb_value_sets): avail_out is now a bitmap_set_t.
25583 (bitmap_find_leader): New function.
25584 (bitmap_value_insert_into_set): Ditto.
25585 (bitmap_set_copy): Ditto.
25586 (bitmap_value_replace_in_set): Ditto.
25587 (bitmap_set_contains_value): Ditto.
25588 (bitmap_set_new): Ditto.
25589 (bitmap_set_pool): New pool.
25590 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
25591 (insert_aux): Ditto.
25592 (add_to_sets): Ditto.
25593 (compute_avail): Ditto
25594 (eliminate): Ditto.
25597 (execute_pre): Ditto.
25599 2004-07-02 Roger Sayle <roger@eyesopen.com>
25601 * config/rs6000/rs6000.c (struct processor_costs): New structure
25602 used to hold instruction latencies/sizes for processor types.
25603 (rs6000_cost): New global variable pointing to current CPU's costs.
25604 (rs6000_override_options): Initialize rs6000_cost to point to the
25605 appropriate cost table based upon rs6000_cpu and optimize_size.
25606 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
25609 2004-07-02 Richard Henderson <rth@redhat.com>
25611 * expmed.c (make_tree): Don't use SET_DECL_RTL.
25613 2004-07-02 Steven Bosscher <stevenb@suse.de>
25615 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
25617 2004-07-01 Richard Henderson <rth@redhat.com>
25619 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
25620 (alpha_gp_save_rtx): Use assign_stack_local instead of
25623 2004-07-01 Richard Henderson <rth@redhat.com>
25625 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
25626 (alpha_rtx_cost_data): Update to match.
25627 (alpha_rtx_cost_size): New.
25628 (alpha_rtx_costs): Honor optimize_size.
25630 2004-07-01 Richard Henderson <rth@redhat.com>
25632 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
25633 * cfgexpand.c (tree_expand_cfg): Do it here.
25634 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
25635 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
25636 * config/mips/mips.c (mips_output_mi_thunk): And here.
25637 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
25638 * config/sh/sh.c (sh_output_mi_thunk): And here.
25639 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
25641 2004-07-01 Richard Henderson <rth@redhat.com>
25643 * tree.def (RTL_EXPR): Remove.
25644 * c-typeck.c (lvalue_p): Don't handle it.
25645 * expr.c (safe_from_p): Likewise.
25646 (expand_expr_real_1): Likewise.
25647 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
25648 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
25649 * gengtype.c (adjust_field_tree_exp): Likewise.
25650 * stmt.c (warn_if_unused_value): Likewise.
25651 * tree-gimple.c (recalculate_side_effects): Likewise.
25652 * tree-pretty-print.c (dump_generic_node): Likewise.
25653 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
25654 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
25655 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
25657 * stmt.c (struct stmt_status): Remove x_last_expr_type,
25658 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
25659 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
25660 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
25661 all the bits that tracked last_expr.
25662 (expand_end_bindings): Don't track last_expr.
25663 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
25664 (clear_last_expr): Remove.
25665 (expand_asm): Don't call it.
25666 (expand_asm_operands, expand_end_cond): Likewise.
25667 (expand_naked_return, expand_null_return_1): Likewise.
25668 * c-typeck.c (c_begin_compound_stmt): Likewise.
25669 * cfgexpand.c (expand_block): Use expand_expr_stmt.
25670 * expr.c (expand_expr_real_1): Likewise.
25671 * tree.h: Update prototypes.
25673 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
25674 (struct emit_status): Remove sequence_rtl_expr.
25675 (struct function): Remove x_rtl_expr_chain.
25676 (seq_rtl_expr, rtl_expr_chain): Remove.
25677 * function.c (struct temp_slot): Remove rtl_expr.
25678 (assign_stack_temp_for_type): Don't set it.
25679 (free_temp_slots, pop_temp_slots): Don't check it.
25680 (free_after_compilation): Don't clear x_rtl_expr_chain.
25681 (fixup_var_refs): Don't search it.
25682 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
25683 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
25685 (push_topmost_sequence): Likewise.
25686 (end_sequence, init_emit): Likewise.
25687 (start_sequence_for_rtl_expr): Remove.
25688 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
25689 * rtl.h (preserve_rtl_expr_result): Remove.
25691 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
25693 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
25694 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
25697 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
25699 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
25700 (STANDARD_STARTFILE_PREFIX_2): Define.
25701 (standard_startfile_prefix_1): Initialize to
25702 STANDARD_STARTFILE_PREFIX_1.
25703 (standard_startfile_prefix_2): Initialize to
25704 STANDARD_STARTFILE_PREFIX_2.
25705 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
25706 (STANDARD_STARTFILE_PREFIX_1): Define.
25707 (STANDARD_STARTFILE_PREFIX_2): Define.
25708 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
25709 (STANDARD_STARTFILE_PREFIX_2): Document.
25711 2004-07-01 Richard Henderson <rth@redhat.com>
25713 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
25714 in order to disable scalarization. Instead set a flag and wait
25715 for a candidate decl.
25717 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
25719 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
25720 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
25721 Use terminology "testsuite" and "enumerated".
25723 2004-07-01 Richard Henderson <rth@redhat.com>
25725 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
25726 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
25727 (initial_return_save): Likewise.
25728 (flush_queued_reg_saves): Remap register numbers.
25729 (dwarf2out_return_reg): Likewise.
25731 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25733 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
25735 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
25736 access functions for lower bound and element size and only output
25737 if lower bound nonzero or element size not same as that of type.
25738 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
25740 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25742 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
25744 2004-07-01 Per Bothner <per@bothner.com>
25746 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
25748 2004-07-01 Jakub Jelinek <jakub@redhat.com>
25750 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
25751 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
25752 first operand. Don't optimize if the bitfield is volatile.
25754 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25756 * c-pretty-print.c (pp_c_postfix_expression): Handle
25757 floating-point comparison operators.
25758 (pp_c_expression): Pass floating-point comparison
25759 operators to pp_c_postfix_expression.
25761 2004-07-01 Roger Sayle <roger@eyesopen.com>
25763 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
25764 rtx_cost instead of "had_mult" to determine whether the transformed
25765 expression is cheaper than the original.
25767 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
25769 * alias.c (get_alias_set, canon_rtx, get_addr,
25770 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
25772 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
25773 expand_builtin): Likewise.
25774 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
25776 * combine.c (can_combine_p, combinable_i3pat, try_combine,
25777 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
25778 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
25779 record_dead_and_set_regs_1, get_last_value_validate,
25780 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
25781 * cse.c (check_dependence, canon_hash, equiv_constant,
25782 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
25783 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
25784 count_reg_usage): Likewise.
25785 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
25786 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
25787 cselib_record_sets): Likewise.
25788 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
25789 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
25790 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
25791 * df.c (df_uses_record): Likewise.
25792 * dojump (do_jump): Likewise.
25793 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
25794 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
25795 decl_start_label): Likewise.
25796 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
25797 operand_subword, change_address_1, make_safe_from): Likewise.
25798 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
25799 stabilize, force_not_mem): Likewise.
25800 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
25801 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
25802 * expr.c (convert_move, convert_modes, emit_block_move,
25803 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
25804 emit_move_insn_1, expand_assignment, store_expr,
25805 store_constructor_field, store_constructor, store_field,
25806 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
25808 * final.c (cleanup_subreg_operands, alter_subreg,
25809 get_mem_expr_from_op): Likewise.
25810 * flow.c (notice_stack_pointer_modification_1,
25811 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
25813 * function.c (mark_temp_addr_taken, preserve_temp_slots,
25814 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
25815 optimize_bit_field, flush_addressof, purge_addressof_1,
25816 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
25817 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
25818 keep_stack_depressed): Likewise.
25819 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
25820 noce_process_if_block, find_memory): Likewise.
25821 * integrate.c (subst_constants, allocate_initial_values): Likewise.
25822 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
25823 update_equiv_regs): Likewise.
25824 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
25825 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
25826 * optabs.c (expand_abs, emit_unop_insn): Likewise.
25827 * passes.c (rest_of_handle_final): Likewise.
25828 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
25829 move2add_note_store): Likewise.
25830 * ra-build.c (detect_remat_webs): Likewise.
25831 * ra-debug.c (dump_static_insn_cost): Likewise.
25832 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
25833 * recog.c (validate_change, apply_change_group, cancel_changes,
25834 validate_replace_rtx_1, general_operand, register_operand,
25835 nonmemory_operand, push_operand, pop_operand, memory_operand,
25836 indirect_operand, asm_operand_ok, offsettable_memref_p,
25837 offsettable_nonstrict_memref_p, constrain_operands,
25838 store_data_bypass_p): Likewise.
25839 * reg-stack.c (subst_stack_regs_pat): Likewise.
25840 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
25841 copy_cost, reg_scan_mark_refs): Likewise.
25842 * regmove.c (optimize_reg_copy_3, stack_memref_p,
25843 combine_stack_adjustments_for_block): Likewise.
25844 * regrename.c (copyprop_hardreg_forward_1): Likewise.
25845 * reload.c (can_reload_into, push_reload, decompose, immune_p,
25846 find_reloads, find_reloads_address, find_reloads_address_1,
25847 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
25848 find_equiv_reg): Likewise.
25849 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
25850 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
25851 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
25852 delete_address_reloads): Likewise.
25853 * resource.c (mark_referenced_resources): Likewise.
25854 * rtlanal.c (get_jump_table_offset, count_occurrences,
25855 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
25856 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
25857 num_sign_bit_copies1): Likewise.
25858 * rtlhooks.c (gen_lowpart_general): Likewise.
25859 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
25860 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
25861 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
25862 sdbout_global_decl): Likewise.
25863 * simplify-rtx.c (simplify_subreg): Likewise.
25864 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
25865 expand_anon_union_decl, expand_end_case_type): Likewise.
25866 * unroll.c (calculate_giv_inc): Likewise.
25867 * var-tracking.c (stack_adjust_offset_pre_post,
25868 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
25869 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
25870 vt_add_function_parameters): Likewise.
25871 * varasm.c (make_var_volatile, notice_global_symbol,
25872 assemble_external, decode_addr_const, mark_weak,
25873 default_encode_section_info): Likewise.
25875 2004-07-01 Steven Bosscher <stevenb@suse.de>
25877 * stmt.c (check_seenlabel): Remove.
25878 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
25880 2004-07-01 Richard Henderson <rth@redhat.com>
25882 * function.h (struct function): Remove x_function_call_count.
25883 (function_call_count): Remove.
25884 * calls.c (expand_call): Don't set it.
25885 * integrate.c (copy_rtx_and_substitute): Likewise.
25887 * function.h (struct function): Remove x_cleanup_label.
25888 (cleanup_label): Remove.
25889 * stmt.c (expand_value_return): Don't use it.
25890 * function.c (free_after_compilation): Don't set it.
25891 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
25892 * cfgexpand.c (tree_expand_cfg): Update call.
25893 * tree.h (expand_function_start): Update decl.
25895 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
25898 * c-lang.c (c_initialize_diagnostics): Move from here ...
25899 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
25900 (c_tree_printer): Use pretty-printer to format %T.
25901 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
25902 before '*' if not C++.
25903 (pp_c_direct_abstract_declarator): Don't try to print array upper
25904 bound for flexible array members.
25905 * c-tree.h: Include "diagnostic.h".
25906 (c_initialize_diagnostics): Declare.
25907 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
25908 * c-format.c (format_type_warning): New function. Improve
25909 diagnostics for incorrect format argument types.
25910 (check_format_types): Use it. Add two parameters. Use the
25911 TYPE_MAIN_VARIANT of wanted_type.
25912 (check_format_info_main): Pass new parameters to
25913 check_format_types.
25914 (struct format_wanted_type): Update comment.
25916 2004-07-01 Nick Clifton <nickc@redhat.com>
25918 * target.h (struct gcc_target): Add new field to struct cxx:
25919 import_export_class.
25920 * target-def.h (TARGET_CXX): Initialise the new field.
25921 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
25923 * doc/tm.texi: Document the new target hook.
25925 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25927 * builtins.c (fold_builtin_classify): Fix typo.
25929 2004-07-01 Richard Henderson <rth@redhat.com>
25931 * function.c (identify_blocks, identify_blocks_1): Remove.
25932 * function.h (identify_blocks): Remove.
25933 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
25935 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25937 * builtins.c (fold_builtin_classify): New.
25938 (fold_builtin_unordered_cmp): Fix commentary.
25939 (fold_builtin): Use it.
25940 * builtins.def: Define builtins for isnan,
25941 isnanf, isnanl, finite, finitef, finitel,
25942 isinf, isinff, isinfl.
25944 2004-07-01 Richard Henderson <rth@redhat.com>
25946 * function.h (struct function): Remove dont_emit_block_notes.
25947 * gimple-low.c (lower_function_body): Don't set it.
25948 * cfgexpand.c (expand_block): Don't check it.
25949 * cfglayout.c (insn_locators_initialize): Likewise.
25950 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
25951 * passes.c (rest_of_compilation): Likewise.
25952 * stmt.c (expand_start_bindings_and_block): Likewise.
25953 (expand_end_bindings): Likewise.
25955 2004-07-01 Richard Henderson <rth@redhat.com>
25957 * cgraph.h (cgraph_build_static_cdtor): Declare.
25958 * cgraphunit.c (cgraph_build_static_cdtor): New.
25959 * c-objc-common.c (build_cdtor): Use it.
25960 * coverage.c (create_coverage): Likewise.
25961 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
25962 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
25964 See ChangeLog.11 for earlier changes.