1 2004-12-16 Richard Henderson <rth@redhat.com>
3 * config/i386/i386.md (extv, extzv, insv): Revalidate the
4 operand with ext_register_operand.
6 2004-12-16 Kazu Hirata <kazu@cs.umass.edu>
8 * global.c: Fix a comment typo.
10 2004-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
11 Roger Sayle <roger@eyesopen.com>
13 PR tree-optimization/18707
14 * cfgloopmanip.c (create_preheader): Move the preheader
15 only if the latch was falling through to the header.
17 2004-12-16 Danny Smith <dannysmith@users.sourceforge.net>
20 * config/i386/cygwin.h (GTHREAD_USE_WEAK): Define to 0.
22 2004-12-16 Richard Henderson <rth@redhat.com>
23 Aldy Hernandez <aldyh@redhat.com>
25 * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
28 2004-12-16 H.J. Lu <hongjiu.lu@intel.com>
31 * config/alpha/t-osf4 (SHLIB_LINK): Use `.backup' as the suffix
32 to back up the existing shared library.
33 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
34 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
35 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
36 * config/sh/t-linux (SHLIB_LINK): Likewise.
37 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
38 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
39 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
40 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
42 * config/i386/t-nwld (SHLIB_LINK): Don't use the temporary
45 2004-12-16 Richard Henderson <rth@redhat.com>
47 * Makefile.in (MD_DEPS, s-mddeps): New.
48 (s-config, s-conditions, s-flags, s-codes, s-constants, s-emit,
49 s-recog, s-opinit, s-extract, s-peep, s-attr, s-attrtab, s-output,
50 s-preds): Depend on MD_DEPS instead of md_file.
51 (genobjnames): Add genmddeps.o
52 (build/genmddeps, build/genmddeps.o): New.
53 (mostlyclean): Remove mddeps.mk.
54 * genmddeps.c: New file.
55 * gensupport.c (include_callback): New.
56 (process_include): Call it.
57 * gensupport.h (include_callback): Declare.
59 2004-12-16 Nathan Sidwell <nathan@codesourcery.com>
61 * local-alloc.c (block_alloc): Replace IN_RANGE with simple
64 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
66 2004-12-16 Mark Dettinger <dettinge@de.ibm.com>
68 * config/s390/s390.c (struct processor_costs): Two new fields:
70 (s390_rtx_costs): Added handling of multipy and add in SFmode.
71 More precise values for cost of multiply and add.
73 2004-12-15 Richard Henderson <rth@redhat.com>
76 * config/i386/i386.md (sse compare splitter): Test for SF and DFmode
77 explicitly instead of using VALID_SSE_REG_MODE.
79 2004-12-15 Richard Henderson <rth@redhat.com>
82 * config/i386/i386.md (swaphi_1): Swap with swaphi_2, allow with
84 (swapqi_1): Rename from swapqi. Enable only for no partial reg
85 stall and optimize_size.
87 (swaphi_1, swaphi_2, swapqi_1): Add athlon_decode.
88 (swapsi, swaphi_1, swaphi_2, swapqi_1, swapdi): Remove modrm override.
90 2004-12-16 Uros Bizjak <uros@kss-loka.si>
92 * config/i386/i386.md (*floathisf2_i387, *floathidf2_i387):
93 Also enable for TARGET_MIX_SSE_I387.
95 2004-12-16 Uros Bizjak <uros@kss-loka.si>
97 * config/i386/i386.md (sqrt{s,d}f2_1, sqrt{s,d}f2_1_sse_only,
98 sqrt{s,d}f2_i387): Unify enable constraint with respect to
99 TARGET_SSE, TARGET_SSE2, TARGET_USE_FANCY_MATH_387,
100 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
101 (sqrt{s,d}f2_1): Rename to *sqrt{s,d}f2_mixed.
102 (sqrt{s,d}f2_1_sse_only): Rename to *sqrt{s,d}f2_sse.
103 (sqrt{s,d}f2_i387): Rename to *sqrt{s,d}f2_i387.
104 (*sqrtextendsfdf2): Also enable for TARGET_MIX_SSE_I387.
105 (*sqrtextend?f?f2): Rename to *sqrtextendsfdf2_i387.
107 2004-12-16 Uros Bizjak <uros@kss-loka.si>
109 * config/i386/i386.md (*fop_?f_comm_{,sse,nosse},
110 *fop_?f_1_{,sse,nosse}, *fop_{d,x}f_{2,3,4,5,6}): Unify enable
111 constraint with respect to TARGET_80387, TARGET_SSE, TARGET_SSE2,
112 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
113 (*fop_?f_{comm,1}): Rename to *fop_?f_{comm,1}_mixed.
114 (*fop_?f_{comm,1}_nosse): Rename to *fop_?f_{comm,1}_i387.
115 (*fop_{d,x}f_{2,3,4,5,6}): Rename to *fop_{d,x}f_{2,3,4,5,6}_i387.
117 2004-12-15 H.J. Lu <hongjiu.lu@intel.com>
120 * configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
121 -Bstatic/-Bdynamic option.
122 * config.in: Regenerated.
123 * configure: Likewise.
125 * gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
126 -lunwind if possible.
128 2004-12-15 Daniel Berlin <dberlin@dberlin.org>
130 * cfgloop.c (flow_loops_dump): Don't print out levels.
131 (flow_loops_find): Don't set loop->levels.
132 (flow_loops_level_compute): Make void.
133 * cfgloop.h (struct loops): Remove levels member.
134 Add comment about loops in parray possibly being NULL.
136 2004-12-15 Alexandre Oliva <aoliva@redhat.com>
138 * reload.c (SMALL_REGISTER_CLASS_P): New.
139 (push_secondary_reload, find_reusable_reload, find_reloads): Use
140 it instead of testing only the class size.
142 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
145 * tree-inline.c (expand_call_inline): Set TREE_SIDE_EFFECTS
146 on the STMT_EXPR wrapping up the inlined body.
148 2004-12-15 Vladimir Makarov <vmakarov@redhat.com>
149 Steven Bosscher <stevenb@suse.de>
152 * global.c: Update comments in a few places.
153 (check_earlyclobber): Return true if there are early clobber
155 (calculate_local_reg_bb_info): Do not try to mark earlyclobber
156 regs if there are none.
157 (bb_info, allocate_bb_info, free_bb_info, modify_reg_pav,
158 make_accurate_live_analysis): Rename pavin, pavout to live_pavin,
160 (modify_bb_reg_pav): Remove.
161 (calculate_reg_pav): Use code from modify_bb_reg_pav.
162 (temp_bitmap): New variable.
163 (calculate_reg_pav): Allocate/deallocate temp_bitmap.
165 2004-12-15 Richard Henderson <rth@redhat.com>
168 * config/i386/i386.c (ix86_must_pass_in_stack): Don't return true
170 (gen_reg_or_parallel): New.
171 (function_arg): Use it.
172 (ix86_hard_regno_mode_ok): Test SSE1 and SSE2 separately,
173 MMX and 3DNOW separately.
174 (ix86_rtx_costs): Simplify FLOAT_EXTEND case.
175 (ix86_vector_mode_supported_p): Test SSE1 and SSE2 separately.
176 * config/i386/i386.h (VALID_SSE2_REG_MODE): Move SSE2 cases from ...
177 (VALID_SSE_REG_MODE): ... here.
179 2004-12-15 David Edelsohn <edelsohn@gnu.org>
181 * xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.
183 2004-12-15 Ian Lance Taylor <ian@wasabisystems.com>
185 * config/arm/arm.c (arm_xscale_rtx_costs): Increase cost of
187 * config/arm/arm.md (mulsi3_compare0): Don't check
189 (mulsi_compare0_scratch, mulsi3_addsi_compare0): Likewise.
190 (mulsi3addsi_compare0_scratch): Likewise.
192 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
195 * libgcc-std.ver (GCC_3.4.4): Inherit from GCC_3.4.2.
196 Export __absvti2, __addvti3, __mulvti3, __negvti2 and __subvti3.
197 * libgcc2.c (__addvsi3): Rename to __addvSI3.
198 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
199 (__addvdi3): Rename to __addvDI3.
200 (__subvsi3): Rename to __subvSI3. Use word type for the result.
201 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
202 (__subvdi3): Rename to __subvDI3.
203 (_mulvsi3): Rename to _mulvSI3.
204 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
205 (_mulvdi3): Rename to _mulvDI3.
206 (__negvsi2): Rename to __negvSI2.
207 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
208 (__negvdi2): Rename to __negvDI2.
209 (__absvsi2): Rename to __absvSI2.
210 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
211 (__absvdi2): Rename to __absvDI2.
212 * libgcc2.h (64-bit targets): Define COMPAT_SIMODE_TRAPPING_ARITHMETIC.
213 (__absvSI2, __addvSI3, __subvSI3, __mulvSI3, __negvSI2, __absvDI2,
214 __addvDI3, __subvDI3, __mulvDI3, __negvDI2): Define to the appropriate
216 (__absvsi2, __addvsi3, __subvsi3, __mulvsi3, __negvsi2): Declare if
217 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
219 2004-12-15 Kazuhiro Inaoka <inaoka.kazuhiro@reneasas.com>
221 * config/m32r/m32r.h (PREFERRED_DEBUGGING_TYPE):
224 * config/m32r.c (m32r_legitimize_pic_address): Changed
225 to support GOTOFF relocation.
226 * config/m32r.md (UNSPEC_GOTOFF): New.
227 (gotoff_load_addr): New.
229 2004-12-15 Richard Sandiford <rsandifo@redhat.com>
231 * config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
232 decide whether an argument is double-word aligned.
234 2004-12-15 Richard Henderson <rth@redhat.com>
236 * config/i386/i386.md: Fix missing modes on cmove splitters.
238 2004-12-15 Jan Beulich <jbeulich@novell.com>
240 * mklibgcc.in (libgcc2_c_dep): Add dependency on libgcc2.h.
242 2004-12-15 Uros Bizjak <uros@kss-loka.si>
244 * config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
245 *floatsisf2_i387, *floatsisf2_sse, floatdisf2,
246 *floatdisf2_i387_only, *floatdisf2_i387, *floatdisf2_sse,
247 floathidf2, *floathidf2_1, *floatsidf2_i387, *floatsidf2_sse,
248 floatdidf2, *floatdidf2_i387_only, *floatdidf2_i387,
249 *floatdidf2_sse, floatunssisf2, floatunsdisf2, floatunsdidf2):
250 Unify enable constraint with respect to TARGET_80387, TARGET_SSE,
251 TARGET_SSE2, TARGET_64BIT, TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
252 (*float?i?f_i387): Rename to *float?i?f2_mixed.
253 (*float?i?f2_1): Rename to *float?i?f2_i387.
254 (*float?i?f2_i387_only): Rename to *float?i?f2_i387.
255 (float?ixf2): Penalize integer register operand.
257 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
260 * configure.ac: Add GAS check for HP-UX .nsubspa comdat.
261 * configure, config.in: Rebuilt.
262 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Delete
264 * config/pa/pa.c (pa_select_section): Allow uninitialized variables in
265 one-only (comdat) subspaces.
266 * config/pa/som.h (SUPPORTS_SOM_COMDAT): New define.
267 (SUPPORTS_ONE_ONLY): True if SUPPORTS_WEAK or SUPPORTS_SOM_COMDAT are
269 (MAKE_DECL_ONE_ONLY): Place uninitialized variables in common.
271 2004-12-14 Ian Lance Taylor <ian@wasabisystems.com>
273 * combine.c (combine_validate_cost): Consider cost of
274 undobuf.other_insn rather than always allowing the recombination
277 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
279 * pa-host.c (MAP_FAILED): Define if not defined.
280 (pa_gt_pch_use_address): Handle short reads.
282 2004-12-14 Richard Henderson <rth@redhat.com>
285 * config/i386/i386.c (x86_use_bt): New.
286 (ix86_expand_unary_operator): Use MEM_P.
287 (ix86_expand_fp_absneg_operator): New.
288 * config/i386/i386.h (x86_use_bt): Declare.
289 (TARGET_USE_BT): New.
290 * config/i386/i386-protos.h: Update.
291 * config/i386/i386.md (negsf2): Use ix86_expand_fp_absneg_operator.
292 (negdf2, negxf2, abssf2, absdf2, absxf2): Likewise.
293 (negsf2_memory, negsf2_ifs, negsf2_if, negdf2_memory, negdf2_ifs,
294 negdf2_ifs_rex64, negdf2_if, negdf2_if_rex64, negxf2_if,
295 abssf2_memory, abssf2_ifs, abssf2_if, absdf2_memory, absdf2_ifs,
296 absdf2_ifs_rex64, absdf2_if, absxf2_if): Remove.
297 (absnegsf2_mixed, absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed,
298 absnegdf2_sse, absnegdf2_i387, absnegxf2_i387): New. Merge all
299 neg and abs splitters. Handle DFmode in general regs in 64-bit mode.
300 (negextendsfdf2, absextendsfdf2): Disable for non-mixed sse math.
301 (btsq, btrq, btcq): New. Add peepholes as well.
302 (movv4sf_internal splitter): Postpone til after reload.
303 (movv2di_internal splitter): Likewise.
304 * config/i386/predicates.md (const_0_to_63_operand): New.
305 (absneg_operator): New.
307 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
309 * pa.h (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P):
310 Check register number and that reg_renumber is nonzero before using it.
312 2004-12-14 Steve Ellcey <sje@cup.hp.com>
314 * doc/invoke.texi (IA-64 options): Add existing options that
315 weren't already listed.
317 2004-12-14 Jeff Law <law@redhat.com>
319 * tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
320 partition to conflict_graph_merge_regs.
322 2004-12-14 Uttam Pawar <uttamp@us.ibm.com>
323 Janis Johnson <janis187@us.ibm.com>
325 * rs6000.c (rs6000_handle_altivec_attribute_tree): Report errors
326 for vector types with invalid component types.
328 2004-12-14 Jakub Jelinek <jakub@redhat.com>
331 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2,
332 expand_builtin_mathfn_3): Avoid using arguments passed to
333 save_expr after that call.
335 * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
336 LOAD_EXTEND_OP is not defined.
337 (fold): Likewise. If flag_syntax_only, don't depend on BITS_PER_WORD.
339 2004-12-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
341 * tree.def, doc/c-tree.texi: Correctly document restrictions on the
344 2004-12-14 Kazu Hirata <kazu@cs.umass.edu>
346 * expr.h (expand_modifier): Define EXPAND_STACK_PARM as 1.
348 2004-12-14 Richard Earnshaw <rearnsha@arm.com>
351 arm-cores.def (arm926ej-s, arm1026ej-s, arm1136j-s, arm1136-jfs)
352 (arm1176jz-s, arm1176jzf-s, mpcorenovfp, mpcore): Add load-scheduling
355 2004-12-14 Diego Novillo <dnovillo@redhat.com>
357 * tree-gimple.c (get_base_address): Update documentation.
359 2004-12-13 Richard Henderson <rth@redhat.com>
362 * passes.c (rest_of_clean_state): Fix computation of
363 preferred_incoming_stack_boundary.
365 2004-12-13 Wolfgang Bangerth <bangerth@dealii.org>
367 * reload.h: Remove struct needs and its only use.
369 2004-12-13 Roger Sayle <roger@eyesopen.com>
371 PR rtl-optimization/18928
372 * simplify_rtx.c (plus_minus_operand_p): New function to encode
373 the test for suitable operands for calls to simplify_plus_minus.
374 Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
375 (simplify_binary_operation): Use plus_minus_operand_p.
377 2004-12-13 Alexandre Oliva <aoliva@redhat.com>
380 * tree-inline.c (setup_one_parameter): Don't directly map a
381 parameter to the address of another variable of the same
384 2004-13-12 Steven Bosscher <stevenb@suse.de>
386 * basic-block.h (PROP_POSTRELOAD): Do not include PROP_AUTOINC, we
387 can never create autoinc insns after reload.
389 2004-12-13 Jeff Law <law@redhat.com>
390 Kazu Hirata <kazu@cs.umass.edu>
392 * tree-ssa-dom.c (thread_across_edge): Do not thread jumps if a
393 PHI argument is set from a PHI_RESULT in the same block and the
394 PHI argument is not the same as the PHI result.
396 2004-12-13 David Edelsohn <edelsohn@gnu.org>
398 * xcoffout.c (xcoffout_declare_function): Always strip storage
401 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
404 * config/darwin.c (darwin_assemble_visibility): Fix minor diagnostic
405 problem, adding a space at the end of the string before concatenation.
407 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
409 * c-common.c (fname_as_string): Free namep if we are returning
412 * tree-ssa-dom.c (record_edge_info): Fix memory leak.
414 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
416 * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
418 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
420 * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
421 doing a pointer comparison.
423 * tree-ssa-dom.c (record_equivalences_from_phis): Add a
426 * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
429 2004-12-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
431 * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
432 the list rather than replacing the existing value.
434 2004-12-13 Richard Henderson <rth@redhat.com>
436 * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
438 2004-12-13 Richard Henderson <rth@redhat.com>
440 * Makefile.in (insn-preds.o): Depend on REGS_H.
441 * genpreds.c (write_insn_preds_c): Include regs.h.
442 * config/i386/predicates.md (index_register_operand): Use
443 REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
445 * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
446 * config/i386/i386.md (lea_general_1, lea_general_1_zext,
447 lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
448 adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
449 ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
450 ashlqi3_1_lea): Use 'l' for index register operand.
451 (ashldi3_1_rex64 splitter): Use index_register_operand.
452 (ashlsi3_1 splitter): Be more careful with modes.
454 2004-12-13 Danny Smith <dannysmith@users.sourceforge.net>
457 * defaults.h (TARGET_USE_JCR_SECTION): New macro.
458 * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
459 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
462 2004-12-13 Uros Bizjak <uros@kss-loka.si>
466 * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
467 Fix wrong vec_merge selector bitmask.
469 2004-12-12 Richard Henderson <rth@redhat.com>
472 * reg-stack.c (move_nan_for_stack_reg): New.
473 (subst_stack_regs_pat): Use it.
474 (move_for_stack_reg): Handle source register not live with a nan.
476 2004-12-12 Richard Henderson <rth@redhat.com>
478 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
479 errors across operations.
481 2004-12-12 Di-an Jan <dianj@freeshell.org>
483 * doc/passes.texi (Pass Manager): Correct list of source files.
485 2004-12-12 Richard Henderson <rth@redhat.com>
487 * expr.c (emit_move_change_mode): New.
488 (emit_move_via_alt_mode): Use it.
490 2004-12-12 Nathanael Nerode <neroden@gcc.gnu.org>
491 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
494 * dojump.c (do_compare_and_jump): Only canonicalize function pointers
495 in a comparison if both sides are function pointers.
497 2004-12-12 Richard Henderson <rth@redhat.com>
500 * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
501 and compare_operator to propagate the input CC mode to the output.
502 * config/i386/predicates.md (compare_operator): New.
504 2004-12-12 Andrew Pinski <pinskia@physics.uc.edu>
507 * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
509 (handled_component_p): Likewise.
511 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
513 * reg-stack.c (convert_regs_2): Free stack.
515 * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
518 2004-12-12 Daniel Berlin <dberlin@dberlin.org>
520 * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
521 * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
524 2004-12-12 Diego Novillo <dnovillo@redhat.com>
526 * tree-gimple.c (get_base_address): Update documentation.
528 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
530 * lcm.c (optimize_mode_switching): Free ptr even when mode_set
533 2004-12-12 Roger Sayle <roger@eyesopen.com>
535 * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
536 its correct location during popping if we need to permute the stack
537 afterwards. Attempt to preserve the original stack ordering.
539 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
541 * lcm.c (optimize_mode_switching): Free insert and delete in
544 2004-12-11 David Edelsohn <edelsohn@gnu.org>
545 Ulrich Weigand <uweigand@de.ibm.com>
548 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
549 constants into all register classes intersecting with FLOAT_REGS
551 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
552 * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
553 choosing register preferences.
554 (movdi_internal64): Same.
556 2004-12-11 Kazu Hirata <kazu@cs.umass.edu>
558 * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
559 before we release an SSA_NAME.
561 2004-12-11 Roger Sayle <roger@eyesopen.com>
564 * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
565 instead of constant_boolean_node as arg0 may have side-effects.
567 2004-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
569 * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
570 file to anonymous private map.
572 2004-12-10 Roger Sayle <roger@eyesopen.com>
576 * dojump.c (do_jump): When attempting to reverse the effects of
577 fold_single_bit_test, we need to STRIP_NOPS and narrowing type
578 conversions, and handle BIT_XOR_EXPR that's used to invert the
579 sense of the single bit test.
581 2004-12-10 Devang Patel <dpatel@apple.com>
584 * gcc.c (main): Do not break out of loop when error is reported while
585 processing one source file.
587 2004-12-10 Diego Novillo <dnovillo@redhat.com>
589 * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
590 (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
591 don't need any operands rewritten.
592 (rewrite_stmt): Ignore statements that don't need to be
594 (rewrite_operand): Validate that an existing SSA_NAME is
595 identical to the current reaching definition of the operand.
597 2004-12-10 Diego Novillo <dnovillo@redhat.com>
599 * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
600 * tree-vectorizer.c (vectorizable_load): Call it.
601 * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
602 * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
604 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
606 * regmove.c (combine_stack_adjustments_for_block): Free
607 memlist if it hasn't been freed.
609 2004-12-10 Ziemowit Laski <zlaski@apple.com>
611 * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
612 pointer field is set before dereferencing it.
614 2004-12-10 Andrew Pinski <pinskia@physics.uc.edu>
617 * tree-cfg.c (remove_bb): Put the moved label at the beginning
620 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
622 * tree-data-ref.c (free_data_refs): Free each data_reference
625 * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
626 call to is_gimple_min_invariant if we know the result.
628 2004-12-10 Jeff Law <law@redhat.com>
630 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
631 redundant test of v_ann->mem_tag_kind.
633 * tree-ssa-operands.c (get_indirect_ref_operands): Remove
634 redundant conditional clearing opf_kill_def.
636 2004-12-10 Richard Sandiford <rsandifo@redhat.com>
638 * config/frv/frv-modes.def: Fix comment typos.
639 (CC_NZ): Define new mode.
640 * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
641 (condexec_intop_cmp_operator): Delete.
642 * config/frv/frv.c (comparison_string): New function.
643 (frv_print_operand): Use it to handle 'c' and 'C'.
644 (relational_operator): Redefine in terms of integer_relational_operator
645 and float_relational_operator.
646 (signed_relational_operator, unsigned_relational_operator): Delete.
647 (integer_relational_operator): New predicate, combining the above.
648 Check the mode of the first operand but leave frv.md to check the rest.
649 (float_relational_operator): Just check the mode of the first operand
650 and leave frv.md to check the rest.
651 (intop_compare_operator): Assume the result is compared with zero
652 in mode CC_NZmode. Allow PLUS and MINUS. Leave frv.md to check
653 the operand predicates.
654 (condexec_intop_cmp_operator): Delete.
655 (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
656 (frv_hard_regno_mode_ok): Handle CC_NZmode.
657 (frv_select_cc_mode): New function.
658 * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
659 (REVERSIBLE_CC_MODE): Include CC_NZmode.
660 (PREDICATE_CODES): Replace entries for signed_relational_operand and
661 unsigned_relational_operator with one for integer_relational_operator.
662 Delete entry for condexec_intop_cmp_operator.
663 * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
664 (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
665 (*combo_intop_compare2, *combo_intop_compare4): Delete.
666 (*combo_intop_compare1): Change mode to CC_NZ.
667 (*combo_intop_compare2): Likewise. Renamed from *combo_intop_compare3.
668 (branch_{un,}signed_true, branch_{un,}signed_false)
669 (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
670 (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
671 (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
672 (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
673 (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
674 (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
675 pattern pairs. Use integer_relational_operator. Remove mode from
678 2004-12-10 Mark Dettinger <dettinge@de.ibm.com>
680 * config/s390/s390.c (struct processor_costs): New fields ml,
682 (s390_rtx_costs): Added the missing handling of multiply & add,
683 square root, and umulsidi.
685 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
687 * expmed.c (synth_mult): Initialize new_limit.latency before
688 making a recursive call.
690 2004-12-10 Nick Clifton <nickc@redhat.com>
692 * config/mn10300/mn10300.c (legitimate_address_p): Reject address
693 whose index is itself the sum of two other parts.
695 2004-12-10 Alan Modra <amodra@bigpond.net.au>
697 * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
699 2004-12-10 Uros Bizjak <uros@kss-loka.si>
701 * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
703 2004-12-09 Richard Henderson <rth@redhat.com>
706 * attribs.c (decl_attributes): Use relayout_decl.
707 * c-common.c (handle_mode_attribute): Copy all relevant type
708 parameters from the new underlying integral type.
710 2004-12-09 Richard Henderson <rth@redhat.com>
712 * c-common.c (shorten_compare): Don't special-case min/maxval
715 2004-12-09 Richard Sandiford <rsandifo@redhat.com>
717 * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
718 the request subreg is entirely contained in the requested component.
719 (simplify_gen_subreg): Return null for CONCATs that are rejected
721 * expmed.c (store_bit_field): Create a temporary when changing the
722 value to an integer mode.
724 2004-12-09 David Edelsohn <edelsohn@gnu.org>
726 * real.c (ibm_extended): Correct comment.
728 2004-12-09 Stan Shebs <shebs@apple.com>
730 * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
731 formerly in darwin-tramp.asm.
732 * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
733 * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
734 * config/rs6000/t-darwin: Add dependencies.
736 2004-12-09 Richard Henderson <rth@redhat.com>
739 * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
740 (test_qi_1, andqi_2): Do not promote to simode.
742 2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
745 * tree-chrec.c (chrec_convert): Use fold_convert
748 2004-12-09 Matt Rice <ratmice@yahoo.com>
750 PR preprocessor/18102
751 * c-incpath.c (remove_duplicates): Check for construct
754 2004-12-09 Dorit Naishlos <dorit@il.ibm.com>
756 * genopinit.c (vec_realign_store_optab): Initialization removed.
757 * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
758 * optabs.h (optab_index): OTI_vec_realign_store Removed.
759 (vec_realign_store_optab): Removed.
760 * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
761 * target.h (builtin_mask_for_store): Removed.
762 * tree.def (REALIGN_STORE_EXPR): Removed.
763 * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
764 (altivec_builtin_mask_for_store): Removed.
765 (altivec_init_builtins): Removed initialization of
766 altivec_builtin_mask_for_store.
768 * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
769 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
771 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
773 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
775 * tree.def (SET_TYPE): Remove.
776 (CONSTRUCTOR): Update description.
777 * builtins.c (type_to_class) Remove SET_TYPE case.
778 * dbxout.c (dbxout_type): Likewise.
779 * dwarf2out.c (is_base_type): Likewise.
780 (gen_set_type_die): Remove.
781 (gen_type_die): Remove SET_TYPE case.
782 * expr.c (count_type_elements): Likewise.
783 (mostly_zeroes_p): Likewise.
784 (store_constructor): Likewise.
785 * print_tree.c (print_node): Likewise.
786 * stor-layout.c (layout_type): Likewise.
787 * tree-browser.c (browse_tree): Likewise.
788 * tree-inline.c (remap_type): Likewise.
789 * tree-pretty-print.c (dump_generic_node): Likewise.
790 * tree.c (type_contains_plaeholder_1, type_hash_eq,
791 variably_modified_type_p, initializer_zerop): Likewise.
792 * tree.h (SET_OR_ARRAY_CHECK): Remove.
793 (AGGREGATE_TYPE_P): Remove SET_TYPE check.
794 (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
795 * typeclass.h (enum type_class): Remove set_type_class.
796 * varasm.c (const_hash_1): Remove SET_TYPE case.
797 (compare_constant, copy_constant, output_constant): Likewise.
798 * config/i386/i386.c (classify_argument): Likewise.
799 * config/ia64/ia64.c (hfa_element_mode): Likewise.
800 * config/sparc/sparc.c (sparc_type_code): Likewise.
803 * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
805 2004-12-08 Richard Henderson <rth@redhat.com>
807 * config/i386/i386.md: Use FLAGS_REG everywhere.
809 2004-12-08 Eric Christopher <echristo@redhat.com>
811 * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
812 to avoid call to default function.
814 2004-12-08 Zack Weinberg <zack@codesourcery.com>
817 * varasm.c (pending_assemble_externals): New static.
818 (assemble_external_real): Meat of assemble_external split out
819 to this new function.
820 (process_pending_assemble_externals): New function.
821 (assemble_external): Use gcc_assert. If flag_unit_at_a_time
822 is true and the basic test passes, merely cons the decl onto
823 the pending list to be handled later.
824 * tree.h: Declare process_pending_assemble_externals.
825 * cgraphunit.c (cgraph_optimize): Call it.
827 * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
829 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
831 * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
832 and simplifying FOR_EACH_EDGE.
834 2004-12-08 Richard Sandiford <rsandifo@redhat.com>
836 * config/frv/frv.c (frv_sort_insn_group): Always initialize
839 2004-12-08 Nathan Sidwell <nathan@codesourcery.com>
842 * gimplify.c (canonicalize_addr_expr): Cope with array of
844 (gimplify_conversion): Remove redundant checks.
846 * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
848 2004-12-08 Uros Bizjak <uros@kss-loka.si>
850 * config/i386/i386.c (output_387_binary_op,
851 ix86_prepare_fp_compare_args): Fix is_sse condition.
853 2004-12-07 Uros Bizjak <uros@kss-loka.si>
855 * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
858 * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
859 Use EFLAGS_P only when fcomi insn should be used. Fix handling
860 of eflags_p variable. Change alt table accordingly. For non-fcomi
861 compare insn always use trailing fnstsw insn. Fix intmode
862 calculation for ficom insn.
863 (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
864 ix86_free_from_memory when "pushed" is specified.
865 (ix86_expand_branch): Change call to ix86_split_fp_branch.
867 * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
868 Change eflags_p parameter in call to output_fp_compare.
869 (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
870 (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
871 *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf. Change eflags_p
872 parameter in call to output_fp_compare.
873 (*cmpfp_2_u): Remove.
874 (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
875 in call to output_fp_compare.
876 (*ficom_1): Remove insn definition and corresponding define_split.
877 (*cmpfp_si): New insn definition.
878 (*fp_jcc_8): New insn definition. Add new splitters for
879 "memory_operand" and "register_operand".
880 (define_split): Add new parameter in call to ix86_split_fp_branch.
882 config/i386/predicates.md (float_operator): New predicate.
884 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
886 * c-common.c (verify_tree): Don't check code length if we know
887 we are handling tcc_unary.
888 * print_tree.c (print_node): Remove code to handle RTL
889 appearing as a part of a tree node.
890 * tree-gimple.c (recalculate_side_effects): Rename fro as len.
891 * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
892 (PROCESS_ARG): Don't refer to fro.
893 (build2_stat, build3_stat, build4_stat): Don't compute fro.
895 2004-12-07 Roger Sayle <roger@eyesopen.com>
898 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
899 (expand_mult): Special case powers of two to avoid synth_mult.
900 * loop.c (product_cheap_p): Handle case where expand_mult does
901 require/generate any instructions (i.e. multiplication by zero).
903 2004-12-07 Richard Henderson <rth@redhat.com>
905 * tree-pretty-print.c (dump_array_domain): Split out from
906 dump_generic_node; fix off-by-one error on zero-based array bounds.
907 (dump_generic_node): Use it.
908 (print_declaration): Likewise.
910 2004-12-08 Richard Guenther <richard.guenther@uni-tuebingen.de>
912 * doc/invoke.texi: Adjust default values for
913 large-function-growth and inline-unit-growth to match
914 params.def. Clarify used algorithm.
916 2004-12-07 David Mosberger <davidm@hpl.hp.com>
919 * config/ia64/ia64.c (ia64_assemble_integer): Add support for
920 emitting unaligned pointer-sized integers.
922 2004-12-07 Steven Bosscher <stevenb@suse.de>
925 * c-typeck.c (c_start_case): Set orig_type to error_mark_node
926 when the type of the controlling expression is not a valid type.
928 2004-12-07 Steven Bosscher <stevenb@suse.de>
930 PR tree-optimization/17340
931 * tree-ssa-pre.c (compute_antic): Fix comment.
932 (compute_avail): Do not recurse, instead do a DFS using a stack
934 (execute_pre): Adjust.
936 2004-12-07 Ziemowit Laski <zlaski@apple.com>
938 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
941 2004-12-07 Eric Christopher <echristo@redhat.com>
944 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
946 2004-12-07 Eric Christopher <echristo@redhat.com>
948 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
950 * config/mips/mips.c: ... here. Make static.
952 2004-12-07 Eric Christopher <echristo@redhat.com>
955 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
956 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
958 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
960 * c-common.c, expr.c, fold-const.c, print-tree.c,
961 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
962 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
963 first_rtl_op with TREE_CODE_LENGTH.
964 * tree.c (first_rtl_op): Remove.
965 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
966 * tree.h: Remove the prototype for first_rtl_op.
968 2004-12-07 David Edelsohn <edelsohn@gnu.org>
970 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
971 Revert 2004-12-01 change.
973 2004-12-06 Ziemowit Laski <zlaski@apple.com>
975 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
977 2004-12-06 DJ Delorie <dj@redhat.com>
979 * reload.c (find_valid_class): Fix logic to test inner mode as well.
980 (push_reload): Pass inner mode.
982 2004-12-06 Eric Christopher <echristo@redhat.com>
984 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
986 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
988 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
990 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
991 Kazu Hirata <kazu@cs.umass.edu>
993 PR tree-optimization/18601
994 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
995 (tree_forwarder_block_p): Do not consider blocks that are its own
996 successors forwarders.
997 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
998 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
1000 * tree-flow.h (bb_ann_d): Remove forwardable.
1002 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
1004 * expr.c (expand_expr_real_1): Remove an "if" whose condition
1007 2004-12-06 Roger Sayle <roger@eyesopen.com>
1009 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
1010 for loops whose conditions are known at compile-time.
1011 * gimplify.c (append_to_statement_list_1): Remove side_effects
1012 parameter, this function should never be called if its false.
1013 (append_to_statement_list): Only call append_to_statement_list_1
1014 if t is non-NULL tree with side-effects.
1015 (append_to_statement_list_force): Likewise, if t is not NULL.
1017 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
1019 * bt-load.c (btr_def_s): New member own_end;
1020 (add_btr_to_live_range): Add second parameter. Changed caller.
1021 (clear_btr_from_live_range): Clear btrs_live_at_end bit
1022 for the register its definition basic block if own_end is set.
1023 (augment_live_range): Also take btrs_live_at_end into account.
1024 (combine_btr_defs): Don't bother with
1025 other_def->other_btr_uses_after_use if it pertains to a different
1027 (move_btr_def): Set def->other_btr_uses_before_def after
1028 calling combine_btr_defs."
1030 * bt-load.c (augment_live_range): New argument full_range.
1031 Changed all callers.
1033 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
1034 taking new btr assignment into account.
1036 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
1038 * tree-ssa-alias.c (create_global_var): Use void_type_node,
1041 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1043 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
1046 2004-12-05 Richard Henderson <rth@redhat.com>
1049 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
1050 (builtin_setjmp_receiver_er_sl_1): Use it.
1051 (builtin_setjmp_receiver_er_1): Likewise.
1052 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
1053 (builtin_setjmp_receiver): Don't split for explicit relocs until
1055 (exception_receiver): Likewise.
1057 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1059 * mklibgcc.in (vis_hide): Add the prototype for the test.
1061 2004-12-05 Roger Sayle <roger@eyesopen.com>
1063 * c-typeck.c (c_finish_loop): Improve initial implementations
1064 for loops whose conditions are known at compile-time.
1066 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1068 * builtins.c: Fix comment typos.
1070 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1073 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
1074 the first/last insn is a sequence, return the first/last insn of the
1078 * mklibgcc.in (vis_hide): Use implementation instead of declaration
1081 2004-12-04 Richard Henderson <rth@redhat.com>
1083 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
1084 use ofs in BWX two byte special case.
1085 (alpha_expand_unaligned_store): Likewise.
1087 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
1089 * gcse.c (gcse_main): Add a comment.
1091 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1094 * builtins.c (fold_builtin_next_arg): Export and return true
1095 when there is a warning or an error.
1096 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
1098 (expand_builtin): Likewise.
1099 * gimplify.c (gimplify_call_expr): Error out if there is not
1100 enough arguments to va_start. Call fold_builtin_next_arg also
1101 on the second argument.
1102 * tree.h (fold_builtin_next_arg): Prototype.
1104 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1106 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
1107 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
1108 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
1109 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
1110 shlib_dir and shlib_so_name.
1111 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
1112 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
1113 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
1114 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
1115 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
1116 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
1118 2004-12-03 Roger Sayle <roger@eyesopen.com>
1120 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
1122 2004-12-03 Richard Henderson <rth@redhat.com>
1124 * alias.c (component_uses_parent_alias_set): Rename from
1125 can_address_p. Return bool. Reverse the sense of the result.
1126 Reinstate the check for alias set zero.
1127 (get_alias_set): Update to match.
1128 * alias.h (component_uses_parent_alias_set): Likewise.
1129 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1130 * expr.c (expand_assignment): Likewise.
1131 * expr.h: Remove commented out prototypes that were moved to alias.h.
1133 2004-12-03 Richard Henderson <rth@redhat.com>
1135 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
1136 (TARGET_CANNOT_FORCE_CONST_MEM): New.
1138 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1141 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
1143 * sched-ebb.c (schedule_ebb): Likewise.
1145 2004-12-03 Andreas Schwab <schwab@suse.de>
1147 * Makefile.in (HOSTHOOKS_DEF_H): Define.
1148 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
1149 (host-default.o): Likewise.
1151 2004-12-03 Eric Christopher <echristo@redhat.com>
1153 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
1154 pophi): Add number of arguments to name so that the
1155 pattern is recognized as a named pattern.
1157 2004-12-03 Janis Johnson <janis187@us.ibm.com>
1159 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
1161 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
1163 * config/rs6000/rs6000.c (rs6000_override_options): Protect
1164 darwin_one_byte_bool with #if.
1166 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
1168 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
1170 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
1172 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
1174 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
1176 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
1177 Set libstdcxx_incdir directly.
1178 * configure: Regenerate.
1180 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
1182 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
1183 "if" whose condition is always true.
1185 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
1188 2004-12-02 Stan Shebs <shebs@apple.com>
1190 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
1191 Darwin default to one-byte bools.
1193 2004-12-02 Richard Henderson <rth@redhat.com>
1196 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
1198 2004-12-03 Ben Elliston <bje@au.ibm.com>
1200 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
1201 type and its methods.
1203 2004-12-02 Richard Henderson <rth@redhat.com>
1205 * expr.c (write_complex_part): Use simplify_gen_subreg when the
1206 submode is at least as large as a word.
1207 (read_complex_part): Likewise.
1209 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1212 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
1213 multilib at a time. Don't build the default set. Don't add
1214 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
1215 filter for shared libunwind and libgcc.
1217 2004-12-02 Roger Sayle <roger@eyesopen.com>
1220 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
1221 already been specified, ignore the -momit-leaf-frame-pointer option.
1223 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1225 * varasm.c (make_decl_rtl): Add the missing `;'.
1227 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1229 * tree.c (is_attribute_p): Split out to ..
1230 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
1231 of strlen and compare the string lengths before calling strcmp.
1232 (lookup_attribute): Call is_attribute_with_length_p instead of
1235 2004-12-02 Devang Patel <dpatel@apple.com>
1237 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
1238 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
1239 * config/i386/darwin.h (CC1_SPEC): Same.
1241 2004-12-02 Richard Henderson <rth@redhat.com>
1243 * optabs.c (lowpart_subreg_maybe_copy): New.
1244 (expand_unop, expand_abs_nojump): Use it.
1246 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
1248 * sh.md (extv, extzv): Add pattern predicate.
1250 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1252 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1255 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1258 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
1260 2004-12-02 Jeff Law <law@redhat.com>
1262 * tree-eh.c: Revert yesterday's change.
1264 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1266 * varasm.c (decode_reg_name): Revert change to check for zero
1268 (make_decl_rtl): Make sure that we call decode_reg_name only
1271 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
1274 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
1275 then and else labels.
1277 2004-12-02 Andreas Schwab <schwab@suse.de>
1279 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
1280 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
1281 (STAGE2_FLAGS_TO_PASS): Likewise.
1283 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
1285 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1287 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
1288 now-redundant AC_SUBSTs.
1289 * aclocal.m4: Include ../config/gcc-version.m4.
1290 * configure: Regenerate.
1292 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1294 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
1295 #ifdef RELOCATABLE_NEEDS_FIXUP.
1297 2004-12-01 Roger Sayle <roger@eyesopen.com>
1300 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
1301 Intel assembler syntax by using %A1 instead of %*%1.
1303 2004-12-01 Richard Henderson <rth@redhat.com>
1305 * expr.c (expand_assignment): Handle CONCAT both as a final
1306 destination and as a middle point.
1308 2004-12-01 Jeff Law <law@redhat.com>
1310 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
1311 (honor_protect_cleanup_actions): Only create save_eptr and
1312 save_filt if they do not already exist.
1313 (lower_eh_constructs): Wipe all knowledge of save_eptr and
1314 save_filt before returning.
1316 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1318 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
1320 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1323 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
1324 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
1325 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
1326 of target_flags_explicit.
1327 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
1328 case. Define as 0 for non-biarch.
1330 2004-12-01 Zack Weinberg <zack@codesourcery.com>
1332 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1333 Change temporary file tag from a prefix to an infix.
1335 2004-12-02 Andreas Schwab <schwab@suse.de>
1337 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
1339 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
1343 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
1344 the statements if aliases_computed_p is true.
1346 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1348 * Makefile.in (WERROR): New variable.
1349 (STRICT2_WARN): Use it.
1350 (STAGE2_FLAGS_TO_PASS): Likewise.
1351 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
1353 2004-12-01 Richard Henderson <rth@redhat.com>
1355 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
1358 2004-12-01 Diego Novillo <dnovillo@redhat.com>
1360 PR tree-optimization/18291
1361 * tree-ssa-copy.c (merge_alias_info): Fix merging of
1362 flow-sensitive alias information. If the new pointer has no
1363 name tag, copy it from the original pointer. Otherwise, make
1364 sure that the pointed-to sets have a common intersection.
1366 2004-12-01 Richard Henderson <rth@redhat.com>
1369 * emit-rtl.c (gen_complex_constant_part): Remove.
1370 (gen_realpart, gen_imagpart): Remove.
1371 * rtl.h (gen_realpart, gen_imagpart): Remove.
1372 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
1373 gen_realpart/gen_imagpart.
1374 * expr.c (write_complex_part, read_complex_part): New.
1375 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
1376 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
1377 emit_move_multi_word): Split out from ...
1378 (emit_move_insn_1): ... here.
1379 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
1380 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
1381 * function.c (assign_parm_setup_reg): Hard-code transformations
1382 instead of using gen_realpart/gen_imagpart.
1384 * expr.c (optimize_bitfield_assignment_op): Split out from ...
1385 (expand_assignment): ... here. Use handled_component_p to gate
1386 get_inner_reference code. Simplify MEM handling. Special case
1387 CONCAT destinations.
1389 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
1390 of gen_rtx_SUBREG directly.
1392 2004-12-01 David Edelsohn <edelsohn@gnu.org>
1393 Nathan Sidwell <nathan@codesourcery.com>
1396 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
1401 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
1404 * params.c (set_param_value): Add range check.
1405 * params.def: Add min and max values. Reformat long strings.
1406 * params.h (struct param_info): Add min and max fields.
1407 (enum compiler_param): Adjust DEFPARAM.
1408 * toplev.c (lang_independent_params): Likewise.
1410 2004-12-01 Alan Modra <amodra@bigpond.net.au>
1413 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1415 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
1417 * doc/standards.texi: Update for C99 TC2.
1419 2004-11-30 Jeff Law <law@redhat.com>
1421 * sbitmap.c (sbitmap_any_common_bits): New function.
1422 * sbitmap.h (sbitmap_any_common_bits): Prototype.
1423 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1424 No longer allocate/free "psp", "pss" sbitmaps.
1425 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1427 (group_aliases): Similarly.
1429 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
1431 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1432 uninitialized variable.
1434 2004-11-30 Eric Christopher <echristo@redhat.com>
1436 * fold-const.c (fold_widened_comparison): Make sure that we're
1437 passing an INTEGER_TYPE to int_fits_type_p.
1438 (fold): Clean up comment.
1440 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1442 * mklibgcc.in: Correct calculation of libgcc_s_soname and
1443 libunwind_soname. Use $out, not $outS, in commands for
1444 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
1445 library build rules, make $libunwind_so and $libgcc_s_so
1446 depend on them in the normal fashion, and filter those objects
1447 out of @shlib_objs@.
1449 2004-11-30 Janis Johnson <janis187@us.ibm.com>
1451 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1453 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
1456 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1457 pass right after fold builtins.
1459 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1461 * config/s390/s390-modes.def: Added cc modes documentation.
1462 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1463 s390_expand_addcc): Added cc mode comments.
1464 * config/s390/s390.md: Removed old cc mode documentation.
1466 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
1468 * config/s390/s390.c (struct processor_costs): New data type.
1469 (s390_cost, z900_cost, z990_cost): New global variables.
1470 (override_options): Initialize s390_cost.
1471 (s390_rtx_costs): Reimplement.
1473 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
1475 Fix PR tree-optimization/18673
1477 * tree-ssa-pre.c: Remove splay-tree.h include.
1478 (bitmap_value_replace_in_set): Fix to add if it does not exist.
1479 (find_or_generate_expression): Remove now-wrong condition.
1480 (create_expression_by_pieces): Fix condition and comment reason
1482 (insert_aux): Fix condition and comment reasons for it.
1483 Factor insertion code from here.
1484 (insert_into_preds_of_block): To here. Fix conditions in factored
1485 function and comment reasons for them.
1487 2004-11-30 Ira Rosen <irar@il.ibm.com>
1490 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
1491 variable for data_reference when looking for memtag.
1493 2004-11-30 Jakub Jelinek <jakub@redhat.com>
1495 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
1498 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1500 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
1501 tree_low_cst instead of TREE_INT_CST_LOW.
1503 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1506 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
1507 decls that are assembled before vectorization takes place.
1508 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
1510 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1512 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
1513 if local_alloc modified jumps.
1515 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1517 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
1519 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
1522 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1524 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
1525 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
1527 * mklibgcc.in: Drastic restructure for comprehensibility.
1528 Remove the old hidden-directive hack.
1529 Eliminate support for .txt files in LIB2ADD etc (never used).
1530 Eliminate support for assembly source files in LIB2ADDEH* and
1531 LIBUNWIND (also never used).
1532 Build up dependency lists for libraries incrementally.
1533 If we have SHLIB_LINK, compile each file twice, once for the
1534 static and once for the shared library; also probe for
1535 -fvisibility=hidden in the generated libgcc.mk. If found,
1536 pass that and -DHIDE_EXPORTS to the compilation of every C
1537 source file going into the static library. If found, generate
1538 hidden-directive lists for every assembly source file going
1539 into the static library, but incorporate them with -include
1541 Write comments into generated libgcc.mk to facilitate debugging.
1542 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
1543 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
1545 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
1548 2004-11-29 Richard Henderson <rth@redhat.com>
1550 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
1551 (handled_component_p): Likewise.
1552 * alias.c (can_address_p): Reformat and simplify. Handle
1553 REAL/IMAGPART_EXPR. Do not disable addressability based on
1555 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
1556 check for REAL/IMAGPART_EXPR.
1557 * gimplify.c (gimplify_compound_lval): Likewise.
1558 * tree-cfg.c (verify_expr): Likewise.
1559 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1560 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
1561 (convert_local_reference): Likewise.
1562 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
1564 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1566 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
1568 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1571 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
1572 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
1573 and host_xmake_file using new host configuration files.
1575 2004-11-29 Roger Sayle <roger@eyesopen.com>
1577 * reg-stack.c (change_stack): Improve algorithm used to pop regs
1578 off the stack to maximize ffreep usage and reduce fxch count.
1580 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
1583 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
1586 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1588 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
1589 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
1591 2004-11-30 Ben Elliston <bje@au.ibm.com>
1593 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
1595 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1598 * c-common.c (handle_visibility_attribute): When the type decl
1599 is really a identifier node, warn about being ignored and return.
1601 2004-11-29 Richard Henderson <rth@redhat.com>
1603 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
1605 2004-11-29 Steven Bosscher <stevenb@suse.de>
1607 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
1608 Remove CASE_DROPS_THROUGH checks, it is never defined.
1609 * cfglyout.c (fixup_reorder_chain): Likewise.
1610 * cfgrtl.c (rtl_verify_flow_info): Likewise.
1611 * stmt.c (expand_case): Likewise.
1612 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
1614 * system.h (CASE_DROPS_THROUGH): Poison.
1615 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1616 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1618 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
1620 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1623 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
1626 2004-11-29 Diego Novillo <dnovillo@redhat.com>
1628 PR tree-optimization/18712
1629 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
1630 WORK_STACK by reference.
1631 Call VEC_safe_push instead of VEC_quick_push.
1634 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
1637 * Makefile.in (c-lang.o): Update dependencies.
1638 * c-lang.c: Include "c-pragma.h".
1639 (finish_file): Call maybe_apply_pending_pragma_weaks.
1640 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
1641 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
1643 2004-11-29 Richard Henderson <rth@redhat.com>
1646 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
1647 outside the referenced object.
1649 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
1651 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
1652 EDGE_PRED instead of PHI_ARG_EDGE.
1653 * tree-ssa-live.c: Likewise.
1654 * tree-ssa-loop-manip.c: Likewise.
1655 * tree-ssa.c: Likewise.
1657 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
1658 simplifying edge manipulation.
1660 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
1663 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
1666 * cfg.c (flow_obstack): Remove.
1667 (flow_firstobj): Likewise.
1668 (init_flow): Remove all uses of flow_obstack.
1670 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1672 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
1675 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
1677 * opts.c (decode_options): Do not set max-inline-insns-rtl.
1678 (common_handle_option): Likewise.
1679 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
1680 * params.h (MAX_INLINE_INSNS_RTL): Remove.
1681 * doc/invoke.texi (max-inline-insns-rtl): Remove.
1683 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1686 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
1688 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1691 * gimplify.c (gimplify_asm_expr): If the length of an output operand
1692 is zero, do not process it, just let it go through.
1694 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1695 Diego Novillo <dnovillo@redhat.com>
1697 PR/18662, also backported from tree-cleanup-branch.
1698 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
1699 always call maybe_clean_eh_stmt and modify_stmt.
1701 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1704 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
1705 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
1706 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
1707 add an inverse VIEW_CONVERT_EXPR to const_val.
1710 * tree-nested.c (check_for_nested_with_variably_modified): New.
1711 (create_nesting_tree): Call it.
1713 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
1714 special code for assigning to non-pointer.
1715 (is_escape_site): If RHS is a conversion between pointer and integer
1716 types, this is an escape site.
1718 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
1719 (store_motion): Don't move store if any edge we'd want to move it
1722 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
1723 non-zero lower bound.
1725 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
1727 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
1730 * opts.c (find_opt): Require that the input match a switch exactly
1731 or that the switch take a joined option to be interpreted as a
1732 match for another language.
1734 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1736 * timevar.def (TV_TREE_REDPHI): New timevar.
1737 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
1739 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1741 PR preprocessor/17651
1742 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
1743 flag_no_line_commands.
1744 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
1747 2004-11-28 Theodore A. Roth <troth@openavr.org>
1749 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
1750 warning if the function name does not begin with "__vector" and the
1751 function has either the 'signal' or 'interrupt' attribute.
1753 2004-11-28 Theodore A. Roth <troth@openavr.org>
1755 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
1756 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
1757 atmega325, atmega3250, atmega645 and atmega6450.
1758 * config/avr/avr.h (LINK_SPEC): Ditto.
1760 (LIBGCC_SPEC): Ditto.
1761 (CRT_BINUTILS_SPECS): Ditto.
1762 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
1764 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1766 PR preprocessor/17610
1767 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
1769 2004-11-28 Jeff Law <law@redhat.com>
1771 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
1772 (pass_maybe_create_global_var): New.
1773 * tree-pass.h (pass_maybe_create_global_var): Declare.
1774 * tree-optimize.c (init_tree_optimization_passes): Link in
1775 pass_maybe_create_global_var.
1777 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1779 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
1781 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1783 PR rtl-optimization/18420
1784 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
1786 2004-11-28 Steven Bosscher <stevenb@suse.de>
1787 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1789 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
1790 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
1791 that the case is in range, to make sure the casesi insn is always
1792 in range and never falls through.
1793 (casesi1): Add comment to explain why casesi never falls through.
1794 Remove the unnamed special case casesi pattern.
1796 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
1799 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
1800 "*movdicc_real". Only match reversible comparisons.
1801 ("*movdicc_real_nonreversible"): New pattern, split from
1802 "*movdicc_real". Match only nonreversible comparisons. Exclude
1803 reversed alternatives.
1804 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
1807 2004-11-27 Richard Henderson <rth@redhat.com>
1809 * config/ia64/ia64.md: Move all define_predicate's ...
1810 * config/ia64/predicates.md: ... here. New file.
1812 2004-11-27 Per Bothner <per@bothner.com>
1815 Re-applied following, with two modifications: add a URL for the
1816 fixed cctools; only exit if $build = $target.
1818 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
1819 * configure.ac (powerpc-*-darwin*): Require assembler to support
1821 * configure: Regenerate.
1823 2004-11-28 David Edelsohn <edelsohn@gnu.org>
1826 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
1827 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
1828 Distinguish between SImode and DImode CONST_INT.
1830 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
1831 Alan Modra <amodra@bigpond.net.au>
1834 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
1835 functions, strings and thread-local vars.
1837 2004-11-28 Alan Modra <amodra@bigpond.net.au>
1839 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
1840 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
1841 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
1842 to allow non-darwin ABIs to optimize away code.
1843 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
1845 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
1847 * tree.c (operand_equal_for_phi_arg_p): New.
1848 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
1849 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
1850 Replace operand_equal_p with operand_for_phi_arg_p
1853 * bb-reorder.c (find_traces_1_round): Speed up by using
1854 EDGE_COUNT instead of FOR_EACH_EDGE.
1856 * fold-const.c, config/i386/linux64.h: Fix comment typos.
1858 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1861 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
1863 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
1865 * config/i386/linux.h: Fix a comment typo.
1866 * doc/extend.texi: Fix a typo.
1868 2004-11-27 Jeff Law <law@redhat.com>
1870 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
1873 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1875 * config/i386/linux64.h (REG_NAME): Define.
1877 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1879 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
1880 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
1881 and only afterwards convert to ctype.
1883 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
1885 * config/mips/mips-protos.h (function_arg_boundary): Declare.
1886 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
1887 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
1888 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
1889 * config/mips/mips.c (function_arg_boundary): New function.
1890 Impose a maximum alignment of STACK_BOUNDARY.
1892 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1894 PR rtl-optimization/17825
1895 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
1898 2004-11-27 Alan Modra <amodra@bigpond.net.au>
1901 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
1902 from rs6000_default_long_calls for libcalls.
1904 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1906 * expmed.c (extract_bit_field): When extracting from non-integer mode,
1907 force a SUBREG into a register because we may be taking a further
1910 2004-11-27 Di-an Jan <dianj@freeshell.org>
1912 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
1914 2004-11-26 Robert Millan <robertmh@gnu.org>
1916 Changes for k*bsd-gnu support.
1917 * config/i386/linux.h: Define REG_NAME to allow overriding of
1918 register names in sc structure.
1919 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
1921 * config.gcc: Detect x86_64-k*bsd-gnu systems.
1923 2004-11-26 Jeff Law <law@redhat.com>
1925 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
1926 retrieve annotations or pointer info before it's necessary.
1927 Reorder tests for early continue of the loop. Manually CSE
1930 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1932 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
1933 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
1934 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1935 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1936 to a fixed reg if the source is the Return Address register.
1937 Implement new Rule 15.
1938 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1939 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1940 sparc_dwarf_handle_frame_unspec.
1941 (gen_save_register_window): New function.
1942 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1943 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1944 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1945 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1946 (sparc_asm_function_prologue): Do not emit call frame debugging info.
1947 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1948 (sparc_expand_epilogue): Likewise.
1949 (sparc_dwarf_handle_frame_unspec): New function.
1950 * config/sparc/sparc.md (save_register_window): Remove.
1951 (save_register_windowdi): Rewrite modelled on the callframe debug info.
1952 (save_register_windowsi): Likewise.
1954 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1956 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1957 BB_HEAD, not BLOCK_HEAD.
1959 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1961 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1962 scratch insns that set a register live at the join point.
1964 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1966 * cse.c, tree-ssa-operands.c: Fix comment typos.
1968 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1970 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
1973 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1975 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1977 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1978 check that tests if all edges go to the same destination.
1980 * bitmap.c (bitmap_find_bit): Speed up by traversing from
1981 head->first if that seems profitable.
1983 2004-11-25 Jeff Law <law@redhat.com>
1985 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1986 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1987 (pass_loop_done): Use TV_TREE_LOOP_FINI.
1989 2004-11-26 Alan Modra <amodra@bigpond.net.au>
1991 PR rtl-optimization/16356
1992 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1993 separate output register and one less jump. Enable for powerpc64.
1994 (floatdisf2): Adjust for above.
1996 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1998 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1999 (GCC_DRIVER_HOST_INITIALIZATION): Define.
2001 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2004 * tree-complex.c (vector_inner_type): New variable moved from
2005 build_word_mode_vector_type.
2006 (vector_last_type): Likewise.
2007 (vector_last_nunits): Likewise.
2008 (build_word_mode_vector_type): Use the new variables.
2009 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
2010 (GTFILES): Add tree-complex.c.
2011 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
2013 2004-11-25 Bob Wilson <bob.wilson@acm.org>
2015 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
2016 __XTENSA_WINDOWED_ABI__.
2018 2004-11-25 Richard Henderson <rth@redhat.com>
2020 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
2021 args_size adjustments for calls even with cfa as stack pointer.
2022 Search calls for stack adjustments after the insn is issued.
2023 (dwarf2out_frame_debug): Add after_p argument; pass it on.
2024 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
2025 * final.c (final_start_function, final_scan_insn): Likewise.
2027 2004-11-25 Richard Henderson <rth@redhat.com>
2030 * reload1.c (set_initial_eh_label_offset): New.
2031 (set_initial_label_offsets): Use it.
2033 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
2035 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
2036 before calling life_analysis and release them after.
2038 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2040 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
2043 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2045 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
2046 BITMAP_OBSTACK_ALLOC.
2047 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
2049 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2051 parts of PR rtl-opt/18463, rtl-opt/17647
2052 * cse.c (canon_for_address): New function.
2053 (find_best_addr): Call canon_for_address before getting the
2054 address's cost when checking if we should take that address.
2056 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2058 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
2059 "tree *" as the first argument.
2060 * tree-flow.h: Update the prototype of add_phi_arg.
2061 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
2062 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2063 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
2064 tree-vectorizer.c: Update all call sites of add_phi_arg.
2066 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2068 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2069 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2070 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
2071 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
2073 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
2075 PR tree-optimization/18587
2076 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
2077 call clobbered caches as invalid.
2078 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
2079 indicating whether the call clobbered operand cache is valid.
2080 (ssa_ro_call_cache_valid): New. Flag indicating whether the
2081 pure/const call operand cache is valid.
2082 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
2083 list of operands for cached call virtual operands.
2084 (clobbered_aliased_loads, clobbered_aliased_stores,
2085 ro_call_aliased_load): New. flags caching whether alias bits are
2086 to be set in call stmt's.
2087 (fini_ssa_operands): Remove call operand caches if present.
2088 (get_expr_operands, get_asm_expr_operands,
2089 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
2090 (get_call_expr_operands): Add call clobbered variables first.
2091 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
2092 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
2093 if it is valid, otherise fill the cache.
2094 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
2095 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
2096 in_v_may_def_list bits.
2097 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
2098 in_list bits for the v_may_def elements and empty the operand
2100 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
2101 VUSES by checking the in_v_may_def_list bit.
2102 (append_v_may_def, append_vuse): Use the in_list bit rather than
2103 scanning the array for duplicates.
2105 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2107 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
2108 displacements are not short.
2110 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2112 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
2115 2004-11-25 Mark Mitchell <mark@codesourcery.com>
2118 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
2119 (lvalue_or_else): Declare.
2120 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
2121 * c-typeck.c (lvalue_use): Remove.
2122 (lvalue_or_else): Remove.
2125 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
2126 unemitted variables with static storage duration.
2128 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
2130 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
2133 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2135 * config/rs6000/altivec.md (VIshort): New mode macro.
2136 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
2138 (altivec_vaddu<VI_char>s): ... this.
2139 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
2141 (altivec_vadds<VI_char>s): ... this.
2142 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
2144 (altivec_vsubu<VI_char>s): ... this.
2145 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
2147 (altivec_vsubs<VI_char>s): ... this.
2148 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
2150 (altivec_vavgu<VI_char>): ... this.
2151 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
2153 (altivec_vavgs<VI_char>): ... this.
2154 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
2155 (altivec_vmsumu<VI_char>m): ... this.
2156 (altivec_vmsummbm, altivec_vmsummhm): Replace
2158 (altivec_vmsumm<VI_char>m): ... this.
2159 (altivec_vandc): Remove.
2160 (*andc<mode>3): Renamed to ...
2161 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
2162 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
2164 (altivec_vrl<VI_char>): ... this.
2165 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
2167 (altivec_vsl<VI_char>): ... this.
2168 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
2170 (altivec_vsr<VI_char>): ... this.
2171 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
2173 (altivec_vsra<VI_char>): ... this.
2174 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
2175 (altivec_vsum4s<VI_char>s): ... this.
2176 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
2178 (altivec_vperm_<mode>): ... this.
2179 (altivec_vsel_4sf): Rename to ...
2180 (altivec_vsel_v4sf): ... here.
2181 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
2183 (altivec_vsel_<mode>): ... this.
2184 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
2185 altivec_vsldoi_16qi): Rename to ...
2186 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
2187 altivec_vsldoi_v16qi): ... here.
2188 (altivec_vsldoi_4sf): Rename to ...
2189 (altivec_vsldoi_v4sf): ... here.
2190 (altivec_predicate_v4si, altivec_predicate_v8hi,
2191 altivec_predicate_v16qi): Replace with ...
2192 (altivec_predicate_<mode>): ... this.
2193 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
2195 (altivec_lve<VI_char>x): ... this.
2196 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
2198 (altivec_stve<VI_char>x): ... this.
2199 (absv16qi2, absv8hi2, absv4si2): Replace
2201 (abs<mode>2): ... this.
2202 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
2204 (altivec_abss_<mode>): ... this.
2205 (vec_realign_load_v16qi, vec_realign_load_v8hi,
2206 vec_realign_load_v4si): Replace with ...
2207 (vec_realign_load_<mode>): ... this.
2208 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
2210 (rs6000_expand_ternop_builtin): Likewise.
2212 2004-11-25 Andrew Haley <aph@redhat.com>
2214 * gcc.c (process_command): Don't supply -v to linker.
2216 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
2218 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
2219 instead of `%s' in diagnostic.
2221 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2223 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
2224 (FREE_REG_SET): Adjust.
2225 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
2226 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
2227 (BITMAP_ALLOC): ... here.
2228 (BITMAP_OBSTACK_FREE): Rename to ...
2229 (BITMAP_FREE): Don't check for NULL bitmap here.
2230 * tree-ssa-pre.c (value_insert_into_set_bitmap,
2231 bitmap_set_new): Use new names.
2233 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
2234 * df.c (df_free): Likewise.
2235 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
2236 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
2238 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
2239 (ALLOC_REG_SET): ... here.
2240 (FREE_REG_SET): Adjust.
2241 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
2242 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
2243 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
2244 * cfgrtl.c (rtl_split_block, rtl_split_edge,
2245 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
2246 * flow.c (update_life_info, calculate_global_regs_live,
2247 allocate_bb_life_data, init_propagate_block_info): Adjust.
2248 * global.c (build_insn_chain): Adjust.
2249 * ifcvt.c (dead_or_predicable): Adjust.
2250 * loop-iv.c (simplify_using_initial_values): Adjust.
2251 * recog.c (peephole2_optimize): Adjust.
2252 * sched-deps.c (init_deps_global): Adjust.
2254 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
2256 * config.gcc (avr-*-rtems*): Fix typo.
2258 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
2260 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2262 2004-11-24 Jeff Law <law@redhat.com>
2264 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
2265 the number of queries to random elements in the ai->written_vars
2268 2004-11-24 Roger Sayle <roger@eyesopen.com>
2270 * config/i386/i386.c (override_options): Disable x87 fancy math
2271 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
2273 2004-11-24 Roger Sayle <roger@eyesopen.com>
2275 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
2276 system header conflict on AIX 5.2.
2277 * configure: Regenerate.
2279 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2281 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
2282 instead of calling phi_arg_from_edge.
2284 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
2287 2004-11-24 Ben Elliston <bje@au.ibm.com>
2289 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
2290 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
2291 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
2294 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2296 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
2298 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
2299 type will be remapped.
2301 2004-11-24 Steven Bosscher <stevenb@suse.de>
2303 * c-opts.c (c_common_post_options): Don't clear
2304 flag_inline_functions.
2305 * dojump.c (clear_pending_stack_adjust): Remove check on
2306 flag_inline_functions, it's always true.
2307 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
2308 that can never trigger.
2309 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
2310 flag_inline_trees, now that flag_inline_functions is never
2312 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
2313 flag_inline_functions at optimization levels greater than
2314 or equal to 3. This is already done by default.
2316 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2318 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
2319 instead to find the PHI argument. Do not take I as an
2321 (eliminate_phi): Adjust the call to eliminate_build. Do not
2322 take I as an argument.
2323 (rewrite_trees): Adjust the call to eliminate_phi.
2325 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
2327 * optabs.h (force_expand_binop): Declare.
2328 * optabs.c (force_expand_binop): Export.
2329 * stmt.c (shift_return_value): Delete.
2330 (expand_return): Don't call it.
2331 * expr.h (shift_return_value): Declare.
2332 * calls.c (shift_returned_value): Delete in favor of...
2333 (shift_return_value): ...this new function. Leave the caller to check
2334 for non-BLKmode values passed in the msb of a register. Take said mode
2335 and a shift direction as argument. Operate on the hard function value,
2337 (expand_call): Adjust accordingly.
2338 * function.c (expand_function_start): If a non-BLKmode return value
2339 is padded at the last significant end of the return register, use the
2340 return value's natural mode for the DECL_RESULT, not the mode of the
2342 (expand_function_end): Shift the same sort of return values left by
2343 the appropriate amount.
2345 2004-11-24 Matt Austern <austern@apple.com>
2347 * recog.c (recog_memoized_1): Remove.
2348 * recog.h (recog_memoized_1): Remove declaration.
2349 (recog_memoized): Change from macro to inline function.
2351 2004-11-24 Devang Patel <dpatel@apple.com>
2354 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
2355 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
2357 2004-11-24 Devang Patel <dpatel@apple.com>
2359 * gcc.c (process_command): Supply -v to linker.
2361 2004-11-24 David Edelsohn <edelsohn@gnu.org>
2362 Paolo Bonzini <bonzini@gnu.org>
2364 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
2365 vector modes without ALTIVEC_ABI. Use GCC vector instead of
2367 (rs6000_pass_by_reference): Split conditional into pieces. Use
2368 GCC vector instead of synthetic vector.
2370 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
2372 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
2373 thread-local variable is invariant.
2375 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2377 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
2378 Handle TYPE_REF_CAN_ALIAS_ALL.
2379 (print_declaration): Print array dimensions like dump_generic_node.
2381 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
2382 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
2384 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
2386 * bitmap.c (INLINE): Do not define.
2387 (bitmap_elem_to_freelist, bitmap_element_free,
2388 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
2389 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2391 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2393 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
2394 find the index of a PHI argument. Use e->dest_idx instead.
2395 Replace hint with index.
2397 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
2400 2004-11-24 Diego Novillo <dnovillo@redhat.com>
2402 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
2403 regarding PT_MALLOC.
2405 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2407 * config/i386/i386.c (optimization_options): Use
2408 SUBTARGET_OPTIMIZATION_OPTIONS.
2409 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2410 (TARGET_SUBTARGET_DEFAULT): Don't include
2411 MASK_OMIT_LEAF_FRAME_POINTER.
2413 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2415 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2418 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2420 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2421 Use amd64 instead of 64.
2423 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2424 Joseph Myers <joseph@codesourcery.com>
2426 * crtstuff.c (IN_LIBGCC2): Define it.
2427 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2428 instead of HAVE_LD_RO_RW_SECTION_MIXING.
2429 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2430 * dwarf2out.c (named_section_eh_frame_section): Check
2431 EH_TABLES_CAN_BE_READ_ONLY.
2432 * except.c (default_exception_section): Likewise.
2433 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2434 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2436 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2438 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2439 index of a PHI argument.
2441 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2442 find_edge to find the index of a PHI argument.
2444 2004-11-24 Steven Bosscher <stevenb@suse.de>
2446 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2447 and LABELED_BLOCK_EXPR.
2448 * gimplify.c (gimplify_labeled_block_expr): Remove.
2449 (gimplify_exit_block_expr): Remove.
2450 (gimplify_expr): Don't call them.
2451 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2452 and LABELED_BLOCK_EXPR.
2453 (estimate_num_insns_1): Likewise.
2454 (walk_tree): Likewise.
2455 * tree-pretty-print.c (dump_generic_node): Don't handle
2456 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2457 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2458 (LABELED_BLOCK_EXPR): Likewise.
2459 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2460 (LABELED_BLOCK_BODY): Likewise.
2461 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2462 (EXIT_BLOCK_RETURN): Removed.
2464 2004-11-24 Steven Bosscher <stevenb@suse.de>
2466 * cfgrtl.c (rtl_delete_block): Fix comment.
2467 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2468 or BLOCK_END insn notes.
2469 * jump.c (squeeze_notes): Likewise.
2470 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2471 EH_REGION_END notes, we never have them to begin with.
2472 * sched-deps.c (sched_analyze_insn): When updating loop notes,
2473 verify that we have indeed only recorded loop notes.
2474 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2475 Only record loop notes.
2477 * cfgexpand.c (tree_expand_cfg): Fix comment.
2479 * passes.c (rest_of_compilation): Don't do a second call to
2480 convert_from_eh_region_ranges from here, it's already called
2482 * except.c (resolve_fixup_regions): Remove.
2483 (remove_fixup_regions): Remove.
2484 (convert_from_eh_region_ranges_1): Remove.
2485 (convert_from_eh_region_ranges): Remove the case where EH is
2486 not already lowered at the tree level. We always lower there.
2488 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
2491 * tree.c (make_vector_type): Move qualifiers to the vector type,
2492 use the inner type's main variant and build a main variant for
2493 the vector type if necessary.
2494 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
2496 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2498 * target.h (late_rtl_prologue_epilogue): Remove.
2499 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2500 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
2501 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
2502 remaining bits to...
2503 (rest_of_handle_flow2): ...here.
2504 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
2505 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2507 2004-11-23 Mark Mitchell <mark@codesourcery.com>
2509 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
2510 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
2511 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
2513 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
2515 * config/i386/i386.c (override_options): Move
2516 SUBTARGET_OVERRIDE_OPTIONS before defaulting
2517 flag_omit_frame_pointer.
2519 2004-11-23 Richard Henderson <rth@redhat.com>
2521 * rtl.h (validate_subreg): Declare.
2522 * emit-rtl.c (validate_subreg): New.
2523 (gen_rtx_SUBREG): Use it.
2524 * simplify-rtx.c (simplify_subreg): Likewise.
2525 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
2526 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
2527 fallback whenever gen_realpart/gen_imagpart would not be able to
2530 2004-11-23 Richard Henderson <rth@redhat.com>
2532 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
2533 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
2536 2004-11-23 Diego Novillo <dnovillo@redhat.com>
2538 PR tree-optimization/18618
2539 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
2540 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
2541 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
2543 (stmts_to_rescan): Likewise.
2544 (const_and_copies_stack): Likewise.
2545 (nonzero_vars_stack): Likewise.
2546 (vrp_variables_stack): Likewise.
2548 2004-11-23 Richard Henderson <rth@redhat.com>
2550 * cse.c (record_jump_cond_subreg): New.
2551 (record_jump_cond): Use it instead of gen_lowpart.
2553 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
2554 Joseph Myers <joseph@codesourcery.com>
2556 * config/sol2-c.c (solaris_register_pragmas): Use
2557 c_register_pragma_with_expansion.
2558 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
2559 * c-pragma.c (c_register_pragma): Update call to
2560 cpp_register_pragma.
2561 (c_register_pragma_with_expansion): New function.
2562 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
2563 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
2564 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
2566 * doc/tm.texi (c_register_pragma_with_expansion,
2567 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
2569 2004-11-23 Richard Henderson <rth@redhat.com>
2571 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
2572 as mode sizes into local temporaries. Unify failure path.
2574 2004-11-23 Richard Henderson <rth@redhat.com>
2576 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
2577 * caller-save.c (mark_set_regs): Use subreg_regno instead.
2578 * final.c (alter_subreg): Likewise.
2579 * local-alloc.c (reg_is_born): Likewise.
2581 2004-11-23 Richard Henderson <rth@redhat.com>
2583 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
2584 instead of using a SUBREG temporary.
2586 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2588 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
2591 2004-11-23 Zack Weinberg <zack@codesourcery.com>
2593 * function.h (struct function): Remove calls_longjmp.
2594 (current_function_calls_longjmp): Delete.
2595 * tree.h (ECF_LONGJMP): Delete.
2596 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
2597 (ECF_LIBCALL_BLOCK): Everybody slide down one.
2598 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
2599 * builtins.c (expand_builtin_longjmp): Don't set
2600 current_function_calls_longjmp.
2601 * calls.c (special_function_p): Mark longjmp and siglongjmp
2602 with ECF_NORETURN, not ECF_LONGJMP.
2603 (emit_call_1, expand_call, emit_library_call_value_1):
2604 Don't check for ECF_LONGJMP.
2605 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
2606 (need_fake_edge_p): Likewise.
2608 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
2609 * system.h: Poison NON_SAVING_SETJMP.
2610 * function.c (use_register_for_decl)
2611 * gcse.c (compute_hash_table_work, compute_store_table)
2612 * postreload-gcse.c (record_opr_changes)
2613 * reload.c (find_equiv_reg)
2614 * reload1.c (reload)
2615 * config/i386/i386.c (ix86_can_use_return_insn_p):
2616 Remove code conditional on NON_SAVING_SETJMP.
2617 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
2619 * config/i386/sysv3.h: Delete file.
2620 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
2622 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2624 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
2625 the vectorization factor is greater than the iteration count.
2626 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
2627 iteration count is known.
2629 (vect_build_symbol_bound): Removed. Its functionality moved to
2630 vect_generate_tmps_on_preheader.
2631 (vect_generate_tmps_on_preheader): Moved content of
2632 vect_build_symbol_bound here instead of calling it. Changed some
2635 (vect_build_loop_niters): We don't expect a new_bb to be generated -
2637 (vect_gen_niters_for_prolog_loop): Likewise.
2638 (vect_gen_niters_for_prolog_loo): Likewise.
2640 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
2641 (slpeel_add_loop_guard): Likewise.
2642 (slpeel_tree_peel_loop_to_edge): Likewise.
2643 (vect_do_peeling_for_alignment): Likewise.
2645 (vect_get_first_index): Missing space.
2647 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
2649 * config/s390/s390.md ("*iordi3"): Mark commutative.
2650 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
2652 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2654 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
2655 greater than PHI_ARG_CAPACITY.
2656 (reserve_phi_args_for_new_edge): Initialize the new PHI
2657 argument to NULL_TREE. Increment PHI_NUM_ARGS.
2658 (add_phi_arg): Add a PHI argument to the slot given by
2660 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
2661 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
2662 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
2663 argument by looking at PHI_ARG_DEF.
2664 (verify_phi_args): Check for a missing PHI argument. Remove
2665 the check for duplicate PHI arguments.
2666 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
2667 (phi_arg_d): Remove e.
2669 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
2670 by restricting to the case with two outgoing edges.
2672 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
2674 * config/s390/s390.c (s390_backchain_string): Removed.
2675 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
2676 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
2677 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
2678 TARGET_KERNEL_BACKCHAIN to reflect the new options.
2679 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
2680 (TARGET_KERNEL_BACKCHAIN): Removed.
2681 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
2682 (TARGET_PACKED_STACK): New macro.
2683 (TARGET_SWITCHES): New switches added.
2684 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
2686 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
2687 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
2688 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
2689 the change in target switch semantics.
2690 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
2691 (TARGET_DEFAULT): MASK_BACKCHAIN added.
2692 * doc/invoke.texi: Added documentation for the new/changed options.
2694 2004-11-23 Uros Bizjak <uros@kss-loka.si>
2696 PR rtl-optimization/18614
2697 * simplify-rtx.c (simplify_binary_operation): Do not
2698 simplify inner elements of constant arguments of
2701 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2703 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
2706 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2708 * tree-phinode.c (make_phi_node): Use a new variable,
2709 capacity, to receive the return value of ideal_phi_node_len.
2711 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2713 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
2714 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2715 __gthread_recursive_mutex_init_function.
2716 (__gthread_key_create): Properly cast -1.
2717 (__gthread_recursive_mutex_init_function): New function.
2718 (__gthread_recursive_mutex_lock): Rewrite.
2719 (__gthread_recursive_mutex_trylock): Likewise.
2720 (__gthread_recursive_mutex_unlock): Likewise.
2722 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2724 * config/c4x/t-rtems: New.
2725 * config.gcc: Reflect having added c4x/t-rtems.
2727 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2731 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
2732 lang_hooks.types.type_for_size instead of integer_type_node for the
2735 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2737 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
2739 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2741 * config/arm/t-rtems: New.
2742 * config.gcc: Reflect having added arm/t-rtems.
2744 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2746 * tree-cfg.c (tree_execute_on_growing_pred): New.
2747 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
2748 * tree-flow.h: Add a prototype for
2749 reserve_phi_args_for_new_edge.
2750 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
2751 (add_phi_arg): Don't resize a PHI array.
2753 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2755 * config.gcc: Add avr-*-rtems*.
2756 * config/avr/t-rtems: New.
2757 * config/avr/rtems.h: New.
2759 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2761 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
2762 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
2763 Add comment to function.
2765 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2768 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
2770 PR rtl-optimization/14838
2771 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
2773 (get_last_nonnote_insn): Don't assume last insn is a note.
2775 2004-11-22 Roger Sayle <roger@eyesopen.com>
2777 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
2778 to fold_binary_to_constant.
2779 (nondestructive_fold_unary_to_constant): Likewise, rename to
2780 fold_unary_to_constant.
2781 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
2782 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
2783 (nondestructive_fold_unary_to_constant): Likewise.
2784 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
2785 and fold_binary_to_constant.
2786 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2787 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
2788 and EXEC_UNARY with calls to fold_*nary_to_constant.
2789 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2790 (idx_find_step): Replace uses of EXEC_BINARY with calls to
2791 fold_binary_to_constant.
2793 2004-11-22 Nick Clifton <nickc@redhat.com>
2795 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2796 initialisation of 'e'.
2798 2004-11-22 Roger Sayle <roger@eyesopen.com>
2800 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
2801 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
2802 automatically for targets without TARGET_80387.
2803 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
2804 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
2805 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
2806 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
2807 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
2808 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
2809 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
2810 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
2811 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
2812 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
2813 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
2814 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
2815 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
2816 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
2817 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
2818 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
2819 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
2820 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
2821 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
2822 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
2824 2004-11-22 Dale Johannesen <dalej@apple.com>
2826 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
2827 properly and comment.
2829 2004-11-22 James A. Morrison <phython@gcc.gnu.org
2831 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
2832 (sparc_init_builtins): New function.
2833 (sparc_init_vis_builtins): Create builtin functions for VIS
2835 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
2836 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
2837 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
2838 (def_builtin): New macro for creating builtin functions.
2839 (P): New mode macro for pointer types.
2840 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
2841 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
2842 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
2843 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
2844 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2845 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
2846 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
2848 2004-11-22 Devang Patel <dpatel@apple.com>
2850 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
2852 2004-11-22 Devang Patel <dpatel@apple.com>
2854 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
2855 (if_convertible_phi_p): ... new name.
2856 (if_convertable_modify_expr_p): Rename to ...
2857 (if_convertible_modify_expr_p): ... new name.
2858 (if_convertable_stmt_p): Rename to ...
2859 (if_convertible_stmt_p): ... new name.
2860 (if_convertable_bb_p): Rename to ...
2861 (if_convertible_bb_p): ... new name.
2862 (if_convertable_loop_p): Rename to ...
2863 (if_convertible_loop_p): ... new name.
2865 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2868 * configure.ac (threading): Accept 'posix95'.
2869 * configure: Regenerate.
2870 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
2871 include sol26.h and default to posix95 threads if have_pthread_h.
2872 (sparc-*-solaris2*): Likewise.
2873 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
2874 * gthr-posix95.h: New file.
2875 * config/sol26.h: New file.
2876 * doc/install.texi (--enable-threads): Document 'posix95'.
2878 2004-11-23 Ben Elliston <bje@au.ibm.com>
2880 * pointer-set.h (pointer_set_contains): Remove.
2881 * pointer-set.c (pointer_set_contains): Likewise.
2883 2004-11-22 Dale Johannesen <dalej@apple.com>
2885 * calls.c (expand_call): Do not call preserve_temp_slots.
2887 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2889 * tree-flow.h: Remove the prototype for remove_phi_arg.
2890 Add a prototype for remove_phi_args.
2891 * tree-phinodes.c (remove_phi_arg): Remove.
2892 (remove_phi_args): New.
2893 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
2896 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
2897 after making an edge.
2898 (remove_edge): Call execute_on_shrinking_pred before removing
2900 (redirect_edge_succ): Call execute_on_growing_pred and
2901 execute_on_shrinking_pred.
2902 * cfghooks.c (execute_on_growing_pred): New.
2903 (execute_on_shrinking_pred): Likewise.
2904 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
2905 execute_on_shrinking_pred.
2906 Add prototypes for execute_on_growing_pred and
2907 execute_on_shrinking_pred.
2908 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
2909 execute_on_growing_pred and execute_on_shrinking_pred.
2910 (cfg_layout_rtl_cfg_hook): Likewise.
2911 * tree-cfg.c (tree_cfg_hooks): Likewise.
2913 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
2914 (tree_cfg_hooks): Use it.
2915 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
2916 (ssa_redirect_edge): Don't call remove_phi_arg_num.
2918 * tree-phinodes.c (remove_phi_arg_num): Make it static.
2919 * tree-flow.h: Remove the corresponding prototype.
2921 * tree-ssa.c (ssa_remove_edge): Remove.
2922 * tree-flow.h: Remove the corresponding prototype.
2923 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
2924 * basic-block.h: Likewise.
2925 * tree-if-conv.c: Likewise.
2926 * tree-ssa-threadupdate.c: Likewise.
2928 2004-11-23 Ben Elliston <bje@au.ibm.com>
2930 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
2931 @table to list the BSI methods. Use individual @findex directives
2932 instead of one with a comma-separated list of index entries.
2934 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
2936 PR tree-optimization/18529
2937 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2938 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
2939 (fold): Call fold_to_nonsharp_ineq_using_bound.
2940 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2941 (number_of_iterations_cond): Fold the expressions before futher
2943 (tree_simplify_using_condition): Handle case when cond or expr is
2944 an EQ_EXPR specially.
2946 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2948 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2949 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2951 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2952 Fariborz Jahanian <fjahanian@apple.com>
2954 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2956 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2957 Align 16 byte and larger vectors like Altivec.
2958 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2959 (function_arg): Same.
2960 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2962 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2965 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2968 2004-11-22 Richard Henderson <rth@redhat.com>
2970 * function.c (assign_parm_setup_block): Revert 11-13 change to
2971 forcably re-mode a (possibly BLKmode) hard register.
2973 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2975 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2977 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2979 * config/rs6000/power4.md: Remove delay between dispatch and issue
2980 associated with dispatch group slots 3 and 4.
2981 * config/rs6000/power5.md: Same.
2983 2004-11-21 Jeff Law <law@redhat.com>
2985 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2987 * cfgbuild.c (make_edges): Likewise.
2988 * cfghooks.c (can_duplicate_block_p): Likewise.
2989 * cfgloop.c (loop_latch_edge): Likewise.
2990 * cfgloopmanip.c (force_single_succ_latches): Likewise.
2991 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2992 * predict.c (predict_loops, propagate_freq): Likewise.
2993 * tracer.c (tail_duplicate): Likewise.
2994 * tree-cfg.c (disband_implicit_edges): Likewise.
2995 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2997 2004-11-22 Nick Clifton <nickc@redhat.com>
2999 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
3000 initialisation of 'e'.
3002 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
3004 PR rtl-optimization/18599
3005 * regrename.c (copyprop_hardreg_forward): Speed up by putting
3006 BB_VISITED flags on basic blocks as we process them.
3008 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3011 * config/rs6000/altivec.md (VI_char): New mode attribute.
3012 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
3013 (add<mode>3): ... this.
3014 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
3015 (sub<mode>3): ... this.
3016 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
3017 (smax<mode>3): ... this.
3018 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
3019 (smin<mode>3): ... this.
3020 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
3021 (umax<mode>3): ... this.
3022 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
3023 (umin<mode>3): ... this.
3024 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3025 (and<mode>3): ... this.
3026 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3027 (ior<mode>3): ... this.
3028 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
3029 (xor<mode>3): ... this.
3030 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3031 (and<mode>3): ... this.
3032 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3033 (ior<mode>3): ... this.
3034 (altivec_vnor): Replace with ...
3035 (altivec_nor<mode>): ... this.
3036 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
3037 (one_cmpl<mode>2): ... this.
3038 (altivec_vandc): New expander.
3039 (*andc<mode>3): New insn.
3040 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
3042 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3045 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
3046 creating iv instead of integer_type.
3047 (vect_build_loop_niters): Remove redundant code.
3048 (vect_transform_loop_bound): Removed (duplicates functionality of
3049 make_loop_iterate_ntimes.
3050 (vect_gen_niters_for_prolog_loop): Add documentation. Call
3051 lang_hooks.types.type_for_size to create a type of the required size.
3052 Use that type instead of integer_type. Remove redundant code.
3053 (vect_update_niters_after_peeling): Use type of niters instead of
3055 (vect_transform_loop): Unify handling of known and unknown loop bound
3056 cases. Call make_loop_iterate_ntimes instead of
3057 vect_transform_loop_bound.
3059 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3062 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
3065 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3068 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
3070 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3072 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
3074 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
3075 m32r/libgcc-glibc.ver.
3076 * config/m32r/libgcc-glibc.ver: Add New file.
3078 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3080 * bitmap.h (struct bitmap_obstack): New obstack type.
3081 (struct bitmap_head_def): Replace using_obstack with obstack
3083 (bitmap_default_obstack): New.
3084 (bitmap_initialize): Make inline, does not do allocation.
3085 (bitmap_release_memory): Remove.
3086 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
3087 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3088 bitmap_obstack_free, bitmap_malloc_free): Declare.
3089 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
3090 (BITMAP_FREE): Replace with ...
3091 (BITMAP_OBSTACK_FREE): ... this.
3092 (BITMAP_XFREE): Adjust.
3093 (BITMAP_INIT_ONCE): Remove.
3094 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
3095 (bitmap_default_obstack): New.
3096 (bitmap_elem_to_freelist): Adjust.
3097 (bitmap_element_allocate): Adjust. Break initialization into ...
3098 (bitmap_obstack_initialize): ... here.
3099 (bitmap_release_memory): Replace with ...
3100 (bitmap_obstack_release): ... this.
3101 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3102 bitmap_obstack_free, bitmap_malloc_free): New.
3103 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
3105 (bitmap_initialize): Move to bitmap.h.
3106 * gengtype.c (open_base_files): Add obstack.h to ifiles.
3107 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
3108 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
3109 (INITIALIZE_REG_SET): Remove.
3110 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
3111 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
3112 (flow_obstack): Do not declare.
3113 (reg_obstack): Declare.
3114 * regs.h: Include obstack.h.
3115 * tree-optimize.c (tree_rest_of_compilation): Initialize and
3116 release bitmap obstack here.
3117 * bb-reorder.c: #include regs, not basic-block.
3118 (fix_crossing_conditional_branches): Allocate regsets from
3120 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
3122 * caller-save.c: Include regs.h earlier.
3123 * cfg.c: Do not include basic-block.h or obstack.h.
3124 (reg_obstack): Define.
3125 * cfganal.c: Include obstack.h
3126 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
3128 * cfglayout.c: Do not include obstack.h.
3129 (flow_obstack): Remove declaration.
3130 (cfg_layout_duplicate_bb): Use reg_obstack.
3131 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
3132 * cfgrtl.c (rtl_split_block): Use reg_obstack.
3133 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
3134 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
3135 (cfg_layout_split_edge): Use reg_obstack.
3136 * cse.c: Include regs.h earlier.
3137 * ddg.c: Do not include basic-block.h.
3138 * dominance.c: Inlude obstack.h.
3139 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
3140 (calculate_global_regs_live): Likewise.
3141 (allocate_bb_life_data): Use reg_obstack.
3142 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
3143 * global.c: Do not include basic-block.h.
3144 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
3145 * graph.c: Include obstack.h.
3146 * haifa-sched.c: Do not include basic-block.h.
3147 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
3148 * local-alloc.c: Do not include basic-block.h.
3149 * loop-init.c, loop-invariant.c: Include obstack.h.
3150 * loop-iv.c: Likewise.
3151 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
3153 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
3154 * modulo-sched.c: Do not include basic-block.h.
3155 * passes.c (rest_of_handle_final): Do not call
3156 regset_release_memory.
3157 * ra-debug.c: Include regs.h earlier. Do not include
3159 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
3160 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
3161 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
3162 (regset_release_memory): Remove.
3163 * resource.c: Do not include basic-block.h.
3164 * rtlanal.c: Do not include basic-block.h.
3165 * sbitmap.c: Include obstack.h.
3166 * sched-deps.c: Do not include basic-block.h.
3167 (reg_pending_sets_head, reg_pending_clobbers_head,
3168 reg_pending_uses_head): Remove.
3169 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
3170 * sched-ebb.c: Do not include basic-block.h.
3171 * sched-rgn.c: Likewise.
3172 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
3174 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
3175 * tree-sra.c (decide_instantiations): Adjust bitmap
3177 * tree-ssa-dce.c: Include obstack.h.
3178 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
3179 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
3180 (bitmap_set_new): Likewise.
3181 (init_pre): Initialize bitmap obstack.
3182 (fini_pre): Release bitmap obstack.
3183 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
3184 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
3185 (mark_for_rewrite, unmark_for_rewrite): Likewise.
3186 (marked_ssa_names): Likewise.
3187 (init_ssanames): Use BITMAP_XMALLOC.
3188 (fini_ssanames): Use BITMAP_XFREE.
3189 * web.c: Include obstack.h
3191 2004-11-22 Nick Clifton <nickc@redhat.com>
3193 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
3194 predecessor in the first for-loop.
3196 2004-11-21 Stan Shebs <shebs@apple.com>
3198 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
3200 (function_arg): Move darwin test up, sniff mode first for
3201 efficiency, test for union type.
3203 2004-11-21 Dale Johannesen <dalej@apple.com>
3205 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3207 2004-11-21 Jeff Law <law@redhat.com>
3209 * tree-ssa.c (verify_use): Fix comment.
3210 (verify_phi_args): Check that the number of incoming edges matches
3211 the number of PHI arguments. Check that each PHI argument is
3212 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
3213 dead or duplicated edges. Clear e->aux earlier and avoid separate
3214 loop to clear e->aux and test for missed edges.
3215 (verify_ssa): Remove first walk over statements. Move checking
3216 of PHI args into verify_phi_args. Move checking of statements
3217 with aliased stores and V_MAY_DEFS into the remaining loop over
3218 the statements. Register defs by walking through the formal
3221 2004-11-21 Roger Sayle <roger@eyesopen.com>
3224 * dojump.c (compare_from_rtx): Clarify mode argument in function
3225 description. Correct order of mode/cmp_mode arguments in call to
3226 simplify_relational_operation. Check "tem" for COMPARISON_P.
3228 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
3229 David Edelsohn <edelsohn@gnu.org>
3232 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
3233 synthetic vectors in memory.
3234 (function_arg_boundary): Align large synthetic vectors.
3235 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
3237 2004-11-21 Jeff Law <law@redhat.com>
3239 * cfg.c (update_bb_profile_for_threading): Do not rescale the
3240 successor probabilities if they are not going to change. Pull
3241 division out of loop if we do need to rescale successor probabilities.
3243 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
3244 index of the destination block for the hash value rather than
3247 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
3249 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
3250 checks for neither argument being an array or pointer (swapping
3251 the arguments if necessary), the array argument being a pointer to
3252 or array of functions and for -Wchar-subscripts warnings upfront.
3254 2004-11-20 Jeff Law <law@redhat.com>
3256 * regrename.c (copyprop_hardreg_forward): Only search for a
3257 previously processed block if the current block only has one
3260 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
3262 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
3264 * config/arm/arm.c: Follow spelling conventions.
3266 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
3268 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
3269 a bit in tune_flags.
3270 (const_double_needs_minipool): Likewise. Split most of the code out
3272 (arm_const_double_inline_cost): ... new function here.
3273 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
3274 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
3275 word constants of length 2, 3 and 4 insns respectively.
3276 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
3277 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
3278 constraints. Set insn lenghts accordingly.
3280 2004-11-19 Jeff Law <law@redhat.com>
3282 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
3283 a hash table. Extensive modifications throughout to support
3286 (struct local_info): New.
3287 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
3289 (redirection_data): Now a hashtable.
3290 (redirection_data_hash, redirection_data_eq): New.
3291 (lookup_redirection_data, create_duplicates): New.
3292 (create_edge_and_update_destionation_phis): New.
3293 (fixup_template_block, redirect_edges): New.
3294 (thread_block): Use hash table traversals instead of loops over
3295 varray entries or incoming edge vectors.
3297 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3299 * basic-block.h (edge_def): Add dest_idx.
3300 * cfg.c (unchecked_make_edge): Initialize dest_idx.
3301 (remove_edge): Simplify the disconnection of an edge from its
3303 (redirect_edge_succ): Likewise.
3304 * cfghooks.c (verify_flow_info): Check the consistency of
3305 dest_idx for each edge.
3307 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
3309 * simplify-rtx.c (simplify_ternary_operation): Use
3312 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3314 * tree-cfg.c (reinstall_phi_args): New.
3315 (tree_split_edge): Use it after redirecting an edge. Don't
3316 modify PHI_ARG_EDGE.
3318 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
3320 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
3321 if checking is enabled.
3323 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
3325 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
3326 too many nested scopes.
3328 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3331 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
3332 changed to suppoer uses-after-loop and to void creating flow paths
3333 that shouldn't exist.
3334 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
3335 Modified to fit the new peeling scheme. Avoid quadratic behavior.
3336 (slpeel_add_loop_guard): Takes additional argument.
3337 (slpeel_verify_cfg_after_peeling): New function.
3338 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
3339 documentation. Use 'exit-bb' instead of creating 'new-bb'.
3340 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
3341 the new peeling scheme.
3342 (copy_phi_nodes): Function removed. Its functionality moved to
3343 update_phis_for_duplicate_loop.
3344 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
3345 moved here. Added documentation. Modified to fit the new peeling scheme.
3346 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
3347 needed - done in slpeel_tree_peel_loop_to_edge.
3348 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
3349 (vect_do_peeling_for_loop_bound): Add documentation. Call
3350 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
3351 with additional argument.
3352 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
3354 (vect_finish_stmt_generation): Avoid 80 column oveflow.
3356 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3358 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
3360 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
3361 without last two arguments. Update single_exit of loops.
3362 (vect_update_niters_after_peeling): Removed. Its functionality was
3363 moved to vect_do_peeling_for_alignment.
3364 (vect_do_peeling_for_loop_bound): New name for function previously
3365 called vect_transform_for_unknown_loop_bound.
3366 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
3367 instead of code that duplicates the same functionality.
3368 (vect_do_peeling_for_alignment): Functionality of
3369 vect_update_niters_after_peeling moved here.
3370 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
3371 previously named vect_transform_for_unknown_loop_bound - for both known
3372 and unknown loop bound cases.
3374 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3376 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
3377 previously called verify_loop_for_duplication. All conditions compacted
3378 into one compound condition. Removed debug dumps.
3379 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
3380 functionality moved to vect_can_advance_ivs_p, and some to
3381 vect_analyze_loop_form.
3382 (vect_can_advance_ivs_p): New function. Contains functionality that was
3383 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
3384 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
3385 (vect_analyze_operations): Call vect_can_advance_ivs_p and
3386 slpeel_can_duplicate_loop_p.
3387 (vect_get_loop_niters): Added documentation.
3388 (vect_analyze_loop_form): Check the loop entry always - not only in case
3389 of unknown loop bound. Create preheader and exit bb if necessary. Apply
3390 a check that used to take place in
3391 vect_analyze_loop_with_symbolic_num_of_iters.
3392 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
3393 Remove redundant call to rewrite_into_loop_closed_ssa.
3394 (vect_compute_data_refs_alignment): Removed obsolete comment.
3396 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3398 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
3399 function previously called tree_duplicate_loop_to_edge.
3400 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
3401 previously called tree_duplicate_loop_to_edge_cfg.
3402 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
3404 (slpeel_update_phi_nodes_for_guard): Likewise.
3405 (slpeel_make_loop_iterate_ntimes): Likewise.
3406 (slpeel_add_loop_guard): Likewise.
3407 (allocate_new_names, free_new_names): Function declaration moved to top
3409 (rename_use_op, rename_def_op): Likewise.
3410 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3411 (vect_generate_tmps_on_preheader): Function declaration moved.
3412 (vect_transform_for_unknown_loop_bound): Added missing function
3415 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
3418 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3419 Define a VEC(tree_on_heap) for head.
3420 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3421 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3422 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3423 the VEC(tree_on_heap) function. Also free it before returning.
3424 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3425 for block_defs_stack.
3426 (restore_currdefs_to_original_value): Use VEC_length instead of
3427 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3428 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3429 for block_defs_stack.
3430 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3431 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3432 for block_defs_stack.
3433 (ssa_register_new_def): Likewise.
3434 (ssa_rewrite_initialize_block): Likewise.
3435 (rewrite_finalize_block): Use VEC_length instead of
3436 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3437 (ssa_rewrite_finalize_block): Likewise.
3438 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3439 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3440 (rewrite_blocks): Initialize block_defs_stack with
3441 the VEC(tree_on_heap) function. Also free it before returning.
3442 (rewrite_ssa_into_ssa): Likewise.
3444 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
3446 * config/darwin.c (machopic_data_defined_p): return 1 for
3447 MACHOPIC_DEFINED_FUNCTION.
3449 2004-11-19 Jeff Law <law@redhat.com>
3451 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3454 2004-11-19 Paul Brook <paul@codesourcery.com>
3457 * varasm.c (default_assemble_integer): Allow pointer-sized values.
3460 2004-11-19 Nick Clifton <nickc@redhat.com>
3462 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3463 zero_extension and lshiftrt insns.
3464 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3466 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3467 to handle bp and bn insn patterns with a zero_extend rtx
3470 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
3472 * config/arm/arm.md (generic_sched): Make const.
3474 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3476 * emit-rtl.c (classify_insn): Make it static.
3477 * rtl.h: Remove the corresponding prototype.
3479 * integrate.c (has_func_hard_reg_initial_val,
3480 get_func_hard_reg_initial_val): Make them static.
3481 * integrate.h: Remove the corresponding prototypes.
3483 2004-11-19 Ben Elliston <bje@au.ibm.com>
3485 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3486 (dw2_asm_output_delta_sleb128): Likewise.
3487 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3488 (dw2_asm_output_delta_sleb128): Likewise.
3490 2004-11-19 Adam Nemet <anemet@lnxw.com>
3492 * tree-ssa-alias.c: Fix comment.
3494 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3496 * tree-outof-ssa.c: Fix a comment typo.
3498 2004-11-19 Ben Elliston <bje@au.ibm.com>
3500 * predict.h (predict_insn): Remove extern declaration.
3501 * predict.c (predict_insn): Make static.
3503 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3505 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
3507 2004-11-18 Nicolas Pitre <nico@cam.org>
3509 * config/arm/arm.c (const_double_needs_minipool): New function to
3510 determine if a CONST_DOUBLE should be pushed to the minipool.
3511 (note_invalid_constants): Use it.
3513 2004-11-18 Paul Brook <paul@codesourcery.com>
3515 * config/arm/arm.c (target_float_switch): New variable..
3516 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
3517 target_float_switch.
3518 * config/arm/arm.h (target_float_switch): Declare.
3519 (ARM_FLAG_SOFT_FLOAT): Remove.
3520 (TARGET_SWITCHES): Remove hard-float and soft-float.
3521 (TARGET_OPTIONS): Add hard-float and soft-float.
3522 (TARGET_DEFAULT_FLOAT_ABI): Define.
3523 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
3524 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
3525 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
3526 * config/arm/netbsd-elf.h: Ditto.
3527 * config/arm/netbsd.h: Ditto.
3528 * config/arm/pe.h: Ditto.
3529 * config/arm/unknown-elf.h: Ditto.
3530 * config/arm/wince-pe.h: Ditto.
3531 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3532 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3533 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3535 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3537 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
3538 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
3539 altivec_lvx_4sf): Rename and replace with ...
3540 (altivec_lvx_<mode>): ... mode macro version.
3541 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
3542 altivec_stvx_4sf): Rename and replace with ...
3543 (altivec_stvx_<mode>): ... mode macro version.
3544 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
3545 (mov<mode>): ... mode macro version.
3546 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
3547 *movv4sf_internal1): Replace with ...
3548 (*mov<mode>_internal): ... mode macro version.
3549 (get_vrsave_internal, *set_vrsave_internal, *save_world,
3550 *restore_world): Unquote output statements.
3551 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
3552 altivec_expand_st_builtin): Adjust insn names.
3554 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
3556 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
3558 (rs6000_override_options): Likewise.
3559 (spe_build_register_parallel): Handle complex doubles on e500v2.
3560 (rs6000_spe_function_arg): Likewise.
3561 (function_arg): Likewise.
3562 (rs6000_function_value): Likewise.
3563 (rs6000_libcall_value): Likewise.
3565 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
3567 * ifcvt.c (find_if_block): Move the check for the number of edges
3568 above the loops checking for complex edges.
3569 Remove the counting of edges as we use EDGE_COUNT now.
3571 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3573 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3574 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
3576 2004-11-18 Andreas Schwab <schwab@suse.de>
3578 * config/i386/i386.md (define_peephole2): Revert last change.
3580 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3582 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3583 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
3585 2004-11-18 Diego Novillo <dnovillo@redhat.com>
3587 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
3590 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
3592 * Makefile.in (macro_list): Depend on s-macro_list.
3593 (s-macro_list): New target.
3595 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3598 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3599 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3600 (fold_range_test): Adjust.
3601 (fold_truthop): Use it.
3602 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3603 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3605 2004-11-18 Uros Bizjak <uros@kss-loka.si>
3607 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
3608 insn split constraint.
3609 (define_peephole2): Remove unneeded "&& 1" from peephole2
3612 2004-11-18 Ben Elliston <bje@au.ibm.com>
3614 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
3615 element for bsi_prev; use @findex instead.
3617 2004-11-18 Ben Elliston <bje@au.ibm.com>
3619 * opts.h (add_input_filename): Remove extern declaration.
3620 * opts.c (add_input_filename): Make static.
3622 2004-11-17 Mark Mitchell <mark@codesourcery.com>
3624 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
3627 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3629 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
3630 * system.h: Poison it.
3631 * doc/tm.texi: Delete its documentation.
3633 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
3634 Mark Mitchell <mark@codesourcery.com>
3636 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
3637 * config/i386/i386.c (i386_solaris_elf_named_section): New
3639 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
3640 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
3642 (ASM_QUAD): Don't undefine for biarch targets.
3643 * config/i386/t-sol2: Introduce multilib support.
3645 2004-11-18 Ben Elliston <bje@au.ibm.com>
3647 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
3649 2004-11-18 Ben Elliston <bje@au.ibm.com>
3651 * cgraph.h: Replace "it's" with "its" throughout.
3653 2004-11-18 Ben Elliston <bje@au.ibm.com>
3655 * doc/rtl.texi (Flags): Grammar fix.
3657 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3659 * expmed.c (alg_code): Add alg_unknown.
3660 (alg_hash_entry): New.
3661 (NUM_ALG_HASH_ENTRIES): Likewise.
3662 (alg_hash): Likewise.
3663 (synth_mult): Cache the result into alg_hash.
3665 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3667 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
3668 config/rs6000/libgcc-ppc64.ver.
3670 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3672 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
3673 checking if an unconditional return is followed by a barrier.
3675 * jump.c (condjump_p): Remove unreachable code.
3677 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
3678 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
3679 tree-ssa-live.h, tree.h: Remove unused prototypes.
3681 2004-11-17 Jeff Law <law@redhat.com>
3683 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
3684 (edge_to_cases_elt): Renamed from edge_to_case_leader.
3685 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
3686 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
3687 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
3688 (get_cases_for_edge): New function.
3689 (start_recording_case_labels, end_recording_case_labels): Similarly.
3690 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
3691 chain equivalent CASE_LABEL_EXPRs together.
3692 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
3693 (make_switch_expr_edges): Do not record edge/cases here.
3694 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
3695 (split_critical_edges): Record cases around the edge splitting code.
3696 (cleanup_dead_labels): Use CASE_LABEL again.
3697 (tree_redirect_edge_and_branch): If we have a mapping from edge
3698 to cases, use it to handle redirections. Else do it the slow way.
3699 * tree.h (CASE_LEADER_OR_LABEL): Kill.
3700 (CASE_LABEL): Revert to just looking at the tree's second operand.
3701 * tree.c (get_case_label): Kill.
3703 2004-11-17 Diego Novillo <dnovillo@redhat.com>
3705 PR tree-optimization/18307
3706 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
3707 'orig' are the same node.
3708 (collect_points_to_info_r): Do not call merge_pointed_to_info
3709 when the PHI argument is identical to the LHS.
3711 2004-11-17 Steven Bosscher <stevenb@suse.de>
3713 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
3714 to insert the exit or entry block.
3715 (ssa_prop_init): Use add_control_edge to seed the algorithm.
3717 2004-11-16 Zack Weinberg <zack@codesourcery.com>
3719 * mkmap-flat.awk, mkmap-symver.awk: If the last version
3720 assigned to a symbol was '%exclude', do not emit it anywhere.
3721 If leading_underscore is true, prefix all symbols from the
3722 version scripts with a leading underscore before comparing
3723 them with nm output or emitting them. Remove support for dot
3725 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
3726 (SHLIB_MAPFILES): Use libgcc-std.ver.
3727 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
3728 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
3729 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
3730 libgcc-excl.ver and libgcc-glibc.ver.
3732 * config/sh/libgcc-excl.ver: New file.
3733 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
3735 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
3737 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
3738 the test when the edge has the opposite meaning, not when
3739 the first argument is invariant.
3741 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
3743 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
3745 (rs6000_complex_function_value): Handle e500 v2 variant.
3747 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
3749 Fix PR tree-optimization/18519
3751 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
3752 * tree-pass.h: Add TODO_cleanup_cfg.
3753 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
3754 (ccp_finalize): Remove call to cleanup_cfg.
3755 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
3756 (pass_cd_dce): Ditto.
3757 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
3758 dump_function_to_file.
3759 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
3761 (pass_ch): Add TODO_cleanup_cfg.
3762 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
3764 (pass_loop_done): Add TODO_cleanup_cfg.
3765 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
3766 (tree_ssa_phiopt): Remove call to cleanup_cfg.
3768 2004-11-16 Devang Patel <dpatel@apple.com>
3770 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
3772 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
3774 * expmed.c, ra-colorize.c: Fix comment typos.
3776 * doc/tm.texi: Fix typos.
3778 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
3779 Mark Mitchell <mark@codesourcery.com>
3782 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
3785 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
3787 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
3788 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
3790 2004-11-16 Devang Patel <dpatel@apple.com>
3792 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
3794 2004-11-16 Eric Christopher <echristo@redhat.com>
3796 * config/mips/mips.c: Use rtl _P predicates.
3797 * config/mips/mips.h: Ditto.
3798 * config/mips/mips.md: Ditto.
3800 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
3802 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
3805 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
3807 * config/s390/s390.c (s390_cc_modes_compatible): New function.
3808 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
3810 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
3813 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
3814 before and after the insns for getting GOT address in non-PIC
3815 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
3818 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
3820 * gcc/cse.c (struct change_cc_mode_args): New structure.
3821 (cse_change_cc_mode_insn): New function.
3822 (cse_change_cc_mode): Use validate_change to perfom changes.
3823 (cse_change_cc_mode_insns, cse_condition_code_reg):
3824 Call cse_change_cc_mode_insn.
3826 2004-11-16 Steven Bosscher <stevenb@suse.de>
3830 2004-11-16 Steven Bosscher <stevenb@suse.de>
3832 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
3834 2004-11-15 Dale Johannesen <dalej@apple.com>
3836 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
3838 2004-11-15 Dale Johannesen <dalej@apple.com>
3840 * profile.c (compute_branch_probabilities): Prevent
3841 crash with EH in RTL-based profiling.
3843 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
3845 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
3847 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
3848 * tree-ssa-dom.c (thread_across_edge): Likewise.
3849 * tree-vectorizer.c (vect_transform_loop_bound): Replace
3850 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
3853 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
3854 (tree_flow_call_edges_add): Update the call to
3855 bsi_commit_edge_inserts.
3856 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
3857 * profile.c (branch_prob): Likewise.
3858 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
3859 * tree-sra.c (scalarize_function): Likewise.
3860 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
3861 * tree-ssa-pre.c (fini_pre): Likewise.
3862 * tree-flow.h: Update the prototype for
3863 bsi_commit_edge_inserts.
3865 2004-11-15 Eric Christopher <echristo@redhat.com>
3867 * sched-deps.c (set_sched_group_p): Delete.
3868 (delete_all_dependencies): New function.
3869 (fixup_sched_groups): Use. New function.
3870 (sched_analyze_insn): Use.
3872 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
3874 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
3875 RROTATE_EXPR or unknown code.
3876 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
3877 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
3878 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
3881 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
3884 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
3885 after processing the declarator.
3887 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
3889 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
3891 (altivec_vspltb): Same.
3892 (altivec_vspltw): Same.
3893 (altivec_vspltisb): Same.
3894 (altivec_vspltish): Same.
3895 (altivec_vspltisw): Same.
3896 (altivec_vspltisw_v4sf): Same.
3897 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
3899 Move "End of vector xor's" comment to the right place.
3901 2004-11-15 Steve Ellcey <sje@cup.hp.com>
3903 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
3904 instead of nonimmediate_operand.
3906 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3908 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
3909 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
3910 * config/sol2.c (solaris_output_init_fini): Update calls to
3911 ASM_OUTPUT_CALL. Include "rtl.h".
3913 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3915 * config/sol2-c.c (cmn_err_char_table): Add "p".
3917 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3919 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
3920 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
3922 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3924 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
3925 within the multilib directory.
3927 2004-11-15 Nick Clifton <nickc@redhat.com>
3929 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
3930 builtin assert of cpu=xstormy16.
3932 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
3934 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
3937 2004-11-14 Richard Henderson <rth@redhat.com>
3940 * calls.c (struct arg_data): Add parallel_value.
3941 (precompute_register_parameters): Set it.
3942 (load_register_parameters): Use it.
3943 (store_one_arg): Also set it here.
3945 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
3947 PR tree-optimization/18431
3948 * fold-const.c (associate_trees): Do not produce x + 0.
3949 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
3951 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
3953 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
3954 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
3956 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
3958 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
3960 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3962 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
3963 value-prof.c: Fix comment typos.
3965 2004-11-14 Stan Shebs <shebs@apple.com>
3967 Basic ABI changes for passing structs by value in 64-bit Darwin.
3968 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
3969 (rs6000_override_options): Set it for 64-bit Darwin.
3970 (rs6000_parse_abi_options): Add testing options to change it.
3971 (rs6000_return_in_memory): Test whether the type is one
3972 that can be passed in registers.
3973 (darwin64_function_arg_advance): New.
3974 (function_arg_advance): Call it, plus add recursion depth
3975 argument and test when counting off arguments.
3976 (rs6000_darwin64_function_arg): New.
3977 (function_arg): Call it.
3978 (setup_incoming_varargs): Add argument to function_arg_advance.
3979 (rs6000_darwin64_function_value): New.
3980 (rs6000_function_value): Call it.
3981 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
3982 * config/rs6000/rs6000-protos.h: Update decl of
3983 function_arg_advance.
3985 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
3988 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
3989 support TImode before adding __int128_t and __uint128_t types.
3991 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3994 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
3995 (vect_transform_loop_bound): Set loop->nb_iterations.
3997 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3998 Andrew Pinski <pinskia@physics.uc.edu>
4001 * tree-vectorize.c (vect_build_loop_niters): Do not insert
4002 NULL into the instruction stream. Initialize new_bb to NULL.
4003 (vect_update_ivs_after_vectorizer): Likewise.
4004 (vect_gen_niters_for_prolog_loop): Likewise.
4006 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
4008 PR tree-optimization/18431
4009 * tree-flow.h (stmt_references_memory_p): Declare.
4010 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
4011 * tree-ssa.c (stmt_references_memory_p): New function.
4013 2004-11-14 Andreas Schwab <schwab@suse.de>
4015 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
4018 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4020 * c-common.c (walk_stmt_tree): Remove.
4021 * c-common.h: Remove the corresponding prototype.
4023 * emit-rtl.c (push_to_full_sequence): Remove.
4024 * rtl.h: Remove the corresponding prototype.
4026 * cselib.c, expr.c: Fix comment typos.
4028 2004-11-13 Richard Henderson <rth@redhat.com>
4030 * calls.c (precompute_register_parameters): Force all PARALLELs
4031 into pseudo registers.
4032 (load_register_parameters): Copy PARALLELs into hard registers.
4033 * function.c (assign_parm_setup_block): Copy PARALLELS into
4034 pseudo registers. Do emit_group_store in conversion_insns.
4035 * expr.c (emit_group_load_1): Rename from emit_group_load, take
4036 tmps as an argument. Move final copy loop ...
4037 (emit_group_load): ... here. New function.
4038 (emit_group_load_into_temps, emit_group_move_into_temps): New.
4039 * expr.h: Declare them.
4041 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4043 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
4044 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
4045 with PHI_CHAIN where appropriate.
4047 2004-11-13 Dale Johannesen <dalej@apple.com>
4049 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
4050 (tree_block_label): Ditto.
4051 (flush_pending_stmts): Ditto.
4052 (insert_edge_copies): Ditto.
4053 (expr_invariant_in_loop_p): Ditto.
4054 (TDF_USE_OPS): Parenthesize definition.
4055 (TDF_USE_VOPS): Ditto.
4057 2004-11-13 David Edelsohn <edelsohn@gnu.org>
4059 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
4060 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
4062 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
4064 2004-11-14 Joseph Myers <joseph@codesourcery.com>
4066 * config/i386/i386.c (override_options): Move loop to set default
4067 tuning to correct place.
4069 2004-11-13 Zak Kipling <zak@transversal.com>
4072 * config/i386/i386.c (classify_argument): Fix infinite loop when
4073 passing object with 3 or more base classes by value.
4075 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4077 * doc/md.texi (constraints) <% modifier>: Mention that it is
4078 useless when the two alternatives are strictly identical.
4080 2004-11-13 Richard Henderson <rth@redhat.com>
4082 * expmed.c (extract_split_bit_field): Temporarily disable call to
4083 extract_force_align_mem_bit_field.
4085 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4087 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
4090 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
4091 lambda-code.c, postreload.c, predict.c, tree-sra.c,
4092 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
4094 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4096 * doc/install.texi (automake): Correctly document that everything now
4097 will use automake 1.9.3.
4099 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
4102 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
4103 TImode. Sorry for other non-complex larger-than-64-bit modes.
4104 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
4106 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4108 * doc/install.texi (automake): Document that everything now uses 1.9.
4110 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
4112 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
4115 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4117 * tree.h: Fix comment typos.
4119 2004-11-13 Steven Bosscher <stevenb@suse.de>
4121 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
4122 HARD_REGISTER_NUM_P.
4124 * cselib.c (new_cselib_val): Make comment correct and more detailed.
4125 * flow.c (mark_set_1): Likewise.
4127 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
4128 duplicate_eh_regions): Remove.
4129 * except.h (duplicate_eh_regions): Remove prototype.
4130 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
4131 global_const_equiv_varray): Remove.
4132 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
4133 global_const_equiv_varray, set_label_in_map): Remove prototypes,
4134 extern declaration, and #define.
4135 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
4136 (struct inline_remap): Remove.
4137 * varray.c (struct element): Remove entry for const_equiv_data.
4138 * varray.h (struct const_equiv_data): Remove.
4139 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
4140 (union varray_data_tag) <const_equiv>: Remove.
4141 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
4142 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
4144 * regstack.c (record_label_references): Remove unused function.
4146 * rtl.def (VALUE): Update comment.
4147 (LABEL_REF): Remove unused operand 2.
4148 * rtl.h (struct rtx_def): Update for removed accessor macros.
4149 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
4150 REG_LOOP_TEST_P): Remove.
4151 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
4152 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
4153 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
4155 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
4156 Eric Botcazou <ebotcazou@libertysurf.fr>
4159 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
4161 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
4162 (V32I): New macro for 32-bit modes.
4163 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
4164 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
4165 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
4166 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
4167 one_cmpldi_sp64): Use V64I instead of DI.
4168 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
4169 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
4170 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
4171 (nandv64i_vis, nandv32i_vis): New patterns.
4173 2004-11-12 Mike Stump <mrs@apple.com>
4175 * Makefile.in: Add html support.
4176 * java/Make-lang.in: Likewise.
4177 * fortran/Make-lang.in: Likewise.
4178 * treelang/Make-lang.in: Likewise.
4179 * doc/install.texi: Likewise.
4180 * doc/makefile.texi: Likewise.
4181 * doc/sourcebuild.texi: Likewise.
4183 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4185 * tree-ssa-loop-manip.c: Fix a comment typo.
4187 2004-11-12 Mike Stump <mrs@apple.com>
4189 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
4190 renaming this node to Concept Index.
4191 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
4192 to more closely match gcc.texi.
4194 2004-11-12 Jeff Law <law@redhat.com>
4196 * tree-cfg.c (hashtab.h): Include.
4197 (struct edge_to_case_leader_elt): New structure.
4198 (edge_to_case_leader): New.
4199 (edge_to_case_leader_hash): New hashtable hasing function.
4200 (edge_to_case_leader_eq): New hashtable equality function.
4201 (record_switch_edge): New function.
4202 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
4203 (make_switch_expr_edges): Build the edge-to-case-leader
4204 hash table. Tear down the hash table when we're done.
4205 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
4207 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
4208 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
4209 to use new concept of case leaders to reduce overhead of
4210 redirecting outgoing edges from switch statements.
4211 * tree.c (get_case_label): New function.
4212 * tree.h (CASE_LABEL): Define in terms of get_case_label.
4213 (CASE_LEADER_OR_LABEL): Define.
4215 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4217 * varasm.c (output_addressed_constants): For CONST_DECLs,
4218 output the initializer if present.
4220 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4222 * config/rs6000/darwin.h: Fix confusing typo in comment.
4224 2004-11-12 Devang Patel <dpatel@apple.com>
4226 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
4228 2004-11-12 Devang Patel <dpatel@apple.com>
4230 * tree-if-conv.c (clean_predicate_lists): Use loop header
4233 2004-11-12 Richard Henderson <rth@redhat.com>
4236 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4237 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4238 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4239 * config/i386/i386-modes.def (XF): Use it.
4241 2004-11-11 Geoffrey Keating <geoffk@apple.com>
4243 * Makefile.in (macro_list): Use move-if-change to avoid spurious
4246 2004-11-12 Mark Mitchell <mark@codesourcery.com>
4249 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
4250 when deciding whether to pass a variable to
4251 cgraph_varpool_finalize_decl or assemble_variable.
4252 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
4254 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
4256 * tree-vectorizer.c: Fix a comment typo.
4258 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
4260 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
4262 2004-11-12 Diego Novillo <dnovillo@redhat.com>
4264 * tree-scalar-evolution.c (analyzable_condition): Remove
4265 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
4267 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
4269 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
4270 Remove m505/roe multilib variant.
4272 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
4274 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
4275 to load from the stack.
4277 2004-11-12 Richard Henderson <rth@redhat.com>
4279 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
4280 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
4281 * toplev.h (FL2T__): Remove.
4282 (CLZ_HWI): Rename from FL2T_CLZ__.
4284 (floor_log2): Simplify.
4287 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4289 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
4290 compute the first overlapping iterations.
4292 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4295 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
4296 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
4298 2004-11-12 Steven Bosscher <stevenb@suse.de>
4300 PR tree-optimization/18419
4301 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
4302 pointer set instead of a bitmap.
4303 (walk_use_def_chains): Create, pass and clean up that pointer_set.
4305 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
4307 (init_alias_info): Allocate and zero it here.
4308 (delete_alias_info): Delete it here.
4309 (collect_points_to_info_for): Use it.
4311 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4313 * alias.c (record_alias_subset, addr_side_effect_eval):
4315 * alias.h: Remove the prototype for record_alias_subset.
4316 * expr.h: Remove the commented-out prototype for
4317 record_alias_subset.
4318 * rtl.h: Remove the prototype for addr_side_effect_eval.
4320 * cfglayout.c (choose_inner_scope): Make it static.
4321 * rtl.h: Remove the corresponding prototype.
4323 * cfgloopmanip.c (update_single_exits_after_duplication,
4324 unloop): Make them static.
4325 * cfgloop.h: Remove the corresponding prototypes.
4327 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
4329 * c-tree.h: Remove the corresponding prototypes.
4331 * explow.c (round_push): Make it static.
4332 * expr.h: Remove the corresponding prototype.
4334 * varasm.c (get_named_section_flags, decl_tls_model): Make
4336 * output.h: Remove the prototype for get_named_section_flags.
4337 * tree.h: Remove the prototype for decl_tls_model.
4339 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4341 * function.c (expand_function_end): Remove an "if" statement
4342 that always triggers.
4343 * stmt.c (expand_null_return_1): Likewise.
4345 2004-11-11 James E. Wilson <wilson@specifixinc.com>
4347 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
4348 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
4349 CLASS_MAX_NREGS): Likewise.
4351 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
4353 PR tree-optimization/17742
4354 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
4355 MINUS_EXPR correctly.
4357 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
4359 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4360 Give up as soon as the evolution is known not computable.
4362 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4365 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
4366 mask64_1or2_operand.
4367 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
4368 to spot rlwinm opportunities.
4369 (and64_2_operand): Use mask_1or2_operand.
4370 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
4372 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
4374 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
4375 (vect_update_ivs_after_vectorizer): Update function documentation.
4376 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
4378 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4380 * config/arm/arm.c: Fix a comment typo.
4382 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4384 * bitmap.h (nBITMAP_WORD_BITS): Remove.
4385 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
4386 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
4388 (bitmap_first_set_bit): Return unsigned, use ctzl.
4389 (bitmap_last_set_bit): Remove.
4390 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
4392 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
4393 remove special case code for two word elements.
4394 (bitmap_last_set_bit): Remove.
4395 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
4396 bitmap_first_set_bit with bitmap_empty_p.
4397 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
4398 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
4399 bitmap_last_bit_set.
4401 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4404 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
4407 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
4408 unsigned equality compare when we know the operands are unsigned.
4410 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
4412 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
4413 __PIC__ and __pic__ only if TARGET_ABICALLS.
4414 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
4415 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
4416 -KPIC only if not -mno-abicalls.
4418 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
4419 * config/sparc/linux.h, config/sparc/linux64.h
4420 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
4422 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
4423 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
4424 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
4425 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
4427 2004-11-11 Paul Brook <paul@codesourcery.com>
4429 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
4430 register if current_function_uses_pic_offset_table is set.
4432 2004-11-10 David Edelsohn <edelsohn@gnu.org>
4434 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
4435 Change multi-instruction sequences to new attribute.
4436 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
4437 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
4438 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
4440 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
4442 * tree-data-ref.c (build_classic_dist_vector): If either loop
4443 is outside of the nest we asked about, the dependence can't
4445 (build_classic_dir_vector): Ditto.
4447 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
4449 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
4451 (force_var_cost): Determine cost of addition and multiplication more
4453 (get_computation_cost_at): Add cost for computing address elements to
4456 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
4457 one of the arguments of MINUS_EXPR is an address.
4458 (split_address_to_core_and_offset): New function.
4459 (ptr_difference_const): Handle case when one of the operands is a
4461 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
4462 (ptr_difference_cost): Pass addresses instead of objects to
4463 ptr_difference_const.
4465 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
4467 * tree.c (tree_check_failed): Emit general error if the list of
4468 node types is empty.
4470 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4472 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
4473 argument. When the union is passed in the 6th slot, build a
4474 PARALLEL with only one element.
4475 (function_arg): Adjust call to function_arg_union_value.
4476 (function_value): Likewise.
4478 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
4480 PR tree-optimization/17892
4481 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
4482 MINUS_EXPR operator.
4484 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
4487 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
4488 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
4490 2004-11-10 Steven Bosscher <stevenb@suse.de>
4492 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
4493 (struct basic_block_def): Remove local_set and cond_local_set
4494 fields. Update comment for global_live_at_start.
4495 * flow.c (calculate_global_regs_live): Allocate local_sets and
4496 cond_local_sets here as arrays of bitmaps previously stored in
4497 bb->local_set and bb->cond_local_set. Use xmalloc instead of
4498 obstack allocated bitmaps.
4500 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
4503 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
4506 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
4508 2004-11-09 Jeff Law <law@redhat.com>
4510 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
4511 argument holding last unvisited block. Start search for
4512 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
4513 (connect_infinite_loops_to_exit): Supply last unvisited block
4514 to flow_dfs_compute_reverse_execute.
4516 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
4518 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
4520 (floatunssidf2): Same.
4522 ("extendsfdf2"): New expander.
4523 (*extendsfdf2_fpr): Rename.
4524 (*truncdfsf2_fpr): Same.
4525 (*negdf2_fpr): Same.
4526 (*absdf2_fpr): Same.
4527 (*nabsdf2_fpr): Same.
4528 (*adddf3_fpr): Same.
4529 (*subdf3_fpr): Same.
4530 (*muldf3_fpr): Same.
4531 (*divdf3_fpr): Same.
4533 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
4534 ("spe_fix_truncdfsi2"): Same.
4535 (spe_floatunssidf2): Same.
4536 (spe_floatsidf2): Same.
4538 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4541 * c-common.c (fname_decl): Don't use line number of decl in
4544 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4546 * config/s390/s390-protos.h (s390_pool_operand): Remove.
4547 * config/s390/s390.c (s390_pool_operand): Likewise.
4548 (s390_extra_constraint_str): Handle 'B' constraints.
4549 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
4550 * config/s390/s390.md: Document 'B' constraints.
4551 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
4552 s390_pool_operand to prevent insns with two literal pool
4553 references. Make pattern commutative.
4554 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
4555 'B' constraint instead of s390_pool_operand.
4557 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4559 * tree-cfg.c (create_bb): Remove unnecessary memset.
4561 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4563 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
4564 (thread_block): Call flush_pending_stmt instead of
4567 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4569 * loop-iv.c (iv_number_of_iterations): Make it static.
4570 * cfgloop.h: Remove the corresponding prototype.
4572 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4574 * function.c (combine_temp_slots, assign_parms,
4575 expand_pending_sizes): Make them static.
4576 * tree.h: Remove the corresponding prototypes.
4578 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4580 * emit-rtl.c (copy_most_rtx): Remove.
4581 * rtl.h: Remove the corresponding prototype.
4583 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4585 * cfgloop.c (flow_loops_update): Remove.
4586 * cfgloop.h: Remove the corresponding prototype.
4588 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4590 * conflict.c (mark_reg, conflict_graph_compute): Remove.
4591 * basic-block.h: Remove the prototype for
4592 conflict_graph_compute.
4594 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4596 * tree-if-conv.c (add_to_dst_predicate_list): Change the
4597 second argument to basic_block.
4598 (tree_if_convert_cond_expr): Update call sites.
4600 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4602 * fold-const.c (pedantic_non_lvalue): Make it static.
4603 * tree.h: Remove the corresponding prototype.
4605 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4607 * optabs.c (prepare_operand): Make it static.
4608 * optabs.h: Remove the corresponding prototype.
4610 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4612 * reload1.c (reloads_conflict, gen_reload): Make them static.
4613 * reload.h: Remove the corresponding prototypes.
4615 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4617 * reload.c (refers_to_mem_for_reload_p,
4618 refers_to_regno_for_reload_p): Make them static.
4619 * reload.h: Remove the corresponding prototypes.
4621 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
4622 Eric Botcazou <ebotcazou@libertysurf.fr>
4625 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
4626 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
4627 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
4628 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
4629 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
4630 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
4631 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
4632 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
4633 MODE_VECTOR_INT modes.
4634 (sparc_extra_constraint_check): Add new constraint 'Y'.
4635 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
4636 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
4637 (V64): New mode macro for 64-bit modes.
4638 (movsf): Use V32 for mode instead of SF.
4639 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
4640 alongside 'G' constraint.
4641 (movdf): Use V64 for mode instead of DF.
4642 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
4643 of DF. Add 'Y' constraint alongside 'G' constraint.
4644 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
4647 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4649 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
4650 integer NEG and ABS.
4651 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
4652 ("*negdi2_31"): Reimplement using a splitter.
4653 ("*negdi2_cc", "*negdi2_cconly"): New insns.
4654 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
4655 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
4656 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
4657 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
4658 ("*absdi2_cc", "*absdi2_cconly"): New insns.
4659 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
4660 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
4661 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
4662 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
4663 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
4664 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
4665 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
4666 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
4667 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
4669 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4671 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
4672 when eliminating an UNSPEC_CMPINT.
4673 (s390_secondary_input_reload_class): Fix test for CC register reload.
4674 (s390_secondary_output_reload_class): Likewise.
4675 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
4676 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
4677 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
4678 insn patterns with splitters.
4680 2004-11-09 David Edelsohn <edelsohn@gnu.org>
4682 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
4683 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
4685 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4687 * tree-phinodes.c (phi_reverse): New.
4688 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
4690 * tree-flow.h: Add a prototype for phi_reverse.
4692 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4694 * tree-ssa-loop-ivopts.c: Fix a comment typo.
4696 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
4699 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
4702 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4704 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
4705 instead of "arg" in diagnostics.
4707 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4709 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
4710 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
4711 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
4712 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
4713 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
4714 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
4715 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
4716 config/iq2000/iq2000.c, config/m32r/m32r.c,
4717 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
4718 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
4719 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
4720 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
4721 config/sh/symbian.c, config/stormy16/stormy16.c,
4722 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
4723 and %> as appropriate. Use %' as apostrophe in diagnostics where
4724 applicable. Use %< and %> in place of '' quotes where applicable.
4725 Use %qs in place of %<%s%>. Consistently quote __builtin function
4728 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
4730 * gdbinit.in (pbb, pbm): New macros.
4732 2004-11-08 Jeff Law <law@redhat.com>
4734 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
4735 implementing it inline.
4737 * cfganal.c (find_edge): Search pred->succs or succ->preds,
4738 whichever is shorter.
4740 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4742 * passes.c (rest_of_handle_jump): Remove dead code.
4744 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4746 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
4747 the last used element in the worklist.
4749 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4751 * tree-inline.c (remap_save_expr): Make it static.
4752 * tree-inline.h: Remove the corresponding prototype.
4754 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4756 * tree-ssa-loop-niter.c (upper_bound_in_type,
4757 lower_bound_in_type): Make them static.
4758 * tree.h: Remove the corresponding prototypes.
4760 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4762 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
4764 * tree-ssa-live.h: Remove the corresponding prototypes.
4766 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4768 * tree-if-conv.c (tree_if_conversion): Make it static.
4769 * tree-flow.h: Remove the corresponding prototype.
4771 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4773 * tree-ssa-operands.c (build_ssa_operands): Make it static.
4774 * tree-flow.h: Remove the corresponding prototype.
4776 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
4779 * tree-inline.c (copy_body_r): Change "t = t" to empty
4780 statement instead of "t".
4782 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4784 * modulo-sched.c (create_partial_schedule,
4785 free_partial_schedule, reset_partial_schedule,
4786 ps_add_node_check_conflicts, rotate_partial_schedule): Make
4789 2004-11-08 Richard Henderson <rth@redhat.com>
4791 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
4794 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4796 * sched-deps.c (add_insn_mem_dependence): Make it static.
4797 * sched-int.h: Remove the corresponding prototypes.
4799 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4801 * flow.c (allocate_bb_life_data): Make it static.
4802 * basic-block.h: Remove the corresponding prototype.
4804 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4806 * calls.c (split_complex_values, split_complex_types): Make
4808 * expr.h: Remove the corresponding prototypes.
4810 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
4812 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
4813 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
4815 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4817 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
4818 statements that always trigger.
4820 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4822 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
4823 tree-scalar-evolution.c, tree-ssa-loop-im.c,
4824 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
4825 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
4828 2004-11-08 Ben Elliston <bje@au.ibm.com>
4830 * cgraph.h (cgraph_calls_p): Remove.
4831 * cgraph.c (cgraph_calls_p): Likewise.
4833 * varray.h (varray_copy): Remove.
4834 * varray.c (varray_copy): Likewise.
4836 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
4839 * config/darwin.c (machopic_indirect_data_reference):
4840 Call gen_macho_high and gen_macho_low instead of
4841 checking the mode and calling gen_macho_high_di directly.
4842 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4843 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
4845 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
4846 load_macho_picbase, macho_low, macho_high): Removed.
4847 (builtin_setjmp_receiver): Call gen_macho_high and
4848 gen_macho_low instead of checking the mode and calling
4849 gen_macho_high_di directly.
4850 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
4851 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
4852 Moved from rs6000.md.
4853 (macho_high): New expander.
4854 (macho_high_si): Renamed version of macho_high from rs6000.md.
4855 (macho_low): New expander.
4856 (macho_low_si): Renamed version of macho_low from rs6000.md.
4857 (load_macho_picbase): New expander.
4858 (load_macho_picbase_si): Renamed version of load_macho_picbase
4860 (macho_correct_pic): New expander.
4861 (macho_correct_pic_si): Renamed version of macho_correct_pic
4864 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
4866 * c-decl.c (finish_struct): Use complete sentences for diagnostic
4867 for structures or unions with no members or named members.
4869 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
4871 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
4872 taking address of bit-field by assertion.
4874 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4876 * config/s390/s390.md (attribute "op_type"): Default to "NN".
4877 (attribute "atype"): Default to "agen".
4878 (attribute "length"): Default to 6.
4879 (define_asm_attibutes): Remove.
4880 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
4881 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
4882 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
4883 Do not set type attribute to "cs" where already default.
4884 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
4886 Do not set type attribute to "other" where already default.
4887 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
4888 "*strlendi", "*strlensi",
4889 "*movmem_long_64", "*movmem_long_31",
4890 "*clrmem_long_64", "*clrmem_long_31",
4891 "*cmpmem_long_64", "*cmpmem_long_31",
4892 "*cmpint_si", "*cmpint_di",
4893 "addti3", "*adddi3_31z", "*adddi3_31",
4894 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
4895 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
4896 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
4897 "*pool_entry", "pool_align", "pool_section_start",
4898 "pool_section_end", "main_pool", "reload_base_31", "pool"):
4899 Do not set op_type attribute to "NN" where already default.
4900 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
4901 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
4902 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
4903 Do not set atype attribute to "agen" where already default.
4904 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
4906 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
4908 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
4910 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
4913 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
4914 R3000 and R4000 macros on IRIX.
4916 2004-11-06 Andreas Schwab <schwab@suse.de>
4919 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
4922 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4924 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
4926 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4928 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
4929 matches no insns already matched by other reservations.
4930 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
4931 matches no insns already matched by other reservations.
4932 ("x_ss"): Remove, replace by ...
4933 ("x_cs"): ... this new reservation. Check type instead of op_type.
4934 Update bypasses to use x_cs instead of x_ss.
4935 ("x_nn"): Remove, replace by ...
4936 ("x_other"): ... this new reservation. Check type instead of op_type.
4937 Add x_other and x_branch to bypasses.
4938 ("x_vs"): New reservation.
4939 * config/s390/s390.md (attribute "type"): Default according to op_type.
4940 ("*execute"): Set type to "cs".
4942 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4944 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
4945 if we are in GIMPLE.
4947 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
4949 PR rtl-optimization/17933
4950 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
4951 (covers_regno_p): New function. Handle SETs of PARALLEL,
4952 and defer the rest to...
4953 (covers_regno_no_parallel_p): New function.
4955 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4957 * config/sparc/sparc.c (function_arg_record_value_1): Skip
4958 fields with zero length.
4959 (function_arg_record_value_2): Likewise.
4960 (function_arg_record_value_3): Use smallest_mode_for_size
4961 instead of mode_for_size.
4962 (function_arg_union_value): Return naked register for unions
4965 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4967 * config/sparc/sparc.c (scan_record_type): Handle vector types.
4968 (function_arg_slotno): Handle vector types specially.
4969 (function_arg_record_value_1): Split fields with vector type and
4970 BLKmode into their subparts.
4971 (function_arg_record_value_2): Likewise. Be prepared to handle
4972 more than 2 registers per field.
4973 (function_arg_union_value): Increment regno inside the loop.
4974 (function_arg_vector_value): New function.
4975 (function_arg): Use it to split fields with vector type and
4976 BLKmode into their subparts and build a PARALLEL. Treat
4977 other vector types like floats.
4978 (function_value): Likewise.
4979 (sparc_pass_by_reference): Handle vector types.
4980 (sparc_return_in_memory): Likewise.
4982 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4984 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
4985 statement that never triggers.
4987 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4989 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
4990 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
4991 ("x_fdivd"): Use also for fsqrtd type.
4992 ("x_fdivs"): Use also for fsqrts type.
4993 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
4994 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
4995 ("fix_truncdfsi2_ibm"): Set type to "other".
4996 ("floatdidf2", "floatdisf2"): Do not clobber CC.
4997 ("floatsidf2", "floatsidf2_ieee"): Likewise.
4998 ("floatsisf2", "floatsisf2_ieee"): Likewise.
4999 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
5000 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
5002 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
5003 ("sqrtdf2"): Set type to "fsqrtd".
5004 ("sqrtsf2"): Set type to "fsqrts".
5006 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5008 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
5009 pointer to the last PHI node in the new PHI chain.
5011 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
5013 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
5014 for non-PIC TLS_MODEL_INITIAL_EXEC case.
5016 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5018 * expmed.c: Fix a comment typo.
5020 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5023 * config/i386/cygming.h
5024 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
5026 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5028 * config/sh/sh4a.md: Fix copyright.
5030 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5032 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
5035 2004-11-05 David Edelsohn <edelsohn@gnu.org>
5037 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
5038 when carry not used. Suggested by Torbjorn Granlund.
5040 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
5041 operand[1] unnecessarily. Suggested by Eric Christopher.
5042 (rs6000_adjust_cost): Increase latency of store to wider load.
5043 (rs6000_rtx_costs): mulli only allows 16-bit constants.
5045 2004-11-05 Stan Shebs <shebs@apple.com>
5047 * config/rs6000/rs6000.c (machopic_output_stub): Output
5048 ldu instead of lwzu for 64-bit stubs.
5050 2004-11-05 Richard Henderson <rth@redhat.com>
5052 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
5054 (alpha_expand_unaligned_store): Likewise.
5056 2004-11-05 Richard Henderson <rth@redhat.com>
5058 * expmed.c (extract_force_align_mem_bit_field): New.
5059 (extract_split_bit_field): Call it.
5061 2004-11-05 Richard Henderson <rth@redhat.com>
5063 * ia64.md (UNSPEC_SHRP): New.
5064 (dshift_count_operand): New.
5065 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
5066 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
5068 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5070 * c-typeck.c (output_init_element): Return early if value is
5073 2004-11-05 James E Wilson <wilson@specifixinc.com>
5075 * invoke.texi (-fno-guess-branch-probability): Rewrite.
5077 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
5078 1 to UNSPEC_GR_SPILL.
5080 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
5082 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
5083 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
5085 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
5087 * bitmap.h (enum bitmap_bits): Remove.
5088 (bitmap_operation): Remove.
5089 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5090 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5091 bitmap_xor_into): Prototype.
5092 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
5093 (bitmap_operation): Remove.
5094 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5095 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5096 bitmap_xor_into): New.
5097 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
5099 PR tree-optimization/18307
5100 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
5101 and ORIG being the same node.
5103 2004-11-04 Geoffrey Keating <geoffk@apple.com>
5105 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
5106 (install-mkheaders): Install the version built for the
5107 host, not for the build machine.
5108 * configure.ac: Always run fixincludes.
5109 (all_outputs): Remove mkheaders.
5110 * configure: Regenerate.
5111 * fixinc.in: Move to fixincludes/.
5112 * mkfixinc.sh: Likewise.
5113 * mkheaders.in: Likewise.
5114 * README-fixinc: Likewise.
5116 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5119 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
5120 equivalent on the A4.
5122 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5124 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
5125 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
5126 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
5127 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
5128 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5129 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
5130 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
5131 doc/trouble.texi: Correct end-of-sentence markup and markup of
5132 "etc.", "e.g." and "i.e.". Use @code in various places where
5135 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5137 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
5138 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
5139 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
5142 2004-11-04 Mark Mitchell <mark@codesourcery.com>
5144 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
5145 * doc/extend.texi: Document "notshared" attribute.
5147 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5149 * tree-phinodes.c (make_phi_node): Make it static.
5150 * tree.h: Remove the prototypes for make_phi_node.
5152 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5154 * stmt.c (expand_asm, expand_asm_operands): Make them static.
5155 * tree.h: Remove the prototypes for expand_asm and
5156 expand_asm_operands.
5158 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5160 * passes.c (rest_of_compilation): Make it static.
5161 * toplev.h: Remove the prototype for rest_of_compilation.
5163 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5165 * jump.c (cleanup_barriers): Use delete_insn instead of
5167 (delete_barrier): Remove.
5168 * rtl.h: Remove the corresponding prototype.
5170 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5172 * expr.c (mostly_zero_p): Make it static.
5173 * tree.h: Remove the prototype for mostly_zeros_p.
5175 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5177 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
5179 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5181 * builtins.c (expand_builtin_return_addr,
5182 expand_builtin_longjmp, expand_builtin_trap): Make them static.
5183 * expr.h: Remove the prototypes for expand_builtin_longjmp and
5184 expand_builtin_trap.
5185 * tree.h: Remove the prototype for expand_builtin_return_addr.
5187 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5189 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
5190 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
5191 with VAL being NULL.
5193 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5195 * cfghooks.c (delete_basic_block): Remove code to truncate
5198 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
5200 * flow.c (init_propagate_block_info): Change the type of i to
5203 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5205 PR tree-optimization/18184
5206 * c-typeck.c (comptypes): Do not treat pointers of different
5207 modes or alias-all flags as equivalent.
5208 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
5210 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
5212 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
5213 reference specific C parser files in examples.
5215 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
5218 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
5219 as OP_INOUT if the instruction is predicated.
5221 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5223 * bitmap.h: Fix a comment typo. Follow spelling conventions.
5224 * tree-vectorizer.c: Fix a comment typo.
5226 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5228 * sdbout.c (SDB_GENERATE_FAKE): Remove.
5229 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
5230 * system.h: Poison SDB_GENERATE_FAKE.
5231 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
5233 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5235 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
5237 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5240 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
5243 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
5245 * predict.c (propagate_freq): Make bitno unsigned. Move
5246 npredecessors update out of loop.
5248 * bitmap.h (bitmap_iterator): Remove word_bit and bit
5249 fields. Rename others.
5250 (bmp_iter_common_next_1, bmp_iter_single_next_1,
5251 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
5252 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
5253 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
5254 bmp_iter_and_next): Remove.
5255 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
5256 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
5258 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
5259 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
5261 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
5262 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
5263 bitmap_and_into, bitmap_ior_into as appropriate.
5264 * except.c (remove_eh_handler): Likewise.
5265 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
5266 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
5267 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
5268 * tree-ssa-live.h (live_merge_and_clear): Likewise.
5269 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
5272 * bitmap.c (bitmap_print): Make bitno unsigned.
5273 * bt-load.c (clear_btr_from_live_range,
5274 btr_def_live_range): Likewise.
5275 * caller-save.c (save_call_clobbered_regs): Likewise.
5276 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5277 * cfgcleanup.c (thread_jump): Likewise.
5278 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5279 * conflict.c (conflict_graph_compute): Likewise.
5280 * ddg.c (add_deps_for_use): Likewise.
5281 * df.c (df_refs_update): Likewise.
5282 * except.c (remove_eh_handler): Likewise.
5283 * flow.c (verify_local_live_at_start, update_life_info,
5284 initialize_uninitialized_subregs, propagate_one_insn,
5285 free_propagate_block_info, propagate_block, find_use_as_address,
5286 reg_set_to_hard_reg_set): Likewise.
5287 * gcse.c (clear_modify_mem_tables): Likewise.
5288 * global.c (global_conflicts, build_insn_chain): Likewise.
5289 * ifcvt.c (dead_or_predicable): Likewise.
5290 * local-alloc.c (update_equiv_regs): Likewise.
5291 * loop.c (load_mems): Likewise.
5292 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
5294 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
5296 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
5297 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
5298 * sched-rgn.c (propagate_deps
5299 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
5300 * tree-dfa.c (dump_dfa_stats
5301 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5302 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
5304 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
5305 free_temp_expr_table, find_replaceable_exprs): Likewise.
5306 * tree-sra.c (scan_function, scalarize_parms): Likewise.
5307 * tree-ssa-alias.c (init_alias_info,
5308 compute_points_to_and_addr_escape,
5309 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
5310 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
5311 * tree-ssa-live.c (new_tree_live_info, live_worklist,
5312 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
5313 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
5314 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
5315 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5316 add_call_read_ops): Likewise.
5317 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
5318 * tree-ssa-live.h (num_var_partitions): Return unsigned.
5320 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
5322 PR tree-optimization/18009
5323 * tree-vectorizer.h (enum dr_alignment_support): New type.
5324 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
5325 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
5326 single data_reference (instead of a varray of references).
5327 * tree-vectorizer.c (new_loop_vec_info): Likewise.
5328 (vect_gen_niters_for_prolog_loop): Likewise.
5329 (vect_update_inits_of_drs): Likewise.
5331 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
5332 vect_enhance_data_refs_alignment.
5333 (vect_do_peeling_for_alignment): Likewise.
5334 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
5335 this functionality used to be in vect_analyze_data_refs_alignment.
5336 Also update DR_MISALIGNMENT due to peeling; this functionality used to
5337 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
5338 (vect_analyze_data_refs_alignment): Decision on whether and by how much
5339 to peel moved to vect_enhance_data_refs_alignment. Call
5340 vect_supportable_dr_alignment.
5342 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
5343 (vect_compute_data_refs_alignment): Return bool. Consider return value
5344 of vect_compute_data_ref_alignment and return true/false accordingly.
5345 (vect_enhance_data_refs_alignment): Consider return value of
5346 vect_compute_data_refs_alignment and return true/false accordingly.
5348 (vect_supportable_dr_alignment): New function.
5349 (vectorizable_store): Call vect_supportable_dr_alignment.
5350 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
5351 support checks moved from here to vect_supportable_dr_alignment.
5353 (vect_transform_loop): Avoid 80 columns overflow.
5355 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5357 * timevar.c (timevar_enable): Change from
5359 (timevar_push): Rename to ...
5360 (timevar_push_1): this and remove the
5362 (timevar_pop): Rename to ...
5363 (timevar_pop_1): this and remove the
5365 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
5366 (timevar_pop): New macro.
5367 (timevar_push): New macro.
5368 (timevar_enable): Declare.
5370 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5372 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
5373 libgcc for shared libraries.
5375 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5377 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
5378 * config/s390/s390.c (s390_split_access_reg): New function.
5379 (regclass_map): Add access registers.
5380 (get_thread_pointer): Use access register instead of UNSPEC_TP.
5381 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
5382 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
5383 (TP_REGNUM): New define.
5384 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5385 REG_ALLOC_ORDER): Add access registers.
5386 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5387 CANNOT_CHANGE_MODE_CLASS): Support access registers.
5388 (enum reg_class): Add ACCESS_REGS.
5389 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5390 (REG_CLASS_FROM_LETTER): Add 't' constraint.
5391 (REGISTER_NAMES): Add access registers.
5392 * config/s390/s390.md (UNSPEC_TP): Remove.
5393 ("*movdi_64"): Add access register alternatives. Provide splitters
5394 to split DImode access register <-> GPR moves into SImode moves.
5395 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
5396 ("movstrictsi"): Likewise.
5397 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
5398 ("set_tp_64", "set_tp_31"): Likewise.
5399 ("*set_tp"): New insn.
5401 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5403 * tree-phinodes.c (resize_phi_node): Copy only a portion of
5404 the PHI node currently in use.
5406 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5409 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
5412 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
5414 PR tree-optimization/18270
5415 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
5416 abnormal edges, commit all pending stmts on incoming edges.
5418 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5420 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
5421 cause extra costs. Generate canonical RTL.
5423 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
5425 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
5426 (lambda_compute_target_space). Ditto.
5427 * lambda.h (lambda_trans_matrix): Ditto.
5428 (lambda_linear_expression): Ditto.
5429 (lambda_body_vector): Ditto.
5430 (lambda_loopnest): Ditto.
5431 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
5432 update comments, and remove pointless addition of 0.
5433 (linear_transform_loops): Update comments.
5435 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
5437 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
5440 2004-11-03 Jeff Law <law@redhat.com>
5442 * predict.c (struct block_info_def): Kill "tovisit" field.
5443 (propagate_freq): Accept new "tovisit" parameter. Change
5444 read/write access methods for "tovisit" to check the "tovisit"
5445 bitmap instead of a bit in block_info_def.
5446 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
5447 it to propagate_freq.
5449 * stmt.c (expand_case): Speed up code to detect duplicate case
5450 label targets and count unique case label targets.
5452 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5454 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
5456 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5458 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
5460 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5462 * tree-cfg.c (find_taken_edge): Abort if we are given a
5463 statement that is neither COND_EXPR nor SWITCH_EXPR.
5465 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
5467 * fold-const.c (fold): Reassociate also (x - mult) + mult and
5468 (mult - x) + mult. Cast operands of expression after applying
5469 distributive law to the correct types. Apply distributive law
5470 to a * c - b * c for all non-float types.
5472 2004-11-02 Geoffrey Keating <geoffk@apple.com>
5474 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
5475 because we don't want to run them now; instead, set them to
5476 stmp-install-fixproto or stmp-install-fixinc.
5477 * Makefile.in (stmp-install-fixproto): New.
5478 (stmp-install-fixinc): New.
5479 * configure: Regenerate.
5481 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5483 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
5486 2004-11-02 Ziemowit Laski <zlaski@apple.com>
5488 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
5489 (c_types_compatible_p): Move function definition...
5490 * c-objc-common.c (c_types_compatible_p): ...here.
5491 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
5494 2004-11-02 Steven Bosscher <stevenb@suse.de>
5496 * cfgloop.h (struct loop): Update comment.
5497 * cse.c (cse_main): Remove obsolete comment.
5499 * expr.h (gen_cond_trap): Move prototype under functions provided
5501 (canonicalize_condition, get_condition): Move to...
5502 * rtl.h (canonicalize_condition, get_condition): ...here.
5503 (branch_target_load_optimize): Add comment that this function is
5505 * loop.c (canonicalize_condition, get_condition): Move to...
5506 * rtlanal.c (canonicalize_condition, get_condition): ...here.
5507 * sched-deps.c (get_condition): Rename to sched_get_condition.
5508 (add_dependence): Update this caller.
5510 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
5513 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
5514 that the vops get marked for renaming.
5516 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
5518 * config/s390/s390.md ("movcc"): Set type attribute.
5520 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5522 * tree-phinodes.c (add_phi_arg): Add an assertion that the
5523 edge already exists.
5525 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5527 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
5528 element that's being removed.
5530 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5532 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
5533 arguments using PENDING_STMT.
5534 (thread_block): Call copy_phis_to_block after redirecting an
5537 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5539 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
5540 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
5541 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
5542 (bitmap_ior_and_compl_into): Produce bool.
5543 (bitmap_union_of_diff): Rename to ...
5544 (bitmap_ior_and_compl): ... here. Produce bool.
5545 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
5546 bitmap_operation directly.
5547 (bitmap_union_of_diff): Rename to ...
5548 (bitmap_ior_and_compl): ... here. Return bool, use
5549 bitmap_operation directly.
5550 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
5551 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
5552 * global.c (modify_bb_reg_pav): Likewise.
5554 * bitmap.h (bitmap_equal_p): Return bool.
5555 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
5556 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
5557 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
5558 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
5559 bitmap_intersect_compl_p.
5560 * ifcvt (dead_or_predicable): Likewise.
5562 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5564 PR rtl-optimization/17104
5565 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
5566 loads in zero_extend.
5568 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
5571 * toplev.c (debug_type_names): Remove "dwarf-1".
5573 2004-11-02 Ben Elliston <bje@au.ibm.com>
5575 * timevar.h (timevar_get): Remove.
5576 * timevar.c (timevar_get): Remove unused function.
5578 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
5580 * doc/include/texinfo.tex: Update from Texinfo CVS.
5582 2004-11-02 Ben Elliston <bje@au.ibm.com>
5584 * cppdefault.h (cpp_SYSROOT): Remove.
5585 * cppdefault.c (cpp_SYSROOT): Likewise.
5587 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
5589 PR tree-optimization/16447
5590 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
5591 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
5592 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
5593 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
5594 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
5595 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
5596 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
5597 (identical_copies_p): New. Return true is two copies are the same.
5598 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
5599 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
5601 (perform_edge_inserts): New. Determine what to do with all stmts that
5602 have been inserted on edges.
5603 (remove_ssa_form): Analyze and commit edges from here.
5605 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
5608 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
5609 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
5610 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
5611 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
5613 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
5616 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
5617 parameter declarations.
5619 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
5621 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
5622 (s390_secondary_input_reload_class)
5623 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
5625 (s390_expand_cmpmem): Enable cmpmem implementation.
5626 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
5627 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
5628 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
5629 * config/s390/s390.md ("movcc"): New insn pattern.
5630 * doc/md.texi: Document 'c' constraint for s390.
5632 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
5635 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
5638 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
5640 Fix PR tree-optimization/17672
5641 Fix PR tree-optimization/18168
5643 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
5645 (gcc_tree_to_linear_expression): Add extra to existing constant.
5646 (depth_of_nest): Factor out function used in various places.
5647 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
5649 (find_induction_var_from_exit_cond): Stop guessing, and just
5650 get the right answer :).
5651 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
5652 Print out message about result of attempt to create perfect nest.
5653 (lbv_to_gcc_expression): Add type argument, use it to do math
5654 and induction variable creation.
5655 (lle_to_gcc_expression): Ditto.
5656 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
5657 oldiv. Pass type argument to lle_to_gcc_expression and
5658 lbv_to_gcc_expression.
5659 Reset number of iterations after transformation.
5660 (perfect_nestify): Remove useless pre-allocation, and cleanup
5663 * tree-data-ref.c (build_classic_dist_vector): Return false for
5664 dependences completely outside of the loop nest we asked about.
5665 (build_classic_dir_vector): Ditto.
5666 (compute_data_dependences_for_loop): Only add dependence relations
5667 inside the loop we asked about.
5669 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
5670 Compute immediate uses.
5672 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
5674 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
5676 * tree-cfg.c (thread_jumps): Fix a comment typo.
5678 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
5680 * tree-cfg.c (thread_jumps): Fix a comment typo.
5682 2004-10-31 Nicolas Pitre <nico@cam.org>
5684 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
5685 values smaller than 2^32.
5687 2004-10-31 Jeff Law <law@redhat.com>
5689 * cfgloop.h (struct loop): Remove unused "nodes" field.
5690 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
5691 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
5692 instead of calling flow_bb_inside_loop_p for every basic block
5694 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
5696 2004-10-31 Graham Stott <graham.stott@btinternet.com>
5698 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
5699 INT_5_BITS instead of VAL_5_BITS_P.
5701 2004-10-31 Roger Sayle <roger@eyesopen.com>
5704 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
5705 for consistent quoting in diagnostic messages.
5706 (expand_call_inline): Likewise.
5707 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5708 * tree-ssa.c (warn_uninitialized_var): Likewise.
5709 (warn_uninitialized_phi): Likewise.
5711 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
5713 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
5716 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
5718 * c-common.c: Fix a comment typo.
5720 2004-10-31 Jason Merrill <jason@redhat.com>
5723 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
5724 aggregate types that are not BLKmode.
5726 2004-10-30 Ziemowit Laski <zlaski@apple.com>
5728 * c-common.h (objc_lookup_ivar): Add second parameter to
5730 * c-typeck.c (build_external_ref): After looking up symbol,
5731 pass it to objc_lookup_ivar() to decide whether it or the
5732 ivar should be used, rather than deciding the issue locally.
5733 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
5734 which is simply returned in the non-ObjC case.
5736 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5738 * sdbout.c (sdbout_symbol): Do not output type .def statements
5741 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5743 * c-common.c (catenate_strings): New.
5744 (c_parse_error): Use it. Don't over-escape.
5746 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
5748 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
5749 modify the for loop expressions for it. Remove unnecessary casts.
5750 (sh_expand_prologue): Declare reg as unsigned.
5751 (sh_gimplify_va_arg_expr): Initinalize lab_over.
5752 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
5754 2004-10-30 Geoffrey Keating <geoffk@apple.com>
5756 * doc/invoke.texi (Darwin Options): Improve description of
5757 how the subtype is chosen.
5759 2004-10-30 Roger Sayle <roger@eyesopen.com>
5762 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
5763 the stack adjustment, "size", is valid for Pmode. If the stack
5764 frame is too large, generate a trap insn and issue a warning.
5766 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
5768 * tree-ssa-dom.c: Fix comment typos.
5770 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
5772 * config/sh/sh.c (prepare_move_operands): Use operands[0]
5773 for the output rtl if no_new_pseudos is set. Remove redundant
5776 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
5779 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
5780 determining whether to copy parameter types from a previous
5781 prototype declaration.
5783 2004-10-29 Roger Sayle <roger@eyesopen.com>
5785 PR rtl-optimization/17581
5786 * cselib.c (cselib_process_insn): The last instruction of a libcall
5787 block, with the REG_RETVAL note, should be considered in the libcall.
5788 * gcse.c (do_local_cprop): Allow constants to be propagated outside
5790 (adjust_libcall_notes): Use simplify_replace_rtx instead of
5791 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
5793 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
5795 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
5797 2004-10-29 Jeff Law <law@redhat.com>
5799 * tree-ssa-dom.c (struct edge_info): New structure holding
5800 edge equivalences and edge redirection information.
5801 (get_eq_expr_value, record_dominating_conditions): Kill.
5802 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
5803 Call record_edge_info.
5804 (allocate_edge_info, free_edge_info): New.
5805 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
5806 rather than cprop_into_phis. Free all edge infos before threading
5808 (thread_across_edge): Allocate new edge info structures as needed
5809 and store the redirection target into the edge info structure
5810 instead of the edge's AUX field.
5811 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
5812 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
5813 Revamp code which finds and records equivalences associated with
5814 edges to use saved data in the edge_info structure.
5815 (record_equivalencs_from_phis): Similarly.
5816 (dom_opt_finalize_block): Revamp code which finds and records
5817 equivalences associated with edges to use saved data in the
5818 edge_info structure.
5819 (build_and_record_new_cond): New function.
5820 (record_conditions): Use build_and_record_new_cond to record
5821 dominating conditions.
5822 (record_edge_info): New function.
5823 (record_range): Tighten test for conditions which create
5824 useful range records.
5826 2004-10-29 Geoffrey Keating <geoffk@apple.com>
5828 * config/i386/darwin.h (ASM_SPEC): Simplify.
5829 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5830 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
5831 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5832 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
5833 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
5834 in all cases. Pass the right -arch or -arch_only based on -mcpu.
5835 (ASM_SPEC): Handle -force_cpusubtype_ALL.
5836 * doc/invoke.texi (Darwin Options): Improve documentation for
5837 Darwin linker (and libtool) switches.
5839 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
5841 2004-10-29 Stan Shebs <shebs@apple.com>
5843 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
5845 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
5847 * tree-phinodes.c (allocate_phi_node): New.
5848 (make_phi_node, resize_phi_node): Use it.
5850 2004-10-29 David Edelsohn <edelsohn@gnu.org>
5852 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
5853 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
5855 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
5857 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
5859 * tree.h (tree_phi_node): Tell the garbage collector to chase
5862 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
5864 * opts.c (decode_options): Lower the crossjump threshold for -Os.
5866 2004-10-29 Diego Novillo <dnovillo@redhat.com>
5868 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
5870 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
5872 * bitmap.h (bitmap_empty_p): New.
5873 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5874 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
5875 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
5877 (bitmap_ior_and_compl): Rename to ...
5878 (bitmap_ior_and_compl_into): ... here.
5879 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
5880 (bitmap_ior_and_compl): Rename to ...
5881 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
5883 (bitmap_union_of_diff): Use renamed bitmap functions.
5884 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
5885 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
5886 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5887 * df.c (df_bb_rd_local_compute)
5888 * flow.c (calculate_global_regs_live,
5889 init_propagate_block_info): Likewise.
5890 * ifcvt.c (find_if_case_1, find_if_case_2,
5891 dead_or_predicable): Likewise.
5892 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
5893 reset_conflicts, conflicts_between_webs): Likewise.
5894 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
5895 detect_web_parts_to_rebuild): Likewise.
5896 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
5897 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
5898 * tree-sra.c (decide_instantiations): Likewise.
5899 * tree-ssa-alias.c (create_name_tags,
5900 merge_pointed_to_info): Likewise.
5901 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5902 * tree-ssa-loop-im.c (move_computations): Likewise.
5903 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
5904 * tree-ssa-pre.c (fini_pre): Likewise.
5905 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
5906 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
5907 * tree-vectorizer.c (vectorize_loops): Likewise.
5909 2004-10-29 Nick Clifton <nickc@redhat.com>
5911 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
5912 adding the PIC register to the fixed_regs array, also add it
5913 to the call_used_regs array.
5915 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
5917 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
5918 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
5920 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
5922 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
5923 (rewrite_blocks): Modify argument, and use it to decide which
5925 (rewrite_def_def_chains): Call rewrite_blocks with true here.
5926 (rewrite_into_ssa): and call it with false here.
5928 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
5930 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
5931 triggers into gcc_assert.
5933 2004-10-28 Diego Novillo <dnovillo@redhat.com>
5935 PR tree-optimization/16728
5936 * tree-flow.h (get_ptr_info): Declare.
5937 * tree-ssa-alias.c (get_ptr_info): Make extern.
5938 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
5941 2004-10-28 Stan Shebs <shebs@apple.com>
5943 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
5944 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
5947 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
5949 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
5950 prevent their later unnecessary registration.
5951 (mf_build_check_statement_for): Remove "addr" argument, and
5952 related "__mf_value" generated code. Update callers.
5953 (mf_decl_eligible_p): New function, factored from mx_register_decls.
5954 (mx_register_decls): Call it.
5955 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
5956 to restore support for complex nested expressions.
5957 (mudflap_enqueue_decl): Simplify. Move registration call emission
5959 (mudflap_finish_file): ... to here.
5960 (mudflap_enqueue_constant): Remove dump code.
5962 2004-10-28 Zack Weinberg <zack@codesourcery.com>
5965 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
5966 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
5967 (dbxout_finish_complex_stabs): Update to match.
5968 (dbxout_symbol_location): Call emit_pending_bincls_if_required
5969 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
5970 dbxout_begin_complex_stabs_noforcetext.
5971 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
5972 N_GSYM, using new SYM parameter. Correct logic for special
5975 * varasm.c (function_section): If DECL is NULL_TREE, don't try
5976 to do anything else. Do not call get_insns if cfun or
5977 cfun->emit are NULL.
5979 2004-10-28 Adam Nemet <anemet@lnxw.com>
5982 * c-typeck.c (c_mark_addressable): Issue error if address of a
5983 register variable is taken. Use "%qD" to print DECL_NAME.
5985 2004-10-28 Diego Novillo <dnovillo@redhat.com>
5987 * opts.c (decode_options): Don't run PRE at -Os.
5989 2004-10-28 Richard Henderson <rth@redhat.com>
5991 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
5992 zero in the conditional.
5993 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
5995 2004-10-28 Richard Henderson <rth@redhat.com>
5997 * cse.c (memory_extend_rtx): Remove.
5998 (cse_main): Don't set it.
5999 (cse_insn): Use a local buffer instead.
6001 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
6003 * profile.c (branch_prob): Call to init_edge_profiler added.
6004 * rtl-profile.c (rtl_init_edge_profiler): New function.
6005 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
6006 call to safe_insert_insn_on_edge.
6007 (rtl_profile_hooks): rtl_init_edge_profiler added.
6008 * tree-profile.c (tree_init_edge_profiler): New function.
6009 (tree_profile_hooks): tree_init_edge_profiler added.
6010 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
6012 2004-10-28 Nick Clifton <nickc@redhat.com>
6014 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
6015 emit_jump_insn() to generate the return instruction.
6017 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6019 * tree-phinodes.c: Remove trailing whitespace.
6021 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6023 * tree-ssa-loop-ivopts.c: Fix a comment typo.
6024 * doc/invoke.texi: Fix a typo.
6026 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6028 * Makefile.in (OBJS-common): Remove duplicates.
6030 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6032 * lambda-code.c (nestify_update_pending_stmts): Remove.
6033 (perfect_nestify): Use flush_pending_stmts instead of
6034 nestify_update_pending_stmts.
6035 * tree-cfg.c (tree_make_forwarder_block): Use
6036 flush_pending_stmts.
6037 * tree-flow.h: Add a prototype for flush_pending_stmts.
6038 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
6039 Use flush_pending_stmts.
6040 (lv_update_pending_stmts): Remove.
6041 (tree_ssa_loop_version): Use flush_pending_stmts instead of
6042 lv_update_pending_stmts.
6043 * tree-ssa.c (flush_pending_stmts): New.
6045 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
6048 * final.c (alter_subreg): Compute correct offset to use with
6049 paradoxical SUBREGs of memory operands.
6050 * recog.c (general_operand): Allow paradoxical SUBREGs of
6051 memory operands after reload.
6052 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
6053 has failed when passed a hard register.
6055 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
6057 * function.c (assign_parm_setup_block): Handle parallels correctly.
6059 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
6061 * final.c (shorten_branches): Initialize flags structure.
6063 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6065 * tree.c (int_cst_node, int_cst_hash_table): New variables.
6066 (init_ttree): Initialize them.
6067 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
6068 (build_int_cst_wide): Use hash table for oversized integers.
6070 2004-10-28 Nick Clifton <nickc@redhat.com>
6072 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
6075 2004-10-27 Richard Henderson <rth@redhat.com>
6078 * expr.c (emit_group_load): Don't go force temporary for memory
6080 (emit_group_store): Similarly.
6082 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6085 * common.opt (--param): Fix spelling of parameter.
6087 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6090 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
6091 Don't fold statement.
6092 <case ASM_EXPR>: Fold the statement.
6094 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6096 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6097 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
6099 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6101 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
6102 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
6103 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
6104 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
6106 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6108 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
6109 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
6110 punctuation outside quotes.
6112 2004-10-27 David Mosberger <davidm@hpl.hp.com>
6113 James E Wilson <wilson@specifixinc.com>
6116 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
6117 sibcall alloc instruction.
6118 (process_set): Handle sibcall alloc instruction.
6120 2004-10-27 Geoffrey Keating <geoffk@apple.com>
6122 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
6123 SUBTARGET_ATTRIBUTE_TABLE.
6124 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
6125 (SUBTARGET_ATTRIBUTE_TABLE): Define.
6126 * config/darwin.c (darwin_handle_weak_import_attribute): New.
6127 (HAVE_DEAD_STRIP): Delete.
6128 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
6129 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
6132 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
6134 * config/darwin.h (GTHREAD_USE_WEAK): Define.
6136 2004-10-28 Ben Elliston <bje@au.ibm.com>
6138 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
6139 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
6140 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
6141 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
6142 * tree-sra.c: Include "params.h".
6143 (decide_block_copy): Use new parameters.
6144 * doc/invoke.texi (Optimize Options): Document new SRA pass
6145 parameters sra-max-structure-size and sra-field-structure-ratio.
6147 2004-10-27 Nicolas Pitre <nico@cam.org>
6149 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
6151 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
6153 PR tree-optimization/18048
6154 * fold-const.c (try_move_mult_to_index): New function.
6155 (fold): Use try_move_mult_to_index.
6156 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
6157 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
6158 an all-ones unsigned constant without extra bits.
6159 * tree.c (build_low_bits_mask): New function.
6160 * tree.h (build_low_bits_mask): Declare.
6162 2004-10-27 David Edelsohn <edelsohn@gnu.org>
6165 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
6171 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6173 * tree-cfg.c (thread_jumps): Speed up by reordering the two
6174 conditions for entering basic blocks into worklist.
6176 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6178 * tree-cfg.c (thread_jumps): Speed up by pretending to have
6179 ENTRY_BLOCK_PTR in worklist.
6181 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6183 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6184 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
6186 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
6188 Fix PR tree-optimization/17133
6190 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
6193 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
6194 (get_v_must_def_result_ptr): Modify for new structure of
6196 (get_v_must_def_kill_ptr): New.
6197 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
6198 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6199 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6200 (op_iter_init): Initialize new mustu members.
6201 (op_iter_next_mustdef): New function.
6202 (op_iter_init_mustdef): Ditto.
6204 * tree-flow.h (rewrite_def_def_chains): New function.
6206 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
6207 (ssa_mark_def_sites): Ditto.
6208 (rewrite_stmt): Ditto.
6209 (ssa_rewrite_stmt): Ditto.
6210 (rewrite_blocks): Factor out from rewrite_into_ssa.
6211 (mark_def_block_sites): Ditto.
6212 (rewrite_def_def_chains): New function, just rewrites def-def
6213 chains without phi node insertion.
6215 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
6217 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
6219 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
6220 they include the rhs now.
6222 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
6225 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
6227 (mark_really_necessary_kill_operand_phis): New function.
6228 (perform_tree_ssa_dce): Call it.
6229 (pass_dce): Add TODO_fix_def_def_chains.
6230 (pass_cd_dce): Ditto.
6232 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
6234 (rewrite_mem_refs): Ditto.
6236 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
6239 * tree-ssa-operands.c (allocate_v_may_def_optype):
6240 v_may_def_operand_type_t became v_def_use_operand_type_t.
6241 (allocate_v_must_def_optype) Ditto.
6242 (finalize_ssa_v_must_defs): Update for new operand type, as well
6243 as setting the use portion as well.
6244 (copy_virtual_operands): Copy the kill operand as well.
6245 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
6248 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
6249 v_def_use_operand_type.
6250 (v_must_def_optype_d): Use v_def_use_operand_type.
6251 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
6252 (V_MUST_DEF_KILL_*): New macros.
6253 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
6255 Rename existing must_i and num_v_must members to mustd_i and
6257 (SSA_OP_VMUSTDEFKILL): New flag.
6258 (SSA_OP_VIRTUAL_KILLS): New flag.
6259 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
6260 (SSA_OP_ALL_KILLS): New flag.
6261 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
6263 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
6265 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
6266 became V_MUST_DEF_RESULT.
6267 (rename_variables_in_bb): Rename kill pointer as well.
6269 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
6272 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
6274 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
6275 the block that needs it.
6277 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6279 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
6282 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6284 * c-lex.c (cb_def_pragma): Clean up code for making location
6285 palatable to diagnostic.c.
6287 2004-10-27 Steven Bosscher <stevenb@suse.de>
6289 PR tree-optimization/17757
6290 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
6291 without any PHI arguments left. Make sure the argument that
6292 we're supposed to remove exists at all.
6294 2004-10-27 Paul Brook <paul@codesourcery.com>
6296 * configure.ac: Don't test for [build] __cxa_atexit when building a
6298 * configure: Regenerate.
6300 2004-10-27 Paul Brook <paul@codeosurcery.com>
6302 * configure.ac: Use build_exeext not host_exeext when lookin for
6304 * configure: Regenerate.
6306 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6308 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
6310 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6311 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
6314 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
6315 to match -fprofile-use.
6317 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6319 * config/rs6000/rs6000.c: Fix a comment typo.
6321 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6323 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
6326 2004-10-27 Andreas Schwab <schwab@suse.de>
6328 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
6330 (default_stabs_asm_out_constructor): Likewise.
6332 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6334 * builtins.c (fold_builtin_unordered_cmp): Always bring both
6335 operands to the same type.
6337 2004-10-26 James E Wilson <wilson@specifixinc.com>
6340 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
6342 2004-10-26 Zack Weinberg <zack@codesourcery.com>
6344 * dbxout.c: Include obstack.h.
6345 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
6347 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
6348 Default-define here.
6349 (DBX_CONTIN_LENGTH): Move definition with others.
6350 (DBX_FINISH_STABS): New target macro.
6351 (current_sym_code, current_sym_value, current_sym_addr)
6352 (current_sym_nchars, CHARS, dbxout_continue)
6353 (print_int_cst_octal, print_octal, print_wide_int)
6354 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
6355 (stabstr_ob, stabstr_last_contin_point): New variables.
6356 (NUMBER_FMT_LOOP): New improper macro.
6357 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
6358 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
6359 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
6360 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
6361 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
6362 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
6363 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
6364 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
6365 New functions and/or proper function-like macros.
6366 (CONTIN): Use stabstr_continue, unconditionally.
6367 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
6368 (dbxout_init): Initialize stabstr_ob. Check
6369 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
6370 if it was used. Use the new interfaces.
6371 (dbxout_source_file): Remove file argument; always write to
6372 asm_out_file. Use the new interfaces.
6373 (dbxout_type_method_1): Remove second argument which is always
6374 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
6375 (dbxout_type_methods): Remove write-only variables. Use the
6377 (dbxout_parms): Refactor to remove code duplicated in each of
6378 several successive if-else-if blocks. Use the new interfaces.
6379 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
6380 (dbxout_source_line, dbxout_finish, dbxout_type_index)
6381 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
6382 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
6383 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
6384 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
6385 Use the new interfaces.
6386 * Makefile.in (dbxout.o): Update dependencies.
6388 * defaults.h: Don't define ASM_STABD_OP.
6389 * output.h: Prototype new dbxout_* interfaces.
6390 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
6391 * varasm.c: Don't define ASM_STABS_OP.
6392 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
6393 Use the new dbxout.c interfaces. Call sorry if neither
6394 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
6396 * xcoffout.h: Don't define ASM_STABS_OP.
6397 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
6398 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
6399 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
6400 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
6401 do { ... } while (0) idiom.
6403 * config/alpha/alpha.c (num_source_filenames): Export.
6404 * config/alpha/alpha.h (num_source_filenames): Declare.
6405 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6406 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6407 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6408 Always use .debugsym. Update commentary.
6409 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6410 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6411 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
6413 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
6414 (macho_branch_islands): Use new interfaces.
6416 * doc/tm.texi: Update.
6418 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6420 * expr.c (emit_group_store): Do not treat floats as BLKmode.
6421 (emit_group_load): Same.
6423 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
6425 * c-parse.in (datadef): Use pedwarn rather than error and warning
6426 for diagnostic in case of no declaration specifiers.
6428 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
6431 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
6432 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
6433 can be used to work around this.
6435 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6437 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
6440 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6442 * stmt.c (expand_case): Update a comment.
6444 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6446 * stmt.c (expand_case): Put an assertion that index_expr is
6447 never INTEGER_CST. Don't special case for constant
6450 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
6453 * c-parse.in (designator): Finish with a semi-colon.
6455 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
6457 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
6460 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6462 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
6463 a default case only.
6465 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6467 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
6469 (spe_build_register_parallel): New.
6470 (rs6000_spe_function_arg): Handle e500 doubles.
6471 (function_arg): Same.
6472 (spe_func_has_64bit_regs_p): Same.
6473 (rs6000_function_value): Same.
6474 (rs6000_libcall_value): Same.
6475 (legitimate_lo_sum_address_p): Return false for e500 doubles.
6477 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
6479 (DATA_ALIGNMENT): Same.
6480 (CANNOT_CHANGE_MODE_CLASS): Same.
6482 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6484 * expr.c (emit_group_load): Handle floats.
6485 (emit_group_store): Same.
6487 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
6489 * c-lex.c (get_nonpadding_token): Remove.
6490 (c_lex_with_flags): Push timevar and eat padding here. Improve
6491 stray token diagnostic.
6492 (lex_string): Replace logic with switch statement, eat padding
6495 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6498 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
6500 2004-10-25 Geoffrey Keating <geoffk@apple.com>
6502 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
6504 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
6505 (ASM_MAKE_LABEL_LINKONCE): Delete.
6506 (ASM_WEAKEN_DECL): New.
6507 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
6508 (ASM_DECLARE_FUNCTION_NAME): Likewise.
6509 (TEXT_SECTION_ASM_OP): Add a tab.
6510 (DATA_SECTION_ASM_OP): Likewise.
6511 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
6512 data_section on every section change.
6513 (EXTRA_SECTIONS): Add a bunch of new extra sections.
6514 (EXTRA_SECTION_FUNCTIONS): Likewise.
6515 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
6516 (JCR_SECTION_NAME): Define.
6517 (TARGET_SECTION_TYPE_FLAGS): Don't define.
6518 * config/darwin.c (darwin_encode_section_info): A symbol is defined
6519 in this file if it is not weak.
6520 (textcoal_section): Delete.
6521 (datacoal_section): Delete.
6522 (darwin_make_decl_one_only): Delete.
6523 (machopic_select_section): Handle functions.
6524 (darwin_asm_named_section): Add a tab.
6525 (darwin_section_type_flags): Delete.
6526 (darwin_unique_section): Delete contents.
6527 (darwin_emit_unwind_label): Add a tab. Make decls weak if
6529 * config/darwin-protos.h (darwin_section_type_flags): Delete.
6530 (darwin_make_decl_one_only): Delete.
6531 (text_coal_section): New.
6532 (text_unlikely_section): New.
6533 (text_unlikely_coal_section): New.
6534 (const_coal_section): New.
6535 (data_coal_section): New.
6536 (const_data_coal_section): New.
6537 * varasm.c (function_section): Honour
6538 USE_SELECT_SECTION_FOR_FUNCTIONS.
6539 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
6540 TARGET_USES_WEAK_UNWIND_INFO is in effect.
6541 * dbxout.c (dbxout_source_file): Don't change sections while
6542 a function is being output.
6544 2004-10-25 David Ayers <d.ayers@inode.at>
6546 * c-common.h: Remove RID_ID.
6547 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
6548 (typespec_reserved_attr): Add rule for TYPENAME
6549 non_empty_protocolrefs.
6550 (yylexname): Remove special handling of RID_ID.
6552 2004-10-25 James E Wilson <wilson@specifixinc.com>
6554 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
6556 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
6559 * c-parse.in (array_designator): New.
6560 (designator): Use it.
6561 (initelt): Only permit array_designator without '=', not ".foo".
6563 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
6564 * gcc/Makefile.in: removed ggc for cgraphunit.
6565 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
6566 * gcc/cgraph.h: removed static var analysis data structures and calls.
6568 cgraph_mark_local_and_external_functions:changed name to
6569 cgraph_mark_local_functions
6570 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
6571 cgraph_reset_static_var_maps,get_global_static_vars_info,
6572 get_global_statics_not_read,get_global_statics_not_written,searchc,
6573 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
6574 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
6575 scan_for_static_refs,cgraph_characterize_statics_local,
6576 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
6578 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
6579 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
6581 * gcc/tree-flow.h static_vars_info: removed
6582 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
6583 removed calls to static vars analysis.
6584 get_call_expr_operands: removed callee variable.
6586 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6588 * cfg.c (unchecked_make_edge, redirect_edge_succ,
6589 redirect_edge_pred): Use VEC_safe_push instead of
6591 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6593 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6595 * cfgloopmanip.c (loopify): Take two more arguments true_edge
6597 * cfgloop.h: Adjust the corresponding prototype.
6598 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
6599 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
6601 2004-10-25 Jakub Jelinek <jakub@redhat.com>
6603 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
6604 DECL_INCOMING_RTL is NULL.
6606 2004-10-25 Steven Bosscher <stevenb@suse.de>
6608 * timevar.def (TV_FIND_REFERENCED_VARS): New.
6609 * tree-dfa.c (pass_referenced_var): Use it.
6611 2004-10-25 Roger Sayle <roger@eyesopen.com>
6612 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6614 * cse.c: Change encoding of quantity numbers to avoid undefined
6615 pointer arithmetic on qty_table.
6616 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
6617 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
6618 (new_basic_block): Assign "real" quantity numbers from zero.
6619 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
6620 REG_QTY to its unique negative value.
6621 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
6622 (cse_main): Don't include max_reg when determining max_qty.
6623 (cse_basic_block): Avoid subtracting a large offset from qty_table,
6624 which causes undefined C99 behaviour. Only allocate needed memory.
6626 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6628 * stmt.c (expand_case): Remove an obsolete comment.
6630 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
6633 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
6634 layout_type as it is already done by build_array_type.
6635 * tree.c (build_array_type): Layout the type even
6637 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
6639 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
6641 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
6643 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
6644 with wider-than-32-bit HOST_WIDE_INTs.
6646 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
6648 * config/mips/mips.c(mips_output_filename): Remove unused
6649 array ltext_label_name
6651 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
6653 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
6655 2004-10-25 Ben Elliston <bje@au.ibm.com>
6657 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
6659 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
6661 * predict.c (predict_loops): Call scev_finalize instead of
6664 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
6666 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
6667 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
6668 config/sh/ushmedia.h, config/sparc/elf.h,
6669 config/sparc/sp64-elf.h: Update copyright.
6671 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
6673 * stmt.c (expand_case): Handle the default label outside of
6674 the for loop. Remove code to handle a missing default label.
6676 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
6678 * dbxout.c (dbxout_function_decl): Don't use
6679 DBX_OUTPUT_FUNCTION_END.
6680 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
6681 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
6683 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
6686 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
6688 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
6690 * tree-ssa-dom.c (record_equality): Use loop depth to determine
6691 which way to record the equality as well.
6692 (loop_depth_of_name): New function.
6694 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6697 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
6698 through the operand if it is a useless type conversion.
6700 2004-10-23 Ben Elliston <bje@au.ibm.com>
6702 * cfg.c (remove_edge): Use VEC_unordered_remove.
6703 (redirect_edge_succ): Likewise.
6704 (redirect_edge_pred): Likewise.
6705 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6707 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6709 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
6712 2004-10-22 Eric Christopher <echristo@redhat.com>
6714 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
6717 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
6719 * config/rs6000/spe.md (spe_extendsfdf2): New.
6720 (movdf_e500_double): New.
6721 (spe_truncdfsf2): New.
6728 (spe_floatsidf2): New.
6729 (spe_floatunssidf2): New.
6730 (fix_truncdfsi2): New.
6731 (spe_fixuns_truncdfsi2): New.
6733 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
6734 (fpr_truncdfsf2): New.
6735 (negdf2): Change to expander.
6737 (fpr_nabsdf2): Name pattern.
6738 (adddf3): Change to expander.
6740 (subdf3): Change to expander.
6742 (muldf3): Change to expander.
6744 (divdf3): Change to expander.
6746 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
6747 (cmpdf): Allow for TARGET_E500_DOUBLE.
6749 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6751 * c-semantics.c (re_push_stmt_list): Remove.
6752 * c-common.h: Remove the corresponding prototype.
6754 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6756 * stmt.c (asm_op_is_mem_input): Remove.
6757 * tree.h: Remove the corresponding prototype.
6759 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6761 * tree-gimple.c (is_gimple_constructor_elt): Remove.
6762 * tree-gimple.h: Remove the corresponding prototype.
6764 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6766 * varasm.c (get_pool_mode_for_function, get_pool_offset):
6768 * rtl.h: Remove the corresponding prototypes.
6770 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6772 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
6773 edge information when we commit ourselves to threading a
6776 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6778 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
6779 into worklist instead of their indexes.
6781 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6783 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
6784 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
6785 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
6786 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
6787 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
6788 tree-scalar-evolution.c, tree-ssa-dom.c,
6789 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6790 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
6791 tree-vectorizer.c, vec.h: Fix comment formatting.
6793 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6795 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
6796 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
6798 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6800 * config/ptx4.h, config/mcore/mcore-pe.h,
6801 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
6803 2004-10-22 Peter Barada <peter@the-baradas.com>
6805 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
6806 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
6807 renaming of non-live registers in interrupt functions.
6808 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
6810 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
6812 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
6813 Use integer for loop counter.
6814 (num_ending_zeros): New function.
6815 (number_of_iterations_cond): Use num_ending_zeros.
6817 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
6819 * config.gcc: Add support for --enable-e500_double.
6821 * config/rs6000/e500-double.h: New file.
6823 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
6826 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
6829 * config/rs6000/linuxspe.h: Same.
6831 * doc/invoke.texi (Option Summary): Document new options for
6833 (RS/6000 and PowerPC Options): Same.
6835 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
6837 (rs6000_override_options): Use it. Use
6838 SUB3TARGET_OVERRIDE_OPTIONS.
6839 Add 8548 to processor_target_table.
6840 (rs6000_legitimate_address): Handle e500 doubles.
6841 (rs6000_legitimize_address): Same.
6842 (rs6000_legitimize_reload_address): Same.
6843 (rs6000_hard_regno_nregs): Same.
6844 (spe_func_has_64bit_regs_p): Same.
6845 (emit_frame_save): Same.
6846 (gen_frame_mem_offset): Same.
6847 (rs6000_dwarf_register_span): Same.
6848 (rs6000_generate_compare): Same.
6849 (easy_fp_constant): Same.
6850 (legitimate_offset_address_p): Same.
6852 * config/rs6000/spe.md: (cmdfeq_gpr): New.
6861 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6863 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
6865 2004-10-21 Zack Weinberg <zack@codesourcery.com>
6867 * dbxout.c: Remove unnecessary #undefs.
6868 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
6869 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
6870 definition into use sites.
6871 (cwd): Make local to dbxout_init.
6872 (dbxout_init): Restructure cwd-using logic for clarity. Use
6874 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
6875 STABS_GCC_MARKER folded in here.
6876 * system.h: Poison now-unused macros.
6877 * doc/tm.texi: Remove documentation of now-unused macros.
6879 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
6882 * c-opts.c (push_command_line_include): Use the current file
6883 name instead of the main one.
6885 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
6888 * tree.c (staticp): A CONST_DECL has static storage if either
6889 TREE_STATIC or DECL_EXTERNAL is set.
6890 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
6893 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6895 * expr.c (store_expr): Remove dont_store_target.
6897 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6899 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
6901 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6903 * tree-cfg.c (thread_jumps): Move a part of it to ...
6904 (thread_jumps_from_bb): ... here.
6906 2004-10-21 David Edelsohn <edelsohn@gnu.org>
6908 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
6909 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
6911 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6913 * expr.c (store_expr): Clean up by renaming want_value to
6916 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
6918 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
6921 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
6924 * expmed.c (store_bit_field): Pass original 'value' before
6927 2004-10-21 Nicolas Pitre <nico@cam.org>
6929 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
6930 * config/arm/ieee754-df.S: Ditto.
6932 2004-10-20 Zack Weinberg <zack@codesourcery.com>
6934 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
6935 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
6937 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
6938 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
6939 an internal label and an N_SLINE .stabn whose value is the
6940 difference between that label and the function entry label.
6941 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
6942 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
6943 label and an N_SO stab with an empty string referring to it.
6944 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
6945 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
6946 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
6947 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
6948 macro is never defined.
6949 * sdbout.c (sdbout_source_line_counter): Delete.
6950 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
6951 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
6953 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
6955 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
6956 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
6957 definitions (identical to default).
6958 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6959 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
6960 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
6961 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
6962 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6963 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
6964 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
6965 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
6966 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
6967 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
6968 (sym_lineno): Delete.
6969 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
6970 now-unused variable.
6971 (alpha_output_lineno): Delete.
6972 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
6973 * config/mips/mips.c (mips_output_filename): Don't use
6974 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
6975 (mips_output_lineno): Delete.
6976 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
6977 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
6978 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
6979 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
6980 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
6981 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
6982 * config/mmix/mmix.h: Likewise.
6983 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
6984 * config/mmix/mmix-protos.h: Don't prototype it.
6985 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
6986 no need to #undef ASM_OUTPUT_SOURCE_LINE.
6987 * config/arm/aout.h: Remove RISCiX-specific definition of
6988 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
6989 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
6990 ASM_OUTPUT_SOURCE_LINE.
6991 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
6992 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
6993 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
6995 * doc/tm.texi: Update.
6997 2004-10-20 Richard Henderson <rth@redhat.com>
6999 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
7001 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
7003 * configure.ac: Revert my previous patch.
7004 * configure: Regenerate.
7006 2004-10-20 Ben Elliston <bje@au.ibm.com>
7008 * config/rs6000/rs6000.c
7009 (rs6000_va_start): Use build_va_arg_indirect_ref.
7010 (rs6000_gimplify_va_arg): Likewise.
7012 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
7015 * configure.ac: Declare AM_LANGINFO_CODESET.
7016 * aclocal.m4: Define AM_LANGINFO_CODESET.
7017 * configure, config.in: Rebuilt.
7019 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7021 * expr.c (store_expr): Remove code that is run when
7022 want_value & 1 is nonzero.
7024 2004-10-20 Mark Mitchell <mark@codesourcery.com>
7026 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
7027 from function pointer to void *.
7029 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
7032 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
7033 the frame pointer adjustment when exception handling is enabled.
7035 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7037 * stor-layout.c: Fix a comment typo.
7039 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7041 * expr.c (store_field): Remove two arguments value_mode and
7043 (expand_assignment, store_constructor_field,
7044 expand_expr_real_1): Adjust calls to store_field.
7046 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
7048 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
7051 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
7052 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
7053 base and index register for loads.
7055 * config/arc/t-arc: Fix multilib handling.
7057 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
7059 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7060 don't inspect BLOCK_FOR_INSN for barriers.
7061 * emit-rtl.c (emit_barrier_before): Revert last change.
7062 (emit_barrier_after, emit_barrier): Ditto.
7064 * doc/extend.texi (Extended Asm): Warn and provide example
7065 solution for using a call-clobbered asm register.
7066 (Local Reg Vars): Similar. Cross-reference example.
7068 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
7070 * tree-cfg.c (group_case_labels): Look at the second to last
7071 case statement for combing with the default case.
7073 2004-10-19 Richard Hendeson <rth@redhat.com>
7076 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
7078 2004-10-19 Richard Hendeson <rth@redhat.com>
7080 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
7081 succeeds, only expand the result.
7083 2004-10-19 Richard Hendeson <rth@redhat.com>
7086 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
7089 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7091 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
7094 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7096 * expr.c (expand_assignment): Remove the last argument.
7097 Change the return type to void.
7098 * expr.h: Update the prototype of expand_assignment.
7099 * function.c (assign_parm_setup_reg): Update a call to
7101 * stmt.c (expand_asm_expr): Likewise.
7103 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7105 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
7106 unnecessary assignments to temp. Return const0_rtx.
7108 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
7110 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
7112 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
7114 * configure.ac (powerpc-*-darwin*): Require assembler to support
7116 * configure: Regenerate.
7118 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7120 * reload1.c (ior_hard_reg_set): Remove.
7121 (finish_spills): Use IOR_HARD_REG_SET instead of
7124 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7126 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
7127 the currently visited word to right.
7129 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7132 * expmed.c (expand_smod_pow2): Handle modes whose size
7133 is greater than that of HOST_WIDE_INT.
7135 2004-10-18 Ziemowit Laski <zlaski@apple.com>
7137 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
7139 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7140 Roger Sayle <roger@eyesopen.com>
7143 * dojump.c (discard_pending_stack_adjust): New function.
7144 (clear_pending_stack_adjust): Call it.
7145 * expr.h (discard_pending_stack_adjust): Declare it.
7146 * explow.c (emit_stack_save): Emit pending stack adjustments
7147 before saving the stack pointer.
7148 (emit_stack_restore): Discard pending stack adjustments before
7149 restoring the stack pointer.
7151 2004-10-18 Richard Henderson <rth@redhat.com>
7153 * c-common.c (handle_mode_attribute): Allow scalar->vector
7156 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7158 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
7159 value to expand_assignment.
7161 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7163 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
7165 (thread_jumps): Iterate until no new forwarder block arises.
7167 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7169 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
7170 (thread_jumps): Use forwardable as cache of
7171 tree_forwarder_block_p throughout the function.
7173 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
7175 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
7177 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
7181 * tree-cfg.c (remove_bb): If we have a label expression in the
7182 basic block and the label we have taken the address, move the
7183 label expression to the basic block which is previous in the
7185 (tree_verify_flow_info): Fix printing out the label name of the
7186 problematic label expression.
7188 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
7190 PR rtl-optimization/18002
7191 * simplify-rtx.c (mode_signbit_p): Externalize function...
7192 * rtl.h (mode_signbit_p): ... to here.
7193 * combine.c (simplify_shift_const): Recognize PLUS signbit as
7194 canonical form of XOR signbit and move to outer op.
7196 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7198 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
7200 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
7201 Don't call fold_stmt more than once, use bsi_replace.
7203 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7205 PR tree-optimization/17656
7206 * tree-ssa.c (replace_immediate_uses): When replacing a
7207 constant, if the call to fold_stmt produced a different
7208 statement, get an appropriate statement pointer by scanning
7211 2004-10-18 Richard Henderson <rth@redhat.com>
7213 * pointer-set.c (hash1): Don't use libm functions in fallback case.
7215 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
7218 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
7219 (stage1-start): Remove and copy libunwind.a and
7220 libunwind*$(SHLIB_EXT) instead of libunwind*.
7221 (stage2-start): Likewise.
7222 (stage3-start): Likewise.
7223 (stage4-start): Likewise.
7224 (stageprofile-start): Likewise.
7225 (stagefeedback-start): Likewise.
7227 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
7228 the shared library to be created and don't remove the existing
7230 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
7231 * config/i386/t-nwld (SHLIB_LINK): Likewise.
7232 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
7233 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
7234 * config/sh/t-linux (SHLIB_LINK): Likewise.
7235 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
7236 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
7237 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
7238 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7240 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
7243 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7245 * basic-block.h (reg_set_iterator): New.
7246 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
7247 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
7248 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
7249 * caller-save.c (save_call_clobbered_regs): Adjust to the new
7251 * cfgcleanup.c (thread_jump): Likewise.
7252 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
7253 * conflict.c (conflict_graph_compute): Likewise.
7254 * flow.c (verify_local_live_at_start, update_life_info,
7255 initialize_uninitialized_subregs, propagate_one_insn,
7256 init_propagate_block_info, free_propagate_block_info,
7257 propagate_block, dump_regset): Likewise.
7258 * global.c (global_conflicts): Likewise.
7259 * graph.c (start_bb): Likewise.
7260 * local-alloc.c (update_equiv_regs): Likewise.
7261 * loop.c (load_mems): Likewise.
7262 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
7263 find_reg, finish_spills): Likewise.
7264 * resource.c (mark_target_live_regs): Likewise.
7265 * sched-deps.c (sched_analyze_insn): Likewise.
7266 * sched-rgn.c (sched-rgn.c): Likewise.
7267 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7269 2004-10-18 Jakub Jelinek <jakub@redhat.com>
7271 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
7272 operand 1 instead of 2
7274 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7276 * loop-unroll.c: Fix comment typos.
7278 2004-10-18 Revital Eres <eres@il.ibm.com>
7280 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
7281 * loop-unroll.c: Include varray.h.
7282 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
7283 opt_info and expand it to support variable expansion.
7284 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
7285 expand it to support variable expansion.
7286 (pt_info_start_duplication): Rename si_info_start_duplication.
7287 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
7288 to the variable expansion optimization.
7289 (free_opt_info): Rename free_si_info.
7290 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
7291 expand_var_during_unrolling, insert_var_expansion_initialization,
7292 combine_var_copies_in_loop_exit, release_var_copies,
7293 get_expansion): New functions.
7294 (peel_loop_completely, unroll_loop_constant_iterations,
7295 unroll_loop_runtime_iterations, peel_loop_simple,
7296 unroll_loop_stupid): Change uses of struct si_info
7298 and add uses of fvariable-expansion-in-unroller flag.
7299 * params.def: Add parameter to restrict the number of expansions.
7300 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
7301 the number of expansions.
7302 * common.opt: (fvariable-expansion-in-unroller): New flag.
7303 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
7305 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
7307 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
7308 __GXX_MERGED_TYPEINFO_NAMES to 0.
7310 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
7312 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7313 handle barriers in a bb by checking that it points to a NULL bb.
7314 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
7315 (emit_barrier_after, emit_barrier): Ditto.
7317 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
7319 * doc/extend.texi (Attribute Syntax): Clarify details of
7320 attributes on parameters.
7322 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
7324 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
7327 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7330 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7332 * c-typeck.c (default_function_array_conversion): Always create
7333 &a[0] for array types.
7334 (build_unary_op): Do not fold &a[x] into a + x.
7336 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7339 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
7340 block if there is a goto with a locus.
7342 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7344 * config/elfos.h, config/gofast.h, config/interix.h,
7345 config/netbsd.h, config/svr3.h, config/vxworks.h,
7346 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
7347 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
7348 config/alpha/netbsd.h, config/arm/arm-modes.def,
7349 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
7350 config/cris/aout.h, config/frv/frv-modes.def,
7351 config/i386/beos-elf.h, config/i386/gas.h,
7352 config/i386/i386-coff.h, config/i386/i386-modes.def,
7353 config/i386/linux.h, config/i386/linux64.h,
7354 config/i386/mingw32.h, config/i386/netbsd-elf.h,
7355 config/i386/netbsd64.h, config/i386/sco5.h,
7356 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
7357 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
7358 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
7359 config/mips/mips-modes.def, config/mips/sdb.h,
7360 config/mips/vr.h, config/mips/vxworks.h,
7361 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
7362 config/pa/pa32-linux.h, config/rs6000/40x.md,
7363 config/rs6000/7450.md, config/rs6000/8540.md,
7364 config/rs6000/linuxspe.h, config/rs6000/power4.md,
7365 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
7366 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
7367 config/s390/s390-modes.def, config/sh/elf.h,
7368 config/sh/sh-modes.def, config/sh/sh64.h,
7369 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
7370 config/stormy16/stormy16.md, config/v850/v850-protos.h,
7371 config/vax/vax.md: Update copyright.
7373 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7375 * expr.c (expand_expr_real_1): Remove an obsolete comment.
7377 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7379 * c-typeck.c (default_function_array_conversion): Always create
7380 &a[0] for array types.
7381 (build_unary_op): Do not fold &a[x] into a + x.
7383 2004-10-17 Jakub Jelinek <jakub@redhat.com>
7385 * pointer-set.c (hash1): Use integer part of 2^64 / phi
7386 instead 2^32 / phi if long is 64-bit.
7388 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
7390 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
7392 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
7394 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
7395 __ptrextent__, __ptrvalue and __ptrvalue__.
7396 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
7399 2004-10-16 Dale Johannesen <dalej@apple.com>
7401 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
7403 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7405 PR tree-optimization/17766
7406 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
7407 (dom_info_available_p): Declare.
7408 * cfghooks.c (split_block, make_forwarder_block): Use
7409 dom_info_available_p.
7410 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
7411 free_dominance_info, verify_dominators): Ditto.
7412 (dom_info_available_p): New function.
7413 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
7414 (thread_jumps): Use dom_info_available_p.
7415 * tree-complex.c (expand_complex_div_wide): Ditto.
7416 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7418 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7420 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
7421 (find_best_candidate): Take also important candidates into account.
7422 (find_optimal_iv_set): Initialize important_candidates bitmap.
7424 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7426 PR tree-optimization/17560
7427 * predict.c (tree_estimate_probability): Mark irreducible
7430 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7432 PR rtl-optimization/17723
7433 * cfgcleanup.c (merge_memattrs): Handle case when
7434 MEM_SIZE == NULL_RTX.
7436 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
7438 * toplev.c (dump_file_name): Change type to be const.
7440 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
7442 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
7443 non_lvalue to stop something being a null pointer constant.
7445 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
7447 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
7448 available for TARGET_FPRS.
7449 (FUNCTION_VALUE_REGNO_P): Same.
7451 2004-10-15 Geoffrey Keating <geoffk@apple.com>
7453 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7454 -maltivec in same style as other ISA options.
7456 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
7458 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
7461 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7463 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
7464 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
7465 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
7466 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
7467 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
7468 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
7469 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
7470 predict.def, predict.h, protoize.c, reload.h, resource.h,
7471 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
7472 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
7473 unwind-sjlj.c, value-prof.h: Update copyright.
7475 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7477 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
7479 2004-10-15 Diego Novillo <dnovillo@redhat.com>
7481 * tree-optimize.c (execute_one_pass): Stop timer right after
7484 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7487 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7490 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7491 (remove_useless_stmts_1): Fold trees we know how to fold.
7493 2004-10-14 David Edelsohn <edelsohn@gnu.org>
7495 * configure.ac: Add .machine power4 directive when testing for
7497 * configure: Regenerate.
7499 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7501 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
7503 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7505 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
7508 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
7510 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
7511 for 'f' if !TARGET_FPRS.
7513 2004-10-14 Richard Henderson <rth@redhat.com>
7516 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
7518 2004-10-14 Richard Henderson <rth@redhat.com>
7521 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
7523 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
7524 instaed of current_function_decl non-null.
7526 2004-10-14 Matt Austern <austern@apple.com>
7528 * pointer-set.c: New file, special-purpose hash table.
7529 * pointer-set.h: New file.
7530 * tree.h (struct pointer_set_t): Declare as opaque type.
7531 (tree_walk): Last argument is pointer_set_t* now.
7532 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
7534 (walk_tree): Convert from htab_t to pointer_set_t for keeping
7535 track of which nodes have already been visited.
7536 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
7537 * cgraphunit.c (cgraph_create_edges): Likewise.
7538 (cgraph_characterize_statics_local): Likewise.
7539 * tree-dfa.c (collect_dfa_stats): Likewise.
7540 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
7542 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
7543 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
7544 of walk_subtrees is pointer_set_t* now.
7545 * Makefile.in (OBJS-common): add pointer-set.o
7546 (tree-inline.o): Depends on pointer-set.h
7547 (tree-dfa.o): Likewise
7548 (cgraphunit.o): Likewise
7550 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7552 * config/rs6000/darwin.h (ASM_SPEC): Delete.
7553 (TARGET_ASM_FILE_START): Define.
7554 * config/darwin.h (ASM_SPEC): Define.
7555 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
7556 -mlong-double-128, it's the default. Update comment about reason
7557 for force_cpusubtype_ALL.
7558 * config/rs6000/darwin-vecsave.asm: Supply .machine.
7559 * config/rs6000/darwin-world.asm: Likewise.
7560 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
7561 (symbolic_operand): Delete #if 0ed code.
7563 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7565 * stmt.c (add_case_node): Make sure that we have integer
7566 constant before calling tree_int_cst_compare.
7568 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7572 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7573 (remove_useless_stmts_1): Fold trees we know how to fold.
7575 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
7577 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
7578 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
7581 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
7583 * reload.c (find_reloads): When reloading a PLUS with constant
7584 operand, make sure the constant is pushed to the constant pool
7586 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
7587 reload bug workaround.
7588 (s390_expand_plus_operand): Likewise.
7590 2004-10-14 David Edelsohn <edelsohn@gnu.org>
7592 * opts.c (common_handle_option): Do not enable
7593 flag_speculative_prefetching for -fprofile-generate/use.
7595 2004-10-14 Devang Patel <dpatel@apple.com>
7598 * tree-if-conv.c (process_phi_nodes): Process latch block.
7599 (combine_blocks): Process latch block and update loop structure.
7601 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
7603 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
7604 (vect_update_ivs_after_vectorizer):
7605 (vect_transform_for_unknown_loop_bound):
7606 (tree_duplicate_loop_to_edge):
7607 (allocate_new_names):
7610 (rename_variables_in_bb):
7612 (rename_variables_in_loop):
7614 (update_phis_for_duplicate_loop):
7615 (update_phi_nodes_for_guard):
7616 (make_loop_iterate_ntimes):
7617 (tree_duplicate_loop_to_edge_cfg):
7619 (vect_analyze_loop_with_symbolic_num_of_iters):
7620 (verify_loop_for_duplication):
7621 (vect_gen_niters_for_prolog_loop):
7622 (vect_update_niters_after_peeling):
7623 (vect_update_inits_of_dr):
7624 (vect_update_inits_of_drs):
7625 (vect_build_loop_niters):
7626 (vect_do_peeling_for_alignment): New functions.
7627 (vect_transform_loop): Add unknown and known but indivisible loop
7628 bound support; add peeling for unalignment support.
7629 (vect_analyze_loop_form): Support symbolic number of iterations.
7630 (vect_transform_loop_bound): New input parameter.
7631 (vect_get_loop_niters): Change input parameter type.
7632 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
7633 (vectorizable_store): Allow unaligned access.
7634 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
7635 (vect_analyze_data_refs_alignment): Allowed one unaligned
7637 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
7639 (LOOP_VINFO_INT_NITERS): New macro.
7640 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
7641 (do_peeling_for_alignment):
7642 (unaligned_drs): New members of _loop_vec_info.
7643 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
7645 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
7647 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
7648 (struct tree_string): Remove "const" qualifier for "str".
7650 2004-10-14 Ira Rosen <irar@il.ibm.com>
7652 * tree-vectorizer.c (vect_analyze_data_refs): Call
7653 vect_get_base_and_bit_offset to get memory tag for array ref.
7654 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
7656 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
7658 * configure.ac: Use $LN_S for creating symlinks (not $LN).
7659 * configure: Regenerate.
7661 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7663 * doc/install.texi (*-*-solaris2*): Update with info about kernel
7664 patches to solve spurious testsuite failures.
7666 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
7668 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
7669 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
7670 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
7671 gcc_assert under ENABLE_CHECKING.
7672 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
7673 get_vectype_for_scalar_type).
7675 (vect_get_vec_def_for_operand): Remove redundant variables.
7676 (vect_transform_loop): Likewise.
7678 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
7680 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
7681 global for -mcaller-super-interworking.
7682 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
7683 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
7684 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
7685 not need a frame pointer.
7686 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
7687 the soft frame pointer offset.
7688 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
7689 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
7690 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
7691 the stack. Use frame_pointer_needed to choose between them.
7692 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
7693 (interwork_with_frame): New macro.
7694 (interwork): Add _interwork_{r7,r11}_call_via_rN().
7696 2004-10-14 Ben Elliston <bje@au.ibm.com>
7699 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
7700 up the filename looking for a previous directory separator.
7702 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
7704 * c-tree.h (enum c_typespec_kind, struct c_typespec,
7705 parser_xref_tag): New.
7706 (struct c_declspecs): Add tag_defined_p. Adjust definition of
7708 (declspecs_add_type): Adjust prototypes.
7709 * c-parse.in (%union): Add tstype.
7710 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
7711 typespec_reserved_attr, typespec_nonreserved_nonattr,
7712 structsp_attr, structsp_nonattr): Change to tstype. Update
7714 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
7715 (declspecs_add_type): Update to take struct c_typespec argument.
7716 Set tag_defined_p and typedef_p as appropriate.
7717 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
7718 Update to return struct c_typespec.
7719 (shadow_tag_warned): Don't let empty declarations with qualifiers
7720 or storage class specifiers redeclare a tag if a previous
7721 declaration is visible.
7723 2004-10-13 Richard Henderson <rth@redhat.com>
7726 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
7727 for DECL_INCOMING_RTL.
7729 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
7732 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
7733 trunc_int_for_mode for constants used in shortened mode.
7735 2004-10-13 Richard Henderson <rth@redhat.com>
7738 * c-common.c (handle_mode_attribute): Disallow mode changes that
7739 alter the CODE of the top-level type.
7741 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
7742 integer from internal limits macros.
7743 * config/i386/mm3dnow.h (__v2sf): Fix base type.
7745 2004-10-13 Richard Henderson <rth@redhat.com>
7748 * function.c (instantiate_decl): Recurse for CONCAT.
7750 2004-10-13 David Edelsohn <edelsohn@gnu.org>
7752 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
7755 (extzvdi_internal1): Add attribute "compare".
7756 (extzvdi_internal2): Same.
7758 2004-10-12 Tom Tromey <tromey@redhat.com>
7760 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
7762 2004-10-13 Dale Johannesen <dalej@apple.com>
7764 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
7766 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
7768 * toplev.c (compile_file): Call mudflap_finish_file from here ...
7769 * c-decl.c (c_write_global_declarations): ... instead of here ...
7770 * cp/decl.c (cp_finish_file): ... and here.
7771 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
7773 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
7775 * tree-ssa-dom.c (record_range): Free the element if we are not
7778 2004-10-13 Tom Tromey <tromey@redhat.com>
7781 * gcc.c (option_map): Added --extdirs and --encoding.
7783 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
7786 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
7787 sparc_can_output_mi_thunk.
7788 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
7789 handling of vcall offset.
7790 (sparc_can_output_mi_thunk): New predicate.
7791 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
7792 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
7793 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
7795 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
7797 * config/sparc/sparc.md (movdi): Remove redundant test.
7799 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
7801 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
7802 TDF_IPA from -fdump-tree-*-all.
7804 2004-10-13 Paul Brook <paul@codesourcery.com>
7806 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
7807 * config/arm/arm.c (thumb_find_work_register): Update comments.
7808 (arm_load_pic_register): Add argument for scratch register.
7809 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
7810 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
7812 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
7814 * tree-data-ref.c: Fix comment typos.
7816 2004-10-13 Jakub Jelinek <jakub@redhat.com>
7817 Zdenek Dvorak <dvorakz@suse.cz>
7819 PR tree-optimization/17724
7820 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
7822 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
7824 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
7825 (altivec_builtin_mask_for_store): Likewise.
7826 (altivec_init_builtins): Use lang_hooks.builtin_function to
7827 create the decls for builtin_altivec_mask_for_load/store.
7829 2004-10-13 Nick Clifton <nickc@redhat.com>
7831 * config/c4x/c4x.c: Remove inclusion of loop.h.
7833 2004-10-12 Ben Elliston <bje@au.ibm.com>
7835 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
7836 (ei_container): New; renamed.
7837 (ei_start, ei_last): New macros.
7838 (ei_start_1, ei_last_1): Renamed from ei_start.
7839 (ei_last_1, ei_end_p): Use ei_container() where applicable.
7840 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
7841 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
7843 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
7845 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
7846 * cfgloop.c (initialize_loops_parallel_p): New.
7847 (flow_loops_find): Initialize the parallel_p field to true for all
7849 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
7850 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
7851 the size of the data accessed in the loop.
7852 (struct nb_iter_bound): Moved...
7853 * cfgloop.h (struct nb_iter_bound): ... here.
7854 (estimated_nb_iterations, parallel_p): New fields in struct loop.
7855 (record_estimate): Declare extern here.
7856 * tree-chrec.c: Fix comments.
7857 (nb_vars_in_chrec): New function.
7858 * tree-chrec.h (nb_vars_in_chrec): Declared here.
7859 * tree-data-ref.c: Don't include lambda.h, that is already included
7861 (tree_fold_divides_p): Don't check for integer_onep.
7862 (tree_fold_bezout): Removed.
7863 (gcd): New static duplicated function.
7864 (int_divides_p, dump_subscript): New.
7865 (dump_data_dependence_relation): Use dump_subscript.
7866 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
7867 estimate_niter_from_size_of_data): New.
7868 (analyze_array_indexes, analyze_array): Call
7869 estimate_niter_from_size_of_data during the detection of array
7870 references. Pass in a pointer to the statement that contains the
7872 (all_chrecs_equal_p): New.
7873 (compute_distance_vector): Renamed compute_subscript_distance.
7874 Deal with multivariate conflict functions.
7875 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
7876 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
7877 (non_affine_dependence_relation): New.
7878 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
7879 analyze_siv_subscript, analyze_miv_subscript,
7880 analyze_overlapping_iterations, subscript_dependence_tester):
7881 Initialize and return last_conflicts function.
7882 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
7883 compute_overlap_steps_for_affine_1_2): New.
7884 (analyze_siv_subscript_affine_cst): Removed.
7885 (analyze_subscript_affine_affine): Disprove dependences based on the
7886 iteration domains. Solve the univariate dependence case as before,
7887 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
7888 Implement the multivariate case of 2 versus 1 variables.
7889 (build_classic_dist_vector, build_classic_dir_vector): Implement some
7891 (find_data_references_in_loop): Compute and initialize
7892 loop->estimated_nb_iterations and loop->parallel_p.
7893 (analyze_all_data_dependences): Modify the debug dump order.
7894 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
7895 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
7896 (SUB_LAST_CONFLICT, subscript->last_conflict,
7897 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
7898 DDR_AFFINE_P, DDR_SIZE_VECT): New.
7899 (find_data_references_in_loop, initialize_data_dependence_relation,
7900 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
7902 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
7904 * configure: Regenerate.
7906 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
7909 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
7910 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
7911 and constant folding of floating point MULT_EXPR/PLUS_EXPR
7914 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
7916 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
7917 (s390_gimplify_va_arg): Likewise.
7919 2004-10-12 Daniel Jacobowitz <dan@debian.org>
7921 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
7922 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
7923 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
7924 * regclass.c (record_address_regs): Remove ifdef. Use
7925 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7926 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
7928 (scan_rtx_address, replace_oldest_value_addr): Use
7929 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7930 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
7931 unnecessary definitions.
7932 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
7933 and MODE_BASE_REG_REG_CLASS.
7934 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
7935 (MODE_BASE_REG_REG_CLASS): Define.
7936 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
7937 (REG_MODE_OK_FOR_REG_BASE_P): Define.
7938 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
7939 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
7941 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
7943 * tree-ssa-alias.c (verify_name_tags): New function.
7944 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
7945 (verify_alias_info): Call verify_name_tags.
7947 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
7949 PR rtl-optimization/17931
7950 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
7953 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
7955 * arm.c (arm_print_operand): Use output_operand_lossage where possible
7956 rather than aborting.
7958 2004-10-12 Paul Brook <paul@coudesourcery.com>
7960 * config.gcc: Add armv6{k,z,zk}
7961 * config/arm/arm-cores.def: Add arm1176 and mpcore.
7962 * config/arm/tune.md: Regenerate.
7963 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
7965 (all_architectures): Add armv6k, armv6z, armv6zk.
7966 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
7967 * doc/invoke.texi: Document new arch and cpu values.
7969 2004-10-12 Paul Brook <paul@coodesourcery.com>
7971 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
7974 2004-10-12 Paul Brook <paul@codesourcery.com>
7976 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
7977 Handle negative constants.
7979 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
7982 * c-typeck.c (convert_arguments): Return error_mark_node if there
7983 are too few arguments.
7984 (build_function_call): Handle error_mark_node return from
7987 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
7989 * configure.ac (symbolic_link): Replace with $LN_S.
7990 (Assembler/Linker): Hard link from gas and binutils trees.
7991 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
7992 * configure: Regenerate.
7994 2004-10-12 Paul Brook <paul@codesourcery.com>
7996 * configure.ac: Don't look for host assembler when building a canadian
7998 * configure: Regenerate.
8000 2004-10-11 Roger Sayle <roger@eyesopen.com>
8003 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
8004 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
8005 line options for "-lang-asm" and if found allow any of the C-family
8007 (c_common_handle_option): Remove last use of permit_fortran_options.
8009 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8011 * config/s390/s390.c (print_operand): Support 'S' format flag.
8012 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
8013 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
8014 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
8015 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
8016 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
8017 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
8018 ("*movstricthi"): Likewise.
8019 ("*load_multiple_di", "*load_multiple_si"): Likewise.
8020 ("*store_multiple_di", "*store_multiple_si"): Likewise.
8021 ("*sethiqisi", "*sethihisi"): Likewise.
8022 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
8023 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
8024 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
8025 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
8026 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
8028 ("*tmhi_full"): Fix incorrect op_type attribute.
8030 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
8031 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
8032 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
8033 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
8035 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
8038 * function.c (temp_slots_at_level): Fix typo which creates too
8039 many temp stack slots levels.
8041 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8043 * config/s390/s390.c (s390_trampoline_template): Generate shorter
8045 (s390_trampoline_instantiate): Adapt.
8046 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
8048 2004-10-11 Roger Sayle <roger@eyesopen.com>
8051 * stmt.c (add_case_node): Add additional type argument. Declare
8052 as static to match prototype. Convert the upper and lower bounds
8053 to the specified index type. Optimize away case ranges/values
8054 that are outside the index type's bounds. Truncate case ranges
8055 that span the index type's bounds.
8056 (expand_case): Avoid unnessary computation and memory allocation
8057 when index type is error_mark_node. Pass index_type as required
8058 by change to add_case_node API. No need to convert case range
8059 bounds to index_type, this is now done by add_case_node.
8061 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8063 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
8064 * config/s390/s390.c (s390_offset_p): New function.
8065 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
8066 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
8067 transform Q->Q alternatives to *clc pattern.
8069 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
8070 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
8071 to transform Q->Q alternatives to *mvc pattern.
8072 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
8073 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
8074 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
8075 transform Q->Q alternatives to *nc pattern.
8076 ("*nc"): New insn. New peephole to merge adjacent NCs.
8077 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
8078 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
8079 transform Q->Q alternatives to *oc pattern.
8080 ("*oc"): New insn. New peephole to merge adjacent OCs.
8081 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
8082 transform Q->Q alternatives to *xc pattern.
8083 ("*xc"): New insn. New peephole to merge adjacent XCs.
8084 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
8086 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
8088 * gimplify.c (gimple_push_condition): Make sure that we don't
8089 have any saved condition cleanup if we were at the top level.
8091 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
8093 * config/frv/frv.md (*adddi3_internal): Change name to...
8094 (adddi3): ...replacing the exisiting define_expand. Combine
8095 alternatives. Fix the range of the constant constraints ('J' instead
8096 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
8097 to extract the lower and upper halves of the DImode operands.
8098 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
8099 (adddi3_lower): Fix the range of the constant constraints and
8100 remove the bogus operands[2] check.
8101 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
8102 operand 2. Use addxi to handle constant operands.
8103 (subdi3_lower, subdi3_upper): Don't handle constant operands.
8105 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
8107 * gengtype-lex.l: Add commented } & ) characters to unconfuse
8108 editor's paren matching. Allow #define inside a struct.
8110 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
8113 part of PR c++/17657
8114 * fold-const.c (fold_build_cleanup_point_expr): New function.
8115 * tree.h (fold_build_cleanup_point_expr): Prototype.
8117 2004-10-10 Eric Christopher <echristo@redhat.com>
8119 * dwarf2out.c: Move attribute to subprogram declaration
8120 instead of subroutine type.
8122 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8124 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
8125 hoist_insn_after, and hoist_insn_to_edge.
8126 * rtl.h: Remove the prototypes for reg_referenced_between_p,
8127 no_jumps_between_p, and insn_dependent_p.
8128 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
8129 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
8130 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
8131 hoist_insn_to_edge): Remove.
8133 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8136 * c-decl.c (grokparms): Don't warn for parameters of incomplete
8137 type in declarations that are not definitions except for the case
8138 of parameters of void type.
8140 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8142 * tree-cfg.c: Fix comment typos.
8144 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8147 * builtins.c (expand_builtin_va_start): Check for too few
8148 arguments to va_start.
8150 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8153 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
8154 fields a pedwarn. Pedwarn here for unnamed structs/unions if
8156 * c-parse.in (component_decl): Don't pedwarn here for unnamed
8159 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
8161 PR tree-optimization/17906
8162 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
8163 copy non-gimple reg arguments.
8165 2004-10-09 Roger Sayle <roger@eyesopen.com>
8167 PR rtl-optimization/17853
8168 * simplify-rtx.c (simplify_relational_operation): Correct comment.
8169 Reorganize handling of comparison operations with floating point
8170 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
8171 Likewise, introduce support for comparison operations with vector
8172 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
8174 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
8175 * doc/tm.texi: Likewise.
8177 2004-10-09 Steven Bosscher <stevenb@suse.de>
8179 * regs.h (struct reg_info_def): Remove the last_node_uid and
8180 changes_mode fields.
8181 (REGNO_LAST_NOTE_UID): Don't define.
8182 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
8183 * regmove.c (copy_src_to_dest): Likewise.
8185 2004-10-09 Roger Sayle <roger@eyesopen.com>
8188 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
8189 relational comparison operator op needs to be swapped/reversed when
8190 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
8192 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8195 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
8196 instead of bsi_start.
8197 (value_replacement): Likewise.
8198 (abs_replacement): Likewise
8200 2004-10-09 Steven Bosscher <stevenb@suse.de>
8202 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
8203 (expand_gimple_cond_expr, expand_gimple_tailcall,
8204 expand_gimple_basic_block): Use it to dump RTL for each stmt.
8205 (tree_expand_cfg): Announce full RTL function dump.
8206 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
8207 not the graph version.
8208 * tree-pretty-print.c (dump_generic_node): Allow empty statements
8209 in the arms of a COND_EXPR for lowered nodes.
8211 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
8213 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
8214 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
8215 strtoufix16, strtoufix32, strtoufix64): Declare.
8217 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8219 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
8220 for an out-of-range floating point constant.
8221 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
8222 warning if the target format does not support infinities.
8224 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8226 * emit-rtl.c (last_label_num, base_label_num): Remove.
8227 (max_label_num): Always return label_num.
8228 (set_new_last_label_num, restore_emit_status): Remove.
8229 (init_emit): Don't initialize last_label_num.
8230 * function.c (pop_function_context_from): Don't call
8231 restore_emit_status.
8232 * function.h: Remove the prototype for restore_emit_status.
8233 * rtl.h: Remove the prototype for set_new_last_label_num.
8235 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8237 * stmt.c (expand_decl_init): Remove.
8238 * tree.h: Remove the corresponding prototype.
8240 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8242 * integrate.c (try_constants, subst_constants, mark_stores):
8244 * integrate.h: Remove the prototype for try_constants.
8246 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8248 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
8249 (convert_for_assignment): Handle ic_argpass_nonproto. Add
8250 comments about its relevance to errors.
8251 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
8253 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8256 * c-ppoutput.c (cb_ident): Don't quote string as it is already
8259 2004-10-08 Diego Novillo <dnovillo@redhat.com>
8261 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
8262 reference_node_pool.
8264 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8266 * tree-cfg.c: Fix a comment typo.
8268 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
8270 * config/s390/s390.c (s390_register_info): Don't save fprs for
8272 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
8274 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
8276 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
8277 (TARGET_DEFAULT): Use symbolic values.
8278 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
8279 (TARGET_DEFAULT): Use symbolic values.
8280 * config/s390/s390.c (s390_backchain_string): Initialize to
8281 TARGET_DEFAULT_BACKCHAIN.
8283 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8285 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
8286 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
8288 (expand_builtin_strcat): Accept a type parameter.
8289 (fold_builtin_mempcpy): Accept a type and endp parameter.
8291 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
8292 Accept an `exp' instead of an `arglist'.
8294 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
8296 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
8297 reverting my 2004-09-07 patch to use build_int_cst.
8299 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
8302 * config/sparc/sparc.c (input_operand): Remove redundant code
8303 for handling LO_SUM.
8304 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
8305 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
8306 Otherwise only accept it for TFmode if quad move insns are available.
8308 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8310 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
8311 common cases will be caught earlier than others.
8313 2004-10-08 Michael Matz <matz@suse.de>
8315 * loop-doloop.c (doloop_optimize): Extend count.
8317 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8319 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
8320 (prefetch): Convert to expander.
8322 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8324 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
8325 first argument of CALL.
8326 (tls_local_dynamic): Likewise.
8328 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8330 * c-typeck.c (enum impl_conv): New.
8331 (convert_for_assignment): Use it. Take tree for function called
8332 instead of its name. Handle ObjC selectors for diagnostics at
8333 start of function. Select diagnostic text within the function
8334 using full sentences for diagnsotics. Use %qE to name functions
8336 (convert_arguments, build_modify_expr,
8337 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
8338 callers to convert_for_assignment.
8339 (warn_for_assignment): Remove.
8341 2004-10-08 Nick Clifton <nickc@redhat.com>
8343 * config/sh/symbian.c (symbian_possibly_export_base_class):
8344 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
8345 TYPE_CONTAINS_VPTR_P.
8347 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8349 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
8350 fixed registers form all_used_regs. Update call_really_used_regs.
8351 (CALL_REALLY_USED_REGISTERS): Define.
8352 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
8353 with call_really_used_regs.
8355 2004-10-08 Alan Modra <amodra@bigpond.net.au>
8357 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
8358 for -profile as well as -p and -pg.
8360 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
8362 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
8364 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8366 * tree-cfg.c (tree_block_forwards_to): Remove.
8367 * tree-flow.h: Remove the corresponding prototype.
8369 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8371 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
8372 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
8374 2004-10-07 Geoffrey Keating <geoffk@apple.com>
8377 * config/rs6000/rs6000.c (rs6000_generate_compare): When
8378 flag_trapping_math is in effect, don't generate subtract
8381 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
8383 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
8384 * config/s390/s390.c (s390_narrow_logical_operator): New function.
8385 (s390_extra_constraint_str): Add 'A' constraints.
8386 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
8387 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
8388 (CONSTRAINT_LEN): Likewise.
8389 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
8390 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
8391 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
8392 ("*iordi3"): Add OI alternative and splitter.
8393 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
8394 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
8395 ("*xordi3"): Add XI alternative and splitter.
8396 ("*xorsi3", "*xorhi3"): Likewise.
8398 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8400 * config/mips/mips.c (mips_function_rodata_section): New function.
8401 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
8403 2004-10-07 Devang Patel <dpatel@apple.com>
8405 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
8406 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
8407 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
8408 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
8409 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
8410 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
8411 UNSPEC_VCONDU_V16QI): New constant defines.
8412 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
8413 vconduv16qi): New patterns.
8414 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
8415 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
8416 (get_vec_cmp_insn): Same.
8417 (get_vsel_insn): Same.
8418 (rs6000_emit_vector_compare): Same.
8419 (rs6000_emit_vector_select): Same.
8420 (INSN_NOT_AVAILABLE): New.
8422 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8424 PR tree-optimization/17749
8425 * tree-tailcall.c (find_tail_calls): Check that parameter is
8428 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8430 * config/ia64/ia64.c: Fix a comment typo.
8432 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8434 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
8436 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8439 * tree-inline.c (expand_call_inline): Do not warn for functions
8440 marked with attribute noinline.
8442 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8445 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
8446 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
8448 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
8449 of 0 as 4th argument to pass_by_reference.
8450 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
8452 2004-10-06 Eric Christopher <echristo@redhat.com>
8454 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
8457 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8460 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
8462 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8464 PR rtl-optimization/17791
8465 * loop-doloop.c (doloop_modify): Take number of iterations as
8467 (doloop_optimize): Extend or shorten the number of iterations
8468 when changing mode of counter register.
8469 * loop-iv.c (lowpart_subreg): Export.
8470 * rtl.h (lowpart_subreg): Declare.
8472 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8474 PR tree-optimization/17806
8475 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
8476 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
8477 flags moved to split_edge.
8479 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8482 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
8483 before tentatively building the conditional move sequence.
8485 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8488 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
8490 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
8491 function_arg_padding.
8493 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8496 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
8498 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8500 * hooks.c (hook_int_void_1, hook_void_int): Remove.
8501 * hooks.h: Remove the corresponding prototypes.
8503 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8506 * tree-nested.c (walk_stmt_info): Add changed field.
8507 (convert_nonlocal_reference): Set changed to when we
8508 change a decl to unnested decl.
8509 <case ADDR_EXPR>: Instead of checking if the immediate part
8510 of the ADDR_EXPR changed, check the field changed.
8511 Use recompute_tree_invarant_for_addr_expr instead of unsetting
8513 (convert_local_reference): Set changed to when we
8514 change a decl to unnested decl.
8515 <case ADDR_EXPR>: Instead of checking if the immediate part
8516 of the ADDR_EXPR changed, check the field changed.
8517 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
8519 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8521 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8522 * dwarf2out.c (dwarf2out_init): Remove references to
8523 DWARF2_GENERATE_TEXT_SECTION_LABEL.
8524 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
8525 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8527 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
8529 * c-typeck.c (convert_arguments): Take expression for called
8530 function rather than its name. Handle ObjC selectors directly
8531 rather than relying on warn_for_assignment to do so. Call warning
8532 directly rather than warn_for_assignment. Use %qE in diagnostics.
8533 Say "argument" rather than "arg" in diagnostics.
8534 (build_function_call): Update call to convert_arguments.
8536 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8539 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
8540 ENUMs specially instead of just saying we do.
8542 2004-10-06 Eric Christopher <echristo@redhat.com>
8544 * dwarf2.h: Sync with include/elf/dwarf2.h
8546 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8548 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
8551 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8553 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
8554 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
8556 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8558 * lambda-code.c (compute_nest_using_fourier_motzkin): New
8560 (lambda_compute_auxillary_space): Split from here.
8562 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8564 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
8565 * tree-flow.h: Add prototype.
8566 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
8567 expr_invariant_in_loop.
8569 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8571 * tree-cfg.c (thread_jumps): Remove a duplicate check for
8574 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
8576 * config/s390/s390-protos.h (s_imm_operand): Remove.
8577 (s390_pool_operand): Add prototype.
8578 * config/s390/s390.c (general_s_operand): Remove.
8579 (s_imm_operand): Remove.
8580 (s_operand): Merge contents of general_s_operand.
8581 (s390_pool_operand): New function.
8582 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
8583 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
8584 ("*cmpdi_ccu"): Merge Q->Q alternative.
8585 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
8586 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
8588 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
8589 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
8590 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
8592 2004-10-06 Steve Ellcey <sje@cup.hp.com>
8594 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
8595 call ia64_function_arg_boundary.
8596 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
8597 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
8598 (ia64_function_arg_advance): Do not put 128 bit floats into
8601 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8603 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
8604 Accept an expression instead of an arglist.
8605 (expand_builtin_stpcpy): Accept an expression instead of an
8608 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
8611 * doc/install.texi (*-*-solaris2*): Mention potential problem
8612 with Sun assembler + GNU linker and C++ programs.
8613 Document status of binutils 2.15 release.
8615 2004-10-06 Jan Hubicka <jh@suse.cz>
8617 * cse.c (cse_main): Kill push/pop context.
8619 2004-10-05 Zack Weinberg <zack@codesourcery.com>
8621 * pretty-print.c: Include tree.h.
8622 (pp_base_prepare_to_format): New function, logic from
8623 text_specifies_location.
8624 (pp_base_format_text): Use gcc_assert.
8625 * pretty-print.h (pp_prepare_to_format): New macro.
8626 (pp_base_prepare_to_format): Prototype.
8627 * diagnostic.c (text_specifies_location): Delete.
8628 (bug_report_request): Delete.
8629 (diagnostic_set_info): Don't call text_specifies_location.
8630 (diagnostic_action_after_output): Put text from
8631 bug_report_request inline here. Use gcc_unreachable.
8632 (diagnostic_report_current_function): Fix comment.
8633 (diagnostic_report_diagnostic): Clarify logic for error recursion.
8634 Call pp_prepare_to_format before diagnostic_starter.
8635 (trim_filename): Use IS_DIR_SEPARATOR.
8636 (fatal_error, internal_error): Use gcc_unreachable.
8637 (error_recursion): Call diagnostic_action_after_output to
8638 issue the bug_report_request message and exit.
8639 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
8641 * c-parse.in: Add list of diagnostic messages to insulate
8642 translation template from version of yacc/bison used to
8643 compile the grammar.
8645 2004-10-06 Alan Modra <amodra@bigpond.net.au>
8648 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
8650 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8652 * basic-block.h: Remove the prototype for
8653 flow_preorder_transversal_compute.
8654 * cfganal.c (dfst_node): Remove.
8655 (flow_preorder_transversal_compute): Likewise.
8656 * rtl.h: Remove the prototype for get_jump_table_offset.
8657 * rtlanal.c (get_jump_table_offset): Remove.
8659 2004-10-05 Richard Henderson <rth@redhat.com>
8662 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
8664 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
8667 * Makefile.in: Stage the build directory too.
8669 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
8671 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
8673 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
8674 (frv_emit_move): Same.
8676 * config/frv/frv.c (frv_emit_move): New.
8677 (frv_legitimize_address): New.
8679 * config/frv/frv.md ("movsi"): Call frv_emit_move.
8686 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
8688 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
8691 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
8693 * c-decl.c (pushdecl): When an extern declaration at block scope
8694 refers to a visible entity with internal linkage, use the old DECL
8695 rather than the new one.
8697 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8699 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
8702 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8704 * tree-cfg.c (thread_jumps): Remove a duplicate check for
8707 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8709 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
8710 of FOR_BB_BETWEEN. Remove a useless check for unreachable
8713 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8715 * tree-cfg.c (cleanup_tree_cfg): Don't call
8716 delete_unreachable_blosk() after thread_jumps().
8717 (thread_jumps): Always remove basic blocks as they become
8720 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8722 * tree-cfg.c (cleanup_tree_cfg): Remove variable
8723 something_changed. Simplify the while loop.
8725 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8727 * builtins.c (expand_builtin_memmove): Delete duplicate code
8728 and accept a tree type for the result.
8729 (expand_builtin_bcopy): Accept a tree type for the result.
8730 (fold_builtin_memmove): Accept an arglist and tree type for
8733 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
8735 * config/s390/s390.c (s390_dump_pool): Remove return value.
8736 Use gen_pool_align, gen_pool_section_start/end instead of
8737 gen_pool_start/end_31/64.
8738 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
8739 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
8740 ("pool_start_31", "pool_end_31"): Remove.
8741 ("pool_start_64", "pool_end_64"): Likewise.
8742 ("pool_align", "pool_section_start", "pool_section_end": New insns.
8744 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
8745 (TARGET_CANNOT_COPY_INSN_P): Define.
8746 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
8747 (struct constant_pool): New member 'execute'.
8748 (s390_add_execute, s390_find_execute): New functions.
8749 (s390_execute_label, s390_execute_target): Likewise.
8750 (s390_dump_pool): Output in-pool execute target templates.
8751 (s390_dump_execute): New function.
8752 (s390_alloc_pool, s390_free_pool): Handle execute templates.
8753 (s390_mainpool_start, s390_mainpool_finish): Likewise.
8754 (s390_chunkify_start, s390_chunkify_finish): Likewise.
8755 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
8756 ("*execute"): New insn pattern.
8757 ("movmem_short", "*movmem_short"): Use splitters to generate
8758 explicit execute pattern, remove embedded execute.
8759 ("clrmem_short", "*clrmem_short"): Likewise.
8760 ("cmpmem_short", "*cmpmem_short"): Likewise.
8762 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
8764 * tree-ssa.c (verify_ssa): Verify phi arguments only
8765 contain renamed names.
8767 2004-10-05 Alan Modra <amodra@bigpond.net.au>
8769 * config/rs6000/linux.h: Formatting, whitespace.
8770 * config/rs6000/linux64.h: Likewise.
8771 * config/rs6000/rs6000-protos.h: Likewise.
8772 * config/rs6000/rs6000.c: Likewise.
8773 (easy_vector_splat_const): Add fall thru comments.
8774 (output_vec_const_move): Likewise.
8776 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
8778 * Makefile.in: Update -Wno-error exceptions for move to build dir.
8780 2004-10-05 Chao-Ying Fu <fu@mips.com>
8781 Richard Sandiford <rsandifo@redhat.com>
8783 * doc/invoke.texi (-mpaired-single): Link to the new description of the
8784 built-in functions. Document dependencies.
8785 (-mips3d): Add link here too.
8786 * doc/extend.texi (MIPS Paired-Single Support): New section.
8788 2004-10-04 Chao-ying Fu <fu@mips.com>
8790 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
8792 2004-10-04 Diego Novillo <dnovillo@redhat.com>
8794 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
8795 Initialize OPT_STATS to 0.
8797 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
8799 * tree-data-ref.c: Fix comment typos.
8801 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
8803 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
8804 the predicate cannot be computed, don't initialize the result to
8807 2004-10-01 Eric Christopher <echristo@redhat.com>
8809 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
8810 locally defined enum.
8811 * dwarf2out.c (add_calling_convention_attribute): Don't
8814 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
8816 PR c/17178, PR c/17820
8817 * c-decl.c (pop_scope): Do not warn about unused static
8818 variables as they warned in the middle-end.
8820 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8822 * builtins.c (expand_builtin_memcpy): Delete duplicate code
8823 and make the first parameter the expression not the arglist.
8825 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
8827 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
8828 as valid modes to expand address expressions.
8830 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
8832 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
8833 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
8834 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
8835 code formatting conventions.
8837 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
8839 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
8841 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
8843 PR tree-optimization/16632
8844 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
8845 fold (A & C) == D into 0, fold ~C. Similarly, for the case
8846 where | is used instead of &.
8848 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
8850 * ginclude/stddef.h: Fix a comment typo.
8852 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
8855 * config.gcc (i?86-*-solaris2*): Restore correct logic
8856 for --enable-threads option.
8857 (sparc64-*-solaris2*): Likewise.
8858 (sparc-*-solaris2*): Likewise.
8860 2004-10-03 Alan Modra <amodra@bigpond.net.au>
8862 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
8863 (OS_MISSING_POWERPC64): Move, and comment.
8864 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
8865 (OS_MISSING_POWERPC64): Move, and comment.
8867 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
8869 * arm.c (output_call_mem): Add missing \t.
8871 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8873 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
8874 expand_builtin_strncmp): Delete duplicate code.
8876 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
8878 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
8879 take check-base and -limit arguments.
8880 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
8881 check ranges for ARRAY_REF and COMPONENT_REF.
8882 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
8885 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
8887 * c-objc-common.c (c_tree_printer): Correct description of %E.
8888 Don't fall through after printing an expression.
8890 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
8892 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
8894 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
8896 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
8897 delete_unrechable_blocks() only when necessary.
8899 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
8901 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
8902 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
8903 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
8904 __gthread_recursive_mutex_unlock): New functions.
8906 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
8908 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
8909 * config/s390/tpf-eh.c: Remove file.
8910 * config/s390/tpf-unwind.h: New file.
8911 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
8912 (MD_UNWIND_SUPPORT): Define.
8914 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
8916 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
8918 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
8920 * config/s390/s390-protos.h (s390_comparison): Add prototype.
8921 * config/s390/s390.c (s390_comparison): New function.
8922 (s390_branch_condition_mask): Return -1 for invalid comparisons.
8923 (s390_branch_condition_mnemonic): Assert valid comparison.
8924 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
8925 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
8926 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
8927 s390_comparison instead of comparison_operator.
8929 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
8930 ("cmpmemdi"): Remove.
8931 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
8932 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
8933 ("cmpint_si"): Rename to ...
8934 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
8935 ("cmpint_di", "*cmpint_di"): Likewise.
8936 * config/s390/s390.c (s390_canonicalize_comparison): Remove
8937 redundant UNSPEC_CMPINT conversions.
8938 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
8940 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
8942 * collect2.c (COLLECT_PARSE_FLAG): Remove.
8943 (main): Remove a reference to COLLECT_PARSE_FLAG
8944 * system.h: Poison COLLECT_PARSE_FLAG.
8945 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
8947 2004-10-01 Paul Brook <paul@codesourcery.com>
8949 * config/arm/crti.asm: Give _init and _fini function type.
8951 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
8953 * common.opt (ftree-loop-ivcanon): Enable by default.
8954 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8955 Enable complete loop unrolling.
8956 (canonicalize_induction_variables, tree_unroll_loops_completely):
8959 2004-10-01 Paul Brook <paul@codesourcery.com>
8961 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
8962 not register number.
8963 (thumb_find_work_register): Search full register range.
8965 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
8968 * tree-cfg.c (group_case_labels): Get the label and not
8969 the case expr for the default case.
8970 When the label we looking at is the default, decrement the
8973 2004-10-01 Jan Hubicka <jh@suse.cz>
8975 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
8976 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8977 * toplev.h (tree_rest_of_compilation): Update prototype.
8978 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
8980 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
8982 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
8983 cleanup_control_flow() out of the while loop.
8985 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
8987 * tree-vectorizer.c (vectorizable_operation): Fail unless
8988 the mode for the vector type is indeed a vector mode.
8990 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
8992 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
8993 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
8995 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
8996 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
8997 follow_ssa_edge_in_rhs): Ditto.
8998 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
8999 (dump_iv): Dump base_object.
9000 (dump_use, dump_cand): Use dump_iv.
9001 (determine_base_object): New function.
9002 (alloc_iv): Initialize base_object field.
9003 (record_use): Clear the ssa_name field of iv.
9004 (get_computation_cost_at): Do not use difference of addresses of
9005 two different objects.
9006 (may_eliminate_iv): Do not require the loop to have just single exit.
9007 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
9008 (nonzero_p): New function.
9009 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
9010 tree_simplify_using_condition, simplify_using_initial_conditions,
9011 loop_niter_by_eval, find_loop_niter_by_eval,
9012 estimate_numbers_of_iterations_loop, compare_trees,
9013 upper_bound_in_type, lower_bound_in_type,
9014 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
9015 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
9016 instead of integer_(non)zerop.
9018 2004-10-01 Jakub Jelinek <jakub@redhat.com>
9021 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9023 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9024 and TI_VA_LIST_FPR_COUNTER_FIELD.
9025 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9026 * tree-pass.h (pass_stdarg): Add.
9027 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9028 * tree-stdarg.c: New file.
9029 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9030 (tree-stdarg.o): Add dependencies.
9031 * function.h (struct function): Add va_list_gpr_size and
9032 va_list_fpr_size fields.
9033 * function.c (allocate_struct_function): Initialize them.
9035 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9036 va_list_{g,f}pr_counter_field.
9037 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9038 area will not be used. Only save registers that tree-stdarg.c
9039 detected they need saving.
9040 (ix86_va_start): Don't set up fields that won't be used.
9042 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9043 va_list_{g,f}pr_counter_field.
9044 (setup_incoming_varargs): Don't do anything if reg_save
9045 area will not be used. Only save registers that tree-stdarg.c
9046 detected they need saving.
9047 (rs6000_va_start): Don't set up fields that won't be used.
9049 2004-09-30 Eric Christopher <echristo@redhat.com>
9051 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
9053 * dwarf2out.c (add_calling_convention_attribute): New function.
9054 (gen_subroutine_type_die): Use.
9055 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
9056 * target.h (gcc_target): Add dwarf_calling_convention.
9057 * hooks.c (hook_int_tree_0): New function.
9058 * hooks.h: Prototype.
9059 * config/sh/sh.c: Include dwarf2.h.
9060 (sh_dwarf_calling_convention): New function.
9061 (TARGET_DWARF_CALLING_CONVENTION): Use.
9062 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
9064 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9066 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
9067 expand_builtin_strrchr, expand_builtin_strpbrk,
9068 expand_builtin_strncat, expand_builtin_strspn,
9069 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
9072 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9074 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
9076 (s390_logical_operator_ok_p): Likewise.
9077 * config/s390/s390.c (s390_expand_logical_operator): New function.
9078 (s390_logical_operator_ok_p): Likewise.
9079 * config/s390/s390.md ("anddi3"): New expander.
9080 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
9081 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
9082 ("andsi3"): Use s390_expand_logical_operator.
9083 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
9084 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
9085 ("andhi3"): New expander.
9086 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
9087 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
9088 ("andqi3"): New expander.
9089 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
9090 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
9091 ("iordi3"): New expander.
9092 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
9093 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
9094 ("iorsi3"): Use s390_expand_logical_operator.
9095 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
9096 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
9097 ("iorhi3"): New expiorer.
9098 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
9099 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
9100 ("iorqi3"): New expiorer.
9101 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
9102 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
9103 ("xordi3"): New expander.
9104 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
9105 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
9106 ("xorsi3"): New expander.
9107 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
9108 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
9109 ("xorhi3"): New expander.
9110 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
9111 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
9112 ("xorqi3"): New expander.
9113 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
9114 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
9116 2004-09-30 Roger Sayle <roger@eyesopen.com>
9118 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
9119 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
9120 machine mode as the result.
9122 2004-09-30 Ben Elliston <bje@au.ibm.com>
9125 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
9126 FOR_EACH_EDGE macros.
9128 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9130 * c-tree.h (readonly_error): Remove.
9131 * c-typeck (enum lvalue_use): New.
9132 (lvalue_or_else, readonly_error): Use it. All callers changed.
9133 (readonly_error): Make static.
9135 2004-09-30 Jan Hubicka <jh@suse.cz>
9138 * cfgrtl.c (try_redirect_by_replacing_jump,
9139 force_nonfallthru_and_redirect, commit_one_edge_insertion,
9140 cfg_layout_merge_blocks): Do not attach any line number information
9141 to newly inserted instructions.
9142 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
9144 (emit_*insn_before, emit_insn*_after): New.
9145 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
9147 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
9148 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
9150 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9152 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
9153 (s390_return_address_offset): Remove.
9154 (s390_can_eliminate): Add prototype.
9155 (s390_initial_elimination_offset): Add prototype.
9156 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
9157 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
9158 * config/s390/s390.c (s390_arg_frame_offset): Remove.
9159 (s390_return_address_offset): Remove.
9160 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
9161 (struct machine_function): New member split_branches_pending_p.
9162 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
9163 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
9164 (s390_optimize_prologue): Remove base_used argument. Call
9165 s390_update_frame_layout instead of s390_register_info. Handle
9166 prologue/epilogue insns that touch only RETURN_REGNUM.
9167 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
9168 (s390_register_info): Remove base_used and return_addr_used
9169 arguments, compute special register usage inline. Return live
9170 register data to caller.
9171 (s390_frame_info): Remove arguments, do not call s390_register_info.
9172 (s390_init_frame_layout): New function.
9173 (s390_update_frame_layout): Likewise.
9174 (s390_emit_prologue): Call s390_update_frame_layout; some code
9175 move to there. Do not emit pool placeholder insn if unnecessary.
9177 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9179 * config/s390/s390.c (legitimate_reload_constant_p): Remove
9180 floating point constant workaround.
9181 (s390_secondary_input_reload_class): Handle PLUS reloads
9182 with too-large constant.
9183 (s390_expand_plus_operand): Likewise.
9184 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
9185 ("movsi"): Likewise. Also, remove workaround for non-general
9187 ("movdf"): Do not call force_const_mem.
9188 ("movsf"): Likewise. Merge expander with *movsf insn.
9189 ("*movsf"): Remove, merge with movsf expander.
9191 2004-09-30 Paul Brook <paul@codesourcery.com>
9193 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
9194 (ENDFILE_SPEC): Define.
9195 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
9197 2004-09-30 Richard Henderson <rth@redhat.com>
9199 * config/alpha/qrnnd.asm: Mark for noexecstack.
9201 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9203 * protoize.c, tree-cfg.c: Fix comment typos.
9205 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9208 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
9210 2004-09-30 Diego Novillo <dnovillo@redhat.com>
9212 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
9214 (add_pointed_to_expr): ... here.
9215 Call add_pointed_to_expr for variables with DECL_INITIAL set.
9216 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
9217 pointer variable, if set.
9219 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9221 * config/sh/sh.c: Follow spelling conventions.
9223 2004-09-29 Richard Henderson <rth@redhat.com>
9225 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
9226 * doc/tm.texi (DWARF_ZERO_REG): New.
9228 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
9229 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
9230 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
9232 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
9234 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
9235 with a PLUS as source operand.
9236 (expand_movstr): Likewise.
9237 (expand_builtin_stpcpy): Likewise.
9239 2004-09-29 Richard Henderson <rth@redhat.com>
9242 * tree-gimple.c (is_gimple_reg): Reject hard registers.
9243 (is_gimple_asm_val): New.
9244 * tree-gimple.h (is_gimple_asm_val): Declare.
9245 * gimplify.c (gimplify_asm_expr): Use it.
9246 * tree-pretty-print.c (print_declaration): Dump hard regs.
9247 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
9248 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9249 * tree-ssa-pre.c (is_undefined_value): Likewise.
9250 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9251 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
9252 * tree-ssa.c (warn_uninit): Likewise.
9253 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
9255 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
9257 * c-decl.c (merge_decls): Use comptype when comparing
9258 types to decide on DECL_SIZE save of olddecl.
9260 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
9262 * tree.h (INDIRECT_REF_P): New macro.
9263 * alias.c (get_alias_set): Use it
9264 (nonoverlapping_memrefs_p): Ditto.
9265 * emit-rtl.c (mem_expr_equal_p): Ditto.
9266 (set_mem_attributes_minus_bitpos): Ditto.
9267 (is_gimple_addressable): Ditto.
9268 (get_base_address): Ditto.
9269 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
9270 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
9271 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
9272 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
9273 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
9274 (add_address_candidates): Ditto.
9275 (rewrite_address_base): Ditto.
9277 2004-09-30 Ben Elliston <bje@au.ibm.com>
9279 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
9280 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
9281 (rewrite_ssa_into_ssa): Likewise.
9282 * tree-phinodes.c (create_phi_node): Access the number of
9283 predecessor edges using EDGE_COUNT() and not num_preds.
9285 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
9288 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
9290 2004-09-29 Eric Christopher <echristo@redhat.com>
9292 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
9294 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
9296 * config/cris/cris.md (moverside, movemside): With MEM, make sure
9297 the address is (plus reg mem).
9299 2004-09-29 David Edelsohn <edelsohn@gnu.org>
9301 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9303 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
9305 * tree.c (make_node_stat): Fix uninitialized warning. Replace
9306 cascaded if ... else if with a switch.
9308 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9310 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
9312 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9314 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9315 and TI_VA_LIST_FPR_COUNTER_FIELD.
9316 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9317 * tree-pass.h (pass_stdarg): Add.
9318 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9319 * tree-stdarg.c: New file.
9320 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9321 (tree-stdarg.o): Add dependencies.
9322 * function.h (struct function): Add va_list_gpr_size and
9323 va_list_fpr_size fields.
9324 * function.c (allocate_struct_function): Initialize them.
9326 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9327 va_list_{g,f}pr_counter_field.
9328 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9329 area will not be used. Only save registers that tree-stdarg.c
9330 detected they need saving.
9331 (ix86_va_start): Don't set up fields that won't be used.
9333 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9334 va_list_{g,f}pr_counter_field.
9335 (setup_incoming_varargs): Don't do anything if reg_save
9336 area will not be used. Only save registers that tree-stdarg.c
9337 detected they need saving.
9338 (rs6000_va_start): Don't set up fields that won't be used.
9340 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9342 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
9343 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
9344 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
9345 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
9346 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
9347 ATTR_NONNULL_1_4): New.
9349 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9351 PR tree-optimization/17697
9352 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
9355 2004-09-28 Per Bothner <per@bothner.com>
9357 * profile.c (branch_prob): Pass correct value to output_location,
9358 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
9360 2004-09-28 Richard Henderson <rth@redhat.com>
9363 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
9364 * tree-flow.h (may_propagate_copy_into_asm): Declare.
9365 * tree-ssa-ccp.c (replace_uses_in): Use it.
9366 * tree-ssa-dom.c (cprop_operand): Likewise.
9368 2004-09-28 Jeff Law <law@redhat.com>
9370 * tree-ssa-threadupdate.c (create_block_for_threading): Request
9371 that no outgoing edges be left in the duplicate block. Do no
9372 update information on outgoing edges or PHI nodes in target
9374 (remove_ctrl_stmt_and_useless_edges): Renamed from
9375 remove_last_stmt_and_useless_edges. Handle case where the
9376 block is empty or has no control statements. Do not update edge
9378 (thread_block): Create a template block rather than copying the
9379 original block every time. Create outgoing edges from the
9380 duplicate blocks and update PHIs at the target of the outgoing
9381 edges here. Fix edge flags for the original block if necessary.
9382 * cfghooks (duplicate_block): No longer assert that the original
9383 block has incoming edges.
9385 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
9387 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
9388 Reg Vars to enforce register allocation with general constraints.
9389 (Explicit Reg Vars): Clarify relation to asm statements.
9390 (Local Reg Vars): Similar.
9392 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9394 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
9395 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
9396 build_control_flow, new_edge): Remove.
9397 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
9398 (bitlst, bitlst_table_last, bitlst_table): Remove.
9399 (bblst): Store basic_block pointer instead of block index.
9400 (bblst_table): Likewise.
9401 (edgelst): Store edge pointer instead of edge index.
9402 (edgelst_table, edgelst_last): New variables.
9403 (extract_bitlst): Rename to ...
9404 (extract_edgelst): ... this. Return edge pointers, not indices.
9405 (split_edges): Update call.
9406 (rgn_edges): Store edge pointers instead of indices.
9407 (edge_to_bit): Remove.
9408 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
9409 (SET_EDGE_TO_BIT): New macro.
9410 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
9411 (find_rgns): Remove edge_list parameter. Traverse standard CFG
9412 data structures instead of haifa_edge et al. Use edge pointers
9413 instead of edge indices everywhere.
9414 (compute_dom_prob_ps): Use standard CFG data structures. Account
9416 (compute_trg_info): Likewise.
9417 (propagate_deps): Likewise.
9418 (debug_candidate): Account for bblst data structure change.
9419 (check_live_1, update_live_1, is_pfree): Likewise.
9420 (IS_REACHABLE): Use standard CFG data structures.
9421 (init_ready_list): Update bblst_table/edgelst_table allocation.
9422 (schedule_region): Update alloc/cleanup code to data structure
9423 changes. Use edge->aux to store per-region edge index.
9424 (init_regions): No longer call build_control_flow. Do not
9425 create edge list any more.
9427 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9429 * cse.c (cse_insn): Avoid creating direct non-local jumps.
9430 * combine.c (can_combine_p): Likewise.
9431 * local-alloc. (update_equiv_regs): Likewise.
9433 2004-09-28 Richard Henderson <rth@redhat.com>
9436 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
9437 Don't check VOIDmode here. Force PLUS operands to common type.
9438 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
9439 Pmode if given a non pointer type.
9441 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9444 * optabs.c (expand_binop): Force constants to the correct mode.
9446 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9448 * config/s390/s390.c (s390_adjust_cost): Remove.
9449 (TARGET_SCHED_ADJUST_COST): Do not redefine.
9450 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
9451 * config/s390/s390.md ("main_pool"): Use "larl" type
9452 attribute if TARGET_CPU_ZARCH.
9454 2004-09-28 Jakub Jelinek <jakub@redhat.com>
9456 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
9459 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9461 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
9464 2004-09-28 Steven Bosscher <stevenb@suse.de>
9466 * common.opt (flag_gcse_sm): Disable by default.
9467 (flag_gcse_las): Likewise.
9468 (flag_web): Likewise. Create from this file.
9469 * flags.h: Remove flag_web declaration.
9470 * toplev.c (flag_web): Likewise.
9471 (process_options): Never set flag_web.
9473 2004-09-28 Steven Bosscher <stevenb@suse.de>
9475 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
9476 * tree-ssa-propagate.c: Include vec.h.
9477 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
9479 (cfg_blocks_add): Assert the block is not already in the worklist.
9480 Update uses of interesting_ssa_edges and varying_ssa_edges.
9481 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
9482 ssa_propagate): Likewise.
9484 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
9487 * c-decl.c (start_decl): Check for initializing incomplete array
9489 (build_compound_literal): Check for TYPE being error_mark_node.
9490 * c-parse.in (primary): Check for VLA compound literals.
9492 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9494 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
9495 with --disable-checking.
9497 2004-09-28 Devang Patel <dpatel@apple.com>
9499 * tree-pretty-print.c (dump_generic_node): Print vector types.
9501 2004-09-28 Nick Clifton <nickc@redhat.com>
9503 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
9504 invocation of the function sh_init_cumulative_args.
9505 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
9506 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
9507 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
9508 * config/sh/sh.c (sh_init_cumulative_args): New function based
9509 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
9510 heuristic added to determine the setting of force_mem when a
9511 library function is being called.
9513 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9515 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
9516 Skip constant arguments.
9518 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9520 * tree-ssa-alias.c (create_name_tags): If PTR points to a
9521 volatile type, mark the tag volatile.
9522 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
9525 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
9527 * tree.def (vec_cond_expr): Fix. Change 'e'
9530 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9532 * basic-block.h: Fix a comment typo.
9534 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9536 * optabs.c, optabs.h: Fix comment typos.
9538 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
9540 * config/sparc/sparc.md (call_address_struct_value_sp32):
9541 Properly mask the immediate field of the 'unimp' instruction.
9542 (call_symbolic_struct_value_sp32): Likewise.
9544 2004-09-28 Ben Elliston <bje@au.ibm.com>
9545 Steven Bosscher <stevenb@suse.de>
9546 Andrew Pinski <pinskia@physics.uc.edu>
9548 Merge from edge-vector-branch:
9549 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
9550 (struct edge_def): Remove pred_next, succ_next members.
9551 (struct basic_block_def): Remove pred, succ members. Add preds
9552 and succs members of type VEC(edge).
9553 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
9554 (BRANCH_EDGE): Likewise.
9555 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
9556 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
9557 (edge_iterator): New.
9558 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
9559 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
9560 (FOR_EACH_EDGE): New.
9561 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
9563 (rotate_loop): Likewise.
9564 (find_traces_1_route): Likewise.
9565 (bb_to_key): Likewise.
9566 (connect_traces): Likewise.
9567 (copy_bb_p): Likewise.
9568 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
9569 (add_labels_and_missing_jumps): Likewise.
9570 (fix_up_fall_thru_edges): Likewise.
9571 (find_jump_block): Likewise.
9572 (fix_crossing_conditional_branches): Likewise.
9573 (fix_crossing_unconditional_branches): Likewise.
9574 (add_reg_crossing_jump_notes): Likewise.
9575 * bt-load.c (augment_live_range): Likewise.
9576 * cfg.c (clear_edges): Likewise.
9577 (unchecked_make_edge): Likewise.
9578 (cached_make_edge): Likewise.
9579 (make_single_succ_edge): Likewise.
9580 (remove_edge): Likewise.
9581 (redirect_edge_succ_nodup): Likewise.
9582 (check_bb_profile): Likewise.
9583 (dump_flow_info): Likewise.
9584 (alloc_aux_for_edges): Likewise.
9585 (clear_aux_for_edges): Likewise.
9586 (dump_cfg_bb_info): Likewise.
9587 * cfganal.c (forwarder_block_p): Likewise.
9588 (can_fallthru): Likewise.
9589 (could_fall_through): Likewise.
9590 (mark_dfs_back_edges): Likewise.
9591 (set_edge_can_fallthru_flag): Likewise.
9592 (find_unreachable_blocks): Likewise.
9593 (create_edge_list): Likewise.
9594 (verify_edge_list): Likewise.
9595 (add_noreturn_fake_exit_edges): Likewise.
9596 (connect_infinite_loops_to_exit): Likewise.
9597 (flow_reverse_top_sort_order_compute): Likewise.
9598 (flow_depth_first_order_compute): Likewise.
9599 (flow_preorder_transversal_compute): Likewise.
9600 (flow_dfs_compute_reverse_execute): Likewise.
9601 (dfs_enumerate_from): Likewise.
9602 (compute_dominance_frontiers_1): Likewise.
9603 * cfgbuild.c (make_edges): Likewise.
9604 (compute_outgoing_frequencies): Likewise.
9605 (find_many_sub_basic_blocks): Likewise.
9606 (find_sub_basic_blocks): Likewise.
9607 * cfgcleanup.c (try_simplify_condjump): Likewise.
9608 (thread_jump): Likewise.
9609 (try_forward_edges): Likewise.
9610 (merge_blocks_move): Likewise.
9611 (outgoing_edges_match): Likewise.
9612 (try_crossjump_to_edge): Likewise.
9613 (try_crossjump_bb): Likewise.
9614 (try_optimize_cfg): Likewise.
9615 (merge_seq_blocks): Likewise.
9616 * cfgexpand.c (expand_gimple_tailcall): Likewise.
9617 (expand_gimple_basic_block): Likewise.
9618 (construct_init_block): Likewise.
9619 (construct_exit_block): Likewise.
9620 * cfghooks.c (verify_flow_info): Likewise.
9621 (dump_bb): Likewise.
9622 (delete_basic_block): Likewise.
9623 (split_edge): Likewise.
9624 (merge_blocks): Likewise.
9625 (make_forwarder_block): Likewise.
9626 (tidy_fallthru_edges): Likewise.
9627 (can_duplicate_block_p): Likewise.
9628 (duplicate_block): Likewise.
9629 * cfglayout.c (fixup_reorder_chain): Likewise.
9630 (fixup_fallthru_exit_predecessor): Likewise.
9631 (can_copy_bbs_p): Likewise.
9632 (copy_bbs): Likewise.
9633 * cfgloop.c (flow_loops_cfg_dump): Likewise.
9634 (flow_loop_entry_edges_find): Likewise.
9635 (flow_loop_exit_edges_find): Likewise.
9636 (flow_loop_nodes_find): Likewise.
9637 (mark_single_exit_loops): Likewise.
9638 (flow_loop_pre_header_scan): Likewise.
9639 (flow_loop_pre_header_find): Likewise.
9640 (update_latch_info): Likewise.
9641 (canonicalize_loop_headers): Likewise.
9642 (flow_loops_find): Likewise.
9643 (get_loop_body_in_bfs_order): Likewise.
9644 (get_loop_exit_edges): Likewise.
9645 (num_loop_branches): Likewise.
9646 (verify_loop_structure): Likewise.
9647 (loop_latch_edge): Likewise.
9648 (loop_preheader_edge): Likewise.
9649 * cfgloopanal.c (mark_irreducible_loops): Likewise.
9650 (expected_loop_iterations): Likewise.
9651 * cfgloopmanip.c (remove_bbs): Likewise.
9652 (fix_bb_placement): Likewise.
9653 (fix_irreducible_loops): Likewise.
9654 (remove_path): Likewise.
9655 (scale_bbs_frequencies): Likewise.
9656 (loopify): Likewise.
9658 (fix_loop_placement): Likewise.
9659 (loop_delete_branch_edge): Likewise.
9660 (duplicate_loop_to_header_edge): Likewise.
9661 (mfb_keep_just): Likewise.
9662 (create_preheader): Likewise.
9663 (force_single_succ_latches): Likewise.
9664 (loop_split_edge_with): Likewise.
9665 (create_loop_notes): Likewise.
9666 * cfgrtl.c (rtl_split_block): Likewise.
9667 (rtl_merge_blocks): Likewise.
9668 (rtl_can_merge_blocks): Likewise.
9669 (try_redirect_by_replacing_jump): Likewise.
9670 (force_nonfallthru_and_redirect): Likewise.
9671 (rtl_tidy_fallthru_edge): Likewise.
9672 (commit_one_edge_insertion): Likewise.
9673 (commit_edge_insertions): Likewise.
9674 (commit_edge_insertions_watch_calls): Likewise.
9675 (rtl_verify_flow_info_1): Likewise.
9676 (rtl_verify_flow_info): Likewise.
9677 (purge_dead_edges): Likewise.
9678 (cfg_layout_redirect_edge_and_branch): Likewise.
9679 (cfg_layout_can_merge_blocks_p): Likewise.
9680 (rtl_flow_call_edges_add): Likewise.
9681 * cse.c (cse_cc_succs): Likewise.
9682 * df.c (hybrid_search): Likewise.
9683 * dominance.c (calc_dfs_tree_nonrec): Likewise.
9684 (calc_dfs_tree): Likewise.
9685 (calc_idoms): Likewise.
9686 (recount_dominator): Likewise.
9687 * domwalk.c (walk_dominator_tree): Likewise.
9688 * except.c (emit_to_new_bb_before): Likewise.
9689 (connect_post_landing_pads): Likewise.
9690 (sjlj_emit_function_enter): Likewise.
9691 (sjlj_emit_function_exit): Likewise.
9692 (finish_eh_generation): Likewise.
9693 * final.c (compute_alignments): Likewise.
9694 * flow.c (calculate_global_regs_live): Likewise.
9695 (initialize_uninitialized_subregs): Likewise.
9696 (init_propagate_block_info): Likewise.
9697 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9698 * gcse.c (find_implicit_sets): Likewise.
9699 (bypass_block): Likewise.
9700 (bypass_conditional_jumps): Likewise.
9701 (compute_pre_data): Likewise.
9702 (insert_insn_end_bb): Likewise.
9703 (insert_store): Likewise.
9704 (remove_reachable_equiv_notes): Likewise.
9705 * global.c (global_conflicts): Likewise.
9706 (calculate_reg_pav): Likewise.
9707 * graph.c (print_rtl_graph_with_bb): Likewise.
9708 * ifcvt.c (mark_loop_exit_edges): Likewise.
9709 (merge_if_block): Likewise.
9710 (find_if_header): Likewise.
9711 (block_jumps_and_fallthru_p): Likewise.
9712 (find_if_block): Likewise.
9713 (find_cond_trap): Likewise.
9714 (block_has_only_trap): Likewise.
9715 (find_if_case1): Likewise.
9716 (find_if_case_2): Likewise.
9717 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
9718 (perfect_nestify): Likewise.
9719 * lcm.c (compute_antinout_edge): Likewise.
9720 (compute_laterin): Likewise.
9721 (compute_available): Likewise.
9722 (compute_nearerout): Likewise.
9723 * loop-doloop.c (doloop_modify): Likewise.
9724 * loop-init.c (loop_optimizer_init): Likewise.
9725 * loop-invariant.c (find_exits): Likewise.
9726 * loop-iv.c (simplify_using_initial_values): Likewise.
9727 (check_simple_exit): Likewise.
9728 (find_simple_exit): Likewise.
9729 * loop-unroll.c (peel_loop_completely): Likewise.
9730 (unroll_loop_constant_iterations): Likewise.
9731 (unroll_loop_runtime_iterations): Likewise.
9732 * loop-unswitch.c (may_unswitch_on): Likewise.
9733 (unswitch_loop): Likewise.
9734 * modulo-sched.c (generate_prolog_epilog): Likewise.
9735 (sms_schedule): Likewise.
9736 * postreload-gcse.c (eliminate_partially_redundant_load):
9738 * predict.c (can_predict_insn_p): Likewise.
9739 (set_even_probabilities): Likewise.
9740 (combine_predictions_for_bb): Likewise.
9741 (predict_loops): Likewise.
9742 (estimate_probability): Likewise.
9743 (tree_predict_by_opcode): Likewise.
9744 (tree_estimate_probability): Likewise.
9745 (last_basic_block_p): Likewise.
9746 (propagate_freq): Likewise.
9747 (estimate_loops_at_level): Likewise.
9748 (estimate_bb_frequencies): Likewise.
9749 * profile.c (instrument_edges): Likewise.
9750 (get_exec_counts): Likewise.
9751 (compute_branch_probabilities): Likewise.
9752 (branch_prob): Likewise.
9753 * ra-build.c (live_in): Likewise.
9754 * ra-rewrite.c (rewrite_program2): Likewise.
9755 * ra.c (reg_alloc): Likewise.
9756 * reg-stack.c (reg_to_stack): Likewise.
9757 (convert_regs_entry): Likewise.
9758 (compensate_edge): Likewise.
9759 (convert_regs_1): Likewise,
9760 (convert_regs_2): Likewise.
9761 (convert_regs): Likewise.
9762 * regrename.c (copyprop_hardreg_forward): Likewise.
9763 * reload1.c (fixup_abnormal_edges): Likewise.
9764 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
9765 (sbitmap_insersection_of_preds): Likewise.
9766 (sbitmap_union_of_succs): Likewise.
9767 (sbitmap_union_of_preds): Likewise.
9768 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
9769 (fix_basic_block_boundaries): Likewise.
9770 (sched_ebbs): Likewise.
9771 * sched-rgn.c (build_control_flow): Likewise.
9772 (find_rgns): Likewise.
9773 * tracer.c (find_best_successor): Likewise.
9774 (find_best_predecessor): Likewise.
9775 (tail_duplicate): Likewise.
9776 * tree-cfg.c (make_edges): Likewise.
9777 (make_ctrl_stmt_edges): Likewise.
9778 (make_goto_expr_edges): Likewise.
9779 (tree_can_merge_blocks_p): Likewise.
9780 (tree_merge_blocks): Likewise.
9781 (cfg_remove_useless_stmts_bb): Likewise.
9782 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
9783 (tree_block_forwards_to): Likewise.
9784 (cleanup_control_expr_graph): Likewise.
9785 (find_taken_edge): Likewise.
9786 (dump_cfg_stats): Likewise.
9787 (tree_cfg2vcg): Likewise.
9788 (disband_implicit_edges): Likewise.
9789 (tree_find_edge_insert_loc): Likewise.
9790 (bsi_commit_edge_inserts): Likewise.
9791 (tree_split_edge): Likewise.
9792 (tree_verify_flow_info): Likewise.
9793 (tree_make_forwarder_block): Likewise.
9794 (tree_forwarder_block_p): Likewise.
9795 (thread_jumps): Likewise.
9796 (tree_try_redirect_by_replacing_jump): Likewise.
9797 (tree_split_block): Likewise.
9798 (add_phi_args_after_copy_bb): Likewise.
9799 (rewrite_to_new_ssa_names_bb): Likewise.
9800 (dump_function_to_file): Likewise.
9801 (print_pred_bbs): Likewise.
9802 (print_loop): Likewise.
9803 (tree_flow_call_edges_add): Likewise.
9804 (split_critical_edges): Likewise.
9805 (execute_warn_function_return): Likewise.
9806 (extract_true_false_edges_from_block): Likewise.
9807 * tree-if-conv.c (tree_if_conversion): Likewise.
9808 (if_convertable_bb_p): Likewise.
9809 (find_phi_replacement_condition): Likewise.
9810 (combine_blocks): Likewise.
9811 * tree-into-ssa.c (compute_global_livein): Likewise.
9812 (ssa_mark_phi_uses): Likewise.
9813 (ssa_rewrite_initialize_block): Likewise.
9814 (rewrite_add_phi_arguments): Likewise.
9815 (ssa_rewrite_phi_arguments): Likewise.
9816 (insert_phi_nodes_for): Likewise.
9817 (rewrite_into_ssa): Likewise.
9818 (rewrite_ssa_into_ssa): Likewise.
9819 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
9820 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
9821 (rewrite_trees): Likewise.
9822 * tree-pretty-print.c (dump_bb_header): Likewise.
9823 (dump_implicit_edges): Likewise.
9824 * tree-sra.c (insert_edge_copies): Likewise.
9825 (find_obviously_necessary_stmts): Likewise.
9826 (remove_data_stmt): Likewise.
9827 * tree-ssa-dom.c (thread_across_edge): Likewise.
9828 (dom_opt_finalize_block): Likewise.
9829 (single_incoming_edge_ignoring_loop_edges): Likewise.
9830 (record_equivalences_from_incoming_edges): Likewise.
9831 (cprop_into_successor_phis): Likewise.
9832 * tree-ssa-live.c (live_worklist): Likewise.
9833 (calculate_live_on_entry): Likewise.
9834 (calculate_live_on_exit): Likewise.
9835 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
9836 (copy_loop_headers): Likewise.
9837 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
9838 (fill_always_executed_in): Likewise.
9839 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
9840 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
9841 (compute_phi_arg_on_exit): Likewise.
9842 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
9843 (get_loops_exit): Likewise.
9844 (split_loop_exit_edge): Likewise.
9845 (ip_normal_pos): Likewise.
9846 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
9848 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
9849 (replace_phi_with_stmt): Likewise.
9850 (value_replacement): Likewise.
9851 * tree-ssa-pre.c (compute_antic_aux): Likewise.
9852 (insert_aux): Likewise.
9853 (init_pre): Likewise.
9854 * tree-ssa-propagate.c (simulate_stmt): Likewise.
9855 (simulate_block): Likewise.
9856 (ssa_prop_init): Likewise.
9857 * tree-ssa-threadupdate.c (thread_block): Likewise.
9858 (create_block_for_threading): Likewise.
9859 (remove_last_stmt_and_useless_edges): Likewise.
9860 * tree-ssa.c (verify_phi_args): Likewise.
9861 (verify_ssa): Likewise.
9862 * tree_tailcall.c (independent_of_stmt_p): Likewise.
9863 (find_tail_calls): Likewise.
9864 (eliminate_tail_call): Likewise.
9865 (tree_optimize_tail_calls_1): Likewise.
9866 * tree-vectorizer.c (vect_transform_loop): Likewise.
9867 * var-tracking.c (prologue_stack_adjust): Likewise.
9868 (vt_stack_adjustments): Likewise.
9869 (vt_find_locations): Likewise.
9870 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9871 * config/i386/i386.c (ix86_pad_returns): Likewise.
9872 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9873 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9875 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
9878 * config/sparc/sparc.c (struct machine_function): New field
9879 'leaf_function_p' and 'prologue_data_valid_p'.
9880 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
9881 to conveniently access the above fields.
9882 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
9883 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
9884 of the generic flavor 'current_function_uses_only_leaf_regs'.
9885 (eligible_for_sibcall_delay): Likewise.
9886 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
9887 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
9888 (sparc_asm_function_prologue): Add sanity check for the assumption
9889 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
9890 (sparc_can_use_return_insn_p): New function.
9891 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
9892 (output_restore): Likewise.
9893 (output_sibcall): Likewise.
9894 (sparc_output_mi_thunk): Likewise.
9895 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
9896 * config/sparc/sparc.md (return): New expander.
9898 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
9900 2004-09-27 Mark Mitchell <mark@codesourcery.com>
9903 * stor-layout.c (layout_decl): Use fold_convert, not convert.
9904 (bit_from_pos): Likewise.
9905 (byte_from_pos): Likewise.
9906 (pos_from_bit): Likewise.
9907 (normalize_offset): Likewise.
9908 (place_field): Likewise.
9909 (finalize_type_size): Likewise.
9910 (layout_type): Likewise.
9911 * tree.c (build_index_type): Likewise.
9913 2004-09-27 Devang Patel <dpatel@apple.com>
9915 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
9916 * genopinit.c (optabs): New entry for vcond_gen_code and
9918 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
9919 (get_rtx_code): New function.
9920 (vector_compare_rtx): New function.
9921 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
9922 (expand_vec_cond_expr_p): New function.
9923 (expand_vec_cond_expr): New function.
9924 (get_vcond_icode): New function.
9925 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
9926 (vcond_gen_code, vcondu_gen_code): Same.
9928 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
9930 * Makefile.in (STAGESTUFF): Split into ...
9931 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
9932 (mostlyclean): Update.
9933 (stage1-start, stage2-start, stage3-start, stage4-start,
9934 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
9935 Move the STAGEMOVESTUFF.
9937 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
9939 * system.h (getpagesize): Return 'int' instead of 'long'.
9941 2004-09-27 Michael Matz <matz@suse.de>
9945 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
9946 bmp_iter_and_init): Shift by bit_in_word.
9948 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
9950 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
9951 * configure.ac: Don't sinclude it here.
9952 * configure: Regenerate.
9954 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
9956 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
9959 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
9962 * c-typeck.c (build_component_ref): Name type involved in
9963 diagnostic for structure or union without a member of the given
9966 2004-09-27 DJ Delorie <dj@redhat.com>
9968 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
9969 .comm alignment is bytes, not bits.
9971 2004-09-27 Devang Patel <dpatel@apple.com>
9973 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9974 (print_call_name): Do not print VEC_COND_EXPR.
9976 2004-09-27 Devang Patel <dpatel@apple.com>
9978 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9980 2004-09-27 Jan Hubicka <jh@suse.cz>
9982 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
9984 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
9986 * bitmap.h: Fix a comment typo.
9988 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
9990 * libgcc2.c (getpagesize): Change type of return value to int.
9992 2004-09-26 Matt Austern <austern@apple.com>
9994 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
9997 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9999 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
10000 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
10001 (bitmap_iterator): New type.
10002 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
10003 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
10004 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
10005 bmp_iter_and_init, bmp_iter_and_next): New functions.
10006 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
10007 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
10008 use iterator-style EXECUTE_IF_IN_BITMAP macros.
10009 * bitmap.c (bitmap_print): Ditto.
10010 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
10011 btr_def_live_range): Ditto.
10012 * cfganal.c (compute_dominance_frontiers_1) Ditto.
10013 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
10015 * ddg.c (build_inter_loop_deps): Ditto.
10016 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
10018 * except.c (remove_eh_handler): Ditto.
10019 * flow.c (reg_set_to_hard_reg_set): Ditto.
10020 * gcse.c (clear_modify_mem_tables): Ditto.
10021 * global.c (build_insn_chain): Ditto.
10022 * ifcvt.c (dead_or_predicable): Ditto.
10023 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
10025 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
10026 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
10027 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
10028 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
10029 tree_purge_all_dead_eh_edges): Ditto.
10030 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
10031 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
10032 rewrite_ssa_into_ssa): Ditto.
10033 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
10034 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
10036 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
10037 compute_flow_sensitive_aliasing, maybe_create_global_var,
10038 dump_points_to_info_for): Ditto.
10039 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
10040 * tree-ssa-dse.c (dse_finalize_block): Ditto.
10041 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
10042 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
10044 * tree-ssa-loop-ivopts.c (find_induction_variables,
10045 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
10046 determine_use_iv_costs, determine_set_costs, find_best_candidate,
10047 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
10049 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
10050 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
10051 add_call_read_ops): Ditto.
10052 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
10054 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10056 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
10057 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
10059 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10061 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
10062 reflect size of memory regions being compared.
10064 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10066 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
10067 expressions. Always clear MEM_SIZE and alias set.
10069 2004-09-26 Roger Sayle <roger@eyesopen.com>
10070 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10072 PR middle-end/17112
10073 * stor-layout.c (compute_record_mode): For records with a single
10074 field, only use the field's mode if its size matches what we'd
10075 have choosen for the record ourselves. This forces the use of
10076 BLKmode for packed records that don't completely fill a mode.
10078 2004-09-26 Roger Sayle <roger@eyesopen.com>
10080 PR middle-end/17151
10081 * combine.c (force_to_mode): Remove dubious early return test that
10082 inhibits further optimization.
10084 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
10086 * profile.c: Fix a comment typo.
10088 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10091 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
10092 with varying offset.
10093 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
10094 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
10096 (expr_invariant_in_loop_p): New function.
10097 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
10098 component_ref_field_offset for COMPONENT_REFs. Do not allow
10099 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
10100 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
10101 MISALIGNED_INDIRECT_REFs.
10102 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
10103 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
10104 MISALIGNED_INDIRECT_REFs.
10106 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
10109 * gcc.c (cpp_options, cc1_options): Preserve relative order of
10110 -std and -ansi options.
10112 2004-09-26 Jan Hubicka <jh@suse.cz>
10114 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
10115 for nested functions whose proper parent has not been output.
10117 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
10118 when re-constructing profile previously invalidated by loop.
10120 2004-09-25 Dale Johannesen <dalej@apple.com>
10122 * tree-gimple.c: Move GIMPLE definition...
10123 * doc/tree-ssa.texi: here.
10125 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10127 * tree-vectorizer.c: Fix a comment typo.
10129 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10131 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
10132 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
10133 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
10134 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
10136 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10138 * tree-ssa-loop-unswitch.c: Fix a comment typo.
10140 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10142 * doc/passes.texi: Fix a typo.
10144 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10146 * tree-optimize.c (init_tree_optimization_passes): Add
10147 pass_record_bounds.
10148 * tree-pass.h (pass_record_bounds): Declare.
10149 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
10152 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10154 PR tree-optimization/17474
10155 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
10156 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
10158 2004-09-25 Jan Hubicka <jh@suse.cz>
10160 * predict.c (counts_to_freqs): Make global.
10161 * predict.h (counts_to_freqa): Declare.
10162 * profile.c (compute_branch_probabilities): Compute frequencies
10163 * tree-profile.c (do_tree_profiling): Refine conditional on when
10164 tree profiling pass is needed.
10166 * passes.c (rest_of_handle_cfg): Disable const/pure function
10167 detection when doing tree based profiling.
10169 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
10172 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10174 * config/mips/mips.h (struct mips_args): Clarify comments.
10175 * config/mips/mips.c (struct mips_arg_info): Likewise.
10176 (mips_arg_info): Don't allow fpr_p to affect the register or
10177 stack alignment. Remove o64 silliness.
10178 (function_arg): Deal with the o32 float,float case specially.
10180 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10182 * config/mips/mips.md (loadx, storex): Define for V2SF.
10184 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
10186 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
10187 * config/s390/s390.c (s390_back_chain_rtx): New function.
10188 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
10189 Call anti_adjust_stack.
10190 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
10191 only if compiling with back chain.
10192 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
10193 back chain only if back chain enabled. Use s390_back_chain_rtx.
10195 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10197 * doc/trouble.texi: Remove obsolete information. Update
10198 information on how to regenerate fixincluded headers.
10200 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10203 * doc/invoke.texi: Document that
10204 -Wno-error-implicit-function-declaration is not accepted.
10206 2004-09-24 Richard Henderson <rth@redhat.com>
10208 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
10209 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
10211 (alpha_expand_mov): Allow unaligned vectors.
10212 (alpha_expand_unaligned_store): Use CONST0_RTX.
10213 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
10215 2004-09-24 Jeff Law <law@redhat.com>
10217 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
10219 (simplify_cond_and_lookup_avail_expr): Likewise.
10221 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10224 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
10225 title. Document interaction with -fms-extensions.
10226 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
10229 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10232 * doc/extend.texi: Document interaction of attribute noreturn and
10235 2004-09-24 Richard Henderson <rth@redhat.com>
10238 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
10239 (som_hash, som_eq): New.
10240 (init_subregs_of_mode, record_subregs_of_mode): New.
10241 (cannot_change_mode_set_regs): Rewrite for htab implementation.
10242 (invalid_mode_change_p): Likewise.
10243 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
10244 * flow.c (mark_used_regs): Likewise.
10245 (life_analysis): Use init_subregs_of_mode.
10246 * regs.h (subregs_of_mode): Remove.
10247 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
10249 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10251 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
10252 type with the copy of the conditional.
10254 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10257 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10258 Prevent renaming if the aliasing sets of the type which the
10259 pointer points to are different.
10261 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10264 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
10265 declarations of enumerators.
10266 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
10267 for redefinition. Check for nested redefinition.
10268 (finish_struct): Don't check for nested redefinition.
10269 (start_enum): Check for nested redefinition.
10271 2004-09-24 Devang Patel <dpatel@apple.com>
10273 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
10274 only when necesssary.
10275 (combine_blocks): Combine loop header and exit block.
10277 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
10279 * hooks.c (hook_tree_tree_bool_null): New.
10280 * hooks.h (hook_tree_tree_bool_null): Declare it.
10281 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
10282 * targhooks.c (default_fold_builtin): Remove.
10283 * targhooks.h (default_fold_builtin): Remove.
10285 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10287 PR rtl-optimization/17625
10288 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
10290 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10293 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
10294 Reject if any of the operands occur in an abnormal PHI.
10296 2004-09-24 Andreas Schwab <schwab@suse.de>
10298 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
10301 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10303 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
10304 if the GNU assembler is used.
10305 (sparc-*-solaris2*): Likewise.
10306 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
10307 (dbxout_function_end): Protect N_ENSYM with it.
10308 (dbxout_begin_prologue): Protect N_BNSYM with it.
10309 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
10310 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
10311 * config/sparc/sol2-gas.h: New file.
10313 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
10316 * Makefile.in (@set_gcc_lib_path@): Added.
10318 * configure.ac: Include ../config/gcc-lib-path.m4. Use
10319 TL_AC_GNU_MAKE_GCC_LIB_PATH.
10320 * configure: Regenerated.
10322 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10325 * c-typeck.c (build_c_cast): Improve wording of
10326 -Wbad-function-cast diagnostic.
10328 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
10331 * config/cris/cris.md (moverside, movemside): Rename variable
10332 "reg" to "otherop". To generate canonical RTX, check that otherop
10333 isn't constant instead of checking that operand 1 is a register.
10335 2004-09-23 Jakub Jelinek <jakub@redhat.com>
10337 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
10339 2004-09-23 Diego Novillo <dnovillo@redhat.com>
10340 Jakub Jelinek <jakub@redhat.com>
10342 * tree-flow.h (find_new_referenced_vars): Add prototype.
10343 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
10345 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
10347 (mark_new_vars_to_rename): Walk through all operands.
10348 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
10349 (execute_fold_all_builtins): Use it.
10350 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
10352 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
10354 * gthr-tpf.h: New file.
10355 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
10356 * gthr.h: Use gthr-tpf.h on TPF OS.
10358 2004-09-23 Jeff Law <law@redhat.com>
10360 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
10361 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10362 (substitute_and_fold): Likewise.
10363 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
10364 except invariants from SSA_NAME_VALUE.
10365 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
10366 and SET_SSA_NAME_EQUIV.
10367 (restore_vars_to_original_value, record_const_or_copy): Likewise.
10368 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
10369 (record_equality, cprop_into_successor_phis): Likewise.
10370 (record_equivalences_from_stmt, cprop_operand): Likewise.
10371 (lookup_avail_expr): Likewise.
10372 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
10373 from SSA_NAME_VALUE.
10374 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
10375 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
10376 annotation from the VALUE_HANDLE field.
10378 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
10382 * tree.c (reconstruct_complex_type): Remove extra "this".
10383 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
10384 Add V4SFmode to case statement.
10386 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
10389 * doc/extend.texi, doc/invoke.texi: Document interaction of
10390 -fno-builtin with format checks. Note that built-in functions
10391 have effects beyond generating code that avoids calls to those
10394 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
10396 PR tree-optimization/17533
10397 * dominance.c (verify_dominators): Tolerate even more incorrect
10398 dominance data during error message printing.
10399 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
10400 and edges more correctly.
10402 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
10404 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
10406 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
10407 MISALIGNED_INDIRECT_REF.
10408 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
10409 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
10411 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
10412 (find_interesting_uses_address): Likewise.
10413 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
10414 (build_fold_addr_expr_with_type): Likewise.
10415 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
10416 * print-rtl.c (print_mem_expr): Likewise.
10417 * tree-dump.c (dequeue_and_dump): Likewise.
10418 * tree-eh.c (tree_could_trap_p): Likewise.
10419 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
10420 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
10421 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
10423 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10424 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10425 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
10426 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10427 (add_address_candidates, rewrite_address_base): Likewise.
10428 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
10430 * tree.c (staticp, build1_stat): Likewise.
10432 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
10433 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
10434 * tree-ssa-operands.c (get_expr_operands): Likewise.
10435 * expr.c (expand_expr_real_1): Likewise.
10437 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
10439 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
10440 for the new optabs.
10441 (expand_ternary_op): New function.
10442 * genopinit.c (optabs): Handle the new optabs.
10443 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
10444 (init_optabs): Initialize vec_realign_load_optab.
10445 (expand_ternary_op): New functions.
10447 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
10448 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
10449 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
10450 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
10451 * target.h (struct vectorize): New member for struct gcc_target.
10452 (misaligned_mem_ok): New member for targetm.vectorize.
10453 (builtin_mask_for_load): Likewise.
10454 (builtin_mask_for_store): Likewise.
10455 * targethooks.c (default_vect_misaligned_mem_ok): New function.
10456 * targethooks.h (default_vect_misaligned_mem_ok): New function.
10458 * config/rs6000/altivec.md (build_vector_mask_for_load): New
10460 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
10461 (vec_realign_load_v16qi): New define_insn.
10462 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
10463 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
10464 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
10465 (altivec_builtin_mask_for_store): New variables.
10466 (rs6000_builtin_mask_for_load): New function. Implements
10467 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
10468 (rs6000_builtin_mask_for_store): New function. Implements
10469 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
10470 (rs6000_expand_builtin): Expand the target builtins
10471 builtin_mask_for_load and builtin_mask_for_store.
10472 (altivec_init_builtins): Initialize the new target builtins.
10473 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
10474 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
10476 * tree-vectorizer.c (vect_create_data_ref): Renamed to
10477 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
10478 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
10479 (vectorizable_store): Call vect_create_data_ref_ptr with additional
10480 arguments, and create an indirect_ref with its return value data_ref.
10481 Check aligned_access_p.
10482 (vectorizable_load): Handle misaligned loads, using software-pipelined
10483 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
10484 vec_realign_load_optab is supported, or using a scheme without
10485 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
10486 misaligned_mem_ok is supported.
10488 (vect_finish_stmt_generation): Typo.
10489 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
10490 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
10491 presence of misaligned loads.
10492 (vect_analyze_data_ref_access): Add check for constant init.
10493 (vect_get_symbl_and_dr): Remove duplicate line.
10494 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
10496 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10498 * builtins.c: Fix a comment typo.
10500 2004-09-23 Jan Hubicka <jh@suse.cz>
10502 * profile.c (branch_prob): Do not verify flow info in the middle of the
10505 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10507 * cfgloop.h (update_single_exits_after_duplication): Declare.
10508 (loopify, split_loop_bb): Declaration changed.
10509 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
10511 (loopify): Added redirect_all_edges argument.
10512 (update_single_exits_after_duplication): Export.
10513 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
10514 * tree-flow.h (tree_duplicate_loop_to_header_edge,
10515 tree_ssa_loop_version): Declare.
10516 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
10517 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
10518 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
10519 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
10521 * tree-ssa-loop-unswitch.c: New file.
10522 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
10523 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
10524 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
10525 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
10526 * tree-pass.h (pass_unswitch): Declare.
10527 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
10528 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
10529 * doc/passes.texi: Documen tree level loop unswitching.
10531 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10533 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
10535 2004-09-22 Eric Christopher <echristo@redhat.com>
10537 * builtins.c (simplify_builtin_va_start): Remove.
10538 (simplify_builtin): Ditto.
10539 (fold_builtin_strchr): Ditto.
10540 (simplify_builtin_*): Rename remainders to fold_builtin_*.
10541 (expand_builtin): Fix up for above changes.
10542 (fold_builtin_1): Add new folders. Change for above.
10543 (expand_builtin_va_start): Call fold_builtin_next_arg.
10544 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
10545 * tree.h: Remove prototype for simplify_builtin.
10547 2004-09-23 Jan Hubicka <jh@suse.cz>
10550 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
10551 of fully inlined functions.
10552 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
10555 * cfgexpand.c (add_reg_br_prob_note): New function.
10556 (expand_gimple_cond_expr): Use it.
10557 (tree_expand_cfg): No longer kill the profile.
10558 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
10559 only if it is present.
10560 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
10561 * predict.c (combine_predictions_for_insn): Set the probabilities
10562 based on REG_BR_PROB note if present.
10563 * predict.c (branch_prob): Profile is read only with
10564 flag_branch_probabilities.
10566 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10568 * aclocal.m4: Add in gettext's m4 includes.
10569 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
10570 * configure.ac: Add in check for iconv.h
10571 * configure: Regenerate.
10573 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10575 * aclocal.m4: Update for rename of gettext-sister.m4.
10577 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
10579 Fix PR tree-optimization/17587
10580 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
10581 (insert_aux): Instead of here.
10583 2004-09-22 Diego Novillo <dnovillo@redhat.com>
10585 PR tree-optimization/16721
10586 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
10587 * tree-ssa-alias.c (create_memory_tag): Move setting of
10588 TREE_THIS_VOLATILE ...
10589 (get_tmt_for): ... here.
10591 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
10593 * config/sparc/sparc.md (cmove splitter): Fix formatting.
10594 (conditional_trap expander): Reject inappropriate CCmodes.
10595 (conditional trap insn): Use V9 syntax if possible.
10597 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
10600 * c-typeck.c (build_component_ref): Don't special-case
10603 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
10605 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
10608 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
10610 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
10611 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
10612 TRUTH_XOR_EXPR): Mention the restriction on types.
10614 2004-09-22 Matt Austern <austern@apple.com>
10616 * config/darwin.c (darwin_make_decl_one_only):
10617 Allow coalesced symbol to appear in static archive's table of contents
10619 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
10621 PR tree-optimization/17512
10622 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
10625 2004-09-22 David Edelsohn <edelsohn@gnu.org>
10627 * dbxout.c (get_lang_number): Do not define if
10628 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
10630 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10633 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
10634 builtin_define ("__USE_INIT_FINI__").
10636 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
10638 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
10639 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
10640 * config/s390/s390.h (TARGET_TPF): New macro.
10641 * config/s390/s390.md ("eh_return"): New expander.
10642 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
10643 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
10644 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
10645 * config/s390/tpf.h (TARGET_TPF): Define to 1.
10646 (STACK_POINTER_OFFSET): Increase to 448.
10647 (TARGET_DEFAULT): Set -mtpf-trace on as default.
10648 (TPF_LOC_DIFF_OFFSET): New macro.
10649 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
10651 (__isPATrange): Add prototype.
10652 (MD_FALLBACK_FRAME_STATE_FOR): Define.
10653 * config/s390/tpf-eh.c: New file.
10655 2004-09-22 Diego Novillo <dnovillo@redhat.com>
10657 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
10658 operands in an integer comparison.
10659 * tree-cfg.c (find_taken_edge): Call fold() to determine
10660 whether the predicate is known.
10662 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10664 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
10665 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
10666 Create build and doc directories along with the language directories.
10667 Don't create doc directory separately.
10668 * configure: Regenerate.
10669 * Makefile.in: Create all object and executables files built
10670 with the build compiler in a build/ directory.
10671 (genobjnames): Add missing build objects.
10672 (STAGESTUFF): Don't stage the gen* programs.
10673 (ggc-none.o): Define dependencies for the target compiler.
10674 (build-print-rtl.o): Rename to build/print-rtl.o.
10675 (build-errors.o): Rename to build/errors.o.
10676 (build-varray.o): Rename to build/varray.o.
10677 (maintainerclean): Delete the contents of the build directory.
10678 ($(genobjs): %.o): Explicitly use -o.
10679 (build/insn-conditions.o): Delete specfic rule to use generic rule.
10680 (build/gengtype-lex.o): Likewise.
10681 (build/gengtype-yacc.o): Likewise.
10682 (build/gcov-iov.o): Likewise.
10684 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
10686 * vec.h (VEC_space): Return true if there _is_ space.
10687 (VEC_reserve): Adjust.
10689 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
10691 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
10692 use FPRs for scalar, complex and vector types only.
10694 2004-09-21 Jeff Law <law@redhat.com>
10696 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
10697 the opt_stats_d structure.
10698 (vrp_data): Change from a varray into a hash table.
10699 (vrp_hash_elt): New structure for elements in the vrp hash table.
10700 (vrp_hash, vrp_eq):New functions for hashing and testing equality
10701 in the vrp hash table.
10702 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
10703 initialization slightly to make it easier to read. No longer need
10704 to grow/clear the varray. Instead empty and delete the hash table.
10705 (dom_opt_finalize_block): Update due to change of VRP_DATA from
10706 a varray to a hash table.
10707 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
10709 * tree-ssa-ccp.c (get_default_value): If we have a constant
10710 value recorded for an SSA_NAME, then use that constant as
10711 the initial lattice value.
10712 (substitute_and_fold): Transfer equivalences discovered into
10715 * tree.h (SSA_NAME_EQUIV): Add comments.
10716 (SET_SSA_NAME_EQUIV): Similarly.
10718 2004-09-21 David Edelsohn <edelsohn@gnu.org>
10720 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
10722 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
10724 2004-09-21 Mark Mitchell <mark@codesourcery.com>
10726 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
10727 (finish_decl): Likewise.
10729 2004-09-21 Devang Patel <dpatel@apple.com>
10731 * tree.def (VEC_COND_EXPR): New tree node.
10732 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
10734 2004-09-21 Stan Shebs <shebs@apple.com>
10736 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
10737 * config/rs6000/darwin-world.asm: Likewise.
10739 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
10741 * tree-ssa.c (verify_def): Use print_generic_stmt,
10742 not debug_generic_stmt.
10743 (verify_use): Ditto.
10744 (verify_phi_args): Ditto.
10745 (verify_ssa): Ditto.
10747 2004-09-21 Paul Brook <paul@codesourcery.com>
10749 * varasm.c (default_assemble_integer): Return false for values wider
10750 than the target word size. Works around GAS bug.
10752 2004-09-21 Zack Weinberg <zack@codesourcery.com>
10754 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
10756 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
10759 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
10761 * c-typeck.c (build_function_call): Give name of object
10762 we are attempting to call in error message.
10763 * c-objc-common.c (c_tree_printer): Call pp_expression,
10764 not return false, for 'E' case.
10766 2004-09-21 Steven Bosscher <stevenb@suse.de>
10768 PR rtl-optimization/17482
10769 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
10770 load_killed_in_block_p): Clarify comments.
10771 (record_last_reg_set_info): Make static inline.
10772 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
10773 (record_opr_changes): New function to replace the above.
10774 (compute_hash_table): Clarify comments. Use record_opr_changes.
10775 (reg_set_between_after_reload_p): Clean up.
10776 (reg_used_between_after_reload_p): Likewise.
10777 (eliminate_partially_redundant_load): Clarify comments.
10779 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
10781 PR rtl-optimization/17266
10782 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
10784 2004-09-21 Uros Bizjak <uros@kss-loka.si>
10786 PR rtl-optimization/14851
10787 * rtlanal.c (commutative_operand_precedence): Calculate
10788 precedence of stripped constant.
10790 2004-09-20 Jeff Law <law@redhat.com>
10791 Jan Hubicka <jh@suse.cz>
10793 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
10794 initialize key elements here.
10795 (release_ssa_name): Zero the released SSA_NAME here.
10796 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
10797 (struct tree_ssa_name): Add new "equiv" field.
10798 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
10799 (tree_ssa_dominator_optimize): No longer allocate, resize or
10800 clear CONST_AND_COPIES.
10801 (get_value_for, set_value_for): Kill.
10802 (thread_across_edge): Get/set the equivalency using
10803 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10804 (restore_vars_to_original_value): Likewise.
10805 (record_equivalences_from_phis): Likewise.
10806 (record_dominating_conditions): Likewise.
10807 (record_const_or_copy, record_equality): Likewise.
10808 (lookup_avail_expr): Likewise.
10809 (record_equivalences_from_stmt, cprop_operand): Likewise.
10810 (cprop_into_successor_phis): No longer need to pass around
10811 CONST_AND_COPIES. Callers updated. Get equivalences via
10813 (cprop_into_phis): Likewise.
10815 2004-09-20 Matt Austern <austern@apple.com>
10816 Zack Weinberg <zack@codesourcery.com>
10818 * c-common.c (fix_string_type): Build the unqualified array
10819 type unconditionally, then use c_build_qualified_type to get
10820 the proper const-qualified variant, and set its
10821 TYPE_MAIN_VARIANT to refer to the unqualified type.
10822 * c-lex.c (c_lex_return_raw_string): New global.
10823 (c_lex_with_flags): Honor it.
10824 * c-pragma.h: Declare it.
10826 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
10828 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
10830 2004-09-21 Jan Hubicka <jh@suse.cz>
10832 PR middle-end/17126
10833 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
10834 (tree_rest_of_compilation): Cleanup.
10836 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
10838 * config/s390/s390.c (s390_select_rtx_section): Remove.
10839 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
10841 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
10843 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
10844 note to pretend a direct save from the original register when an
10845 intermediate register is used for the save.
10847 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10849 * tsystem.h (alloca): Provide a default definition.
10852 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10853 * unwind-dw2.c: Call __builtin_alloca, not alloca.
10855 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
10858 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
10859 aliasing sets are the same rather than just conflicting.
10861 2004-09-20 Jan Hubicka <jh@suse.cz>
10863 PR middle-end/16460
10865 * cgraph.c (cgraph_unnest_node): New function.
10866 (c_finalize): Rename to ....
10867 (c_warn_unused_result_recursivly): ... this one; do only the warning
10868 (finish_function): Finalize the toplevel function; do not lower nested tree.
10869 * cgraph.h (cgraph_unnest_node): Declare.
10870 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
10871 nestedness datastructure.
10872 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
10873 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
10874 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
10876 2004-09-20 Richard Henderson <rth@redhat.com>
10878 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
10879 from some_small_symbolic_operand_1; export.
10880 (some_small_symbolic_operand): Remove.
10881 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
10883 * config/alpha/predicates.md (some_small_symbolic_operand): New.
10885 2004-09-20 Jan Hubicka <jh@suse.cz>
10887 * predict.c (return_prediction): New function.
10888 (apply_return_prediction): Likewise.
10889 (tree_bb_level_predictions): Likewise.
10890 (tree_estimate_probability): Add noreturn exit edges; call
10891 bb_level_predictions; fix logic of return heuristics.
10892 (predict_paths_leading_to): Rescuesce from old CVS version of
10893 process_note_prediction function.
10894 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
10896 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
10898 * config/s390/s390.c (s390_frame_info): Added alignment statement for
10899 floating point register area on stack.
10901 2004-09-20 Jakub Jelinek <jakub@redhat.com>
10903 * predict.c (expr_expected_value): Use *_CLASS_P macros.
10905 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
10907 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
10908 generating useless garbage.
10910 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
10912 * builtins.c (fold_builtin): Call the new omonymous
10913 target hook for machine-dependent built-ins.
10914 * target-def.h (TARGET_FOLD_BUILTIN): New.
10915 * target.h (struct gcc_target): Add the fold_builtin hook.
10916 * targhooks.c (default_fold_builtin): New.
10917 * targhooks.h (default_fold_builtin): Declare it.
10919 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
10921 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
10924 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
10927 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
10929 2004-09-20 Jan Hubicka <jh@suse.cz>
10931 * predict.c (estimate_probability): Remove unnecesary code.
10933 2004-09-19 Ira Rosen <irar@il.ibm.com>
10935 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
10936 (STMT_VINFO_VECT_DR_BASE): Declare.
10937 (VECT_SMODULO): Declare.
10938 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
10939 (vect_compute_array_base_alignment): New function.
10940 (vect_analyze_data_ref_access): Check array indices. Remove one
10941 dimensional arrays restriction.
10942 (vect_get_ptr_offset): New function.
10943 (vect_get_symbl_and_dr): New function.
10944 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
10945 (former name vect_get_base_decl_and_bit_offset).
10946 (vect_create_index_for_array_ref): Removed.
10947 (vect_create_index_for_vector_ref): New function.
10948 (vect_create_addr_base_for_vector_ref): New function.
10949 (vect_create_data_ref): Handle additional data refs. Call
10950 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
10951 (vect_compute_data_ref_alignment): Support the changes. Call
10952 vect_get_base_and_bit_offset.
10953 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
10954 data refs. Store vect_dr_base.
10955 (vect_analyze_data_ref_accesses): Support nonconstant init.
10956 (new_stmt_vec_info): Initialize vect_dr_base field.
10957 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
10958 (get_vectype_for_scalar_type): Check for BLKmode.
10959 * tree-chrec.h (initial_condition_in_loop_num): Declare.
10960 * tree-chrec.c (initial_condition_in_loop_num): New function.
10961 (chrec_component_in_loop_num): New function.
10962 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
10963 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
10964 to be pointer to varray_type.
10966 2004-09-19 Jan Hubicka <jh@suse.cz>
10968 * basic-block.h (update_bb_profile_after_threading): Declare.
10969 * cfg.c (update_bb_profile_after_threading): Break out from ...
10970 * cfgcleanup.c (try_forward_edges): ... here; use it.
10971 * tree-ssa-dom.c (thread_across_edge): Use it.
10972 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
10973 profile of the new BB.
10975 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
10977 * tree-ssa-pre.c (insert_into_set): Don't put
10978 is_gimple_min_invariant values into the set.
10980 2004-09-19 Andreas Jaeger <aj@suse.de>
10982 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
10985 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
10987 * config/cris/cris.h: Preserve the original spelling in a
10990 2004-09-18 Jeff Law <law@redhat.com>
10992 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
10993 global varrays to replace the block local varrays.
10994 (struct dom_walk_block_data): Remove, no longer used.
10995 (get_eq_expr_value): No longer need to pass around pointers to local
10996 varrays. Callers updated. Unused markers added to unused parameters.
10997 (record_range, record_equivalences_from_stmt): Likewise.
10998 (record_equivalences_from_incoming_edge): Likewise.
10999 (record_var_is_nonzero): Likewise. Update now that we have a
11000 single global varray of SSA_NAMEs that need restoring.
11001 (dom_opt_initialize_block_local_data): Kill, no longer used.
11002 (tree_ssa_dominator_optimize): Initialize new global varrays.
11003 Update callbacks in dominator walker structure.
11004 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
11005 VRP_VARIABLES_STACK.
11006 (restore_nonzero_vars_to_original_value): Update now that we have
11007 a single global varray of SSA_NAMEs that need restoring.
11008 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
11009 Remove unused variables.
11010 (optimize_stmt): Remove unused variable.
11012 2004-09-18 Jan Hubicka <jh@suse.cz>
11014 * tree-cfg.c (thread_jumps): Fix updating of the profile.
11016 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
11017 verify_cgraph call.
11019 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11021 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
11022 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
11023 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
11024 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
11025 tree-ssa-operands.c, tree-ssa-phiopt.c,
11026 tree-ssa-threadupdate.c: Fix comment typos.
11028 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11030 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
11031 config/arm/README-interworking, config/arm/arm-cores.def,
11032 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
11033 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
11034 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
11035 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
11036 config/frv/frv.md, config/i386/winnt.c,
11037 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
11038 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
11039 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
11040 config/mcore/mcore.c, config/mips/mips.h,
11041 config/mn10300/mn10300.md, config/pa/pa.c,
11042 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
11043 config/rs6000/rs6000.c, config/sh/symbian.c,
11044 config/sparc/sparc.h: Fix comment typos. Follow spelling
11047 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
11050 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
11052 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11054 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
11055 remove TREE_ADDRESSABLE from RESULT_DECL.
11057 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11059 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
11061 2004-09-18 Jan Hubicka <jh@suse.cz>
11063 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
11065 * tree-ssa-alias.c (init_alias_info): Likewise.
11066 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
11067 (verify_ssa): Likewise.
11068 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
11070 2004-09-18 Jan Hubicka <jh@suse.cz>
11072 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
11075 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
11077 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
11078 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11079 DW_EH_PE_sdata* for data.
11080 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11082 2004-09-17 Geoffrey Keating <geoffk@apple.com>
11084 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
11088 * c-typeck.c (constructor_asmspec): Delete.
11089 (struct initializer_stack): Delete field 'asmspec'.
11090 (start_init): Delete saving of asmspec.
11091 (finish_init): Don't update constructor_asmspec.
11092 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
11093 * stmt.c (expand_asm): Duplicate strings from tree.
11094 (expand_asm_operands): Likewise.
11095 * tree.c (tree_size): Update computation of size of STRING_CST.
11096 (make_node): Don't make STRING_CST nodes.
11097 (build_string): Allocate string with tree node.
11098 (tree_code_size): Clean up assertions, don't allow requests
11099 for "the size of a STRING_CST".
11100 * tree.def (STRING_CST): Update comment.
11101 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
11102 (tree_string): Place contents of string in tree node.
11103 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
11106 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11108 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
11109 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
11111 2004-09-17 Jones Desougi <jones@ingate.com>
11113 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
11114 * configure, config.in: Regenerate.
11116 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11118 * tree.c, tree.h (tree_class_strings): Make array const.
11119 Reindent per coding convention. Move asterisk to proper place
11120 per coding convention.
11122 2004-09-18 Andreas Schwab <schwab@suse.de>
11124 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
11125 (tree-vectorizer.o): Likewise.
11126 (targhooks.o): Likewise.
11128 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
11129 Zack Weinberg <zack@codesourcery.com>
11131 * alias.c (find_base_decl): Remove unreachable case '3' block.
11132 * expr.c (safe_from_p): Abort if passed a type.
11133 * tree-gimple.c (recalculate_side_effects): Abort if passed
11134 anything other than an expression.
11135 * tree-ssa-pre.c (phi_translate): Return expr immediately if
11136 is_gimple_min_invariant is true for it. Reorder cases for clarity.
11137 Abort on un-handled tree classes.
11138 (valid_in_set): Likewise.
11139 * tree.c (tree_code_class_strings): New static data.
11141 * tree.h (enum tree_code_class): New.
11142 (tree_code_class_strings): Declare.
11143 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
11144 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
11145 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
11146 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
11147 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
11149 * tree.def, c-common.def, objc/objc-tree.def: Use
11150 tree_code_class enumeration constants instead of code letters.
11152 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
11153 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
11154 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
11155 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
11156 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
11157 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
11158 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
11159 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
11160 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
11161 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
11162 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
11163 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
11164 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
11167 * LANGUAGES: Add note about change.
11169 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11171 PR tree-optimization/17319
11172 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
11173 examine pointers on the LHS of an assignment.
11174 (collect_points_to_info_r): Handle RETURN_EXPR.
11176 2004-09-17 Jeff Law <law@redhat.com>
11178 * tree-ssa-dom.c (const_and_copies_stack): New.
11179 (dom_walk_block_data): Remove const_and_copies field.
11180 (record_const_or_copy): No longer need to pass in varray_type *.
11181 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
11183 (record_equality): Similarly.
11184 (restore_vars_to_original_value): Similarly. Revamp to use new
11185 single global stack rather than per-block stacks.
11186 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
11187 (thread_across_edge): Remove now unused parameters.
11188 (dom_opt_initialize_block_local_data): No longer test the block
11189 local CONST_AND_COPIES.
11190 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
11192 2004-09-17 Jan Hubicka <jh@suse.cz>
11194 PR tree-optimization/17509
11195 * tree-optimize.c (update_inlined_to_pointers): New function.
11196 (tree_rest_of_compilation): Use it.
11198 2004-09-17 Devang Patel <dpatel@apple.com>
11200 * dbxout.c (get_lang_number): New.
11201 (dbxout_init): Include lang number in N_SO stab.
11202 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
11203 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
11205 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11207 PR tree-optimization/17273
11208 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
11209 replacement is a constant.
11211 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
11213 * c-tree.h (enum c_typespec_keyword): New.
11214 (struct c_declspecs): Adjust description of "type". Remove
11215 specbits, explicit_int_p and explicit_char_p. Rename
11216 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
11217 short_p, signed_p, unsigned_p and complex_p.
11218 (finish_declspecs): New.
11219 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
11220 typename): Call finish_declspecs.
11221 * c-decl.c (finish_declspecs): New.
11222 (declspecs_add_type): Check for combinations which cannot occur in
11223 valid specifier lists. Update comments.
11224 (shadow_tag_warned): Remove checks done in finish_declspecs.
11225 Don't report useless type name if type defaulted to int.
11226 (grokdeclarator): Remove checks and actions done in
11227 finish_declspecs. Don't allow for type being NULL. Update for
11228 datastructures changes. Initialize decl_attr.
11229 (build_null_declspecs, quals_from_declspecs): Update for
11230 datastructures changes.
11232 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
11234 * doc/extend.texi: Fix duplicated word.
11236 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
11238 * doc/invoke.texi: Remove stray explanation on
11239 -freduce-all-givs and -fmove-all-movables.
11241 2004-09-17 James Morrison <phython@gcc.gnu.org>
11243 * doc/cfg.texi: Use @smallexample.
11244 * doc/md.texi: Likewise.
11245 * doc/tree-ssa.texi: Likewise.
11246 * doc/extend.texi: Likewise. Use @r{} in comments.
11247 * doc/trouble.texi: Use @r{} in comments.
11249 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
11251 * configure.ac (gcc_cv_gld_version): Handle whitespace before
11253 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
11254 * configure: Regenerate.
11256 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
11258 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
11259 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
11260 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
11261 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
11262 slashes in substitutions.
11263 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
11265 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11267 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
11268 gimplify.c, lambda-code.c, optabs.c, predict.c,
11269 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
11270 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
11273 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11275 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
11276 doc/extend.texi, doc/install.texi, doc/invoke.texi,
11277 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
11278 doc/trouble.texi: Use @option around options.
11280 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
11282 * Makefile.in (gen-protos.o): Depend on errors.h.
11284 2004-09-17 Steven Bosscher <stevenb@suse.de>
11286 PR tree-optimization/17513
11287 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
11288 for successors of the entry block.
11290 2004-09-17 Uros Bizjak <uros@kss-loka.si>
11292 PR rtl-optimization/15187
11293 * ifcvt.c (noce_try_cmove_arith): Exit early if total
11294 insn_rtx_cost of both branches > BRANCH_COST
11296 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11298 PR tree-optimization/17528
11299 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
11300 erase the may-alias set for a tag when merging it with
11303 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11305 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
11306 for 32-bit TARGET_SHMEDIA.
11307 (call_value): Likewise.
11309 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11311 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
11312 test apply only to TREE_STATIC and DECL_EXTERNAL.
11314 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11316 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
11317 * basic-block.h (get_dominated_by_region): Declare.
11318 * dominance.c (get_dominated_by_region): New function.
11319 * tree-cfg.c: Include cfglayout.h.
11320 (tree_duplicate_bb): Duplicate also phi nodes.
11321 (struct ssa_name_map_entry): New type.
11322 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
11323 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
11324 allocate_ssa_names, rewrite_to_new_ssa_names_def,
11325 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
11326 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
11327 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
11328 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
11329 rewrite_to_new_ssa_names, allocate_ssa_names,
11330 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
11331 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
11332 (copy_loop_headers): Use tree_duplicate_sese_region.
11334 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
11336 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
11338 2004-09-16 Jeff Law <law@redhat.com>
11340 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
11341 (rewrite_block_data): Remove, no longer used.
11342 (rewrite_initialize_block_local_data): Remove, no longer used.
11343 (rewrite_initialize_block): Mark parameters as unused as needed.
11344 Change references to the block local block_defs to be block_defs_stack.
11345 Push a marker onto the block_defs_stack.
11346 (ssa_rewrite_initialize_block): Similarly.
11347 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
11348 (ssa_register_new_def): No longer needs varray argument. Use
11349 block_defs_stack instead. No longer handle possibly null block_defs
11350 varray. Reverse order of items we push on the stack to make it
11351 easier to identify our marker.
11352 (register_new_def): No longer handle possibly null block_defs
11354 (rewrite_finalize_block): Revamp to look for markers in the global
11355 block_defs_stack varray rather than wiping a block local varray.
11356 Mark arguments as unused as needed.
11357 (ssa_rewrite_finalize_block): Similarly.
11358 (rewrite_into_ssa): Update initialization of dom walker structure
11359 to reflect that we don't need block local data anymore. Initialize
11360 the block_defs_stack varray.
11361 (rewrite_ssa_into_ssa): Similarly.
11362 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
11363 (struct dom_walk_data): Kill block_defs field.
11364 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
11365 (thread_across_edge): Use the global block_defs_stack instead of
11366 the old block_defs varray.
11367 (dom_opt_initialize_block_local_data): Update now that we don't have
11368 block_defs field to check anymore.
11369 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
11370 (restore_currdefs_to_original_value): Use the new block_defs_stack
11371 instead of a block local varray.
11372 (dom_opt_finalize_block): Similarly.
11373 (record_equivalencs_from_phis): Similarly.
11374 (optimize_stmt, register_definitions_for_stmt): Similarly.
11376 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
11378 PR tree-optimization/17517
11379 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11380 coalesce same-root variables without checking for abnormal PHI usage.
11382 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11384 * cfgloop.h (duplicate_loop): Add prototype.
11385 * cfgloopmanip.c (duplicate_loop): Make non-static.
11386 * lambda-code.c (perfect_nestify): Factor out test whether
11387 we can handle this loop into separate function.
11389 (can_convert_to_perfect_nest): New function.
11390 (replace_uses_of_x_with_y): Add modify_stmt call.
11391 * tree-loop-linear.c (linear_transform_loops): Call
11392 rewrite_into_loop_closed_ssa and free_df.
11394 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11396 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
11397 loop invariant as well.
11398 (perfect_nestify): new function.
11399 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
11400 upper bounds, and steps.
11401 Set outerinductionvar properly.
11402 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
11404 Return NULL if we need a perfect loop and can't make one.
11405 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
11406 (not_interesting_stmt): New function.
11407 (phi_loop_edge_uses_def): Ditto.
11408 (stmt_uses_phi_result): Ditto.
11409 (stmt_is_bumper_for_loop): Ditto.
11410 (perfect_nest_p): Ditto.
11411 (nestify_update_pending_stmts): Ditto.
11412 (replace_uses_of_x_with_y): Ditto.
11413 (stmt_uses_op): Ditto.
11414 (perfect_nestify): Ditto.
11415 * lambda-mat.c (lambda_matrix_id_p): New function.
11416 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
11417 * lambda.h: Update prototypes.
11418 * tree-loop-linear (linear_transform_loop): Use new
11419 perfect_nest_p. Detect and ignore identity transform.
11420 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
11422 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
11424 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
11425 Gather also strides of accessed data. Pass in the data references
11427 (try_interchange_loops): Add a new heuristic for handling the temporal
11428 locality. Pass in the data references array.
11429 (linear_transform_loops): Pass the data references array to
11430 try_interchange_loops.
11432 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
11434 * doc/invoke.texi: Fix typos. Follow spelling conventions.
11436 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
11438 * doc/c-tree.texi (Classes): Remove index entries for
11439 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
11441 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11443 * fold-const.c (fold): Fold difference of addresses.
11444 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
11445 get_inner_reference.
11446 * tree-ssa-loop-ivopts.c (peel_address): Removed.
11447 (ptr_difference_const): Moved to fold-const.c.
11448 (split_address_cost): Use get_inner_reference instead of peel_address.
11449 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
11450 * tree.h (ptr_difference_const): Export.
11452 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
11453 variable type to the dump. Fix indentation.
11454 (idx_find_step): Handle nonconstant array_ref_element_size and
11455 array_ref_low_bound.
11456 (idx_record_use): Handle array_ref_element_size and
11457 array_ref_low_bound.
11458 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
11459 statements correctly.
11460 (get_computation_at, iv_value): Do not unshare expressions here.
11461 (rewrite_use_outer): Unshare the expression before it is emitted
11463 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
11465 * tree.c (unsigned_type_for, signed_type_for): Moved from
11466 tree-ssa-loop-niter.c. Use langhooks.
11467 * tree.h (signed_type_for): Export.
11469 2004-09-16 David Edelsohn <edelsohn@gnu.org>
11471 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
11474 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
11477 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
11478 Add two parameters to extra_includes.
11479 (C_INCPATH_INIT): Remove.
11480 * c-incpath.c (register_include_chains): Call extra_pre_includes
11481 before adding the standard include directory.
11482 Update call to extra_includes.
11483 (!defined TARGET_EXTRA_INCLUDES): Update
11484 hook_void_charptr_charptr_int and add !define
11485 TARGET_EXTRA_PRE_INCLUDES.
11486 (!define TARGET_EXTRA_INCLUDES): Define as
11487 hook_void_charptr_charptr_int.
11488 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11489 (target_c_incpath): Always declare.
11490 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
11492 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11493 * config/darwin.h: (darwin_register_frameworks): Update for
11494 the two new parameters.
11495 (darwin_register_objc_includes): Add prototype.
11496 (TARGET_EXTRA_PRE_INCLUDES): Define.
11497 * config/darwin-c.c (darwin_register_objc_includes): New function.
11498 (darwin_register_frameworks): Update for the two new parameters.
11499 (target_c_incpath): Remove.
11500 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
11502 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
11504 (TARGET_EXTRA_PRE_INCLUDES): Document.
11506 * gcc.c (spec_function): Add replace-outfile.
11507 (replace_outfile_spec_function): New function.
11508 * config/darwin.h (LINK_SPEC): Add replace
11509 -lobjc with -lobjc-gnu if -fgnu-runtime is
11511 * invoke.texi (replace-outfile): Document.
11513 2004-09-13 Jan Hubicka <jh@suse.cz>
11515 * predict.c (expr_expected_value, strip_builtin_expect): New function.
11516 (tree_predict_by_opcode): Use it.
11517 (tree_estimate_probability): Add, for now disabled,
11518 strip_builtin_expect call.
11520 2004-09-15 James E Wilson <wilson@specifixinc.com>
11523 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
11524 if current_function_decl is a sibcall.
11526 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11528 * varasm.c (default_function_rdodata_section): Make sure to pass
11529 along a decl for a link-once section.
11531 2004-09-15 Richard Henderson <rth@redhat.com>
11533 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
11534 warning with code disable. Fix formatting.
11536 2004-09-15 Steven Bosscher <stevenb@suse.de>
11538 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
11539 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
11540 after propagating into an ADDR_EXPR.
11542 2004-09-15 Andrew Pinski <apinski@apple.com>
11545 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
11546 Move it out of gcc_assert.
11548 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
11550 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
11551 except.c, fold-const.c, function.c, langhooks.c, params.c,
11552 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
11553 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
11554 for quoting in diagnostics going through pretty-print.c. Use ''
11555 for quoting in other diagnostic text.
11556 * langhooks.c: Include intl.h. Mark text locating diagnostics for
11558 * Makefile.in (langhooks.o): Update dependencies.
11559 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
11562 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11564 * configure.ac: Check for COMDAT support. Robustify check for
11566 * configure: Regenerated.
11567 * config.in: Likewise.
11568 * langhooks-def.h (lhd_comdat_group): New function.
11569 (LANG_HOOKS_COMDAT_GROUP): New macro.
11570 (LANG_HOOKS_DECLS): Use it.
11571 * langhooks.c (lhd_comdat_group): Define.
11572 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
11573 * output.h (named_section_flags): Make it a macro.
11574 (named_section_real): New function.
11575 (default_no_named_section): Add decl parameter.
11576 (default_elf_asm_named_section): Likewise.
11577 (default_coff_asm_named_section): Likewise.
11578 (default_pe_asm_named_section): Likewise.
11579 * target.h (gcc_target): Adjust type of named_section.
11580 * varasm.c (named_section_flags): Rename to named_section_real.
11581 Add decl parameter.
11582 (default_no_named_section): Add decl parameter.
11583 (default_elf_asm_named_section): Use COMDAT, if available. Deal
11584 with the case that ASM_COMMENT_START is "@".
11585 (default_coff_asm_named_section): Add decl parameter.
11586 (default_pe_asm_named_section): Likewise.
11587 * config/alpha/alpha.c (vms_asm_named_section): Add decl
11589 (unicosmk_asm_named_section): Likewise.
11590 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
11591 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
11592 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
11593 * config/cris/cris-protos.h (cris_target_asm_named_section):
11595 * config/cris/cris.c (cris_target_asm_named_section):
11597 * config/darwin/darwin-protos.h (darwin_asm_named_section):
11599 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
11600 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
11601 * config/i386/i386-protos.h (i386_pe_asm_named_section):
11603 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
11604 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
11605 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
11606 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
11608 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
11609 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
11610 * cp/cp-tree.h (cxx_comdat_group): Declare.
11611 * cp/decl.c (cxx_comdat_group): New function.
11613 2004-09-15 Jan Hubicka <jh@suse.cz>
11615 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
11616 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
11618 * tree-cfg.c (remove_bb): Release SSA defs.
11620 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
11622 * doc/tm.texi: Follow spelling conventions.
11624 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
11626 * tree-ssa-dom.c: Fix comment typos.
11628 2004-09-15 Alan Modra <amodra@bigpond.net.au>
11630 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
11632 (ppc_fallback_frame_state): Save location of CR.
11634 2004-09-15 Jakub Jelinek <jakub@redhat.com>
11636 * expr.c (string_constant): Handle also read-only variables
11637 initialized to string literals.
11639 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
11640 into memcpy (x, y, 1) if memcpy can be expanded inline.
11642 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11644 PR tree-optimization/17468
11645 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
11646 definition inside a block precede uses.
11647 * tree-tailcall.c (adjust_return_value): Emit statements in the
11650 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
11652 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
11654 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
11656 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
11658 2004-09-14 Jeff Law <law@redhat.com>
11660 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
11661 (struct dom_walk_block_data): Remove avail_exprs member.
11662 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
11663 (lookup_avail_expr): No longer need to pass in address of
11664 the block local available exprs stack. All callers changed.
11665 (simplify_cond_and_lookup_avail_expr): Similarly.
11666 (simplify_switch_and_lookup_avail_expr): Similarly.
11667 (get_eq_expr_value, record_cond): Likewise.
11668 (record_dominating_conditions): Likewise.
11669 (update_rhs_and_lookup_avail_expr): Likewise.
11670 (record_equivalences_from_stmt): Likewise.
11671 (dom_opt_initialize_block_local_data): No longer test state of
11672 block local avail_exprs.
11673 (dom_opt_initialize_block): Mark unwind point in the global
11675 (remove_expressions_from_table): Update to unwind to the
11676 most recent unwind marker in the global avail_expr stack.
11677 All callers changed.
11678 (dom_opt_finalize_block): Mark unwind point in the global
11679 avail_expr stack as needed.
11680 (record_cond): Push elements into the global avail_exprs stack.
11682 * tree-dfa.c (free_df_for_stmt): No longer static.
11683 (free_df): Update comments.
11684 * tree-flow.h (free_df_for_stmt): Prototype.
11685 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
11688 2004-09-14 Diego Novillo <dnovillo@redhat.com>
11690 PR tree-optimization/17252
11691 * tree-ssa-alias.c (may_alias_p): Don't assume that a
11692 pointer may not point to itself when using relaxed
11695 2004-09-14 Richard Henderson <rth@redhat.com>
11697 PR middle-end/17397
11698 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
11699 while folding <ADDR_EXPR <INDIRECT_REF X>>.
11701 2004-09-14 Andrew Pinski <apinski@apple.com>
11703 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
11704 sets of the pointers but the aliasing sets of what they point to.
11706 2004-09-14 Roger Sayle <roger@eyesopen.com>
11708 PR rtl-optimization/9771
11709 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
11710 conditional compilation in init_reg_sets_1.
11711 (init_reg_sets_1): Let global_regs[i] take priority over the frame
11712 (but not stack) pointer exceptions to regs_invalidated_by_call.
11713 (globalize_reg): Globalizing a fixed register may need to update
11714 regs_invalidated_by_call.
11716 2004-09-14 Diego Novillo <dnovillo@redhat.com>
11718 PR tree-optimization/15262
11719 * tree-dfa.c (dump_variable): Also print the type of the
11721 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
11722 memory tags are of conflicting alias sets but have no aliased
11723 symbols in common, add one tag to the alias set of the other.
11724 (setup_pointers_and_addressables): Remove hack to deal with
11725 programs with no aliased symbols.
11726 (may_alias_p): Don't special case aggregate types.
11728 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
11731 * doc/invoke.texi (Environment Variables): Correct example locale.
11733 2004-09-14 Jan Hubicka <jh@suse.cz>
11735 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
11737 2004-09-14 Mark Mitchell <mark@codesourcery.com>
11739 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
11741 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
11743 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
11745 (struct c_declarator): Change u.array.quals and pointer_quals to
11746 int. Add u.array.attrs.
11747 (quals_from_declspecs): New.
11748 * c-decl.c (quals_from_declspecs): New.
11749 (shadow_tag_warned): Give more specific message for useless type
11751 (build_array_declarator, set_array_declarator_inner,
11752 grokdeclarator, make_pointer_declarator, build_null_declspecs,
11753 declspecs_add_qual): Update for changed structures.
11755 2004-09-14 Jeff Law <law@redhat.com>
11757 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
11758 to a global varray.
11759 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
11760 (dom_opt_initialize_block_local_data): No longer test state
11761 of stmts_to_rescan.
11762 (dom_opt_finalize_block): Update due to change in scope of
11764 (optimize_stmt): Similarly.
11766 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11768 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
11769 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
11770 comment typos. Follow spelling conventions.
11772 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11774 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
11775 config/i386/predicates.md, config/sparc/sparc.c: Follow
11776 spelling conventions.
11778 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11779 Steven Bosscher <stevenb@suse.de>
11781 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
11782 * basic-block.h (struct reorder_block_def): Add copy_number field.
11783 * cfgloop.h (biv_p): Declare.
11784 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
11785 * common.opt (fsplit-ivs-in-unroller): New flag.
11786 * loop-iv.c (biv_p): New function.
11787 * loop-unroll.c: Include hashtab.h and recog.h.
11788 (struct iv_to_split, struct split_ivs_info): New types.
11789 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
11790 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
11791 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
11792 insert_base_initialization, split_iv): New functions.
11793 (peel_loop_completely, unroll_loop_constant_iterations,
11794 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
11796 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
11798 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11800 * tree-cfg.c (thread_jumps): Update dominators correctly in
11801 case destination of threaded edge dominates its source.
11803 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11805 * unroll.c: Removed.
11807 * Makefile.in (LOOP_H, unroll.o): Removed.
11808 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
11810 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
11812 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
11813 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
11814 * loop.c: Do not include loop.h.
11815 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
11816 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
11817 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
11818 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
11819 struct loop_regs, struct loop_movables, struct loop_info): Moved
11821 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
11822 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
11823 find_common_reg_term, loop_iterations, final_giv_value): Moved
11825 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
11826 loop_dump_stream, for_each_insn_in_loop, express_from,
11827 extend_value_for_giv, loop_iv_add_mult_emit_before,
11828 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
11829 loop_insn_first_p, get_condition_for_loop,
11830 loop_insn_emit_before, loop_insn_hoist,
11831 loop_insn_sink): Made static.
11832 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
11834 (strength_reduce): Do not call unroller.
11835 (record_giv): Do not initialize unrolled field.
11836 (prescan_loop): Do not set loop_info->preconditioned.
11837 * passes.c: Do not include loop.h.
11838 (rest_of_handle_loop_optimize): Do not call unroller.
11839 * predict.c: Do not include loop.h.
11840 * rtl.h (NOTE_PRECONDITIONED): Removed.
11841 * stmt.c: Do not include loop.h.
11842 * toplev.c: Do not include loop.h.
11843 (process_options): Do not handle flag_old_unroll_loops.
11845 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
11846 Documentation removed.
11847 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
11849 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
11851 * Makefile.in (STAGE1_CHECKING): New variable.
11852 (stage1_build): Use it.
11853 * tree-ssa.c (verify_ssa): Preserve state of dominance
11856 2004-09-14 Uros Bizjak <uros@kss-loka.si>
11858 * config/i386/i386.c (output_fp_compare): Add generation
11859 of ftst instruction.
11860 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
11861 Use output_fp_compare () function.
11862 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
11863 (fix_truncdi_memory): Remove operands[5] copy.
11865 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11867 * config/m32r/m32r.md, config/m68k/m68kelf.h,
11868 config/mcore/mcore.md, config/rs6000/linux64.h,
11869 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
11872 2004-09-13 James E Wilson <wilson@specifixinc.com>
11874 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
11875 * gen-protos.c: Include errors.h.
11876 (progname): Delete.
11878 2004-09-14 Jan Hubicka <jh@suse.cz>
11880 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
11881 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
11882 (predict_loops): Use number_of_iterations_exit to predict
11883 number of iterations on trees.
11885 2004-09-13 Dale Johannesen <dalej@apple.com>
11889 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
11890 objects declared extern.
11892 2004-09-14 Paul Brook <paul@codesourcery.com>
11894 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
11897 2004-09-13 Daniel Jacobowitz <dan@debian.org>
11899 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
11900 Only use TYPE_BINFO for aggregates.
11902 2004-09-13 Daniel Jacobowitz <dan@debian.org>
11904 * expmed.c (synth_mult): Initialize latency. Check cost before
11905 checking ops count.
11907 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
11909 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
11910 add_call_clobber_ops and add_call_read_ops.
11911 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
11912 the number of vdefs and vuses inserted based on analysis of global
11913 variables across calls. * tree-dfa.c (find_referenced_vars):
11914 Needed to reset static var maps before each function is compiled.
11916 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
11917 static_vars_info,functions_to_static_vars_info,module_statics_escape,
11918 all_module_statics,searchc_env,dfs_info): New fields to support
11919 analysis of static global variables.
11920 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
11921 cgraph_reset_static_var_maps, get_global_static_vars_info,
11922 get_global_statics_not_read, get_global_statics_not_written,
11923 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
11924 check_rhs_var, check_lhs_var, get_asm_expr_operands,
11925 process_call_for_static_vars, scan_for_static_refs,
11926 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
11927 clear_static_vars_maps, cgraph_propagate_bits,
11928 cgraph_characterize_statics): New. Functions to support analysis
11929 of static global variables.
11930 (cgraph_mark_local_and_external_functions): Renamed from:
11931 (cgraph_mark_local_functions)
11932 (cgraph_expand_all_functions): Remove call to
11933 cgraph_mark_local_and_external_functions.
11934 (cgraph_optimize): Added driver to analyze static variables whose
11935 scope is within the compilation unit. * cgraph.h (struct
11936 cgraph_local_info, GTY): Added statics_read, statics_written,
11937 local, calls_read_all, calls_write_all, for_functions_valid.
11938 (struct cgraph_node): Added next_cycle. * cgraph.c
11939 (dump_cgraph_node): Added print routines for new fields. *
11940 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
11943 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
11945 * c-decl.c (grokdeclarator): Correct comments about where storage
11946 class specifiers are rejected by grammar and add corresponding
11947 asserts. Diagnose typedefs and parameters declared inline.
11948 Change warning for inline main to a pedwarn. Only diagnose inline
11950 (declspecs_add_scspec): Allow duplicate "inline".
11952 2004-09-13 Steve Ellcey <sje@cup.hp.com>
11954 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
11955 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11957 2004-09-13 Richard Henderson <rth@redhat.com>
11960 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
11961 (tree_type): Replace spare with contains_placeholder_bits.
11962 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
11963 make static. Remove seen_types list.
11964 (type_contains_placeholder_p): New.
11966 2004-09-13 James E Wilson <wilson@specifixinc.com>
11968 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
11969 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
11970 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
11971 bdesc_arrays instead of mips_bdesc.
11972 (mips_init_builtins): Likewise.
11973 * config/mips/mips.h (TARGET_SB1): New.
11974 (HAVE_SQRT_P): Delete.
11975 * config/mips/mips.md (divide_condition): Support V2SF.
11976 (sqrt_condition, recip_condition): New.
11977 (div<mode>3): Use ANYF instead of SCALARF.
11978 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
11980 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
11981 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
11983 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
11984 instead of SCALARF. Use UNITMODE instead of MODE.
11986 2004-09-13 Zack Weinberg <zack@codesourcery.com>
11988 * config.in: Regenerate after removal of libbanshee.
11990 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
11992 PR tree-optimization/17400
11993 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11994 coalesce partitions when one occurs in an abnormal PHI.
11996 2004-09-13 Andrew Pinski <apinski@apple.com>
11998 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
12001 2004-09-13 Richard Henderson <rth@redhat.com>
12004 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
12005 (cselib_invalidate_rtx_note_stores): New.
12006 (cselib_record_sets, cselib_process_insn): Update to match.
12007 * cselib.h (cselib_invalidate_rtx): Declare.
12008 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
12010 2004-09-13 Richard Henderson <rth@redhat.com>
12013 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
12014 after copying its argument.
12016 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
12018 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
12019 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
12020 in diagnostics. Use %' for English apostrophes.
12021 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
12022 (pedwarn_c90, pedwarn_c99): Use it.
12023 * c-decl.c (lookup_label): Quote label name in diagnostic.
12024 * c-parse.in (yyprint): Use ' instead of ` for left quote.
12025 * c-typeck.c (warn_for_assignment): Likewise.
12027 2004-09-13 Jan Hubicka <jh@suse.cz>
12029 * i386.c (x86_schedule): New global variable.
12030 (override_options): Disable scheduling when not supported.
12031 * i386.h (x86_schedule): Declare.
12032 (TARGET_SCHEDULE): New macro.
12034 2004-09-12 Richard Henderson <rth@redhat.com>
12037 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
12038 * tree.c, tree.h (has_cleanups): Remove.
12040 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12042 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
12043 arguments of the phi nodes correctly.
12045 2004-09-12 Jan Hubicka <jh@suse.cz>
12047 * ggc-common.c (cmp_statistics): Fix sorting.
12049 2004-09-12 David Edelsohn <edelsohn@gnu.org>
12052 * expmed.c (expand_divmod): If cheap power of 2 divide is
12053 available, use it for negative constant as well.
12055 2004-09-12 Andrew Pinski <apinski@apple.com>
12057 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
12060 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
12062 2004-09-12 Richard Henderson <rth@redhat.com>
12064 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
12066 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
12067 post-reload, and scratch NULL.
12068 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
12069 (x86_shift_adj_2): Use ix86_expand_clear.
12070 (ashldi3): Remove CMOVE expansion difference.
12071 (ashldi3_1): Remove.
12072 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
12073 add constraints for immediates. New peephole for split-with-temp.
12074 Run splitter after peep2 pass.
12075 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
12076 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
12077 (setcc_2): Rename with *.
12078 * config/i386/predicates.md (reg_or_pm1_operand): New.
12079 (ashldi_input_operand): New.
12081 2004-09-12 Richard Henderson <rth@redhat.com
12083 * print-rtl.c (print_decl_name): New.
12084 (print_mem_expr): Use it.
12086 2004-09-12 Richard Henderson <rth@redhat.com
12088 PR 17186, part deux
12089 * except.c (sjlj_emit_function_exit): Fix logic locating
12090 sjlj_exit_after in final block.
12092 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
12094 * common.opt: Remove flags -fmove-all-movables and
12096 * loop-invariant.c (find_invariants_to_move):
12097 Remove all uses of flag_move_all_movables.
12098 * loop.c (move_movables): Remove all uses of
12099 flag_move_all_movables.
12100 (strength_reduce): Remove all uses of
12101 flag_reduce_all_givs.
12102 * doc/invoke.texi: Remove documentation of flags
12103 -fremove-all-movables and -freduce-all-givs.
12105 2004-09-11 Roger Sayle <roger@eyesopen.com>
12107 PR middle-end/17411
12108 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
12109 change. elt->type may be a floating point type, so use fold_convert.
12111 2004-09-11 Geoffrey Keating <geoffk@apple.com>
12113 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
12114 the thing referenced as used, not the stub itself.
12116 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12118 * c-tree.h (enum c_storage_class): New.
12119 (struct c_declspecs): Add storage_class, inline_p and thread_p.
12120 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
12121 declarations and "auto" or "register" in file scope empty
12122 declarations. Give more specific warnings for other cases of
12123 storage class specifiers in empty declarations.
12124 (grokdeclarator): Update for new structures. Don't check for
12125 multiple storage classes. Diagnose file-scope "register" if
12127 (build_null_declspecs): Update.
12128 (declspecs_add_scspec): Update. Diagnose multiple storage class
12129 specifiers and invalid uses of "__thread".
12131 2004-09-11 Zack Weinberg <zack@codesourcery.com>
12133 * tree.c (tree_code_size): New function, bulk of code from tree_size.
12134 (tree_size, make_node): Use it.
12135 * tree-ssa-pre.c (init_pre): Use it.
12136 * tree.h: Prototype it.
12138 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12140 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
12141 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
12142 redirect_immediate_use): Use PHI_DF.
12143 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
12144 (bb_for_stmt): Use PHI_BB.
12145 (get_immediate_uses): Use PHI_DF.
12146 * tree-ssa-dse.c (max_stmt_uid): New variable.
12147 (get_stmt_uid): New function.
12148 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
12150 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
12151 (max_uid): Renamed to max_stmt_uid.
12152 (get_stmt_uid): New function.
12153 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
12154 phi node annotations.
12155 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
12156 * tree.h (PHI_BB, PHI_DF): New accessor functions.
12157 (struct tree_phi_node): Add bb and df fields.
12159 2004-09-11 Richard Henderson <rth@redhat.com>
12161 PR middle-end/17416
12162 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
12165 2004-09-11 Jan Hubicka <jh@suse.cz>
12167 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
12168 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
12169 * i386.md (i387_cw): Add 'uninitialized' mode.
12171 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
12172 (output_location): Break out from ....
12173 (branch_prob): ... here; handle gcov output on trees.
12174 * toplev.c (process_options): No longer be sorry about coverage for
12177 2004-09-11 Steven Bosscher <stevenb@suse.de>
12180 * fold-const.c (fold): Do not try to fold the operand of a
12181 CLEANUP_POINT_EXPR if that operand does itself not have any
12184 PR middle-end/17417
12185 * langhooks.c (lhd_decl_printable_name): Make sure that this
12186 function is called with is a decl node that has an identifier.
12187 * tree-pretty-print.c (dump_function_name): New function to
12188 wrap PRINT_FUNCTION_NAME and dump_decl_name.
12189 (print_call_name): Use it.
12191 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
12193 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
12196 2004-09-11 Jakub Jelinek <jakub@redhat.com>
12198 * tree-ssa-alias.c (collect_points_to_info_r): Handle
12199 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
12202 2004-09-11 Richard Henderson <rth@redhat.com>
12204 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
12205 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
12206 operand of the ADDR_EXPR.
12207 (expand_expr_real_1): Update to match.
12209 2004-09-11 David Edelsohn <edelsohn@gnu.org>
12212 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
12213 choose 64-bit version.
12215 2004-09-11 Richard Henderson <rth@redhat.com>
12218 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
12220 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
12222 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
12223 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
12224 Insert @: after i.e. or e.g.
12226 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12228 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
12229 D.xxx rather than <Dxxx>.
12231 2004-09-10 Adam Nemet <anemet@lnxw.com>
12233 * configure.ac (AC_MSG_CHECKING(what linker to use)):
12234 in_tree_ld_is_elf should be true for LynxOS.
12235 * configure: Regenerate.
12237 2004-09-10 Adam Nemet <anemet@lnxw.com>
12239 * Makefile.in (all.cross): Add srcextra.
12241 2004-09-10 Roger Sayle <roger@eyesopen.com>
12243 PR middle-end/17024
12244 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
12245 floating point comparison operators. Change aborts to gcc_asserts.
12247 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12249 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
12251 2004-09-10 James E Wilson <wilson@specifixinc.com>
12253 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
12254 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
12256 * convert.c (convert_to_vector): Replace recursive call with
12259 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
12260 Add integer argument named constant. Use const_tiny_rtx instead of
12262 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
12264 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
12266 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
12267 of gen_rtx_raw_CONST_VECTOR.
12269 2004-09-10 Eric Christopher <echristo@redhat.com>
12272 * c-parse.in (attribute): Add NULL_TREE for error case
12273 for error recovery.
12275 2004-09-10 Zack Weinberg <zack@codesourcery.com>
12277 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
12278 (extract_interface_info): Delete prototype.
12279 * c-decl.c (extract_interface_info): Delete stub.
12280 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
12281 it's not already been done ...
12282 (init_c_lex): ... not here.
12283 (fe_file_change): Don't call extract_interface_info.
12285 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12287 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
12288 typedef_p and typedef_signed_p.
12289 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
12290 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
12291 Check typedef_p and typedef_signed_p, not typedef_decl.
12292 (grokfield): Check typedef_p, not typedef_decl.
12293 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
12295 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
12298 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12300 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
12302 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12304 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
12305 temporary variables.
12307 * dbxout.c (dbxout_block): Update for
12308 current_function_func_begin_label a string.
12309 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
12310 * except.c (dw2_output_call_site_table): Likewise.
12311 * toplev.c (current_function_func_begin_label): Likewise.
12312 * tree.h (current_function_func_begin_label): Likewise.
12313 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
12315 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
12318 * config/darwin.c: Include target.h.
12319 (struct machopic_indirection): Make ptr_name a string.
12320 (machopic_indirection_hash): Update for ptr_name a string.
12321 (machopic_indirection_eq): Likewise.
12322 (machopic_indirection_name): Likewise.
12323 (machopic_output_indirection): Likewise.
12324 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
12325 string. Don't expect stub names to be in the identifier hash table.
12326 Do call strip_name_encoding before looking up entry in ID hash table.
12327 * config/t-darwin (darwin.o): Add target.h to dependencies.
12329 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
12330 of fprintf for register names.
12332 * output.h (unlikely_section_label): Delete declaration.
12333 (unlikely_text_section_name): Likewise.
12334 * varasm.c (unlikely_section_label_printed): Make static.
12335 (unlikely_section_label): Likewise.
12336 (unlikely_text_section_name): Likewise.
12337 (assemble_start_function): Use reconcat.
12339 * rtl.def (REG): Add comment to describe third field.
12341 2004-09-10 Andrew Pinski <apinski@apple.com>
12343 * config/darwin.c (machopic_mcount_stub_name): Call
12344 machopic_indirection_name instead of making the string
12347 2004-09-10 Diego Novillo <dnovillo@redhat.com>
12351 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
12353 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12354 memory tag is call clobbered, so are its aliases.
12355 (group_aliases): When two memory tags being grouped, if one is
12356 call clobbered, so are the other and its aliases.
12357 (add_may_alias): Remove call-clobbering stuff.
12358 (replace_may_alias): Likewise.
12359 (merge_pointed_to_info): Merge pt_global_mem
12361 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12363 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
12364 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
12365 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
12366 tree-scalar-evolution.c, tree-ssa-copyrename.c,
12367 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
12369 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12371 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
12372 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
12373 pair. Remove match_dup from inputs. Remove masaccs handling.
12374 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
12375 (masaccs, mdasaccs): Turn into define_insns.
12377 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12379 * tree-tailcall.c (process_assignment): Only do accumulator transforms
12380 for floating-point types if flag_unsafe_math_optimizations.
12382 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12384 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
12385 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
12386 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
12387 config/h8300/h8300.md, config/i386/gmm_malloc.h,
12388 config/ia64/ia64.md, config/ip2k/libgcc.S,
12389 config/mips/mips-ps-3d.md, config/mips/mips.c,
12390 config/rs6000/rs6000.c, config/s390/s390.c,
12391 config/sh/symbian.c: Fix comment typos.
12393 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
12395 * config/s390/s390.c (s390_emit_prologue): Added missing
12398 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12400 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
12401 typos. Follow spelling conventions.
12403 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
12405 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
12406 in diagnostic. Don't dereference NULL TYPE_NAME.
12408 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12410 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
12411 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
12412 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
12413 value-prof.c: Fix comment typos. Follow spelling conventions.
12415 2004-09-10 Jan Hubicka <jh@suse.cz>
12417 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
12418 * tree-split_edge.c (tree_split_edge): Likewise.
12419 (thread_jumps): Likewise.
12421 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12423 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
12426 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
12428 * cgraph.h (cgraph_dump_file): Do not declare.
12429 * cgraphunit.c (cgraph_dump_file): Declare as static.
12430 (init_cgraph): New.
12431 * toplev.c (cgraph_dump_file): Do not declare.
12432 (compile_file): Call init_cgraph.
12433 * tree-dump.c (dump_files): Add IPA dump file, remove
12434 XML dump of call graph.
12435 (get_dump_file_name): Support IPA dump file naming scheme.
12436 * tree.h (enum tree_dump_index): Add IPA dump file, remove
12437 XML dump of call graph.
12438 * doc/invoke.texi (Debugging Options): Document the new options.
12440 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12442 * doc/extend.texi: Document the FR-V built-in functions.
12444 2004-09-09 James E Wilson <wilson@specifixinc.com>
12446 * doc/sourcebuild.texi: Delete libbanshee reference.
12448 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
12450 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
12452 2004-09-09 James E Wilson <wilson@specifixinc.com>
12454 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
12455 before calling vector_types_convertible_p.
12456 (digest_init): Check that inside_init has VECTOR_TYPE before calling
12457 vector_types_convertible_p. Don't give another error if
12458 convert_for_assignment returns error_mark_node.
12460 2004-09-09 Roger Sayle <roger@eyesopen.com>
12462 PR middle-end/17055
12463 * fold-const.c (build_zero_vector): New function to construct a
12464 vector (either floating point or integer) of zeros.
12465 (fold_convert): Internally, enable conversions of integer zero
12466 to arbitrary vector types, using the new build_zero_vector.
12468 2004-09-09 Roger Sayle <roger@eyesopen.com>
12470 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
12471 expand a left shift by an immediate constant as either an ashl or
12472 a sequence of additions.
12473 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
12474 instead of calling gen_ashlsi3 with a constant directly.
12476 2004-09-09 Roger Sayle <roger@eyesopen.com>
12478 * config/i386/i386.c (ix86_split_long_move): When optimizing for
12479 size, and the low and high parts of a DImode constant are equal,
12480 copy one register to another instead of loading the same immediate
12483 2004-09-09 Richard Henderson <rth@redhat.com>
12485 PR middle-end/17367
12486 * function.c (assign_parm_setup_block): Only put PARALLELs into
12487 a register if use_register_for_decl.
12489 2004-09-09 Eric Christopher <echristo@redhat.com>
12491 * ra-colorize.c (reset_lists): Move variable declaration inside
12492 ENABLE_CHECKING to avoid unused variable warnings when
12493 not --enable-checking.
12494 (check_colors): Ditto.
12496 2004-09-09 Mike Stump <mrs@apple.com>
12498 * version.c (version_string): Bump to 4.0.0.
12499 * doc/include/gcc-common.texi (version-GCC): Likewise.
12501 2004-09-10 Jakub Jelinek <jakub@redhat.com>
12503 * doc/extend.texi (nothrow attribute): The attribute is not
12504 implemented in 3.2 and earlier.
12506 2004-09-09 Steve Ellcey <sje@cup.hp.com>
12508 * genrecog.c (compute_predicate_codes): Use op0_codes
12511 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12513 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
12514 implementation changes.
12516 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12518 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
12519 a PARALLEL instead of a SET due to added clobbers.
12521 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12523 * reload.c (find_reloads_address): Pass correct operand to
12524 maybe_memory_address_p.
12526 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
12528 * Makefile.in: Remove libbanshee, tree-alias-*.
12529 Remove tree-alias-common.h dependencies.
12530 * common.opt: Remove -ftree-points-to.
12531 * configure.ac: Remove libbanshee.
12532 * flags.h: Remove pta_type, flag_tree_points_to.
12533 * gengtype.c (open_base_files): Remove tree-alias-type.h.
12534 * opts.c (OPT_ftree_points_to): Remove.
12535 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
12536 * tree-dfa.c: Remove tree-alias-common.h
12537 * tree-into-ssa.c: Ditto.
12538 * tree-outof-ssa.c: Ditto.
12539 * tree-ssa-copyrename.c: Ditto.
12540 * tree-ssa-live.c: Ditto.
12541 * tree-optimize.c: Ditto.
12542 * tree-ssa.c: Ditto.
12543 Remove pass_build_pta, pass_del_pta.
12544 * tree-pass.h: Ditto.
12545 * tree-ssa-alias.c: Remove tree-alias-common.h.
12546 (struct alias_stats_d): Remove pta_queries, pta_resolved.
12547 (pass_may_alias): Remove PROP_pta requirement.
12548 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
12549 (get_tmt_for): Ditto.
12550 (dump_alias_stats): Ditto.
12551 * doc/passes.texi: Remove blurb about points-to analysis.
12552 * fortran/Make-lang.in: Remove tree-alias-*.o.
12554 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12556 * genattrtab.c (write_insn_cases): New function, split out from
12557 write_attr_case. Correctly handle define_peepholes when printing
12558 the instruction name.
12559 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
12561 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
12564 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
12565 * config/cris/cris.c (cris_return_address_on_stack): New function.
12566 * config/cris/cris.md ("return"): For location of return address,
12567 also check cris_return_address_on_stack.
12569 2004-09-09 Diego Novillo <dnovillo@redhat.com>
12571 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
12572 calling phi_ssa_name_p.
12574 2004-09-09 Richard Henderson <rth@redhat.com>
12577 * c-typeck.c (valid_compound_expr_initializer): Use only
12578 initializer_constant_valid_p, and not TREE_CONSTANT.
12579 (digest_init): Likewise.
12580 (output_init_element): Likewise.
12582 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
12584 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
12585 live_out_1, prune_hardregs_for_mode, init_one_web_common,
12586 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
12587 record_conflict, compare_and_free_webs, init_webs_defs_uses,
12588 parts_to_webs_1, parts_to_webs, reset_conflicts,
12589 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
12590 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
12591 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
12592 put_move, remove_move, combine, select_spill, colorize_one_web,
12593 try_recolor_web, insert_coalesced_conflicts, check_colors,
12594 break_precolored_alias, restore_conflicts_from_coalesce,
12595 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
12596 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
12597 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
12598 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
12599 check_df): Likewise.
12600 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
12601 real_arithmetic, real_compare, real_exponent, real_ldexp,
12602 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
12603 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
12604 real_digit, real_nan, real_maxval, round_for_format, real_convert,
12605 real_to_target, real_from_target, real_hash, encode_ieee_single,
12606 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
12607 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
12608 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
12609 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
12610 extract_insn, peep2_next_insn, peep2_reg_dead_p,
12611 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
12612 if_test_bypass_p): Likewise.
12613 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
12614 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
12615 emit_swap_insn, swap_to_top, move_for_stack_reg,
12616 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
12617 compensate_edge, convert_regs_1): Likewise.
12618 * regclass.c (init_reg_sets, init_reg_sets_1,
12619 memory_move_secondary_cost): Likewise.
12620 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
12622 * reload.c (push_secondary_reload, find_valid_class, push_reload,
12623 operands_match_p, decompose, immune_p, find_reloads,
12624 find_reloads_toplev, find_reloads_address_1, subst_reloads,
12625 copy_replacements, refers_to_regno_for_reload_p,
12626 reg_overlap_mentioned_for_reload_p): Likewise.
12627 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
12628 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
12629 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
12630 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
12631 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
12632 do_output_reload, fixup_abnormal_edges): Likewise.
12633 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
12634 fill_slots_from_thread, relax_delay_slots): Likewise.
12635 * resource.c (mark_referenced_resources, mark_set_resources):
12637 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
12638 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
12639 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
12640 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
12641 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
12642 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
12643 * rtlhooks.c (gen_lowpart_general): Likewise.
12644 * sbitmap.c (sbitmap_difference): Likewise.
12645 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
12646 sched_analyze, add_forward_dependence): Likewise.
12647 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
12648 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
12649 schedule_insns): Likewise.
12650 * sched-vis.c (print_pattern): Likewise.
12651 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
12652 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
12653 simplify_const_relational_operation, simplify_ternary_operation,
12654 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
12656 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
12657 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
12658 resolve_operand_name_1, expand_return, expand_decl,
12659 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
12660 * stor-layout.c (put_pending_size, smallest_mode_for_size,
12661 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
12662 set_sizetype, get_mode_bounds): Likewise.
12664 2004-09-09 Zack Weinberg <zack@codesourcery.com>
12666 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
12667 * config/arm/pecoff.h, config/i386/beos-elf.h
12668 * config/i386/cygming.h, config/i386/i386-interix.h:
12669 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
12670 comment cloned from manual.
12671 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
12673 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
12675 * builtins.c (build_va_arg_indirect_ref): New function.
12676 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
12677 build_fold_indirect_ref.
12678 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
12679 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
12680 * tree.h: Declare new function.
12682 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12684 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
12685 dumping for development builds.
12686 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
12687 development builds only.
12688 * genattrtab.c (write_eligible_delay): Fix typo in previous
12690 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
12693 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12695 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
12696 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
12697 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
12698 hoist_code, extract_mentioned_regs_helper, compute_store_table,
12699 insert_store): Use gcc_assert and gcc_unreachable.
12700 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
12701 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
12702 ggc_record_overhead): Likewise.
12703 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
12704 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
12705 ggc_pop_context, clear_marks, validate_free_objects,
12706 ggc_pch_read): Likewise.
12707 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
12708 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
12709 ggc_push_context, check_cookies, ggc_collect,
12710 ggc_print_statistics): Likewise.
12711 * gimple-low.c (lower_function_body, lower_stmt,
12712 lower_bind_expr): Likewise.
12713 * gimplify.c (gimple_tree_eq, push_gimplify_context,
12714 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
12715 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
12716 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
12717 gimplify_case_label_expr, gimplify_exit_block_expr,
12718 canonicalize_component_ref, gimplify_compound_lval,
12719 gimplify_self_mod_expr, gimplify_call_expr,
12720 gimplify_init_ctor_eval, gimplify_init_constructor,
12721 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
12722 gimplify_expr, check_pointer_types_r,
12723 force_gimple_operand): Likewise.
12724 * global.c (global_alloc, build_insn_chain): Likewise.
12725 * graph.c (clean_graph_dump_file,
12726 finish_graph_dump_file): Likewise.
12727 gcov-io.c (gcov_open): Use GCOV_CHECK.
12729 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12731 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
12733 2004-09-09 Jan Hubicka <jh@suse.cz>
12736 * tree-inline.c (expand_call_inline): Make overactive sanity check
12739 2004-09-09 Jan Hubicka <jh@suse.cz>
12741 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
12744 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12746 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
12747 (gengtype.o): Depend on errors.h.
12748 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
12749 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
12750 attr_alt_subset_p, attr_alt_subset_of_compl_p,
12751 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
12752 write_test_expr, write_attr_value, write_eligible_delay,
12753 make_internal_attr, make_numeric_value): Likewise.
12754 * genautomata.c (regexp_name, get_str_vect,
12755 gen_presence_absence_set, automaton_decl_hash,
12756 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
12757 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
12758 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
12759 test_unit_reserv, it_is_empty_reserv_sets,
12760 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
12761 reserv_sets_and, output_cycle_reservs, get_free_state,
12762 intersected_state_reservs_p, states_union, remove_arc,
12763 copy_insn_regexp, transform_1, transform_2, transform_3,
12764 regexp_transform_func, store_alt_unit_usage,
12765 check_regexp_units_distribution, process_seq_for_forming_states,
12766 process_alts_for_forming_states, make_automaton,
12767 form_arcs_marked_by_insn, create_composed_state,
12768 set_out_arc_insns_equiv_num, partition_equiv_class,
12769 process_insn_equiv_class, set_insn_equiv_classes,
12770 units_to_automata_heuristic_distr, form_regexp,
12771 longest_path_length, output_dfa_max_issue_rate, add_vect,
12772 out_state_arcs_num, add_vect_el, output_trans_table,
12773 output_state_alts_table, output_dead_lock_vect,
12774 output_max_insn_queue_index_def,
12775 output_min_insn_conflict_delay_func,
12776 output_internal_insn_latency_func, output_print_reservation_func,
12777 output_cpu_unit_reservation_p, output_state_arcs,
12778 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
12779 make_default_insn_latency_attr,
12780 form_important_insn_automata_lists): Likewise.
12781 * genemit.c (gen_exp, output_add_clobbers,
12782 output_added_clobbers_hard_reg_p): Likewise.
12783 * genextract.c (print_path, main): Likewise.
12784 * genflags.c (gen_macro): Likewise.
12785 * gengenrtl.c: Include errors.h
12786 (type_from_format, accessor_from_format): Likewise.
12787 * gengtype.c (get_file_basename, output_mangled_typename,
12788 walk_type, write_types_process_field,
12789 write_types_local_process_field): Likewise.
12790 * genmodes.c (complete_mode): Likewise.
12791 * genopinit.c (gen_insn): Likewise.
12792 * genoutput.c (output_insn_data, check_constraint_len,
12793 constraint_len): Likewise.
12794 * genpreds.c (add_mode_tests):Likewise.
12795 * gen-protos.c (add_hash): Likewise.
12796 * genrecog.c (find_operand, find_matching_operand,
12797 validate_pattern, add_to_sequence, maybe_both_true,
12798 nodes_identical_1, merge_trees, write_switch, write_cond,
12799 write_action, is_unconditional, make_insn_sequence,
12800 debug_decision_2): Likewise.
12801 * gensupport.c (is_predicable, collect_insn_data,
12802 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
12804 2004-09-09 Jan Hubicka <jh@suse.cz>
12806 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
12807 * cfgbuild.c (compute_outgoing_frequencies): When probability is
12809 (find_many_sub_basic_blocks): Do update profile only when it is
12811 * predict.c (set_even_probabilities): Break out from ...
12812 (combine_predictions_for_insn): ... here; deal with
12813 !can_predict_insn_p insns.
12814 (combine_predictions_for_bb): Use set_even_probabilities.
12815 (bb_estimate_probability_locally): Break out from ....
12816 (estimate_probability): ... here.
12817 (guess_outgoing_edge_probabilities): New entry point.
12819 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12821 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
12822 handle_braces, process_brace_body, main, used_arg,
12823 set_multilib_dir, print_multilib_info): Use fatal, not abort.
12825 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
12827 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
12828 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
12829 Morgan's theorem in last checkin.
12831 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
12832 Nathan Sidwell <nathan@codesourcery.com>
12834 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
12835 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
12836 * timevar.c (timevar_push, timevar_pop, timevar_start,
12837 timevar_stop): Likewise.
12838 * toplev.c (default_pch_valid_p): Likewise.
12839 * tracer.c (tail_duplicate): Likewise.
12840 * tree-alias-common.c (get_alias_var_decl,
12841 get_values_from_constructor, create_alias_var, delete_alias_vars,
12842 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
12844 * tree.c (tree_size, make_node_stat, copy_node_stat,
12845 build_int_cst_wide, integer_all_onesp, list_length, chainon,
12846 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
12847 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
12848 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
12849 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
12850 build_method_type_directly, decl_type_context, get_callee_fndecl,
12851 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
12852 tree_fold_gcd): Likewise.
12853 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
12854 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
12855 cleanup_control_expr_graph, find_taken_edge,
12856 find_taken_edge_switch_expr, phi_alternatives_equal,
12857 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
12858 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
12859 tree_split_edge, tree_verify_flow_info, thread_jumps,
12860 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
12861 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
12862 chrec_fold_multiply_poly_poly): Likewise.
12863 * tree-complex.c (extract_component, expand_complex_division,
12864 expand_complex_comparison, expand_complex_operations_1,
12865 build_replicated_const, expand_vector_operations_1): Likewise.
12866 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
12867 build_classic_dir_vector): Likewise.
12868 * tree-dfa.c (compute_immediate_uses_for_phi,
12869 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
12870 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
12871 * tree-dump.c (dequeue_and_dump): Likewise.
12872 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
12873 record_in_finally_tree, replace_goto_queue_1,
12874 maybe_record_in_goto_queue, verify_norecord_switch_expr,
12875 do_return_redirection): Likewise.
12876 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
12877 add_to_dst_predicate_list, find_phi_replacement_condition,
12878 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
12880 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
12881 initialize_inlined_parameters, declare_return_variable,
12882 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
12883 optimize_inline_calls, copy_tree_r): Likewise.
12884 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
12885 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
12886 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
12887 tsi_split_statement_list_after, tsi_split_statement_list_before):
12889 * tree-mudflap.c (mf_varname_tree): Likewise.
12890 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
12891 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
12892 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12893 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
12894 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
12895 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
12897 * tree-phinodes.c (resize_phi_node, add_phi_arg,
12898 remove_all_phi_nodes_for): Likewise.
12899 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
12900 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
12901 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
12902 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
12903 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
12904 generate_one_element_ref, generate_element_copy,
12905 generate_element_zero, scalarize_copy, scalarize_init,
12906 scalarize_ldst): Likewise.
12907 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
12908 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
12909 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
12910 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
12911 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
12912 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
12913 widen_bitfield, ccp_fold_builtin): Likewise.
12914 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
12915 replace_exp_1, propagate_tree_value): Likewise.
12916 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
12917 * tree-ssa-dce.c (set_control_dependence_map_bit,
12918 find_control_dependence, find_pdom, mark_operand_necessary,
12919 mark_stmt_if_obviously_necessary,
12920 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
12921 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
12922 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
12923 eliminate_redundant_computations, avail_expr_eq): Likewise.
12924 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
12925 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
12926 duplicate_blocks): Likewise.
12927 * tree-ssa-loop-im.c (for_each_index, set_level,
12928 is_call_clobbered_ref): Likewise.
12929 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
12930 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
12931 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
12932 peel_address, ptr_difference_cost, may_replace_final_value,
12933 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
12934 rewrite_use, rewrite_uses): Likewise.
12935 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
12936 check_loop_closed_ssa_use): Likewise.
12937 * tree-ssanames.c (make_ssa_name): Likewise.
12938 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
12939 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
12940 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
12941 get_indirect_ref_operands, add_stmt_operand): Likewise.
12942 * tree-ssa-pre.c (value_exists_in_set_bitmap,
12943 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
12944 phi_translate, valid_in_set, compute_antic,
12945 find_or_generate_expression, create_expression_by_pieces, insert_aux,
12946 create_value_expr_from, eliminate): Likewise.
12947 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
12948 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
12950 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
12951 eliminate_tail_call): Likewise.
12952 * tree-vectorizer.c (vect_create_index_for_array_ref,
12953 vect_align_data_ref, vect_create_data_ref,
12954 vect_create_destination_var, vect_get_vec_def_for_operand,
12955 vect_finish_stmt_generation, vect_transform_stmt,
12956 vect_transform_loop_bound, vect_transform_loop,
12957 vect_analyze_operations): Likewise.
12958 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
12960 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
12961 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
12962 bsi_after_labels, bsi_last): Likewise.
12963 * tree-ssa-live.c (var_union, change_partition_var,
12964 create_ssa_var_map, calculate_live_on_entry, root_var_init,
12965 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
12967 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
12968 tpa_find_tree): Likewise.
12969 (register_ssa_partition_check): Declare.
12970 (register_ssa_partition): use it.
12971 * tree-ssa-live.c: Include errors.h.
12972 (register_ssa_partition_check): New.
12973 * tree-ssa-operands.c: Include errors.h.
12974 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
12976 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12977 Catherine Moore <clm@redhat.com>
12979 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
12980 (FRV_CPU_FR405): New processor enums.
12981 (frv_issue_rate, frv_acc_group): Declare.
12982 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
12983 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
12984 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
12985 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
12986 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
12987 handled by CPP_SPEC.
12988 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
12989 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
12990 (ACC_MASK): New macro.
12991 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
12992 (TARGET_MEDIA_FR450): New macro.
12993 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
12994 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
12995 (LABEL_ALIGN_AFTER_BARRIER): Define.
12996 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
12997 (IACC_FIRST, IACC_LAST): New pair of SPRs.
12998 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
12999 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13000 (REGISTER_NAMES): Add entries for new registers.
13001 (REG_CLASS_CONTENTS): Update for new register ranges.
13002 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
13003 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
13004 (PACKING_FLAG_USED_P): Delete.
13005 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
13006 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
13007 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
13008 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
13009 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
13010 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
13011 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
13012 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
13013 (CPU_UNITS_QUERY): Define to 1.
13014 * config/frv/frv.c: Include gt-frv.h
13015 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
13016 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
13017 (frv_insn_group): New enumeration.
13018 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
13019 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
13020 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
13021 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
13022 gap left by REGSTATE_LIVE.
13023 (regstate_t): New typedef.
13024 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13025 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
13026 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
13027 Initialize frv_unit_codes[] and frv_type_to_unit[].
13028 (frv_conditional_register_usage): Remove redundant fixing of
13029 accumulator registers.
13030 (frv_insn_packing_flag): Update specification.
13031 (frv_function_prologue): Don't set frv_insn_packing_flag here.
13032 Zero out frv_nops[].
13033 (frv_expand_epilogue): Remove comments about the no-longer-present
13034 SIBCALL_P argument.
13035 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
13036 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
13037 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
13038 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
13039 packing is disabled and if INSN can only issue to M1.
13040 (call_operand): Check TARGET_LONG_CALLS.
13041 (acc_operand, even_acc_operand, quad_acc_operand)
13042 (accg_operand): Simplify. Don't accept pseudo registers.
13043 (output_move_single): Handle SPR<-zero moves.
13044 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
13045 (frv_registers_update, frv_registers_used_p): Delete.
13046 (frv_registers_set_p): Delete.
13047 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
13048 (frv_issues_to_branch_unit_p): New function.
13049 (frv_packet): New structure.
13050 (frv_cond_flags, frv_regstate_conflict_p): New functions.
13051 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
13052 (frv_registers_update_1, frv_registers_update): New functions.
13053 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
13054 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
13055 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
13056 (frv_sort_insn_group, frv_reorder_packet): New functions.
13057 (frv_pack_insns): Use frv_reorder_packet.
13058 (frv_packet_address): New variable.
13059 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
13060 (frv_register_nop, frv_reorg): New functions.
13061 (bdesc_1arg): Add __SCUTSS.
13062 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
13063 __SUBSS, __SLASS and __SCAN.
13064 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
13065 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
13066 (frv_init_builtins): Register the above builtins.
13067 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
13068 registers. Turn the referenced accumulators into global registers.
13069 (frv_read_iacc_argument): New function.
13070 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
13071 (frv_split_iacc_move): New function.
13072 (frv_expand_builtin): Handle the new builtins.
13073 * config/frv/frv.md: Replace old schedulers with new order-independent
13074 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
13076 (cpu): Add fr550, fr450 and fr405.
13077 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
13078 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
13079 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
13080 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
13081 (fnop, mnop): New patterns.
13082 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
13084 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
13085 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
13087 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
13088 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
13089 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
13090 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
13091 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
13092 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
13093 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
13094 (frv_prefetch0, frv_prefetch): New patterns.
13095 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
13096 -mcpu=simple. Add -mcpu=fr550.
13097 (MULTILIB_DIRNAMES): Update accordingly.
13098 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
13100 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
13101 -mlong-calls and -malign-labels options for FR-V.
13103 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13106 * c-tree.h (struct c_declspecs): New.
13107 (struct c_declarator, struct c_type_name, struct c_parm): Update
13109 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
13110 start_function, start_decl, build_c_parm,
13111 make_pointer_declarator): Update prototypes.
13112 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13113 declspecs_add_scspec, declspecs_add_attrs): New.
13114 (split_specs_attrs): Remove.
13115 * c-parse.in (%union): Add dsptype.
13116 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13117 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13118 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13119 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13120 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13121 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13122 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13123 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
13124 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
13125 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
13126 maybe_type_quals_attrs): Change to dsptype.
13127 (struct c_declspec_stack): New.
13128 (current_declspecs, declspec_stack): Change type.
13129 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
13131 (extdefs): Likewise.
13132 (setspecs): Likewise.
13133 (fndef): Use current_declspecs for empty declspecs list.
13134 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13135 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13136 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13137 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13138 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13139 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13140 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13141 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
13142 structures and helper functions. Update comments.
13143 (typespec_nonattr): Correct comment.
13144 (maybe_type_quals_attrs, typename): Update to new structures.
13145 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
13146 shadow_tag, shadow_tag_warned, start_function, start_decl,
13147 build_c_parm, make_pointer_declarator,
13148 set_array_declarator_inner, groktypename): Update to new
13150 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13151 declspecs_add_scspec, declspecs_add_attrs): New.
13152 (split_specs_attrs): Remove.
13153 (shadow_tag_warned): Make warning for useless type names a
13154 pedwarn. Give hard error for long, short, signed, unsigned or
13155 _Complex used with struct, union or enum in empty declaration.
13156 Make found_tag a bool.
13157 (grokdeclarator): Remove checks now done at parse time.
13159 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13161 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
13162 c_declarator, struct c_type_name, struct c_parm): New.
13163 (build_array_declarator, set_array_declarator_inner,
13164 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
13165 start_function, start_decl, build_c_parm, build_attrs_declarator,
13166 build_function_declarator, make_pointer_declarator, c_cast_expr,
13167 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
13168 (build_id_declarator): New.
13169 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
13171 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
13172 ARG_INFO_OTHERS): Remove.
13173 (build_id_declarator): New.
13174 (build_array_declarator, set_array_declarator_inner, groktypename,
13175 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
13176 grokfield, start_function, store_parm_decls_newstyle,
13177 store_parm_decls_oldstyle, store_parm_decls,
13178 build_c_parm, build_attrs_declarator, build_function_declarator,
13179 make_pointer_declarator, grokdeclarator): Update to new
13181 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
13183 (declarator, notype_declarator, after_type_declarator,
13184 parm_declarator, parm_declarator_starttypename,
13185 parm_declarator_nostarttypename, array_declarator, typename,
13186 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
13187 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
13188 parmlist_1, parmlist_2, parmlist_or_identifiers,
13189 parmlist_or_identifiers_1): Use these types.
13190 (primary, after_type_declarator, parm_declarator_starttypename,
13191 notype_declarator, component_decl, component_declarator,
13192 component_notype_declarator, typename, absdcl,
13193 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
13194 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
13196 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13198 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
13199 in_typeof, record_maybe_used_decl, pop_maybe_used,
13200 c_expr_sizeof_expr, c_expr_sizeof_type): New.
13201 * c-decl.c (parser_obstack): New.
13202 (c_init_decl_processing): Initialize parser_obstack.
13203 (c_write_global_declarations_1): Check for used but undefined
13205 * c-parse.in (%union): Add otype.
13206 (save_obstack_position): New.
13208 (unary_expr): Update in_sizeof and in_alignof. Use
13209 c_expr_sizeof_expr and c_expr_sizeof_type.
13210 (sizeof): Update in_sizeof.
13211 (alignof): Update in_alignof.
13212 (typeof): Update in_typeof.
13213 (typespec_nonreserved_nonattr): Call pop_maybe_used.
13214 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
13215 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
13216 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
13217 (build_external_ref): Set C_DECL_USED or call
13218 record_maybe_used_decl if appropriate.
13219 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
13221 2004-09-08 Eric Christopher <echristo@redhat.com>
13223 * builtins.c: Fix prototype for fold_builtin_atan.
13225 2004-09-08 Eric Christopher <echristo@redhat.com>
13227 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
13228 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
13229 fold_builtin_atan): New functions. Migrate function bodies...
13230 (fold_builtin_1): ... from here.
13232 2004-09-09 Alan Modra <amodra@bigpond.net.au>
13234 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
13237 2004-09-08 David Edelsohn <edelsohn@gnu.org>
13239 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
13240 * config/rs6000/power5.md (power5-lmul): Same.
13242 2004-09-08 Richard Henderson <rth@redhat.com>
13245 * function.c (expand_function_end): Have fall-off-the-end
13246 return path jump around return register setup.
13248 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13250 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
13251 (output_return): Do not test for the presence of the 'unimp' insn.
13252 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
13253 as predicates instead of custom ones. Return raw strings when
13255 (output_sibcall): Likewise. Concatenate strings.
13256 (output_ubranch): Remove kludge for TurboSPARC.
13257 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
13258 (output_v9branch): Likewise.
13259 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
13260 <#>: Set sparc_indent_opcode if the delay slot is filled.
13262 <)>: New operand to emit the displacement from the saved PC on return.
13264 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
13265 (ASM_OUTPUT_OPCODE): New macro.
13266 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
13267 * config/sparc/sparc.md (normal_branch, inverted_branch,
13268 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13269 inverted_fpe_branch): Adjust call to output_cbranch.
13270 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
13271 call to output_v9branch.
13272 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
13273 (output_v9branch): Likewise.
13275 2004-09-08 Devang Patel <dpatel@apple.com>
13277 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
13278 -segs_read_only_addr and -segs_read_write_addr.
13279 (WORD_SWITCH_TAKES_ARG): Same.
13281 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
13282 -segs_read_write_addr.
13284 2004-09-08 Richard Henderson <rth@redhat.com>
13286 * function.c (reference_callee_copied): New.
13287 (assign_parm_setup_reg): Use it.
13288 * calls.c (initialize_argument_information): Likewise.
13289 (emit_library_call_value_1): Likewise.
13290 * function.h (reference_callee_copied): Declare.
13292 * target.h (struct gcc_target): Add callee_copies.
13293 * target-def.h (TARGET_CALLEE_COPIES): New.
13294 (TARGET_PASS_BY_REFERENCE): Update default.
13295 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13296 * targhooks.c (hook_callee_copies_named): New.
13297 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
13298 hook_pass_by_reference_false.
13299 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
13300 * targhooks.h: Update decls.
13301 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
13302 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13303 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
13304 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
13305 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13306 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
13307 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13308 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
13309 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13310 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
13311 (mips_callee_copies): New.
13312 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13313 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
13314 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13315 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
13316 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13317 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
13318 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13319 * config/sh/sh.c (sh_callee_copies): New.
13320 (TARGET_CALLEE_COPIES): New.
13321 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13322 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
13323 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13324 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
13325 for FUNCTION_ARG_CALLEE_COPIES.
13326 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
13328 2004-09-08 Devang Patel <dpatel@apple.com>
13330 * tree-if-conv.c (find_phi_replacement_condition): Return true
13332 (replace_phi_with_cond_modify_expr): Select conditional expr args
13333 based on true edge basic block.
13335 2004-09-08 Jan Hubicka <jh@suse.cz>
13337 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
13338 variables being alias set.
13340 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13342 * final.c (shorten_branches, final, get_insn_template,
13343 output_alternate_entry_point, final_scan_insn, alter_subreg,
13344 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
13345 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
13346 * fix-header.c (lookup_std_proto): Likewise.
13347 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
13348 verify_local_live_at_start, update_life_info, mark_reg,
13349 calculate_global_regs_live, allocate_reg_life_data,
13350 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
13351 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
13352 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
13353 * fold-const.c (force_fit_type, div_and_round_double,
13354 may_negate_without_overflow_p, int_const_binop, const_binop,
13355 size_binop, size_diffop, fold_convert_const, fold_convert,
13356 invert_tree_comparison, swap_tree_comparison,
13357 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
13358 range_binop, make_range, fold_cond_expr_with_comparison,
13359 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
13360 fold_abs_const, fold_not_const, fold_relational_const, round_up,
13361 round_down): Likewise.
13362 * function.c (find_function_data, assign_stack_temp_for_type,
13363 instantiate_virtual_regs_lossage, aggregate_value_p,
13364 assign_parm_find_entry_rtl, assign_parm_setup_block,
13365 expand_function_start, expand_function_end, keep_stack_depressed,
13366 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
13368 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
13370 * Makefile.in (tree-loop-linear.o): Added.
13371 (OBJS-common): Add tree-loop-linear.o
13372 * common.opt: New flag, ftree-loop-linear.
13373 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
13374 * tree-flow.h: Add prototype for linear_transform_loops.
13375 * tree-optimize.c: Add linear transform after vectorization.
13376 * tree-pass.h: Add struct pass_linear_transform.
13377 * tree-ssa-loop.c: Add pass_linear_transform.
13378 * tree-loop-linear.c: New file.
13379 * lambda-code.c: gcc_assertify.
13380 (gcc_loop_to_lambda_loop): Handle all exit tests.
13381 Handle case where we have (invariant >= induction var).
13382 (find_induction_var_from_exit_cond): Ditto.
13384 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
13386 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
13387 memory tag is call clobbered, so are its aliases.
13388 (group_aliases): When two memory tags being grouped, if one is
13389 call clobbered, so are the other and its aliases.
13390 (add_may_alias): Remove call-clobbering stuff.
13391 (replace_may_alias): Likewise.
13392 (merge_pointed_to_info): Merge pt_global_mem
13394 2004-09-08 Jan Hubicka <jh@suse.cz>
13396 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
13397 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
13398 (cgraph_expand_function): Remove stale cgraph edges of currently
13399 compiled function; fix non-unit-at-a-time code copying function
13400 node for later reuse.
13402 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13404 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
13405 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
13406 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
13407 (vec_gc_free, vec_heap_free): New.
13408 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
13409 (DEF_VEC_P): Add allocator argument. Adjust.
13410 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
13411 (DEF_VEC_O): Add allocator argument. Adjust.
13414 * tree.h (tree): Define a GC'd vector.
13415 * lamba-code.c (lambda_loop): Likewise.
13416 * value-prof.h (histogram_value): Likewise.
13418 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13420 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
13421 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
13422 gen_lowpart_common, gen_highpart, gen_highpart_mode,
13423 subreg_highpart_offset, operand_subword, operand_subword_force,
13424 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
13425 set_mem_alias_set, change_address_1, verify_rtx_sharing,
13426 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
13427 try_split, add_insn_after, add_insn_before, remove_insn,
13428 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
13429 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
13430 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
13431 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
13432 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
13433 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
13434 record_path_before_1, check_path_after_1, check_path_after): Likewise.
13435 * except.c (gen_eh_region, resolve_one_fixup_region,
13436 remove_unreachable_regions, convert_from_eh_region_ranges_1,
13437 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
13438 connect_post_landing_pads, sjlj_emit_function_exit,
13439 remove_exception_handler_label, remove_eh_handler,
13440 reachable_next_level, collect_one_action_chain,
13441 output_function_exception_table): Likewise.
13442 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
13443 optimize_save_area_alloca, allocate_dynamic_stack_space,
13444 probe_stack_range, hard_function_value): Likewise.
13445 * expmed.c (mode_for_extraction, store_bit_field,
13446 store_fixed_bit_field, extract_bit_field, expand_shift,
13447 expand_mult_const, expand_mult, choose_multiplier,
13448 expand_mult_highpart, expand_divmod, emit_store_flag,
13449 do_cmp_and_jump): Likewise.
13450 * expr.c (convert_move, convert_modes, move_by_pieces,
13451 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
13452 move_block_from_reg, gen_group_rtx, emit_group_load,
13453 emit_group_move, emit_group_store, use_reg, use_regs,
13454 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
13455 emit_move_insn, emit_move_insn_1, emit_push_insn,
13456 expand_assignment, store_expr, count_type_elements,
13457 store_constructor, store_field, safe_from_p, expand_var,
13458 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
13460 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13462 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
13463 gcc_assert and gcc_unreachable.
13464 * ddg.c (create_ddg_dependence, add_deps_for_def,
13465 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
13466 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
13467 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
13468 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
13469 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
13470 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
13471 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
13472 dataflow_set_copy, hybrid_search, diagnostic.c,
13473 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
13474 * dojump.c (do_jump): Likewise.
13475 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
13476 compute_dom_fast_query, calculate_dominance_info,
13477 free_dominance_info, get_immediate_dominator,
13478 set_immediate_dominator, get_dominated_by,
13479 redirect_immediate_dominators, nearest_common_dominator,
13480 dominated_by_p, verify_dominators, recount_dominator,
13481 iterate_fix_dominators, add_to_dominance_info,
13482 delete_from_dominance_info): Likewise.
13483 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
13484 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
13485 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
13486 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
13487 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
13488 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
13489 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
13490 output_call_frame_info, output_loc_operands, build_cfa_loc,
13491 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
13492 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
13493 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
13494 splice_child_die, attr_checksum, same_dw_val_p,
13495 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
13496 unmark_dies, value_format, output_loc_list, output_die,
13497 output_pubnames, output_aranges, base_type_die, is_base_type,
13498 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
13499 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
13500 field_byte_offset, add_data_member_location_attribute,
13501 add_const_value_attribute, rtl_for_decl_location,
13502 add_location_or_const_value_attribute, add_byte_size_attribute,
13503 add_bit_offset_attribute, add_bit_size_attribute,
13504 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
13505 decl_start_label, gen_formal_parameter_die,
13506 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
13507 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
13508 force_decl_die, force_type_die, gen_decl_die,
13509 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
13510 dwarf2out_finish): Likewise.
13512 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
13514 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
13515 * builtins.c: Include tree-mudflap.h.
13517 2004-09-08 Uros Bizjak <uros@kss-loka.si>
13519 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
13520 force operand 0.0 into register in XFmode. Also do not force
13521 operand 0.0 into register if !TARGET_CMOVE.
13522 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
13523 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
13524 implement ftst x87 instruction.
13525 (*fp_jcc_7): New insn pattern. Change corresponding split
13526 pattern to handle "general_operand" instead of
13527 "nonimmediate_operand".
13529 2004-09-08 Ben Elliston <bje@au.ibm.com>
13531 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
13533 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
13535 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
13536 generated from standard va_arg expansion.
13537 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
13539 (mf_varname_tree, mf_file_function_line_tree): Add some support
13540 for column numbers if compiled with USE_MAPPED_LOCATION.
13542 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13544 * c-decl.c (groktypename_in_parm_context): Remove function.
13545 * c-tree.h (groktypename_in_parm_context): Remove prototype.
13547 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13549 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
13550 * c-parse.in: Include c-common.h instead of objc-act.h.
13551 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
13552 myparms, myparm): Remove %type declarations.
13553 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
13554 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
13556 (objc_inherit_code, objc_public_flag): Remove.
13557 (typespec_nonreserved_nonattr): Call
13558 objc_get_protocol_qualified_type() instead of get_static_reference()
13559 and get_protocol_reference().
13560 (stmt_nocomp): Call grokparm() on @catch parameter.
13561 (objcdef): Move semantic action to objc_finish_implementation().
13562 (classdef): Move semantic action to objc_start_class_interface(),
13563 objc_continue_interface(), objc_finish_interface(),
13564 objc_start_class_implementation(), objc_continue_implementation(),
13565 objc_start_category_interface() and
13566 objc_start_category_implementation().
13567 (protocoldef): Move semantic actions to objc_start_protocol() and
13568 objc_finish_interface().
13569 (ivar_decl_list): Remove nonterminal.
13570 (visibility_spec): Move semantic actions to objc_set_visibility().
13571 (ivar_decls): Remove assignment to $$.
13572 (ivar_decl): Rephrase in terms of component_decl; call
13573 objc_add_instance_variable().
13574 (ivars, ivar_declarator): Remove nonterminals.
13575 (opt_semi): New nonterminal.
13576 (methodtype): Remove semantic actions.
13577 (methoddef): Move semantic actions to objc_set_method_type(),
13578 objc_start_method_definition() and objc_finish_method_definition().
13579 (methodproto): Move semantic actions to objc_set_method_type() and
13580 objc_add_method_declaration().
13581 (methoddecl): Use objc_typename instead of typename; move semantic
13582 actions to objc_build_method_signature().
13583 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
13584 (optparmlist): Express in terms of optparms and optellipsis.
13585 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
13587 (keyworddecl): Use objc_typename instead of typename.
13588 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
13589 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
13591 2004-09-08 Alan Modra <amodra@bigpond.net.au>
13593 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
13594 (MD_FALLBACK_FRAME_STATE_FOR): Update.
13595 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
13596 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13597 (MD_FROB_UPDATE_CONTEXT): Remove default.
13598 (uw_update_context_1): Instead #ifdef invocation.
13599 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
13600 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13601 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
13602 (MD_UNWIND_SUPPORT): Undefine this instead.
13603 * config/i386/gnu.h: Likewise.
13604 * config/alpha/linux-unwind.h: New file, macro converted to
13605 function, extracted from..
13606 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
13607 (MD_UNWIND_SUPPORT): Define.
13608 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
13609 * config/i386/linux-unwind.h, config/i386/linux.h,
13610 config/i386/linux64.h: Likewise.
13611 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
13612 MD_HANDLE_UNWABI too.
13613 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
13614 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
13615 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
13616 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
13617 * config/sparc/linux-unwind.h, config/sparc/linux.h,
13618 config/sparc/linux64.h: Likewise.
13619 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
13620 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
13621 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
13622 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
13623 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
13625 2004-09-07 Jan Hubicka <jh@suse.cz>
13627 * cse.c (fold_rtx): Avoid building of
13628 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
13630 * tree-ssa-pre.c (grand_bitmap_obstack): New.
13631 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
13632 (init_pre): Initialize obstack.
13633 (fini_pre): Free obstack.
13635 2004-09-07 David Daney <ddaney@avtrex.com>
13637 * config.gcc: Added support for --with-divide=[breaks|traps] for
13639 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
13640 (TARGET_DIVIDE_TRAPS): New macro.
13641 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
13642 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
13643 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
13644 GENERATE_DIVIDE_TRAPS.
13645 (mips_output_division): Emit conditional trap if
13646 GENERATE_DIVIDE_TRAPS is set.
13647 * doc/install.texi: Document --with-divide.
13648 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
13650 2004-09-07 Caroline Tice <ctice@apple.com>
13652 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
13653 EDGE_CROSSING, to flags test case.
13655 2004-09-07 Jan Hubicka <jh@suse.cz>
13657 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
13660 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13662 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
13663 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
13664 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
13665 or gcc_unreachable.
13666 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
13667 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
13668 alloc_aux_for_edges, free_aux_for_edges): Likewise.
13669 * cfgcleanup.c (try_forward_edges,
13670 merge_blocks_move_predecessor_nojumps,
13671 merge_blocks_move_successor_nojumps): Likewise.
13672 * cfgexpand.c (expand_gimple_cond_expr,
13673 expand_gimple_tailcall): Likewise.
13674 * cfghooks.c (duplicate_block): Likewise.
13675 * cfglayout.c (record_effective_endpoints,
13676 insn_locators_initialize, change_scope, fixup_reorder_chain,
13677 verify_insn_chain, fixup_fallthru_exit_predecessor,
13678 duplicate_insn_chain, cfg_layout_finalize): Likewise.
13679 * cfgloopanal.c (check_irred): Likewise.
13680 * cfgloop.c (superloop_at_depth, flow_loops_free,
13681 flow_loop_entry_edges_find, flow_loops_find,
13682 flow_loop_outside_edge_p, get_loop_body,
13683 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
13684 get_loop_exit_edges, num_loop_branches, cancel_loop,
13685 verify_loop_structure): Likewise.
13686 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
13687 duplicate_loop_to_header_edge, create_preheader,
13688 create_loop_notes): Likewise.
13689 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
13690 edirect_branch_edge, force_nonfallthru_and_redirect,
13691 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
13692 commit_edge_insertions, commit_edge_insertions_watch_calls,
13693 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
13694 cfg_layout_redirect_edge_and_branch_force,
13695 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
13696 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
13697 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
13698 cgraph_varpool_node): Likewise.
13699 * cgraphunit.c (cgraph_finalize_function,
13700 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
13701 cgraph_expand_function, cgraph_remove_unreachable_nodes,
13702 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13703 cgraph_mark_inline, cgraph_expand_all_functions,
13704 cgraph_build_static_cdtor): Likewise.
13705 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
13706 simplify_logical, distribute_notes, insn_cuid): Likewise.
13707 * conflict.c (conflict_graph_add, print_conflict): Likewise.
13708 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
13709 coverage_checksum_string): Likewise.
13710 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
13711 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
13712 cse_cc_succs, cse_condition_code_reg): Likewise.
13713 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
13714 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
13715 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
13716 cselib_record_set): Likewise.
13718 2004-09-07 Jan Hubicka <jh@suse.cz>
13720 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
13722 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13724 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
13726 (fold_builtin_strpbrk): Likewise.
13727 * expr.c (array_ref_low_bound): Likewise.
13728 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
13729 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
13730 * tree-sra.c (generate_element_zero): Likewise.
13731 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13732 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
13733 add_old_iv_candidates, add_iv_candidates): Likewise.
13734 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13736 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13738 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
13739 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
13740 c_expand_expr, boolean_increment, nonnull_check_p,
13741 check_function_arguments_recurse, fold_offsetof_1): Likewise.
13742 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
13743 builtin_define_type_max): Likewise.
13744 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
13745 implicit_decl_warning, builtin_function, build_compound_literal,
13746 complete_array_type, grokdeclarator, get_parm_info,
13747 start_function, store_parm_decls_oldstyle,
13748 c_write_global_declarations): Likewise.
13749 * c-format.c (get_constant, decode_format_attr,
13750 maybe_read_dollar_number, get_flag_spec, check_format_arg,
13751 check_format_types, format_type_warning,
13752 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
13753 init_dynamic_diag_info, handle_format_attribute): Likewise.
13754 * c-gimplify.c (push_context, pop_context, finish_bc_block):
13755 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
13756 * c-objc-common.c (c_tree_printer): Likewise.
13757 * c-pch.c (pch_init): Likewise.
13758 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
13759 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
13760 * c-typeck.c (c_incomplete_type_error, composite_type,
13761 common_pointer_type, common_type, same_translation_unit_p,
13762 tagged_types_tu_compatible_p, finish_init, pop_init_level,
13763 set_designator, set_nonincremental_init_from_string,
13764 process_init_element, c_finish_if_stmt): Likewise.
13765 * caller-save.c (init_caller_save, save_call_clobbered_regs,
13766 insert_restore, insert_save, insert_one_insn): Likewise.
13767 * calls.c (emit_call_1, compute_argument_block_size,
13768 precompute_arguments, expand_call, emit_library_call_value_1,
13769 store_one_arg): Likewise.
13771 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13773 * configure.ac (enable-checking): Add release option. Reorganize
13774 to avoid repetition.
13775 * configure: Rebuilt.
13776 * doc/install.texi (enable-checking): Amend documentation.
13778 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
13781 * Makefile.in (specs.ready): Depend on cc1$(exeext).
13783 2004-09-06 James E Wilson <wilson@specifixinc.com>
13785 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
13786 movdf_hardfloat_32bit): Split fG into two alternatives.
13787 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
13789 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
13791 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
13793 * final.c (output_in_slot): Delete.
13794 (final_scan_insn): Revert 2004-09-03 change.
13795 (output_asm_insn): Likewise.
13796 * config/sparc/sparc.c (output_return): Likewise.
13797 (output_sibcall): Likewise.
13799 2004-09-06 Jan Hubicka <jh@suse.cz>
13801 * loop.c (loop_dump_aux): Do not print RTL when not available.
13802 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
13803 frontend specific type nodes.
13804 (produce_memory_decl_rtl): Break out from ...
13805 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
13806 (get_computation_at): Avoid random tree sharing.
13807 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
13809 2004-09-06 Zack Weinberg <zack@codesourcery.com>
13811 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
13812 unnecessary commands.
13814 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
13816 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
13817 (bitmap.o): Likewise.
13819 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
13821 Unify the management of RTL and tree-level dump files.
13823 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
13824 Don't print function name to the dump file, the pass manager
13825 would do this for us. Add code from the top of
13826 rest_of_compilation, up to the initial RTL dump.
13827 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
13828 close the DFI_sibling dump file.
13829 (rest_of_compilation): Don't do that here. Remove code up to the
13831 (init_optimization_passes): Remove.
13832 (pass_rest_of_compilation): Change pass name to NULL.
13833 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
13834 Do not call init_optimization_passes.
13835 * toplev.h (init_optimization_passes): Remove.
13837 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
13838 finish_graph_dump_file): Remove SUFFIX parameter.
13839 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
13840 finish_graph_dump_file): Likewise.
13842 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
13843 * cfgexpand.c (pass_expand): Adjust.
13844 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
13845 * passes.c (pass_rest_of_compilation): Adjust.
13846 * predict.c (pass_profile): Adjust.
13847 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
13848 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
13849 pass_split_crit_edges, pass_warn_function_return): Adjust.
13850 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
13851 * tree-dfa.c (pass_referenced_vars): Adjust.
13852 * tree-eh.c (pass_lower_eh): Adjust.
13853 * tree-if-conv.c (pass_build_ssa): Adjust.
13854 * tree-into-ssa.c (pass_build_ssa): Adjust.
13855 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13856 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13857 * tree-nrv.c (pass_nrv): Adjust.
13858 * tree-optimize.c (pass_gimple, pass_all_optimizations,
13859 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
13860 pass_init_datastructures): Adjust.
13861 * tree-outof-ssa.c (pass_del_ssa): Adjust.
13862 * tree-profile.c (pass_tree_profile): Adjust.
13863 * tree-sra.c (pass_sra): Adjust.
13864 * tree-ssa-alias.c (pass_may_alias): Adjust.
13865 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
13866 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
13867 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
13868 * tree-ssa-dom.c (pass_dominator): Adjust.
13869 * tree-ssa-dse.c (pass_dse): Adjust.
13870 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
13871 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
13872 * tree-ssa-loop-ch.c (pass_ch): Adjust.
13873 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
13874 pass_loop_done, pass_complete_unroll, pass_iv_canon,
13875 pass_iv_optimize, pass_vectorize): Adjust.
13876 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
13877 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
13878 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
13879 pass_late_warn_uninnitialized): Adjust.
13880 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
13882 * Makefile.in (tree-dump.o): Add new dependencies.
13883 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
13884 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
13886 * toplev.c (dump_file_name): New.
13887 * tree-dump.c (dump_enable_all): Add LETTER parameter.
13888 (struct dump_file_info): Add NUM and LETTER fields.
13889 (dump_files): Adjust and add RTL dump files.
13890 (dump_register): Add NUM and LETTER fields.
13891 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
13892 (dump_begin): Use get_dump_file_name.
13893 (dump_switch_p_1): Adjust call to dump_enable_all.
13894 * tree-dump.h (dump_register): Adjust prototype.
13895 * tree-optimize.c (register_one_dump_file): Take dump file index.
13896 Support flags for RTL dumps.
13897 (register_dump_files): Fill in NUM field of struct dump_file_info.
13898 Track properties both when the gate is executed and when it is not.
13899 (execute_todo): Dump RTL. Add PROPERTIES parameter.
13900 (execute_one_pass): Pass properties to execute_todo. Handle VCG
13902 * tree-pass.h (dump_file_name): New.
13903 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
13906 * Makefile.in (passes.o): Add new dependencies.
13907 * passes.c (struct dump_file_info, enum dump_file_index,
13908 dump_file_tbl, init_optimization_passes): Remove.
13909 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
13910 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
13912 (finish_optimization_passes): Update finish_graph_dump_file loop.
13913 (enable_rtl_dump_file): Remove.
13914 * tree-dump.c (dump_files): Adjust and add RTL dump files.
13915 (enable_rtl_dump_file): Add here.
13916 * tree.h (enum tree_dump_index): Add RTL dump file indices.
13917 * doc/invoke.texi (Debugging options): Document new RTL debugging
13920 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
13922 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
13923 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
13924 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
13925 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13926 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
13927 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
13928 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
13929 vec.h: Fix comment formatting.
13931 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
13933 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
13934 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
13935 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
13936 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
13937 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
13938 tree-ssa-loop-niter.c, tree-ssa-operands.c,
13939 tree-ssa-operands.h, tree-ssa-propagate.c,
13940 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
13941 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
13943 2004-09-05 Diego Novillo <dnovillo@redhat.com>
13945 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
13946 vectorizer is enabled.
13948 2004-09-05 Andreas Jaeger <aj@suse.de>
13950 * tree-if-conv.c: Spell check comments and clean up whitespace.
13952 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13954 * tree-ssa-loop-ivopts.c: New file.
13955 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
13956 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
13957 target_pres_cost, target_spill_cost): Declare.
13958 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
13959 spill_cost): Renamed to ...
13960 (target_avail_regs, target_res_regs, target_small_cost,
13961 target_pres_cost, target_spill_cost): ... and exported.
13962 (init_set_costs, global_cost_for_size): Work with renamed variables.
13963 * common.opt (flag_ivopts): New flag.
13964 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
13966 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
13967 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
13968 generating SSA form.
13969 (force_gimple_operand): New function.
13970 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
13971 * tree-cfg.c (stmt_bsi): New function.
13972 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13973 PARAM_IV_MAX_CONSIDERED_USES): New.
13974 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
13975 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
13976 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
13977 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
13978 * tree-nested.c (build_addr): Export.
13979 * tree-optimize.c (init_tree_optimization_passes): Add
13981 * tree-pass.h (pass_iv_optimize): Declare.
13982 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
13984 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
13985 as a phi node argument.
13986 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
13987 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
13989 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
13990 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
13991 pass_iv_optimize): New pass.
13992 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
13993 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
13994 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
13995 * tree.h (REF_ORIGINAL): New macro.
13996 (build_int_cst_type, unsigned_type_for, zero_p,
13997 cst_and_fits_in_hwi, build_addr): Declare.
13998 * doc/invoke.texi (-fivopts): Document.
13999 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
14000 PARAM_IV_MAX_CONSIDERED_USES): Document.
14001 * doc/passes.texi: Document induction variable optimizations pass.
14003 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14005 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
14006 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
14007 * c-common.c (c_common_attribute_table): Accept parameters to
14008 sentinel attribute.
14009 (check_function_sentinel, handle_sentinel_attribute): Likewise.
14010 * doc/extend.texi: Update accordingly.
14012 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14014 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
14016 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
14018 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
14020 (c_common_attribute_table): Add `sentinel' attribute.
14021 (check_function_arguments): Handle `sentinel' attribute.
14022 * doc/extend.texi: Document `sentinel' attribute.
14024 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
14026 * configure: Regenerated.
14028 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14030 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
14032 * tree.c (save_expr): No longer TREE_READONLY.
14034 2004-09-04 Jan Hubicka <jh@suse.cz>
14036 * passes.c (rest_of_clean_state): Fix merge conflict made during
14037 commiting the patch.
14039 2004-09-04 Jan Hubicka <jh@suse.cz>
14041 * passes.c (rest_of_clean_state): Decompose the instruction stream.
14043 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14045 * doc/md.texi (shift patterns): New anchor. Add reference to
14046 TARGET_SHIFT_TRUNCATION_MASK.
14047 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
14048 * target.h (shift_truncation_mask): New target hook.
14049 * targhook.h (default_shift_truncation_mask): Declare.
14050 * targhook.c (default_shift_truncation_mask): Define.
14051 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
14052 (TARGET_INITIALIZER): Include it.
14053 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
14054 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
14055 reject all out-of-range values. Fix sign-extension code for modes
14056 whose width is smaller than HOST_BITS_PER_WIDE_INT.
14057 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
14058 (expand_superword_shift, expand_subword_shift): Likewise.
14059 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
14060 (expand_binop): Use them to implement double-word shifts.
14061 * config/arm/arm.c (arm_shift_truncation_mask): New function.
14062 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14064 2004-09-04 Jan Hubicka <jh@suse.cz>
14066 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
14067 (mix): New macro copied from hashtab.c
14068 (iterative_hash_hashval_t, iterative_hash_pointer,
14069 iterative_hash_host_wide_int): New functions based on hashtab.c
14072 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14074 * config/mips/mips.md (mask): New mode attribute.
14075 (zero_extendsidi2): Add memory alternative.
14076 (*zero_extendsidi2_mem): Delete.
14077 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
14078 memory_operand in the TARGET_MIPS16 check.
14079 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
14080 Redefine using :GPR and :SHORT.
14081 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
14083 2004-09-04 Uros Bizjak <uros@kss-loka.si>
14085 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
14087 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
14088 expand_builtin_mathfn.
14089 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
14090 btrunc?f patterns for btrunc_optab. Implement rint_optab using
14092 * optabs.c (init_optabs): Initialize rint_optab.
14093 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
14095 (btrunc_optab): Rename macro from trunc_optab.
14096 (rint_optab): Define corresponding macro.
14098 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
14099 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
14101 * config/i386/i386-protos.h (emit_i387_cw_initialization):
14102 Change prototype. Add new int parameter.
14103 * config/i386/i386.c (emit_i387_cw_initialization):
14104 Handle new rounding modes.
14106 * config/i386/i386.h (enum fp_cw_mode): Delete.
14107 (MODE_NEEDED): Handle new rounding modes.
14108 (EMIT_MODE_SET): Change condition to handle new rounding modes.
14110 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
14111 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
14112 represent different rounding modes of frndint insn.
14113 (type): Add frndint type.
14114 (i387, length, memory): Handle this type.
14115 (i387_cw): New attribute definition.
14116 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
14117 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
14118 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
14119 Add "i387_cw" attribute defined to "trunc".
14120 (x86_fnstcw_1): Remove comment.
14121 (*frndintxf2): Rename insn definition to frndintxf2. Move
14122 insn definition near rint?f2 expanders.
14123 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
14124 rintf and rintl built-ins as inline x87 intrinsics.
14125 (frndintxf2_floor): New pattern to implement floor rounding
14126 mode with frndint x87 instruction.
14127 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
14128 floorf and floorl built-ins as inline x87 intrinsics.
14129 (frndintxf2_ceil): New pattern to implement ceil rounding
14130 mode with frndint x87 instruction.
14131 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
14132 ceilf and ceill built-ins as inline x87 intrinsics.
14133 (frndintxf2_trunc): New pattern to implement trunc rounding
14134 mode with frndint x87 instruction.
14135 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
14136 truncf and truncl built-ins as inline x87 intrinsics.
14137 (frndintxf2_mask_pm): New pattern to implement rounding
14138 mode with exceptions with frndint x87 instruction.
14139 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
14140 implement nearbyint, nearbyintf and nearbyintl built-ins as
14141 inline x87 intrinsics.
14143 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14145 * config/mips/mips.md (SHORT): New mode macro.
14146 (size): New mode attribute.
14147 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
14148 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
14149 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
14151 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
14152 *extend[qh]isi2_hw patterns and extending them to di.
14153 (extendqihi2): Implement as define_insn_and_split that produces
14154 extendqisi2 after reload.
14156 2004-09-03 Devang Patel <dpatel@apple.com>
14158 * Makefile.in (OBJS-common): Add tree-if-conv.o
14159 (tree-if-conv.o): New rule.
14160 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
14161 (get_loop_body_in_bfs_order): New.
14162 * cfgloop.h (get_loop_body_in_bfs_order): New.
14163 * tree-flow.h (enum move_pos): Move here from ..
14164 * tree-ssa-loop-im.c (enum move_pos): here.
14165 (movement_possibility): Make externally visible.
14166 * tree-optimize.c (init_tree_optimization_passes): New entry for
14167 if conversion pass.
14168 * tree-pass.h (pass_if_conversion): New.
14169 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
14170 * tree-if-conv.c: New file.
14171 * doc/passes.texi: Document tree if-conversion pass.
14172 * doc/tree-ssa.texi: Same.
14174 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14177 Makefile.in (LIB2ADDEHSTATIC): New.
14178 (LIB2ADDEHSHARED): New.
14180 (LIBUNWINDDEP): New.
14181 (SHLIBUNWIND_LINK): New.
14182 (SHLIBUNWIND_INSTALL): New.
14183 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
14184 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
14185 (clean): Remove libunwind*
14186 (stage1-start): Remove and copy stage1/libunwind*.
14187 (stage2-start): Remove and copy stage2/libunwind*.
14188 (stage3-start): Remove and copy stage3/libunwind*.
14189 (stage4-start): Remove and copy stage4/libunwind*.
14190 (stageprofile-start): Remove and copy stageprofile/libunwind*.
14191 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
14193 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
14194 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
14195 tmake_file if --with-system-libunwind isn't used.
14197 * config/ia64/t-glibc-libunwind: New file.
14198 * config/t-libunwind-elf: Likewise.
14199 * unwind-compat.c: Likewise.
14200 * unwind-compat.h: Likewise.
14201 * unwind-dw2-fde-compat.c: Likewise.
14203 * config/ia64/t-glibc (LIB2ADDEH): Updated.
14204 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14206 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
14208 * unwind-dw2-fde-glibc.c: Likewise.
14209 * unwind-dw2.c: Likewise.
14211 * config/t-libunwind (LIB2ADDEH): Updated.
14212 (LIB2ADDEHSTATIC): New.
14213 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14214 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
14216 * configure.ac: Change --enable-libunwind-exceptions to
14217 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
14218 * configure: Regenerated.
14219 * config.in: Updated.
14221 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
14222 above and mention --with-system-libunwind.
14223 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
14224 removed in gcc 3.4.3 and later.
14226 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
14227 USE_LIBUNWIND_EXCEPTIONS is defined.
14229 * mklibgcc.in: Support libunwind.
14231 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14233 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
14236 2004-09-03 Richard Henderson <rth@redhat.com>
14239 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
14240 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
14241 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
14242 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
14243 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
14244 resize_stack_vars_conflict, add_stack_var_conflict,
14245 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
14246 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
14247 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
14248 expand_one_static_var, expand_one_hard_reg_var,
14249 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
14250 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
14251 (expand_used_vars): Rewrite.
14252 * Makefile.in (cfgexpand.o): Update dependencies.
14254 2004-09-04 Jan Hubicka <jh@suse.cz>
14256 * cfg.c (free_edge): Use ggc_free.
14257 (expunge_block): Use ggc_free.
14258 * passes.c (rest_of_clean_state): Free after compilation.
14259 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
14260 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
14262 2004-09-03 James E Wilson <wilson@specifixinc.com>
14264 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
14265 DECL_EXTERNAL check.
14267 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14269 * final.c (output_in_slot): New global variable.
14270 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
14271 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
14272 'output_in_slot' before invoking output_asm_insn.
14273 (output_asm_insn): Add a space after the tab if 'output_in_slot'
14275 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
14277 (output_sibcall): Likewise.
14279 2004-09-03 Jan Hubicka <jh@suse.cz>
14281 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
14282 * tree-ssanames (init_ssanames): Likewise.
14284 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14286 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
14287 objc_declare_protocols, objc_start_protocol,
14288 objc_start_class_interface, objc_start_category_interface,
14289 objc_continue_interface, objc_finish_interface,
14290 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
14291 objc_start_class_implementation, objc_start_category_implementation,
14292 objc_continue_implementation, objc_finish_implementation,
14293 objc_add_method_declaration, objc_start_method_definition,
14294 objc_finish_method_definition, objc_build_keyword_decl,
14295 objc_build_method_signature, objc_build_encode_expr,
14296 objc_build_protocol_expr, objc_build_selector_expr,
14297 objc_build_message_expr, objc_build_string_object,
14298 objc_get_class_reference, objc_get_protocol_qualified_type,
14299 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
14301 2004-09-03 James E Wilson <wilson@specifixinc.com>
14303 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
14305 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
14306 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
14307 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
14308 (mips_recip1_<fmt>): Use frdiv1 type.
14309 (mips_recip2_<fmt>): Use frdiv2 type.
14310 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
14311 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
14313 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
14315 2004-09-03 Daniel Jacobowitz <dan@debian.org>
14317 * reload.c (find_reloads): Swap operand_loc pointers for
14318 find_dummy_reload if we have swapped two operands.
14320 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
14322 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
14323 to get the tablejump-insn before the jump-table label.
14325 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14327 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
14328 objc_declare_protocols, objc_build_message_expr,
14329 objc_finish_message_expr, objc_build_selector_expr,
14330 objc_build_protocol_expr, objc_build_encode_expr,
14331 objc_build_string_object, objc_get_protocol_qualified_type,
14332 objc_get_class_reference, objc_get_class_ivars,
14333 objc_start_class_interface, objc_start_category_interface,
14334 objc_start_protocol, objc_continue_interface, objc_finish_interface,
14335 objc_start_class_implementation, objc_start_category_implementation,
14336 objc_continue_implementation, objc_finish_implementation,
14337 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
14338 objc_add_method_declaration, objc_start_method_definition,
14339 objc_finish_method_definition, objc_add_instance_variable,
14340 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
14341 objc_finish_try_stmt, objc_begin_catch_clause,
14342 objc_finish_catch_clause, objc_build_finally_clause,
14343 objc_build_synchronized, objc_static_init_needed_p,
14344 objc_generate_static_init_call): New prototypes.
14346 2004-09-03 Steve Ellcey <sje@cup.hp.com>
14348 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
14350 (ia64_function_value): Ditto.
14352 2004-09-03 Jan Beulich <jbeulich@novell.com>
14354 * config.gcc: Resurrect NetWare as a target. Handle special case of
14355 Novell linker to be used (specified through --with-ld=) and threading
14356 model of either Posix (default) or NKS.
14357 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
14358 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
14359 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
14360 * config/i386/netware.c, config/i386/netware.h: New.
14361 * config/i386/nwld.c, config/i386/nwld.h: New.
14362 * config/i386/netware-crt0.c: New.
14363 * config/i386/netware-libgcc.c: New.
14364 * config/i386/netware-libgcc.def: New.
14365 * config/i386/netware-libgcc.exp: New.
14366 * config/i386/t-netware, config/i386/t-nwld: New.
14368 * doc/install.texi: Document NKS threading model.
14370 2004-09-03 Jan Beulich <jbeulich@novell.com>
14373 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
14374 * tree.h (initial_max_fld_align): Declare
14375 * stor-layout.c (initial_max_fld_align): Define and initialize.
14376 (maximum_field_alignment): Initialize to the same value.
14377 * common.opt: Add -fpack-struct= variant of switch.
14378 * opts.c: Handle -fpack-struct= variant of switch.
14379 * c-pragma.c: Change #pragma pack() handling so that it becomes
14380 compatible to other compilers: accept individual 'push' argument,
14381 make final pop restore (command line) default, correct interaction
14382 of push/pop and sole specification of a new alignment (so that the
14383 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
14384 to #pragma pack(push, <n>).
14385 * doc/extend.texi: New node "Structure-Packing Pragmas" under
14386 "Pragmas", describing #pragma pack.
14387 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
14388 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
14389 Document new TARGET_DEFAULT_PACK_STRUCT.
14391 2004-09-03 Devang Patel <dpatel@apple.com>
14393 * dwarf2out.c (gen_field_die). Equate decl number to die.
14395 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
14398 * global.c (modify_reg_pav): New function.
14399 (make_accurate_live_analysis): Call the new function. Move pavin
14400 modification by earlyclobber set into the new function.
14402 2004-09-03 Andreas Schwab <schwab@suse.de>
14404 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
14405 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
14408 2004-09-02 Jan Beulich <jbeulich@novell.com>
14410 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
14411 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
14412 not unwind code specific ones.
14413 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
14414 Remove unwind code specific dependencies.
14415 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
14416 Remove gbl-ctors.h.
14417 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
14418 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
14419 * tsystem.h: Declare memcpy and memset when inhibit_libc.
14421 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14423 * combine.c (try_combine): Delay modifying of insns which cannot
14426 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
14428 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
14430 * gcc/tree-ssa-loop.c: Ditto
14431 * gcc/tree-ssa-loop-ivcanon.c: Ditto
14432 * gcc/doc/invoke.texi: Ditto.
14434 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14436 * c-decl.c (store_parm_decls_newstyle): Make static.
14437 (store_parm_decls_from): New function.
14438 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
14439 (store_parm_decls_from): New prototype.
14441 2004-09-02 David Edelsohn <edelsohn@gnu.org>
14443 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
14444 HImode with STRICT_ALIGNMENT.
14446 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14448 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
14449 (TARGET_OS_CPP_BUILTINS): Likewise.
14450 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
14451 TARGET_BPABI_CPP_BUILTINS.
14453 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14455 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
14457 2004-09-02 Eric Christopher <echristo@redhat.com>
14459 * builtins.c (expand_builtin_cabs): Delete.
14460 (expand_builtin): If unable to fold the values do a normal
14461 library call for builtin_cab*.
14462 (fold_builtin_cabs): Depend on optimize and optimize_size.
14463 * optabs.c (expand_cmplxdiv_straight): Delete.
14464 (expand_cmplxdiv_wide): Ditto.
14465 (expand_vector_binop): Ditto.
14466 (expand_vector_unop): Ditto.
14467 (expand_complex_abs): Delete.
14468 (expand_binop): Remove calls to above functions.
14469 Remove open coding of complex arithmetic.
14470 (expand_unop): Ditto.
14471 * optabs.h: Remove prototypes.
14473 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14475 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
14476 * c-tree.h (store_parm_decls_newstyle): New prototype.
14478 2004-09-02 Geoffrey Keating <geoffk@apple.com>
14480 * config/rs6000/rs6000.c (expand_block_clear): Use vector
14481 instructions if available.
14482 (expand_block_move): Likewise.
14484 2004-09-03 Jan Hubicka <jh@suse.cz>
14486 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
14488 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14490 * config/arm/symbian.h (LIB_SPEC): Define to empty.
14491 * config/arm/t-symbian (SHLIB_LC): Likewise.
14493 2004-09-02 Paul Brook <paul@codesourcery.com>
14495 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
14497 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14499 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
14500 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
14501 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
14502 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
14503 (mips_issue_rate): Remove unreachable abort.
14504 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
14505 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
14506 (mips_block_move_straight, print_operand_address, mips_file_start)
14507 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
14508 (mips_output_conditional_branch, mips_expand_builtin_direct)
14509 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
14510 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
14513 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14515 * config/mips/mips.md (*lea_high64): Change split condition to
14516 flow2_completed. Add a peephole2 to generate a more parallel version.
14518 2004-09-02 Jan Hubicka <jh@suse.cz>
14520 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
14523 * ggc-page.c: include tree-flow.h.
14524 (extra_order_size_table): Add stmt_ann_d.
14525 (STAT_LABEL): Rename from ....
14526 (LABEL): ... this one.
14527 * Makefile.in (ggc-page.o): Add dependency.
14529 * ggc-common.c (ggc_force_collect): New global variable.
14530 (loc_description): Add fields "freed", "collected"
14531 (ptr_hash): New static hash
14532 (ptr_hash_entry): New structure.
14533 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
14534 (ggc_record_overhead): Take ptr argument, record it
14535 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
14536 (cmp_statistics): Imrove sorting.
14537 (dump_ggc_loc_statistics): Output newly collected statistics
14538 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
14539 (ggc_free): Call ggc_free_overhead.
14540 (ggc_collect): Force collection when asked to be forced.
14541 (ggc_collect): Call ggc_prune_overhead_list.
14542 * ggc.h (ggc_force_collect): Declare
14543 (ggc_record_overhead): Update prototype.
14544 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
14546 2004-09-02 James E Wilson <wilson@specifixinc.com>
14548 * common.opt (ftrapping-math): Default to on.
14550 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
14552 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
14554 2004-09-02 Denis Chertykov <denisc@overta.ru>
14557 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
14559 (*movmemqi_insn): Likewise.
14560 (*movmemhi): Likewise.
14561 (clrmemhi): Likewise.
14562 (*clrmemqi): Likewise.
14563 (*clrmemhi): Likewise.
14565 2004-09-02 Paul Brook <paul@codesourcery.com>
14567 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
14568 default_use_cxa_atexit=yes.
14570 2004-09-02 Alan Modra <amodra@bigpond.net.au>
14572 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
14573 (struct kernel_old_ucontext): Delete.
14574 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
14575 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
14578 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14580 * toplev.c (process_options): Fix typo.
14582 2004-09-01 Richard Henderson <rth@redhat.com>
14584 PR middle-end/17258
14585 * calls.c (initialize_argument_information): Tighten pass-through
14586 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
14587 Use build_fold_addr_expr.
14588 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
14589 that assumes ADDR_EXPR allocates stack space.
14590 * fold-const.c (build_fold_addr_expr_with_type): Look through
14593 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
14595 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
14596 * ggc.h (ggc_alloc_rtx): Delete.
14598 2004-09-01 Roger Sayle <roger@eyesopen.com>
14600 * expmed.c (enum alg_code): Remove long unused enumeration values.
14601 (struct mult_cost): New structure to hold the "score" of a synthetic
14602 multiply sequence, including both a rtx_cost and a latency field.
14603 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
14604 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
14605 (struct algorithm): Change type of cost field to be mult_cost.
14606 (synth_mult): Change type of cost_limit argument to be a
14607 pointer to a mult_cost. Update all cost comparisons to use the
14608 new mult_cost infrastructure. For alg_add_factor and
14609 alg_sub_factor operations, latency is lower than the rtx_cost.
14610 (choose_mult_variant): Update calls to synth_mult. Perform
14611 cost comparisons using the new mult_cost infrastructure.
14612 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
14613 to optain the total rtx_cost of a synth_mult "algorithm".
14615 2004-09-01 David Edelsohn <edelsohn@gnu.org>
14617 * config/rs6000/power4.md: Increase store latency to 12.
14618 * config/rs6000/power5.md: Same.
14620 2004-09-01 James E Wilson <wilson@specifixinc.com>
14623 * config/avr/avr.c (avr_unique_section): Delete prototype and
14625 (TARGET_ASM_UNIQUE_SECTION): Delete.
14627 2004-09-01 Ziemowit Laski <zlaski@apple.com>
14629 * c-parse.in (primary): Call objc_build_message_expr(),
14630 objc_build_selector_expr(), objc_build_protocol_expr(),
14631 objc_build_encode_expr() and objc_build_string_object() instead of
14632 build_message_expr(), build_selector_expr(), build_protocol_expr(),
14633 build_encode_expr() and build_objc_string_object(), respectively.
14634 (component_decl_list2): Call objc_get_class_ivars() instead of
14635 get_class_ivars_from_name().
14636 (keyworddecl): Call objc_build_keyword_decl() instead of
14637 build_keyword_decl().
14638 (receiver): Call objc_get_class_reference() instead of
14639 get_class_reference().
14640 (reswords): Add blank line before @@ifobjc section, for clarity.
14642 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
14644 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
14647 2004-09-01 Wu Yongwei <adah@sh163.net>
14648 Danny Smith <dannysmith@users.sourceforge.net>
14650 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
14651 not Windows 'DWORD'.
14652 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
14653 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
14654 (__gthr_win32_recursive_mutex_init_function): Add prototype for
14655 __GTHREAD_HIDE_WIN32API case..
14656 (__gthr_win32_recursive_mutex_lock): Likewise.
14657 (__gthr_win32_recursive_mutex_trylock): Likewise.
14658 (__gthr_win32_recursive_mutex_unlock): Likewise.
14659 (__gthread_recursive_mutex_init_function); Add definition for
14660 __GTHREAD_HIDE_WIN32API case.
14661 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
14662 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
14663 call to InterlockedDecrement.
14665 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14667 * tree-tailcall.c (find_tail_calls): Also fail is statement has
14670 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
14672 * doc/c-tree.texi: Document new operands for ARRAY_REF and
14675 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14677 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
14678 * common.opt (fspeculative-prefetching): New.
14679 * flags.h (flag_speculative_prefetching_set): Declare.
14680 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
14682 * opts.c (flag_sepculative_prefetching_set): New variable.
14683 (common_handle_option): Handle -fspeculative-prefetching.
14684 * passes.c (rest_of_compilation): Ditto.
14685 * profile.c (instrument_values, compute_value_histograms, branch_prob):
14686 Use vectors instead of arrays.
14687 * toplev.c (process_options): Handle -fspeculative-prefetching.
14688 * rtl-profile.c: Include ggc.h.
14689 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
14690 rtl_gen_one_value_profiler_no_edge_manipulation,
14691 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
14693 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
14694 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
14696 * value-prof.c: Include ggc.h.
14697 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
14699 (insn_prefetch_values_to_profile, find_mem_reference_1,
14700 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
14701 speculative_prefetching_transform): New.
14702 (value_profile_transformations): Call speculative_prefetching_transform.
14703 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
14704 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
14705 tree_find_values_to_profile, find_values to profile): Use vectors
14707 (free_profiled_values): Removed.
14708 * value-prof.h (struct histogram_value): Renamed to
14709 struct histogram_value_t.
14710 (histogram_value, histogram_values): New types.
14711 (find_values_to_profile): Declaration changed.
14712 (free_profiled_values): Removed.
14713 (struct profile_hooks): Type of argument of the hooks changed to
14715 * doc/invoke.texi (-fspeculative-prefetching): Document.
14717 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14719 PR rtl-optimization/16408
14720 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
14722 2004-09-01 Richard Henderson <rth@redhat.com>
14724 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
14725 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
14727 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14729 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
14731 2004-09-01 Mike Stump <mrs@apple.com>
14733 * config/darwin.c (machopic_symbol_defined_p): In addition to
14734 being SYMBOL_REF_LOCAL_P, a symbol must also be
14735 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
14736 defined in this output file, or translation unit in the case
14737 of IMA not being used.
14738 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
14739 never need .indirect_symbol when indirecting.
14741 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14743 * Makefile.in (bb-reorder.o): Add several dependencies.
14745 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14747 * fold-const.c (operand_equal_p): Require equal sign also for
14748 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
14750 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14752 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
14753 for use in configargs.h. Put the cname in a separate variable. Use
14754 that to set target_cpu_default2.
14756 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
14757 Nick Clifton <nickc@redhat.com>
14759 * config/sh/sh.md ("length"): Increase branch length when
14760 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
14761 constant, 2 byte for aligning the constant.
14763 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14765 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
14767 (arm7tdmi-s): New CPU name.
14768 * arm/arm.c (ARM_CORE): Update for new format.
14769 * arm/arm.h (ARM_CORE): Likewise.
14770 * arm/gentune.sh: Update for extra field.
14771 * config.gcc: Likewise.
14772 * arm/arm-tune.md: Regenerate.
14773 * doc/invoke.texi: Document the real processor names for ARM cpus.
14775 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14777 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
14778 (floatdidf): New functions.
14779 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
14780 (floatdisf): New functions.
14781 * t-arm-elf: Use them.
14783 2004-09-01 Ziemowit Laski <zlaski@apple.com>
14785 * c-common.h (lookup_interface): Remove prototype.
14786 (is_class_name): Rename to objc_is_class_name.
14787 (lookup_objc_ivar): Rename to objc_lookup_ivar.
14788 (get_current_scope): Rename to objc_get_current_scope.
14789 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
14790 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
14791 (yylexname): Call objc_is_class_name() instead of is_class_name().
14792 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
14793 instead of lookup_objc_ivar().
14794 * stub-objc.c (lookup_interface): Remove stub.
14795 (is_class_name): Rename to objc_is_class_name.
14796 (lookup_objc_ivar): Rename to objc_lookup_ivar.
14798 2004-08-31 Mark Mitchell <mark@codesourcery.com>
14800 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
14801 * config/arm/lib1funcs.asm: Do not include supplemental .S files
14802 when compiling for Symbian.
14803 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
14804 (TARGET_OS_CPP_BUILTINS): Likewise.
14805 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
14807 2004-08-31 Stan Shebs <shebs@apple.com>
14809 * toplev.c (process_options): Ensure debug_hooks is initialized.
14811 2004-08-31 Mark Mitchell <mark@codesourcery.com>
14813 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
14814 * target.h (cxx): Add export_class_data.
14815 * config/arm/arm.c (arm_cxx_export_class_data): New function.
14816 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
14817 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
14819 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
14821 * config/sh/sh.c (output_branch): Check the insn length possibly
14822 in the delayed slot.
14824 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14826 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
14828 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
14830 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
14831 (c_sizeof_of_alignof_type): Likewise.
14832 * expr.c (array_ref_element_size): Likewise.
14833 (highest_pow2_factor_for_target): Likewise.
14834 * gimplify.c (canonicalize_addr_expr): Likewise.
14835 (gimplify_compound_lval): Likewise.
14836 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
14837 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
14838 * varasm.c (assemble_variable): Likewise.
14839 (output_constant_def_contents): Alignments are unsigned.
14841 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14842 Jeff Law <law@redhat.com>
14844 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
14847 2004-08-31 Mark Mitchell <mark@codesourcery.com>
14849 * hooks.c (hook_bool_void_true): New function.
14850 * hooks.h (hook_bool_void_true): Declare.
14851 * target-def.h (TARGET_CXX): Add
14852 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
14853 * target.h (struct cxx): Add key_method_may_be_inline.
14854 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
14856 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
14857 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
14860 2004-08-31 Denis Chertykov <denisc@overta.ru>
14863 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
14864 frame pointer register only in Pmode while reload in progress.
14866 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
14869 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
14870 because it breaks the 32-bit shift patterns that rely on a match_dup.
14872 2004-08-31 Matt Austern <austern@apple.com>
14874 * config/darwin.c (darwin_make_decl_one_only): Allocate section
14875 names once per compilation, instead of once per symbol.
14877 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
14879 * Makefile.in (build_subdir): New substitution.
14880 (fixinc.sh): Simplify heavily since fixincludes is already built.
14881 (stmp-fixinc): Depend on specs.ready.
14882 (install-mkheaders): Use new location of fixincludes.
14883 (clean): Do not descend into fixinc.
14884 (FORBUILD): Replace with ../$(build_subdir).
14885 * configure.ac (build_subdir): Substitute.
14886 (FORBUILD): Do not set.
14887 (all_outputs): Remove fixinc/Makefile.
14888 (default commands): Do not create links in fixinc.
14889 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
14890 the fixincludes configuration steps and substituting
14891 @FIXINCL@ in fixinc.in.
14892 * fixinc.in: New, from fixinc/fixincl.sh.
14894 * fixinc/*: Removed.
14896 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
14898 * attribs.c (strip_attrs): Remove.
14899 (split_specs_attrs): Move ...
14900 * c-decl.c: ... to here.
14901 * tree.h (split_specs_attrs, strip_attrs): Remove.
14902 * c-tree.h (split_specs_attrs): Declare.
14904 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
14906 * read-rtl.c: Disable RTL checking.
14907 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
14909 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
14911 * config/mips/mips.md (fcond): New code macro and attribute.
14912 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
14913 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
14914 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
14916 2004-08-30 Mark Mitchell <mark@codesourcery.com>
14919 2004-08-29 Mark Mitchell <mark@codesourcery.com>
14920 PR rtl-optimization/16590
14921 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14923 2004-08-30 Andrew Pinski <apinski@apple.com>
14926 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
14927 * ChangeLog: Fix previous ChangeLog entry.
14930 * config.host (use_long_long_for_widest_fast_int): New, default is
14932 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
14933 * configure.ac: If use_long_long_for_widest_fast_int, then
14934 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
14935 * configure: Regenerate.
14936 * config.in: Regenerate.
14937 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
14938 New: widest integer type supported efficiently in hardware for the
14940 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
14941 HOST_BITS_PER_WIDEST_FAST_INT.
14942 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
14943 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
14944 HOST_WIDEST_FAST_INT
14945 instead of HOST_WIDE_INT.
14946 (HARD_REG_SET_LONGS): Likewise.
14947 (UHOST_BITS_PER_WIDE_INT): Likewise.
14948 Change the checks for the fast cases to be based on
14949 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
14951 2004-08-30 Steven Bosscher <stevenb@suse.de>
14953 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
14956 2004-08-30 Geoffrey Keating <geoffk@apple.com>
14962 * c-decl.c (grokdeclarator): Produce error for 'static' on local
14963 function declaration.
14965 2004-08-30 Richard Henderson <rth@redhat.com>
14967 * expr.c (array_ref_element_size): Force aligned_size back to
14969 (component_ref_field_offset): Similarly for aligned_offset.
14970 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
14971 low-bound, element-size, field-offset fields rather than
14974 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
14976 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
14979 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
14981 * c-tree.h (struct language_function): Add arg_info element.
14982 * c-decl.c (current_function_arg_info): New.
14983 (grokdeclarator, store_parm_decls): Use it instead of
14985 (c_push_function_context, c_pop_function_context): Save and
14988 2004-08-30 Richard Henderson <rth@redhat.com>
14990 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
14991 COMPONENT_REF to pointer arithmetic.
14992 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
14993 constant "c" as a valid constant initializer. Allow narrowing of
14994 differences against the same base object, for any base object.
14996 2004-08-30 Richard Henderson <rth@redhat.com>
14998 * expr.c (expand_expr_addr_expr): New.
14999 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
15001 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15003 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
15004 (mips_fp_condition): New enum.
15005 (mips_fp_conditions): New array.
15006 (print_fcc_operand): Delete.
15007 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
15008 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
15009 (builtin_description): Add "cond" field.
15010 (DIRECT_BUILTIN): Initialize it.
15011 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
15012 into INSN and CODE. Initialize the "cond" field.
15013 (CMP_BUILTINS): Update accordingly.
15014 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
15015 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
15016 mips_fp_condition as argument. Make it the final operand of the
15017 comparison instruction.
15018 (mips_expand_builtin): Update accordingly.
15019 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
15020 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
15022 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
15023 Don't use the 'Q' operand prefix; just print the operand normally.
15024 (mips_cabs_*, mips_c_*): Delete, replacing with...
15025 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
15026 patterns. Split the 4s versions into 2 ps patterns after reload.
15028 2004-08-30 Richard Henderson <rth@redhat.com>
15030 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
15031 assuming an ADDR_EXPR is non-null.
15033 2004-08-30 Jason Merrill <jason@redhat.com>
15035 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
15037 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15039 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
15040 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
15041 gcc_assert and gcc_unreachable instead of abort.
15042 * alloc-pool.c (abort, fancy_abort): Remove.
15043 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
15044 gcc_assert or gcc_unreachable.
15045 * attribs.c (init_attributes, decl_attributes): Likewise.
15046 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
15047 mark_bb_for_unlikely_executed_section,
15048 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
15049 fix_crossing_unconditional_branches): Likewise.
15050 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
15051 bitmap_operation): Likewise.
15052 * bt-load.c (insn_sets_btr_p, augment_live_range,
15053 move_btr_def): Likewise.
15054 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
15055 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
15056 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
15057 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
15058 expand_builtin_memcmp, expand_builtin_args_info,
15059 std_gimplify_va_arg_expr, expand_builtin_unop,
15060 expand_builtin_fputs, expand_builtin_profile_func,
15061 expand_builtin_fork_or_exec, fold_builtin_bitop,
15062 fold_builtin_classify, fold_builtin_fputs): Likewise.
15064 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15066 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
15067 * gcov.c (abort): Remove undef.
15069 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
15070 (struct tree_binfo): Remove primary field.
15072 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15074 * fixinc/Makefile.in (machname.h): Remove.
15075 (fixincl.x): Do not pass $@ to genfixes.
15076 * fixinc/genfixes: Remove code to produce machname.h.
15077 * fixinc/fixincl.sh: Move it here instead.
15078 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
15079 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
15080 return a bool indicating whether pz_mn_name_pat is NULL.
15081 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
15082 Declare extern C variables for the ENV_TABLE.
15083 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
15084 instead use the result of mn_get_regexps.
15085 * fixinc/fixtests.c: Likewise.
15087 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15089 * configure.ac: Do not run fixincludes after stage1 during
15090 toplevel bootstrap.
15091 * configure: Regenerate.
15093 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15095 * sched-deps.c (get_condition): Partially revert previous, by never
15096 trying to extract the condition from a condjump.
15098 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15100 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
15101 (handle_visibility_attribute, c_determine_visibility): Likewise.
15102 * c-common.h (my_friendly_assert): Remove.
15104 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15106 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
15107 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
15108 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
15109 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
15110 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
15112 2004-08-30 Diego Novillo <dnovillo@redhat.com>
15114 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
15115 in COMPONENT_REF nodes.
15117 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
15120 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
15121 global_dc->warning_as_error_requested.
15122 * diagnostic.c (diagnostic_initialize): Tidy.
15123 * diagnostic.h (diagnostic_context::x_data): Remove
15124 (diagnostic_context::issue_warnings_are_errors_message): Rename
15125 from warnings_are_errors_message.
15126 (diagnostic_context::warning_as_error_requested): New.
15128 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15130 * sched-deps.c (get_condition): Fix breakage in previous patch.
15132 2004-08-30 Paul Brook <paul@codesourcery.com>
15134 * doc/install.texi: Fix broken mpfr link.
15136 2004-08-29 David O'Brien <obrien@FreeBSD.org>
15138 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
15139 other FreeBSD platforms.
15141 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15143 * arm.h (REVERSE_CONDITION): Define.
15144 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
15146 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15148 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
15149 just the codes, call reversed_comparison_code ().
15150 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
15151 (not_reg_cond): Use reversed_comparison_code.
15152 (and_reg_cond): Likewise.
15153 * ifcvt.c (cond_exec_process_if_block): Likewise.
15154 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
15156 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15158 * sched-deps.c (get_condition): Rewrite using jump support functions.
15159 Use reversed_comparison_code.
15160 (conditions_mutex_p): Use reversed_comparison_code.
15162 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15164 * config/mips/mips.c (override_options): Disable hot/cold partitioning
15167 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15169 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
15170 (mips_function_type): Move to mips.c.
15171 * config/mips/mips.c (mips_builtin_type): New enum.
15172 (builtin_description): Replace code and ftype with builtin_type
15174 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
15175 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
15176 (CODE_FOR_mips_abs_ps): Define.
15177 (mips_bdesc): Use new macros.
15178 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
15179 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
15180 (mips_expand_builtin_direct): New function.
15181 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
15182 builtin. Replace boolean parameter with builtin_type.
15183 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
15184 (mips_expand_4s_compare_builtin): Delete, replacing with...
15185 (mips_expand_builtin_compare): ...this new function.
15187 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15189 PR rtl-optimization/16590
15190 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15192 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15194 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
15195 * tree-ssa-propagate.c: Fix documentation.
15197 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15199 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
15200 (mov[sd]fcc): Likewise.
15202 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15204 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
15206 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15208 * config/mips/mips.md (divide_condition): New mode attribute.
15209 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
15210 (sqrt[sd]f3): Redefine using SCALARF.
15211 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
15214 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15216 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
15217 (loadx, storex, fmt, UNITMODE): New mode attributes.
15218 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
15219 (mul[sd]f3): Redefine using :SCALARF.
15220 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
15221 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
15222 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
15223 Check TARGET_FUSED_MADD for V2SF too.
15224 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
15225 were already named.
15226 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
15227 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
15229 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15231 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
15232 V2SF_type_node if it will be needed.
15234 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15236 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
15237 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
15238 (mips_prepare_builtin_target): New function.
15239 (mips_expand_builtin): Use them. Update calls to subroutines.
15240 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
15241 cmp_choice with a boolean argument to select between movt and movf.
15242 Take the comparison's icode as an argument, not the function's fcode.
15243 (mips_expand_compare_builtin): New function. Rename existing function
15244 to mips_expand_scalar_compare_builtin.
15245 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
15246 (mips_expand_ps_compare_builtin): Use the new functions. Take the
15247 comparison's icode as an argument, not the builtin's fcode.
15249 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15251 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
15252 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
15253 registers are false and -1 if all registers are true.
15254 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
15255 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
15256 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
15257 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
15258 (bc1any2t, bc1any2f): Likewise CCV2.
15259 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
15261 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15263 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
15264 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
15265 UNSPEC rather than an IF_THEN_ELSE.
15266 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
15267 mips_cond_move_tf_ps by name.
15269 2004-08-29 Chao-ying Fu <fu@mips.com>
15270 James E Wilson <wilson@specifixinc.com>
15272 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
15273 8 byte size and alignment. Give CCV4 16 byte size and alignment.
15274 * config/mips/mips-ps-3d.md: New file.
15275 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
15276 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15277 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
15278 (mips_output_move): Emit "mov.ps" for V2SFmode.
15279 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
15281 (override_options): Check if TARGET_MIPS3D and there was an explicit
15282 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
15283 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
15284 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
15285 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
15286 and allow CCV2 and CCV4 to occupy two and four CC registers.
15287 (print_fcc_operand): New function.
15288 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
15289 %Z to call print_fcc_operand.
15290 (mips_function_value): Handle MODE_VECTOR_FLOAT.
15291 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
15292 (mips_vector_mode_supported_p): New function.
15293 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
15294 (builtin_description): New struct.
15295 (mips_bdesc): New array of struct builtin_description.
15296 (mips_expand_builtin, mips_init_builtins,
15297 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
15298 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
15300 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
15301 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
15302 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
15303 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
15304 "-mips3d", and "-mno-mips3d".
15305 (ASM_SPEC): Map -mips3d to -mips3d in gas.
15306 (EXTRA_CONSTRAINT_Y): New macro.
15307 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
15308 multi-letter constraint 'Y'.
15309 (CONSTRAINT_LEN): New macro.
15310 (enum mips_builtins): New for MIPS builtin functions.
15311 (enum mips_function_type): New for the types of MIPS builtin functions.
15312 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
15313 * config/mips/mips.md: New constants for paired single and MIPS-3D
15314 instructions. Include the new mips-ps-3d.md file.
15315 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
15316 movv2sf_hardfloat_64bit): New named patterns.
15317 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
15318 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
15319 sdxc1_v2sf_di): New unnamed patterns.
15320 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
15321 const_vector support.
15322 (const_0_or_1_operand): New predicate.
15323 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
15325 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15327 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
15328 (tree-ssa-propagate.o): New rule.
15329 (GTFILES): Add tree-ssa-propagate.c.
15330 * tree-flow.h (struct stmt_ann_d): Remove field
15332 * tree-ssa-propagate.c: New file.
15333 * tree-ssa-propagate.h: New file.
15334 * tree-ssa-ccp.c: Re-write to use the routines from
15335 tree-ssa-propagate.c.
15337 2004-08-28 Andrew Pinski <apinski@apple.com>
15339 * tree-ssa-loop.c: Remove extra include of basic-block.h.
15341 2004-08-28 Ziemowit Laski <zlaski@apple.com>
15343 * c-common.h: Update comments about ObjC/ObjC++ entry points.
15344 (objc_is_reserved_word): New prototype.
15345 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
15346 separate section; these are call-backs.
15347 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
15348 ObjC/ObjC++ "@" keywords.
15349 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
15350 prototypes; they already live in c-common.h.
15351 * stub-objc.c: Update copyright notice.
15352 (objc_is_reserved_word): New stub.
15354 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
15356 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
15357 even when not checking.
15359 2004-08-27 Jason Merrill <jason@redhat.com>
15362 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
15363 (gimple_push_cleanup): Add eh_only parm.
15364 (gimplify_target_expr): Pass it.
15365 * c.opt (-fno-threadsafe-statics): New option.
15366 * c-opts.c (c_common_handle_option): Handle it.
15367 * c-common.h (flag_threadsafe_statics): Declare it.
15368 * c-common.c (flag_threadsafe_statics): Record it.
15369 * doc/invoke.texi: Document it.
15370 * tsystem.h (_GNU_SOURCE): Define.
15371 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
15372 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
15373 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
15374 (__gthread_recursive_mutex_init_function): New fn.
15375 (__gthread_recursive_mutex_lock): New fn.
15376 (__gthread_recursive_mutex_trylock): New fn.
15377 (__gthread_recursive_mutex_unlock): New fn.
15378 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
15379 * gthr-win32.h, gthr-vxworks.h: Likewise.
15380 * gthr.h: Document.
15382 2004-08-27 David Edelsohn <edelsohn@gnu.org>
15384 * config/rs6000/rs6000.c (rs6000_override_options): Increase
15385 maximum skip to 15. Set function alignment, jump alignment, and
15386 loop alignment to 16 for processors that form dispatch groups.
15387 (rs6000_rtx_costs): outer_code is used.
15389 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15391 * stor-layout.c (sizetype_set): Remove.
15392 (set_sizetype): Don't test or set it.
15394 * tree.h (size_int_type): Remove.
15395 * fold-const.c: Do not #include gt-fold-const.h.
15396 (size_htab_hash, size_htab_eq): Remove.
15397 (size_int_kind): Use build_int_cst.
15398 (new_const, size_htab): Remove.
15399 (size_int_type): Remove.
15400 (round_up): Use build_int_cst.
15401 (round_down): Likewise. Remove spurious constant build.
15403 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15405 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
15406 Add is_release variable, use it for --enable-werror and
15407 --enable-checking defaults.
15408 * system.h (gcc_assert, gcc_unreachable): New.
15409 * doc/install.texi (--enable-checking): Update.
15410 * configure, config.in: Rebuilt.
15412 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
15414 * rtl.h (read_rtx): Change prototype.
15415 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
15416 line number. Return true on success.
15417 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
15418 callers accordingly.
15420 2004-08-26 Richard Henderson <rth@redhat.com>
15422 * c-typeck.c (build_offsetof): Remove.
15423 * c-tree.h (build_offsetof): Remove.
15424 * c-common.c (fold_offsetof_1, fold_offsetof): New.
15425 * c-common.h (fold_offsetof): Declare.
15426 * c-parse.in (offsetof_base): New.
15427 (offsetof_member_designator): Use it. Build references, not just
15429 (primary): Use fold_offsetof, not build_offsetof.
15431 2004-08-26 Richard Henderson <rth@redhat.com>
15433 * tree.c (staticp): Return the static object.
15434 * tree.h (staticp): Update decl.
15435 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
15436 * langhooks.c (lhd_staticp): Return NULL_TREE.
15437 * langhooks-def.h (lhd_staticp): Update decl.
15438 * c-common.c (c_staticp): Return the static object.
15439 * c-common.h (c_staticp): Update decl.
15441 2004-08-26 Richard Henderson <rth@redhat.com>
15443 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
15446 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
15449 * c-decl.c (struct c_binding): Add type and inner_comp fields.
15450 (bind): Set type and inner_comp fields.
15451 (pop_scope): Restore type of decl to the correct type from an
15452 outer scope. Give error when popping file scope for incomplete
15453 arrays completed incompatibly with default initialization in an
15455 (diagnose_mismatched_decls): Handle externs with initializers at
15457 (pushdecl): Set type of external declaration at block scope based
15458 only on the visible declarations. Save type when changing the
15459 type of a declaration. Merge an external declaration at block
15460 scope with a visible static declaration at file scope.
15461 (implicitly_declare): Give recycled old declaration the new type
15462 except for incompatible declarations of built-in functions, saving
15465 2004-08-26 Ziemowit Laski <zlaski@apple.com>
15467 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
15469 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15471 * tree-alias-common.c (gate_pta): New function.
15472 (pass_build_pta): Use it.
15473 (pass_del_pta): Use it.
15474 (delete_alias_vars): Don't check flag_tree_points_to.
15476 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15478 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
15479 TFmode as additional register mode cloberred by call.
15481 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15483 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
15484 parallel pattern for library call returning DImode in
15487 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15489 * config/rs6000/rs6000.c (function_arg): Generate parallel
15490 pattern for more split args.
15492 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15494 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
15495 either gen_movdi_di_update or gen_movdi_si_update depending on
15497 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
15498 to generate two versions.
15500 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15502 * Makefile.in (lambda-code.o): New.
15503 (lambda-trans.o): Ditto.
15504 (TREE_DATA_REF_H): Ditto.
15506 (lambda-mat.o): Use LAMBDA_H.
15507 (tree-data-ref.o): Ditto.
15508 * lambda-code.c: New file. Lambda code generation algorithm.
15509 * lambda-trans.c: Ditto. Lambda transformation matrix support.
15510 * lambda.h: Add lambda loop structures.
15511 Add lambda loopnest structures.
15512 Add lambda body vector structure.
15513 Add lambda linear expression structures.
15514 Add prototypes for functions in new files.
15515 * lambda-mat.c: Include tree.h
15517 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15518 Sebastian Pop <pop@cri.ensmp.fr>
15520 * tree-data-ref.h: Include lambda.h
15521 (free_dependence_relation): Declared here.
15522 (free_dependence_relations): Ditto.
15523 (free_data_refs): Ditto.
15524 * tree-data-ref.c (free_dependence_relation): New function.
15525 (free_dependence_relations): Ditto.
15526 (free_data_refs): Ditot.
15527 (analyze_all_data_dependences): Free datarefs and dependence_relations.
15528 (build_classic_dist_vector): Store in the dependence_relations the
15529 information. Each arc in the dependence_relations graph is labelled
15530 with the distance and direction vectors.
15531 (build_classic_dir_vector): Ditto.
15532 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
15533 Now computes again the whole dependence graph including read-read
15535 (compute_data_dependences_for_loop): Now dependence_relations contains
15536 all the data, and thus it doesn't need to initialize the classic_dir
15537 and classic_dist vectors.
15538 (analyze_all_data_dependences): Adjusted for using the new interface of
15539 compute_data_dependences_for_loop. Remove the statistics dump.
15541 2004-08-26 Bob Wilson <bob.wilson@acm.org>
15543 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
15544 (xtensa_expand_block_move): Update comment.
15545 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
15547 2004-08026 Richard Earnshaw <rearnsha@arm.com>
15550 * toplev.c (crash_signal): If we crashed while emitting
15551 a user asm, then die more gracefully.
15553 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
15556 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
15557 checking for a valid constant, regardless of sign.
15559 2004-08-25 Richard Henderson <rth@redhat.com>
15562 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
15563 if the constant satisfies add_operand.
15565 2004-08-25 Richard Henderson <rth@redhat.com>
15568 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
15569 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
15570 unwind info for >16-bit frames.
15572 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
15575 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
15577 2004-08-25 Richard Henderson <rth@redhat.com>
15579 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
15580 (TARGET_CANNOT_FORCE_CONST_MEM): New.
15582 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
15584 * doc/tree-ssa.texi: Document new operand iterator.
15586 2004-08-26 Alan Modra <amodra@bigpond.net.au>
15589 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
15590 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
15593 2005-08-28 Paul Brook <paul@codesourcery.com>
15595 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
15596 -mfpu=vfp -march=armv5t
15597 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
15599 2004-08-25 Richard Henderson <rth@redhat.com>
15601 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15602 * target.h (struct gcc_target): Add scalar_mode_supported_p.
15603 * targhooks.c (default_scalar_mode_supported_p): New.
15604 * targhooks.h (default_scalar_mode_supported_p): Declare.
15605 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
15607 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
15608 before attempting to create types. Tidy.
15609 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
15611 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
15612 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15614 2004-08-25 Richard Henderson <rth@redhat.com>
15616 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15617 set REAL_MODE_FORMAT for TFmode.
15619 2004-08-25 Ziemowit Laski <zlaski@apple.com>
15621 * c-decl.c (grokparm): New function.
15622 * c-tree.h (grokparm): New prototype.
15624 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
15626 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
15627 iterator controlling structure.
15628 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
15629 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
15630 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
15632 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
15633 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
15634 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
15635 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
15636 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
15637 Empty operand pointers.
15638 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
15639 (op_iter_next_use): New. Return next use_operand_p.
15640 (op_iter_next_def): New. Return next def_operand_p.
15641 (op_iter_next_tree): New. Return next operands as a tree.
15642 (op_iter_init): New. Initialize an iterator structure.
15643 (op_iter_init_use): New. Initialize structure and get the first use.
15644 (op_iter_init_def): New. Initialize structure and get the first def.
15645 (op_iter_init_tree): New. Initialize structure and get the first tree.
15646 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
15647 (op_iter_init_maydef): New. Initialize structure and get the first
15648 V_MAY_DEF operands.
15649 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
15650 * tree-dfa.c (compute_immediate_uses_for_stmt,
15651 redirect_immediate_uses): Use new operand iterator.
15652 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
15653 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
15654 operands instead of using *_disappeared_p routines.
15655 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
15656 ssa_rewrite_stmt): Use new operand iterator.
15657 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
15658 rewrite_trees): Use new operand iterator.
15659 * tree-pretty-print.c (dump_vops): Use new operand iterator.
15660 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
15661 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
15662 dump_points_to_info): Use new operand iterator.
15663 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
15664 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
15666 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
15667 propagate_necessity): Use new operand iterator.
15668 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
15669 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
15670 a parameter instead of a stmt_ann_t.
15671 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
15672 build_tree_conflict_graph): Use new operand iterator.
15673 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
15674 rewrite_mem_refs): Use new operand iterator.
15675 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
15676 check_loop_closed_ssa_use): Use new operand iterator.
15677 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
15678 * tree-ssanames.c (release_defs): Use new operand iterator.
15679 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
15681 2004-08-25 Adam Nemet <anemet@lnxw.com>
15683 * tlink.c (initial_cwd): New variable.
15684 (tlink_init): Initialize it.
15685 (recompile_files): Use tlink_execute() instead of system(). Don't
15686 duplicate verbose output of collect_execute. Restore initial_cwd.
15687 Update comment before the function.
15689 2004-08-25 Ziemowit Laski <zlaski@apple.com>
15691 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
15692 accept) a cast from one Objective-C pointer type to another.
15694 2004-08-25 Paolo Carlini <pcarlini@suse.de>
15696 * doc/install.texi: Document that libstdc++-v3 requires
15697 now automake 1.9.1.
15699 2004-08-25 Caroline Tice <ctice@apple.com>
15701 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
15702 to comments at start of function.
15703 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
15705 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15706 merge_blocks_move_predecessor_nojumps,
15707 merge_blocks_move_successor_nojumps, merge_blocks_move,
15708 try_crossjump_to_edge, try_crossjump_bb): Likewise.
15709 * cfglayout.c (fixup_reorder_chain): Likewise.
15710 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
15711 cfg_layout_can_merge_blocks_p): Likewise.
15712 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15713 * passes.c (rest_of_compilation): Update comments for calling
15714 optimization that partitions hot/cold basic blocks.
15715 * doc/invoke.texi: Update documentation of
15716 freorder-blocks-and-partition flag.
15718 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
15720 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
15721 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
15723 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
15725 * config/mips/mips.md (any_shift): New code macro.
15726 (optab, insn): New code attributes.
15727 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
15728 Use the standard rather than internal patterns for the MIPS16
15729 double-shift optimization.
15730 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
15731 Redefine using :GPR and any_shift.
15732 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
15733 to cover all three shifts.
15734 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
15735 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
15736 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
15738 2004-08-24 Geoffrey Keating <geoffk@apple.com>
15740 * gimplify.c (lookup_tmp_var): Separate temporaries when not
15743 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15745 PR libstdc++/17005 (fix for HP-UX 11.11)
15746 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
15747 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
15748 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
15749 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
15750 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
15751 (LINK_SPEC): Handle march=1.0 option.
15752 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15753 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
15754 (SUBTARGET_OPTIONS): New define.
15755 (LINK_SPEC): Handle march=1.0 option.
15756 (STARTFILE_SPEC): New define.
15757 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15758 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
15759 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
15760 (SUBTARGET_OPTIONS): New define.
15761 (LINK_SPEC): Handle march=1.0 option.
15762 (STARTFILE_SPEC): New define.
15763 * config/pa/pa.c (override_options): Add code to process -munix= option.
15764 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
15765 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
15767 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
15768 (SUBTARGET_OPTIONS): Provide default define.
15769 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
15770 STANDARD_STARTFILE_PREFIX_2): New defines.
15771 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
15772 (ENDFILE_SPEC): Use %O.
15773 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
15774 Mention issue caused by changing namespace and runtime to UNIX 95/98.
15775 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
15776 Document -munix=std option.
15778 2004-08-25 Steven Bosscher <stevenb@suse.de>
15780 * cse.c (cse_around_loop, cse_check_loop_start,
15781 cse_set_around_loop): Remove.
15782 (cse_basic_block): Remove the around_loop argument.
15783 (cse_end_of_basic_block): Remove the after_loop argument.
15784 (cse_main): Likewise.
15785 * rtl.h (cse_main): Update prototype.
15786 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
15787 rest_of_handle_gcse): Update cse_main calls.
15789 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
15791 * tree.h (build_int_cst): New, sign extended constant.
15792 (build_int_cstu): New, zero extended constant.
15793 (build_int_cst_wide): Renamed from build_int_cst.
15794 * tree.c (build_int_cst, build_int_cstu): New.
15795 (build_int_cst_wide): Renamed from build_int_cst.
15796 (make_vector_type, build_common_tree_nodes,
15797 build_common_tree_nodes_2): Adjust build_int_cst calls.
15798 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
15799 expand_builtin_strpbrk, expand_builtin_fputs,
15800 build_string_literal, expand_builtin_printf,
15801 expand_builtin_sprintf, fold_builtin_classify_type,
15802 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
15803 fold_builtin_toascii, fold_builtin_isdigit,
15804 simplify_builtin_strstr, simplify_builtin_strpbrk,
15805 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
15806 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
15807 DEF_ATTR_INT): Likewise.
15808 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
15810 * c-lex.c (interpret_integer, lex_charconst): Likewise.
15811 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
15812 * c-pretty-print.c (pp_c_integer_constant): Likewise.
15813 * c-typeck.c (really_start_incremental_init, push_init_level,
15814 set_nonincremental_init_from_string): Likewise.
15815 * calls.c (load_register_parameters): Likewise.
15816 convert.c (convert_to_pointer): Likewise.
15817 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
15818 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
15819 build_gcov_info): Likewise.
15820 * except.c (init_eh, assign_filter_values): Likewise.
15821 * expmed.c (store_fixed_bit_field, extract_bit_field,
15822 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
15823 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
15824 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
15825 * expr.c (convert_move, emit_group_load, emit_group_store,
15826 expand_assignment, store_constructor, store_field,
15827 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15828 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
15829 invert_truthvalue, optimize_bit_field_compare,
15830 decode_field_reference, all_ones_mask_p, constant_boolean_node,
15831 fold_div_compare, fold, fold_read_from_constant_string,
15832 fold_negate_const, fold_abs_const, fold_not_const, round_up,
15833 round_down): Likewise.
15834 * function.c (assign_parm_setup_block): Likewise.
15835 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
15837 * stor-layout.c (layout_type, initialize_sizetypes,
15838 set_min_and_max_values_for_integral_type): Likewise.
15839 * tree-chrec.c (chrec_fold_multiply_poly_poly,
15840 reset_evolution_in_loop): Likewise.
15841 * tree-chrec.h (build_polynomial_chrec): Likewise.
15842 * tree-complex.c (build_replicated_const): Likewise.
15843 * tree-eh.c (honor_protect_cleanup_actions,
15844 lower_try_finally_onedest, lower_try_finally_copy,
15845 lower_try_finally_switch): Likewise.
15846 * tree-mudflap.c (mf_build_string, mx_register_decls,
15847 mudflap_register_call, mudflap_enqueue_constant): Likewise.
15848 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
15849 * tree-pretty-print.c (dump_generic_node): Likewise.
15850 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
15852 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
15853 * tree-ssa-loop-niter.c (number_of_iterations_cond,
15854 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
15856 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
15857 canonicalize_loop_induction_variables): Likewise.
15858 * tree-vectorizer.c (vect_create_index_for_array_ref,
15859 vect_transform_loop_bound, vect_compute_data_ref_alignment):
15862 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
15863 alpha_gimplify_va_arg_1): Likewise.
15864 * config/arm/arm.c (arm_get_cookie_size): Likewise.
15865 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
15866 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
15867 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15868 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
15869 mips_gimplify_va_arg_expr): Likewise.
15870 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15871 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
15872 add_compiler_branch_island): Likewise.
15873 * config/s390/s390.c (s390_va_start): Likewise.
15874 * config/sh/sh.c (sh_va_start): Likewise.
15875 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15877 * config/xtensa/xtensa.c (xtensa_va_start,
15878 xtensa_gimplify_va_arg_expr): Likewise.
15880 * objc/objc-act.c (build_objc_string_object,
15881 build_objc_symtab_template, init_def_list, init_objc_symtab,
15882 init_module_descriptor, generate_static_references,
15883 build_selector_translation_table, get_proto_encoding,
15884 build_typed_selector_reference, build_selector_reference,
15885 build_next_objc_exception_stuff,
15886 build_method_prototype_list_template, generate_descriptor_table,
15887 generate_protocols, build_protocol_initializer,
15888 build_ivar_list_template, build_method_list_template,
15889 build_ivar_list_initializer, generate_ivars_list,
15890 generate_dispatch_table, generate_protocol_list,
15891 build_category_initializer, build_shared_structure_initializer,
15892 generate_shared_structures, handle_impent,
15893 generate_objc_image_info): Likewise.
15895 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
15897 * cfglayout.c (duplicate_insn_chain): Remove references to
15898 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
15899 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
15900 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
15901 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
15902 and NOTE_INSN_LOOP_CONT.
15903 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
15904 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
15905 and NOTE_INSN_LOOP_CONT.
15906 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
15907 check_dbra_loop, loop_dump_aux): Remove references to removed notes
15909 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
15910 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
15911 references to removed notes and fields.
15912 (subtract_reg_term, ujump_to_loop_cont): Remove.
15914 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
15916 * doc/install.texi: Document that libcpp does not require
15917 Automake any longer. Document that Automake 1.9.1 should
15920 2004-08-25 Zack Weinberg <zack@codesourcery.com>
15922 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
15923 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
15924 DWARF_DEBUGGING_INFO from choice-of-definition chain;
15925 restructure using C89 features (#elif, #error).
15926 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
15927 * config/sh/sh.h: Remove references to DWARF_DEBUG.
15928 * doc/invoke.texi: Remove references to DWARF version 1;
15929 clarify why -gdwarf-2<n> doesn't work.
15931 2004-08-25 Zack Weinberg <zack@codesourcery.com>
15933 * basic-block.h (BB_SET_PARTITION): Clear old value first.
15934 * cfg.c (clear_bb_flags): Don't clear partition setting.
15935 * ifcvt.c (find_if_case_1): Remove ??? comment.
15937 2004-08-25 Alan Modra <amodra@bigpond.net.au>
15940 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
15941 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
15942 current_function_stdarg in place of sysv_varargs_p.
15943 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
15946 2004-08-24 Richard Henderson <rth@redhat.com>
15949 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
15950 random codes within CONST.
15952 2004-08-24 James E Wilson <wilson@specifixinc.com>
15954 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
15955 -freorder-blocks-and-partition.
15957 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15959 PR middle-end/17044
15960 * tree-ssa-threadupdate.c (redirection_data): Make static.
15961 (thread_block): Use ggc_alloc_cleared to allocate struct
15962 redirection_data. Don't free elements in redirection_data.
15964 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
15966 * config/mips/predicates.md (small_data_pattern): Match prefetches.
15968 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15970 PR tree-optimization/17016
15971 * tree-ssa-loop-niter.c (number_of_iterations_cond,
15972 number_of_iterations_exit): Use POINTER_TYPE_P instead
15973 of testing for POINTER_TYPE.
15975 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15977 * tree-ssa-loop-ivcanon.c: New file.
15978 * tree-ssa-loop-manip.c (create_iv): New function.
15979 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
15980 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
15981 * cfgloop.c (mark_single_exit_loops): New function.
15982 (verify_loop_structure): Verify single-exit loops.
15983 * cfgloop.h (struct loop): Add single_exit field.
15984 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
15985 (mark_single_exit_loops): Declare.
15986 (tree_num_loop_insns): Declare.
15987 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
15988 (duplicate_loop_to_header_edge): Use it.
15989 * common.opt (fivcanon): New flag.
15990 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
15991 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
15992 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
15993 (bsi_insert_on_edge_immediate): New function.
15994 * tree-flow.h (bsi_insert_on_edge_immediate,
15995 canonicalize_induction_variables, tree_unroll_loops_completely,
15996 create_iv): Declare.
15997 * tree-optimize.c (init_tree_optimization_passes): Add
15998 pass_iv_canon and pass_complete_unroll.
15999 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
16000 * tree-scalar-evolution.c (get_loop_exit_condition,
16001 get_exit_conditions_rec, number_of_iterations_in_loop,
16002 scev_initialize): Use single_exit information.
16003 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
16004 missing assumptions.
16005 (loop_niter_by_eval): Return number of iterations as unsigned
16007 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
16008 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
16009 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
16011 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
16012 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
16013 the defining statement is ready.
16014 * tree-vectorizer.c (vect_create_iv_simple): Removed.
16015 (vect_create_index_for_array_ref, vect_transform_loop_bound):
16017 (vect_transform_loop_bound): Use single_exit information.
16018 (vect_analyze_loop_form): Cleanup bogus tests.
16019 (vectorize_loops): Do not call flow_loop_scan.
16020 * tree.h (may_negate_without_overflow_p): Declare.
16021 * fold-const.c (may_negate_without_overflow_p): Split out from ...
16022 (negate_expr_p): ... this function.
16023 (tree_expr_nonzero_p): Handle overflowed constants correctly.
16024 * doc/invoke.texi (-fivcanon): Document.
16025 * doc/passes.texi: Document canonical induction variable creation.
16027 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16029 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
16030 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
16031 using the mode of the operand to decide between them.
16032 * config/mips/mips.md (MOVECC): New mode macro.
16033 (ccreg): New mode attribute.
16034 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
16035 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
16036 (mov[sd]icc): Redefine using :GPR.
16038 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16040 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
16041 (mips_prefetch_cookie): New function.
16042 * config/mips/mips.c (print_operand_address): Fix handling of
16044 (mips_emit_prefetch): Delete.
16045 (mips_prefetch_cookie): New function.
16046 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
16047 mode of QImode for the address_operand. Use mips_prefetch_cookie
16048 to calculate the first "pref" operand.
16049 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
16050 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
16052 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
16054 * arm.md: Include predicates.md.
16055 * predicates.md: New file.
16056 * arm.c (s_register_operand, arm_hard_register_operand)
16057 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
16058 (arm_immediate_operand, arm_neg_immediate_operand)
16059 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
16060 (arm_add_operand, arm_addimm_operand, arm_not_operand)
16061 (offsettable_memory_operand, alignable_memory_operand)
16062 (arm_reload_memory_operand, arm_float_rhs_operand)
16063 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
16064 (index_operand, shiftable_operator, logical_binary_operator)
16065 (shift_operator, equality_operator, arm_comparison_operator)
16066 (minmax_operator, cc_register, dominant_cc_register)
16067 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
16068 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
16069 (const_shift_operand, load_multiple_operation)
16070 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
16071 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
16072 (cirrus_register_operand, cirrus_fp_register)
16073 (cirrus_shift_const): Delete, replaced with equivalents in
16075 (shift_op): Handle ROTATE.
16076 * arm-protos.h: Delete declarations for above.
16077 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
16078 * t-arm (MD_INCLUDES): Add predicates.md.
16079 (s-preds): Depends on MD_INCLUDES.
16081 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16083 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
16084 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
16085 patterns. Redefine using :GPR. Give the match_operator a mode.
16086 Use '%2' rather than '%z2' for operand 2.
16088 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16090 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
16093 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16095 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
16096 of internal patterns.
16097 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
16099 (tablejump): Use expand_binop to calculate address. Adjust names
16100 of internal patterns.
16101 (tablejump[sd]i): Renamed from tablejump_internal[12].
16103 (tablejump_mips16[12]): Delete.
16105 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16107 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
16108 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
16109 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
16110 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
16111 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
16113 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16115 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
16116 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
16118 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
16119 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
16120 (*branch_equality[sd]i_inverted): Likewise
16121 branch_equality{,_di}_inverted.
16122 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
16123 Redefine using :GPR.
16125 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16127 * rtl.def: Reorganize, placing all codes used only in machine
16128 descriptions at the end.
16130 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
16131 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
16132 rtx_name, rtx_format arrays by direct reference to rtl.def,
16133 first undefining GENERATOR_FILE. Define enum insn_note and
16134 note_insn_name array by direct reference to insn-notes.def.
16135 (adjust_field_rtx_def): Remove local definition of rtx_name.
16136 Use symbolic names for insn notes.
16137 * Makefile.in (gengtype.o): Update dependencies.
16139 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16141 * basic-block.h (struct basic_block_def): Reorder fields to
16142 eliminate interior padding. Remove 'partition' field.
16143 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
16144 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
16145 (BB_COPY_PARTITION): New macros.
16146 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
16147 Replace all references to the 'partition' field of a basic
16148 block with new macros.
16150 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16151 * final.c (final_scan_insn): Don't handle it.
16152 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
16153 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
16154 * sched-rgn.c (sched_is_disabled_for_current_region_p):
16155 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
16157 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16159 * c-decl.c (c_init_decl_processing): Adjust
16160 build_common_tree_nodes call.
16161 * expmed.c (const_mult_add_overflow_p): Use
16162 build_distinct_type_copy.
16163 * stor-layout.c (early_type_list): Remove.
16164 (layout_type): Don't append to early_type_list.
16165 (initialize_sizetypes): Add signed_p argument.
16166 (set_sizetype): Overwrite the stub type nodes directly.
16167 * tree.c (copy_node_stat): Clear a type's value cache here ...
16168 (build_distinct_type): ... not here.
16169 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
16170 * tree.h (initialize_sizetypes): Add signed_p argument.
16171 (build_common_tree_nodes): Likewise.
16173 * objc/objc-act.c (get_static_reference): Use
16174 build_variant_type_copy.
16175 (get_protocol_reference): Likewise.
16176 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
16178 2004-08-24 Richard Henderson <rth@redhat.com>
16179 Andrew Pinski <apinski@apple.com>
16181 * gimplify.c (gimplify_array_ref_to_plus): Delete.
16182 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
16185 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
16186 ARRAY_REF also to get to the STRING_CST.
16188 2004-08-24 Paul Brook <paul@codesourcery.com>
16190 * config/arm/arm.c (arm_override_options): Update error message.
16191 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
16192 TARGET_HARD_FLOAT_ABI.
16193 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
16194 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
16196 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16199 * config/m32r.md (movsi_sda): Add SI mode specification to
16202 2004-08-24 Nick Clifton <nickc@redhat.com>
16204 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
16205 of seth_add3_operand.
16207 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16209 * Makefile.in (PROTO_OBJS): Add errors.o.
16210 * protoize.c (fancy_abort): Remove.
16211 * mips-tfile.c (fancy_abort): Add parameters.
16213 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
16215 * doc/trouble.texi (C++ misunderstandings): Fix example code.
16217 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
16219 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
16220 (host-default.o): Add dependency on HOOKS_H.
16221 * config/x-linux: Likewise.
16222 * config/x-solaris: Likewise.
16223 * config/i386/x-mingw32: Likewise.
16224 * config/rs6000/x-darwin: Likewise.
16226 2004-08-23 James E Wilson <wilson@specifixinc.com>
16228 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
16231 2004-08-23 Mark Mitchell <mark@codesourcery.com>
16234 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
16236 2004-08-23 Diego Novillo <dnovillo@redhat.com>
16238 * cfg.c (check_bb_profile): Fix typos.
16239 * function.c (assign_parm_is_stack_parm): Likewise.
16240 * tree-nested.c: Likewise.
16242 2004-08-23 Daniel Jacobowitz <dan@debian.org>
16244 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
16246 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
16248 2004-08-23 Eric Christopher <echristo@redhat.com>
16250 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
16251 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
16252 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
16254 * hooks.h: Include machmode.h.
16255 (hook_bool_mode_false): Declare.
16256 * hooks.c (hook_bool_mode_false): Define.
16257 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
16258 * stor-layout.c (layout_type): Ditto.
16259 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
16260 Define to target macro.
16261 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
16262 * config/arm/arm.c: Ditto. Use.
16263 * config/arm/arm.h: Ditto.
16264 * config/arm/arm-protos.h: Ditto.
16265 * config/i386/i386.c: Ditto.
16266 * config/i386/i386.h: Ditto.
16267 * config/rs6000/rs6000.c: Ditto.
16268 * config/rs6000/rs6000.h: Ditto.
16269 * config/sh/sh.c: Ditto.
16270 * config/sh/sh.h: Ditto.
16271 * config/sh/sh-protos.h: Ditto.
16272 * config/sh/sh.md: Use.
16273 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
16274 to TARGET_VECTOR_MODE_SUPPORTED_P.
16276 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
16278 * Makefile.in (BUILD_ERRORS): Set to build-errors.
16279 (errors.o): New target for host.
16280 (build-errors.o): New target for build.
16281 (genobjs): Replace errors.o with build-errors.
16282 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
16283 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
16284 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
16285 (fix-header.o): Add errors.h
16286 * collect2.c (fancy_abort): Add parameters.
16287 * collect2.h (fancy_abort): Don't declare.
16288 * errors.h (fancy_abort): Don't declare.
16289 * errors.c: Include either bconfig.h or config.h.
16290 (fancy_abort): Trim filename.
16291 * fix-header.c (v_fatal, fatal): Remove.
16292 (progname): Remove definition.
16293 (main): Set progname here.
16294 * gcc.c (fancy_abort): Add parameters.
16295 * gcc.h (fancy_abort): Remove declaration.
16296 * gcov.c (fancy_abort): Remove.
16297 * rtl.h (fancy_abort): Don't declare.
16298 (abort): Don't define.
16299 * tree.h (fancy_abort): Don't declare.
16300 (abort): Don't define.
16301 * system.h (fancy_abort): Declare.
16302 (abort): Define to fancy_abort.
16303 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
16305 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
16306 (usize_type, ubitsizetype): Remove.
16307 * stor-layout.c (set_sizetype): Don't initialize usizetype,
16309 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
16311 * tree.h (build_distinct_type_copy): New.
16312 (build_type_copy): ... here. Rename to ...
16313 (build_variant_type_copy): ... here.
16314 * tree.c (build_qualified_type): Rename build_type_copy call.
16315 (build_distinct_type_copy): New, broken out of ...
16316 (build_type_copy): ... here. Rename to ...
16317 (build_variant_type_copy): ... here. Use
16318 build_distinct_type_copy.
16319 (build_common_tree_nodes_2): Rename build_type_copy call.
16320 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
16322 (handle_packed_attribute, handle_unused_attribute,
16323 handle_transparanet_union_attribute, handle_aligned_attribute,
16324 handle_deprecated_attribute): Likewise.
16325 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
16327 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
16328 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
16329 build_distinct_type_copy.
16331 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16333 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
16336 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16338 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
16340 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
16341 formerly unnamed patterns. Redefine using :P for the address. Remove
16342 explicit length attributes.
16344 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16346 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
16348 (single_reachable_address): Use them.
16349 (schedule_sm): Add dump.
16350 (is_call_clobbered_ref): New function.
16351 (determine_lsm_reg): Check whether the reference is call clobbered.
16352 Only work for gimple_reg_type values.
16354 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16356 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
16357 $31 store insns. Redefine using :GPR.
16359 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16361 * config/mips/mips.md (P): New mode macro.
16362 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
16363 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
16364 Add mode attributes.
16366 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16368 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
16369 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
16370 later constants to cover the gap.
16371 (load, store): New mode attributes.
16372 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
16373 Use new unspec constants.
16375 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16377 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
16378 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
16379 to use register_operand rather than uns_arith_operand as the predicate
16380 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
16381 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
16382 Redefine using :GPR. Make same predicate change here. Extend the
16383 commutativity of operands 1 and 2 from the SImode version to the
16385 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
16386 but with no predicate changes.
16387 (*nor[sd]i3): Redefine using :GPR.
16389 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16391 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
16392 noreturn functions.
16394 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16396 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
16397 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
16398 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
16399 rather than "%z2" (with a fake const0_rtx for operand 2).
16400 (ffs[sd]i2): Redefine using :GPR.
16401 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
16403 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16405 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
16407 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16409 * config/mips/mips.md (any_extend): New code macro.
16410 (u, su): New code attributes.
16411 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
16412 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
16413 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
16414 (*{s,u}mul_acc_di): Redefine using any_extend.
16415 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
16416 to reflect real insn names.
16417 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
16418 with an any_extend template.
16419 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
16422 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16424 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
16425 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
16426 (mul[sd]i3_r4000): Redefine using :GPR.
16427 (mulsi3_mult3): Don't check TARGET_MAD separately.
16428 (muldi3_mult3): Moved after mulsi_mult3.
16430 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16432 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
16433 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
16434 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
16435 (TARGET_GAS, TARGET_MIPS_AS): Delete.
16436 (TARGET_GPWORD): Define to true for n32 on IRIX.
16437 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
16438 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
16439 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
16440 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
16441 (MDEBUG_ASM_SPEC): Delete, folding into...
16442 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
16443 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
16444 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
16445 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
16446 to define asm_abi_default_spec.
16447 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
16448 (TARGET_ASM_SELECT_SECTION): Delete.
16449 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
16450 for non-mips16 code, removing previous workaround for SGI assemblers.
16451 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
16452 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
16453 (override_options): Remove !TARGET_GAS and !have_named_sections code.
16454 (print_operand): Fold TARGET_GAS conditionals into asm strings.
16455 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
16456 ASM_STABS_OP and ASM_STABN_OP.
16457 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
16458 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
16459 (mips_output_function_prologue): Remove !TARGET_GAS code.
16460 (mips_select_rtx_section): Remove !have_named_sections code.
16461 (mips_select_section): Delete.
16462 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
16463 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
16464 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
16465 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
16466 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
16467 * config/mips/windiss.h (ASM_SPEC): Likewise.
16469 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16471 * read-rtl.c (map_value, mapping, macro_group): New structures.
16472 (BELLWETHER_CODE): New macro.
16473 (modes, codes, bellwether_codes): New variables.
16474 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
16475 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
16476 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
16477 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
16478 (add_map_value, initialize_macros): New functions.
16479 (def_hash, def_hash_eq_p): Generalize to anything that points to,
16480 or starts with, a char * field.
16481 (find_macro, read_mapping, check_code_macro): New functions.
16482 (read_rtx_1): New, split out from read_rtx. Handle the new
16483 define_{mode,code}_{macro,attr} constructs. Use find_macro
16484 to parse the name of a code or mode. Use BELLWETHER_CODE to
16485 extract the format and to choose a suitable code for rtx_alloc.
16486 Modify recursive invocations to use read_rtx_1.
16487 (read_rtx): Call initialize_macros. Apply code and mode macros
16488 to the rtx returned by read_rtx_1. Cache everything after the
16489 first macro expansion for subsequent read_rtx calls.
16490 * doc/md.texi: Document new .md constructs.
16491 * config/mips/mips.md (GPR): New mode macro.
16492 (d, si8_di5): New mode attributes.
16493 (any_cond): New code macro.
16494 (add[sd]i3): Redefine using :GPR.
16495 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
16496 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
16497 previously unnamed MIPS16 patterns.
16498 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
16499 lines. Don't match (plus (const_int 0) ...).
16500 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
16501 Use a define_split to generate the addition.
16502 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
16503 (subsi3_internal): Delete.
16504 (*subsi3_extended): Renamed from subsi3_internal_2.
16505 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
16506 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
16507 using an any_cond template.
16509 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16511 * read-rtl.c (read_rtx): Tidy use of format_ptr.
16513 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16515 * read-rtl.c (string_obstack): New file-scope variable.
16516 (read_string, read_quoted_string, read_braced_string)
16517 (read_escape): Remove obstack parameter and use string_obstack instead.
16518 (read_rtx): Remove function-local rtl_obstack and initialize
16519 string_obstack instead. Update call to read_string.
16521 2004-08-22 Andrew Pinski <apinski@apple.com>
16524 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
16525 expression is not constant.
16526 (c_finish_return): Do not go through INDIRECT_REF when looking
16527 for the inner expression of an ADDR_EXPR for warning about.
16529 2004-08-22 Richard Henderson <rth@redhat.com>
16532 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
16533 create new blocks and fall through.
16534 (expand_gimple_basic_block): Update to match.
16536 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
16538 * reload.c (find_reloads_address): Make return value tri-state.
16539 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
16540 (find_reloads): Assume that reloaded addresses match 'o' or
16541 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
16542 returned 1 (not -1). Omit optional reloads for address operands
16543 only if find_reloads_address returned 1 (not -1).
16545 * config/s390/s390.c (legitimize_reload_address): New function.
16546 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
16547 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
16548 legitimize_reload_address.
16550 2004-08-22 Richard Hendersion <rth@redhat.com>
16552 * tree.h (SAVE_EXPR_RESOLVED_P): New.
16553 * gimplify.c (gimplify_save_expr): Use it.
16554 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
16555 on the temporary variable.
16557 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
16559 * fold-const.c (rtl_expr_nonnegative_p): Delete.
16560 * tree.h (rtl_expr_nonnegative_p): Remove.
16562 2004-08-22 Steven Bosscher <stevenb@suse.de>
16564 * config/i386/ppro.md (ppro_complex_insn): Add missing check
16565 for cpu==pentiumpro.
16567 * combine.c (struct reg_stat): Fix comment typo.
16569 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
16571 * c-tree.h (c_sizeof_nowarn): Remove.
16573 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
16575 * c-decl.c (set_array_declarator_type): Rename to
16576 set_array_declarator_inner.
16577 (build_c_parm, build_attrs_declarator, build_function_declarator):
16579 (make_pointer_declarator): Call build_attrs_declarator.
16580 * c-tree.h (set_array_declarator_type): Rename to
16581 set_array_declarator_inner.
16582 (build_c_parm, build_attrs_declarator, build_function_declarator):
16584 * c-parse.in (after_type_declarator,
16585 parm_declarator_starttypename, parm_declarator_nostarttypename,
16586 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
16587 firstparm): Use these functions
16589 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
16591 * c-decl.c (build_array_declarator, set_array_declarator_type,
16592 start_decl, grokdeclarator, grokparms): Change boolean parameters
16594 * c-tree.h (build_array_declarator, set_array_declarator_type,
16595 start_decl): Update prototypes.
16596 * c-decl.c, c-parse.in: All callers changed.
16598 2004-08-21 Mike Stump <mrs@apple.com>
16600 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
16601 (darwin_fix_and_continue): Likewise.
16602 (darwin_fix_and_continue_switch): Likewise.
16603 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
16604 (darwin_fix_and_continue): Likewise.
16605 (darwin_fix_and_continue_switch): Likewise.
16607 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
16610 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
16611 Remove, merging into ...
16612 (gen_stdcall_or_fastcall_suffix): New function, returning tree
16613 rather than const char*, and accepting additional parameter.
16614 Don't add suffix to '*'-prefixed symbols or variadic functions.
16615 (i386_pe_encode_section_info): Adjust for call to new function.
16616 Call change_decl_assembler_name.
16618 2004-08-20 Mike Stump <mrs@apple.com>
16620 * config/darwin.c (machopic_indirect_data_reference): Mark
16622 * config/386/386.c (darwin_local_data_pic): Add.
16623 (legitimate_constant_p): Reorder so that PLUS handling runs
16624 before darwin_local_data_pic to match the ordering in
16625 legitimate_pic_address_disp_p and so that MINUS runs after
16626 darwin_local_data_pic as otherwise the darwin_local_data_pic
16627 logic can be skipped, which would be very bad.
16628 (legitimate_pic_address_disp_p): Move from from here to
16629 darwin_local_data_pic so it can be reused.
16631 2004-08-21 Alan Modra <amodra@bigpond.net.au>
16633 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
16634 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
16635 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
16636 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
16637 (RS6000_ABI_NAME): Define as "linux".
16638 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
16639 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
16640 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
16641 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
16642 * config/rs6000/rs6000.c (dot_symbols): New global var.
16643 (rs6000_output_function_entry): New function, modified for
16645 (print_operand <case 'z'>): ..extracted from here.
16646 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
16647 (rs6000_output_function_epilogue): Likewise.
16648 (rs6000_elf_declare_function_name): Likewise.
16649 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
16650 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
16651 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
16652 * configure: Regenerate.
16653 * config.in: Regenerate.
16655 2004-08-20 Mark Mitchell <mark@codesourcery.com>
16657 * reload.c (find_reloads_address): Fix thinko in previous change.
16659 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
16662 2004-08-20 Jakub Jelinek <jakub@redhat.com>
16664 PR rtl-optimization/17099
16665 * combine.c (force_to_mode): Check if inner_mask has any bits set
16666 outside of GET_MODE (x) instead of op_mode.
16668 2004-08-20 Mark Mitchell <mark@codesourcery.com>
16670 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
16672 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
16673 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
16674 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
16676 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
16678 * config/arm/t-symbian: New file.
16680 2004-08-20 Andrew Pinski <apinski@apple.com>
16682 * regrename.c (kill_value_regno): ANSIfy.
16684 2004-08-20 Dale Johannesen <dalej@apple.com>
16686 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
16688 2004-08-20 Daniel Jacobowitz <dan@debian.org>
16690 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
16691 (kill_value_regno): New function, derived from kill_value.
16692 (kill_value): Update.
16693 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
16695 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
16697 Fix PR tree-optimization/17111
16698 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
16699 of non-value_handles.
16700 (bitmap_set_contains): All constants are in every set.
16702 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
16704 * fold-const.c (round_up, round_down): Use build_int_cst.
16705 Optimize common case.
16707 2004-08-20 Zack Weinberg <zack@codesourcery.com>
16708 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16710 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
16711 one_only_data_section): Rename to som_readonly_data_section,
16712 som_one_only_readonly_data_section and som_one_only_data_section.
16713 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
16714 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
16715 conditional defines.
16716 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
16717 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
16719 (pa_select_section): Use renamed section functions.
16720 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
16721 SOM_READONLY_DATA_SECTION_FUNCTION,
16722 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16723 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
16725 * config/pa/som.h: ... not here.
16726 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16727 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
16728 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16729 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
16730 (READONLY_DATA_SECTION): Use som_readonly_data_section.
16732 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
16734 * fold-const.c (int_const_binop): Don't generate non-overflowing
16735 size-types specially.
16736 (fold_convert_const): Likewise.
16738 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
16739 clear cache on copied sizetype.
16741 2004-08-20 Ben Elliston <bje@au.ibm.com>
16743 * configure.ac: Don't escape apostrophe in --enable-coverage help.
16744 * configure: Regenerate.
16746 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
16749 * gcc.c (struct stat input_stat): Don't define if
16750 HOST_LACKS_INODE_NUMBERS
16751 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
16752 than stat to determine if temp file is same as input file.
16753 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
16754 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
16756 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
16758 * configure.ac (mips*-*-*): Print an error if not using GAS.
16759 * configure: Regenerated.
16760 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
16761 comments about buggy MIPSpro assemblers.
16762 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
16763 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
16764 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
16765 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
16766 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
16767 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
16768 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
16769 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
16770 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
16771 of more general IRIX 6 definitions.
16772 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
16773 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
16774 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
16775 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
16776 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16777 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
16778 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
16779 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
16780 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
16781 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
16782 (LINK_SPEC): Move most of definition to iris.h.
16783 (SUBTARGET_LINK_SPEC): New macro.
16784 (IRIX_STARTFILE_SPEC): Fold into...
16785 (STARTFILE_SPEC): ...here.
16786 (IRIX_ENDFILE_SPEC): Fold into...
16787 (ENDFILE_SPEC): ...here.
16788 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
16789 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
16790 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
16791 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
16792 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
16793 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
16794 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
16795 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16796 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
16797 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
16798 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
16799 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
16800 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
16801 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
16802 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
16803 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
16804 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
16805 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
16806 (TARGET_IRIX6): Define to 1.
16807 (DRIVER_SELF_SPECS): Define.
16808 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
16809 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
16810 (SUBTARGET_LINK_SPEC): New macro.
16811 (IRIX_STARTFILE_SPEC): Fold into...
16812 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
16813 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
16814 (LIB_SPEC, LIBGCC_SPEC): Use them.
16815 (LIB_SPEC): Remove !mabi=* case.
16816 (IRIX_ENDFILE_SPEC): Fold into...
16817 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
16818 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
16819 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
16820 (TARGET_IRIX6): New macro.
16821 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
16822 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
16823 (LABEL_AFTER_LOC): Delete.
16824 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
16825 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
16826 (mips_build_builtin_va_list): Check TARGET_IRIX6.
16827 (override_options): Remove TARGET_SGI_O32_AS-related code.
16828 (irix_output_external_libcall): Make static.
16829 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
16831 (mips_file_start): Tidy guard for ABI sections. Remove use of
16832 ABICALLS_ASM_OP; use .abicalls instead.
16833 (mips_output_aligned_decl_common, mips_declare_object_name)
16834 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
16835 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
16836 .globl foo .text directives.
16837 (irix_asm_named_section_1, irix_asm_named_section)
16838 (irix_section_align_entry, irix_section_align_htab)
16839 (irix_orig_asm_out_file, irix_section_align_entry_eq)
16840 (irix_section_align_entry_hash, irix_asm_output_align)
16841 (irix_file_start, irix_section_align_1, copy_file_data)
16842 (irix_file_end, irix_section_type_flags): Delete.
16843 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
16844 Use standard section syntax. Remove protective "jr $31".
16845 (__gcc_fini): Likewise .gcc_fini.
16846 * config/mips/irix-crtn.asm: Adjust sections accordingly.
16847 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
16849 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
16851 (EXTRA_MULTILIB_PARTS): Define.
16852 * config/mips/t-iris6: Remove bogus comment.
16853 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
16854 * config/mips/iris5gas.h, config/mips/iris5gld.h,
16855 config/mips/iris6gas.h, config/mips/iris6gld.h,
16856 config/mips/t-iris5-as, config/mips/t-iris5-gas
16857 config/mips/t-irix-gld: Delete.
16858 * config/mips/iris.h: New file.
16859 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
16861 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
16863 * postreload.c (reload_cse_move2add): Allow any condjump, but check
16864 that the implicit set isn't clobbered in the jump insn.
16866 2004-08-19 Mark Mitchell <mark@codesourcery.com>
16868 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
16869 * optabs.c (init_optabs): Don't check it.
16870 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
16871 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
16873 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
16875 * config/s390/s390.md (s390_warn_framesize_string)
16876 (s390_warn_dynamic_string, s390_stack_size_string)
16877 (s390_stack_guard_string): New global string variables.
16878 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
16879 (s390_stack_guard): New global variables.
16880 (override_options): Added checks for the new options.
16881 (s390_emit_prologue): Emit stack check and trap code and perform
16882 compile time stack size checking.
16884 * config/s390/s390.h (TARGET_OPTIONS): Added new options
16885 "warn-framesize", "warn-dynamicstack", "stack-size" and
16888 * doc/invoke.texi: Added documentation for the new options.
16890 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
16892 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
16893 to eliminate warning.
16894 (linear_search_fdes): Declare p as unsigned.
16895 (binary_search_mixed_encoding_fdes): Likewise.
16896 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
16897 to eliminate warning.
16898 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
16901 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
16903 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
16904 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
16905 instead of one. Check for strictly legitimate address.
16906 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
16907 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
16909 2004-08-19 Eric Christopher <echristo@redhat.com>
16911 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
16912 * langhooks.h (unsave_expr_now): Ditto.
16913 * tree.h (unsave_expr_1): Remove prototype.
16914 (lhd_unsave_expr_now): Rename to unsave_expr_now.
16915 * tree-inline.c (unsave_expr_1): Move here
16916 from tree.c. Make static.
16917 (unsave_expr_now): Rename from lhd_unsave_expr_now.
16918 * tree-sra.c: Fix up for rename.
16919 * tree-ssa-copy.c: Ditto.
16920 * tree-eh.c: Ditto.
16921 * tree.c (unsave_expr_1): Move to tree-inline.c.
16923 2004-08-19 Caroline Tice <ctice@apple.com>
16925 * config/i386/cygming.h (switch_to_section): Fix typo (change
16926 in_unlikely_text_section to in_unlikely_executed_text).
16928 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
16930 * vec.h (VEC_lower_bound): New macro.
16932 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
16935 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
16936 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
16937 treat each ABI separately. Deal with n32/n64 complex float arguments.
16938 (function_arg): Add associated complex handling here.
16940 2004-08-19 Richard Henderson <rth@redhat.com>
16942 * config/arm/arm.c (arm_gen_load_multiple): Use
16943 adjust_automodify_address. Take base memory and offset instead
16944 of unchanging/struct/scalar bits.
16945 (arm_gen_store_multiple): Likewise.
16946 (arm_gen_movmemqi): Use adjust_automodify_address.
16947 * config/arm/arm-protos.h: Update decls.
16948 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
16949 (store_multiple): Similarly.
16951 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
16953 * regclass.c (globalize_reg): Update call_really_used_regs.
16955 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
16957 * doc/invoke.texi (integer-share-limit): Document.
16959 * tree.h (TYPE_CACHED_VALUES_P): New.
16960 (TYPE_CACHED_VALUES): New.
16961 (TYPE_ORIG_SIZE_TYPE): Adjust.
16962 * tree.def (INTEGER_CST): Update documentation.
16963 * tree.c: Inlcude params.h.
16964 (build_int_cst): Cache small values.
16965 (build_type_copy): Do not copy the value cache.
16966 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
16968 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
16969 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
16971 * fold-const.c (force_fit_type): Copy value when setting
16973 (int_const_binop): Likewise.
16974 * stor-layout.c: Include params.h
16975 (set_sizetype): Create values cache.
16976 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
16977 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
16978 * params.h (INTEGER_SHARE_LIMIT): New.
16979 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
16981 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
16983 * gimplify.c (gimplify_minimax_expr): Remove.
16984 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
16986 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
16988 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
16989 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
16991 2004-08-19 Mark Mitchell <mark@codesourcery.com>
16993 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
16995 2004-08-18 Andrew Pinski <apinski@apple.com>
16997 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
16999 2004-08-18 Mark Mitchell <mark@codesourcery.com>
17001 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
17002 (__aeabi_ul2f): Likewise.
17004 2004-08-18 Richard Henderson <rth@redhat.com>
17006 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
17007 move to rtl completely.
17008 (struct meminsnbuf, xtensa_emit_block_move): Remove.
17009 (xtensa_find_mode_for_size): Remove.
17010 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
17011 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
17013 2004-08-18 Richard Henderson <rth@redhat.com>
17015 * config/mcore/mcore.c (mode_from_align): Remove DImode.
17016 (block_move_sequence): Rewrite to use adjust_address.
17017 (mcore_expand_block_move): Cleanup logic. Accept only operands.
17018 Return boolean indicating success/failure.
17019 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
17020 * config/mcore/mcore.md (movmemsi): Update to match.
17022 2004-08-18 Mike Stump <mrs@apple.com>
17024 * doc/invoke.texi (-mfix-and-continue): Add support for
17025 fast turn around debugging.
17026 (-ffix-and-continue): Likewise.
17027 (-mindirect-data): Likewise.
17028 (-findirect-data): Likewise.
17029 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
17030 (indirect_data): Likewise.
17031 (machopic_data_defined_p): Likewise.
17032 (machopic_output_indirection): Likewise.
17033 (darwin_encode_section_info): Likewise.
17034 (darwin_fix_and_continue): Likewise.
17035 (darwin_fix_and_continue_switch): Likewise.
17036 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
17037 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
17038 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
17039 (SUBTARGET_OPTIONS): Likewise.
17040 (darwin_fix_and_continue): Likewise.
17041 (darwin_fix_and_continue_switch): Likewise.
17042 (TARGET_FIX_AND_CONTINUE): Likewise.
17043 * config/rs6000.c (rs6000_emit_prologue): Likewise.
17045 2004-08-19 Steven Bosscher <stevenb@suse.de>
17047 * basic-block.h (struct edge_def): Remove crossing_edge.
17048 (EDGE_CROSSING): New define.
17049 (EDGE_ALL_FLAGS): Update.
17050 * bb-reorder.c (find_traces_1_round, better_edge_p,
17051 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
17052 find_jump_block, fix_crossing_conditional_branches,
17053 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
17054 Replace all occurences of crossing_edge with an edge flag check
17056 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
17057 try_crossjump_bb): Likewise.
17058 * cfglayout.c (fixup_reorder_chain): Likewise.
17059 * cfgrtl.c (force_nonfallthru_and_redirect,
17060 commit_one_edge_insertion): Likewise.
17062 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
17063 * tree-flow.h (compute_dominance_frontiers): Move prototype...
17064 * basic-block.h: ...here.
17065 * tree-cfg.c (compute_dominance_frontiers_1,
17066 compute_dominance_frontiers): Move from here...
17067 * cfganal.c: ...to here. Include timevar.h.
17069 2004-08-18 James E Wilson <wilson@specifixinc.com>
17071 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
17072 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
17074 * config/mips/mips.md (type): Add frdiv.
17075 (divsf3+1, divsf3+2): Change type to frdiv.
17076 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
17077 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
17079 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
17080 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
17081 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
17082 * config/mips/5000.md (r5k_fdiv_single): Likewise.
17083 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
17084 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
17085 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
17086 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
17087 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
17088 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
17090 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
17092 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
17094 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
17095 get regression tester working again.
17097 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17099 * insn-notes.def, reg-notes.def: New files.
17100 * rtl.h: Use them to define enum insn_note and enum reg_note.
17101 * rtl.c: Use them to define note_insn_name and reg_note_name.
17102 * Makefile.in (RTL_BASE_H): Update.
17104 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
17105 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
17107 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17109 * arm.c (arm_size_rtx_costs): New function.
17110 (arm_override_options): Use it if optimizing for space.
17112 2004-08-18 Richard Henderson <rth@redhat.com>
17114 * emit-rtl.c (gen_const_mem): New.
17115 * rtl.h (gen_const_mem): Declare.
17116 * expr.c (do_tablejump): Use it.
17117 * varasm.c (force_const_mem): Likewise.
17118 * config/darwin.c (machopic_indirect_data_reference): Likewise.
17119 (machopic_legitimize_pic_address): Likewise.
17120 * config/arm/arm.c (legitimize_pic_address): Likewise.
17121 * config/i386/i386.c (legitimize_pic_address): Likewise.
17122 (legitimize_tls_address): Likewise.
17123 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17124 * config/ia64/ia64.md (load_fptr): Likewise.
17125 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17126 * config/pa/pa.c (legitimize_pic_address): Likewise.
17127 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17128 (rs6000_emit_move): Likewise.
17129 * config/s390/s390.c (legitimize_pic_address): Likewise.
17130 (legitimize_tls_address): Likewise.
17131 * config/s390/s390.md (casesi): Likewise.
17132 * config/sh/sh.c (sh_reorg): Likewise.
17133 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17134 * config/v850/v850.md (casesi): Likewise.
17136 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
17137 * config/sh/sh.c (prepare_move_operands): Remove incorrect
17138 use of MEM_READONLY_P.
17140 2004-08-18 Steven Bosscher <stevenb@suse.de>
17142 * Makefile.in (OBJS-common): Add postreload-gcse.c.
17143 Add new postreload-gcse.o.
17144 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
17145 (lookup_as_function, insert, rehash_using_reg, use_related_value,
17146 equiv_constant): Use SAFE_HASH instead of safe_hash.
17147 (exp_equiv_p): Export. Add for_gcse argument when comparing
17149 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
17150 find_comparison_args, fold_rtx, cse_insn): Update callers.
17151 (hash_rtx): New function derived from old canon_hash and bits
17152 from gcse.c hash_expr_1.
17153 (canon_hash_string): Rename to hash_rtx_string.
17154 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
17155 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
17156 (cselib_lookup): Update this caller.
17157 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
17159 (hash_expr): Call hash_rtx.
17160 (ldst_entry): Likewise.
17161 (expr_equiv_p): Call exp_equiv_p.
17162 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
17163 reg_used_on_edge, reg_set_between_after_reload_p,
17164 reg_used_between_after_reload_p, get_avail_load_store_reg,
17165 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
17166 get_bb_avail_insn, hash_scan_set_after_reload,
17167 compute_hash_table_after_reload,
17168 eliminate_partially_redundant_loads, gcse_after_reload,
17169 get_bb_avail_insn, gcse_after_reload_main): Remove.
17170 * postreload-gcse.c: New file, reincarnating most of the above.
17171 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
17172 (gcse_after_reload_main): Update prototype.
17173 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
17174 * passes.c (rest_of_handle_gcse2): Use it.
17176 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17178 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
17179 (pass_loop_done): Likewise.
17181 2004-08-18 Andrew Pinski <apinski@apple.com>
17183 * config/rs6000/darwin.md: Delete the altivec patterns which are
17184 handled differently now.
17185 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
17186 (macho_correct_pic_di): Likewise.
17187 (call_indirect_nonlocal_darwin64): Likewise.
17188 Delete the save world/saveFP/saveVec patterns.
17190 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
17191 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17192 * config/rs6000/rs6000.md: Include darwin.md.
17193 (builtin_setjmp_receiver): Add DImode case.
17194 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17197 2004-08-18 Matt Austern <austern@apple.com>
17199 Dead code stripping
17200 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
17201 * darwin.c (darwin_file_end): Mark file as potentially strippable.
17203 2004-08-18 Richard Henderson <rth@redhat.com>
17205 * alias.c (readonly_fields_p): Remove.
17206 (objects_must_conflict_p): Don't call it.
17207 * tree.h (readonly_fields_p): Remove.
17208 * langhooks.h (struct lang_hooks): Remove honor_readonly.
17209 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
17211 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17213 * tree-dfa.c (add_referenced_var): Only global variables are
17215 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
17216 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
17217 all pointers dereferenced if the statement dereferences them.
17218 (create_name_tags): Do not create memory tags for pointers
17219 that have PT_ANYTHING set.
17220 Also check if PT_VARS is not empty before creating a name tag.
17221 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
17222 variables that share the same alias set with a pointer that
17223 may point anywhere.
17224 (add_may_alias): Add FIXME comment to remove clobbering
17225 aliased variables and tags.
17226 (replace_may_alias): Likewise.
17227 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
17228 (merge_pointed_to_info): If the original variable has not
17229 points-to information, call set_pt_anything.
17230 (add_pointed_to_var): Do not prevent adding a pointed-to
17231 variable if the pointers is PT_ANYTHING.
17232 If the variable is a global, set PT_GLOBAL_MEM.
17233 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
17234 pointer type only come in PTR+OFFSET flavours.
17235 Always call merge_pointed_to_info on PHI arguments that are
17237 (get_nmt_for): Mark call-clobbered tags whose pointer points
17239 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
17241 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
17243 (add_stmt_operand): Abort if the caller tried to add a killing
17244 definition for a memory tag.
17245 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
17246 unnecessary checks.
17248 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
17250 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
17251 from call_used_regs. Update call_really_used_regs.
17252 (CALL_REALLY_USED_REGISTERS): Define.
17253 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
17254 Replace call_used_regs with call_really_used_regs.
17255 (calc_live_regs, sh_media_register_for_return): Likewise.
17256 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
17257 * sh.md (return_media): Likewise.
17259 2004-08-18 Andrew Pinski <apinski@apple.com>
17261 * config/darwin.c (machopic_legitimize_pic_address): Only set
17262 MEM_READONLY_P in the non TARGET_TOC case.
17264 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17266 * rtl.def (NIL): Delete.
17267 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
17268 Tighten the syntax a little.
17270 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
17271 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
17272 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
17273 * config/i386/predicates.md, config/m32r/m32r.h
17274 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
17275 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
17276 * config/sparc/sparc.h, doc/tm.texi:
17277 Replace all occurrences of NIL with UNKNOWN.
17279 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17281 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
17282 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
17283 sequence inline. Move drop_through_label code into this
17284 block, being the only place it is used. Adjust comments.
17286 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
17288 * config/rs6000/altivec.md: Add new patterns for calls to
17289 save_world/rest_world functions.
17291 * config/rs6000/rs6000-protos.h: (save_world_operation,
17292 restore_world_operation) new declarations.
17294 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
17296 (rs6000_stack_info): Set world_save_p field.
17297 (save_world_operation): New function.
17298 (restore_world_operation): New function.
17299 (compute_save_world_info): New function.
17300 (rs6000_stack_info): Call compute_save_world_info.
17301 (rs6000_emit_prologue): Check for world_save_p and generate
17302 pattern to call save_world for saving all non-volatile and
17304 (rs6000_emit_epilogue): Check for world_save_p and generate
17305 pattern to call rest_world to restore saved registers.
17307 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
17308 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
17309 (rs6000_reg_names): New entries added for save_world_operation and
17310 restore_world_operation.
17312 2004-08-18 Caroline Tice <ctice@apple.com>
17314 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
17315 "-freorder-blocks-and-partition" to the flags used in second
17316 stage of profiledbootstrap.
17317 * bb-reorder.c (push_to_next_round_p): Add new variable,
17318 next_round_is_last; set and use variable to make sure, when
17319 partitioning, that the last trace construction round consists
17320 of all (and only) cold basic blocks.
17321 (rotate_loop): Don't copy blocks that end in a section
17323 (copy_bb): Correctly initialize "partition" of duplicated bb.
17324 (add_unlikely_executed_notes): Add a comment.
17325 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
17326 to make sure, if function contains hot blocks, that the
17327 successors of ENTRY_BLOCK_PTR are hot; also, only look for
17328 crossing edges if the architecture supports named sections.
17329 (mark_bb_for_unlikely_executed_section): Modify to always
17330 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
17331 the basic block note insn.
17332 (fix_crossing_unconditional_branches): Remove extra space.
17333 (fix_edges_for_rarely_executed_code): Modify to only do
17334 partitioning work if the architecture supports named sections.
17335 (reorder_basic_blocks): Modify to only add
17336 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
17337 supports named sections.
17338 * c-common.c (handle_section_attribute): Initialize new global
17339 variable, user_defined_section_attribute, to true if user has
17341 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
17342 forward edges that cross section boundaries.
17343 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
17344 partitioning information if the architecture supports named
17346 * cfgrtl.c (target.h): Add statement to include this.
17347 (rtl_split_block): Make sure newly created bb gets correct
17349 (try_redirect_by_replacing_jump): Make sure redirection isn't
17350 attempting to cross section boundaries.
17351 (force_nonfallthru_and_redirect): Only do partition fix up if
17352 architecture supports named sections.
17353 (rtl_split_edge): Make sure newly created bb ends up in
17355 (commit_one_edge_insertion): Remove code that incorrectly
17356 updated basic block partition; Make sure partition fix up only
17357 happens if architecture supports named sections and it's not
17359 (rtl_verify_flow_info_1): Fix if-condition on test/error
17360 condition that fallthru edges are not allowed to cross section
17362 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
17363 * final.c (final_scan_insn): Remove redundant test from if-statement;
17364 change calls to text_section into calls to function_section; add code
17365 to only to partitioning fix up if architecture supports named
17367 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
17369 (if_convert): Add targetm.have_named_sections to test.
17370 * output.h (unlikely_section_label): Extern declaration for new global
17372 (unlikely_text_section_name): Likewise.
17373 * opts.c (decode_options): If both partitioning and DWARF debugging
17374 are turned on, issue a warning that this doesn't work, and change
17375 partitiong to basic block reordering (without hot/cold partitions).
17376 * passes.c (rest_of_handle_final): Re-set new global variable,
17377 user_defined_section_attribute, to false.
17378 (rest_of_compilation): Change options for calling partitioning
17379 function: Don't call if the user defined the section attribute, and
17380 don't call if DECL_ONE_ONLY is true for the current function.
17381 * predict.c (choose_function_section): Return immediately if we
17382 are doing hot/cold partitioning (i.e. let the basic block partitioning
17383 determine where the function belongs).
17384 * reg-stack.c (emit_swap_insn): Add condition to step over
17385 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
17386 * toplev.c (user_defined_section_attribute): New global variable.
17387 * toplev.h (user_defined_section_attribute): Extern declaration
17388 for new global variable.
17389 * varasm.c (unlikely_section_label): New global variable.
17390 (unlikely_text_section_name): New global variable.
17391 (unlikely_text_section): Add code to initialize
17392 unlikely_text_section_name if necessary; modify to use
17393 unlikely_text_section_name and unlikely_section_label; also to use
17394 named_section properly.
17395 (in_unlikely_text_section): Modify to work correctly with
17396 named_section and to use unlikely_text_section_name.
17397 (named_section): Add code to work properly with cold section.
17398 (function_section): Clean up if-statement.
17399 * config/darwin.c (darwin_asm_named_section): Return to original
17400 code, removing use of SECTION_FORMAT_STRING.
17401 * config/arm/pe.h (switch_to_section): Add case for
17402 in_unlikely_executed_text to switch statement.
17403 * config/i386/cygming.h (switch_to_section): Likewise.
17404 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17405 (SECTION_FORMAT_STRING): Likewise.
17406 * config/mcore/mcore.h (switch_to_section): Likewise.
17407 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17408 (SECTION_FORMAT_STRING): Remove.
17410 2004-08-18 Roger Sayle <roger@eyesopen.com>
17412 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
17413 -ffixed-reg safe, by preserving the meanings of zero and one.
17414 (CALL_USED_REGISTERS): Likewise.
17415 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
17417 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
17419 * config/sh/sh.c (split_branches): Check the result of
17421 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
17422 Call rtl_register_cfg_hooks.
17424 2004-08-18 Richard Henderson <rth@redhat.com>
17426 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17427 * alias.c (true_dependence): Update to match new semantics.
17428 (canon_true_dependence, write_dependence_p): Likewise.
17429 (anti_dependence, output_dependence): Update write_dependence_p args.
17430 (unchanging_anti_dependence): Remove.
17431 * calls.c (purge_mem_unchanging_flag): Remove.
17432 (fixup_tail_calls): Don't call it.
17433 (expand_call): Don't add unchanging memory to function usage.
17434 * expr.c (emit_block_move_via_libcall): Likewise.
17435 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
17436 (get_subtarget): Don't use RTX_UNCHANGING_P.
17437 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
17438 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
17439 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
17440 * cse.c (insert): Don't use RTX_UNCHANGING_P.
17441 (cse_insn, canon_hash): Use MEM_READONLY_P.
17442 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
17443 instead of RTX_UNCHANGING_P.
17444 * explow.c (maybe_set_unchanging): Remove.
17445 * expr.h (maybe_set_unchanging): Remove.
17446 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
17447 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
17448 (assign_parm_setup_reg, expand_function_start): Likewise.
17449 * integrate.c (copy_rtx_and_substitute): Likewise.
17450 * ra-rewrite.c (emit_colors): Likewise.
17451 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
17452 (fixup_match_1): Likewise.
17453 * reload1.c (reload, alter_reg): Likewise.
17454 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
17455 not RTX_UNCHANGING_P.
17456 (equiv_init_varies_p): Likewise.
17457 * loop-invariant.c (check_maybe_invariant): Likewise.
17458 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
17459 * loop.c (note_addr_stored): Likewise.
17460 (prescan_loop): Likewise. Don't check function usage for clobbered
17462 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
17463 not RTX_UNCHANGING_P.
17464 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
17465 * varasm.c (force_const_mem): Likewise.
17466 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
17467 * web.c (entry_register): Likewise.
17468 * tree-gimple.h (get_base_address): Move decl ...
17469 * tree.h: ... here.
17470 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17472 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
17473 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
17474 (alpha_set_memflags): Update to match.
17476 * config/darwin.c (machopic_indirect_data_reference): Set
17477 MEM_READONLY_P instead of RTX_UNCHANGING_P.
17478 (machopic_indirect_call_target): Likewise.
17479 (machopic_legitimize_pic_address): Likewise.
17480 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
17481 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
17482 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
17483 * config/frv/frv.md (symGOT2reg): Likewise.
17484 * config/i386/i386.c (legitimize_pic_address,
17485 legitimize_tls_address, ix86_split_to_parts): Likewise.
17486 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17487 * config/ia64/ia64.md (load_fptr): Likewise.
17488 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17489 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
17490 * config/mcore/mcore.c (block_move_sequence): Likewise.
17491 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
17492 * config/pa/pa.c (legitimize_pic_address): Likewise.
17493 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17494 (rs6000_emit_move): Likewise.
17495 * config/s390/s390.c (legitimize_pic_address): Likewise.
17496 (legitimize_tls_address): Likewise.
17497 * config/s390/s390.md (casesi): Likewise.
17498 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
17499 * config/sh/sh.md (symGOT2reg): Likewise.
17500 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17501 * config/v850/v850.md (casesi): Likewise.
17503 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
17504 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
17505 * config/mips/mips.c (mips_restore_gp): Likewise.
17506 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
17507 * config/sh/sh.c (sh_reorg): Likewise.
17509 2004-08-18 Richard Henderson <rth@redhat.com>
17511 * tree.h (struct tree_decl): Add gimple_formal_temp.
17512 (DECL_GIMPLE_FORMAL_TEMP_P): New.
17513 * gimplify.c (pop_gimplify_context): Clear it.
17514 (lookup_tmp_var): Set it, if is_formal.
17515 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
17516 Use is_gimple_val for VECTOR. Simplify return value.
17517 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
17518 (gimplify_expr): Likewise.
17519 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
17520 is_gimple_tmp_rhs for clarity. Update all callers.
17521 (is_gimple_reg_rhs): Simplify logic.
17522 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
17523 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
17524 (is_gimple_formal_tmp_reg): Similarly.
17525 * tree-gimple.h: Update decls.
17526 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
17527 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
17528 * tree-ssa-live.c (var_union, type_var_init): Likewise.
17530 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
17532 * c4x.c (legitimize_operands): Remove calls to
17533 preserve_subexpressions_p.
17535 2004-08-18 David Edelsohn <edelsohn@gnu.org>
17537 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
17538 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
17540 2004-08-18 Ziemowit Laski <zlaski@apple.com>
17542 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
17543 Objective-C++ extensions.
17544 * gengtype.c (get_file_basename): Match entire subdirectory name
17545 ('cp', 'objc', 'objcp') rather than just its suffix.
17546 (get_base_file_bitmap): Allow for files to belong to more than one
17548 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
17549 used by more than one front-end.
17551 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17553 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
17554 avoid use of preserve_subexpressions_p.
17556 2004-08-17 Richard Henderson <rth@redhat.com>
17559 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
17561 2004-08-17 DJ Delorie <dj@redhat.com>
17563 * doc/extend.texi: Document new xstormy16 attribute.
17565 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
17566 (xstormy16_splittable_below100_or_register): New.
17567 (combine_bnp): New.
17568 (xstormy16_reorg): New.
17569 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17571 * config/stormy16/stormy16.md (movqi_internal): Make name public.
17572 (movhi_internal): Likewise.
17573 (cbhranchhi): Likewise.
17574 (cbhranchhi_neg): Likewise.
17575 (andhi3): Only allow splittable below100 operands.
17576 (iorhi3): Likewise.
17577 (peephole2): New and/zero_extend->and peephole.
17578 (peephole2): New load/ior/save->set1 peephole.
17579 (peephole2): New load/and/save->clr1 peephole.
17580 (bclrx, bclrx2, bclr7, bclr15): New.
17581 (bsetx, bsetx2, bset7, bset15): New.
17583 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
17584 liberal about acceptable 'B' masks.
17586 * config/stormy16/stormy16-protos.h
17587 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17588 xstormy16_below100_operand, xstormy16_below100_or_register,
17589 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17590 (PREDICATE_CODES): Add new predicates.
17592 * config/stormy16/stormy16.c
17593 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17594 xstormy16_below100_operand, xstormy16_below100_or_register,
17595 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17596 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
17597 (xstormy16_legitimate_address_p): Allow below100 symbols.
17598 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
17599 (xstormy16_expand_move): Leave below100 operands as-is.
17600 (xstormy16_encode_section_info): Encode below100 symbols.
17601 (xstormy16_strip_name_encoding): New.
17602 (xstormy16_print_operand): Print 'b' as shift mask.
17603 (xstormy16_attribute_table): Add below100 attributes.
17604 (xstormy16_handle_below100_attribute): New.
17606 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
17607 (XSTORMY16_SECTION_FUNCTION): New.
17608 (EXTRA_SECTION_FUNCTIONS): Define using the above.
17609 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17610 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
17611 (ASM_OUTPUT_LABELREF): Define.
17613 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
17614 (movhi_internal): Add below100 support.
17615 (andhi3): Add below100 support.
17616 (iorhi3): Add below100 support.
17617 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
17619 2004-08-17 James E Wilson <wilson@specifixinc.com>
17621 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
17622 of VOIDmode for comparison code mode.
17623 * config/mips/mips.md: For conditional move patterns, use mode of
17624 first compare operand for comparison mode, instead of VOIDmode.
17626 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
17627 normal and -ffast-math code.
17629 2004-08-17 Mark Mitchell <mark@codesourcery.com>
17632 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
17634 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
17636 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
17638 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
17640 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
17641 for non Darwin targets.
17642 (*call_value_nonlocal_darwin64): Likewise.
17644 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
17646 * config/rs6000/rs6000.c (rs6000_function_value): Check for
17647 altivec mode for altivec return register.
17649 2004-08-17 David Edelsohn <edelsohn@gnu.org>
17651 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
17652 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17653 * config/rs6000/rs6000.md: Include darwin.md.
17654 (builtin_setjmp_receiver): Add DImode case.
17655 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17658 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
17660 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
17662 * tree-vectorizer.h: New File: Same.
17663 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
17664 * common.opt (ftree-vectorize): New flag to enable vectorization.
17665 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
17666 vectorization pass.
17667 * tree-data-ref.h (init_data_ref): Additional argument.
17668 (array_base_name_differ_p): Moved to tree-data-ref.c.
17669 * tree-data-ref.c (array_base_name_differ_p): Revised.
17670 (initialize_data_dependence_relation): Call array_base_name_differ_p
17671 with an extra argument.
17672 (analyze_all_data_dependences): Same.
17673 (init_data_ref): Additional argument is_read to set DR_IS_READ.
17674 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
17676 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
17677 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
17678 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
17679 vectorization pass.
17680 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
17681 (tree_ssa_loop_done): Call scev_finalize.
17682 (tree_vectorize): Define the new vectorization pass.
17683 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
17684 size of the vector they support (until support for multiple vector
17685 sizes is added to the vectorizer).
17686 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
17687 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
17688 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
17691 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
17693 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
17695 (generate_protocol_list, handle_impent): Likewise.
17697 2004-08-17 Roger Sayle <roger@eyesopen.com>
17699 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
17700 ensure that call_used_regs is a superset of both fixed_regs and
17701 call_really_used_regs.
17703 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
17706 * arm.md (addsi3_cbranch_scratch): Correct case labels.
17708 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
17710 PR middle-end/17036
17711 * fold-const.c (fold): Check for integer operand when
17712 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
17713 Pinski <pinskia@physics.uc.edu>.
17715 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
17717 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
17718 No need to check if in a cross configuration.
17719 * configure: Regenerate.
17721 * calls.c (precompute_register_parameters):
17722 Inline preserve_subexpressions_p ().
17723 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
17724 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
17726 * expr.c (get_subtarget): Likewise.
17727 * rtl.h (preserve_subexpressions_p): Remove.
17728 * stmt.c (preserve_subexpressions_p): Remove.
17730 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
17731 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
17732 Abort on gimplified cases.
17734 2004-08-16 James E Wilson <wilson@specifixinc.com>
17736 * tree.h (VECTOR_FLOAT_TYPE_P): New.
17737 (FLOAT_TYPE_P): Use it.
17738 * c-typeck.c (build_binary_op): After convert calls, check for
17739 check for ERROR_MARK operands.
17741 2004-08-16 Zack Weinberg <zack@codesourcery.com>
17743 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
17744 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
17745 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
17746 (genobjs static pattern rule): Remove %.c dependency.
17747 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
17748 Rename rules; delete commands; fix dependencies.
17749 (mostlyclean): Do not delete temporary source copies.
17750 * configure.ac: Delete all references to BUILD_PREFIX and
17752 * configure: Regenerate.
17754 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
17755 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
17756 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
17757 with #ifndef GENERATOR_FILE so that nothing from those headers
17760 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
17762 2004-08-16 Adam Nemet <anemet@lnxw.com>
17764 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
17766 2004-08-16 Andrew Pinski <apinski@apple.com>
17768 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
17769 extraneous semicolon.
17771 2004-08-16 Devang Patel <dpatel@apple.com>
17773 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
17774 * print-tree.c (print_node): Print DECL_PRESERVE_P.
17775 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
17776 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
17777 * target.h (struct gcc_target): New member, mark_decl_preserved.
17778 * hooks.c (hook_void_charptr): Rename to ...
17779 (hook_void_constcharptr): ... new name.
17780 * hooks.h (hook_void_charptr): Rename to ..
17781 (hook_void_constcharptr): ... new name.
17782 * tree.h (DECL_PRESERVE_P): New #define.
17783 (struct tree_decl): New member, preserve_flag.
17784 * varasm.c (assemble_start_function): Mark decl preserved.
17785 (assemble_variable): Same.
17786 * darwin.c (darwin_mark_decl_preserved): New function.
17787 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
17788 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
17789 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
17791 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
17793 * c-decl.c (grokdeclarator): Allow for function definition where
17794 innermost declarator has attributes.
17796 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
17798 * except.c (get_exception_filter, build_post_landing_pads,
17799 dw2_build_landing_pads): Use target-specific mode for 'filter'.
17800 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
17801 * target.h (eh_return_filter_mode): New field added.
17802 * targhooks.c (default_eh_return_filter_mode): Defined.
17803 * targhooks.h (default_eh_return_filter_mode): Declared.
17804 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
17806 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
17808 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
17809 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
17810 * configure: Regenerate.
17812 2004-08-16 Stan Shebs <shebs@apple.com>
17814 Basic support for 64-bit Darwin.
17815 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17816 (machopic_legitimize_pic_address): Similarly, plus use Pmode
17818 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
17819 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
17820 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
17821 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
17822 (PROCESSOR_DEFAULT64): Define.
17823 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
17825 * config/rs6000/rs6000.md: Include darwin.md.
17826 (builtin_setjmp_receiver): Add DImode case.
17827 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
17829 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
17830 (rs6000_emit_move): Add DImode case to Darwin bits.
17831 (machopic_output_stub): Use .quad if 64-bit.
17832 * invoke.texi: Document -m32 and -m64.
17834 2004-08-16 Janis Johnson <janis187@us.ibm.com>
17836 * doc/extend.texi (AltiVec builtins): Document additional differences
17837 from the Motorola AltiVec PIM.
17839 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
17841 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
17842 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
17843 (struct tree_common): Update public_flag documentation.
17845 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
17847 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17848 Check for artificial variables, not is_gimple_tmp_var.
17849 * tree-ssa-live.c (var_union): Likewise.
17851 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
17853 * calls.c (load_register_parameters): Remove spurious FIXME token.
17855 2004-08-15 Ziemowit Laski <zlaski@apple.com>
17857 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
17858 (c-lang.o): Depend on c-objc-common.h.
17859 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
17860 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
17861 * c-lang.c: Include c-objc-common.h.
17862 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
17863 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
17864 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
17865 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
17866 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
17867 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
17868 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
17869 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
17870 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
17871 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17872 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
17873 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
17874 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17875 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
17876 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
17877 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
17878 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
17879 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
17880 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
17881 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
17882 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
17883 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
17884 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
17885 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
17886 Move to c-objc-common.h.
17887 * c-objc-common.c: Include c-objc-common.h.
17888 * c-objc-common.h: New file.
17890 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
17891 Andrew Pinski <pinskia@physics.uc.edu>
17894 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
17897 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
17899 * tree.h (build_int_cst): New.
17900 (build_int_2): Remove.
17901 * tree.c (build_int_2): Remove.
17902 (build_int_cst): New.
17903 (make_vector_type, build_common_tree_nodes,
17904 build_common_tree_nodes_2): Use build_int_cst.
17905 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
17906 expand_builtin_strpbrk, expand_builtin_fputs,
17907 build_string_literal, expand_builtin_printf,
17908 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
17909 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
17910 fold_builtin_isdigit, simplify_builtin_strstr,
17911 simplify_builtin_strpbrk, fold_builtin_fputs,
17912 simplify_builtin_sprintf): Use build_int_cst.
17913 * c-common.c (start_fname_decls, fix_string_type,
17914 c_common_nodes_and_builtins, c_init_attributes,
17915 shorten_compare): Likewise.
17916 * c-decl.c (complete_array_type,
17917 check_bitfield_type_and_width): Likewise.
17918 * c-lex.c (interpret_integer, lex_charconst): Likewise.
17919 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
17920 * c-pretty-print.c (pp_c_integer_constant): Likewise.
17921 * c-typeck.c (really_start_incremental_init, push_init_level,
17922 set_nonincremental_init_from_string): Likewise.
17923 * calls.c (load_register_parameters): Likewise.
17924 * convert.c (convert_to_pointer): Likewise.
17925 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
17926 build_fn_info_type, build_ctr_info_value, build_gcov_info):
17928 * except.c (init_eh, assign_filter_values, assign_filter_values):
17930 * expmed.c (store_fixed_bit_field, extract_bit_field,
17931 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
17932 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
17933 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
17934 * expr.c (convert_move, emit_group_load, emit_group_store,
17935 expand_assignment, store_constructor, store_field,
17936 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
17937 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
17938 invert_truthvalue, optimize_bit_field_compare,
17939 decode_field_reference, all_ones_mask_p, constant_boolean_node,
17940 fold_div_compare, fold, fold_read_from_constant_string,
17941 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
17942 * function.c (assign_parm_setup_block): Likewise.
17943 * stmt.c (shift_return_value, expand_end_case_type,
17944 estimate_case_costs): Likewise.
17945 * stor-layout.c (layout_type, initialize_sizetypes,
17946 set_min_and_max_values_for_integral_type): Likewise.
17947 * tree-chrec.c (chrec_fold_multiply_poly_poly,
17948 reset_evolution_in_loop): Likewise.
17949 * tree-chrec.h (build_polynomial_chrec): Likewise.
17950 * tree-complex.c (build_replicated_const): Likewise.
17951 * tree-eh.c (honor_protect_cleanup_actions,
17952 lower_try_finally_onedest, lower_try_finally_copy,
17953 lower_try_finally_switch): Likewise.
17954 * tree-mudflap.c (mf_build_string, mx_register_decls,
17955 mudflap_register_call, mudflap_enqueue_constant): Likewise.
17956 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
17957 * tree-pretty-print.c (dump_generic_node): Likewise.
17958 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
17960 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
17961 * tree-ssa-loop-niter.c (number_of_iterations_cond,
17962 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
17965 * config/alpha/alpha.c (alpha_initialize_trampoline,
17966 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
17967 * config/arm/arm.c (arm_get_cookie_size): Likewise.
17968 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
17969 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
17970 * config/i860/i860.c (i860_va_start): Likewise.
17971 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17972 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
17973 mips_gimplify_va_arg_expr): Likewise.
17974 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17975 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
17976 add_compiler_branch_island): Likewise.
17977 * config/s390/s390.c (s390_va_start): Likewise.
17978 * config/sh/sh.c (sh_va_start): Likewise.
17979 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17981 * config/xtensa/xtensa.c (xtensa_va_start,
17982 xtensa_gimplify_va_arg_expr): Likewise.
17984 * objc/objc-act.c (build_objc_string_object,
17985 build_objc_symtab_template, init_def_list, init_objc_symtab,
17986 init_module_descriptor, generate_static_references,
17987 build_selector_translation_table, get_proto_encoding,
17988 build_typed_selector_reference, build_selector_reference,
17989 build_next_objc_exception_stuff,
17990 build_method_prototype_list_template, generate_descriptor_table,
17991 generate_protocols, build_protocol_initializer,
17992 build_ivar_list_template, build_method_list_template,
17993 build_ivar_list_initializer, generate_ivars_list,
17994 generate_dispatch_table, generate_protocol_list,
17995 build_category_initializer, build_shared_structure_initializer,
17996 generate_shared_structures, handle_impent,
17997 generate_objc_image_info): Use build_int_cst.
17999 2004-08-15 Ben Elliston <bje@au.ibm.com>
18001 * vec.h: Comment improvements.
18003 2004-08-14 Roger Sayle <roger@eyesopen.com>
18005 * c-common.c (shorten_compare, pointer_int_sum,
18006 c_common_truthvalue_conversion, boolean_increment): Replace calls
18007 to build with calls to buildN.
18008 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
18009 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
18010 gimplify_switch_stmt): Likewise.
18011 * c-typeck.c (default_function_array_conversion,
18012 build_component_ref, build_array_ref, build_function_call,
18013 pointer_diff, build_unary_op, build_conditional_expr,
18014 build_compound_expr, build_modify_expr, c_finish_goto_label,
18015 c_finish_goto_ptr, c_finish_return, c_finish_loop,
18016 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
18017 build_binary_op): Likewise.
18019 2004-08-15 Steven Bosscher <stevenb@suse.de>
18021 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
18023 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18025 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
18026 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
18027 * fixinc/fixincl.x: Rebuilt.
18029 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
18031 * config/mips/mips-protos.h (mips_symbolic_constant_p)
18032 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
18033 (mips_small_data_pattern_p): Declare.
18034 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
18035 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
18036 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
18037 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
18038 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
18039 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
18040 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
18041 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
18042 (pc_or_label_operand, call_insn_operand, move_operand)
18043 (consttable_operand, symbolic_operand, general_symbolic_operand)
18044 (global_got_operand, local_got_operand, stack_operand)
18045 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
18046 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
18047 (mips_small_data_pattern_p): Replace previous small_data_pattern
18048 predicate. Turn into a bool () (rtx) function.
18049 * config/mips/predicates.md: New file.
18050 * config/mips/mips.md: Include it. Use the target-independent
18051 comparison_operator instead of cmp_op. Rename trap_cmp_op to
18052 trap_comparison_operator and equality_op to equality_operator.
18053 Replace uses of small_int with the equivalent const_arith_operand.
18054 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
18055 const_float_1_operand to const_1_operand. Rename fcc_register_operand
18056 to fcc_reload_operand.
18057 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
18059 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18061 PR libstdc++/17005 partial fix.
18062 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
18063 except when generating ANSI/C89 code.
18065 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
18067 * c-common.c (shorten_compare): Use force_fit_type directly.
18069 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
18070 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
18071 Dave Korn <dk@artimi.com>
18073 * doc/install.texi (Building): Avoid duplicate reference to GNU
18075 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
18077 2004-08-14 Richard Henderson <rth@redhat.com>
18079 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
18080 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
18082 2004-08-13 Richard Henderson <rth@redhat.com>
18084 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
18085 for constant_call_address_operand.
18086 (call_value_pop_1, call_value_1): Likewise.
18087 (sibcall_value_1, call_value_1_rex64): Likewise.
18089 2004-08-13 James E Wilson <wilson@specifixinc.com>
18091 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
18092 Correct mode from SFmode to DFmode.
18094 2004-08-13 Ziemowit Laski <zlaski@apple.com>
18096 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
18097 __cstring_object and __image_info sections with the no_dead_strip
18100 2004-08-13 Roger Sayle <roger@eyesopen.com>
18101 David Billinghurst <David.Billinghurst@riotinto.com>
18103 PR libgfortran/15930
18104 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
18105 * fixinc/fixincl.x: Regenerate.
18106 * fixinc/tests/base/internal/math_core.h: New file.
18108 2004-08-13 Richard Henderson <rth@redhat.com>
18110 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
18111 (dbxout_function_end): Remove ifdefs for it.
18112 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
18114 2004-08-13 Richard Henderson <rth@redhat.com>
18116 * Makefile.in (insn-preds.o): Depend on TREE_H.
18117 * genpreds.c (write_insn_preds_c): Include tree.h.
18118 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
18119 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
18120 const48_operand, and_operand, or_operand, mode_width_operand,
18121 mode_mask_operand, mul8_operand, const0_operand,
18122 hard_fp_register_operand, hard_int_register_operand,
18123 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
18124 samegp_function_operand, direct_call_operand, small_symbolic_operand,
18125 global_symbolic_operand, call_operand, symbolic_operand,
18126 dtp16_symbolic_operand, dtp32_symbolic_operand,
18127 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
18128 gottp_symbolic_operand, alpha_comparison_operator,
18129 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
18130 signed_comparison_operator, alpha_fp_comparison_operator,
18131 divmod_operator, fix_operator, aligned_memory_operand,
18132 unaligned_memory_operand, reg_or_unaligned_mem_operand,
18133 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
18134 reg_no_subreg_operand, addition_operation): Move to predicates.md.
18135 (reg_or_const_int_operand): Remove. Replace all users with
18136 reg_or_cint_operand.
18137 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
18138 (resolve_reload_operand): Split out of aligned_memory_operand.
18139 * config/alpha/alpha-protos.h: Update for exports.
18140 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
18141 * config/alpha/alpha.md: Include predicates.md.
18142 * config/alpha/predicates.md: New file.
18144 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
18146 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
18147 fields with a pointer to the instruction definition.
18148 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
18149 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
18150 (write_attr_case, write_const_num_delay_slots): Update accordingly.
18151 (write_attr_case, write_const_num_delay_slots): Write the name of
18152 an insn next to its case statement.
18153 * genoutput.c (data): Add a filename field.
18154 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
18155 (output_insn_data): Print the location of each insn definition.
18156 * genrecog.c (write_action): Print the name of an insn above
18157 the statement that returns its code.
18159 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
18161 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
18162 * config/libgloss.h: Likewise.
18163 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
18164 * c4x/c4x-modes.def: Likewise.
18165 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
18166 (c4x_rptb_nop_p): Likewise.
18167 (c4x_rptb_valid_p): Likewise.
18168 (c4x_rptb_insert): Likewise.
18169 (c4x_address_conflict): Likewise.
18170 * config/c4x/c4x.md: Likewise.
18171 * config/frv/frv.md: Likewise.
18172 * config/i386/athlon.md: Likewise.
18173 * config/i386/i386.md: Likewise.
18174 * config/i386/predicates.md: Likewise.
18175 * config/ia64/ia64.c: Likewise.
18176 * config/ia64/itanium1.md: Likewise.
18177 * config/ia64/itanium2.md: Likewise.
18178 * config/iq2000/iq2000.md: Likewise.
18179 * config/mcore/mcore.c: Likewise.
18180 * config/mips/mips.c: Likewise.
18181 * config/mips/r3900.h: Likewise.
18182 * config/mips/sb1.md: Likewise.
18183 * config/pa/milli64.S: Likewise.
18184 * config/pa/pa.c: Likewise.
18185 * config/pa/pa.h: Likewise.
18186 * config/rs6000/8540.md: Likewise.
18188 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
18190 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
18192 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
18194 * sh.md (cbranch define_delay) Use cond_delay_slot for
18195 non-anulled condition too.
18197 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18199 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
18200 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18201 any_parallel_operand, lmw_operation, stmw_operation,
18202 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
18203 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
18204 any_parallel_operand.
18205 (return_and_restore_fpregs_{si,di}): Same.
18207 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18209 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
18210 if pred->singleton != PARALLEL, issue a warning and pretend it was.
18211 Also issue a warning for any predicate we don't know about.
18213 2004-08-12 Richard Henderson <rth@redhat.com>
18215 * config/i386/i386.c (internal_label_prefix): Export.
18216 (internal_label_prefix_len, struct ix86_address,
18217 ix86_decompose_address, maybe_get_pool_constant,
18218 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
18219 memory_address_length): Export.
18220 (any_fp_register_operand, fp_register_operand,
18221 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
18222 x86_64_general_operand, x86_64_szext_general_operand,
18223 x86_64_nonmemory_operand, x86_64_movabs_operand,
18224 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
18225 x86_64_zext_immediate_operand, const_int_1_31_operand,
18226 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
18227 tls_symbolic_operand, global_dynamic_symbolic_operand,
18228 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
18229 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
18230 constant_call_address_operand, const0_operand, const1_operand,
18231 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
18232 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
18233 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
18234 general_no_elim_operand, nonmemory_no_elim_operand,
18235 index_register_operand, q_regs_operand, flags_reg_operand,
18236 non_q_regs_operand, zero_extended_scalar_load_operand,
18237 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
18238 ix86_comparison_operator, ix86_carry_flag_operator,
18239 fcmov_comparison_operator, promotable_binary_operator,
18240 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
18241 mult_operator, div_operator, arith_or_logical_operator,
18242 memory_displacement_operand, cmpsi_operand, long_memory_operand,
18243 aligned_operand): Move to predicates.md as define_predicates.
18244 (tls_symbolic_operand_1): Remove.
18245 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
18246 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
18247 (legitimize_address): Merge tls_symbolic_operand contents.
18248 (ix86_expand_move): Likewise.
18249 * config/i386/i386-protos.h: Update for exports.
18250 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
18251 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
18252 * config/i386/i386.md: Include predicates.md.
18253 * config/i386/predicates.md: New file.
18255 2004-08-13 Mark Mitchell <mark@codesourcery.com>
18258 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
18260 (i386_pe_mark_dllimport): Likewise.
18261 (i386_pe_encode_section_info): Likewise, when overriding
18262 dllimport attribute.
18264 2004-08-12 Geoffrey Keating <geoffk@apple.com>
18266 * configure.ac: When testing for flex, nm, ar, and bison, check
18267 that they will actually be built.
18268 * configure: Regenerate.
18270 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
18272 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
18273 (MOVE_MAX_PIECES): Define.
18275 2004-08-12 Devang patel <dpatel@apple.com>
18277 * dbxout.c (dbxout_begin_prologue): New function.
18278 (dbx_debug_hooks): Use new begin prologue hook.
18279 (dbxout_function_end): Emit N_ENSYM.
18280 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
18282 2004-08-12 Janis Johnson <janis187@us.ibm.com>
18284 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
18285 argument is float*.
18287 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
18290 * doc/extend.texi (AltiVec builtins): Fix description for recent
18291 changes. Update operation list to match current support.
18293 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
18295 * config/s390/s390.c (struct s390_frame_layout): New struct as element
18296 of struct machine_function.
18297 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
18299 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
18301 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
18302 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
18303 (s390_frame_area, s390_register_info): New functions.
18304 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
18306 (s390_return_addr_rtx, s390_return_address_offset)
18307 (s390_va_start, s390_gimplify_va_arg)
18308 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
18310 (s390_frame_info): Functionality partly moved to s390_register_info.
18311 Made adaptions for new stack layout.
18312 (save_gprs, restore_gprs): Changed meaning of second parameter and
18313 adapted all callers.
18315 * config/s390/s390.h (s390_backchain_string): New global variable.
18316 (MASK_BACKCHAIN): Removed definition.
18317 (TARGET_BACKCHAIN): Changed check.
18318 (TARGET_KERNEL_BACKCHAIN): New macro.
18319 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
18320 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
18321 "kernel-backchain".
18322 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
18324 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
18325 as condition. Adjusted for new stack layout.
18327 * doc/invoke.texi: Added documentation for new option
18328 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
18331 2004-08-12 Paul Brook <paul@codesourcery.com>
18333 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
18334 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
18336 2004-08-12 David Daney <ddaney@avtrex.com>
18338 * java/gcj.texi: Add subsection on signal usage.
18340 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18342 * expr.c (move_by_pieces): Set alignment for move to minimum of
18343 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
18344 alignment, but not less than the original alignment.
18345 (move_by_pieces_ninsns): Same.
18346 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
18347 (store_by_pieces_1): Same.
18349 2004-08-12 Diego Novillo <dnovillo@redhat.com>
18351 PR tree-optimization/16867
18352 * tree.c (is_global_var): New function.
18353 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
18354 Call is_global_var.
18355 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
18357 (is_global_var): Declare.
18358 * tree-dfa.c (dump_variable): Display global and addressable
18360 (add_referenced_var): Clarify documentation when marking
18361 variables call-clobbered.
18362 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
18363 instead of needs_to_live_in_memory.
18364 (mark_call_clobbered): If the variable is a tag, mark it
18366 * tree-gimple.c (is_gimple_reg): Don't check for
18368 (is_gimple_non_addressable): Likewise.
18369 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
18370 needs to be marked call-clobbered.
18371 (setup_pointers_and_addressables): Call is_global_var instead
18372 of needs_to_live_in_memory.
18373 * tree-ssa-dce.c (need_to_preserve_store): Remove.
18374 Update all users with is_global_var.
18375 (mark_stmt_if_obviously_necessary): Fix processing of aliased
18376 stores. Don't check the virtual definitions. Rather, check
18377 whether the store is going into global memory.
18378 (find_obviously_necessary_stmts): Get the symbol from the PHI
18380 * tree-ssa-operands.c (get_call_expr_operands): Do not add
18381 clobbering may-defs if the call does not have side effects.
18383 2004-08-12 Jakub Jelinek <jakub@redhat.com>
18386 * output.h (default_function_rodata_section,
18387 default_no_function_rodata_section): New prototypes.
18388 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
18389 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18390 (TARGET_ASM_OUT): Add it.
18391 * varasm.c (default_function_rodata_section,
18392 default_no_function_rodata_section): New functions.
18393 * final.c (final_scan_insn): Call
18394 targetm.asm_out.function_rodata_section instead of
18395 readonly_data_section.
18396 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18397 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18398 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18399 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18401 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18402 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18404 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18406 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18407 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18408 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
18410 2004-08-12 Paul Brook <paul@codesourcery.com>
18412 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
18414 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
18415 DWARF2_UNWIND_INFO.
18417 2004-08-12 Ben Elliston <bje@au.ibm.com>
18420 * config/rs6000/altivec.h: Change vector to __vector throughout.
18421 (Except for the `vector' macro itself).
18423 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18425 * genpreds.c: Add capability to generate predicate bodies as
18426 well as function prototypes. Write function prototypes for
18427 the generic predicates too.
18428 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
18429 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
18430 (write_match_code, write_predicate_expr, write_one_predicate_function)
18431 (parse_option): New functions.
18432 (output_predicate_decls): Delete.
18433 (main): Read the machine description, process DEFINE_PREDICATE or
18434 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
18437 * genrecog.c (struct decision_test): Replace index with
18438 struct pred_data pointer.
18439 (next_index): Remove, unused.
18440 (pred_table, preds, special_mode_pred_table): Delete.
18441 (compute_predicate_codes, process_define_predicate): New functions.
18442 (validate_pattern, add_to_sequence, write_switch): Update for
18443 new data structures.
18444 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18445 Check both error_count and have_error.
18447 * gensupport.c (in_fname, first_predicate): New globals.
18448 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
18449 (predicate_table, last_predicate, old_pred_table)
18450 (old_special_pred_table): New statics.
18451 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
18452 (add_predicate, init_predicate_table): New functions.
18453 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18454 (init_md_reader_args_cb): Use the global in_fname. No need to zero
18455 it or max_include_len. Call init_predicate_table.
18456 (read_rtx): Run the predicate queue after the attribute queue
18457 but before all the others.
18458 * gensupport.h (in_fname, struct pred_data, first_predicate)
18459 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
18460 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
18461 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
18462 * dummy-conditions.c: Don't include bconfig.h, system.h,
18463 coretypes.h, tm.h, or system.h. Do include stddef.h.
18464 Duplicate declaration of struct c_test from gensupport.h.
18466 * Makefile.in (OBJS-common): Add insn-preds.o.
18467 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
18468 (insn-preds.c, insn-preds.o): New rules.
18469 (s-preds): Also generate insn-preds.c.
18470 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
18471 Update dependencies.
18472 (print-rtl.o, print-rtl1.o): Correct dependencies.
18474 * recog.h: Delete prototypes of predicate functions.
18476 * doc/md.texi (Predicates): New section with complete
18477 documentation of operand/operator predicates. Remove some
18478 incomplete documentation of predicates from other places.
18479 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
18480 PREDICATE_CODES; indicate that both are deprecated in favor
18481 of define_predicate/define_special_predicate.
18483 * config/ia64/ia64.c: All predicate function definitions moved
18485 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
18486 (ia64_expand_load_address, ia64_expand_move):
18487 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
18489 * config/ia64/ia64.md: All predicates now defined here.
18490 (symbolic_operand): Is now a special predicate.
18492 * config/ia64/ia64.h: Declare ia64_section_threshold.
18493 (PREDICATE_CODES): Delete.
18495 2004-08-12 Richard Henderson <rth@redhat.com>
18497 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
18498 * c-semantics.c (add_stmt): Set it.
18499 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
18500 before instantiating a variable sized type.
18502 2004-08-12 Richard Henderson <rth@redhat.com>
18504 * stor-layout.c (round_up, round_down): Move ...
18505 * fold-const.c (round_up, round_down): ... here. Use
18506 multiple_of_p to avoid any arithmetic at all.
18508 2004-08-12 Richard Henderson <rth@redhat.com>
18510 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
18511 (gimplify_init_ctor_preeval_1): New.
18512 (gimplify_init_ctor_preeval): New.
18513 (gimplify_init_ctor_eval): New.
18514 (gimplify_init_constructor): Use them. Always gimplify the LHS
18517 2004-08-12 Ziemowit Laski <zlaski@apple.com>
18519 (This patch is part of merge of objc-improvements-branch
18522 * doc/frontends.texi: Mention Objective-C++ in addition to
18524 * doc/install.texi: Add 'obj-c++' to list of configurable
18526 * doc/invoke.texi: Rename Objective-C option headings to
18527 indicate they also apply to Objective-C++. List file
18528 extensions for Objective-C++ sources. Mention that
18529 ObjC and ObjC++ compilations may also use C and C++ options,
18530 respectively. Point users to doc/standards.texi for
18531 further info on ObjC and ObjC++.
18532 * doc/sourcebuild.texi: Mention the objcp/ directory and
18533 the Objective-C++ sources it contains.
18534 * doc/standards.texi: Update link to Apple ObjC site;
18535 add link to gcc readings.html WWW doc.
18537 2004-08-12 Alan Modra <amodra@bigpond.net.au>
18539 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
18540 and 2004-07-14 changes.
18542 2004-08-12 Paul Brook <paul@codesourcery.com>
18544 * doc/invoke.texi: Fix typo.
18546 2004-08-11 Devang Patel <dpatel@apple.com>
18548 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
18549 and -no_dead_strip_inits_and_terms.
18551 * doc/invoke.texi (Darwin Options): Document -dead_strip and
18552 -no_dead_strip_inits_and_terms.
18554 2004-08-11 Paul Brook <paul@codesourcery.com>
18556 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
18557 (arm_load_pic_register): ... to this.
18558 * config/arm/arm.c (arm_finalize_pic): Rename ...
18559 (arm_load_pic_register): ... to this. Always output insns at the
18560 current location. Load via low reg in thumb mode.
18561 (arm_expand_prologue): Call arm_load_pic_register.
18562 (thumb_expand_prologue): Ditto.
18563 * config/arm/arm.h (FINALIZE_PIC): Remove.
18564 * config/arm/arm.md (builtin_setjmp_receiver): Call
18565 arm_load_pic_register.
18567 2004-08-11 Paul Brook <paul@codesourcery.com>
18569 * arm.c (thumb_force_lr_save): Add prototype.
18570 (thumb_compute_save_reg_mask): New function.
18571 (thumb_find_work_register): New function.
18572 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
18573 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
18574 Don't clobber r3 when removing pretend args.
18575 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
18576 (thumb_output_function_prologue): Use new functions.
18577 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
18578 * arm.h (THUMB_REG_PUSHED_P): Remove.
18580 2004-08-11 James E Wilson <wilson@specifixinc.com>
18582 PR rtl-optimization/16490
18583 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
18584 global_live_at_end for new basic block if already set for other blocks.
18586 2004-08-11 David Edelsohn <edelsohn@gnu.org>
18588 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
18590 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
18591 (mfcr rlwinm rlwinm patterns): Set length to 12.
18593 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
18595 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
18596 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
18597 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
18598 (start_ssa_stmt_operands): Delete.
18599 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
18600 struct stmt_operands_d.
18601 (build_ssa_operands): New extern entry point.
18602 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
18603 building code, replace with create_ssa_artficial_load_stmt().
18604 * tree-ssa-operands.c (struct voperands_d): Delete.
18605 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
18606 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
18607 (free_uses, free_defs, free_vuses, free_v_may_defs,
18608 free_v_must_defs): Remove dealloc parameter.
18609 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
18610 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
18611 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
18612 vector comparisons, ssa_name reuse, and allocations here.
18613 (verify_start_operands): Delete.
18614 (finalize_ssa_stmt_operands): Set new operands by calling finalize
18616 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
18617 (append_def, append_usei): Simplify to simple accumulation.
18618 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
18619 duplicates and simple accumulation.
18620 (free_ssa_operands): Free vectors in a stmt_operand structure.
18621 (build_ssa_operands): New. Create a new stmt_operand structure from
18622 a stmt and an old set of stmt_operands.
18623 (get_stmt_operands): Simplify and call build_ssa_operands.
18624 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
18625 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
18626 add_call_read_ops): Don't pass prev_vops around anymore.
18627 (note_addressable): Return if no stmt annotation.
18628 (copy_virtual_operands): Access v_may_def operands through a struct.
18629 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
18630 hash tables without treating the stmt as a real stmt.
18631 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
18632 v_may_def def and use through a struct instead of 2 array elements.
18633 (struct v_may_def_optype_d): Use v_may_def_operand_type.
18634 (struct stmt_operands_d): New. Struct for storing all operand vectors.
18636 2004-08-11 Nick Clifton <nickc@redhat.com>
18638 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
18639 this funciton's behaviour. Return true when the current function
18640 has a section attribute and -mlong-calls is in effect.
18641 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
18642 short-call marker when -mlong-calls is in effect and the function
18643 has a section attribute.
18645 2004-08-10 Zack Weinberg <zack@codesourcery.com>
18647 * stmt.c (expand_return): If asked to return the RESULT_DECL,
18648 just call expand_value_return on result_rtl.
18650 2004-08-10 Richard Henderson <rth@redhat.com>
18652 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
18653 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
18654 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
18655 (add_location_or_const_value_attribute): ... not here. Use
18656 loc_descriptor_from_tree if possible.
18657 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
18658 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
18660 (loc_descriptor_from_tree): New. Update callers.
18661 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
18662 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
18663 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
18664 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
18665 and BUILT_IN_STACK_RESTORE.
18666 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
18667 * stmt.c (expand_stack_alloc): Remove.
18668 * tree-mudflap.c (mx_register_decls): Don't look for
18669 BUILT_IN_STACK_ALLOC.
18670 * tree-nested.c (convert_local_reference): Likewise.
18671 * tree.h (DECL_VALUE_EXPR): New.
18673 2004-08-10 Richard Henderson <rth@redhat.com>
18675 * stor-layout.c (round_up): Check for 0/1 before dividing.
18676 (round_down): Likewise.
18678 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
18680 2004-08-09 Mark Mitchell <mark@codesourcery.com>
18682 * config.gcc (arm*-*-eabi*): New target.
18683 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
18684 (TARGET_LIB_INT_CMP_BIASED): Likewise.
18685 * expmed.c (expand_divmod): Try a two-valued divmod function as a
18687 * gthr.h: Remove bogus tokens at end of #pragma.
18688 * optabs.c (expand_twoval_binop_libfunc): New function.
18689 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
18690 (prepare_float_lib_cmp): Try reversing the condition.
18691 (debug_optab_libfuncs): New function.
18692 * optabs.h (expand_twoval_binop_libfunc): Declare.
18693 * config/arm/arm.c (arm_init_libfuncs): New function.
18694 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
18695 (TARGET_INIT_LIBFUNCS): Define it.
18696 * config/arm/arm.h (TARGET_BPABI): New macro.
18697 * config/arm/arm-protos.h
18698 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
18699 * config/arm/bpabi.S: New file.
18700 * config/arm/bpabi.c: Likewise.
18701 * config/arm/bpabi.h: Likewise.
18702 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
18703 (__aeabi_drsub): Likewise.
18704 (__aeabi_dsub): Likewise.
18705 (__aeabi_dadd): Likewise.
18706 (__aeabi_ui2d): Likewise.
18707 (__aeabi_i2d): Likewise.
18708 (__aeabi_f2d): Likewise.
18709 (__aeabi_dmul): Likewise.
18710 (__aeabi_ddiv): Likewise.
18711 (__aeabi_cdrcmple): Likewise.
18712 (__aeabi_cdcmpeq): Likewise.
18713 (__aeabi_cdcmple): Likewise.
18714 (__aeabi_dcmpeq): Likewise.
18715 (__aeabi_dcmplt): Likewise.
18716 (__aeabi_dcmple): Likewise.
18717 (__aeabi_dcmpge): Likewise.
18718 (__aeabi_dcmpgt): Likewise.
18719 (__aeabi_dcmpun): Likewise.
18720 (__aeabi_d2iz): Likewise.
18721 (__aeabi_d2uiz): Likewise.
18722 (__aeabi_d2f): Likewise.
18723 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
18724 (__aeabi_frsub): Likewise.
18725 (__aeabi_fsub): Likewise.
18726 (__aeabi_fadd): Likewise.
18727 (__aeabi_ui2f): Likewise.
18728 (__aeabi_i2f): Likewise.
18729 (__aeabi_fmul): Likewise.
18730 (__aeabi_fdiv): Likewise.
18731 (__aeabi_cfrcmple): Likewise.
18732 (__aeabi_cfcmpeq): Likewise.
18733 (__aeabi_cfcmple): Likewise.
18734 (__aeabi_fcmpeq): Likewise.
18735 (__aeabi_fcmplt): Likewise.
18736 (__aeabi_fcmple): Likewise.
18737 (__aeabi_fcmpge): Likewise.
18738 (__aeabi_fcmpgt): Likewise.
18739 (__aeabi_fcmpun): Likewise.
18740 (__aeabi_f2iz): Likewise.
18741 (__aeabi_f2uiz): Likewise.
18742 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
18743 (__aeabi_uidivmod): New function or alias.
18744 (__aeabi_idivmod): Likewise.
18745 (__aeabi_idiv0): Likewise.
18746 (__aeabi_ldiv0): Likewise.
18747 (__aeabi_llsr): Likewise.
18748 (__aeabi_lasr): Likewise.
18749 (__aeabi_llsl): Likewise.
18750 (bpabi.S): Include it.
18751 * config/arm/libgcc-bpabi.ver: New file.
18752 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
18753 (LINK_SPEC): Remove.
18754 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
18756 * config/arm/t-bpabi: New file.
18757 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
18758 (TARGET_LIB_INT_CMP_BIASED): Likewise.
18760 2004-08-10 David Edelsohn <edelsohn@gnu.org>
18762 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
18763 * config/rs6000/rs6000.md (clrmemsi): New pattern.
18764 * config/rs6000/rs6000.c (expand_block_clear): New function.
18765 (expand_block_move): Convert alignment to bits. Use SImode and
18766 HImode for unaligned addresses if not STRICT_ALIGNMENT.
18768 2004-08-10 Caroline Tice <ctice@apple.com>
18770 * varasm.c (unlikely_section_label): New global variable.
18771 (unlikely_text_section_name): New global variable.
18772 (text_section): Remove alignment statement.
18773 (unlikely_text_section): Remove alignment statement; use
18774 unlikely_section_label rather than hard-coded string.
18775 (assemble_start_function): Initialize unlikely_section_label and
18776 unlikely_text_section_name; make sure cold section is properly
18777 aligned at start of function; output unlikely_section_label if
18780 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
18782 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
18783 * config/s390/s390.c (s390_canonicalize_comparison): New function.
18784 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
18785 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
18786 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
18787 ("*tmqi_mem"): Remove SUBREG from pattern.
18788 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
18789 ("*andsi3_cconly"): Likewise.
18791 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
18794 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
18796 2004-08-10 Janis Johnson <janis187@us.ibm.com>
18798 * doc/sourcebuild.texi (compat testing): Document available test
18799 framework commands. Use the preferred spelling of DejaGnu.
18801 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
18803 * lambda.h: Add matrix type, and prototypes for remainder of
18804 matrix and vector functions.
18805 (lambda_vector_mult_const): New function.
18806 (lambda_vector_negate): Ditto.
18807 (lambda_vector_add): Ditto.
18808 (lambda_vector_add_mc): Ditto.
18809 (lambda_vector_copy): Ditto.
18810 (lambda_vector_zerop): Ditto.
18811 (lambda_vector_equal): Ditto.
18812 (lambda_vector_min_nz): Ditto.
18813 (lambda_vector_first_nz): Ditto.
18814 (lambda_vector_matrix_mult): Ditto.
18815 * lambda-mat.c: New file.
18816 * Makefile.in (lambda-mat.o): New.
18818 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
18820 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
18821 after linking stmt into the program.
18822 (bsi_remove): Don't call modify_stmt.
18823 * tree-complex.c (update_complex_assignment,
18824 expand_complex_comparison): Call modify_stmt after changing the stmt.
18825 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
18827 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
18828 the stmt, and only if needed.
18829 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
18831 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
18832 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
18833 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
18834 (eliminate_redundant_computations): Don't pass an annotation. Call
18835 modify_stmt rather than setting the annotation directly.
18836 (record_equivalences_from_stmt): Remove unused local 'j'.
18837 (cprop_operand): Take a stmt rather than an annotation as a parameter.
18839 (cprop_into_stmt): Pass stmt rather than annotation.
18840 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
18841 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
18843 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
18845 2004-08-10 Jason Merrill <jason@redhat.com>
18847 PR middle-end/16948
18848 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
18851 2004-08-10 Geoffrey Keating <geoffk@apple.com>
18853 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
18856 2004-08-10 Roger Sayle <roger@eyesopen.com>
18858 * config/mips/mips.md: New reciprocal square root patterns that
18859 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
18861 2004-08-10 Paul Brook <paul@codesourcery.com>
18863 * config/arm/arm-protos.h (arm_set_return_address,
18864 thumb_set_return_address): Add prototypes.
18865 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
18866 * config/arm/arm.c (arm_compute_func_type,
18867 use_return_insn, arm_compute_save_reg0_reg12_mask,
18868 arm_compute_save_reg_mask, arm_output_function_prologue,
18869 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
18870 current_function_calls_eh_return.
18871 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
18873 (arm_set_return_address, thumb_set_return_address): New functions.
18874 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
18875 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
18876 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
18877 (epilogue): Use the stackadj register.
18878 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
18880 2004-08-10 Jakub Jelinek <jakub@redhat.com>
18883 * expr.c (move_by_pieces_ninsns): Add max_size argument.
18884 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
18885 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
18886 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
18887 but using MOVE_RATIO.
18888 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
18889 (can_store_by_pieces): Change max_size type to unsigned int.
18890 (store_by_pieces_1): Likewise. Pass max_size to
18891 move_by_pieces_ninsns.
18892 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
18893 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
18894 to move_by_pieces_ninsns.
18895 (STORE_BY_PIECES_P): Define.
18896 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
18897 to move_by_pieces_ninsns.
18898 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
18900 * config/i386/i386.h (CLEAR_RATIO): Define.
18902 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
18904 * expr.c (expand_expr_real_1): Add back code that was not dead.
18906 2004-08-09 Andrew Pinski <apinski@apple.com>
18908 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
18909 which is found to be compatible before returning the aliasing set.
18911 2004-08-09 Daniel Jacobowitz <dan@debian.org>
18913 * ggc-zone.c (struct alloc_zone): Add statistics counters.
18914 (always_collect): New flag.
18915 (ggc_alloc_zone_1): Update statistics support. Don't include
18916 overhead in allocated counter.
18917 (sweep_pages): Update allocated counter for large pages. Don'y
18919 (ggc_collect_1): Always collect.
18920 (ggc_collect): Honor always_collect flag. Sum all zones to decide
18921 whether to collect.
18922 (SCALE, LABEL): New macros.
18923 (ggc_print_statistics): Add statistics support.
18925 2004-08-09 Roger Sayle <roger@eyesopen.com>
18927 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
18928 (init_expmed): Fix potential overrun problem with "all.reg".
18929 (expand_sdiv2_pow2): Add an alternate implementation for signed
18930 division, if the target provides a suitable conditional move insn.
18932 2004-08-09 Paul Brook <paul@codesourcery.com>
18933 Richard Henderson <rth@redhat.com>
18935 * unwind-dw2.c (uw_install_context_1): Update target saved stack
18938 2004-08-09 Geoffrey Keating <geoffk@apple.com>
18940 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
18941 Check DATA limit only if there's no AS limit. Ignore insanely
18943 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
18944 but take care that the AS limit isn't overrun.
18945 * doc/invoke.texi: Update documentation of min-heapsize parameter.
18947 2004-08-09 Jeff Law <law@redhat.com>
18949 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
18950 (tree-ssa-threadupdate.o): Add dependencies.
18951 * tree-ssa-threadupdate.c: New file.
18952 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
18953 (rewrite_vars_out_of_ssa): Remove prototype.
18954 (cleanup_tree_cfg): Returns a bool.
18955 * tree.h (thread_through_all_blocks): Prototype.
18956 * tree-outof-ssa.c (SSANORM_*): Move into here.
18957 (remove_ssa_form): Now static.
18958 (rewrite_vars_out_of_ssa): Kill.
18959 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
18960 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
18961 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
18962 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
18963 anything was changed.
18964 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
18965 from the PHI's annotation rather than the edge associated with
18967 * tree-ssa-dom.c (redirection_edges): Kill.
18968 (redirect_edges_and_update_ssa_graph): Kill.
18969 (tree_ssa_dominator_optimize): Do not reset forwardable flag
18970 for blocks anymore. Do not initialize redirection_edges.
18971 Call thread_through_all_blocks. Simplify code for cleanup
18972 of the CFG and iterating. No longer call cleanup_tree_cfg
18973 outside the iteration loop.
18974 (thread_across_edge): No longer mess with forwardable blocks.
18976 2004-08-09 Zack Weinberg <zack@codesourcery.com>
18978 * explow.c (memory_address): Use memory_address_p.
18979 * recog.c (general_operand): Likewise.
18980 * regrename.c: No need to define REG_OK_STRICT.
18982 2004-08-09 Steven Bosscher <stevenb@suse.de>
18984 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
18986 * gcse.c: Include timevar.h.
18987 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
18988 and global_copy_prop_count.
18989 (local_const_prop_count, local_copy_prop_count): New static globals.
18990 (gcse_main): Set the right timevar for each pass.
18991 (cprop_jump): Increment global_const_prop_count when a constant is
18992 propagated. Add "GLOBAL" to dump output.
18993 (cprop_insn): Increment global_const_prop_count when a constant is
18994 propagated, or global_copy_prop_count when a copy is propagated.
18995 (do_local_cprop): Likewise for local_const_prop_count and
18996 local_copy_prop_count.
18997 (one_cprop_pass): Initialize const/cprop counters to zero.
18998 Print out results of local and global const/cprop separately.
18999 (bypass_block): Break over-length line.
19000 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
19001 for bb-reorder.o and tracer.o.
19003 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19005 * Makefile.in (GTFILES): Remove stmt.c
19006 (stmt.o): Do not depend on gt-stmt.h.
19007 * emit-rtl.c (emit_line_note): Do not call
19008 set_file_and_line_for_stmt.
19009 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
19011 * function.c (free_after_parsing): Do not free STMT field.
19012 (allocate_struct_function): Do not call init_stmt_for_function.
19013 (assign_stack_temp_for_type): Do not accept values of keep
19015 (init_temp_slots): Do not initialize removed variables.
19016 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
19017 and X_VAR_TEMP_SLOT_LEVEL fields.
19018 * rtl.h (set_file_and_line_for_stmt): Remove.
19019 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
19020 struct stmt_status, cond_stack, case_stack, nesting_stack,
19021 nesting_depth, emit_locus, set_file_and_line_for_stmt,
19022 same_case_target_p, init_stmt_for_function, emit_nop,
19023 expand_start_cond, expand_start_elseif, expand_start_else,
19024 expand_elseif, expand_end_cond): Remove.
19025 (preserve_subexpressions_p): Remove references to CFUN->STMT.
19026 (expand_start_case, expand_end_case_type): Remove, merge into...
19027 (expand_case): ... this one, including other bits from
19028 expand_expr_real_1. Inline same_case_target_p. Turn members
19029 of CASE_STACK into local variables.
19030 (emit_case_bit_tests): Inline same_case_target_p.
19031 (add_case_node): Add HEAD argument, return new head of the list,
19032 do not handle default label here.
19033 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
19034 expand_start_elseif, current_nesting_level, expand_start_case,
19035 expand_end_case_type, expand_end_case, add_case_node,
19036 init_stmt_for_function, expand_elseif): Remove prototypes.
19037 (expand_case): Add prototype.
19039 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19041 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
19043 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19045 * expr.c (var_rtx): Remove.
19046 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
19047 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
19048 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
19050 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
19051 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
19052 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
19054 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
19055 Ayal Zaks <zaks@il.ibm.com>
19057 * common.opt (freschedule-modulo-scheduled-loops): New flag.
19058 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
19059 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
19060 when -freschedule-modulo-scheduled-loops flag is not specified.
19061 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
19062 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
19063 More accurate placing of insn in row of partial schedule.
19064 (ps_insn_find_column): New function.
19065 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
19066 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
19067 (schedule_region): Use sched_is_disabled_for_current_region_p.
19068 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
19070 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19072 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
19075 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19077 * config/i386/i386.c (ix86_expand_clrmem): Properly call
19078 gen_strset for 64bit target.
19080 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
19082 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
19084 2004-08-07 Jason Merrill <jason@redhat.com>
19086 Make return in memory explicit.
19087 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
19088 (assign_parm_find_data_types): Remove code for old front end
19089 invisible reference handling.
19090 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
19091 (expand_function_end): Likewise.
19092 * gimplify.c (gimplify_return_expr): Handle a dereferenced
19094 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
19095 (declare_return_variable): Handle DECL_BY_REFERENCE.
19096 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
19097 (cp_genericize_r): Use convert_from_reference.
19098 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
19099 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
19101 * c-common.c (c_warn_unused_result): Check TREE_USED before
19102 warning about a CALL_EXPR with an unused value.
19104 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19106 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
19107 to the compiler. Use -fshort-wchar by default.
19109 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
19111 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
19112 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
19114 * doc/invoke.texi (param): Document min-crossjump-insns.
19116 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
19119 * c.opt (Wmissing-field-initializers): New option.
19120 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
19121 * c-typeck.c (pop_init_level): Guard the missing field warning with
19122 warn_missing_field_initializers rather than extra_warnings.
19123 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
19124 some of the explanation from...
19125 (-Wextra): ...here. Say that the missing field warning can be
19126 seperately controlled by -Wmissing-field-initializers.
19128 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
19130 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
19131 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
19132 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
19133 * tree.def (ENTRY_VALUE_EXPR): Remove.
19135 2004-08-06 Jakub Jelinek <jakub@redhat.com>
19137 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
19138 the places where it is actually needed. Don't use repz; stosb
19139 for -Os with sufficiently small constant sizes.
19140 For sufficiently small repz; stos{l,q} repeat counts use a sequence
19141 of stos{l,q} instructions instead.
19143 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19145 PR tree-optimization/16807
19146 * loop-iv.c (dump_iv_info): Dump invariants correctly.
19147 (iv_subreg, iv_extend): Express value of invariant purely in
19150 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19152 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
19153 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
19155 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
19157 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
19158 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
19160 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
19161 pattern until reload is finished to allow better code generation
19162 and split them completely into separate instrunctions.
19163 (*andsi3_split): New pattern.
19165 2004-08-05 Mark Mitchell <mark@codesourcery.com>
19167 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
19168 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
19169 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19170 * tree.h (handle_dll_attribute): Declare. Test
19171 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19172 * c-common.h (c_determine_visibility): Declare.
19173 * c-common.c (c_determine_visibility): New function.
19174 * c-decl.c (finish_decl): Use it.
19175 (finish_function): Likewise.
19176 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
19177 zero, by default. Use #if, not #ifdef, to test it.
19178 * config/arm/arm.c (arm_attribute_table): Use
19179 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
19181 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
19182 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19184 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
19185 * config/i386/i386.c (ix86_attribute_table): Use
19186 handle_dll_attribute for dllimport/dllexport. Test
19187 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19188 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
19189 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19191 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
19193 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19195 * doc/extend.texi (dllexport): Clarify and correct documentation.
19196 (dllimport): Likewise.
19197 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
19198 handle_dll_attribute.
19200 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19202 * tree-ssa-loop-manip.c: New file.
19203 * Makefile.in (tree-ssa-loop-manip.o): Add.
19204 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
19206 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
19208 (tree_ssa_loop_done): Verify loop closed ssa form.
19209 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
19211 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19213 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
19214 pa_asm_output_aligned_local): New functions.
19215 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
19216 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
19217 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
19218 pa_asm_output_aligned_common.
19219 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19220 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
19221 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19222 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19223 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
19224 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19225 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19226 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
19229 2004-08-05 Andrew Pinski <apinski@apple.com>
19231 * objc/objc-act.c (build_objc_string_object): Mark the address
19232 expression as constant.
19234 2004-08-05 David Edelsohn <edelsohn@gnu.org>
19236 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
19237 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
19238 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
19240 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19242 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
19243 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
19244 out, and associated obsolete comments.
19246 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
19248 * tree.h (force_fit_type): Return a tree, take three flags.
19249 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
19250 TREE_CONSTANT_OVERFLOW here.
19251 (int_const_binop, const_binop): Adjust.
19252 (size_int_type): Do sign extension here.
19253 (fold_convert_const, optimize_bit_field_compare,
19254 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
19255 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
19256 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
19258 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19260 PR tree-optimization/16864
19261 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
19262 for ssa names without default_def.
19264 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
19266 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
19267 frame pointer, restore eax with an ebp-relative address.
19269 2004-08-04 Geoffrey Keating <geoffk@apple.com>
19272 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
19273 * c-common.h (make_rtl_for_local_static): Delete.
19274 * c-decl.c (shadow_tag_warned): Clean up comment.
19275 (finish_decl): Clean up spacing. Use set_user_assembler_name when
19276 appropriate. Don't pass asmspec to rest_of_decl_compilation.
19277 * c-semantics.c (make_rtl_for_local_static): Delete.
19278 * expr.c (init_block_move_fn): Use set_user_assembler_name.
19279 (init_block_clear_fn): Likewise.
19280 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
19281 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
19282 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
19283 * tree.h (make_decl_rtl): Remove second parameter.
19284 (set_user_assembler_name): New.
19285 * varasm.c (set_user_assembler_name): New.
19286 (make_decl_rtl): Remove second parameter. Update callers in many
19289 2004-08-05 Adam Nemet <anemet@lnxw.com>
19291 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
19292 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
19294 * gthr-lynx.h: New file.
19295 * config/lynx-ng.h: Remove file.
19296 * config/lynx.h: Update to LynxOS 4.0.
19297 * config/t-lynx: New file.
19298 * config/i386/lynx-ng.h: Remove file.
19299 * config/i386/lynx.h: Update to LynxOS 4.0.
19300 * config/rs6000/lynxbase.h: Remove file.
19301 * config/rs6000/lynx.h: Update to LynxOS 4.0.
19302 * config/rs6000/t-lynx: New file.
19303 * doc/install.texi (Options specification): Remove reference to
19304 LynxOS from systems where --with-gnu-as makes a difference.
19306 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19308 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
19310 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
19312 (c_cpp_builtins): Call it.
19313 * doc/cpp.texi: Update.
19315 2004-08-04 David Edelsohn <edelsohn@gnu.org>
19317 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
19320 2004-08-04 Jan Hubicka <jh@suse.cz>
19322 * basic-block.h (profile_staus): New global variable.
19323 * cfg.c (profile_status): Declare.
19324 (check_bb_profile): Break out from ....; use profile_status
19325 (dump_flow_info): ... here.
19326 * cfgbuild.c (find_basic_blocks): Set profile_status.
19327 * cfgexpand.c (tree_expand_cfg): Likewise.
19328 * predict.c (estimate_probability): Likewise.
19329 * profile.c (branch_prob): Likewise.
19330 * tree-cfg.c (build_tree_cfg): Likewise.
19331 (dump_function_to_file): Use check_bb_profile.
19332 * tree-pretty-print (dump_bb_header): Likewise.
19333 * tree-profile.c (do_tree_profiling): Cleanup.
19335 2004-08-04 Zack Weinberg <zack@codesourcery.com>
19337 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
19338 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
19339 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
19340 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
19341 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
19342 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
19343 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
19344 (ggc-none.o, errors.o): Move rule to generators section;
19345 correct dependencies.
19346 (min-insn-modes.o): Move rule to generators section; remove
19347 unnecessary explicit command; correct dependencies.
19348 (print-rtl.o, print-rtl1.o): Correct dependencies.
19349 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
19350 (mostlyclean): Update.
19352 * errors.c: Include bconfig.h not config.h. Correct comment.
19353 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
19354 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
19355 * print-rtl.c: Don't include tm_p.h.
19357 * rtl.h: Move forward-decl of struct function down where it's
19358 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
19359 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
19361 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19362 Jeff Law <law@redhat.com>
19364 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
19365 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
19366 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
19367 manipulate the duplicated ssa names.
19368 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
19369 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
19370 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
19372 (release_ssa_name): Do not release ssa names that may have multiple
19374 * tree.h (release_ssa_name_force, mark_for_rewrite,
19375 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
19376 marked_ssa_names): Declare.
19377 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
19378 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
19379 Update call to rewrite_ssa_into_ssa.
19381 2004-08-04 Mark Mitchell <mark@codesourcery.com>
19383 * defaults.h (TARGET_DECLSPEC): New macro.
19384 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
19385 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
19386 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
19387 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
19388 __declspec support.
19389 (TARGET_DECLSPEC): Define.
19390 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
19391 __declspec support.
19392 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
19393 __declspec support.
19394 (TARGET_DECLSPEC): Define.
19395 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
19396 __declspec support.
19397 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
19399 * doc/tm.texi (TARGET_DECLSPEC): Document.
19401 * doc/extend.texi: Fix typo in comment.
19403 2004-08-04 Paul Brook <paul@codesourcery.com>
19405 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19406 (TARGET_CXX): Use it.
19407 * target.h (struct gcc_target): Add cdtor_returns_this.
19408 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
19409 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19410 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
19412 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
19414 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
19415 low/high pair. Do range checking directly.
19416 (interpret_integer): Adjust.
19418 2004-08-04 Nick Clifton <nickc@redhat.com>
19420 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
19422 * doc/invoke.texi: Document this new switch and also the -mrenesas
19425 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
19427 * cfglayout.c (insn_locators_initialize): Update the current
19428 location before initializing a location.
19430 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19432 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
19433 (dbxout_function_end): Return after emitting the "Lscope" symbol
19434 under the same conditions that this function formerly wasn't called.
19435 Add explanatory comments.
19438 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
19442 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
19443 functions, broken out of dbxout_block.
19444 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
19445 stabs too, if it contains symbols. Use the begin_label and
19446 the Lscope label (emitted by dbxout_function_end) for the
19447 range of this block.
19449 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
19451 * doc/install.texi: Update autoconf version requirements.
19453 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19455 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
19456 * recog.c (general_operand, immediate_operand, nonmemory_operand)
19457 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
19458 * regclass.c (record_reg_classes): Likewise.
19459 * reload.c (find_reloads): Likewise.
19460 * reload1.c (reload): Likewise.
19462 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19464 * gensupport.c (init_md_reader_args_cb): Renamed from
19465 init_md_reader_args. Add third option, callback function for
19466 parsing program-specific options. Add diagnosis of incorrect
19467 number of input files.
19468 (init_md_reader): Fold into init_md_reader_args_cb.
19469 (init_md_reader_args): Now a thin wrapper around
19470 init_md_reader_args_cb.
19471 * gensupport.h: Update prototypes.
19473 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
19474 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
19475 * genrecog.c: No need to diagnose lack of an input file;
19476 init_md_reader_args will handle it.
19477 * genconditions.c: Likewise, and use init_md_reader_args.
19478 * genconstants.c: Likewise, and no need to call read_md_rtx.
19480 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
19482 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
19485 2004-08-03 Mike Stump <mrs@apple.com>
19487 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
19489 * doc/invoke.texi (Darwin Options): Update to reflect above.
19491 2004-08-03 Roger Sayle <roger@eyesopen.com>
19493 PR middle-end/16790
19494 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
19495 truncations, not just global truncations.
19497 2004-08-03 Andrew Pinski <apinski@apple.com>
19500 * loop-iv.c (simplify_using_assignment): Initialize lhs.
19502 2004-08-03 Paul Brook <paul@codesourcery.com>
19504 * gcc/doc/install.texi: Document MPFR requirement.
19506 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
19508 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
19509 and mmap() explicitly instead of relying on preset autoconf cache
19511 * configure: Regenerate.
19513 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19516 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
19518 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
19519 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
19522 * config/i386/t-gmm_malloc: New file.
19523 * config/i386/t-pmm_malloc: Likewise.
19525 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
19527 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19528 Tanguy Fautrà <tfautre@pandora.be>
19530 * config/i386/pmm_malloc.h: New file.
19532 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
19534 * config/i386/gmm_malloc.h: New file.
19536 2004-08-03 Dale Johannesen <dalej@apple.com>
19538 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
19539 * c-common.c: Include opts.h.
19540 (c_common_get_alias_set): Fix check for a single input file.
19541 * toplev.c: Remove current_file_decl.
19544 2004-08-03 Mark Mitchell <mark@codesourcery.com>
19546 * config.gcc (arm*-*-symbianelf*): New target.
19547 * config/arm/symbian.h: New file.
19549 * gthr-gnat.c: Add visibility #pragmas.
19550 * gthr-gnat.h : Likewise.
19551 * gthr.h: Likewise.
19552 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
19553 (__ffsDI2): Likewise.
19554 (__clzSI2): Likewise.
19555 (__ctzSI2): Likewise.
19556 (__ctzDI2): Likewise.
19557 (__popcountSI2): Likewise.
19558 (__popcountDI2): Likewise.
19559 (__paritySI2): Likewise.
19560 (__parityDI2): Likewise.
19561 * libgcc2.h: Add visibility #pragmas.
19562 (__clzDI2): Add prototype.
19563 (__clzSI2): Likewise.
19564 (__ctzSI2): Likewise.
19565 (__ffsDI2): Likewise.
19566 (__ffsSI2): Likewise.
19567 (__ctzDI2): Likewise.
19568 (__popcountSI2): Likewise.
19569 (__popcountDI2): Likewise.
19570 (__paritySI2): Likewise.
19571 (__parityDI2): Likewise.
19572 * unwind-dw2-fde.h: Add visibility #pragmas.
19573 * unwind.h: Likewise.
19575 2004-08-03 David Edelsohn <edelsohn@gnu.org>
19576 Dale Johannesen <dalej@apple.com>
19577 Roger Sayle <roger@eyesopen.com>
19579 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
19580 constants more accurately. Adjust costs for FMA instructions.
19581 Add cases for most logical and float operations. Recurse into
19584 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19586 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
19588 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
19590 * ra-build.c (conflicts_between_webs): For webs that cross a call add
19591 conflicts to regs_invalidated_by_call.
19593 2004-08-03 Paul Brook <paul@codesourcery.com>
19595 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
19597 2004-08-03 Jan Hubicka <jh@suse.cz>
19599 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
19600 ARRAY_REF argument.
19602 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19604 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
19605 arm968es, arm10e, arm1020e, arm1022e.
19606 * invoke.texi: Update list of ARM cores.
19607 * arm-tune.md: Regenerate.
19609 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19611 * arm/gentune.sh: New file.
19612 * arm/t-arm: New file.
19613 * arm/arm-tune.md: New file (autogenerated).
19614 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
19615 * arm.md (attribute tune): Delete. Include arm-tune.md.
19617 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
19619 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
19620 penultimate parameter. All callers adjusted.
19621 (struct prefix_list): Remove used_flag_ptr.
19622 (find_a_file): Do not set *pl->used_flag_ptr.
19623 (warn_B, warn_std_ptr): Remove.
19625 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
19626 Mostafa Hagog <mustafa@il.ibm.com>
19628 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
19630 2004-08-02 Geoffrey Keating <geoffk@apple.com>
19632 * dwarf2out.c (output_call_frame_info): Don't change data format
19633 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
19634 label. Use 'true' not '1'.
19635 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
19638 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19640 * gdbinit.in: Reflect previous changes to rtunion_def.
19642 2004-08-02 Roger Sayle <roger@eyesopen.com>
19644 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
19645 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
19647 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19649 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
19651 * langhooks.h (lang_hooks::builtin_function): Rename parameter
19652 from "class" to "bt_class".
19654 2004-08-02 Paul Brook <paul@codesourcery.com>
19656 PR rtl-optimization/15068
19657 * flow.c (init_propagate_block_info): Check condition is reversible.
19659 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19661 * gengtype.h (options::info): Change type to const char *.
19662 (enum gc_used_enum): Move out of struct type scope.
19663 * gengtype.c (create_option): Convert initializer for option::info to
19665 (adjust_field_type, walk_type, write_func_for_structure,
19666 write_root, write_roots): Remove pointless cast.
19668 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
19670 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
19672 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19674 * rtl.h (union rtunion_def): Have all members start with the
19676 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
19677 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
19678 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
19679 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
19681 * gengtype.c (adjust_field_rtx_def): Likewise.
19682 * rtlanal.c (loc_mentioned_in_p): Likewise.
19684 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
19686 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
19687 Replace uses of mips/elf64.h with mips/elf.h
19688 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
19689 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
19690 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
19691 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
19692 (HANDLE_SYSV_PRAGMA): Delete.
19693 (ASM_OUTPUT_DEF): Fix formatting.
19694 * config/mips/elf64.h: Delete.
19696 2004-08-01 Zack Weinberg <zack@codesourcery.com>
19698 * config/ia64/ia64.c (got_symbolic_operand): Do require a
19699 symbol+offset operand to have its offset be zero mod 0x3fff
19700 when GOT entries are in use. Clarify logic in SYMBOL_REF
19701 case. Clarify comments.
19702 (ia64_expand_load_address): Split a symbol+offset load when
19703 the offset is nonzero mod 0x3fff, not 0x1fff.
19705 2004-08-01 Geoffrey Keating <geoffk@apple.com>
19707 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
19708 if trying to *store* to a non-offsettable address.
19709 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
19710 a nonoffsettable address.
19711 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
19713 (movti_string): Don't move GPRs to a nonoffsettable address.
19714 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
19716 2004-08-02 Ben Elliston <bje@au.ibm.com>
19719 * config/rs6000/altivec.h: Replace typeof with __typeof__.
19721 2004-08-01 Richard Henderson <rth@redhat.com>
19723 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
19724 variable sized types.
19726 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19728 * doc/invoke.texi: In the MIPS options section, remove the passage
19729 saying that -mexplicit-relocs is usually disabled for -mabicalls
19730 -fno-unit-at-a-time.
19731 * config/mips/mips.c (override_options): Remove the code that enforced
19734 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19736 * config/mips/mips.md (cprestore): Provide two alternatives, one for
19737 an in-range offset and one for an out-of-range offset. Wrap the latter
19738 in .set macro/.set nomacro if it's inside a .set nomacro block.
19740 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19742 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
19743 (mips_restore_gp): Declare.
19744 * config/mips/mips.c (mips_add_offset): Add a scratch register
19745 argument. Reimplement in rtl only, reusing MIPS16 logic from
19746 mips_output_mi_thunk.
19747 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
19748 to mips_add_offset.
19749 (mips_gp_save_slot): Delete.
19750 (mips_restore_gp): New function.
19751 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
19752 * config/mips/mips.md (exception_receiver): Turn into a
19753 define_insn_and_split. Use mips_restore_gp to do the split.
19754 (call_internal, call_value_internal, call_value_multiple_internal): Use
19755 mips_restore_gp to restore $gp.
19757 2004-07-31 Andrew Pinski <apinski@apple.com>
19760 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
19762 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
19764 * c-decl.c (diagnose_mismatched_decls): Give error for external
19765 redeclaration of identifier declared with no linkage, not just
19766 warning with -Wtraditional. Do not check DECL_CONTEXT to give
19767 error for redeclaration with no linkage.
19769 2004-07-30 Geoffrey Keating <geoffk@apple.com>
19770 Fariborz Jahanian <fjahanian@apple.com>
19772 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
19773 non-offsettable addresses even for DImode.
19774 (rs6000_split_multireg_move): Cope with non-offsettable addresses
19775 being moved into multiple GPRs.
19777 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
19779 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
19780 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
19782 * config/rs6000/darwin-ldouble.c (isless): New macro.
19784 (nonfinite): New macro.
19786 (_xlqadd): Completely rewrite.
19787 (_xlqmul): Correct overflow handling.
19788 (_xlqdiv): Correct overflow handling.
19789 * config/rs6000/darwin-ldouble-format: New file.
19791 2004-07-30 Roger Sayle <roger@eyesopen.com>
19792 Richard Henderson <rth@redhat.com>
19794 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
19795 9 into the equivalent lea instruction.
19797 2004-07-30 Richard Henderson <rth@redhat.com>
19799 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
19800 with DECL_INITIAL if fb_lvalue.
19801 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
19802 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
19804 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
19806 2004-07-30 Diego Novillo <dnovillo@redhat.com>
19808 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
19809 pointer escapes through a function call, assume that the
19810 callee will dereference it.
19811 (add_pointed_to_var): Assume that VALUE is always an
19813 (collect_points_to_info_r): Only call add_pointed_to_var if
19814 the value is an ADDR_EXPR.
19816 2004-07-30 Diego Novillo <dnovillo@redhat.com>
19818 * tree-ssa-alias.c (create_alias_map_for): Do not get the
19819 alias set of the inner type of ARRAY_TYPEs.
19821 2004-07-29 Diego Novillo <dnovillo@redhat.com>
19823 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
19824 setting a non-register to UNDEFINED right before the call to
19827 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
19829 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
19831 2004-07-29 Diego Novillo <dnovillo@redhat.com>
19833 * tree-ssa.c (verify_flow_sensitive_alias_info): When
19834 comparing points-to sets of different pointers, make sure the
19835 second pointer is actually referenced in the code.
19837 2004-07-29 Zack Weinberg <zack@codesourcery.com>
19839 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
19840 (got_symbolic_operand): Remove unreachable code.
19841 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
19842 setjmp_operand; add entry for tls_symbolic_operand.
19843 * config/ia64/ia64-protos.h: Remove all prototypes of
19844 predicate functions.
19846 2004-07-29 Mark Mitchell <mark@codesourcery.com>
19848 * c-common.h (lang_post_pch_load): New variable.
19849 * c-pch.c (lang_post_pch_load): Define it.
19850 (c_common_read_pch): Use it.
19851 * cgraphunit.c (record_call_1): Give the front end a chance to
19852 record additional needed entities when a variable is marked as
19854 * tlink.c (recompile_files): Robustify.
19855 (scan_linker_output): If a symbol is assigned to a file,
19856 but after recompilation is not present there, issue an error
19859 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19861 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
19862 Take orig_loop argument and pass it to set_level.
19863 (schedule_sm): Pass the correct orig_loop to force_move_till.
19865 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19867 * cfgloop.c (update_latch_info): Update dominator of the new block.
19868 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
19870 * dominance.c (verify_dominators): Check that the dominance tree is
19872 (recount_dominator): Ignore unreachable blocks.
19873 (iterate_fix_dominators): Cleanup old dominance information before
19876 2004-07-29 Diego Novillo <dnovillo@redhat.com>
19878 * tree-ssa-operands.c (get_expr_operands): Revert changes
19879 to ADDR_EXPR processing introduced by:
19880 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19881 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
19883 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
19885 * doc/implement-c.texi: Add C90 subclause references. Point to
19886 preprocessor documentation instead of duplicating it. Add points
19887 only present in C90. Fill in documentation for all points.
19889 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19891 * pa.c (output_movb): Correct typo.
19893 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
19895 * ra.h (single_reg_in_regclass): Declare.
19896 * ra.c (single_reg_in_regclass): Define.
19897 (first_hard_reg): New.
19898 (init_ra): Initialize single_reg_in_regclass.
19899 * ra-colorize.c (ok_class): New.
19900 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
19902 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
19904 * gcov-io.h: Allow zero tag as EOF indicator.
19905 (gcov_is_eof): Remove.
19906 (gcov_truncate): Remove.
19907 * gcov-io.c (gcov_seek): Always SEEK_SET.
19908 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
19910 * coverage.c (read_counts_file): Don't use gcov_is_eof.
19911 * gcov-dump.c (dump_file): Likewise.
19912 * gcov.c (read_graph_file, read_count_file): Likewise.
19914 * c-decl.c (complete_array_type): Don't gratuitously copy
19915 maxindex. Check it always has a type.
19917 2004-07-29 Steven Bosscher <stevenb@suse.de>
19919 * rtl.c (currently_expanding_to_rtl): New.
19920 * rtl.h (currently_expanding_to_rtl): Export it.
19921 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
19923 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
19925 * config/sh/sh.c: Replace rtx_equal_function_value_matters
19926 with currently_expanding_to_rtl.
19927 * config/sh/sh.md: Likewise.
19928 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
19930 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
19932 Introduce sh2a support.
19933 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
19934 * config.gcc: Build multilibs for sh2a and sh2a-single by
19936 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
19937 default. Split their tests out of the corresponding SH4
19939 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
19940 multilibs for SH2a.
19941 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
19942 * config.gcc: Handle sh2a multilibs and cpu selection.
19943 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
19944 * config/sh/t-mlib-sh2a: New.
19945 * config/sh/t-mlib-sh2a-nofpu: New.
19946 * config/sh/t-mlib-sh2a-single: New.
19947 * config/sh/t-mlib-sh2a-single-only: New.
19948 2004-07-09 Nick Clifton <nickc@redhat.com>
19950 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
19951 -ml and -m2a are used together.
19952 2004-03-23 DJ Delorie <dj@redhat.com>
19953 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
19954 when we have a double-sized FPU.
19955 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
19956 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
19958 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
19959 -msh2a-single and -msh2a-single-only
19960 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
19961 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
19963 2004-02-20 DJ Delorie <dj@delorie.com>
19964 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
19965 2004-02-20 Fred Fish <fnf@redhat.com>,
19966 Corinna Vinschen <vinschen@redhat.com>
19967 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
19968 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
19969 2004-02-18 DJ Delorie <dj@redhat.com>
19970 * config/sh/sh.c (broken_move): Add support for movi20.
19971 * config/sh/sh.h: Likewise.
19972 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
19973 * config/sh/sh.md (udivsi3_sh2a): New.
19974 (udivsi3): Call it.
19975 (divsi3_sh2a): New.
19978 (ashlsi3_sh2a): New.
19979 (ashrsi3_sh2a): New.
19980 (lshrsi3_sh2a): New.
19981 (movsi_i): Disable for sh2a.
19982 (movsi_ie): Add movi20.
19983 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
19984 sh2a, for -m2a-nofpu mode.
19985 2004-02-13 DJ Delorie <dj@redhat.com>
19986 * config/sh/lib1funcs.asm: Handle double vs single better.
19987 * config/sh/sh.h: Likewise.
19988 2004-02-09 DJ Delorie <dj@redhat.com>
19989 * config/sh/crt1.asm: Add support for sh2a.
19990 * config/sh/elf.h: Likewise.
19991 * config/sh/lib1funcs.asm: Likewise.
19992 * config/sh/sh.c: Likewise.
19993 * config/sh/sh.md: Likewise.
19994 * config/sh/sh.h: Likewise.
19995 * config/sh/t-sh: Likewise.
19997 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
19999 * config/frv/frv.md (movqi_internal, movhi_internal,
20000 movsi_internal): Add backup alternatives for memory inputs.
20002 2004-07-28 Matt Austern <austern@apple.com>
20004 * config/darwin.c (darwin_one_byte_bool): New global variable.
20005 * config/darwin.h (darwin_one_byte_bool): Declare.
20006 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
20007 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
20008 value of darwin_one_byte_bool.
20009 * doc/invoke.texi: Document -mone-byte-bool flag.
20011 2004-07-28 Eric Christopher <echristo@redhat.com>
20013 * c-common.c (c_common_unsafe_for_reeval): Delete.
20014 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
20015 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
20016 * calls.c (fix_unsafe_tree): Delete.
20017 (expand_call): Delete code which used above.
20018 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
20019 * expr.c (expand_expr_real_1): Ditto.
20020 * fold-const.c (non_lvalue): Ditto.
20021 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20022 (lhd_unsafe_for_reeval): Ditto.
20023 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
20024 * langhooks.h (unsafe_for_reeval): Ditto.
20025 (unsave_expr_now): Adjust comment.
20026 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
20027 (estimate_num_insns_1): Ditto.
20028 * tree-pretty-print.c (dump_generic_node): Ditto.
20029 * tree.c (expr_align): Ditto.
20030 (unsave_expr): Delete.
20031 (unsafe_for_reeval): Ditto.
20032 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
20033 * tree.def (UNSAVE_EXPR): Delete.
20034 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20036 2004-07-28 Zack Weinberg <zack@codesourcery.com>
20038 * tree.h (enum tls_model): Move ...
20039 * coretypes.h: ... here.
20041 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20043 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
20045 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20047 * cse.c (validate_canon_reg): New function, split out from...
20048 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
20050 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20052 * tree-ssa-alias.c (maybe_create_global_var): Don't just
20053 return if .GLOBAL_VAR has been created.
20055 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20057 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
20058 every variable that may have aliases, not just tags.
20060 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
20062 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
20063 move_from_CR_eq_bit.
20064 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
20067 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
20070 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
20071 output_e500_flip_eq_bit.
20073 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
20074 output_e500_flip_eq_bit.
20075 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
20076 output_e500_flip_eq_bit.
20077 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
20078 (print_operand): case D. Get to EQ bit.
20080 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20082 * gcov.c (function_summary): Add missing \n.
20084 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20086 Introduce sh4a support.
20087 * config.gcc: Handle sh4a multilibs and cpu selection.
20088 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
20089 * config/sh/t-mlib-sh4a: New.
20090 * config/sh/t-mlib-sh4al: New.
20091 * config/sh/t-mlib-sh4a-nofpu: New.
20092 * config/sh/t-mlib-sh4a-single: New.
20093 * config/sh/t-mlib-sh4a-single-only: New.
20094 2004-02-20 DJ Delorie <dj@redhat.com>
20095 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
20096 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
20097 2003-08-22 Eric Christopher <echristo@redhat.com>
20098 * config/sh/sh4a.md: Update for chip errata.
20099 2003-08-07 Eric Christopher <echristo@redhat.com>
20100 * config/sh/sh4a.md: New file. sh4a processor description.
20101 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
20102 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
20104 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
20105 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
20106 * doc/invoke.texi (SH Options): Document -m4al.
20107 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
20108 * config/sh/sh.c (expand_block_move): Remove commented-out code
20109 checked in by mistake.
20110 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
20111 single elements from SFmode vectors.
20112 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
20114 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
20115 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
20116 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
20117 sh_fsca_int2sf): Remove variable declarations.
20118 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20119 sh_fsca_int2sf): New functions.
20120 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
20121 sh_fsca_int2sf_rtx): New static variables.
20122 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
20123 sh_fsca_int2sf): Declare.
20124 * config/sh/sh.md: Adjust.
20125 * doc/invoke.texi (SH Options): Document new options.
20126 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
20127 compatibility from SH4 code.
20128 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
20129 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
20131 (memory_movsrc_operand): Renamed to...
20132 (unaligned_load_operand): ... this. Simplified.
20133 * config/sh/sh.h (PREDICATE_CODES): Adjust.
20134 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
20135 input operand to SImode, and adjust the others. Introduce
20136 post-increment by peephole.
20137 * config/sh/sh.c (expand_block_move): Give the target address the
20138 same mode as the temp reg.
20139 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
20141 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
20142 Introduce support for SH4a.
20143 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
20144 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
20145 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20146 sh_fsca_int2sf): New.
20147 (sh_init_builtins): Initialize them.
20148 (print_operand): Support `d'.
20149 (expand_block_move): Use movua if src is misaligned.
20150 (memory_movsrc_operand): New.
20151 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
20152 and one of the SH4 macros.
20153 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
20154 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
20155 SELECT_SH4A_SINGLE): New.
20156 (TARGET_NONE): Add SH4A_BIT.
20157 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
20158 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
20159 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
20160 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
20161 (enum processor_type): Added PROCESSOR_SH4A.
20162 (PREDICATE_CODES): Add memory_movsrc_operand.
20163 * config/sh/sh.md: Removed unused variables.
20164 (attr cpu): Add sh4a.
20165 (attr type): Add movua, fsrra and fsca.
20166 (prefetch): New, for SH4.
20167 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
20168 (toggle_sz): Set type to fp.
20169 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
20170 (movua, extv, extzv): New.
20171 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
20172 and 4a-single-only.
20174 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20176 * tree-optimize.c (init_tree_optimization_passes): Schedule
20177 pass_may_alias right after the program is renamed into SSA.
20178 * tree-pass.h (PROP_alias): Define.
20179 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
20180 * tree-sra.c (pass_sra): Likewise.
20181 * tree-ssa-ccp.c (pass_ccp): Likewise.
20182 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
20183 * tree-ssa-dce.c (pass_dce): Likewise.
20184 * tree-ssa-dom.c (pass_dominator): Likewise.
20185 * tree-ssa-dse.c (pass_dse): Likewise.
20186 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
20187 * tree-ssa-loop-ch.c (pass_ch): Likewise.
20188 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20189 * tree-ssa-pre.c (pass_pre): Likewise.
20190 * tree-tailcall.c (pass_tail_recursion): Likewise.
20191 * tree-ssa.c (pass_redundant_phi): Likewise.
20192 * tree-ssa-alias.c (aliases_computed_p): Remove.
20194 (init_alias_info): Do not mark all type tags for renaming
20196 Clear may_aliases from every symbol.
20197 (setup_pointers_and_addressables): If a pointer has not been
20198 dereferenced and it had a type tag, clear it and mark the old
20201 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20203 PR tree-optimization/16705
20204 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
20207 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20209 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
20212 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
20213 don't make another one.
20215 PR optimization/15077
20216 * function.h (struct function): Add field saved_static_chain_decl.
20217 Fix comment for static_chain_decl.
20218 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
20219 * tree-inline.h (save_body): Add new arg.
20220 * tree-optimize.c (tree_rest_of_compilation): Handle saving
20223 2004-07-27 Richard Henderson <rth@redhat.com>
20225 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
20226 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
20227 is_gimple_addressable.
20228 * tree-gimple.c (is_gimple_addressable): Rename from
20229 is_gimple_addr_expr_arg; accept INDIRECT_REF.
20230 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
20231 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
20232 rename to is_gimple_addressable.
20234 2004-07-28 Alan Modra <amodra@bigpond.net.au>
20236 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
20238 2004-07-27 Richard Henderson <rth@redhat.com>
20240 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
20243 2004-07-27 Zack Weinberg <zack@codesourcery.com>
20245 * libgcc2.c: Change all conditionals testing
20246 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
20247 * libgcc2.h: Likewise.
20248 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
20249 TYPE_PRECISION of float80_type to 80.
20250 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
20251 of fpreg_type and float80_type to 80.
20252 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
20253 * config/m68k/netbsd-elf.h:
20254 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
20255 to evaluate to 80 whenever they would formerly have evaluated to 96.
20256 * config/i386/sco5.h: Remove unnecessary redefinition of
20257 LONG_DOUBLE_TYPE_SIZE.
20258 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
20259 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
20260 XFmode, with a bitsize of 80. Update commentary.
20261 * config/ia64/ia64-modes.def: Likewise.
20262 * config/m68k/m68k-modes.def: Likewise.
20264 2004-07-27 Steven Bosscher <stevenb@suse.de>
20266 * cfgexpand.c (tree_expand_cfg): Fix comment.
20268 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
20269 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
20271 (prepare_function_start): Don't set rtx_equal_function_value_matters.
20272 * integrate.c (copy_rtx_and_substitute): Don't test for it.
20273 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
20274 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
20275 here again. Update leading comment.
20276 * rtl.c (rtx_equal_function_value_matters): Remove.
20277 (rtx_equal_p): Don't test for it.
20278 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
20281 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
20282 * rtl.c (note_insn_name): Likewise.
20283 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
20284 * final.c (final_scan_insn): Likewise.
20286 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
20287 * passes.c (rest_of_handle_eh): Do it here.
20289 * stmt.c (struct nesting): Remove struct nesting block member.
20290 (struct stmt_status): Remove x_block_start_count field.
20291 (current_block_start_count): Remove.
20293 2004-07-27 Brian Booth <bbooth@redhat.com>
20295 * tree-optimize.c (register_one_dump_file): Update condition that uses
20296 static_pass_number.
20297 (dup_pass_1): Replace with...
20298 (next_pass_1): This.
20299 (NEXT_PASS): Call next_pass_1.
20300 (DUP_PASS): Remove.
20301 (init_tree_optimization_passes): Remove uses of DUP_PASS.
20302 (execute_one_pass): Update condition that uses
20303 static_pass_number.
20304 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
20307 2004-07-27 Nick Clifton <nickc@redhat.com>
20309 * config/m32r/m32r.c: Include integrate.h in order to get the
20310 prototype for get_hard_reg_initial_val().
20312 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
20313 and tidy up indentation.
20314 (final_presence_set): Use absence_set instead, so that if there is
20315 nothing in the "o" pipe the "s" pipe can be scheduled.
20317 2004-07-27 Diego Novillo <dnovillo@redhat.com>
20319 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
20320 don't have PT_VARS nor PT_MALLOC set.
20321 Clear name tag from pointers that have not been dereferenced.
20322 (set_pt_anything, set_pt_malloc): Forward declare.
20323 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
20324 not type compatibility when determining if a pointer can be
20327 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
20329 * expr.h (canonicalize_condition, get_condition): Add an int argument.
20330 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
20331 it to check whether the condition is still valid at the jump insn.
20332 * ifcvt.c (noce_get_condition): Likewise.
20333 (noce_get_alt_condition): Update call to canonicalize_condition.
20334 * loop-iv.c (simplify_using_initial_values): Update call to
20335 get_condition. Remove FIXME.
20336 (check_simple_exit): Update call to get_condition.
20337 * loop-unswitch.c (may_unswitch_on): Likewise.
20338 * loop.c (check_dbra_loop): Likewise.
20339 (canonicalize_condition, get_condition): Add an argument to say whether
20340 the condition must still be valid at INSN.
20341 (get_condition_for_loop): Update call to get_condition. Require that
20342 the condition be valid at INSN.
20343 * predict.c (estimate_probability): Update call to get_condition.
20344 Remove unused earliest parameter.
20345 (expected_value_to_br_prob): Update call to canonicalize_condition.
20347 2004-07-26 Eric Christopher <echristo@redhat.com>
20349 * tree-dfa.c (add_referenced_var): Register initializers of global
20352 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
20354 * config/i386/i386.c (function_arg): Always treat 8-
20355 and 16-byte wide vectors the same, even if MMX/SSE
20357 (contains_128bit_aligned_vector_p): Add comment.
20359 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
20361 * ra.h (enum node_type): Rename to:
20362 (enum ra_node_type).
20363 * ra-colorize.c: Likewise.
20365 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20367 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
20368 after simplifying the jump.
20370 2004-06-26 Richard Henderson <rth@redhat.com>
20372 * calls.c (combine_pending_stack_adjustment_and_call): Make
20373 preferred_unit_stack_boundary argument unsigned. Make
20374 unadjusted_alignment unsigned.
20375 (expand_call): Make preferred_stack_boundary and
20376 preferred_unit_stack_boundary variables unsigned.
20377 * function.c (assign_stack_local_1): Make alignment unsigned.
20378 * function.h (struct function): Make stack_alignment_needed,
20379 preferred_stack_boundary unsigned.
20380 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
20381 (ix86_compute_frame_layout): Make stack_alignment_needed,
20382 preferred_alignment variables unsigned.
20383 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
20385 2004-07-26 Tom Tromey <tromey@redhat.com>
20387 * tree.h: Fix typo in comment.
20389 2004-07-26 Daniel Jacobowitz <dan@debian.org>
20392 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
20393 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
20394 (ggc_free): Remove incorrect freeing.
20395 (sweep_pages): Advance PP for large pages. Fix indentation.
20397 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20399 PR rtl-optimization/16643
20400 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
20401 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
20402 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
20403 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
20404 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
20405 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20406 * rtl.h (tracer): Add a flags parameter.
20407 * tracer.c (tracer): Pass it to cfg_layout_initialise.
20408 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
20409 (rest_of_handle_reorder_blocks): Update calls to tracer and
20410 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
20411 (rest_of_handle_tracer): Pass 0 to tracer.
20412 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
20414 2004-07-25 David Edelsohn <edelsohn@gnu.org>
20417 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
20420 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
20422 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
20423 (BINFO_BASE_ACCESS): Adjust.
20424 (BINFO_BASE_ACCESS_APPEND): New.
20425 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
20426 * dbxout.c (dbxout_type): Adjust binfo access accessing.
20427 * dwarf2out.c (gen_member_die): Likewise.
20428 * tree-dump.c (deque_and_dump): Likewise.
20430 2004-07-26 Falk Hueffner <falk@debian.org>
20432 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
20435 2004-07-25 Roger Sayle <roger@eyesopen.com>
20437 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
20438 value off of the stack if TARGET_USE_FFREEP.
20440 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20442 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
20443 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
20444 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
20445 check on invocation of XRESIZEVEC ().
20447 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20449 * c-common.c (disable_builtin_function): Rename variable n to
20450 new_disabled_builtin.
20451 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
20452 Rename local variable old to old_decl.
20453 * gensupport.c (shift_output_template): Rename parameter old to src.
20454 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
20455 old_rtx and newx to new_rtx.
20457 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20459 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
20461 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
20463 * c-lex.c: Likewise.
20465 2004-07-25 Roger Sayle <roger@eyesopen.com>
20467 * fold-const.c (constant_boolean_node): Make extern.
20468 (make_range): Wrap long lines.
20469 (fold_cond_expr_with_comparison): Remove unnecessary call to
20470 pedantic_non_lvalue. Add missing calls to fold_convert.
20471 (fold_truthop): Add missing calls to fold_convert.
20473 * tree.h (constant_boolean_node): Add prototype here.
20474 * builtins.c (expand_builtin_strncmp): Add missing calls to
20476 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
20477 Call fold_convert and constant_boolean_node to correct types.
20478 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
20479 missing call to fold_convert to correct types.
20481 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
20482 Brian Ryner <bryner@brianryner.com>
20486 * c-common.c (c_common_attribute_table): Allow
20487 handle_visibility_attribute to be called for types.
20488 (handle_visibility_attribute) When given a type, set the visibility
20489 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
20490 so that we can check later whether the attribute was present. Added
20491 warning if attribute applied to non class type.
20492 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
20493 decls and checking that they are consistent.
20494 * common.opt: Added -fvisibility.
20495 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
20496 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
20497 * flags.h, tree.h: Added assorted support defines for overall patch
20498 * opts.c: Added parsing support for -fvisibility.
20499 * tree.c (build_decl): Set visibility for all decls to be whatever
20500 is in force at that time.
20501 * varasm.c (default_binds_local_p_1): Reworked logic determining
20502 when to make a symbol locally bound.
20503 * doc/invoke.texi: Added documentation for -fvisibility and
20504 -fvisibility-inlines-hidden.
20506 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20508 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
20509 * c-common.c: Add missing casts from void * to other types.
20510 * c-decl.c: Likewise.
20511 * c-format.c: Likewise.
20512 * c-lex.c: Likewise.
20513 * c-pragma.c: Likewise.
20514 * c-typeck.c: Likewise.
20515 * defaults.h: Likewise.
20516 * genconstants.c: Likewise.
20517 * gengtype-lex.l: Likewise.
20518 * genmodes.c: Likewise.
20519 * read-rtl.c: Likewise.
20522 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20524 * bitmap.c: Use type-safe memory allocation macros from libiberty.
20525 * c-common.c: Likewise.
20526 * c-decl.c: Likewise.
20527 * c-lang.c: Likewise.
20528 * c-lex.c: Likewise.
20529 * c-opts.c: Likewise.
20530 * c-parse.in: Likewise.
20531 * c-typeck.c: Likewise.
20532 * genconditions.c: Likewise.
20533 * gengtype-lex.l: Likewise.
20534 * gengtype-yacc.y: Likewise.
20535 * gengtype.c: Likewise.
20536 * genmodes.c: Likewise.
20537 * gensupport.c: Likewise.
20538 * read-rtl.c: Likewise.
20539 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
20542 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20544 * c-decl.c (groktypename, groktypename_in_param_context): Rename
20545 variable typename to type_name.
20546 * c-lex.c (interpret_float): Likewise.
20548 2004-07-25 Roger Sayle <roger@eyesopen.com>
20550 * convert.c (convert_to_real, convert_to_integer,
20551 convert_to_complex): Replace calls to build with calls to buildN.
20552 * coverage.c (tree_coverage_counter_ref): Likewise.
20553 * dojump.c (do_jump): Likewise.
20554 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
20555 * emit-rtl.c (component_ref_for_mem_expr,
20556 set_mem_attributes_minus_bitpos): Likewise.
20557 * explow.c (update_nonlocal_goto_save_area): Likewise.
20558 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
20559 expand_mult_add): Likewise.
20560 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
20561 store_constructor, get_inner_reference, expand_expr_real_1,
20562 try_casesi, try_tablejump): Likewise.
20563 * function.c (expand_function_start): Likewise.
20564 * stmt.c (emit_case_bit_tests, expand_end_case_type,
20565 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
20566 * stor-layout.c (place_union_field, layout_type): Likewise.
20567 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
20568 * varasm.c (copy_constant): Likewise.
20570 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20572 * c-common.c: Rename all identifiers named `new'.
20573 * c-decl.c: Likewise.
20574 * gensupport.c: Likewise.
20575 * simplify-rtx.c: Likewise.
20576 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
20578 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
20581 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
20584 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
20585 declarations until after calling pushdecl.
20586 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
20587 "extern" and not on whether the declaration is initialized.
20589 2004-07-25 Daniel Jacobowitz <dan@debian.org>
20591 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
20592 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
20593 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
20594 "cpplib.h", "c-pragma.h", "c-common.h".
20595 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
20596 (solaris_register_pragmas): New functions.
20597 * config/sol2-protos.h: New file.
20598 * config/sol2.c: New file.
20599 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
20600 (REGISTER_TARGET_PRAGMAS): New macros.
20601 (solaris_pending_aligns, solaris_pending_inits)
20602 (solaris_pending_finis): New variables.
20603 * config/t-sol2 (sol2-c.o): Update dependencies.
20604 (sol2.o): New rule.
20605 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
20606 SUBTARGET_INSERT_ATTRIBUTES.
20607 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
20608 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20609 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20610 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20611 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20612 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20613 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20614 * config/sparc/sparc.c (sparc_attribute_table): New.
20615 (TARGET_INSERT_ATTRIBUTES): Define in terms of
20616 SUBTARGET_INSERT_ATTRIBUTES.
20617 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
20619 * doc/extend.texi (Solaris Pragmas): New section.
20621 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20623 * c-common.c: Rename all identifiers named `class' to `cl'.
20624 * c-common.h: Likewise.
20625 * c-parse.in: Likewise.
20626 * c-typeck.c: Likewise.
20627 * genmodes.c: Likewise.
20628 * real.c: Likewise.
20629 * real.h: Likewise.
20630 * recog.c: Likewise.
20631 * recog.h: Likewise.
20632 * regrename.c: Likewise.
20633 * tree.h: Likewise.
20634 * c-common.c (builtin_function_2): Change type of 5th parameter from
20635 int to enum built_in_function. Change type of 8th parameter from int
20637 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
20639 * c-typeck.c (convert_arguments): Change type of formal_prec from
20640 int to unsigned int.
20641 * genmodes.c (blank_mode): Make a few negative constants unsigned.
20642 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
20643 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
20644 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
20645 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
20646 iterator to for_all_modes () instead of an enum because enums can't
20647 be incremented in C++.
20650 2004-07-25 Daniel Jacobowitz <dan@debian.org>
20652 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
20655 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20657 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
20658 Handle ARRAY_RANGE_REF like ARRAY_REF.
20660 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
20662 * c-typeck.c (digest_init): Don't allow arrays of signed or
20663 unsigned variants of wchar_t to be initialized by wide string
20664 constants. Do allow arrays of enumerated types compatible with
20665 wchar_t to be initialized by wide string constants. Refine tests
20666 distinguishing wide and narrow strings and arrays. Give specific
20667 error for arrays of other integer types initialized by string
20669 (output_init_element, process_init_element): Check for
20670 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
20671 initializing with string constants.
20673 2004-07-25 Richard Henderson <rth@redhat.com>
20675 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
20676 on the RESULT_DECL.
20677 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20678 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
20679 DECL_IGNORED_P to new decl.
20681 2004-07-24 Zack Weinberg <zack@codesourcery.com>
20683 * config/ia64/ia64.c (general_xfmode_operand)
20684 (destination_xfmode_operand): Delete.
20685 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
20686 * config/ia64/ia64.md (*movxf_internal): Use general_operand
20687 and destination_operand.
20689 2004-07-24 Alexander Kabaev <kan@freebsd.org>
20691 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
20692 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
20694 2004-07-24 Alexander Kabaev <kan@freebsd.org>
20695 Zack Weinberg <zack@codesourcery.com
20698 * c-decl.c (diagnose_mismatched_decls): Don't issue a
20699 redundant-declaration warning the first time a builtin is
20700 declared explicitly.
20702 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20704 * tree.h (staticp): Change return type to bool.
20706 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20708 * c-common.c (c_staticp): Last episode of the staticp saga.
20710 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20712 * c-common.h (c_staticp): Change return type from int to bool.
20713 * tree.c (staticp): Likewise.
20714 * langhooks.h (staticp): Likewise.
20716 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20718 * langhooks-def.h (lhd_staticp): Change return type from int to
20719 bool in prototype to match definition.
20721 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20723 * system.h (bool, true, false): Don't redefine as preprocessor macros
20726 2004-07-24 Roger Sayle <roger@eyesopen.com>
20728 * expmed.c (init_expmed): A signed modulus by a power of two is
20729 considered cheap if its less than or equal to four instructions.
20731 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20733 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
20734 GGC_CNEWVAR): New macros.
20736 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20738 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
20740 * c-decl.c: Likewise.
20741 * c-format.c: Likewise.
20742 * c-lex.c: Likewise.
20743 * c-opts.c: Likewise.
20744 * c-pragma.c: Likewise.
20745 * c-typeck.c: Likewise.
20746 * gencheck.c: Likewise.
20747 * genconditions.c: Likewise.
20748 * genconfig.c: Likewise.
20749 * genflags.c: Likewise.
20750 * gengtype.c: Likewise.
20751 * gensupport.c: Likewise.
20752 * ggc-none.c: Likewise.
20753 * langhooks.c: Likewise.
20754 * statistics.h: Likewise.
20755 * stub-objc.c: Likewise.
20756 * java/decl.c: Likewise.
20758 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
20760 * config/m68k/m68k.c (output_scc_di): Fix coding style.
20761 (symbolic_operand): Fix prototype.
20762 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
20763 * config/m68k/m68k.md: Add constants for registers a0 and sp and
20764 use them, change from the "{...}" syntax to the simpler {...}
20766 (*cfv4_extendqisi2): Fix destination predicate.
20767 * config/m68k/m68k-protos.h: Remove various declarations also
20768 generated via PREDICATE_CODES.
20770 2004-07-23 Mike Stump <mrs@apple.com>
20772 * c-typeck.c (convert_for_assignment): Tightened up pointer
20773 converstions that differ in signedness.
20775 2004-07-23 Zack Weinberg <zack@codesourcery.com>
20777 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
20779 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20781 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
20782 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
20784 * gimplify.c (gimplify_compound_lval): Check for no handled
20785 operations, rather than checking for explicit list of nodes.
20786 (is_gimple_addr_expr_arg_or_indirect): New function.
20787 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
20788 redundant setting of TREE_INVARIANT.
20789 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
20790 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
20792 2004-07-23 Diego Novillo <dnovillo@redhat.com>
20794 PR tree-optimization/16688
20795 PR tree-optimization/16689
20796 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
20797 unnecessary initialization of 'tag'.
20798 (get_tmt_for): Check that the new type tag has the same alias
20799 set as the pointed-to type.
20800 (group_aliases): Only regular variables need to be removed
20801 from the alias set of a name tag.
20802 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
20803 propagation if the two types are not compatible.
20804 (merge_alias_info): Rename from replace_ssa_names_ann.
20806 (replace_exp_1): If both arguments are SSA_NAMEs, check that
20807 the propagation can be done.
20808 Only call merge_alias_info on pointers.
20809 (propagate_value): Likewise.
20810 * tree-ssa-copyrename.c: Include langhooks.h.
20811 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
20813 Do not coalesce variables with incompatible types.
20814 (rename_ssa_copies): Call replace_ssa_name_symbol.
20815 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
20816 the same type as the underlying _DECL.
20817 * tree-ssanames.c (replace_ssa_name_symbol): New function.
20818 * tree.h (replace_ssa_name_symbol): Declare.
20820 2004-07-23 Richard Henderson <rth@redhat.com>
20823 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
20824 unshare it properly.
20825 (gimplify_modify_expr_rhs): Push assignment from a conditional into
20826 the conditional for all non-register types.
20828 2004-07-23 Richard Henderson <rth@redhat.com>
20830 * expr.c (expand_expr_real_1): Don't handle non-local variables.
20831 * expr.h (fix_lexical_addr): Remove.
20832 * function.c (NEED_SEPARATE_AP): Remove.
20833 (fix_lexical_addr): Remove.
20834 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
20835 not null decl_function_context.
20836 (create_alias_vars): Likewise.
20837 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
20838 (simple_goto_p): Likewise.
20839 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
20840 * tree-ssa-ccp.c (get_default_value): Likewise.
20841 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
20842 * tree.c (needs_to_live_in_memory): Likewise.
20843 * tree-flow-inline.h (may_be_aliased): Move...
20844 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
20845 when TREE_STATIC variables may be addressable.
20847 2004-07-24 Jakub Jelinek <jakub@redhat.com>
20849 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
20851 2004-07-23 Zack Weinberg <zack@codesourcery.com>
20853 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
20854 bitmap contents if GENERATOR_FILE is defined.
20855 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
20856 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
20858 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
20860 * c-decl.c (start_function): Form composite type of function types
20861 rather than copying type from previous prototype declaration.
20863 2004-07-23 Janis Johnson <janis187@us.ibm.com>
20865 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
20866 the const qualifier for the second argument in the C++ functions.
20868 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
20869 specific pointer types.
20871 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
20872 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
20873 for vector bool and/or vector pixel, add C++ and C missing support.
20874 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
20875 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
20876 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
20877 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
20878 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
20879 missing C++ and C support for vector bool and/or vector pixel.
20880 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
20881 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
20882 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
20883 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
20884 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
20885 C++ and C types used for vector bool and/or vector pixel.
20886 (vec_st, vec_stl): Add C++ support for vector pixel.
20887 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
20888 (vec_all_ne): Add C++ support for vector pixel.
20890 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
20891 (vec_vmulesb): Add missing C++ function.
20892 (vec_perm): Fix type of third argument in C++ function.
20893 (vec_vsum4shs): Fix C++ function name.
20894 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
20895 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
20896 argument passed to the error handler in C macro.
20897 (vec_nmsub): Remove extra parens around argument names in C macro.
20898 (vec_packpx): Add missing parens in C macro.
20900 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
20902 * machmode.def: Remove vector modes.
20903 * config/alpha/alpha-modes.def: Add supported vector modes.
20904 * config/arm/arm-modes.def: Likewise.
20905 * config/frv/frv-modes.def: Likewise.
20906 * config/i386/i386-modes.def: Likewise.
20907 * config/rs6000/rs6000-modes.def: Likewise.
20908 * config/sh/sh-modes.def: Likewise.
20910 2004-07-23 Matthias Klose <doko@debian.org>
20912 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
20913 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
20914 * config.h: Regenerate.
20915 * configure: Likewise.
20917 2004-07-22 Mark Mitchell <mark@codesourcery.com>
20919 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
20920 generated SYMBOL_REFs for labels.
20921 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
20923 (machopic_stub_name): Remove.
20924 (machopic_indirection_name): New function.
20925 (machopic_mcount_stub_name): Likewise.
20926 (machopic_classify_name): Remove.
20927 (machopic_function_base_sym): New function.
20928 (machpoic_classify_symbol): Likewise.
20929 (machopic_classify_ident): Remove.
20930 (machopic_define_ident): Likewise.
20931 (machopic_define_name): Likewise.
20932 (machopic_name_defined_p): Likewise.
20933 (machopic_ident_defined_p): Likewise.
20934 (darwin_strip_name_encoding): Likewise.
20935 (machopic_define_symbol): New function.
20936 * config/darwin.c (hashtab.h): Include.
20937 (machopic_defined_list): Remove.
20938 (machopic_classify_ident): Likewise.
20939 (machopic_classify_name): Likewise.
20940 (machopic_ident_defined_p): Likewise.
20941 (machopic_define_ident): Likewise.
20942 (machopic_define_name): Likewise.
20943 (machopic_symbol_defined_p): New function.
20944 (machopic_classify_symbol): Likewise.
20945 (machopic_data_defined_p): Use machopic_classify_symbol.
20946 (machopic_define_symbol): New function.
20947 (machopic_function_base_sym): New function.
20948 (machopic_non_lazy_pointers): Remove.
20949 (machopic_non_lazy_ptr_name): Likewise.
20950 (machopic_stubs): Likewise.
20951 (machopic_stub_name): Likewise.
20952 (NON_LAZY_POINTER_SUFFIX): New macro.
20953 (STUB_SUFFIX): Likewise.
20954 (machopic_indirection): New structure.
20955 (machopic_indirections): New variable.
20956 (machopic_indirection_hash): New function.
20957 (machopic_indirection_eq): Likewise.
20958 (machopic_indirection_name): Likewise.
20959 (machopic_mcount_stub_name): New function.
20960 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
20962 (machopic_indirect_data_reference): Rework to use new functions.
20963 (machopic_indirect_call_target): Likewise.
20964 (machopic_legitimize_pic_address): Likewise.
20965 (machopic_output_indirection): New function.
20966 (machopic_finish): Use it.
20967 (machopic_operand_p): Rework to use new functions.
20968 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
20969 (darwin_strip_name_encoding): Remove.
20970 (update_non_lazy_ptrs): Remove.
20971 (update_stubs): Likewise.
20972 (darwin_non_lazy_pcrel): Use new functions.
20973 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20974 (ASM_OUTPUT_LABELREF): Likewise.
20975 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
20976 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
20977 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
20978 (TARGET_STRIP_NAME_ENCODING): Do not use
20979 darwin_strip_name_encoding.
20980 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
20981 darwin_strip_name_encoding.
20982 * config/i386/darwin.h (FUNCTION_PROFILER): Use
20983 machopic_mcount_stub_name.
20984 * config/i386/i386.c (x86_output_mi_thunk): Use
20985 machopic_indirection_name, not machopic_stub_name.
20986 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
20987 machopic_function_base_sym.
20988 (print_operand): Use machopic_classify_symbol.
20989 (rs6000_emit_prologue): Use machopic_function_base_sym.
20990 (output_profile_hook): Do not use machopic_stub_name.
20991 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
20993 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
20996 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
20999 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21001 * doc/implement-c.texi: New file.
21002 * doc/extend.texi (C Implementation): Move to there.
21003 * doc/gcc.texi: Include implement-c.texi.
21004 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
21006 2004-07-22 Jason Merrill <jason@redhat.com>
21008 * integrate.c (copy_decl_for_inlining): Remove invisible reference
21010 * tree-inline.c (setup_one_parameter): Likewise.
21012 2004-07-22 Brian Booth <bbooth@redhat.com>
21014 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
21015 (substitute_and_fold): Propigate into VUSE operands when possible.
21016 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
21017 (cp_lattice_meet): Handle merging of latticevalues when
21018 UNKNOWN_VAL is present.
21019 (visit_stmt): Visit assignments with V_MUST_DEFs.
21020 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
21021 (ccp_fold): Deal with RHS' that are constant and virtual.
21022 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
21023 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
21024 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
21025 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
21026 computing immediate uses.
21027 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
21029 (replace_vuse_in): New function.
21030 (likely_value): Add check of vuse operands.
21031 (get_default_value): Set the default value of virtually defined
21032 variables to UKNOWN_VAL instead of VARYING.
21034 2004-07-22 Richard Henderson <rth@redhat.com>
21036 * expr.c (emit_push_insn): Don't use set_mem_attributes.
21038 2004-07-22 Richard Henderson <rth@redhat.com>
21040 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
21041 variables due to conditional compilation.
21043 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21045 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
21046 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
21047 Release SSA names that have been re-renamed.
21048 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
21050 * tree-ssa-alias.c (init_alias_info): If aliases have been
21051 computed before, clear existing alias information.
21052 (create_name_tags): Do no fixup PT_ANYTHING pointers.
21053 If the new name tag for a pointer is different than the one it
21054 had before, mark the old tag for renaming.
21055 (replace_may_alias): New function.
21056 (group_aliases): Call it.
21057 (setup_pointers_and_addressables): Always call get_tmt_for.
21058 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
21060 (set_pt_anything): New local function.
21061 (set_pt_malloc): New local function.
21062 (merge_pointed_to_info): Don't merge pointed-to variables from
21063 the original pointer if the destination is pointing to an
21065 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
21066 (add_pointed_to_var): Do not add a variable to the points-to
21067 set if the pointer is already pointing to anywhere.
21068 (collect_points_to_info_r): If the defining statement is a PHI
21069 node, only merge pointed-to information if the argument has
21070 already been visited.
21071 (get_tmt_for): Only create a new tag if the pointer didn't
21073 (dump_alias_info): Emit more information.
21074 (dump_points_to_info_for): Likewise.
21075 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
21076 try to get the annotation of an SSA_NAME.
21077 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
21078 alias sets when checking is enabled.
21079 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
21080 (eliminate): Mark basic blocks that will need
21081 EH information cleaned up.
21082 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
21084 Initialize need_eh_cleanup.
21085 (fini_pre): Call tree_purge_all_dead_eh_edges and
21086 cleanup_tree_cfg if needed.
21087 Free need_eh_cleanup.
21088 * tree-ssa.c (verify_ssa_name): New function.
21089 (verify_def): Call it.
21090 Re-arrange to avoid printing too many error messages.
21091 (verify_use): Likewise.
21092 (verify_phi_args): Likewise.
21093 (verify_flow_insensitive_alias_info): New function.
21094 (verify_flow_sensitive_alias_info): New function.
21095 (verify_alias_info): New function.
21096 (verify_ssa): Call verify_alias_info.
21097 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
21099 Re-arrange to avoid printing too many error messages.
21100 * tree-ssanames.c (make_ssa_name): Clear
21101 SSA_NAME_IN_FREE_LIST.
21102 (release_ssa_name): Never release a default definition.
21103 (release_defs): New function.
21104 * tree.h: Declare it.
21105 * tree-ssa-dce.c (remove_dead_stmt): Call it.
21107 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21109 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
21110 If true, do a depth-first search. Do a breadht-first search,
21112 (walk_use_def_chains): Add new argument IS_DFS.
21114 * tree-flow.h (walk_use_def_chains): Update prototype.
21116 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
21118 * config/cris/cris.md: Tweak formatting.
21119 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
21120 (mover2side, moverside, movemside, movei, op3, andu): Replace
21121 live define_peephole:s with define_peephole2 near-equivalents.
21123 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
21125 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
21126 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
21127 "*mov_sidesi_mem" respectively.
21129 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21131 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
21132 (gimplify_build1): Move from tree-complex.c do_unop.
21133 (gimplify_build2): Move from tree-complex.c do_binop.
21134 (gimplify_build3): New.
21135 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
21136 Adjust throughout to call the functions above.
21137 * tree-flow.h: Declare the functions above.
21138 * tree-nested.c (gimplify_val): Rename to...
21139 (tsi_gimplify_val): ... this.
21141 * Makefile.in (tree_complex.o): Update dependencies.
21142 (stor-layout.o): Depend on regs.h.
21143 * c-common.c (handle_vector_size_attribute): Update for
21144 vector types without corresponding vector modes.
21145 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
21146 a corresponding vector mode is not available.
21147 * print-tree.c (print_node): Print nunits for vector types
21148 * regclass.c (have_regs_of_mode): New.
21149 (init_reg_sets_1): Initialize it and use it instead
21150 of allocatable_regs_of_mode.
21151 * regs.h (have_regs_of_mode): Declare it.
21152 * stor-layout.c (layout_type): Pick a mode for vector types.
21153 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
21154 build_replicated_const, do_unop, do_binop, do_plus_minus,
21155 do_negate, expand_vector_piecewise, expand_vector_parallel,
21156 expand_vector_addition, expand_vector_operations_1,
21157 expand_vector_operations, tree_lower_operations,
21158 pass_lower_vector_ssa, pass_pre_expand): New.
21159 (expand_complex_operations, pass_lower_complex): Remove.
21160 * tree-optimize.c (init_tree_optimization_passes): Adjust
21161 pass ordering for changes in tree-complex.c.
21162 * tree-pass.h: Declare new passes.
21163 * tree.c (finish_vector_type): Remove.
21164 (make_vector_type): New.
21165 (build_vector_type_for_mode, build_vector_type): Rewritten.
21166 * tree.def (VECTOR_TYPE): Document where the number of
21167 subparts is stored.
21168 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
21169 (make_vector): Remove declaration.
21171 2004-07-21 Richard Henderson <rth@redhat.com>
21173 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
21174 TREE_THIS_VOLATILE, may_aliases, or optimization level.
21175 (remove_useless_vars): Dump debugging info.
21176 (expand_used_vars): Move ...
21177 * cfgexpand.c (expand_used_vars): ... here. Make static.
21178 * tree-flow-inline.h (set_is_used): New.
21179 (set_default_def): Use get_var_ann.
21180 * tree-flow.h: Update decls.
21181 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
21182 (create_ssa_var_map): Use it.
21183 * tree-ssa.c (set_is_used): Remove.
21185 2004-07-22 Ben Elliston <bje@au.ibm.com>
21187 * gdbinit.in: Set a breakpoint on internal_error.
21189 2004-07-21 Richard Henderson <rth@redhat.com>
21191 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
21192 to create a new basic block.
21194 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21197 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
21198 return type on function definitions. Move other warnings for
21199 qualified return type to -Wreturn-type. Do not condition any such
21200 warnings on -pedantic. Update comments.
21201 (start_function): Only copy function type from previous prototype
21202 declaration if return types are compatible.
21203 * c-typeck.c (function_types_compatible_p): Don't condition
21204 warning for incompatibility of volatile qualifiers on the return
21205 type on -pedantic. Update comment.
21206 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
21208 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21210 * c-typeck.c (set_init_index): Require designator to be of integer
21213 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21216 * c-parse.in (init): Change to exprtype.
21217 (primary): Set original_code for STRING to STRING_CST.
21218 Call maybe_warn_string_init for compound literals.
21219 (initdcl, notype_initdcl): Call maybe_warn_string_init.
21221 * c-tree.h (maybe_warn_string_init): New.
21222 (pop_init_level, process_init_element): Use struct c_expr.
21223 (struct c_expr): Update comment.
21224 * c-typeck.c (maybe_warn_string_init): New function.
21225 (digest_init): Call it. Additional parameter strict_string. All
21227 (output_init_element): Likewise.
21228 (struct constructor_stack): Use struct c_expr for
21230 (really_start_incremental_init, push_init_level): Update.
21231 (pop_init_level): Update. Return struct c_expr.
21232 (process_init_level): Update. Take struct c_expr argument.
21234 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
21236 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
21239 2004-07-21 Eric Christopher <echristo@redhat.com>
21241 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
21243 * c-decl.c (pop_scope): Ditto.
21244 * calls.c (expand_call): Remove call to current_nesting_level,
21245 update comment accordingly. Remove calls to expand_start_target_temps
21246 and expand_end_target_temps.
21247 * cfgexpand.c (construct_init_block): Remove call to
21248 expand_start_bindings_and_block.
21249 (construct_exit_block): Remove call to expand_end_bindings.
21250 * expr.c (safe_from_p): Remove BIND_EXPR handling.
21251 (expand_expr_real_1): Ditto. Fix formatting.
21252 (expand_vars): Delete.
21253 * stmt.c (POPSTACK): Remove block_stack.
21254 (stmt_status): Remove x_block_stack.
21255 (block_stack): Delete.
21256 (expand_start_bindings_and_block): Ditto.
21257 (expand_start_target_temps): Ditto.
21258 (expand_end_target_temps): Ditto.
21259 (current_nesting_level): Ditto.
21260 (warn_about_unused_variables): Ditto.
21261 (expand_end_bindings): Ditto.
21262 * tree.h: Remove declarations for above.
21264 2004-07-21 Steven Bosscher <stevenb@suse.de>
21266 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
21267 * rtl.c (note_insn_name): Likewise.
21268 * print-rtl.c (print_rtx): Don't print it.
21269 * cfgrtl.h (can_delete_note_p): Don't handle it.
21270 (rtl_delete_block): Likewise.
21271 * passes.c (rest_of_handle_guess_branch_prob): Remove.
21272 (rest_of_compilation): Don't call it.
21273 * predict.c (process_note_predictions, process_note_prediction,
21274 note_prediction_to_br_prob): Remove.
21275 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
21276 * stmt.c (return_prediction): Remove.
21277 (expand_value_return): Don't call it. Don't add prediction
21278 notes for return statements.
21280 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
21282 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
21285 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
21287 * c-common.c (vector_types_convertible_p): Use vector types'
21288 TYPE_SIZE and TREE_TYPE instead of their mode.
21289 * convert.c (convert_to_integer): Likewise.
21290 (convert_to_vector): Likewise.
21291 * fold-const.c (fold_convert): Likewise.
21292 * varasm.c (output_constant): Likewise.
21293 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
21294 Allow a VECTOR_TYPE initializer to be made of several vectors.
21295 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
21296 of cleared and need_to_clear, and use fold_convert.
21297 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
21300 2004-07-20 Richard Henderson <rth@redhat.com>
21302 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
21303 (expand_gimple_basic_block): out from here. Renamed from expand_block.
21305 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
21307 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
21308 enormous cost if not TARGET_HARD_MUL.
21310 2004-07-20 Andrew Pinski <apinski@apple.com>
21313 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
21316 2004-07-21 Paul brook <paul@codesourcery.com>
21318 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
21320 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21322 * fold-const.c (operand_equal_p): Temporarily support NULL args.
21323 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
21324 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
21326 2004-07-20 Zack Weinberg <zack@codesourcery.com>
21328 * rtl.h (plus_constant): Delete.
21329 (plus_constant_wide): Rename to plus_constant.
21330 (plus_constant_for_output_wide): Delete vestigial prototype.
21331 (GEN_INT): Remove unnecessary cast.
21332 * tree.h (build_int_2, size_int_type): Delete.
21333 (build_int_2_wide): Rename to build_int_2.
21334 (size_int_wide): Rename to size_int_kind.
21335 (size_int_type_wide): Rename to size_int_type.
21336 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
21337 Remove unnecessary cast.
21338 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
21339 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
21340 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
21341 (size_int_type_wide): Rename size_int_type.
21342 (int_const_binop): Use size_int_type.
21343 * c-lex.c (interpret_integer): Use build_int_2.
21344 * final.c (split_double): Remove unnecessary casts.
21345 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
21347 2004-07-20 Richard Henderson <rth@redhat.com>
21349 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
21350 (gimplify_compound_lval): Use is_gimple_tmp_reg.
21351 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
21352 (is_gimple_tmp_reg): New.
21353 * tree-gimple.h (is_gimple_tmp_reg): Declare.
21355 2004-07-20 Richard Henderson <rth@redhat.com>
21357 * tree-pretty-print.c (dump_generic_node): Dump
21358 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
21360 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
21362 * tree-mudflap.c (mf_set_options_fndecl): New tree.
21363 (mudflap_init): Set it.
21364 (mudflap_register_call): Remove __mf_init call.
21365 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
21366 to pass "-ignore-reads" option to libmudflap if needed.
21368 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
21371 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
21372 (MAKE_DECL_ONE_ONLY): Undefine.
21373 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
21374 readonly_data, one_only_data_section, forget_section): New prototypes.
21375 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
21377 (pa_select_section): Add one-only (COMDAT) support.
21378 * pa.h (struct machine_function): Define.
21379 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
21380 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
21381 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
21382 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
21383 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
21384 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
21385 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
21386 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
21387 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
21388 for EXTRA_SECTION_FUNCTIONS.
21389 * doc/install.texi: Update binutils requirements.
21391 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21393 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
21394 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
21395 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
21397 (struct VEC): Use unsigned for num and alloc.
21398 * vec.c (struct vec_prefix): Likewise.
21399 (vec_o_reserve): Adjust.
21401 * dbxout.c (dbxout_type): Fix printf format.
21403 * tree.h (binfo_member): Remove.
21404 * tree.c (binfo_member): Remove.
21406 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21408 * tree.h: Include vec.h
21409 (DEF_VEC_P(tree)): New type.
21410 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
21411 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
21412 (BINFO_LANG_SLOT): Remove.
21413 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
21414 (struct tree_binfo): Turn base_binfos into a trailing
21415 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
21416 (binfo_lang_slots): Remove.
21417 * tree.c (binfo_lang_slots): Remove.
21418 (make_tree_binfo_stat): Take a base binfo count, not a
21419 lang slot count. Adjust.
21420 * Makefile.in (TREE_H): Add vec.h
21421 * alias.c (record_component_aliases): Adjust BINFO access.
21422 * dbxout.c (dbxout_type): Likewise.
21423 * dwarf2out.c (gen_member_die): Likewise.
21424 * sdbout.c (sdbout_one_type): Likewise.
21425 * tree-dump.c (deque_and_dump): Likewise.
21426 * config/i386/i386.c (classify_argument,
21427 contains_128bit_aligned_vector_p): Likewise.
21428 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
21429 * doc/c-tree.texi (Classes): Update BINFO documentation.
21431 2004-07-20 Steven Bosscher <stevenb@suse.de>
21433 * c-common.h (check_case_value): Remove prototype.
21434 (c_add_case_label): Adjust prototype.
21435 * c-common.c (check_case_value): Make static.
21436 (check_case_bounds): New function.
21437 (c_add_case_label): Use it. Take new argument orig_type.
21438 * c-typeck.c (struct c_switch): New orig_type field.
21439 (c_start_case): Set it.
21440 (do_case): Pass it to c_add_case_label.
21441 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
21442 cases from here. Add the labels in reverse order.
21443 * stmt.c (struct case_node): Adjust comment. Remove balance field.
21444 (add_case_node): Return nothing, don't check for duplicate cases.
21445 Insert new case nodes in a list, not in an AVL tree.
21446 (expand_end_case_type): Don't turn a case tree into a case list.
21447 (case_tree2list): Remove.
21448 * tree.h (add_case_node): Adjust prototype.
21450 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
21452 * genattr.c (struct range, struct function_unit,
21453 write_units, extend_range, init_range): Remove them.
21454 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21455 Output "#define INSN_SCHEDULING" here.
21456 * genattrtab.c (struct range, struct function_unit_op,
21457 struct function_unit, struct dimension, enum operator,
21458 operate_exp, expand_units, simplify_knowing,
21459 encode_units_mask, simplify_by_exploding,
21460 find_and_mark_used_attributes, unmark_used_attributes,
21461 add_values_to_cover, increment_current_value,
21462 test_for_current_value, simplify_with_current_value,
21463 simplify_with_current_value_aux, gen_unit,
21464 write_unit_name, write_function_unit_info,
21465 write_complex_function, write_toplevel_expr,
21466 find_single_value, extend_range): Remove.
21467 (write_attr_get): Do not handle common_av->value
21469 (struct attr_desc): Remove func_units_p and blockage_p.
21470 (write_attr_valueq): Do not handle them.
21471 (find_attr): Do not clear them.
21472 (make_internal_attr): Do not initialize them.
21473 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21474 * sched-vis.c (init_target_units, insn_print_units,
21475 init_block_visualization, print_block_visualization,
21476 visualize_scheduled_insns, visualize_no_unit,
21477 visualize_stall_cycles, visualize_alloc,
21478 visualize_free, target_units, get_visual_tbl_length,
21479 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
21480 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
21481 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
21482 * haifa-sched.c (blockage_range, clear_units,
21483 schedule_unit, actual_hazard, potential_hazard,
21484 insn_unit, unit_last_insn, unit_tick,
21485 actual_hazard_this_instance, potential_hazard,
21486 schedule_unit, max_insn_queue_index_value): Remove.
21487 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
21488 max_insn_queue_index.
21489 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
21490 * doc/md.texi (Processor pipeline description): Remove
21491 references to old pipeline descriptions.
21492 (Automaton pipeline description): Merge with the above.
21493 (Old pipeline description, Comparison of the two descriptions):
21496 * bt-load.c (migrate_btr_def): Remove references to
21497 use_pipeline_interface.
21498 * haifa-sched.c (insn_cost, schedule_insn,
21499 schedule_block, advance_one_cycle, sched_init,
21500 queue_to_ready, sched_finish): Likewise.
21501 * modulo-sched.c (sms_schedule, advance_one_cycle,
21502 ps_has_conflicts): Likewise.
21503 * sched-rgn.c (init_ready): Likewise.
21504 (debug_dependencies): Likewise, and remove an "if (1)".
21505 * target.h (use_dfa_pipeline_interface): Remove.
21506 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21507 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21508 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21509 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21510 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21511 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21512 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21513 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21514 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21515 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21516 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21517 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21518 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21519 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21520 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21521 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21522 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21523 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21524 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21526 2004-07-19 Roger Sayle <roger@eyesopen.com>
21528 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
21530 2004-07-19 Jeff Law <law@redhat.com>
21532 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
21533 (get_eq_expr_value): Use it. Simplify slightly.
21535 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
21537 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
21538 (umulsidi3_32bit_r4000): Likewise.
21540 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
21542 * vec.h: Propagate location information properly.
21543 (VEC_T_iterate): Add result pointer parameter.
21544 (VEC_T_space): New.
21545 (VEC_T_reserve): Use it.
21547 2004-07-19 Daniel Jacobowitz <dan@debian.org>
21549 * Makefile.in (c-format.o): Depend on c-format.h.
21550 * c-format.h: New file.
21551 (struct format_char_info): Add CHAIN member.
21552 * c-format.c: Move some types and constants to c-format.h.
21553 (format_type_error): Set to -1.
21554 (struct function_format_info): Use an int for format_type.
21555 (decode_format_type): Return an int. Return format_type_error
21557 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
21558 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
21559 (scan_char_table, time_char_table, monetary_char_table): Initialize
21561 (n_format_types): New variable.
21562 (check_format_info_main): Handle CHAIN in format_char_info.
21563 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
21564 TARGET_N_FORMAT_TYPES.
21565 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21566 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
21567 * config/sol2-c.c: New file.
21568 * config/t-sol2: New file.
21569 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
21570 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
21571 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
21573 * doc/extend.texi (Target Format Checks): New section.
21574 (Function Attributes): Mention it.
21575 * doc/invoke.texi: Mention target format checks.
21576 * doc/sourcebuild.texi: Mention target format checks.
21577 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
21578 TARGET_FORMAT_TYPES.
21580 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
21582 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
21584 * config/s390/s390.c (regclass_map initializer): Register 35 added to
21586 (load_multiple_operation, store_multiple_operation): Removed
21587 pointless sanity check.
21588 (s390_decompose_address): Added check for return_address_pointer_rtx.
21589 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
21590 (s390_return_address_offset): New function.
21591 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
21592 (FRAME_REGNO_P): Added check for register 35.
21593 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
21594 REG_ALLOC_ORDER): Appended entry for register 35.
21595 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
21596 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
21597 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
21598 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
21599 is eliminable using stack pointer or hard frame pointer.
21600 (REGISTER_NAMES): Added name for register 35.
21601 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
21602 pointless sanity check.
21604 2004-07-19 Roger Sayle <roger@eyesopen.com>
21606 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
21607 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
21608 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
21609 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
21610 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
21611 (fold_relational_const): Tidy up handling of floating point
21612 comparisons by calling real_compare. Remove tree_expr_nonzero_p
21613 transformation; fold_relational_const assumes constant operands.
21615 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
21617 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
21620 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
21622 * c-tree.h (struct c_expr): Define.
21623 (C_SET_EXP_ORIGINAL_CODE): Remove.
21624 (parser_build_binary_op, build_compound_expr): Update prototypes.
21625 * c-parse.in (%union): Add exprtype.
21626 (FUNC_NAME): Mark as ttype.
21627 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
21629 (expr): Update. Define directly in terms of expr_no_commas
21630 instead of using nonnull_exprlist.
21631 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
21632 offsetof_member_designator, typespec_nonreserved_nonattr, init,
21633 initval, designator, component_declarator,
21634 component_notype_declarator, enumerator, array_declarator,
21635 condition, exexpr, switch_statement, stmt_nocomp, stmt,
21636 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
21637 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
21639 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
21640 * c-common.c (c_common_truthvalue_conversion): Don't check
21641 C_EXP_ORIGINAL_CODE.
21642 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
21643 Don't use C_EXP_ORIGINAL_CODE.
21644 (default_conversion, default_function_array_conversion): Don't use
21645 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
21646 (internal_build_compound_expr): Merge into build_compound_expr.
21647 (build_compound_expr): Take two operands instead of a TREE_LIST.
21648 * objc/objc-act.c (get_super_receiver): Update calls to
21649 build_compound_expr.
21651 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
21653 * config/sh/sh.c (sh_use_dfa_interface): Remove.
21654 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
21656 * config/sh/sh.md: Extract pipeline descriptions
21657 into separate files.
21658 * config/sh/sh1.md: New file, extracted from sh.md.
21659 * config/sh/sh4.md: New file, extracted from sh.md.
21660 * config/sh/shmedia.md: New file, extracted from sh.md
21661 and rewritten using new-style pipeline description.
21663 2004-07-18 Zack Weinberg <zack@codesourcery.com>
21665 * config/pa/pa.md: Delete the two remaining define_peephole
21668 2004-07-18 Steven Bosscher <stevenb@suse.de>
21669 Joseph S. Myers <jsm@polyomino.org.uk>
21671 * c-common.c (c_common_truthvalue_conversion): Don't warn if
21672 TREE_NO_WARNING is set.
21674 2004-07-18 Roger Sayle <roger@eyesopen.com>
21676 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
21677 simplify_builtin_strncmp): Delete.
21678 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
21679 Change argument to accept an arglist instead of an "exp". Assume
21680 that the return type is always integer_type_node. Copy missing
21681 transformations from their now obsolete simplify_builtin_*
21683 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
21684 fold_builtin_strcmp and fold_builtin_strncmp.
21685 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
21686 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
21687 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
21689 2004-07-18 Daniel Jacobowitz <dan@debian.org>
21691 * Makefile.in (tree-alias-common.o): Update dependencies.
21693 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
21695 * cfgloop.c (flow_loop_nested_p): Fix comment.
21697 2004-07-17 Jason Merrill <jason@redhat.com>
21700 * stor-layout.c (relayout_decl): New fn.
21701 * tree.h: Declare it.
21702 (DECL_BY_REFERENCE): New macro.
21704 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
21706 * libgcc2.c (__enable_execute_stack): New symbol.
21707 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
21708 and declare __enable_execute_stack.
21709 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
21710 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
21711 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21712 ENABLE_EXECUTE_STACK.
21713 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
21714 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21715 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21716 ENABLE_EXECUTE_STACK.
21717 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21718 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
21719 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21720 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21721 ENABLE_EXECUTE_STACK.
21722 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21723 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21724 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21725 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21726 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
21727 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21728 (sparc64_initialize_trampoline): Likewise.
21729 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
21731 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21733 * langhooks.h (builtin_function): New langhook.
21734 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
21735 (LANG_HOOKS_INITIALIZER): Update.
21736 * tree.h (builtin_function): Remove.
21737 * doc/tm.texi: Update.
21738 * c-tree.h (builtin_function): Declare.
21739 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
21740 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
21741 config/ia64/ia64.c, config/iq2000/iq2000.c,
21742 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
21743 config/stormy16/stormy16.c: All callers of builtin_function
21746 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
21749 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
21750 Remove white space after the backslash.
21752 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
21754 PR rtl-optimization/16294
21755 * resource.c (return_insn_p): New predicate.
21756 (mark_target_live_regs): Use it. Special-case return insns.
21757 (init_resource_info): Use it. Don't scan the epilogue past
21760 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21762 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
21763 destroy dominance information.
21764 * passes.c (rest_of_handle_loop2): Free dominance information.
21765 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
21767 (thread_jumps): Update dominance information and remove unreachable
21769 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
21770 information and remove the unreachable block.
21772 2004-07-17 Graham Stott <graham.stott@btinternet.com>
21774 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
21776 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
21778 * doc/sourcebuild.texi: Remove libf2c entry.
21780 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
21782 * config/i386/i386.md (movv16qi_internal): Fix typo.
21784 2004-07-17 Steven Bosscher <stevenb@suse.de>
21786 * final.c (final_scan_insn): Fix broken commit from previous
21789 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21791 * c-typeck.c (parser_build_binary_op): Condition warnings for
21792 X<=Y<=Z on -Wparentheses instead of -Wextra.
21793 * doc/invoke.texi: Update. Document that most of -Wparentheses is
21794 supported for C only.
21796 2004-07-17 Steven Bosscher <stevenb@suse.de>
21798 * cfgcleanup.c (try_simplify_condjump): Don't remove line
21799 notes to avoid unreachable code warnings.
21800 * toplev.c (backend_init): Don't emit line notes for
21801 unreachable code warnings.
21803 * combine.c (distribute_notes): Don't distribute a
21804 REG_VTABLE_REF note.
21805 * final.c (final_scan_insn): Don't handle it.
21806 * rtl.c (reg_note_name): Remove it.
21807 * rtl.h (enum reg_node): Dito.
21809 * emit-rtl.c (force_line_numbers, restore_line_number_status):
21811 * rtl.h (force_line_numbers, restore_line_number_status):
21814 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
21815 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
21816 (using_eh_for_cleanups): Also moved here.
21818 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
21819 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
21820 to expand_start_case and add_case_node.
21821 * stmt.c (struct nesting): Cleanup unused fields condition_code,
21822 last_unconditional_cleanup, nominal_type, printname, and
21823 line_number_status.
21824 (struct fixup_goto): Remove.
21825 (struct stmt_status): Remove x_goto_fixup_chain field.
21826 (goto_fixup_chain): Remove.
21827 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
21828 pushcase, pushcase_range): Remove.
21829 (expand_start_bindings_and_block): Don't set unused fields in
21831 (expand_start_case, add_case_node): Cleanup unused formal arguments.
21832 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
21833 instead of emit_jump_if_reachable.
21834 (emit_case_nodes): Likewise.
21835 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
21837 (update_eh_label): Work around left-over exception handing regions.
21838 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
21839 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
21840 (pass_cleanup_cfg_post_optimizing): New pass.
21841 (init_tree_optimization_passes): Run the new pass after all
21843 * tree.h (pushcase, pushcase_range): Remove prototypes.
21844 (expand_start_case, add_case_node): Update prototypes.
21846 2004-07-16 Krister Walfridsson <cato@df.lth.se>
21848 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
21850 2004-07-16 Richard Henderson <rth@redhat.com>
21852 * builtins.c (std_expand_builtin_va_arg): Remove.
21853 (expand_builtin_va_arg): Remove.
21854 * expr.h: Don't declare them.
21855 * gimplify.c (mark_decls_volatile_r): Remove.
21856 (copy_if_shared_r): Don't call it.
21857 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
21858 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
21859 * gimple-low.c (lower_stmt): Likewise.
21860 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
21861 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
21862 * tree-ssa-operands.c (get_expr_operands): Likewise.
21863 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
21864 EXPAND_BUILTIN_VA_ARG.
21865 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
21866 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
21867 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
21868 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
21870 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
21872 * tree-ssa-pre.c (insert_aux): Break out if we hit
21875 2004-07-16 Richard Henderson <rth@redhat.com>
21877 * basic-block.h (remove_fake_exit_edges): Declare.
21878 * cfganal.c (remove_fake_predecessors): Rename from
21879 remove_fake_successors; iterate over predecessors.
21880 (remove_fake_exit_edges): New.
21881 * cfgcleanup.c (try_optimize_cfg): Use it.
21882 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
21883 * predict.c (estimate_probability): Likewise.
21884 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
21885 * tree-cfg.c (make_edges): Likewise.
21886 * tree-ssa-pre.c (fini_pre): Likewise.
21887 * profile.c (instrument_edges): Don't remove_fake_edges.
21888 (branch_prob): Do it earlier here.
21890 2004-07-16 Richard Henderson <rth@redhat.com>
21892 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
21893 switchification wrt CONSTRUCTOR. Document the reason.
21895 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
21897 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
21898 that prevented descriptive __mf_check source location strings.
21900 2004-07-16 Richard Henderson <rth@redhat.com>
21902 * tree-def (WITH_SIZE_EXPR): New.
21903 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
21904 * expr.c (expand_expr_real_1): Likewise.
21905 * gimplify.c (maybe_with_size_expr): New.
21906 (gimplify_arg, gimplify_modify_expr): Use it.
21907 (gimplify_modify_expr_to_memcpy): Take size parameter.
21908 (gimplify_modify_expr_to_memset): Likewise.
21909 (gimplify_expr): Handle WITH_SIZE_EXPR.
21910 * tree-alias-common.c (find_func_aliases): Likewise.
21911 * tree-eh.c (tree_could_trap_p): Likewise.
21912 (tree_could_throw_p): Likewise.
21913 * tree-gimple.c (is_gimple_lvalue): Likewise.
21914 (get_call_expr_in): Likewise.
21915 * tree-inline.c (estimate_num_insns_1): Likewise.
21916 (expand_calls_inline): Likewise.
21917 * tree-nested.c (convert_call_expr): Likewise.
21918 * tree-pretty-print.c (dump_generic_node): Likewise.
21919 * tree-sra.c (sra_walk_expr): Likewise.
21920 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
21921 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
21922 * tree-ssa-operands.c (get_expr_operands): Likewise.
21923 * tree-tailcall.c (find_tail_calls): Likewise.
21925 * calls.c (expand_call): Reset old_stack_allocated after
21926 calling emit_stack_restore.
21928 2004-07-16 Richard Henderson <rth@redhat.com>
21930 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
21931 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21932 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21933 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
21934 copy_res_decl_for_inlining.
21936 * tree-inline.c (declare_return_variable): New modify_dest argument.
21937 Use it as the return value, when possible or manditory. Handle
21938 TREE_ADDRESSABLE types.
21939 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
21940 replacement of CALL_EXPR.
21942 2004-07-16 Richard Henderson <rth@redhat.com>
21944 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
21945 * gimple-low.c (expand_var_p): Don't check it.
21946 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
21947 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
21948 * tree-ssa-operands.c (add_stmt_operand): Likewise.
21949 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
21950 (find_referenced_vars): Don't call them.
21951 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
21953 2004-07-16 Richard Henderson <rth@redhat.com>
21955 * function.c (pass_by_reference): True for all variable sized types.
21957 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
21959 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
21960 * tree-pretty-print.c: Include tree-chrec.h.
21961 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
21962 and POLYNOMIAL_CHREC nodes.
21964 2004-07-16 Steve Ellcey <sje@cup.hp.com>
21966 * builtins.c (expand_builtin_stpcpy): Do not create temporary
21969 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
21971 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
21973 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
21975 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
21977 * config/s390/s390.c: Likewise.
21978 * config/s390/s390.h: Likewise.
21980 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21982 * config/mips/mips.md (addsi3, adddi3): Remove special handling
21983 of $sp adds. Remove REGNO checks from mips16 patterns.
21985 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21987 * config/mips/mips.md: Delete outdated comment.
21989 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21991 * config/mips/mips.c (get_float_compare_codes): Delete.
21992 (mips_emit_compare): New function, mostly extracted from
21993 get_float_compare_codes and gen_conditional_branch.
21994 (gen_conditional_branch, gen_conditional_move): Use it.
21996 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
21998 * genautomata.c (add_vect): Speedup by using integers as
21999 bit-vectors for walking through the comb_vect and finding
22002 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22004 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
22005 operand is an uns_arith_operand; use subtraction otherwise.
22006 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
22007 not just arith_operands.
22009 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22011 * config/mips/mips-protos.h (gen_int_relational): Delete.
22012 (mips_emit_scc): Declare.
22013 * config/mips/mips.c (internal_test): Delete.
22014 (sle_operand, sleu_operand): New functions.
22015 (map_test_to_internal_test, gen_int_relational): Delete.
22016 (mips_emit_binary, mips_relational_operand_ok_p)
22017 (mips_emit_int_relational, mips_zero_if_equal)
22018 (mips_emit_scc): New functions.
22019 (gen_conditional_branch): Rework to use mips_emit_int_relational.
22020 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
22022 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
22023 (sltu, sleu): Use mips_emit_scc.
22024 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
22025 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
22026 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
22028 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22030 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
22032 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22034 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
22035 (*sne_[sd]i): Likewise sne_[sd]i_zero.
22036 (*sgt_[sd]i): ...and sgt_[sd]i.
22037 (*slt_[sd]i): ...and slt_[sd]i.
22038 (*sgtu_[sd]i): ...and sgtu_[sd]i.
22039 (*sltu_[sd]i): ...and sltu_[sd]i.
22040 (*sleu_[sd]i): ...and sleu_[sd]i_const.
22041 Name previously unnamed mips16 patterns. Formatting fixes.
22043 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22045 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
22046 (branch_type): Delete.
22047 (gen_conditional_branch, gen_conditional_move)
22048 (mips_gen_conditional_trap): Update after name change. Get the
22049 comparison mode from cmp_operands[0].
22050 * config/mips/mips.h (cmp_type, branch_type): Delete.
22051 (cmp_operands): Renamed from branch_cmp.
22052 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
22053 name change. Don't set branch_type.
22054 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
22055 mode class of cmp_operands[0] rather than branch_type. Update after
22058 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22060 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
22061 of 0...255 to 0 when inside a SET.
22063 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22065 * config/mips/mips.md: Remove mips16 define_peepholes.
22067 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22069 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
22070 (fini_pre): Remove fake edges.
22072 2004-07-15 Richard Henderson <rth@redhat.com>
22074 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
22075 (get_indirect_ref_operands, get_call_expr_operands): ... these.
22077 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22079 * vec.h (VEC_address): New function.
22081 2004-07-14 Jason Merrill <jason@redhat.com>
22083 PR middle-end/15885
22084 * gimplify.c (gimplify_arg): New fn, split out from...
22085 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
22087 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22089 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
22090 generate code which is generated by pushqi1 now
22091 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
22093 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22095 * combine.c (simplify_set): match the mode of the constant 0 with
22096 the tested operand to match the compare behaviour and the
22097 simplify_relational_operation() expectation.
22099 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22101 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
22102 ("bordered"): Same.
22104 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22106 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
22108 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
22110 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22112 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
22113 calls in mips16 code.
22115 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22117 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
22118 the destination of the li as well as for the neg.
22120 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
22123 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
22124 * cgraph.h: Update declaration.
22125 * c-decl.c (build_cdtor): Update call with default priority.
22126 * coverage.c (create_coverage): Ditto.
22127 * tree-mudflap.c (mf_init_fndecl): New tree.
22128 (mudflap_init): Set it.
22129 (mudflap_register_call): Arrange to call __mf_init before the first
22130 __mf_register call.
22131 (mudflap_finish_file): Mark the mudflap static initializer as extra
22132 high priority, to beat all C++ static constructors.
22134 2004-07-15 Jeff Law <law@redhat.com>
22136 * loop.c (check_insn_for_givs): Restore check for code labels that was
22137 accidentally deleted by a recent checkin.
22139 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22141 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
22142 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
22144 2004-07-14 Richard Henderson <rth@redhat.com>
22146 * print-tree.c (print_node): Fix casts last change.
22148 2004-07-15 Paul Brook <paul@codesourcery.com>
22150 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
22151 to TARGET_UNWIND_INFO.
22152 * except.c (output_function_exception_table): Ditto.
22154 * opts.c (decode_options): Ditto.
22155 * passes.c (rest_of_handle_final): Ditto.
22156 * final.c (final_start_function): Ditto.
22157 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
22159 * targhooks.h (default_unwind_emit): Declare.
22160 * targhooks.c (default_unwind_emit): New function.
22161 * target-def.h: Define and use TARGET_UNWIND_EMIT.
22162 * target.h (struct gcc_target): Add unwind_emit.
22163 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
22164 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
22165 Remove IA64_UNWIND_EMIT.
22166 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
22168 2004-07-14 Richard Henderson <rth@redhat.com>
22170 * print-tree.c (print_node): Handle SSA_NAME.
22172 2004-07-14 James E Wilson <wilson@specifixinc.com>
22175 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
22176 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
22178 2004-07-15 Jakub Jelinek <jakub@redhat.com>
22180 * expr.c (expand_assignment): Reenable bitfield += optimizations.
22181 Use alias set 0 for memory, do proper mode calculations and adjust
22182 address for memories.
22184 2004-07-14 Per Bothner <per@bothner.com>
22186 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
22187 structure with extra column field.
22188 * tree.c (expand_location): Also fill in column field.
22189 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
22190 gets confused by the two conditionally-compiled definitions.
22192 2004-07-14 Eric Christopher <echristo@redhat.com>
22194 * calls.c (expand_call): Fix typo in comment.
22196 2004-07-14 Steve Ellcey <sje@cup.hp.com>
22198 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
22199 comparision of TFmode.
22201 2004-07-14 Richard Henderson <rth@redhat.com>
22203 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
22204 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
22205 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
22206 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
22207 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
22208 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
22209 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
22210 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
22211 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
22213 2004-07-14 Mike Stump <mrs@apple.com>
22215 * config/darwin.h (WINT_TYPE): Define to be int to match
22216 system header files.
22218 2004-07-14 Bob Wilson <bob.wilson@acm.org>
22220 * config/xtensa/xtensa.c (function_arg_advance): Check for args
22221 that must be passed in the stack.
22222 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
22223 arguments if the size is not a constant.
22225 2004-07-14 Per Bothner <per@bothner.com>
22227 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
22228 instead of EXPR_LOCUS in a boolean context, which is always true
22229 if --enable-mapped-location.
22230 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
22232 2004-07-14 Richard Henderson <rth@redhat.com>
22234 * dominance.c (struct dom_info): Add fake_exit_edge.
22235 (init_dom_info): Allocate it.
22236 (free_dom_info): Free it.
22237 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
22239 (calc_idoms): Honor fake_exit_edge.
22241 2004-07-13 Jason Merrill <jason@redhat.com>
22243 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
22244 (rhs_test_for): New fn.
22245 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
22246 * tree-gimple.h: Declare them.
22247 * gimplify.c (gimplify_modify_expr): Use the new fns.
22249 2004-07-14 Richard Henderson <rth@redhat.com>
22251 * config/arm/arm-protos.h (arm_va_arg): Remove.
22252 * config/arm/arm.c (arm_va_arg): Remove.
22253 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
22254 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
22256 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22258 * pa.c (fix_range): New function to mark a range(s) of registers as
22260 (override_options): Call fix_range if the -mfixed-range option string
22262 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
22263 * doc/invoke.texi (-mfixed-range): Document new option.
22265 2004-07-14 David Edelsohn <edelsohn@gnu.org>
22267 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
22269 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
22271 2004-07-14 Roger Sayle <roger@eyesopen.com>
22273 * expmed.c (expand_sdiv_pow2): New function to expand signed division
22274 by a positive power of two, split out from expand_divmod. Provide
22275 an alternate implementation when shifts are expensive. Lower the
22276 threshold for using a branchless implementation to BRANCH_COST >= 2.
22277 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
22279 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22281 * tree-dfa.c (make_rename_temp): *Really* work just
22282 like create_tmp_var if called while outside SSA form.
22284 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
22286 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
22287 for division by zero.
22288 ("umodsi3"): Likewise.
22290 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22292 * config/mips/mips.c (mips_output_move): When generating mips16 code,
22293 force loads of negative constants to be split.
22294 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
22295 Generalize SImode li/neg splitter to cope with other modes.
22297 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22299 * expmed.c: Remove more references to QUEUED in the comments.
22300 * expr.c: Likewise.
22302 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22305 2004-07-13 Richard Henderson <rth@redhat.com>
22306 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
22309 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22311 * tree-dfa.c (make_rename_temp): Work just like
22312 create_tmp_var if called while outside SSA form.
22314 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22316 * expr.c (enqueue_insn, finish_expr_for_function,
22317 protect_from_queue, queued_subexp_p, mark_queue,
22318 emit_insns_enqueued_after_mark, emit_queue,
22319 expand_increment): Remove.
22320 (store_constructor): Expand increment as an assignment.
22321 (expand_expr_real_1 <case PREINCREMENT_EXPR,
22322 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
22323 case POSTDECREMENT_EXPR>): Abort.
22324 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
22325 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
22326 protect_from_queue, emit_queue, queued_subexp_p): Remove.
22327 * function.h (pending_chain, x_pending_chain): Remove.
22328 * rtl.def (QUEUED): Remove.
22330 * emit-rtl.c (copy_insn_1, copy_most_rtx,
22331 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
22332 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
22333 encode_units_mask): Likewise.
22334 * local-alloc.c (equiv_init_varies_p): Likewise.
22335 * rtl.c (copy_rtx): Likewise.
22336 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22337 * simplify-rtx.c (simplify_gen_subreg): Likewise.
22338 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
22340 * builtins.c (expand_builtin, expand_builtin_apply,
22341 expand_builtin_mathfn, expand_builtin_mathfn_2,
22342 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
22343 Remove calls to emit_queue and protect_from_queue.
22344 * calls.c (expand_call, precompute_arguments,
22345 precompute_register_parameters, rtx_for_function_call,
22346 store_one_arg): Likewise.
22347 * dojump.c (do_compare_and_jump, do_jump): Likewise.
22348 * explow.c (memory_address): Likewise.
22349 * expmed.c (clear_by_pieces_1, clear_storage,
22350 clear_storage_via_libcall, emit_group_load,
22351 emit_group_store, emit_store_flag,
22352 expand_expr_real_1, store_by_pieces,
22353 store_constructor, store_expr, try_casesi,
22354 try_tablejump): Likewise.
22355 * function.c (expand_pending_sizes): Likewise.
22356 * optabs.c (emit_cmp_and_jump_insns,
22357 emit_conditional_add, emit_conditional_move,
22358 expand_fix, expand_float, prepare_cmp_insn): Likewise.
22359 * stmt.c (emit_case_bit_tests,
22360 expand_asm_expr, expand_computed_goto,
22361 expand_decl_init, expand_end_case_type,
22362 expand_end_stmt_expr, expand_expr_stmt_value,
22363 expand_return, expand_start_case,
22364 optimize_tail_recursion): Likewise.
22365 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22366 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
22368 2004-07-14 Ben Elliston <bje@au.ibm.com>
22370 * vec.h: Comment fix.
22372 2004-07-13 Richard Henderson <rth@redhat.com>
22374 * target.h (struct gcc_target): Add calls.pass_by_reference.
22375 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
22376 * function.c (pass_by_reference): Use the hook.
22377 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
22378 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
22379 (hook_pass_by_reference_must_pass_in_stack): New.
22380 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
22381 (alpha_pass_by_reference): New.
22382 (TARGET_PASS_BY_REFERENCE): New.
22383 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22384 * config/arc/arc.c (arc_pass_by_reference): New.
22385 (TARGET_PASS_BY_REFERENCE): New.
22386 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22387 (FUNCTION_ARG_CALLEE_COPIES): True.
22388 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
22389 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
22390 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
22391 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22392 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22393 * config/cris/cris.c (cris_pass_by_reference): New.
22394 (TARGET_PASS_BY_REFERENCE): New.
22395 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
22396 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
22397 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22398 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
22399 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22400 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
22401 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
22402 (frv_function_arg_pass_by_reference): Remove.
22403 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22404 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
22405 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
22406 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
22407 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22408 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
22409 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
22410 (ia64_pass_by_reference): Rename from
22411 ia64_function_arg_pass_by_reference.
22412 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22413 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22414 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
22415 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
22416 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
22417 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22418 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22419 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
22420 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
22421 (m32r_pass_by_reference): Adjust prototype. Make static.
22422 Handle mode sizes correctly.
22423 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22424 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
22425 (m68hc11_function_arg_pass_by_reference): Remove.
22426 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22427 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22428 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
22429 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22430 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
22431 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
22432 (mips_va_arg): Use pass_by_reference.
22433 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
22434 Handle mode sizes correctly.
22435 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22436 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22437 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
22438 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
22439 (mmix_pass_by_reference): Rename from
22440 mmix_function_arg_pass_by_reference.
22441 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22442 (FUNCTION_ARG_CALLEE_COPIES): True.
22443 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
22444 (mn10300_pass_by_reference): New.
22445 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22446 (FUNCTION_ARG_CALLEE_COPIES): True.
22447 * config/pa/pa.c (pa_pass_by_reference): New.
22448 (TARGET_PASS_BY_REFERENCE): New.
22449 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22450 (FUNCTION_ARG_CALLEE_COPIES): True.
22451 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
22452 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
22453 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
22454 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22455 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
22456 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
22457 (s390_pass_by_reference): Rename from
22458 s390_function_arg_pass_by_reference.
22459 (s390_function_arg_advance): Don't query pass-by-ref.
22460 (s390_function_arg): Likewise.
22461 (s390_gimplify_va_arg): Use pass_by_reference.
22462 (s390_call_saved_register_used): Likewise.
22463 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22464 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
22465 (shcompact_byref, sh_pass_by_reference): New.
22466 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22467 (SHCOMPACT_BYREF): Remove.
22468 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
22469 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
22470 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
22471 (sparc_gimplify_va_arg): Use pass_by_reference.
22472 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22473 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22474 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
22475 (v850_pass_by_reference): New.
22476 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22477 (FUNCTION_ARG_CALLEE_COPIES): True.
22478 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
22479 FUNCTION_ARG_PASS_BY_REFERENCE docs.
22481 2004-07-14 Richard Henderson <rth@redhat.com>
22482 Richard Sandiford <rsandifo@redhat.com>
22484 * config/mips/mips-protos.h (mips_va_arg): Delete.
22485 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
22486 * config/mips/mips.c: Include tree-gimple.h.
22487 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22488 (mips_arg_info): Remove special handling of must_pass_in_stck args.
22489 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
22490 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
22492 2004-07-13 Bob Wilson <bob.wilson@acm.org>
22494 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
22495 arguments for COND_EXPR in big-endian adjustment code.
22497 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22499 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
22500 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
22501 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
22502 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
22504 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22506 PR tree-optimization/16443
22507 * tree-ssa-alias.c: Add more description for
22508 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
22509 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
22510 clobbering of call-clobbered and addressable variables. If
22511 there are any before aliases have been computed, add them.
22513 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22515 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
22518 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
22520 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
22521 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
22524 2004-07-13 Per Bothner <per@bothner.com>
22526 * collect2.c (main): Handle --no-demangle and --demangle flags.
22528 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
22530 * Makefile.in (OBJS-common): Add tree-data-ref.o.
22531 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
22532 (tree-data-ref.o): New rule.
22533 * lambda.h: New file.
22534 * tree-data-ref.c: New file.
22535 * tree-data-ref.h: New file.
22536 * tree.c (int_cst_value, tree_fold_gcd): New functions.
22537 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
22539 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22542 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
22543 * config/sparc/sparc.c (output_ubranch): New function.
22544 * config/sparc/sparc.md (jump pattern): Use it.
22546 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22549 * config/sparc/sparc.c (output_cbranch): Properly guard
22550 the code handling far branches with TARGET_V9.
22551 * config/sparc/sparc.md (length attribute): Document the
22552 side-effect of having a length greater or equal to 3.
22554 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22555 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
22558 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
22559 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
22561 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22562 Martin Sebor <sebor@roguewave.com>
22565 * doc/invoke.texi (SPARC options): Document -threads
22566 and -pthreads on Solaris.
22568 2004-07-13 Richard Henderson <rth@redhat.com>
22570 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
22572 (ind_gimplify_va_arg_expr): Remove.
22573 * tree.h (ind_gimplify_va_arg_expr): Remove.
22574 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
22575 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
22578 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
22579 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
22580 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
22581 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
22582 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
22584 2004-07-13 Richard Henderson <rth@redhat.com>
22586 * function.c (pass_by_reference): New.
22587 (assign_parm_find_data_types): Use it.
22588 * calls.c (initialize_argument_information): Likewise.
22589 (emit_library_call_value_1): Likewise.
22590 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22591 * function.h (pass_by_reference): Declare.
22593 2004-07-13 Richard Henderson <rth@redhat.com>
22595 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
22596 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
22597 * expr.h (MUST_PASS_IN_STACK): Remove.
22598 * system.h (MUST_PASS_IN_STACK): Poison.
22599 * tree.h (must_pass_in_stack_var_size): Declare.
22600 (must_pass_in_stack_var_size_or_pad): Declare.
22601 * calls.c (must_pass_in_stack_var_size): New.
22602 (must_pass_in_stack_var_size_or_pad): Rename from
22603 default_must_pass_in_stack.
22604 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
22605 (TARGET_MUST_PASS_IN_STACK): New.
22606 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
22607 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
22608 (TARGET_MUST_PASS_IN_STACK): New.
22609 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
22610 * config/frv/frv.c (frv_must_pass_in_stack): New.
22611 (TARGET_MUST_PASS_IN_STACK): New.
22612 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
22613 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
22614 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
22615 (ix86_must_pass_in_stack): Make static.
22616 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
22617 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
22618 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
22619 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
22620 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
22621 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
22622 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
22623 (mcore_must_pass_on_stack): Remove.
22624 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
22625 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
22626 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
22627 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
22628 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
22629 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
22630 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
22631 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
22632 (TARGET_MUST_PASS_IN_STACK): New.
22633 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
22634 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
22635 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
22636 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
22637 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
22638 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
22639 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
22640 MUST_PASS_IN_STACK.
22642 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
22643 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
22644 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
22645 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
22646 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
22647 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
22648 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
22649 config/xtensa/xtensa.c: Use target hook.
22651 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
22653 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
22654 * configure: Rebuilt.
22656 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
22658 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
22659 * config/mips/mips.h (mips_reg_names): Don't declare.
22660 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
22661 (TARGET_NAME_REGS): Delete.
22662 (TARGET_SWITCHES): Remove -mrnames.
22663 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
22664 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
22666 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
22667 (override_options): Remove handling of TARGET_NAME_REGS.
22669 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
22671 * config/mips/mips.h (TARGET_*): Boolify.
22673 2004-07-12 Nick Clifton <nickc@redhat.com>
22675 * config.gcc: Add sh-*-symbianelf target.
22676 * config/sh/sh.c: Add new target macros:
22677 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
22678 TARGET_CXX_IMPORT_EXPORT_CLASS.
22679 (sh_file_start): Create a definition of the .directive section.
22680 (sh_attribute): Add dllimport and dllexport attributes.
22681 * config/sh/symbian-pre.h: New file.
22682 * config/sh/symbian-post.h: New file.
22683 * config/sh/symbian.c: New file. Contains Symbian specific
22685 * config/sh/sh-protos.h: Add prototypes for new functions
22686 provided by symbian.c.
22687 * config/sh/t-symbian: New file.
22688 * doc/extend.texi: Document support for dllimport and dllexport
22689 attributes by the sh-symbianelf target.
22691 2004-07-12 James E Wilson <wilson@specifixinc.com>
22693 * Makefile.in (AR): Use @AR@ not ar.
22695 (AR_FOR_TARGET): Use $(AR) not ar for native.
22696 (NM_FOR_TARGET): Use $(NM) not nm for native.
22697 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
22698 * configure: Regenerate.
22700 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
22702 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
22704 (ashldi3_sp64): Likewise.
22706 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22709 * pa.c (function_arg): Update comment.
22710 * pa.h (BLOCK_REG_PADDING): Define.
22712 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22714 PR tree-optimization/16461
22715 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
22716 arguments of phi nodes.
22718 2004-07-12 Devang Patel <dpatel@apple.com>
22720 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
22722 2004-07-12 Steve Ellcey <sje@cup.hp.com>
22724 * function.c (expand_function_start): Ensure r_save is in Pmode.
22725 * calls.c (prepare_call_address): Ensure static_chain_value is
22727 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
22728 r_save_area are in Pmode.
22729 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
22730 fnaddr, and static_chain are in Pmode.
22732 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22735 * config/ia64/ia64.c (bundling): Don't count ignored insns.
22737 2004-07-12 Richard Henderson <rth@redhat.com>
22739 * target.h (struct gcc_target): Move gimplify_va_arg_expr
22740 next to build_builtin_va_list.
22741 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
22742 * builtins.c (gimplify_va_arg_expr): Likewise.
22743 * gimplify.c (copy_if_shared_r): Likewise.
22745 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
22747 * passes.c (rest_of_decl_compilation): Don't defer call of
22748 assemble_variable if its DECL_RTL is already set.
22750 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
22752 * cfgloop.h (struct loop): Add nb_iterations field.
22753 (current_loops): Declare.
22754 * tree-chrec.c (chrec_not_analyzed_yet,
22755 chrec_dont_know, chrec_known, count_ev_in_wider_type,
22756 chrec_contains_symbols_defined_in_loop): Remove the temporary
22758 * tree-flow-inline.h (loop_containing_stmt): New function.
22759 * tree-scalar-evolution.c: Add implementation.
22760 * tree-scalar-evolution.h: Add declarations.
22762 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22764 PR rtl-optimization/15921
22765 * Makefile.in (global.o): Add recog.h.
22767 * global.c (recog.h): Add the include-clause.
22768 (bb_info): New member earlyclobber.
22769 (allocate_bb_info, free_bb_info): Initialize/finish the new
22771 (earlyclobber_regclass, earlyclobber_regclass_length): The new
22773 (check_earlyclobber, regclass_intersect,
22774 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
22776 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
22777 (make_accurate_live_analysis): Modify pavin.
22779 2004-07-12 Diego Novillo <dnovillo@redhat.com>
22781 * tree-cfg.c (find_taken_edge): Statically compute the truth
22782 value of a predicate comparing an SSA_NAME to itself.
22784 2004-07-12 Roger Sayle <roger@eyesopen.com>
22786 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
22787 rs6000 doesn't have shift-and-add or shift-and-sub instructions
22788 by returning the cost of a multiplication plus an addition.
22790 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
22792 PR tree-optimization/14107
22793 * gimplify.c (gimplify_return_expr): Accept a
22794 RETURN_EXPR with an error argument.
22795 * tree-optimize.c (init_tree_optimization_passes):
22796 Run pass_warn_function_return at -O0.
22798 2004-07-12 Roger Sayle <roger@eyesopen.com>
22800 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
22803 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
22805 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
22806 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22807 * config/mips/3000.md: Add copyright notice. Remove automota and
22808 function units; use generic ones instead. Only define reservations
22809 for things that are different from generic.md. Extend each clause
22811 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
22812 * config/mips/mips.md: Include them. Remove define_function_units.
22813 (alu, imuldiv): New automata and units.
22815 2004-07-12 Ben Elliston <bje@au.ibm.com>
22817 * doc/invoke.texi (Optimize Options): Document -frename-registers
22818 not being enabled by default at -O3.
22820 2004-07-11 Roger Sayle <roger@eyesopen.com>
22822 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
22823 floating point additions, to keep real immediate constant positive.
22824 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
22825 into X + C, and leave positive real constants as X - C.
22827 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22829 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
22831 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22833 PR tree-optimization/15654
22834 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
22836 2004-07-11 Roger Sayle <roger@eyesopen.com>
22838 * builtins.c (fold_builtin_fputs): Don't bother converting the
22839 return type to integer_type_node, as we've already checked that
22840 the result will be ignored.
22842 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
22843 that signed addition, subtraction, multiplication, division,
22844 remainder, negation and absolute value may potentially trap.
22846 * fold-const.c (fold_ignored_result): New function to strip
22847 non-side-effecting tree nodes from an expression whose result
22849 (fold_convert): Call fold_ignored_result when casting a value
22851 (omit_one_operand): Call fold_ignored_result on the "omitted"
22852 operand when building a COMPOUND_EXPR.
22853 (pedantic_omit_one_operand): Likewise.
22854 * tree.h (fold_ignored_result): Prototype here.
22855 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
22856 when we're going to ignore the result.
22858 2004-07-11 Richard Henderson <rth@redhat.com>
22861 * tree-ssa-ccp.c (fold_stmt_r): Split out...
22862 * tree.c (fields_compatible_p, find_compatible_field): ... new.
22863 * tree.h (fields_compatible_p, find_compatible_field): Declare.
22864 * tree-sra.c (sra_hash_tree): Hash fields by offset.
22865 (sra_elt_eq): Use fields_compatible_p.
22866 (generate_one_element_ref): Use find_compatible_field.
22868 2004-07-11 Richard Henderson <rth@redhat.com>
22871 * tree-sra.c (generate_one_element_init): New.
22872 (generate_element_init): Use it.
22873 (scalarize_init): Push/pop gimplify context around it.
22874 (find_new_referenced_vars_1, find_new_referenced_vars): New.
22875 * gimplify.c (gimplify_expr): Allow SSA_NAME.
22877 2004-07-11 Roger Sayle <roger@eyesopen.com>
22879 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
22880 combine.c's combine_insn_cost.
22881 * rtl.h (insn_rtx_cost): Prototype here.
22882 * combine.c (combine_insn_cost): Delete function.
22883 (combine_validate_cost): Update callers of combine_insn_cost to
22884 call insn_rtx_cost instead.
22885 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
22886 requesting the rtx_cost of call and/or jump instructions.
22888 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
22889 rtx_cost directly. Don't request/use the cost of call or jump
22890 instructions. Return -1 if the cost of any instruction can't be
22891 determined (or the BB contains a function call).
22892 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
22893 -1 (i.e. can't determine the cost of any instruction or the basic
22894 block contains a subroutine call).
22895 (find_if_case_2): Likewise.
22897 2004-07-11 Roger Sayle <roger@eyesopen.com>
22899 * rs6000.c (struct processor_costs): Change semantics of fields to
22900 include the COST_N_INSNS scaling, and update all initializers.
22901 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
22902 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
22903 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
22904 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
22906 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22908 * LANGUAGES: Remove obsolete information.
22910 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
22912 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
22913 SIGBUS signal frames, the PSW address points *to* the faulting
22914 instruction, not after it.
22916 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
22918 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
22919 added to TLS symbol addresses.
22921 2004-07-11 Richard Henderson <rth@redhat.com>
22923 * expmed.c (init_expmed): Use stack-local structures for
22924 temporary rtl. Don't recognize shifts.
22926 2004-07-11 Richard Henderson <rth@redhat.com>
22928 * expr.c (store_expr): Don't fiddle subreg promotion for types
22929 with precision smaller than the mode.
22931 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22933 * tree.h (all_types_permanent): Remove.
22935 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22937 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
22938 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
22939 * langhooks.c (lhd_clear_binding_stack): Remove.
22940 * langhooks-def.h (lhd_clear_binding_stack,
22941 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22942 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
22943 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
22944 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22945 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
22946 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
22947 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
22948 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22949 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
22950 * tree.h (poplevel): Don't declare.
22951 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22952 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22953 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
22954 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
22957 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22959 PR tree-optimization/16437
22960 * c-common.c (shorten_compare): Don't mark result of conversion to
22961 narrower signed type as overflowing.
22962 * fold-const.c (decode_field_reference): Determine whether
22963 signedness comes from outer type using precision rather than size.
22965 2004-07-11 Phil Edwards <phil@codesourcery.com>
22967 * configure.ac: Alphabetize --enable-checking list, add
22968 missing valgrind entry.
22969 * configure: Regenerate.
22971 2004-07-11 Phil Edwards <phil@codesourcery.com>
22973 * doc/install.texi (Testing): Fix syntax in "make check" example.
22975 2004-07-10 James E Wilson <wilson@specifixinc.com>
22977 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
22979 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22981 PR rtl-optimization/16001
22982 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
22985 2004-07-10 Geoffrey Keating <geoffk@apple.com>
22987 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
22989 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
22990 James Morrison <phython@gcc.gnu.org>
22992 * doc/contrib.texi (Contributors): Add gfortran contributors and
22993 fix a couple of typos.
22995 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22997 PR rtl-optimization/15387
22998 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
22999 to incoming args space correctly.
23001 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23003 * pa.c (output_indirect_call): Only use %r2 as the link register in
23004 indirect calls with the long PA 2.0 pc-relative branch.
23006 2004-07-10 Daniel Jacobowitz <dan@debian.org>
23008 * config/i386/i386.c (override_options): Pick a 64-bit CPU
23009 for the default tuning if TARGET_64BIT.
23011 2004-07-10 Richard Henderson <rth@redhat.com>
23013 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
23014 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
23016 2004-07-10 Jakub Jelinek <jakub@redhat.com>
23018 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
23019 * expmed.c (store_bit_field, extract_bit_field): Remove last
23021 * builtins.c (expand_builtin_signbit): Adjust callers.
23022 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
23023 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
23024 * ifcvt.c (noce_emit_move_insn): Likewise.
23025 * stmt.c (expand_return): Likewise.
23026 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
23027 store_field, expand_expr_real_1): Likewise.
23029 2004-07-10 Richard Henderson <rth@redhat.com>
23031 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
23033 2004-07-09 Mike Stump <mrs@apple.com>
23035 * config/darwin.c (no_dead_strip): Add.
23036 (HAVE_DEAD_STRIP): Add.
23037 (darwin_emit_unwind_label): Ensure that we don't dead code strip
23040 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23042 * tree-ssa-loop-im.c: New file.
23043 * Makefile.in (tree-ssa-loop-im.o): Add.
23044 * cfgloop.c (superloop_at_depth): New function.
23045 * cfgloop.h (superloop_at_depth): Declare.
23046 * common.opt (ftree-lim): New flag.
23047 * expr.c (array_ref_up_bound): New function.
23048 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
23049 * timevar.def (TV_LIM): New timevar.
23050 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
23051 computing immediate uses of a phi node.
23052 * tree-flow.h (struct tree_ann_common_d): Add aux field.
23053 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
23054 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
23055 * tree-pass.h (pass_lim): Declare.
23056 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
23058 (pass_lim): New pass structure.
23059 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
23060 * tree.c (in_array_bounds_p): New function.
23061 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
23062 (in_array_bounds_p, array_ref_up_bound): Declare.
23063 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
23064 * doc/passes.texi (tree-ssa-loop-im.c): Document.
23066 2004-07-09 Richard Henderson <rth@redhat.com>
23068 * builtins.c (expand_builtin_stpcpy): Don't modify len.
23070 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
23073 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
23075 * flags.h: Delete redundant prototypes that are being generated
23076 in options.h from common.opt.
23077 * common.opt: Add in the expository comments formerly in flags.h.
23079 2004-07-09 Jan Beulich <jbeulich@novell.com>
23081 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
23082 available for use only when TARGET_MMX/_SSE is set, and check for
23083 variable argument function if any register count is non-zero.
23084 (function_arg): Correctly suppress repeated warnings for passing SSE
23085 vectors are arguments without SSE enabled.
23086 (ix86_function_arg_boundary): Without SSE enabled, the use of what
23087 would be SSE register modes does no longer influence the alignment.
23089 2004-07-09 Richard Henderson <rth@redhat.com>
23091 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
23092 Always align upward to arg boundary. Use size_in_bytes/round_up.
23093 Maintain type-correctness of constants.
23094 * stor-layout.c (round_up, round_down): Special-case powers of 2.
23096 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23098 * config/sparc/sparc.c (*_costs): Scale instruction costs
23100 (sparc_rtx_costs): Adjust as appropriate.
23102 2004-07-09 Jan Beulich <jbeulich@novell.com>
23104 * config/i386/mm3dnow.h: New.
23105 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
23107 2004-07-09 Richard Henderson <rth@redhat.com>
23109 * simplify-rtx.c (simplify_const_relational_operation): Only
23110 look at bounds of scalar integers.
23112 2004-07-09 Jan Beulich <jbeulich@novell.com>
23114 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
23116 2004-07-09 Andrew Pinski <apinski@apple.com>
23118 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
23120 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
23121 UOBJC_METACLASS_decl.
23123 2004-07-09 James E Wilson <wilson@specifixinc.com>
23126 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
23127 do return a parallel if hfa_mode == XFmode and mode == TImode.
23129 2004-07-09 Jan Beulich <jbeulich@novell.com>
23131 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
23132 permissible for unary plus.
23134 2004-07-09 Jan Beulich <jbeulich@novell.com>
23136 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
23137 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
23138 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
23139 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
23140 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
23141 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
23142 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
23143 (BUILTIN_xxxIMAX): New.
23144 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
23145 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
23146 BUILT_IN_PARITYIMAX.
23148 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23150 * config/sparc/sparc.h (processor_costs): Define.
23151 (sparc_costs): Declare.
23152 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
23153 hypersparc_costs, sparclet_costs, ultrasparc_costs,
23154 ultrasparc3_costs): New.
23155 (sparc_override_options): Set sparc_costs as appropriate.
23156 (sparc_rtx_costs): Use sparc_costs instead of messy
23159 2004-07-09 Steven Bosscher <stevenb@suse.de>
23161 * doc/md.texi (Processor pipeline description): Mention that
23162 the old pipeline description is deprecated.
23164 * config/rs6000/7450.md (automaton ppc7450): Split up, move
23165 mciu_7450 function unit to...
23166 (automaton ppc7450mciu): ...new automaton.
23168 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
23169 (schedule_block): Don't consider inserting bubbles.
23170 (sched_init): Don't initialize DFA bubbles.
23171 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
23172 TARGET_SCHED_DFA_BUBBLE): Remove.
23173 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
23174 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
23175 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
23177 * stmt.c (conditional_context): Remove prototype.
23178 * tree.h (conditional_context): Remove.
23179 * tree-cfg.c (pre_insert_on_edge): Remove.
23181 * c-common.h (c_expand_asm_operands): Remove prototype.
23182 * c-typeck.c (c_expand_asm_operands): Remove.
23184 2004-07-09 Jan Beulich <jbeulich@novell.com>
23186 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
23187 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
23188 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
23189 and V8QI are class SSE. All sufficiently small remaining vector modes
23190 must be passed in one or two integer registers.
23191 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
23192 returned in memory.
23193 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
23194 __builtin_ia32_pmuludq128 have non-uniform argument and return types
23195 and must thus be handled explicitly.
23196 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
23198 (movv8qi_internal, movv4hi_internal, movv2si_internal,
23199 movv2sf_internal): Permit moving between MMX and XMM registers (since
23200 MMX areguments and return values are passed in XMM registers).
23201 (sse2_umulsidi3): Correct type and mode.
23203 2004-07-09 Richard Henderson <rth@redhat.com>
23205 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
23207 2004-07-09 Eric Christopher <echristo@redhat.com>
23209 * config/rs6000/40x.md: Split into two automatons.
23211 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23212 Andrew Pinski <apinski@apple.com>
23214 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
23215 on when we have more than one input file.
23216 (c_common_parse_file): Restore loop over all input files.
23217 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
23219 * c-decl.c (set_type_context): New function.
23220 (pop_scope): Use it to set context of types. When we
23221 encounter a TYPE_DECL, set the context of the attached type too.
23222 (pop_file_scope): Don't call cpp_undef_all here.
23223 (diagnose_mismatched_decls): Do not complain about a second
23224 definition of an 'extern inline' function if it's not in the
23225 same translation unit. Do not complain about inline
23226 declaration after use if the use was in a different
23228 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
23229 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
23230 the external scope.
23231 (pushdecl_top_level): Likewise.
23232 (grokdeclarator): Clarify what is going on with setting
23233 DECL_EXTERNAL on function types, a little.
23234 (c_write_global_declarations): Don't do anything if
23235 -fsyntax-only or errors have been encountered.
23237 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23239 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
23241 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23244 * pa.c (output_indirect_call): Use %r2 as the link register when
23245 calling $$dyncall with a pc-relative branch.
23247 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
23249 * doc/install.texi (Binaries): Mention OpenPKG.
23251 2004-07-09 Diego Novillo <dnovillo@redhat.com>
23253 Fix PR tree-optimization/15555
23254 * tree-dfa.c (dump_variable): If the variable is a pointer
23255 SSA_NAME, also dump its points-to information.
23256 * tree-flow.h (struct ptr_info_def): Add field
23258 (dump_points_to_info_for): Declare.
23259 (debug_points_to_info_for): Declare.
23260 * tree-optimize.c (init_tree_optimization_passes): Add a
23261 second alias analysis pass after DOM2.
23262 Move pass_del_pta to a later spot.
23263 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
23264 create a name tags when we find a dereferenced pointer. Just
23265 mark the pointer dereferenced.
23266 (collect_points_to_info_for): Move code to clear points-to
23267 information to create_name_tags.
23268 (create_name_tags): New function.
23269 (compute_flow_sensitive_aliasing): Call it.
23270 (setup_pointers_and_addressables): Mark type tags for renaming
23271 here instead of ...
23272 (create_memory_tag): ... here.
23273 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
23274 (dump_points_to_info_for): Declare extern.
23275 (debug_points_to_info_for): New function.
23277 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
23279 * config/arc/arc.md: Switch to DFA-based scheduler description.
23280 * config/arc/arc.c: Switch to DFA-based scheduler description.
23282 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23284 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
23287 2004-07-09 Richard Henderson <rth@redhat.com>
23289 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
23290 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23291 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
23292 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23294 * config/v850/v850-protos.h (v850_va_arg): Remove.
23295 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23296 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
23297 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
23298 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
23299 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
23301 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23304 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
23305 and DImode to use +/-4k offset.
23307 2004-07-09 Richard Henderson <rth@redhat.com>
23309 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
23311 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23312 (xstormy16_gimplify_va_arg_expr): Rewrite from
23313 xstormy16_expand_builtin_va_arg.
23314 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
23316 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
23317 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
23319 * config/sh/sh-protos.h (sh_va_arg): Remove.
23320 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23321 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
23322 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
23324 * config/pa/pa-protos.h (hppa_va_arg): Remove.
23325 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23326 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
23327 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23329 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
23330 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23331 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
23332 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
23334 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23336 * config/sparc/sparc.md (return): Rewrite length formula.
23337 * config/sparc/sparc.c (output_return): Pass 1 as 5th
23338 argument to final_scan_insn when in a delay slot.
23339 (output_sibcall): Likewise.
23341 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23343 * arm.c (arm_cpp_interwork): New variable.
23344 (arm_override_options): Set it if TARGET_INTERWORK was on the command
23346 * arm.h (arm_cpp_interwork): Declare it.
23347 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
23348 __THUMB_INTERWORK__ in the preprocessor.
23350 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
23352 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
23354 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23357 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
23358 Override default settings to account for -m32 and -m64.
23360 2004-07-08 Randolph Chung <tausq@debian.org>
23362 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
23364 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
23366 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
23367 before comparing it as such.
23369 2004-07-08 Richard Henderson <rth@redhat.com>
23371 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
23372 temporary. Use bit arithmetic to align.
23374 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
23376 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
23377 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
23378 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
23379 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
23380 add_labels_and_missing_jumps, find_jump_block,
23381 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
23383 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
23384 link_btr_uses, move_btr_def): Likewise.
23385 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
23386 expand_builtin_expect_jump): Likewise.
23387 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
23388 * calls.c (expand_call, emit_library_call_value_1): Likewise.
23389 * cfganal.c (forwarder_block_p): Likewise.
23390 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
23391 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
23392 find_bb_boundaries): Likewise.
23393 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
23394 merge_blocks_move_predecessor_nojumps,
23395 merge_blocks_move_successor_nojumps, insns_match_p,
23396 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
23397 try_optimize_cfg): Likewise.
23398 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
23399 * cfglayout.c (skip_insns_after_block, label_for_bb,
23400 record_effective_endpoints, insn_locators_initialize,
23401 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
23402 * cfgmainloop.c (create_loop_notes): Likewise.
23403 * cfgrtl.c (delete_insn, delete_insn_chain,
23404 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
23405 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
23406 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
23407 redirect_branch_edge, force_nonfallthru_and_redirect,
23408 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
23409 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
23410 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
23411 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
23412 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
23413 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
23414 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
23415 * combine.c (combine_instructions, can_combine_p, try_combine,
23416 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
23417 distribute_notes, distribute_links, insn_cuid): Likewise.
23418 * cse.c (fold_rtx, cse_insn, cse_around_loop,
23419 invalidate_skipped_block, cse_set_around_loop,
23420 cse_end_of_basic_block, cse_main, cse_basic_block,
23421 cse_condition_code_reg): Likewise.
23422 * cselib.c (cselib_process_insn): Likewise.
23423 * ddg.c (create_ddg): Likewise.
23424 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
23426 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
23427 gen_label_die, dwarf2out_var_location): Likewise.
23428 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
23429 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
23430 last_call_insn, active_insn_p, next_label, prev_label,
23431 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
23432 add_insn_before, remove_insn, add_function_usage_to,
23433 reorder_insns, find_line_note, remove_unnecessary_notes,
23434 emit_insn_after_1, classify_insn): Likewise.
23435 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
23436 connect_post_landing_pads, sjlj_mark_call_sites,
23437 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
23438 can_throw_internal, can_throw_external, set_nothrow_function_flags,
23439 convert_to_eh_region_ranges): Likewise.
23440 * explow.c (optimize_save_area_alloca): Likewise.
23441 * expr.c (expand_expr_real): Likewise.
23442 * final.c (insn_current_reference_address, compute_alignments,
23443 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
23444 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
23445 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
23446 propagate_block_delete_insn, propagate_one_insn,
23447 init_propagate_block_info, propagate_block, libcall_dead_p,
23448 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
23450 * function.c (instantiate_virtual_regs, reorder_blocks_1,
23451 expand_function_start, expand_function_end, contains,
23452 thread_prologue_and_epilogue_insns,
23453 reposition_prologue_and_epilogue_notes): Likewise.
23454 * gcse.c (constprop_register, bypass_conditional_jumps,
23455 insert_insn_end_bb, gcse_after_reload): Likewise.
23456 * genemit.c (gen_expand, gen_split): Likewise.
23457 * genpeep.c (gen_peephole, main): Likewise.
23458 * global.c (build_insn_chain): Likewise.
23459 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
23460 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
23461 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
23462 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
23463 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
23464 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
23465 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
23466 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
23467 dead_or_predicable): Likewise.
23468 * integrate.c (try_constants): Likewise.
23469 * jump.c (rebuild_jump_labels, cleanup_barriers,
23470 purge_line_number_notes, init_label_info, mark_all_labels,
23471 squeeze_notes, get_label_before, get_label_after,
23472 reversed_comparison_code_parts, simplejump_p, pc_set,
23473 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
23474 delete_barrier, delete_prior_computation, delete_computation,
23475 delete_related_insns, delete_for_peephole, redirect_jump):
23477 * lcm.c (optimize_mode_switching): Likewise.
23478 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
23480 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
23481 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
23482 * loop-iv.c (simplify_using_assignment): Likewise.
23483 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
23484 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
23485 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
23486 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
23487 check_insn_for_givs, check_final_value, update_giv_derive,
23488 basic_induction_var, product_cheap_p, check_dbra_loop,
23489 loop_insn_first_p, last_use_this_basic_block,
23490 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
23491 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
23492 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
23493 sms_schedule_by_order): Likewise.
23494 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
23495 * postreload.c (reload_cse_simplify_operands, reload_combine,
23496 reload_cse_move2add): Likewise.
23497 * predict.c (can_predict_insn_p, estimate_probability,
23498 expected_value_to_br_prob, process_note_predictions): Likewise.
23499 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
23500 * profile.c (branch_prob): Likewise.
23501 * ra-build.c (live_out_1, livethrough_conflicts_bb,
23502 detect_webs_set_in_cond_jump): Likewise.
23503 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
23504 ra_print_rtl_with_bb): Likewise.
23505 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
23506 * recog.c (next_insn_tests_no_inequality, find_single_use,
23507 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
23508 * reg-stack.c (next_flags_user, record_label_references,
23509 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
23510 compensate_edge, convert_regs_1): Likewise.
23511 * regclass.c (scan_one_insn): Likewise.
23512 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23513 regmove_optimize, fixup_match_1, single_set_for_csa,
23514 combine_stack_adjustments_for_block): Likewise.
23515 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
23516 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
23517 find_equiv_reg): Likewise.
23518 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
23519 reload_as_needed, emit_input_reload_insns, do_output_reload,
23520 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
23522 * reorg.c (find_end_label, emit_delay_sequence,
23523 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
23524 get_jump_flags, rare_destination, mostly_true_jump,
23525 try_merge_delay_insns, redundant_insn, own_thread_p,
23526 fill_simple_delay_slots, fill_slots_from_thread,
23527 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
23528 dbr_schedule): Likewise.
23529 * resource.c (find_basic_block, next_insn_no_annul,
23530 find_dead_or_set_registers, mark_target_live_regs): Likewise.
23531 * rtl.h (RTX_PREV): Likewise.
23532 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
23533 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
23534 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
23535 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
23536 tablejump_p, computed_jump_p, insns_safe_to_move_p,
23537 find_first_parameter_load, can_hoist_insn_p): Likewise.
23538 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
23539 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
23540 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
23541 schedule_ebbs): Likewise.
23542 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
23543 is_conditionally_protected, can_schedule_ready_p,
23544 add_branch_dependences, debug_dependencies): Likewise.
23545 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
23547 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
23548 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
23549 set_dominates_use, ujump_to_loop_cont): Likewise.
23550 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
23551 * varasm.c (output_constant_pool_1): Likewise.
23553 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23555 * tree-scalar-evolution.c: New file.
23556 * tree-scalar-evolution.h: New file.
23557 * tree-ssa-loop-niter.c: New file.
23558 * Makefile.in (SCEV_H): New.
23559 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
23560 * cfgloop.h (struct loop): Add bounds field.
23561 * tree-flow.h (struct tree_niter_desc): New type.
23562 (number_of_iterations_cond, number_of_iterations_exit,
23563 loop_niter_by_eval, find_loop_niter_by_eval,
23564 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
23565 free_numbers_of_iterations_estimates): Declare.
23566 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
23567 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
23568 * doc/invoke.texi (max-iterations-to-track): Document.
23570 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
23572 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
23573 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
23574 (MODE_AFTER): Add cast appropriately.
23575 * config/sh/sh.md (movdi splitter): Likewise.
23576 (casesi_worker_2): Add const qualifier appropriately.
23577 (eh_return): Remove unused variable.
23578 (insv): Initialize v;
23580 2004-07-08 Richard Henderson <rth@redhat.com>
23582 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
23583 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23584 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
23585 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
23586 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
23588 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
23589 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23590 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
23591 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
23593 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
23594 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23595 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
23596 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
23598 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
23599 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23600 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
23601 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
23603 * config/i860/i860-protos.h (i860_va_arg): Remove.
23604 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23605 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
23606 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
23608 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23610 * system.h: Prototype getpagesize if missing.
23611 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
23612 * configure: Regenerate.
23613 * config.in: Regenerate.
23615 2004-07-08 Richard Henderson <rth@redhat.com>
23617 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
23618 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23619 (fr30_gimplify_va_arg_expr): New.
23620 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
23621 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
23623 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
23626 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
23627 of asm_noperands result.
23629 2004-07-08 Richard Henderson <rth@redhat.com>
23631 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
23632 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23633 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
23634 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
23636 2004-07-08 Richard Henderson <rth@redhat.com>
23638 * builtins.c (ind_gimplify_va_arg_expr): New.
23639 * tree.h (ind_gimplify_va_arg_expr): Declare.
23640 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
23642 2004-07-08 Jan Beulich <jbeulich@novell.com>
23644 * expmed.c (extract_bit_field): Correct condition to use vec_extract
23645 patterns also on vector elements other than the first one.
23646 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
23649 2004-07-08 Geoffrey Keating <geoffk@apple.com>
23651 * config/rs6000/darwin-ldouble.c: Correct reference
23652 to the Linnainmaa paper.
23654 2004-07-08 Richard Henderson <rth@redhat.com>
23656 * config/arc/arc-protos.h (arc_va_arg): Remove.
23657 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23658 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
23659 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
23661 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
23662 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23663 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
23664 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
23666 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23668 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
23670 2004-07-08 Zack Weinberg <zack@codesourcery.com>
23672 * c-decl.c (static_ctors, static_dtors): Make static.
23673 (pop_file_scope): Call c_common_write_pch and
23674 cgraph_finalize_compilation_unit here.
23675 (build_cdtor): Moved here from c-objc-common.c; simplify.
23676 (c_write_global_declarations_1): Clarify comment.
23677 (c_write_global_declarations): Close the external scope before
23678 doing anything else. Call build_cdtor, cgraph_optimize, and
23679 mudflap_finish_file here.
23680 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
23682 * c-objc-common.c: No need to include cgraph.h.
23683 (build_cdtor): Moved to c-decl.c.
23684 (c_objc_common_finish_file): Delete.
23685 * c-tree.h: Update to match.
23686 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
23687 (generate_static_references): Set TREE_USED before calling finish_decl.
23688 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
23689 on the static_instances_decl.
23691 2004-07-08 Zack Weinberg <zack@codesourcery.com>
23693 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
23694 decls when there is only one input translation unit.
23695 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
23696 change of 2004-07-05; do not treat declarations with
23697 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
23698 * opts.c (cur_in_fname): Delete.
23699 * opts.h: Likewise.
23700 * tree.c: Revert changes of 2004-07-05; no special treatment
23701 for TRANSLATION_UNIT_DECLs.
23702 * Makefile.in (tree.o): Update dependencies.
23704 2004-07-08 Roger Sayle <roger@eyesopen.com>
23706 * builtins.c (fold_builtin_strcpy): Merge functionality from
23707 simplify_builtin_strcpy. Add additional len argument. No longer
23708 static. Remove function prototype.
23709 (fold_builtin_strncpy): Likewise integrate functionality from
23710 simplify_builtin_strncpy. Add additional slen argument. No
23711 longer static. Remove function prototype.
23712 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
23713 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
23714 types of "ignore" and "unlocked" parameters to bool.
23715 (fold_builtin_1): Add additional ignore argument. Call renamed
23716 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
23717 builtins. Update arguments to fold_builtin_strncpy and
23718 fold_builtin_strcpy. Add function prototype.
23719 (fold_builtin): Add additional Boolean ignore argument to pass
23721 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
23722 and fold_builtin_strncpy instead of simplify_builtin_fputs,
23723 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
23725 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
23726 simplify_builtin_strncpy): Delete function prototypes.
23727 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
23728 fold_builtin_strncpy): Add function prototypes here.
23729 (fold_builtin): Update function prototype with new "bool ignore".
23731 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
23732 (ccp_fold_builtin): Update call to fold_builtin. Call
23733 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
23734 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
23735 simplify_builtin_strncpy respectively.
23736 * fold-const.c (fold): Update call to fold_builtin.
23738 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
23740 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
23743 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
23744 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
23745 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
23746 * calls.c: Remove ifdefs of macros above.
23747 * functions.c: Likewise.
23748 * expr.c: Likewise.
23750 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23752 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
23753 (arch attribute): Delete.
23754 (current_function_calls_alloca attribute): Rename into calls_alloca.
23755 (calls_eh_return): New attribute.
23756 (leaf_function): Likewise.
23757 (length attribute): Fix formula for sibcalls.
23758 (return insn): Correctly compute the 'length' attribute.
23759 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
23761 2004-07-08 Richard Henderson <rth@redhat.com>
23763 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
23764 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
23765 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
23766 * tree-eh.c (lower_eh_constructs_1): Likewise.
23767 * tree-sra.c (sra_walk_modify_expr): Likewise.
23768 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23769 (eliminate_unnecessary_stmts): Likewise.
23770 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
23771 * tree-tailcall.c (optimize_tail_call): Likewise.
23772 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
23774 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
23775 Jakub Jelinek <jakub@redhat.com>
23777 * config/i386/i386.c (override_options): Enable
23778 SSE prefetches with -mtune, as long as we are
23779 compiling for i686 or higher. All i686 processors
23780 accept SSE prefetches as NOPS, some i586's don't.
23782 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23785 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
23787 2004-07-08 Diego Novillo <dnovillo@redhat.com>
23789 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
23790 the handling of clobbering ASM_EXPRs.
23792 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23795 * config/sparc/sparc.c (function_value): In 64-bit mode,
23796 return the aggregates larger than 16 bytes like unions.
23798 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23801 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
23802 'temp' is zero, generate new pseudos as needed and emit the
23803 sequence of insns in single-assignment form. Resync comments
23805 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
23806 function before reload.
23808 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
23810 * vec.c (vec_assert_fail): Remove duplicate 'function'.
23812 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
23814 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
23815 Allocation is signed.
23816 (VEC_reserve): Return flag, allocation is signed.
23818 2004-07-08 Richard Henderson <rth@redhat.com>
23820 * tree-ssa-ccp.c (fold_stmt): Get type directly from
23821 OBJ_TYPE_REF_OBJECT.
23823 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
23824 Neil Booth <neil@daikokuya.co.uk>
23828 * c-decl.c (finish_struct): Ensure bit-fields are given the
23830 * c-common.c (c_common_signed_or_unsigned_type): For C, require
23831 the precision to match as well as the mode.
23832 * expr.c (reduce_to_bit_field_precision): New function.
23833 (expand_expr_real_1): Reduce expressions of bit-field type to
23835 * langhooks.h (reduce_bit_field_operations): New hook.
23836 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
23838 * c-lang.c, objc/objc-lang.c
23839 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
23840 * objc/objc-act.c (check_ivars): Convert types to bit-field types
23842 * tree.c (build_nonstandard_integer_type): New function.
23843 * tree.h (build_nonstandard_integer_type): New prototype.
23844 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
23845 conversions between integer and boolean types as useless.
23847 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
23849 * c-common.c (c_common_nodes_and_builtins): Do not
23850 create __builtin_ptrdiff_t and __builtin_size_t.
23852 2004-07-08 Andrew Pinski <apinski@apple.com>
23854 * Makefile.in (libbackend.o): Add -combine to the gcc
23857 2004-07-08 Nick Clifton <nickc@redhat.com>
23859 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
23862 2004-07-08 Richard Henderson <rth@redhat.com>
23864 * except.c (expand_eh_region_start, expand_eh_region_end,
23865 expand_eh_handler, expand_eh_region_end_cleanup,
23866 expand_start_all_catch, expand_start_catch, expand_end_catch,
23867 expand_end_all_catch, expand_eh_region_end_allowed,
23868 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
23869 expand_eh_region_end_fixup): Remove.
23870 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
23871 cleanups, outer_cleanups, label_chain, exception_region.
23872 (struct goto_fixup): Remove stack_level, cleanup_list_list.
23873 (struct label_chain): Remove.
23874 (struct stmt_status): Remove x_stack_block_stack.
23875 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
23876 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
23877 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
23878 end_cleanup_deferral, last_cleanup_this_contour,
23879 containing_blocks_have_cleanups_or_stack_level,
23880 any_pending_cleanups): Remove.
23881 (expand_null_return_1): Take no arguments.
23882 (expand_label, expand_naked_return, expand_return,
23883 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
23884 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
23885 expand_end_case_type): Don't use any of them.
23886 * calls.c (expand_call): Likewise.
23887 * dojump.c (do_jump): Likewise.
23888 * function.c (expand_function_end): Likewise.
23889 * expr.c (store_expr, expand_expr_real_1): Likewise.
23890 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
23891 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
23892 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
23893 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
23894 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
23895 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
23896 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
23897 for WITH_CLEANUP_EXPR.
23898 (gimple_push_cleanup): Likewise.
23899 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
23900 * print-tree.c (print_node): Likewise.
23901 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
23902 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
23903 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
23904 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
23905 (GOTO_SUBROUTINE_EXPR): Remove.
23906 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
23907 (DECL_TOO_LATE): Remove.
23908 * except.h, tree.h: Update decls.
23910 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
23912 * explow.c (optimize_save_area_alloca): Do not accept parameters.
23913 * passes.c (rest_of_handle_final): Handle symout.
23914 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
23916 (rest_of_handle_sched): Break out SMS. Remove ifs for
23917 flag_schedule_insns and flag_modulo_sched.
23918 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
23919 collect at the end.
23920 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
23921 (rest_of_handle_partition_blocks, rest_of_handle_sms,
23922 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
23923 rest_of_handle_mode_switching, rest_of_handle_jump,
23924 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
23925 rest_of_handle_jump2, rest_of_handle_postreload,
23926 rest_of_handle_flow2, rest_of_clean_state,
23927 rest_of_handle_shorten_branches,
23928 rest_of_handle_prologue_epilogue,
23929 rest_of_handle_branch_target_load_optimize): New.
23930 (rest_of_compilation): Call the above. Remove ggc_collect
23931 calls moved to rest_of_handle_*.
23932 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
23934 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
23935 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
23936 * except.h (set_nothrow_function_flags): Update comment.
23937 * function.c (current_function_nothrow): Remove.
23938 * output.h (current_function_nothrow): Remove.
23939 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
23940 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
23942 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23945 * reorg.c: Revert 2004-06-30 change.
23946 (find_end_label): If HAVE_epilogue and !HAVE_return,
23947 return 0 instead of creating a label at the end of the insn chain.
23948 (optimize_skip): Account for the failure mode of find_end_label.
23949 (fill_simple_delay_slots): Likewise.
23950 (fill_slots_from_thread): Likewise.
23951 (relax_delay_slots): Likewise.
23953 2004-07-08 Diego Novillo <dnovillo@redhat.com>
23955 * tree-flow.h (addressable_vars): Declare.
23956 * tree-ssa-alias.c (addressable_vars): Define.
23957 (setup_pointers_and_addressables): Add addressable variables
23958 to addressable_vars.
23959 * tree-ssa-operands.c (get_stmt_operands): Move
23960 handling of ASM_EXPRs ...
23961 (get_asm_expr_operands): ... here.
23962 When the ASM_EXPR clobbers memory, also clobber addressable
23964 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
23965 (delete_tree_ssa): Reset addressable_vars.
23967 2004-07-07 Jan Beulich <jbeulich@novell.com>
23968 Richard Henderson <rth@redhat.com>
23970 * varasm.c (assemble_variable): Use assemble_zeros for
23971 zero-initialized variables.
23972 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
23973 for SECCAT_BSS and SECCAT_TBSS.
23975 2004-07-07 Jan Beulich <jbeulich@novell.com>
23977 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
23979 * expmed.c (emit_store_flag): Also special-case double-word
23980 (in-)equality comparison against -1.
23982 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
23983 passing arguments the containers for which are registers.
23985 * calls.c (emit_library_call_value_1): Use mode of function parameter
23986 rather than that of argument since constants have none.
23988 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
23990 Introduce H8SX support.
23991 * expr.c (expand_strcpy): Renamed and moved to...
23992 * builtins.c (expand_movstr): ... here. Tweak.
23993 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
23994 computed or has side effects.
23995 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
23996 unused, or if mempcpy fails. Adjust the return value in the
23997 latter case. Use movstr if everything else fails.
23998 * doc/md.texi (movstr): Document.
23999 (movmemM, clrmemM): Fix explanation of memory block operands.
24000 * config/h8300/h8300.md (stpcpy): Renamed to...
24001 (movstr): ... this. Adjust.
24002 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24003 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
24004 movmem* and clrstr* to clrmem*.
24005 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
24006 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
24007 GENERAL_REGS, always.
24008 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
24009 getting the stack pointer as addr.
24010 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
24011 from general_operand_dst.
24012 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
24014 (movmd_internal): ... this. Add modes to operands. Disparage `D'
24015 instead of requiring it to match only before reload.
24016 (stpcpy_internal_normal): New, normal-mode variant of...
24017 (stpcpy_internal): ... this. Add modes to operands. Disparage
24018 `D' instead of requiring it to match only before reload.
24019 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
24021 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
24022 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
24024 * config/h8300/h8300.md (attr type): Add call.
24025 (attr can_delay): If type is call, set it no.
24026 (call, call_value): Set type to call.
24027 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
24028 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
24029 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
24030 * tree.c (get_narrower): Don't narrow integral types into
24031 non-integral types.
24032 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
24033 frame_size *before* the first use.
24034 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
24036 (peephole2): Don't widen instructions that push SP. Move
24037 decrement of SP to the end of all stm-generating peepholes.
24038 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24039 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
24040 and OR to set it to all ones.
24041 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24042 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
24043 (call, call_value): Set can_delay to "no".
24044 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
24045 * config/h8300/h8300.md (extzv): Make subreg check more robust.
24046 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24047 * config/h8300/h8300.md (*brabit): Remove.
24048 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
24049 zero_extract. Use bit_memory_operand as the predicate for
24050 operand 1 and 'WU' as the constraint. Check the difference
24051 between the base length and the final one when deciding which
24052 type of branch to use.
24053 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24054 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
24055 Use convert_move to extend the result for TARGET_H8300SX. Check
24056 for QImode memory references. Optimize the case where the
24057 destination is a paradoxical subreg.
24058 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24059 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
24060 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
24061 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24062 * config/h8300/h8300.md: Include mova.md
24063 (length_table): Add mova and mova_zero.
24064 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
24065 after all constant addresses for '%R', '%X', '%T' and '%S'.
24066 (h8300_mova_length): New function.
24067 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
24068 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
24069 dependencies for s-config, etc.
24070 * config/h8300/gemova.sh: New file.
24071 * config/h8300/mova.md: Generated.
24072 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
24073 * config/h8300/h8300.c (h8300_bitfield_length): New.
24074 (nibble_operand): Adjust.
24075 (h8300_binary_length): Handle conditional binary op.
24076 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
24077 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
24078 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
24079 and P#<0, unused so far. W and Y are now prefixes to multi-letter
24080 constraints. WU is introduced as a variant of U that requires a
24081 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
24082 * config/h8300/h8300.md (attr type): Added bitbranch.
24083 (attr length_table): Added bitfield and bitbranch.
24084 (attr length): Compute bitbranch length.
24085 (andqi): Separate pattern for H8300SX. Use bfld for loading the
24086 least-significant bit of a byte.
24087 (brabit, brabc, brabs): New.
24088 (insv, extzv): Emit bfst and bfld on H8300SX.
24089 (bfld, bfst, seq, sne): New.
24090 (bstzhireg, cmpstz, bstz, bistz): New.
24091 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
24092 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
24093 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
24094 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
24095 (h8sx_unary_memory_operator): New function.
24096 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
24097 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
24098 * config/h8300/h8300.md: Add peepholes to combine reloads and
24100 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24101 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
24102 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
24103 (and?i, ior?i, xor?i): Likewise.
24104 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24105 * config/h8300/h8300.c: Move enums and prototypes to head of file.
24106 Various whitespace fixes.
24107 (h8300_constant_length): New function, split out from...
24108 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
24109 (h8300_classify_operand): Use IN_RANGE.
24110 (h8300_classify_operand): Use h8300_constant_length.
24111 (h8300_short_move_mem_p): Tighten size check.
24112 (h8sx_mergeable_memrefs_p): Tighten equality check.
24113 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
24114 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
24116 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
24117 * config/h8300/crtn.asm: Likewise.
24118 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
24119 if __H8300SX__ is defined.
24120 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
24121 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
24122 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
24123 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
24124 addresses as mode-dependent.
24125 * config/h8300/h8300.c (print_operand_address): Update call to
24127 (h8300_get_index): Take a mode argument. Rework to fix an
24128 earlier misunderstanding.
24129 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
24130 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
24131 into a register if TARGET_H8300SX.
24132 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
24133 TARGET_H8300SX. Also disable related define_splits.
24134 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
24135 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
24136 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
24137 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24138 * config/h8300/h8300.h (OK_FOR_Z): New macro.
24139 (EXTRA_CONSTRAINT_STR): Check it.
24140 * config/h8300/h8300.c (h8300_classify_operand): Accept null
24142 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
24143 * config/h8300/h8300.md (length_table): Add mov_imm4.
24144 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
24145 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24146 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
24148 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
24149 * config/h8300/h8300.c (h8300_reorg): New function.
24150 (TARGET_MACHINE_DEPENDENT_REORG): Define.
24151 * config/h8300/h8300.md (length): Subtract the length of the
24152 delay slot from (pc) when checking the range of forward branches.
24153 (delay_slot, can_delay): New attributes.
24154 (define_delay): Add bra/s handling.
24155 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
24156 (jump): Add delayed-branch handling.
24157 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
24158 * expr.c (expand_strcpy): New function.
24159 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
24160 (expand_builtin_stpcpy): Likewise.
24161 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
24162 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
24163 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
24164 handling to improve register allocation for -fno-omit-frame-pointer.
24165 (h8sx_split_movmd): Delete, moving er6 handling into...
24166 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
24167 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
24168 (movmd): Add calls to copy_rtx.
24169 (movmd_internal): In the second alternative, allow the initial and
24170 final destination registers to be different . Update the splitter
24171 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
24172 instead of h8sx_split_movmd.
24173 (stpcpy, movsd): New expanders.
24174 (movsd_internal): New define_insn.
24175 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
24176 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
24177 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
24178 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
24179 and DESTINATION_REGS.
24180 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
24181 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
24182 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
24183 (h8300_move_ratio): Declare.
24184 (MOVE_RATIO): Use it.
24185 * config/h8300/h8300.c (h8300_move_ratio): New variable.
24186 (h8300_init_once): Initialize it.
24187 (h8300_reg_class_from_letter): New function.
24188 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
24189 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
24190 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
24191 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
24192 (movstrsi, movmd): New expanders.
24193 (movmd_internal): New insn.
24194 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
24195 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
24196 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
24197 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
24198 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
24199 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24200 * config/h8300/h8300.c (nibble_operand): Fix warning.
24201 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
24202 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
24203 (movsf_h8300h): Disable for TARGET_H8300SX.
24204 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24205 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
24206 h8300_stm_parallel and h8300_return_parallel.
24207 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
24208 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
24209 h8300_stm_parallel, h8300_return_parallel): New functions.
24210 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
24211 if TARGET_H8300SX. Use h8300_push_pop.
24212 (h8300_expand_epilogue): Likewise. Try to merge the return insn
24213 and final pop when generating h8sx code. Always emit some form
24215 * config/h8300/h8300.md: Don't enforce register alignment in
24216 stm peepholes if TARGET_H8300SX.
24217 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
24218 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
24219 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
24220 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24221 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
24222 (MULTILIB_DIRNAMES): Add a directory for it.
24223 (MULTILIB_MATCHES): Delete.
24224 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24225 * final.c (walk_alter_subreg): Handle addresses with subregs
24226 inside a ZERO_EXTEND or AND.
24227 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
24228 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
24230 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
24231 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
24232 @(dd,Rn.w) and @(dd,ERn.L).
24233 (h8300_displacement_size): Take the whole address as argument.
24234 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
24235 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24236 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
24237 (h8sx_mergeable_memrefs_p): Declare.
24238 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
24239 (HAVE_PRE_INCREMENT): Likewise.
24240 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
24241 addresses for TARGET_H8300SX,
24242 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
24244 (movb_length_table, movl_length_table): New tables.
24245 (movw_length_table): Define to movb_length_table.
24246 (h8300_displacement_size): New, split out from...
24247 (h8300_classify_address): ...here. Handle pre/post inc/dec.
24248 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
24249 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
24250 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
24251 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
24252 (compute_plussi_length, compute_plussi_cc): Update accordingly.
24253 (h8sx_unary_shift_operator): Get the mode from the operator.
24254 (binary_shift_operator): Likewise.
24255 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
24256 a memory reference, check whether the reference is offsettable.
24257 (length_table): Add movb, movw and movl.
24258 (movqi): Add new h8sx pattern. Don't force one operand to be a
24259 register when generating h8sx code.
24260 (movhi, movsi, movsf): Likewise.
24261 (movstrictqi): Use the length_table attribute.
24262 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
24263 (addqi3): Split into a define_expand and define_insn. Don't accept
24264 memory operands in the expander. Use h8300_operands_match_p to
24265 check for matching operands in the define_insn.
24266 (subqi3, negqi2, one_cmplqi2): Likewise.
24267 (add[hs]i3): Don't accept memory operands in the expander. Likewise
24268 in any patterns that are unused in h8sx code. In the h8sx patterns,
24269 use h8300_operands_match_p to check whether operands match.
24270 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
24271 one_cmpl[hs]i3): Likewise.
24272 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
24274 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
24275 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
24276 (h8300_insn_length_from_table): Add a second parameter.
24277 (output_h8sx_shift): Declare.
24278 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
24279 (EXTRA_CONSTRAINT): Replace with...
24280 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
24281 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
24282 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
24283 and h8sx_binary_shift_operator.
24284 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
24285 for TARGET_H8300SX.
24286 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
24287 (bit_memory_operand, fix_bit_operand): Likewise.
24288 (h8300_length_table_for_insn): Remove.
24289 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
24291 (h8300_short_immediate_length, h8300_binary_length): New functions.
24292 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
24293 (output_plussi): Use sub to add negative constants.
24294 (compute_plussi_length): Adjust accordingly.
24295 (h8sx_single_shift_type): New enum.
24296 (h8sx_single_shift, h8sx_unary_shift_operator,
24297 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
24298 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
24299 single h8sx instruction. Return false in this case.
24300 * config/h8300/h8300.md (length_table): Add short_immediate.
24301 (length): Pass the operand array to h8300_insn_length_from_table.
24302 (adjust_length): Assume "no" for insns with a length_table attribute.
24303 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
24304 (*addhi3_h8300hs): Don't use for h8sx.
24305 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
24307 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
24308 1's predicate to nonimmediate_operand. Only skip default expansion
24309 if expand_a_shift or expand_a_rotate returns true. Add new patterns
24310 for single h8sx shift instructions.
24311 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
24312 * config/h8300/h8300.c (nibble_operand): Split out of...
24313 (reg_or_nibble_operand): ... this.
24314 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
24315 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
24316 umulhisi3): Introduce expand, and introduce separate insns for
24317 sign- or zero-extended REG and already-extended CONST_INT.
24318 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
24319 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
24320 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
24321 (subhi3): Likewise. Don't accept immediates for operand 1.
24322 Remove the early clobber from second alternative of the h8300s pattern.
24323 (subsi3): Generalize for h8sx. Force operand 2 into a register
24324 on plain h8300 targets.
24325 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
24326 (subsi3_h8300h): Generalize for h8sx.
24327 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
24328 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
24329 * config/h8300/h8300.c (reg_or_nibble_operand): New.
24330 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24331 (TARGET_H8300SXMUL): New.
24332 (CONST_OK_FOR_P): New.
24333 (CONST_OK_FOR_LETTER_P): Adjust.
24334 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
24335 umulhisi3): Accept 4-bit immediate on H8SX.
24336 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
24337 (udivsi3, divhi3, udivsi3, divsi3): New.
24338 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
24339 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
24340 * config/h8300/h8300.h (OK_FOR_Q): New macro.
24341 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
24342 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
24343 Add ADDRESSOF to the bit_operand entry.
24344 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
24345 (h8300_src_operand): Likewise.
24346 (bit_operand): Check nonimmediate_operand rather than general_operand.
24347 Accept any nonimmediate_operand in h8sx code.
24348 (h8300_and_costs): Initialize operands[1].
24349 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
24350 (h8300_operand_class): New enum.
24351 (h8300_length_table): New typedef.
24352 (addb_length_table, addw_length_table, addl_length_table,
24353 logicl_length_table): New tables.
24354 (logicb_length_table, logicw_length_table): New macros.
24355 (h8300_classify_operand, h8300_length_from_table,
24356 h8300_length_table_for_insn, h8300_unary_length,
24357 h8300_insn_length_from_table): New functions.
24358 (output_plussi): Only use adds and subs for register destinations.
24359 Disable redundant clause.
24360 (compute_plussi_cc): Likewise.
24361 (compute_plussi_length): Likewise. Use h8300_length_from_table
24362 to work out the length of an insn.
24363 (output_logical_op): Only use narrower immediate instructions
24364 if the destination is a register.
24365 (compute_logical_op_cc): Likewise.
24366 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
24367 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
24368 * config/h8300/h8300.md (length_table): New attribute.
24369 (length): When an instruction has a length_table attribute, use
24370 h8300_insn_length_from_table to calculate its default length.
24371 (cmpqi): Use h8300_dst_operand for the first operand and
24372 h8300_src_operand for the second.
24373 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
24374 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
24375 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
24376 iorsi3, xorhi3, xorsi3): Likewise.
24377 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
24378 so that it allows any combination of operands for TARGET_H8300SX.
24379 (iorqi3, xorqi3): Likewise.
24380 (cmpqi): Use the length_table attribute.
24381 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
24382 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24383 (cmpqi): Add 'Q' constraint.
24384 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
24385 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24386 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
24387 * config/h8300/h8300.h (MASK_H8300SX): New macro.
24388 (TARGET_H8300S): True for both -ms and -msx.
24389 (TARGET_H8300SX): New macro.
24390 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
24391 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
24392 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
24393 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
24394 [Temporary change.]
24395 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
24396 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
24397 16-bit pointers and 32-bit ints.
24398 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
24399 CONST_DOUBLE with mode no wider than SImode.
24400 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
24402 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
24403 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
24405 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24406 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
24407 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
24409 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24411 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
24413 2004-07-07 Per Bothner <per@bothner.com>
24415 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
24417 2004-07-07 Mike Stump <mrs@apple.com>
24419 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
24420 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
24421 (machopic_finish): Likewise.
24423 2004-07-07 Richard Henderson <rth@redhat.com>
24425 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
24426 through any value-preserving cast.
24428 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24430 * function.c (assign_parm_find_data_types): Call
24431 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
24433 2004-07-07 Steven Bosscher <stevenb@suse.de>
24435 * tree-cfg.c (group_case_labels): Remove case labels that have
24436 the same target as the default case.
24438 2004-07-07 Steven Bosscher <stevenb@suse.de>
24440 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
24441 regardless of DECL_LANG_SPECIFIC being present or not.
24442 * tree.h (DECL_NUM_STMTS): Purge.
24444 2004-07-07 Andrew Pinski <apinski@apple.com>
24446 * configure: Regenerate with the right autoconf.
24448 2004-07-07 David Edelsohn <edelsohn@gnu.org>
24450 * ifcvt.c (total_bb_rtx_cost): New function.
24451 (find_if_case_1): Compare rtx_cost of basic block to cost of
24453 (find_if_case_2): Same.
24455 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
24458 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
24459 (output_return): Likewise.
24460 (output_sibcall): Abort if !flag_delayed_branch.
24461 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
24462 (emit_and_preserve): New function.
24463 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
24464 indirect jump to the thunked-to function if !flag_delayed_branch.
24465 * config/sparc/sparc.md (delayed_branch): New attribute.
24466 (load_pcrel_sym): Honor flag_delayed_branch. Use above
24467 attribute to compute the length of the insn.
24468 (goto_handler_and_restore): Likewise.
24470 2004-07-07 Andrew Pinski <apinski@apple.com>
24472 PR tree-optimization/15777
24473 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
24475 * expr.c (expand_expr_real_1): Fix formating.
24476 BUFFER_REF and IN_EXPR are dead.
24477 * fold-const.c (non_lvalue): BUFFER_REF is dead.
24478 * tree-inline.c (estimate_num_insns_1): Likewise.
24479 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
24480 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
24481 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
24483 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
24485 * collect2.c (dump_file): Don't call cplus_demangle if
24486 HAVE_LD_DEMANGLE is defined.
24487 (main): Pass "--demangle" to ld if no_demangle is not 0 and
24488 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
24489 if HAVE_LD_DEMANGLE is defined.
24491 * configure.ac (--with-demangler-in-ld): Added
24492 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
24493 --with-demangler-in-ld is used.
24494 * config.in: Regenerated.
24495 * configure: Likewise.
24497 2004-07-07 Roger Sayle <roger@eyesopen.com>
24499 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
24500 for simple floating point operations "fp", double precision
24501 multiplication "dmul", and single and double precision division
24502 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
24503 (ppc630_cost): New table split from ppc620_cost, to distinguish
24504 differences in floating point latencies.
24505 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
24506 (rs6000_rtx_costs): Add support for single and double precision
24507 floating point addition, subtraction, multiplication, division,
24508 fused-multiply-add, fused-multiply-sub, negation, absolute value
24509 and negative absolute value. Tweak MEM case to use prefered idiom.
24511 2004-07-07 Richard Henderson <rth@redhat.com>
24513 * tree-flow-inline.h (may_propagate_copy): Move...
24514 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
24515 attempt to copy between types requiring conversion.
24516 * tree-flow.h (may_propagate_copy): Update decl.
24517 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
24519 2004-07-07 Jakub Jelinek <jakub@redhat.com>
24521 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
24522 from -mtune= option.
24524 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24526 * builtins.c: Rename movstr*, except for movstrict*, to
24527 movmem* and clrstr* to clrmem*.
24528 * expr.c: Likewise.
24529 * expr.h: Likewise.
24530 * genopinit.c: Likewise.
24531 * integrate.c: Likewise.
24532 * local-alloc.c: Likewise.
24533 * optabs.c: Likewise.
24534 * optabs.h: Likewise.
24535 * config/alpha/alpha.h: Likewise.
24536 * config/alpha/alpha.md: Likewise.
24537 * config/arm/arm-protos.h: Likewise.
24538 * config/arm/arm.c: Likewise.
24539 * config/arm/arm.md: Likewise.
24540 * config/avr/avr.md: Likewise.
24541 * config/c4x/c4x.c: Likewise.
24542 * config/c4x/c4x.md: Likewise.
24543 * config/frv/frv.md: Likewise.
24544 * config/i386/i386-protos.h: Likewise.
24545 * config/i386/i386.c: Likewise.
24546 * config/i386/i386.h: Likewise.
24547 * config/i386/i386.md: Likewise.
24548 * config/i860/i860.c: Likewise.
24549 * config/i860/i860.md: Likewise.
24550 * config/ip2k/ip2k.md: Likewise.
24551 * config/ip2k/libgcc.S: Likewise.
24552 * config/ip2k/t-ip2k: Likewise.
24553 * config/m32r/m32r.c: Likewise.
24554 * config/m32r/m32r.md: Likewise.
24555 * config/mcore/mcore.md: Likewise.
24556 * config/mips/mips.c: Likewise.
24557 * config/mips/mips.md: Likewise.
24558 * config/ns32k/ns32k.c: Likewise.
24559 * config/ns32k/ns32k.h: Likewise.
24560 * config/ns32k/ns32k.md: Likewise.
24561 * config/pa/pa.c: Likewise.
24562 * config/pa/pa.md: Likewise.
24563 * config/pdp11/pdp11.h: Likewise.
24564 * config/pdp11/pdp11.md: Likewise.
24565 * config/rs6000/rs6000.c: Likewise.
24566 * config/rs6000/rs6000.md: Likewise.
24567 * config/s390/s390-protos.h: Likewise.
24568 * config/s390/s390.c: Likewise.
24569 * config/s390/s390.md: Likewise.
24570 * config/sh/lib1funcs.asm: Likewise.
24571 * config/sh/sh.c: Likewise.
24572 * config/sh/sh.md: Likewise.
24573 * config/sh/t-sh: Likewise.
24574 * config/sparc/sparc.h: Likewise.
24575 * config/vax/vax.md: Likewise.
24576 * config/xtensa/xtensa.c: Likewise.
24577 * config/xtensa/xtensa.md: Likewise.
24578 * doc/invoke.texi: Likewise.
24579 * doc/md.texi: Likewise.
24580 * doc/rtl.texi: Likewise.
24582 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
24585 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
24586 * config/mips/mips.c (mips_declare_common_object): New function,
24587 mostly split out from...
24588 (mips_output_aligned_decl_common): ...here.
24589 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
24590 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
24591 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
24592 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
24594 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24597 * function.c (assign_parms): Fix typo from previous change.
24599 2004-07-07 Jason Merrill <jason@redhat.com>
24602 * doc/extend.texi (C++ Interface): Correct information and
24605 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
24610 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
24613 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
24616 * config/m32r/m32r.c (m32r_function_symbol): New function:
24617 Generate a symbol name RTX with the correct m32r specific flags
24619 (block_move_call): Use new function to generate correct symbol.
24620 * config/m32r/m32r-protos.h: Add prototype for new funcion.
24621 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
24624 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
24626 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
24627 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
24628 TYPE_BINFO_BASETYPE): Remove.
24629 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
24631 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
24633 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
24634 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
24635 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
24636 (struct tree_binfo): Rename base_types to base_binfos.
24637 * alias.c (record_component_aliases): Adjust BINFO macros.
24638 * dbxout.c (dbxout_type): Likewise.
24639 * dwarf2out.c (gen_member_die): Likewise.
24640 * sdbout.c (sdbout_one_type): Likewise.
24641 * tree-dump.c (deque_and_dump): Likewise.
24642 * config/i386/i386.c (classify_argument,
24643 contains_128bit_aligned_vector_p): Likewise.
24645 2004-07-07 Nick Clifton <nickc@redhat.com>
24647 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
24648 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
24650 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
24652 * vec.h: Fix the example use.
24654 2004-07-06 Richard Henderson <rth@redhat.com>
24656 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
24657 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
24658 * tree-inline.c (copy_body_r, setup_one_parameter,
24659 initialize_inlined_parameters, expand_call_inline,
24660 declare_inline_vars): Don't check it.
24661 (expand_calls_inline): Remove old version, rename new version
24662 from gimple_expand_calls_inline.
24663 * tree-optimize.c (execute_gimple): Remove.
24664 (pass_gimple): Don't run anything.
24666 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
24668 * doc/sourcebuild.texi: Use semicolons instead of commas in
24671 2004-07-06 Richard Henderson <rth@redhat.com>
24673 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
24674 (sra_walk_modify_expr, scan_init): Likewise.
24675 (generate_element_zero): Check visited before scanning children.
24676 (generate_element_init): Set visited on error.
24677 (scalarize_init): Handle generate_element_init failure similar
24680 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
24682 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
24683 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
24685 2004-07-06 Richard Henderson <rth@redhat.com>
24687 * config/i386/i386.c (legitimize_pic_address): Make static.
24688 (legitimize_address): Handle CONST with TLS operand.
24689 (ix86_expand_move): Don't call legitimize_pic_address directly.
24690 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
24692 2004-07-06 Roger Sayle <roger@eyesopen.com>
24694 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
24695 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
24696 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
24697 is currently executed unconditionally, i.e. not in "else_bb".
24699 2004-07-06 Steven Bosscher <stevenb@suse.de>
24701 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
24702 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24703 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
24704 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24705 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
24706 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24707 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
24708 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24709 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
24710 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24711 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
24712 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24713 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
24714 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24715 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
24716 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24718 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
24720 * dojump.c (do_jump): REFERENCE_EXPR is dead.
24721 * expr.c (expand_expr_real_1): Ditto.
24722 * tree-inline.c (estimate_num_insns_1): Ditto.
24723 * tree-pretty-print.c (dump_generic_node): Ditto.
24724 (op_symbol): Ditto.
24727 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
24729 * tree-ssa-pre.c (reference_node_pool): New pool.
24730 (find_or_generate_expression): Class 'r' is okay too.
24731 (create_value_expr_from): Ditto.
24732 (add_to_sets): LHS should not include vuses.
24733 (eliminate): Ditto.
24734 (compute_avail): Reverse ordering of tests.
24735 Valuize INDIRECT_REF as well.
24737 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
24739 PR rtl-optimization/16380
24740 * loop.c (check_dbra_loop): Sink comparison instructions if they
24741 do something other than set cc0.
24743 2004-07-06 James E Wilson <wilson@specifixinc.com>
24745 * doc/interface.texi (longjmp and automatic variables): Delete
24746 paragraph recommending taking the address of a variable.
24748 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
24750 * vec.h (VEC_embedded_alloc): Remove.
24751 (VEC_embedded_size, VEC_embedded_init): New.
24752 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
24754 (VEC_truncate): New.
24755 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
24756 (vec_embedded_alloc): Remove.
24757 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
24758 (vec_embedded_alloc): Remove.
24760 2004-07-06 Mark Mitchell <mark@codesourcery.com>
24762 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
24763 (gt-langhooks.h): Remove.
24765 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
24767 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
24769 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
24771 * config/sparc/sparc.c (get_pc_symbol): Rename into
24772 add_pc_to_pic_symbol.
24773 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
24774 (load_pic_register): Account for previous changes.
24775 Use reg_names. Don't create the label twice.
24776 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
24777 UNSPEC_LOAD_PCREL_SYM.
24778 (get_pc): Rename into load_pcrel_sym. Add predicate to
24779 operands. Remove condition.
24781 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
24783 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
24784 RECORD, UNION & QUAL_UNION is actually a binfo.
24786 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
24787 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
24788 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
24789 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
24790 * dwarf2out.c (add_data_member_location_attribute): Likewise.
24791 (gen_inheritance_die): Likewise.
24792 * tree-dump.c (deque_and_dump): Likewise.
24793 * doc/c-tree.texi (Binfos): Add under reconstruction note.
24795 2004-07-06 Steven Bosscher <stevenb@suse.de>
24797 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24799 * config/mcore/mcore.md: Model memory latency with a simple DFA
24800 pipeline description instead of a define_function_unit.
24802 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24804 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
24805 * langhooks.h (var_mod_type_p): Likewise.
24806 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
24807 * expr.c (count_type_elements): Properly handle return from
24808 array_type_nelts and properly test for overflow.
24809 * gimplify.c (gimplify_init_constructor): Properly handle return
24810 from array_type_nelts.
24811 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
24812 * integrate.c (copy_decl_for_inlining): Correct comments.
24813 * tree-inline.c (remap_decl): Update comments, remove dead code,
24814 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
24815 (remap_type): Only remap if variably modified by vars in function
24817 (copy_body_r): Use compatible_type langhooks to see when can fold.
24818 (setup_one_parameter): Don't remap type.
24819 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
24820 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
24821 compute TREE_INVARIANT for decl case.
24822 (find_var_from_fn): New function.
24823 (variably_modified_type_p): Add arg and call new function.
24824 * tree.h (variably_modified_type_p): Add extra arg.
24826 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
24828 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
24829 (goto_handler_and_restore_v9): Delete disabled insn.
24830 (goto_handler_and_restore_v9_sp64): Likewise.
24832 2004-07-05 Roger Sayle <roger@eyesopen.com>
24834 * calls.c (load_register_parameters): Call expand_shift instead
24835 of expand_binop with ashl_optab (or other shift optab) directly.
24836 * expr.c (emit_group_load, emit_group_store): Likewise.
24837 * function.c (assign_parm_setup_block): Likewise.
24838 * stmt.c (shift_return_value): Likewise.
24840 2004-07-05 Jakub Jelinek <jakub@redhat.com>
24842 * expr.c (expand_assignment): Disable the bitfield += optimizations.
24844 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
24846 * doc/sourcebuild.texi: Revert previous patch.
24848 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
24850 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
24851 TARGET_MEM_FUNCTIONS.
24852 * system.h: Poison TARGET_MEM_FUNCTIONS.
24853 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
24854 bcmp_libfunc, bzero_libfunc): Remove.
24855 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
24857 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
24858 * doc/standards.texi: Don't mention calling BSD string functions.
24859 * doc/invoke.texi: Likewise. Mention that memmove may be called.
24860 * config/vax/t-memfuncs: New.
24861 * config/memcmp.c, config/memcpy.c, config/memmove.c,
24862 config/memset.c: New.
24863 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
24864 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
24866 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
24867 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
24868 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
24869 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
24870 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
24871 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
24872 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
24873 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
24874 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
24875 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
24877 2004-07-05 Richard Henderson <rth@redhat.com>
24879 * function.c (assign_parm_setup_reg): Properly rename variables in
24880 FUNCTION_ARG_CALLEE_COPIES section.
24882 2004-07-05 Zack Weinberg <zack@codesourcery.com>
24884 * tree-mudflap.c: Include cgraph.h.
24885 (mf_init_extern_trees): Rename to mudflap_init. Export.
24886 Rewrite to create synthetic declarations instead of looking
24887 up declarations from mf-runtime.h.
24888 (mf_make_builtin, mf_make_cache_struct_type): New functions.
24889 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
24890 Correct commentary.
24891 (execute_mudflap_function_decls, mudflap_register_call):
24892 Don't call mf_init_extern_trees.
24893 (mudflap_finish_file): Use cgraph_build_static_cdtor.
24895 * tree-mudflap.h: Update prototypes.
24896 * c-mudflap.c: Delete file.
24897 * c-common.c: Include tree-mudflap.h.
24898 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
24899 * Makefile.in: Remove all references to c-mudflap.o.
24900 Update dependencies.
24902 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24904 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
24905 displacements with the spatial-locality cache-control completer.
24907 2004-07-05 Zack Weinberg <zack@codesourcery.com>
24909 * langhooks.c: Don't include gt-langhooks.h.
24910 (var_labelno): Delete.
24911 (lhd_set_decl_assembler_name): Do not append a distinguishing
24912 number to file-scope internal-linkage declarations for the first
24913 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
24914 the declaration itself (if at block scope), or its containing
24915 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
24918 * opts.c (cur_in_fname): New global.
24919 * opts.h: Declare it.
24920 * tree.c: Include opts.h.
24921 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
24922 DECL_UID equal to cur_in_fname.
24923 (copy_node_stat): Do not change DECL_UID when copying a
24924 TRANSLATION_UNIT_DECL.
24925 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
24926 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
24928 * c-decl.c (c_static_assembler_name): Delete.
24929 * c-tree.h (c_static_assembler_name): Delete prototype.
24930 * c-lang.c, objc/objc-lang.c: Don't override
24931 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
24933 * Makefile.in (tree.o): Update dependencies.
24934 (GTFILES): Remove langhooks.c.
24936 2004-07-05 Roger Sayle <roger@eyesopen.com>
24938 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
24939 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
24940 Normalize "X % C" as "X % -C" for signed modulus and negative C.
24941 Optimize "X % -Y" as "X % Y" for signed modulus.
24942 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
24943 into "((unsigned) X % Y) == 0".
24945 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
24947 * sourcebuild.texi (Config Fragments): Use @comma{} in
24948 cross-reference to section title.
24950 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24952 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
24953 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
24954 (gimplify_target_expr, gimplify_expr): Likewise.
24955 (copy_if_shared_r): No longer need special case for BIND_EXPR.
24956 (unshare_body, unvisit_body): Only look at nested if BODY_P is
24958 (gimplify_compound_lval): See if we can strip any useless conversion.
24959 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
24961 (gimplify_modify_expr_to_memset): Likewise.
24962 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
24963 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
24964 (declare_inline_vars): Likewise.
24965 (walk_type_fields): New function.
24966 (walk_tree): Use it.
24967 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
24969 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
24970 (sra_walk_modify_expr): Allow init function to fail.
24971 (scan_init): Now returns bool.
24972 (generate_element_init): If can't understand INIT, return false.
24973 (scalarize_init): Return false if generate_element_init does.
24975 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
24978 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
24979 bounds if bounds aren't constant.
24981 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
24983 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
24984 to type hooks; remove bogus PARAMS.
24986 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
24988 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
24989 * dwarf2out.c (add_data_member_location_attribute): Check for
24991 * tree.c (tree_node_kinds): Add "binfos".
24992 (binfo_lang_slots): New.
24993 (make_node_stat): Add TREE_BINFO.
24994 (make_tree_binfo_stat): New.
24995 (tree_node_structure): Add TREE_BINFO.
24996 * tree.def (TREE_BINFO): New.
24997 * tree.h (REC_OR_UNION_CHECK): Rename to ...
24998 (RECORD_OR_UNION_CHECK): ... here.
24999 (NOT_RECORD_OR_UNION_CHECK): New.
25000 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
25001 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
25002 RECORD_OR_UNION_CHECK.
25003 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
25004 (TYPE_LANG_SLOT_1): New.
25005 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
25006 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
25007 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
25008 (BINFO_ELTS): Remove.
25009 (BINFO_LANG_SLOT): New.
25010 (struct tree_binfo): New.
25011 (binfo_lang_slots): Declare.
25012 (enum tree_node_structure_enum): Add TS_BINFO.
25013 (union tree_node): Add binfo.
25014 (make_tree_binfo_stat): Declare.
25015 (make_tree_binfo): New.
25016 (enum tree_node_kind): Add binfo_kind.
25018 * objc/objc-act.c (start_class, objc_declare_protocols,
25019 start_protocols): Use TYPE_LANG_SLOT_1.
25020 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
25022 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
25023 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
25024 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
25025 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
25027 2004-07-05 Steven Bosscher <stevenb@suse.de>
25029 * rtl.h (struct rtx_def): Remove the integrated flag.
25030 Use the return_val flag for MEM_SCALAR_P.
25031 Reshuffle and update flags in CLEAR_RTX_FLAGS.
25033 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
25036 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
25037 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
25040 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
25042 * var-tracking.c: Fix some comments.
25043 (frame_stack_adjust): New.
25044 (vt_stack_adjustments): Init stack_adjust of entry block to
25045 minus stack adjustment of function prologue.
25046 (adjust_stack_reference): Do not adjust if adjustment == 0.
25047 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
25048 (emit_notes_in_bb): Likewise.
25049 (vt_add_function_parameters): Do not adjust locations of
25050 function arguments.
25051 (vt_initialize): Compute the stack adjustment of function
25052 prologue and offset the initial "location" of frame_base_decl
25053 from the stack pointer after prologue.
25055 2004-07-04 Richard Henderson <rth@redhat.com>
25057 * function.c (struct assign_parm_data_all): New.
25058 (struct assign_parm_data_one): New.
25059 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
25060 assign_parm_find_data_types, assign_parms_setup_varargs,
25061 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
25062 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
25063 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
25064 assign_parm_setup_block, assign_parm_setup_reg,
25065 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
25066 (assign_parms): ... here.
25068 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
25070 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
25071 now are bitmap_set_t's.
25072 (bitmap_insert_into_set): No point in inserting the value if
25074 (bitmap_set_contains): New function.
25075 (bitmap_set_replace_value): Add comment on why we do it
25077 (set_contains): Removed.
25078 (bitmap_set_subtract_from_value_set): New name of
25079 set_subtract now that it's arguments are two different
25082 (bitmap_find_leader): Change algorithm used.
25083 (find_or_generate_expression): Update use of functions for new
25085 (create_expression_by_pieces): Ditto.
25086 (insert_aux): Ditto.
25088 (add_to_sets): Ditto.
25090 (execute_pre): Ditto.
25091 (compute_avail): Ditto.
25092 Also ignore virtual phis.
25094 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25096 * combine.c (simplify_comparison): Fix comment typo.
25098 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
25100 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
25101 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
25102 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
25103 (output_restore): Change parameter from 'insn' to 'pat'.
25104 (output_return): Adjust call to output_restore.
25105 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
25106 Adjust call to output_restore.
25108 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25110 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
25111 and assert system is bsd.
25113 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25115 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
25116 (TARGET_SWITCHES): Remove -mdebugc.
25117 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
25118 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
25119 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
25120 (sle_[sd]i_reg): Delete.
25122 2004-07-04 Steven Bosscher <stevenb@suse.de>
25124 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
25126 * config/iq2000/iq2000.md: Translate old pipeline description to an
25127 equivalent new one.
25129 2004-07-04 Roger Sayle <roger@eyesopen.com>
25131 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
25132 Ensure the replacement rhs is valid gimple before performing
25133 the substitution. Return false if these sanity checks fail.
25134 (fold_stmt): Only set changed to true, if set_rhs returns true.
25135 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
25138 2004-07-04 Richard Henderson <rth@redhat.com>
25141 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
25143 2004-07-04 Mark Mitchell <mark@codesourcery.com>
25145 * configure.ac (ranlib_flags): New variable.
25146 * Makefile.in (RANLIB_FLAGS): New variable.
25147 (libbackend.a): Use it.
25148 * configure: Regenerated.
25150 2004-07-04 Roger Sayle <roger@eyesopen.com>
25152 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
25153 a "sign mask" instead of using ashr_optab directly.
25155 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25157 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
25158 * doc/cppopts.texi: Clarify processing of command-line defines.
25160 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
25162 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
25164 2004-07-04 Richard Henderson <rth@redhat.com>
25166 * rtl.def (ADDRESSOF): Remove.
25167 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
25168 (find_base_term, memrefs_conflict_p): Likewise.
25169 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
25170 (fold_rtx, cse_insn, set_live_p): Likewise.
25171 * dwarf2out.c (mem_loc_descriptor): Likewise.
25172 (add_location_or_const_value_attribute): Likewise.
25173 * emit-rtl.c (copy_insn_1): Likewise.
25174 * explow.c (memory_address): Likewise.
25175 * expmed.c (store_split_bit_field): Likewise.
25176 * expr.c (expand_expr_real_1): Likewise.
25177 * function.c (instantiate_decl
25178 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
25179 * genrecog.c (preds, validate_pattern): Likewise.
25180 * integrate.c (copy_rtx_and_substitute): Likewise.
25181 * recog.c (general_operand, register_operand): Likewise.
25182 (memory_address_p): Likwise.
25183 * reload1.c (eliminate_regs, elimination_effects): Likewise.
25184 * rtl.c (copy_rtx): Likewise.
25185 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
25186 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
25187 * rtlhooks.c (gen_lowpart_general): Likewise.
25188 * stmt.c (expand_asm_operands): Likewise.
25189 * web.c (entry_register, replace_ref, web_main): Likewise.
25190 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
25191 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
25192 * config/arm/arm.c (thumb_rtx_costs): Likewise.
25193 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
25194 * config/frv/frv.c (move_destination_operand, move_source_operand,
25195 condexec_dest_operand, condexec_source_operand,
25196 condexec_memory_operand): Likewise.
25197 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
25198 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
25199 (destination_xfmode_operand): Likewise.
25200 * config/mips/mips.h (PREDICATE_CODES): Likewise.
25201 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
25202 * config/s390/s390.c (general_s_operand): Likewise.
25203 * config/s390/s390.md (mov*): Likewise.
25204 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
25206 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
25207 * expr.c (expand_expr_real_1): Likewise.
25208 * stmt.c (expand_decl): Likewise.
25209 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25211 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
25212 postponed_insns, put_var_into_stack, put_reg_into_stack,
25213 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
25214 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
25215 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
25216 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
25217 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
25218 purge_bitfield_addressof_replacements, purge_addressof_replacements,
25219 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
25220 struct insns_for_mem_walk_info, insns_for_mem_walk,
25221 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
25222 setjmp_protect_args): Remove.
25223 (push_function_context_to): Don't handle var_refs_queue.
25224 (pop_function_context_from, free_after_compilation): Likewise.
25225 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
25226 (assign_parms, allocate_struct_function): Likewise.
25227 (use_register_for_decl): New.
25228 (expand_function_end): Don't setjmp_protect.
25229 * function.h (struct emit_status): Update commentary.
25230 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
25231 (max_parm_reg, parm_reg_stack_loc): Remove.
25232 * passes.c (DFI_addressof): Remove.
25233 (dump_file_info): Remove addressof.
25234 (rest_of_handle_addressof): Remove.
25235 (rest_of_compilation): Don't call it.
25236 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
25237 * stmt.c (expand_decl): Use use_register_for_decl.
25238 * tree.h: Update decls.
25239 * web.c (mark_addressof): Remove.
25240 * doc/invoke.texi (-dF): Remove.
25242 2004-07-03 Richard Henderson <rth@redhat.com>
25244 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
25245 instead of gen_mem_addressof.
25246 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
25247 TImode output register.
25249 2004-07-03 Richard Henderson <rth@redhat.com>
25251 PR tree-optimization/16341
25252 * tree-sra.c (sra_walk_function): Increment to next stmt before
25253 processing the current stmt.
25254 (sra_insert_after): Always use BSI_SAME_STMT.
25256 2004-07-03 Richard Henderson <rth@redhat.com>
25258 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
25259 fp plus with minus.
25261 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25263 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
25264 with tree_int_cst_equal.
25266 2004-07-03 Andreas Schwab <schwab@suse.de>
25268 * config/ia64/ia64.md: Define new attribute "empty".
25269 (prologue_use, nop_x, insn_group_barrier): Set it.
25271 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
25272 skip over "empty" insns.
25274 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25276 * tree-inline.c (initialize_inlined_parameters): Pass proper function
25277 context to gimplify_body.
25278 (walk_tree): Don't walk into types twice.
25279 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
25281 * tree-sra.c (generate_element_init): Remove any useless conversions.
25283 * gimplify.c (gimplify_conversion): Remove stripping useless
25284 conversions from here.
25285 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
25286 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
25287 Unshare before substituting PLACEHOLDER_EXPR.
25288 (gimplify_modify_expr_to_memset): Likewise.
25289 Pass address of TO to memset, not TO itself.
25290 (gimplify_init_constructor): Make copy of OBJECT so we have it each
25291 time we make an expression (to match a PLACEHOLDER_EXPR).
25293 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
25294 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
25295 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
25296 * tree-ssa-dom.c (local_fold): Likewise.
25298 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
25299 * langhooks.h (strct lang_hooks): New field type_max_size.
25300 * function.c (assign_temp): Call it.
25302 2004-07-03 Steven Bosscher <stevenb@suse.de>
25304 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
25305 * config/sh/sh.md: Convert the SH1 pipeline description to
25308 2004-07-02 Zack Weinberg <zack@codesourcery.com>
25310 * c-decl.c (struct c_binding): Remove contour field; add
25311 depth, invisible, nested fields.
25312 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
25313 (B_IN_EXTERNAL_SCOPE): New convenience macros.
25314 (bind): Add invisible and nested arguments. Initialize
25315 new fields of struct c_binding; adjust loop scanning for
25317 (free_binding_and_advance): Clear structure with memset.
25318 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
25319 in file scope, even if it's in external scope too.
25320 (pushdecl): Adjust to match. Create invisible file-scope
25321 declarations for block-scope forward declarations of static functions.
25322 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
25323 (undeclared_variable, lookup_label, declare_label, define_label)
25324 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
25325 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
25326 (store_parm_decls_oldstyle): Adjust to match.
25327 (diagnose_mismatched_decls): Correct handling of linkage clashes.
25328 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
25330 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
25331 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
25333 2004-07-02 Richard Henderson <rth@redhat.com>
25335 * c-decl.c (grokdeclarator): Don't frob current_function_decl
25336 around variable_size.
25337 (set_decl_nonlocal): Remove.
25338 (store_parm_decls): Add stmts for pending sizes.
25339 * calls.c (calls_function, calls_function_1): Remove.
25340 (precompute_arguments): Don't call it.
25341 * cfgexpand.c (set_save_expr_context): Remove.
25342 (tree_expand_cfg): Don't call it.
25343 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
25344 (dwarf2out_finish): Likewise.
25345 * expr.c (emit_block_move): Adjust addresses to BLKmode.
25346 (store_constructor): Don't pre-evaluate SAVE_EXPR.
25347 (safe_from_p): Don't queue SAVE_EXPRs.
25348 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
25349 or build plain VAR_DECLs.
25350 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
25352 (fold_checksum_tree): Don't special-case SAVE_EXPR.
25353 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
25354 (put_var_into_stack): Don't handle SAVE_EXPR.
25355 (gen_mem_addressof): Likewise.
25356 * function.h (struct function): Remove x_save_expr_regs.
25357 (save_expr_regs): Remove.
25358 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
25359 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
25360 * stor-layout.c (variable_size): Don't set it.
25361 (force_type_save_exprs, force_type_save_exprs_1): Remove.
25362 * tree-inline.c (remap_save_expr): Remove fn argument. Update
25363 all callers. Don't set SAVE_EXPR_CONTEXT.
25364 * tree-inline.h (remap_save_expr): Update decl.
25365 * tree.c (save_expr): Update build size.
25366 (first_rtl_op): Don't handle SAVE_EXPR.
25367 (unsave_expr_1, contains_placeholder_p): Likewise.
25368 (decl_function_context): Likewise.
25369 * tree.def (SAVE_EXPR): Remove args 1 and 2.
25370 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
25371 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
25373 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25375 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
25376 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
25377 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
25378 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
25379 some first-person references and patronizing comments. Based on
25381 * doc/invoke.texi: Don't reference fortran@gnu.org.
25382 * doc/trouble.texi (Warning when a non-void function value is
25383 ignored): Rewrite. From Russ Allbery and Chris Devers.
25385 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
25387 * tree-ssa-pre.c (bitmap_set_t): New.
25388 (bb_value_sets): avail_out is now a bitmap_set_t.
25389 (bitmap_find_leader): New function.
25390 (bitmap_value_insert_into_set): Ditto.
25391 (bitmap_set_copy): Ditto.
25392 (bitmap_value_replace_in_set): Ditto.
25393 (bitmap_set_contains_value): Ditto.
25394 (bitmap_set_new): Ditto.
25395 (bitmap_set_pool): New pool.
25396 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
25397 (insert_aux): Ditto.
25398 (add_to_sets): Ditto.
25399 (compute_avail): Ditto
25400 (eliminate): Ditto.
25403 (execute_pre): Ditto.
25405 2004-07-02 Roger Sayle <roger@eyesopen.com>
25407 * config/rs6000/rs6000.c (struct processor_costs): New structure
25408 used to hold instruction latencies/sizes for processor types.
25409 (rs6000_cost): New global variable pointing to current CPU's costs.
25410 (rs6000_override_options): Initialize rs6000_cost to point to the
25411 appropriate cost table based upon rs6000_cpu and optimize_size.
25412 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
25415 2004-07-02 Richard Henderson <rth@redhat.com>
25417 * expmed.c (make_tree): Don't use SET_DECL_RTL.
25419 2004-07-02 Steven Bosscher <stevenb@suse.de>
25421 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
25423 2004-07-01 Richard Henderson <rth@redhat.com>
25425 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
25426 (alpha_gp_save_rtx): Use assign_stack_local instead of
25429 2004-07-01 Richard Henderson <rth@redhat.com>
25431 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
25432 (alpha_rtx_cost_data): Update to match.
25433 (alpha_rtx_cost_size): New.
25434 (alpha_rtx_costs): Honor optimize_size.
25436 2004-07-01 Richard Henderson <rth@redhat.com>
25438 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
25439 * cfgexpand.c (tree_expand_cfg): Do it here.
25440 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
25441 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
25442 * config/mips/mips.c (mips_output_mi_thunk): And here.
25443 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
25444 * config/sh/sh.c (sh_output_mi_thunk): And here.
25445 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
25447 2004-07-01 Richard Henderson <rth@redhat.com>
25449 * tree.def (RTL_EXPR): Remove.
25450 * c-typeck.c (lvalue_p): Don't handle it.
25451 * expr.c (safe_from_p): Likewise.
25452 (expand_expr_real_1): Likewise.
25453 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
25454 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
25455 * gengtype.c (adjust_field_tree_exp): Likewise.
25456 * stmt.c (warn_if_unused_value): Likewise.
25457 * tree-gimple.c (recalculate_side_effects): Likewise.
25458 * tree-pretty-print.c (dump_generic_node): Likewise.
25459 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
25460 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
25461 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
25463 * stmt.c (struct stmt_status): Remove x_last_expr_type,
25464 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
25465 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
25466 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
25467 all the bits that tracked last_expr.
25468 (expand_end_bindings): Don't track last_expr.
25469 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
25470 (clear_last_expr): Remove.
25471 (expand_asm): Don't call it.
25472 (expand_asm_operands, expand_end_cond): Likewise.
25473 (expand_naked_return, expand_null_return_1): Likewise.
25474 * c-typeck.c (c_begin_compound_stmt): Likewise.
25475 * cfgexpand.c (expand_block): Use expand_expr_stmt.
25476 * expr.c (expand_expr_real_1): Likewise.
25477 * tree.h: Update prototypes.
25479 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
25480 (struct emit_status): Remove sequence_rtl_expr.
25481 (struct function): Remove x_rtl_expr_chain.
25482 (seq_rtl_expr, rtl_expr_chain): Remove.
25483 * function.c (struct temp_slot): Remove rtl_expr.
25484 (assign_stack_temp_for_type): Don't set it.
25485 (free_temp_slots, pop_temp_slots): Don't check it.
25486 (free_after_compilation): Don't clear x_rtl_expr_chain.
25487 (fixup_var_refs): Don't search it.
25488 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
25489 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
25491 (push_topmost_sequence): Likewise.
25492 (end_sequence, init_emit): Likewise.
25493 (start_sequence_for_rtl_expr): Remove.
25494 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
25495 * rtl.h (preserve_rtl_expr_result): Remove.
25497 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
25499 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
25500 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
25503 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
25505 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
25506 (STANDARD_STARTFILE_PREFIX_2): Define.
25507 (standard_startfile_prefix_1): Initialize to
25508 STANDARD_STARTFILE_PREFIX_1.
25509 (standard_startfile_prefix_2): Initialize to
25510 STANDARD_STARTFILE_PREFIX_2.
25511 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
25512 (STANDARD_STARTFILE_PREFIX_1): Define.
25513 (STANDARD_STARTFILE_PREFIX_2): Define.
25514 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
25515 (STANDARD_STARTFILE_PREFIX_2): Document.
25517 2004-07-01 Richard Henderson <rth@redhat.com>
25519 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
25520 in order to disable scalarization. Instead set a flag and wait
25521 for a candidate decl.
25523 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
25525 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
25526 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
25527 Use terminology "testsuite" and "enumerated".
25529 2004-07-01 Richard Henderson <rth@redhat.com>
25531 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
25532 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
25533 (initial_return_save): Likewise.
25534 (flush_queued_reg_saves): Remap register numbers.
25535 (dwarf2out_return_reg): Likewise.
25537 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25539 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
25541 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
25542 access functions for lower bound and element size and only output
25543 if lower bound nonzero or element size not same as that of type.
25544 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
25546 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25548 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
25550 2004-07-01 Per Bothner <per@bothner.com>
25552 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
25554 2004-07-01 Jakub Jelinek <jakub@redhat.com>
25556 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
25557 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
25558 first operand. Don't optimize if the bitfield is volatile.
25560 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25562 * c-pretty-print.c (pp_c_postfix_expression): Handle
25563 floating-point comparison operators.
25564 (pp_c_expression): Pass floating-point comparison
25565 operators to pp_c_postfix_expression.
25567 2004-07-01 Roger Sayle <roger@eyesopen.com>
25569 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
25570 rtx_cost instead of "had_mult" to determine whether the transformed
25571 expression is cheaper than the original.
25573 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
25575 * alias.c (get_alias_set, canon_rtx, get_addr,
25576 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
25578 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
25579 expand_builtin): Likewise.
25580 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
25582 * combine.c (can_combine_p, combinable_i3pat, try_combine,
25583 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
25584 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
25585 record_dead_and_set_regs_1, get_last_value_validate,
25586 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
25587 * cse.c (check_dependence, canon_hash, equiv_constant,
25588 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
25589 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
25590 count_reg_usage): Likewise.
25591 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
25592 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
25593 cselib_record_sets): Likewise.
25594 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
25595 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
25596 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
25597 * df.c (df_uses_record): Likewise.
25598 * dojump (do_jump): Likewise.
25599 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
25600 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
25601 decl_start_label): Likewise.
25602 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
25603 operand_subword, change_address_1, make_safe_from): Likewise.
25604 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
25605 stabilize, force_not_mem): Likewise.
25606 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
25607 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
25608 * expr.c (convert_move, convert_modes, emit_block_move,
25609 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
25610 emit_move_insn_1, expand_assignment, store_expr,
25611 store_constructor_field, store_constructor, store_field,
25612 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
25614 * final.c (cleanup_subreg_operands, alter_subreg,
25615 get_mem_expr_from_op): Likewise.
25616 * flow.c (notice_stack_pointer_modification_1,
25617 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
25619 * function.c (mark_temp_addr_taken, preserve_temp_slots,
25620 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
25621 optimize_bit_field, flush_addressof, purge_addressof_1,
25622 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
25623 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
25624 keep_stack_depressed): Likewise.
25625 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
25626 noce_process_if_block, find_memory): Likewise.
25627 * integrate.c (subst_constants, allocate_initial_values): Likewise.
25628 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
25629 update_equiv_regs): Likewise.
25630 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
25631 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
25632 * optabs.c (expand_abs, emit_unop_insn): Likewise.
25633 * passes.c (rest_of_handle_final): Likewise.
25634 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
25635 move2add_note_store): Likewise.
25636 * ra-build.c (detect_remat_webs): Likewise.
25637 * ra-debug.c (dump_static_insn_cost): Likewise.
25638 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
25639 * recog.c (validate_change, apply_change_group, cancel_changes,
25640 validate_replace_rtx_1, general_operand, register_operand,
25641 nonmemory_operand, push_operand, pop_operand, memory_operand,
25642 indirect_operand, asm_operand_ok, offsettable_memref_p,
25643 offsettable_nonstrict_memref_p, constrain_operands,
25644 store_data_bypass_p): Likewise.
25645 * reg-stack.c (subst_stack_regs_pat): Likewise.
25646 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
25647 copy_cost, reg_scan_mark_refs): Likewise.
25648 * regmove.c (optimize_reg_copy_3, stack_memref_p,
25649 combine_stack_adjustments_for_block): Likewise.
25650 * regrename.c (copyprop_hardreg_forward_1): Likewise.
25651 * reload.c (can_reload_into, push_reload, decompose, immune_p,
25652 find_reloads, find_reloads_address, find_reloads_address_1,
25653 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
25654 find_equiv_reg): Likewise.
25655 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
25656 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
25657 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
25658 delete_address_reloads): Likewise.
25659 * resource.c (mark_referenced_resources): Likewise.
25660 * rtlanal.c (get_jump_table_offset, count_occurrences,
25661 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
25662 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
25663 num_sign_bit_copies1): Likewise.
25664 * rtlhooks.c (gen_lowpart_general): Likewise.
25665 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
25666 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
25667 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
25668 sdbout_global_decl): Likewise.
25669 * simplify-rtx.c (simplify_subreg): Likewise.
25670 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
25671 expand_anon_union_decl, expand_end_case_type): Likewise.
25672 * unroll.c (calculate_giv_inc): Likewise.
25673 * var-tracking.c (stack_adjust_offset_pre_post,
25674 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
25675 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
25676 vt_add_function_parameters): Likewise.
25677 * varasm.c (make_var_volatile, notice_global_symbol,
25678 assemble_external, decode_addr_const, mark_weak,
25679 default_encode_section_info): Likewise.
25681 2004-07-01 Steven Bosscher <stevenb@suse.de>
25683 * stmt.c (check_seenlabel): Remove.
25684 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
25686 2004-07-01 Richard Henderson <rth@redhat.com>
25688 * function.h (struct function): Remove x_function_call_count.
25689 (function_call_count): Remove.
25690 * calls.c (expand_call): Don't set it.
25691 * integrate.c (copy_rtx_and_substitute): Likewise.
25693 * function.h (struct function): Remove x_cleanup_label.
25694 (cleanup_label): Remove.
25695 * stmt.c (expand_value_return): Don't use it.
25696 * function.c (free_after_compilation): Don't set it.
25697 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
25698 * cfgexpand.c (tree_expand_cfg): Update call.
25699 * tree.h (expand_function_start): Update decl.
25701 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
25704 * c-lang.c (c_initialize_diagnostics): Move from here ...
25705 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
25706 (c_tree_printer): Use pretty-printer to format %T.
25707 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
25708 before '*' if not C++.
25709 (pp_c_direct_abstract_declarator): Don't try to print array upper
25710 bound for flexible array members.
25711 * c-tree.h: Include "diagnostic.h".
25712 (c_initialize_diagnostics): Declare.
25713 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
25714 * c-format.c (format_type_warning): New function. Improve
25715 diagnostics for incorrect format argument types.
25716 (check_format_types): Use it. Add two parameters. Use the
25717 TYPE_MAIN_VARIANT of wanted_type.
25718 (check_format_info_main): Pass new parameters to
25719 check_format_types.
25720 (struct format_wanted_type): Update comment.
25722 2004-07-01 Nick Clifton <nickc@redhat.com>
25724 * target.h (struct gcc_target): Add new field to struct cxx:
25725 import_export_class.
25726 * target-def.h (TARGET_CXX): Initialise the new field.
25727 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
25729 * doc/tm.texi: Document the new target hook.
25731 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25733 * builtins.c (fold_builtin_classify): Fix typo.
25735 2004-07-01 Richard Henderson <rth@redhat.com>
25737 * function.c (identify_blocks, identify_blocks_1): Remove.
25738 * function.h (identify_blocks): Remove.
25739 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
25741 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25743 * builtins.c (fold_builtin_classify): New.
25744 (fold_builtin_unordered_cmp): Fix commentary.
25745 (fold_builtin): Use it.
25746 * builtins.def: Define builtins for isnan,
25747 isnanf, isnanl, finite, finitef, finitel,
25748 isinf, isinff, isinfl.
25750 2004-07-01 Richard Henderson <rth@redhat.com>
25752 * function.h (struct function): Remove dont_emit_block_notes.
25753 * gimple-low.c (lower_function_body): Don't set it.
25754 * cfgexpand.c (expand_block): Don't check it.
25755 * cfglayout.c (insn_locators_initialize): Likewise.
25756 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
25757 * passes.c (rest_of_compilation): Likewise.
25758 * stmt.c (expand_start_bindings_and_block): Likewise.
25759 (expand_end_bindings): Likewise.
25761 2004-07-01 Richard Henderson <rth@redhat.com>
25763 * cgraph.h (cgraph_build_static_cdtor): Declare.
25764 * cgraphunit.c (cgraph_build_static_cdtor): New.
25765 * c-objc-common.c (build_cdtor): Use it.
25766 * coverage.c (create_coverage): Likewise.
25767 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
25768 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
25770 See ChangeLog.11 for earlier changes.