1 2004-08-07 Jason Merrill <jason@redhat.com>
3 * gimplify.c (gimplify_call_expr): Make return in memory explicit.
4 (gimplify_modify_expr_rhs): Likewise.
5 * c-common.c (c_warn_unused_result): Check TREE_USED before
6 warning about a CALL_EXPR with an unused value.
8 2004-08-06 Mark Mitchell <mark@codesourcery.com>
10 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
11 to the compiler. Use -fshort-wchar by default.
13 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
15 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
16 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
18 * doc/invoke.texi (param): Document min-crossjump-insns.
20 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
23 * c.opt (Wmissing-field-initializers): New option.
24 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
25 * c-typeck.c (pop_init_level): Guard the missing field warning with
26 warn_missing_field_initializers rather than extra_warnings.
27 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
28 some of the explanation from...
29 (-Wextra): ...here. Say that the missing field warning can be
30 seperately controlled by -Wmissing-field-initializers.
32 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
34 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
35 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
36 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
37 * tree.def (ENTRY_VALUE_EXPR): Remove.
39 2004-08-06 Jakub Jelinek <jakub@redhat.com>
41 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
42 the places where it is actually needed. Don't use repz; stosb
43 for -Os with sufficiently small constant sizes.
44 For sufficiently small repz; stos{l,q} repeat counts use a sequence
45 of stos{l,q} instructions instead.
47 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
49 PR tree-optimization/16807
50 * loop-iv.c (dump_iv_info): Dump invariants correctly.
51 (iv_subreg, iv_extend): Express value of invariant purely in
54 2004-08-06 Mark Mitchell <mark@codesourcery.com>
56 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
57 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
59 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
61 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
62 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
64 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
65 pattern until reload is finished to allow better code generation
66 and split them completely into separate instrunctions.
67 (*andsi3_split): New pattern.
69 2004-08-05 Mark Mitchell <mark@codesourcery.com>
71 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
72 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
73 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
74 * tree.h (handle_dll_attribute): Declare. Test
75 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
76 * c-common.h (c_determine_visibility): Declare.
77 * c-common.c (c_determine_visibility): New function.
78 * c-decl.c (finish_decl): Use it.
79 (finish_function): Likewise.
80 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
81 zero, by default. Use #if, not #ifdef, to test it.
82 * config/arm/arm.c (arm_attribute_table): Use
83 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
85 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
86 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
88 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
89 * config/i386/i386.c (ix86_attribute_table): Use
90 handle_dll_attribute for dllimport/dllexport. Test
91 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
92 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
93 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
95 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
97 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
99 * doc/extend.texi (dllexport): Clarify and correct documentation.
100 (dllimport): Likewise.
101 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
102 handle_dll_attribute.
104 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
106 * tree-ssa-loop-manip.c: New file.
107 * Makefile.in (tree-ssa-loop-manip.o): Add.
108 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
110 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
112 (tree_ssa_loop_done): Verify loop closed ssa form.
113 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
115 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
117 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
118 pa_asm_output_aligned_local): New functions.
119 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
120 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
121 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
122 pa_asm_output_aligned_common.
123 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
124 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
125 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
126 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
127 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
128 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
129 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
130 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
133 2004-08-05 Andrew Pinski <apinski@apple.com>
135 * objc/objc-act.c (build_objc_string_object): Mark the address
136 expression as constant.
138 2004-08-05 David Edelsohn <edelsohn@gnu.org>
140 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
141 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
142 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
144 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
146 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
147 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
148 out, and associated obsolete comments.
150 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
152 * tree.h (force_fit_type): Return a tree, take three flags.
153 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
154 TREE_CONSTANT_OVERFLOW here.
155 (int_const_binop, const_binop): Adjust.
156 (size_int_type): Do sign extension here.
157 (fold_convert_const, optimize_bit_field_compare,
158 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
159 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
160 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
162 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
164 PR tree-optimization/16864
165 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
166 for ssa names without default_def.
168 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
170 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
171 frame pointer, restore eax with an ebp-relative address.
173 2004-08-04 Geoffrey Keating <geoffk@apple.com>
176 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
177 * c-common.h (make_rtl_for_local_static): Delete.
178 * c-decl.c (shadow_tag_warned): Clean up comment.
179 (finish_decl): Clean up spacing. Use set_user_assembler_name when
180 appropriate. Don't pass asmspec to rest_of_decl_compilation.
181 * c-semantics.c (make_rtl_for_local_static): Delete.
182 * expr.c (init_block_move_fn): Use set_user_assembler_name.
183 (init_block_clear_fn): Likewise.
184 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
185 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
186 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
187 * tree.h (make_decl_rtl): Remove second parameter.
188 (set_user_assembler_name): New.
189 * varasm.c (set_user_assembler_name): New.
190 (make_decl_rtl): Remove second parameter. Update callers in many
193 2004-08-05 Adam Nemet <anemet@lnxw.com>
195 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
196 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
198 * gthr-lynx.h: New file.
199 * config/lynx-ng.h: Remove file.
200 * config/lynx.h: Update to LynxOS 4.0.
201 * config/t-lynx: New file.
202 * config/i386/lynx-ng.h: Remove file.
203 * config/i386/lynx.h: Update to LynxOS 4.0.
204 * config/rs6000/lynxbase.h: Remove file.
205 * config/rs6000/lynx.h: Update to LynxOS 4.0.
206 * config/rs6000/t-lynx: New file.
207 * doc/install.texi (Options specification): Remove reference to
208 LynxOS from systems where --with-gnu-as makes a difference.
210 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
212 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
214 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
216 (c_cpp_builtins): Call it.
217 * doc/cpp.texi: Update.
219 2004-08-04 David Edelsohn <edelsohn@gnu.org>
221 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
224 2004-08-04 Jan Hubicka <jh@suse.cz>
226 * basic-block.h (profile_staus): New global variable.
227 * cfg.c (profile_status): Declare.
228 (check_bb_profile): Break out from ....; use profile_status
229 (dump_flow_info): ... here.
230 * cfgbuild.c (find_basic_blocks): Set profile_status.
231 * cfgexpand.c (tree_expand_cfg): Likewise.
232 * predict.c (estimate_probability): Likewise.
233 * profile.c (branch_prob): Likewise.
234 * tree-cfg.c (build_tree_cfg): Likewise.
235 (dump_function_to_file): Use check_bb_profile.
236 * tree-pretty-print (dump_bb_header): Likewise.
237 * tree-profile.c (do_tree_profiling): Cleanup.
239 2004-08-04 Zack Weinberg <zack@codesourcery.com>
241 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
242 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
243 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
244 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
245 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
246 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
247 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
248 (ggc-none.o, errors.o): Move rule to generators section;
249 correct dependencies.
250 (min-insn-modes.o): Move rule to generators section; remove
251 unnecessary explicit command; correct dependencies.
252 (print-rtl.o, print-rtl1.o): Correct dependencies.
253 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
254 (mostlyclean): Update.
256 * errors.c: Include bconfig.h not config.h. Correct comment.
257 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
258 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
259 * print-rtl.c: Don't include tm_p.h.
261 * rtl.h: Move forward-decl of struct function down where it's
262 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
263 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
265 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
266 Jeff Law <law@redhat.com>
268 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
269 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
270 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
271 manipulate the duplicated ssa names.
272 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
273 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
274 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
276 (release_ssa_name): Do not release ssa names that may have multiple
278 * tree.h (release_ssa_name_force, mark_for_rewrite,
279 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
280 marked_ssa_names): Declare.
281 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
282 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
283 Update call to rewrite_ssa_into_ssa.
285 2004-08-04 Mark Mitchell <mark@codesourcery.com>
287 * defaults.h (TARGET_DECLSPEC): New macro.
288 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
289 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
290 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
291 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
293 (TARGET_DECLSPEC): Define.
294 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
296 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
298 (TARGET_DECLSPEC): Define.
299 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
301 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
303 * doc/tm.texi (TARGET_DECLSPEC): Document.
305 * doc/extend.texi: Fix typo in comment.
307 2004-08-04 Paul Brook <paul@codesourcery.com>
309 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
310 (TARGET_CXX): Use it.
311 * target.h (struct gcc_target): Add cdtor_returns_this.
312 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
313 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
314 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
316 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
318 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
319 low/high pair. Do range checking directly.
320 (interpret_integer): Adjust.
322 2004-08-04 Nick Clifton <nickc@redhat.com>
324 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
326 * doc/invoke.texi: Document this new switch and also the -mrenesas
329 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
331 * cfglayout.c (insn_locators_initialize): Update the current
332 location before initializing a location.
334 2004-08-03 Zack Weinberg <zack@codesourcery.com>
336 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
337 (dbxout_function_end): Return after emitting the "Lscope" symbol
338 under the same conditions that this function formerly wasn't called.
339 Add explanatory comments.
342 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
346 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
347 functions, broken out of dbxout_block.
348 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
349 stabs too, if it contains symbols. Use the begin_label and
350 the Lscope label (emitted by dbxout_function_end) for the
353 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
355 * doc/install.texi: Update autoconf version requirements.
357 2004-08-03 Zack Weinberg <zack@codesourcery.com>
359 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
360 * recog.c (general_operand, immediate_operand, nonmemory_operand)
361 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
362 * regclass.c (record_reg_classes): Likewise.
363 * reload.c (find_reloads): Likewise.
364 * reload1.c (reload): Likewise.
366 2004-08-03 Zack Weinberg <zack@codesourcery.com>
368 * gensupport.c (init_md_reader_args_cb): Renamed from
369 init_md_reader_args. Add third option, callback function for
370 parsing program-specific options. Add diagnosis of incorrect
371 number of input files.
372 (init_md_reader): Fold into init_md_reader_args_cb.
373 (init_md_reader_args): Now a thin wrapper around
374 init_md_reader_args_cb.
375 * gensupport.h: Update prototypes.
377 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
378 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
379 * genrecog.c: No need to diagnose lack of an input file;
380 init_md_reader_args will handle it.
381 * genconditions.c: Likewise, and use init_md_reader_args.
382 * genconstants.c: Likewise, and no need to call read_md_rtx.
384 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
386 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
389 2004-08-03 Mike Stump <mrs@apple.com>
391 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
393 * doc/invoke.texi (Darwin Options): Update to reflect above.
395 2004-08-03 Roger Sayle <roger@eyesopen.com>
398 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
399 truncations, not just global truncations.
401 2004-08-03 Andrew Pinski <apinski@apple.com>
404 * loop-iv.c (simplify_using_assignment): Initialize lhs.
406 2004-08-03 Paul Brook <paul@codesourcery.com>
408 * gcc/doc/install.texi: Document MPFR requirement.
410 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
412 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
413 and mmap() explicitly instead of relying on preset autoconf cache
415 * configure: Regenerate.
417 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
420 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
422 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
423 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
426 * config/i386/t-gmm_malloc: New file.
427 * config/i386/t-pmm_malloc: Likewise.
429 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
431 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
432 Tanguy Fautrà <tfautre@pandora.be>
434 * config/i386/pmm_malloc.h: New file.
436 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
438 * config/i386/gmm_malloc.h: New file.
440 2004-08-03 Dale Johannesen <dalej@apple.com>
442 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
443 * c-common.c: Include opts.h.
444 (c_common_get_alias_set): Fix check for a single input file.
445 * toplev.c: Remove current_file_decl.
448 2004-08-03 Mark Mitchell <mark@codesourcery.com>
450 * config.gcc (arm*-*-symbianelf*): New target.
451 * config/arm/symbian.h: New file.
453 * gthr-gnat.c: Add visibility #pragmas.
454 * gthr-gnat.h : Likewise.
456 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
457 (__ffsDI2): Likewise.
458 (__clzSI2): Likewise.
459 (__ctzSI2): Likewise.
460 (__ctzDI2): Likewise.
461 (__popcountSI2): Likewise.
462 (__popcountDI2): Likewise.
463 (__paritySI2): Likewise.
464 (__parityDI2): Likewise.
465 * libgcc2.h: Add visibility #pragmas.
466 (__clzDI2): Add prototype.
467 (__clzSI2): Likewise.
468 (__ctzSI2): Likewise.
469 (__ffsDI2): Likewise.
470 (__ffsSI2): Likewise.
471 (__ctzDI2): Likewise.
472 (__popcountSI2): Likewise.
473 (__popcountDI2): Likewise.
474 (__paritySI2): Likewise.
475 (__parityDI2): Likewise.
476 * unwind-dw2-fde.h: Add visibility #pragmas.
477 * unwind.h: Likewise.
479 2004-08-03 David Edelsohn <edelsohn@gnu.org>
480 Dale Johannesen <dalej@apple.com>
481 Roger Sayle <roger@eyesopen.com>
483 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
484 constants more accurately. Adjust costs for FMA instructions.
485 Add cases for most logical and float operations. Recurse into
488 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
490 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
492 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
494 * ra-build.c (conflicts_between_webs): For webs that cross a call add
495 conflicts to regs_invalidated_by_call.
497 2004-08-03 Paul Brook <paul@codesourcery.com>
499 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
501 2004-08-03 Jan Hubicka <jh@suse.cz>
503 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
506 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
508 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
509 arm968es, arm10e, arm1020e, arm1022e.
510 * invoke.texi: Update list of ARM cores.
511 * arm-tune.md: Regenerate.
513 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
515 * arm/gentune.sh: New file.
516 * arm/t-arm: New file.
517 * arm/arm-tune.md: New file (autogenerated).
518 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
519 * arm.md (attribute tune): Delete. Include arm-tune.md.
521 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
523 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
524 penultimate parameter. All callers adjusted.
525 (struct prefix_list): Remove used_flag_ptr.
526 (find_a_file): Do not set *pl->used_flag_ptr.
527 (warn_B, warn_std_ptr): Remove.
529 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
530 Mostafa Hagog <mustafa@il.ibm.com>
532 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
534 2004-08-02 Geoffrey Keating <geoffk@apple.com>
536 * dwarf2out.c (output_call_frame_info): Don't change data format
537 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
538 label. Use 'true' not '1'.
539 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
542 2004-08-02 Gabriel Dos Reis <gdr@cs.tamu.edu>
544 * gdbinit.in: Reflect previous changes to rtunion_def.
546 2004-08-02 Roger Sayle <roger@eyesopen.com>
548 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
549 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
551 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
553 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
555 * langhooks.h (lang_hooks::builtin_function): Rename parameter
556 from "class" to "bt_class".
558 2004-08-02 Paul Brook <paul@codesourcery.com>
560 PR rtl-optimization/15068
561 * flow.c (init_propagate_block_info): Check condition is reversible.
563 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
565 * gengtype.h (options::info): Change type to const char *.
566 (enum gc_used_enum): Move out of struct type scope.
567 * gengtype.c (create_option): Convert initializer for option::info to
569 (adjust_field_type, walk_type, write_func_for_structure,
570 write_root, write_roots): Remove pointless cast.
572 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
574 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
576 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
578 * rtl.h (union rtunion_def): Have all members start with the
580 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
581 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
582 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
583 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
585 * gengtype.c (adjust_field_rtx_def): Likewise.
586 * rtlanal.c (loc_mentioned_in_p): Likewise.
588 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
590 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
591 Replace uses of mips/elf64.h with mips/elf.h
592 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
593 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
594 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
595 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
596 (HANDLE_SYSV_PRAGMA): Delete.
597 (ASM_OUTPUT_DEF): Fix formatting.
598 * config/mips/elf64.h: Delete.
600 2004-08-01 Zack Weinberg <zack@codesourcery.com>
602 * config/ia64/ia64.c (got_symbolic_operand): Do require a
603 symbol+offset operand to have its offset be zero mod 0x3fff
604 when GOT entries are in use. Clarify logic in SYMBOL_REF
605 case. Clarify comments.
606 (ia64_expand_load_address): Split a symbol+offset load when
607 the offset is nonzero mod 0x3fff, not 0x1fff.
609 2004-08-01 Geoffrey Keating <geoffk@apple.com>
611 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
612 if trying to *store* to a non-offsettable address.
613 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
614 a nonoffsettable address.
615 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
617 (movti_string): Don't move GPRs to a nonoffsettable address.
618 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
620 2004-08-02 Ben Elliston <bje@au.ibm.com>
623 * config/rs6000/altivec.h: Replace typeof with __typeof__.
625 2004-08-01 Richard Henderson <rth@redhat.com>
627 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
628 variable sized types.
630 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
632 * doc/invoke.texi: In the MIPS options section, remove the passage
633 saying that -mexplicit-relocs is usually disabled for -mabicalls
635 * config/mips/mips.c (override_options): Remove the code that enforced
638 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
640 * config/mips/mips.md (cprestore): Provide two alternatives, one for
641 an in-range offset and one for an out-of-range offset. Wrap the latter
642 in .set macro/.set nomacro if it's inside a .set nomacro block.
644 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
646 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
647 (mips_restore_gp): Declare.
648 * config/mips/mips.c (mips_add_offset): Add a scratch register
649 argument. Reimplement in rtl only, reusing MIPS16 logic from
650 mips_output_mi_thunk.
651 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
653 (mips_gp_save_slot): Delete.
654 (mips_restore_gp): New function.
655 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
656 * config/mips/mips.md (exception_receiver): Turn into a
657 define_insn_and_split. Use mips_restore_gp to do the split.
658 (call_internal, call_value_internal, call_value_multiple_internal): Use
659 mips_restore_gp to restore $gp.
661 2004-07-31 Andrew Pinski <apinski@apple.com>
664 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
666 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
668 * c-decl.c (diagnose_mismatched_decls): Give error for external
669 redeclaration of identifier declared with no linkage, not just
670 warning with -Wtraditional. Do not check DECL_CONTEXT to give
671 error for redeclaration with no linkage.
673 2004-07-30 Geoffrey Keating <geoffk@apple.com>
674 Fariborz Jahanian <fjahanian@apple.com>
676 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
677 non-offsettable addresses even for DImode.
678 (rs6000_split_multireg_move): Cope with non-offsettable addresses
679 being moved into multiple GPRs.
681 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
683 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
684 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
686 * config/rs6000/darwin-ldouble.c (isless): New macro.
688 (nonfinite): New macro.
690 (_xlqadd): Completely rewrite.
691 (_xlqmul): Correct overflow handling.
692 (_xlqdiv): Correct overflow handling.
693 * config/rs6000/darwin-ldouble-format: New file.
695 2004-07-30 Roger Sayle <roger@eyesopen.com>
696 Richard Henderson <rth@redhat.com>
698 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
699 9 into the equivalent lea instruction.
701 2004-07-30 Richard Henderson <rth@redhat.com>
703 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
704 with DECL_INITIAL if fb_lvalue.
705 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
706 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
708 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
710 2004-07-30 Diego Novillo <dnovillo@redhat.com>
712 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
713 pointer escapes through a function call, assume that the
714 callee will dereference it.
715 (add_pointed_to_var): Assume that VALUE is always an
717 (collect_points_to_info_r): Only call add_pointed_to_var if
718 the value is an ADDR_EXPR.
720 2004-07-30 Diego Novillo <dnovillo@redhat.com>
722 * tree-ssa-alias.c (create_alias_map_for): Do not get the
723 alias set of the inner type of ARRAY_TYPEs.
725 2004-07-29 Diego Novillo <dnovillo@redhat.com>
727 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
728 setting a non-register to UNDEFINED right before the call to
731 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
733 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
735 2004-07-29 Diego Novillo <dnovillo@redhat.com>
737 * tree-ssa.c (verify_flow_sensitive_alias_info): When
738 comparing points-to sets of different pointers, make sure the
739 second pointer is actually referenced in the code.
741 2004-07-29 Zack Weinberg <zack@codesourcery.com>
743 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
744 (got_symbolic_operand): Remove unreachable code.
745 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
746 setjmp_operand; add entry for tls_symbolic_operand.
747 * config/ia64/ia64-protos.h: Remove all prototypes of
750 2004-07-29 Mark Mitchell <mark@codesourcery.com>
752 * c-common.h (lang_post_pch_load): New variable.
753 * c-pch.c (lang_post_pch_load): Define it.
754 (c_common_read_pch): Use it.
755 * cgraphunit.c (record_call_1): Give the front end a chance to
756 record additional needed entities when a variable is marked as
758 * tlink.c (recompile_files): Robustify.
759 (scan_linker_output): If a symbol is assigned to a file,
760 but after recompilation is not present there, issue an error
763 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
765 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
766 Take orig_loop argument and pass it to set_level.
767 (schedule_sm): Pass the correct orig_loop to force_move_till.
769 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
771 * cfgloop.c (update_latch_info): Update dominator of the new block.
772 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
774 * dominance.c (verify_dominators): Check that the dominance tree is
776 (recount_dominator): Ignore unreachable blocks.
777 (iterate_fix_dominators): Cleanup old dominance information before
780 2004-07-29 Diego Novillo <dnovillo@redhat.com>
782 * tree-ssa-operands.c (get_expr_operands): Revert changes
783 to ADDR_EXPR processing introduced by:
784 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
785 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
787 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
789 * doc/implement-c.texi: Add C90 subclause references. Point to
790 preprocessor documentation instead of duplicating it. Add points
791 only present in C90. Fill in documentation for all points.
793 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
795 * pa.c (output_movb): Correct typo.
797 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
799 * ra.h (single_reg_in_regclass): Declare.
800 * ra.c (single_reg_in_regclass): Define.
801 (first_hard_reg): New.
802 (init_ra): Initialize single_reg_in_regclass.
803 * ra-colorize.c (ok_class): New.
804 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
806 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
808 * gcov-io.h: Allow zero tag as EOF indicator.
809 (gcov_is_eof): Remove.
810 (gcov_truncate): Remove.
811 * gcov-io.c (gcov_seek): Always SEEK_SET.
812 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
814 * coverage.c (read_counts_file): Don't use gcov_is_eof.
815 * gcov-dump.c (dump_file): Likewise.
816 * gcov.c (read_graph_file, read_count_file): Likewise.
818 * c-decl.c (complete_array_type): Don't gratuitously copy
819 maxindex. Check it always has a type.
821 2004-07-29 Steven Bosscher <stevenb@suse.de>
823 * rtl.c (currently_expanding_to_rtl): New.
824 * rtl.h (currently_expanding_to_rtl): Export it.
825 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
827 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
829 * config/sh/sh.c: Replace rtx_equal_function_value_matters
830 with currently_expanding_to_rtl.
831 * config/sh/sh.md: Likewise.
832 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
834 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
836 Introduce sh2a support.
837 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
838 * config.gcc: Build multilibs for sh2a and sh2a-single by
840 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
841 default. Split their tests out of the corresponding SH4
843 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
845 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
846 * config.gcc: Handle sh2a multilibs and cpu selection.
847 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
848 * config/sh/t-mlib-sh2a: New.
849 * config/sh/t-mlib-sh2a-nofpu: New.
850 * config/sh/t-mlib-sh2a-single: New.
851 * config/sh/t-mlib-sh2a-single-only: New.
852 2004-07-09 Nick Clifton <nickc@redhat.com>
854 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
855 -ml and -m2a are used together.
856 2004-03-23 DJ Delorie <dj@redhat.com>
857 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
858 when we have a double-sized FPU.
859 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
860 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
862 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
863 -msh2a-single and -msh2a-single-only
864 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
865 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
867 2004-02-20 DJ Delorie <dj@delorie.com>
868 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
869 2004-02-20 Fred Fish <fnf@redhat.com>,
870 Corinna Vinschen <vinschen@redhat.com>
871 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
872 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
873 2004-02-18 DJ Delorie <dj@redhat.com>
874 * config/sh/sh.c (broken_move): Add support for movi20.
875 * config/sh/sh.h: Likewise.
876 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
877 * config/sh/sh.md (udivsi3_sh2a): New.
885 (movsi_i): Disable for sh2a.
886 (movsi_ie): Add movi20.
887 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
888 sh2a, for -m2a-nofpu mode.
889 2004-02-13 DJ Delorie <dj@redhat.com>
890 * config/sh/lib1funcs.asm: Handle double vs single better.
891 * config/sh/sh.h: Likewise.
892 2004-02-09 DJ Delorie <dj@redhat.com>
893 * config/sh/crt1.asm: Add support for sh2a.
894 * config/sh/elf.h: Likewise.
895 * config/sh/lib1funcs.asm: Likewise.
896 * config/sh/sh.c: Likewise.
897 * config/sh/sh.md: Likewise.
898 * config/sh/sh.h: Likewise.
899 * config/sh/t-sh: Likewise.
901 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
903 * config/frv/frv.md (movqi_internal, movhi_internal,
904 movsi_internal): Add backup alternatives for memory inputs.
906 2004-07-28 Matt Austern <austern@apple.com>
908 * config/darwin.c (darwin_one_byte_bool): New global variable.
909 * config/darwin.h (darwin_one_byte_bool): Declare.
910 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
911 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
912 value of darwin_one_byte_bool.
913 * doc/invoke.texi: Document -mone-byte-bool flag.
915 2004-07-28 Eric Christopher <echristo@redhat.com>
917 * c-common.c (c_common_unsafe_for_reeval): Delete.
918 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
919 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
920 * calls.c (fix_unsafe_tree): Delete.
921 (expand_call): Delete code which used above.
922 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
923 * expr.c (expand_expr_real_1): Ditto.
924 * fold-const.c (non_lvalue): Ditto.
925 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
926 (lhd_unsafe_for_reeval): Ditto.
927 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
928 * langhooks.h (unsafe_for_reeval): Ditto.
929 (unsave_expr_now): Adjust comment.
930 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
931 (estimate_num_insns_1): Ditto.
932 * tree-pretty-print.c (dump_generic_node): Ditto.
933 * tree.c (expr_align): Ditto.
934 (unsave_expr): Delete.
935 (unsafe_for_reeval): Ditto.
936 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
937 * tree.def (UNSAVE_EXPR): Delete.
938 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
940 2004-07-28 Zack Weinberg <zack@codesourcery.com>
942 * tree.h (enum tls_model): Move ...
943 * coretypes.h: ... here.
945 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
947 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
949 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
951 * cse.c (validate_canon_reg): New function, split out from...
952 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
954 2004-07-28 Diego Novillo <dnovillo@redhat.com>
956 * tree-ssa-alias.c (maybe_create_global_var): Don't just
957 return if .GLOBAL_VAR has been created.
959 2004-07-28 Diego Novillo <dnovillo@redhat.com>
961 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
962 every variable that may have aliases, not just tags.
964 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
966 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
968 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
971 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
974 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
975 output_e500_flip_eq_bit.
977 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
978 output_e500_flip_eq_bit.
979 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
980 output_e500_flip_eq_bit.
981 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
982 (print_operand): case D. Get to EQ bit.
984 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
986 * gcov.c (function_summary): Add missing \n.
988 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
990 Introduce sh4a support.
991 * config.gcc: Handle sh4a multilibs and cpu selection.
992 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
993 * config/sh/t-mlib-sh4a: New.
994 * config/sh/t-mlib-sh4al: New.
995 * config/sh/t-mlib-sh4a-nofpu: New.
996 * config/sh/t-mlib-sh4a-single: New.
997 * config/sh/t-mlib-sh4a-single-only: New.
998 2004-02-20 DJ Delorie <dj@redhat.com>
999 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
1000 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
1001 2003-08-22 Eric Christopher <echristo@redhat.com>
1002 * config/sh/sh4a.md: Update for chip errata.
1003 2003-08-07 Eric Christopher <echristo@redhat.com>
1004 * config/sh/sh4a.md: New file. sh4a processor description.
1005 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
1006 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
1008 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
1009 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
1010 * doc/invoke.texi (SH Options): Document -m4al.
1011 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
1012 * config/sh/sh.c (expand_block_move): Remove commented-out code
1013 checked in by mistake.
1014 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
1015 single elements from SFmode vectors.
1016 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
1018 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
1019 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
1020 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
1021 sh_fsca_int2sf): Remove variable declarations.
1022 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
1023 sh_fsca_int2sf): New functions.
1024 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
1025 sh_fsca_int2sf_rtx): New static variables.
1026 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
1027 sh_fsca_int2sf): Declare.
1028 * config/sh/sh.md: Adjust.
1029 * doc/invoke.texi (SH Options): Document new options.
1030 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
1031 compatibility from SH4 code.
1032 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
1033 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
1035 (memory_movsrc_operand): Renamed to...
1036 (unaligned_load_operand): ... this. Simplified.
1037 * config/sh/sh.h (PREDICATE_CODES): Adjust.
1038 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
1039 input operand to SImode, and adjust the others. Introduce
1040 post-increment by peephole.
1041 * config/sh/sh.c (expand_block_move): Give the target address the
1042 same mode as the temp reg.
1043 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
1045 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
1046 Introduce support for SH4a.
1047 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
1048 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
1049 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
1050 sh_fsca_int2sf): New.
1051 (sh_init_builtins): Initialize them.
1052 (print_operand): Support `d'.
1053 (expand_block_move): Use movua if src is misaligned.
1054 (memory_movsrc_operand): New.
1055 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
1056 and one of the SH4 macros.
1057 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
1058 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
1059 SELECT_SH4A_SINGLE): New.
1060 (TARGET_NONE): Add SH4A_BIT.
1061 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
1062 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
1063 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
1064 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
1065 (enum processor_type): Added PROCESSOR_SH4A.
1066 (PREDICATE_CODES): Add memory_movsrc_operand.
1067 * config/sh/sh.md: Removed unused variables.
1068 (attr cpu): Add sh4a.
1069 (attr type): Add movua, fsrra and fsca.
1070 (prefetch): New, for SH4.
1071 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
1072 (toggle_sz): Set type to fp.
1073 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
1074 (movua, extv, extzv): New.
1075 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
1078 2004-07-28 Diego Novillo <dnovillo@redhat.com>
1080 * tree-optimize.c (init_tree_optimization_passes): Schedule
1081 pass_may_alias right after the program is renamed into SSA.
1082 * tree-pass.h (PROP_alias): Define.
1083 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
1084 * tree-sra.c (pass_sra): Likewise.
1085 * tree-ssa-ccp.c (pass_ccp): Likewise.
1086 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
1087 * tree-ssa-dce.c (pass_dce): Likewise.
1088 * tree-ssa-dom.c (pass_dominator): Likewise.
1089 * tree-ssa-dse.c (pass_dse): Likewise.
1090 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
1091 * tree-ssa-loop-ch.c (pass_ch): Likewise.
1092 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
1093 * tree-ssa-pre.c (pass_pre): Likewise.
1094 * tree-tailcall.c (pass_tail_recursion): Likewise.
1095 * tree-ssa.c (pass_redundant_phi): Likewise.
1096 * tree-ssa-alias.c (aliases_computed_p): Remove.
1098 (init_alias_info): Do not mark all type tags for renaming
1100 Clear may_aliases from every symbol.
1101 (setup_pointers_and_addressables): If a pointer has not been
1102 dereferenced and it had a type tag, clear it and mark the old
1105 2004-07-28 Diego Novillo <dnovillo@redhat.com>
1107 PR tree-optimization/16705
1108 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
1111 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1113 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
1116 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
1117 don't make another one.
1119 PR optimization/15077
1120 * function.h (struct function): Add field saved_static_chain_decl.
1121 Fix comment for static_chain_decl.
1122 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
1123 * tree-inline.h (save_body): Add new arg.
1124 * tree-optimize.c (tree_rest_of_compilation): Handle saving
1127 2004-07-27 Richard Henderson <rth@redhat.com>
1129 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
1130 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
1131 is_gimple_addressable.
1132 * tree-gimple.c (is_gimple_addressable): Rename from
1133 is_gimple_addr_expr_arg; accept INDIRECT_REF.
1134 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
1135 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
1136 rename to is_gimple_addressable.
1138 2004-07-28 Alan Modra <amodra@bigpond.net.au>
1140 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
1142 2004-07-27 Richard Henderson <rth@redhat.com>
1144 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
1147 2004-07-27 Zack Weinberg <zack@codesourcery.com>
1149 * libgcc2.c: Change all conditionals testing
1150 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
1151 * libgcc2.h: Likewise.
1152 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
1153 TYPE_PRECISION of float80_type to 80.
1154 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
1155 of fpreg_type and float80_type to 80.
1156 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
1157 * config/m68k/netbsd-elf.h:
1158 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
1159 to evaluate to 80 whenever they would formerly have evaluated to 96.
1160 * config/i386/sco5.h: Remove unnecessary redefinition of
1161 LONG_DOUBLE_TYPE_SIZE.
1162 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
1163 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
1164 XFmode, with a bitsize of 80. Update commentary.
1165 * config/ia64/ia64-modes.def: Likewise.
1166 * config/m68k/m68k-modes.def: Likewise.
1168 2004-07-27 Steven Bosscher <stevenb@suse.de>
1170 * cfgexpand.c (tree_expand_cfg): Fix comment.
1172 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
1173 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
1175 (prepare_function_start): Don't set rtx_equal_function_value_matters.
1176 * integrate.c (copy_rtx_and_substitute): Don't test for it.
1177 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
1178 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
1179 here again. Update leading comment.
1180 * rtl.c (rtx_equal_function_value_matters): Remove.
1181 (rtx_equal_p): Don't test for it.
1182 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
1185 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
1186 * rtl.c (note_insn_name): Likewise.
1187 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
1188 * final.c (final_scan_insn): Likewise.
1190 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
1191 * passes.c (rest_of_handle_eh): Do it here.
1193 * stmt.c (struct nesting): Remove struct nesting block member.
1194 (struct stmt_status): Remove x_block_start_count field.
1195 (current_block_start_count): Remove.
1197 2004-07-27 Brian Booth <bbooth@redhat.com>
1199 * tree-optimize.c (register_one_dump_file): Update condition that uses
1201 (dup_pass_1): Replace with...
1202 (next_pass_1): This.
1203 (NEXT_PASS): Call next_pass_1.
1205 (init_tree_optimization_passes): Remove uses of DUP_PASS.
1206 (execute_one_pass): Update condition that uses
1208 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
1211 2004-07-27 Nick Clifton <nickc@redhat.com>
1213 * config/m32r/m32r.c: Include integrate.h in order to get the
1214 prototype for get_hard_reg_initial_val().
1216 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
1217 and tidy up indentation.
1218 (final_presence_set): Use absence_set instead, so that if there is
1219 nothing in the "o" pipe the "s" pipe can be scheduled.
1221 2004-07-27 Diego Novillo <dnovillo@redhat.com>
1223 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
1224 don't have PT_VARS nor PT_MALLOC set.
1225 Clear name tag from pointers that have not been dereferenced.
1226 (set_pt_anything, set_pt_malloc): Forward declare.
1227 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
1228 not type compatibility when determining if a pointer can be
1231 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
1233 * expr.h (canonicalize_condition, get_condition): Add an int argument.
1234 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
1235 it to check whether the condition is still valid at the jump insn.
1236 * ifcvt.c (noce_get_condition): Likewise.
1237 (noce_get_alt_condition): Update call to canonicalize_condition.
1238 * loop-iv.c (simplify_using_initial_values): Update call to
1239 get_condition. Remove FIXME.
1240 (check_simple_exit): Update call to get_condition.
1241 * loop-unswitch.c (may_unswitch_on): Likewise.
1242 * loop.c (check_dbra_loop): Likewise.
1243 (canonicalize_condition, get_condition): Add an argument to say whether
1244 the condition must still be valid at INSN.
1245 (get_condition_for_loop): Update call to get_condition. Require that
1246 the condition be valid at INSN.
1247 * predict.c (estimate_probability): Update call to get_condition.
1248 Remove unused earliest parameter.
1249 (expected_value_to_br_prob): Update call to canonicalize_condition.
1251 2004-07-26 Eric Christopher <echristo@redhat.com>
1253 * tree-dfa.c (add_referenced_var): Register initializers of global
1256 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
1258 * config/i386/i386.c (function_arg): Always treat 8-
1259 and 16-byte wide vectors the same, even if MMX/SSE
1261 (contains_128bit_aligned_vector_p): Add comment.
1263 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1265 * ra.h (enum node_type): Rename to:
1266 (enum ra_node_type).
1267 * ra-colorize.c: Likewise.
1269 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
1271 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
1272 after simplifying the jump.
1274 2004-06-26 Richard Henderson <rth@redhat.com>
1276 * calls.c (combine_pending_stack_adjustment_and_call): Make
1277 preferred_unit_stack_boundary argument unsigned. Make
1278 unadjusted_alignment unsigned.
1279 (expand_call): Make preferred_stack_boundary and
1280 preferred_unit_stack_boundary variables unsigned.
1281 * function.c (assign_stack_local_1): Make alignment unsigned.
1282 * function.h (struct function): Make stack_alignment_needed,
1283 preferred_stack_boundary unsigned.
1284 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
1285 (ix86_compute_frame_layout): Make stack_alignment_needed,
1286 preferred_alignment variables unsigned.
1287 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
1289 2004-07-26 Tom Tromey <tromey@redhat.com>
1291 * tree.h: Fix typo in comment.
1293 2004-07-26 Daniel Jacobowitz <dan@debian.org>
1296 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
1297 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
1298 (ggc_free): Remove incorrect freeing.
1299 (sweep_pages): Advance PP for large pages. Fix indentation.
1301 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
1303 PR rtl-optimization/16643
1304 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
1305 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
1306 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
1307 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
1308 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
1309 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1310 * rtl.h (tracer): Add a flags parameter.
1311 * tracer.c (tracer): Pass it to cfg_layout_initialise.
1312 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
1313 (rest_of_handle_reorder_blocks): Update calls to tracer and
1314 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
1315 (rest_of_handle_tracer): Pass 0 to tracer.
1316 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
1318 2004-07-25 David Edelsohn <edelsohn@gnu.org>
1321 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
1324 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
1326 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
1327 (BINFO_BASE_ACCESS): Adjust.
1328 (BINFO_BASE_ACCESS_APPEND): New.
1329 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
1330 * dbxout.c (dbxout_type): Adjust binfo access accessing.
1331 * dwarf2out.c (gen_member_die): Likewise.
1332 * tree-dump.c (deque_and_dump): Likewise.
1334 2004-07-26 Falk Hueffner <falk@debian.org>
1336 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
1339 2004-07-25 Roger Sayle <roger@eyesopen.com>
1341 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
1342 value off of the stack if TARGET_USE_FFREEP.
1344 2004-07-26 Bernardo Innocenti <bernie@develer.com>
1346 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
1347 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
1348 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
1349 check on invocation of XRESIZEVEC ().
1351 2004-07-26 Bernardo Innocenti <bernie@develer.com>
1353 * c-common.c (disable_builtin_function): Rename variable n to
1354 new_disabled_builtin.
1355 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
1356 Rename local variable old to old_decl.
1357 * gensupport.c (shift_output_template): Rename parameter old to src.
1358 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
1359 old_rtx and newx to new_rtx.
1361 2004-07-26 Bernardo Innocenti <bernie@develer.com>
1363 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
1365 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
1367 * c-lex.c: Likewise.
1369 2004-07-25 Roger Sayle <roger@eyesopen.com>
1371 * fold-const.c (constant_boolean_node): Make extern.
1372 (make_range): Wrap long lines.
1373 (fold_cond_expr_with_comparison): Remove unnecessary call to
1374 pedantic_non_lvalue. Add missing calls to fold_convert.
1375 (fold_truthop): Add missing calls to fold_convert.
1377 * tree.h (constant_boolean_node): Add prototype here.
1378 * builtins.c (expand_builtin_strncmp): Add missing calls to
1380 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
1381 Call fold_convert and constant_boolean_node to correct types.
1382 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
1383 missing call to fold_convert to correct types.
1385 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
1386 Brian Ryner <bryner@brianryner.com>
1390 * c-common.c (c_common_attribute_table): Allow
1391 handle_visibility_attribute to be called for types.
1392 (handle_visibility_attribute) When given a type, set the visibility
1393 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
1394 so that we can check later whether the attribute was present. Added
1395 warning if attribute applied to non class type.
1396 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
1397 decls and checking that they are consistent.
1398 * common.opt: Added -fvisibility.
1399 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
1400 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
1401 * flags.h, tree.h: Added assorted support defines for overall patch
1402 * opts.c: Added parsing support for -fvisibility.
1403 * tree.c (build_decl): Set visibility for all decls to be whatever
1404 is in force at that time.
1405 * varasm.c (default_binds_local_p_1): Reworked logic determining
1406 when to make a symbol locally bound.
1407 * doc/invoke.texi: Added documentation for -fvisibility and
1408 -fvisibility-inlines-hidden.
1410 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1412 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
1413 * c-common.c: Add missing casts from void * to other types.
1414 * c-decl.c: Likewise.
1415 * c-format.c: Likewise.
1416 * c-lex.c: Likewise.
1417 * c-pragma.c: Likewise.
1418 * c-typeck.c: Likewise.
1419 * defaults.h: Likewise.
1420 * genconstants.c: Likewise.
1421 * gengtype-lex.l: Likewise.
1422 * genmodes.c: Likewise.
1423 * read-rtl.c: Likewise.
1426 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1428 * bitmap.c: Use type-safe memory allocation macros from libiberty.
1429 * c-common.c: Likewise.
1430 * c-decl.c: Likewise.
1431 * c-lang.c: Likewise.
1432 * c-lex.c: Likewise.
1433 * c-opts.c: Likewise.
1434 * c-parse.in: Likewise.
1435 * c-typeck.c: Likewise.
1436 * genconditions.c: Likewise.
1437 * gengtype-lex.l: Likewise.
1438 * gengtype-yacc.y: Likewise.
1439 * gengtype.c: Likewise.
1440 * genmodes.c: Likewise.
1441 * gensupport.c: Likewise.
1442 * read-rtl.c: Likewise.
1443 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
1446 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1448 * c-decl.c (groktypename, groktypename_in_param_context): Rename
1449 variable typename to type_name.
1450 * c-lex.c (interpret_float): Likewise.
1452 2004-07-25 Roger Sayle <roger@eyesopen.com>
1454 * convert.c (convert_to_real, convert_to_integer,
1455 convert_to_complex): Replace calls to build with calls to buildN.
1456 * coverage.c (tree_coverage_counter_ref): Likewise.
1457 * dojump.c (do_jump): Likewise.
1458 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
1459 * emit-rtl.c (component_ref_for_mem_expr,
1460 set_mem_attributes_minus_bitpos): Likewise.
1461 * explow.c (update_nonlocal_goto_save_area): Likewise.
1462 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
1463 expand_mult_add): Likewise.
1464 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
1465 store_constructor, get_inner_reference, expand_expr_real_1,
1466 try_casesi, try_tablejump): Likewise.
1467 * function.c (expand_function_start): Likewise.
1468 * stmt.c (emit_case_bit_tests, expand_end_case_type,
1469 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
1470 * stor-layout.c (place_union_field, layout_type): Likewise.
1471 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
1472 * varasm.c (copy_constant): Likewise.
1474 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1476 * c-common.c: Rename all identifiers named `new'.
1477 * c-decl.c: Likewise.
1478 * gensupport.c: Likewise.
1479 * simplify-rtx.c: Likewise.
1480 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
1482 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
1485 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
1488 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
1489 declarations until after calling pushdecl.
1490 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
1491 "extern" and not on whether the declaration is initialized.
1493 2004-07-25 Daniel Jacobowitz <dan@debian.org>
1495 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
1496 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
1497 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
1498 "cpplib.h", "c-pragma.h", "c-common.h".
1499 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
1500 (solaris_register_pragmas): New functions.
1501 * config/sol2-protos.h: New file.
1502 * config/sol2.c: New file.
1503 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
1504 (REGISTER_TARGET_PRAGMAS): New macros.
1505 (solaris_pending_aligns, solaris_pending_inits)
1506 (solaris_pending_finis): New variables.
1507 * config/t-sol2 (sol2-c.o): Update dependencies.
1509 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
1510 SUBTARGET_INSERT_ATTRIBUTES.
1511 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
1512 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
1513 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
1514 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
1515 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
1516 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
1517 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
1518 * config/sparc/sparc.c (sparc_attribute_table): New.
1519 (TARGET_INSERT_ATTRIBUTES): Define in terms of
1520 SUBTARGET_INSERT_ATTRIBUTES.
1521 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
1523 * doc/extend.texi (Solaris Pragmas): New section.
1525 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1527 * c-common.c: Rename all identifiers named `class' to `cl'.
1528 * c-common.h: Likewise.
1529 * c-parse.in: Likewise.
1530 * c-typeck.c: Likewise.
1531 * genmodes.c: Likewise.
1534 * recog.c: Likewise.
1535 * recog.h: Likewise.
1536 * regrename.c: Likewise.
1538 * c-common.c (builtin_function_2): Change type of 5th parameter from
1539 int to enum built_in_function. Change type of 8th parameter from int
1541 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
1543 * c-typeck.c (convert_arguments): Change type of formal_prec from
1544 int to unsigned int.
1545 * genmodes.c (blank_mode): Make a few negative constants unsigned.
1546 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
1547 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
1548 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
1549 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
1550 iterator to for_all_modes () instead of an enum because enums can't
1551 be incremented in C++.
1554 2004-07-25 Daniel Jacobowitz <dan@debian.org>
1556 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
1559 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1561 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
1562 Handle ARRAY_RANGE_REF like ARRAY_REF.
1564 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
1566 * c-typeck.c (digest_init): Don't allow arrays of signed or
1567 unsigned variants of wchar_t to be initialized by wide string
1568 constants. Do allow arrays of enumerated types compatible with
1569 wchar_t to be initialized by wide string constants. Refine tests
1570 distinguishing wide and narrow strings and arrays. Give specific
1571 error for arrays of other integer types initialized by string
1573 (output_init_element, process_init_element): Check for
1574 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
1575 initializing with string constants.
1577 2004-07-25 Richard Henderson <rth@redhat.com>
1579 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
1581 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1582 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
1583 DECL_IGNORED_P to new decl.
1585 2004-07-24 Zack Weinberg <zack@codesourcery.com>
1587 * config/ia64/ia64.c (general_xfmode_operand)
1588 (destination_xfmode_operand): Delete.
1589 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
1590 * config/ia64/ia64.md (*movxf_internal): Use general_operand
1591 and destination_operand.
1593 2004-07-24 Alexander Kabaev <kan@freebsd.org>
1595 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
1596 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
1598 2004-07-24 Alexander Kabaev <kan@freebsd.org>
1599 Zack Weinberg <zack@codesourcery.com
1602 * c-decl.c (diagnose_mismatched_decls): Don't issue a
1603 redundant-declaration warning the first time a builtin is
1604 declared explicitly.
1606 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1608 * tree.h (staticp): Change return type to bool.
1610 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1612 * c-common.c (c_staticp): Last episode of the staticp saga.
1614 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1616 * c-common.h (c_staticp): Change return type from int to bool.
1617 * tree.c (staticp): Likewise.
1618 * langhooks.h (staticp): Likewise.
1620 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1622 * langhooks-def.h (lhd_staticp): Change return type from int to
1623 bool in prototype to match definition.
1625 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1627 * system.h (bool, true, false): Don't redefine as preprocessor macros
1630 2004-07-24 Roger Sayle <roger@eyesopen.com>
1632 * expmed.c (init_expmed): A signed modulus by a power of two is
1633 considered cheap if its less than or equal to four instructions.
1635 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1637 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
1638 GGC_CNEWVAR): New macros.
1640 2004-07-25 Bernardo Innocenti <bernie@develer.com>
1642 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
1644 * c-decl.c: Likewise.
1645 * c-format.c: Likewise.
1646 * c-lex.c: Likewise.
1647 * c-opts.c: Likewise.
1648 * c-pragma.c: Likewise.
1649 * c-typeck.c: Likewise.
1650 * gencheck.c: Likewise.
1651 * genconditions.c: Likewise.
1652 * genconfig.c: Likewise.
1653 * genflags.c: Likewise.
1654 * gengtype.c: Likewise.
1655 * gensupport.c: Likewise.
1656 * ggc-none.c: Likewise.
1657 * langhooks.c: Likewise.
1658 * statistics.h: Likewise.
1659 * stub-objc.c: Likewise.
1660 * java/decl.c: Likewise.
1662 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
1664 * config/m68k/m68k.c (output_scc_di): Fix coding style.
1665 (symbolic_operand): Fix prototype.
1666 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
1667 * config/m68k/m68k.md: Add constants for registers a0 and sp and
1668 use them, change from the "{...}" syntax to the simpler {...}
1670 (*cfv4_extendqisi2): Fix destination predicate.
1671 * config/m68k/m68k-protos.h: Remove various declarations also
1672 generated via PREDICATE_CODES.
1674 2004-07-23 Mike Stump <mrs@apple.com>
1676 * c-typeck.c (convert_for_assignment): Tightened up pointer
1677 converstions that differ in signedness.
1679 2004-07-23 Zack Weinberg <zack@codesourcery.com>
1681 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
1683 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1685 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
1686 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
1688 * gimplify.c (gimplify_compound_lval): Check for no handled
1689 operations, rather than checking for explicit list of nodes.
1690 (is_gimple_addr_expr_arg_or_indirect): New function.
1691 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
1692 redundant setting of TREE_INVARIANT.
1693 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
1694 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
1696 2004-07-23 Diego Novillo <dnovillo@redhat.com>
1698 PR tree-optimization/16688
1699 PR tree-optimization/16689
1700 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
1701 unnecessary initialization of 'tag'.
1702 (get_tmt_for): Check that the new type tag has the same alias
1703 set as the pointed-to type.
1704 (group_aliases): Only regular variables need to be removed
1705 from the alias set of a name tag.
1706 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
1707 propagation if the two types are not compatible.
1708 (merge_alias_info): Rename from replace_ssa_names_ann.
1710 (replace_exp_1): If both arguments are SSA_NAMEs, check that
1711 the propagation can be done.
1712 Only call merge_alias_info on pointers.
1713 (propagate_value): Likewise.
1714 * tree-ssa-copyrename.c: Include langhooks.h.
1715 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
1717 Do not coalesce variables with incompatible types.
1718 (rename_ssa_copies): Call replace_ssa_name_symbol.
1719 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
1720 the same type as the underlying _DECL.
1721 * tree-ssanames.c (replace_ssa_name_symbol): New function.
1722 * tree.h (replace_ssa_name_symbol): Declare.
1724 2004-07-23 Richard Henderson <rth@redhat.com>
1727 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
1728 unshare it properly.
1729 (gimplify_modify_expr_rhs): Push assignment from a conditional into
1730 the conditional for all non-register types.
1732 2004-07-23 Richard Henderson <rth@redhat.com>
1734 * expr.c (expand_expr_real_1): Don't handle non-local variables.
1735 * expr.h (fix_lexical_addr): Remove.
1736 * function.c (NEED_SEPARATE_AP): Remove.
1737 (fix_lexical_addr): Remove.
1738 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
1739 not null decl_function_context.
1740 (create_alias_vars): Likewise.
1741 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
1742 (simple_goto_p): Likewise.
1743 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
1744 * tree-ssa-ccp.c (get_default_value): Likewise.
1745 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1746 * tree.c (needs_to_live_in_memory): Likewise.
1747 * tree-flow-inline.h (may_be_aliased): Move...
1748 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
1749 when TREE_STATIC variables may be addressable.
1751 2004-07-24 Jakub Jelinek <jakub@redhat.com>
1753 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
1755 2004-07-23 Zack Weinberg <zack@codesourcery.com>
1757 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
1758 bitmap contents if GENERATOR_FILE is defined.
1759 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
1760 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
1762 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
1764 * c-decl.c (start_function): Form composite type of function types
1765 rather than copying type from previous prototype declaration.
1767 2004-07-23 Janis Johnson <janis187@us.ibm.com>
1769 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
1770 the const qualifier for the second argument in the C++ functions.
1772 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
1773 specific pointer types.
1775 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
1776 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
1777 for vector bool and/or vector pixel, add C++ and C missing support.
1778 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
1779 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
1780 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
1781 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
1782 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
1783 missing C++ and C support for vector bool and/or vector pixel.
1784 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
1785 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
1786 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
1787 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
1788 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
1789 C++ and C types used for vector bool and/or vector pixel.
1790 (vec_st, vec_stl): Add C++ support for vector pixel.
1791 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
1792 (vec_all_ne): Add C++ support for vector pixel.
1794 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
1795 (vec_vmulesb): Add missing C++ function.
1796 (vec_perm): Fix type of third argument in C++ function.
1797 (vec_vsum4shs): Fix C++ function name.
1798 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
1799 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
1800 argument passed to the error handler in C macro.
1801 (vec_nmsub): Remove extra parens around argument names in C macro.
1802 (vec_packpx): Add missing parens in C macro.
1804 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
1806 * machmode.def: Remove vector modes.
1807 * config/alpha/alpha-modes.def: Add supported vector modes.
1808 * config/arm/arm-modes.def: Likewise.
1809 * config/frv/frv-modes.def: Likewise.
1810 * config/i386/i386-modes.def: Likewise.
1811 * config/rs6000/rs6000-modes.def: Likewise.
1812 * config/sh/sh-modes.def: Likewise.
1814 2004-07-23 Matthias Klose <doko@debian.org>
1816 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
1817 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
1818 * config.h: Regenerate.
1819 * configure: Likewise.
1821 2004-07-22 Mark Mitchell <mark@codesourcery.com>
1823 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
1824 generated SYMBOL_REFs for labels.
1825 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
1827 (machopic_stub_name): Remove.
1828 (machopic_indirection_name): New function.
1829 (machopic_mcount_stub_name): Likewise.
1830 (machopic_classify_name): Remove.
1831 (machopic_function_base_sym): New function.
1832 (machpoic_classify_symbol): Likewise.
1833 (machopic_classify_ident): Remove.
1834 (machopic_define_ident): Likewise.
1835 (machopic_define_name): Likewise.
1836 (machopic_name_defined_p): Likewise.
1837 (machopic_ident_defined_p): Likewise.
1838 (darwin_strip_name_encoding): Likewise.
1839 (machopic_define_symbol): New function.
1840 * config/darwin.c (hashtab.h): Include.
1841 (machopic_defined_list): Remove.
1842 (machopic_classify_ident): Likewise.
1843 (machopic_classify_name): Likewise.
1844 (machopic_ident_defined_p): Likewise.
1845 (machopic_define_ident): Likewise.
1846 (machopic_define_name): Likewise.
1847 (machopic_symbol_defined_p): New function.
1848 (machopic_classify_symbol): Likewise.
1849 (machopic_data_defined_p): Use machopic_classify_symbol.
1850 (machopic_define_symbol): New function.
1851 (machopic_function_base_sym): New function.
1852 (machopic_non_lazy_pointers): Remove.
1853 (machopic_non_lazy_ptr_name): Likewise.
1854 (machopic_stubs): Likewise.
1855 (machopic_stub_name): Likewise.
1856 (NON_LAZY_POINTER_SUFFIX): New macro.
1857 (STUB_SUFFIX): Likewise.
1858 (machopic_indirection): New structure.
1859 (machopic_indirections): New variable.
1860 (machopic_indirection_hash): New function.
1861 (machopic_indirection_eq): Likewise.
1862 (machopic_indirection_name): Likewise.
1863 (machopic_mcount_stub_name): New function.
1864 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
1866 (machopic_indirect_data_reference): Rework to use new functions.
1867 (machopic_indirect_call_target): Likewise.
1868 (machopic_legitimize_pic_address): Likewise.
1869 (machopic_output_indirection): New function.
1870 (machopic_finish): Use it.
1871 (machopic_operand_p): Rework to use new functions.
1872 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
1873 (darwin_strip_name_encoding): Remove.
1874 (update_non_lazy_ptrs): Remove.
1875 (update_stubs): Likewise.
1876 (darwin_non_lazy_pcrel): Use new functions.
1877 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1878 (ASM_OUTPUT_LABELREF): Likewise.
1879 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1880 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
1881 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
1882 (TARGET_STRIP_NAME_ENCODING): Do not use
1883 darwin_strip_name_encoding.
1884 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
1885 darwin_strip_name_encoding.
1886 * config/i386/darwin.h (FUNCTION_PROFILER): Use
1887 machopic_mcount_stub_name.
1888 * config/i386/i386.c (x86_output_mi_thunk): Use
1889 machopic_indirection_name, not machopic_stub_name.
1890 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
1891 machopic_function_base_sym.
1892 (print_operand): Use machopic_classify_symbol.
1893 (rs6000_emit_prologue): Use machopic_function_base_sym.
1894 (output_profile_hook): Do not use machopic_stub_name.
1895 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
1897 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
1900 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
1903 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
1905 * doc/implement-c.texi: New file.
1906 * doc/extend.texi (C Implementation): Move to there.
1907 * doc/gcc.texi: Include implement-c.texi.
1908 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
1910 2004-07-22 Jason Merrill <jason@redhat.com>
1912 * integrate.c (copy_decl_for_inlining): Remove invisible reference
1914 * tree-inline.c (setup_one_parameter): Likewise.
1916 2004-07-22 Brian Booth <bbooth@redhat.com>
1918 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
1919 (substitute_and_fold): Propigate into VUSE operands when possible.
1920 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
1921 (cp_lattice_meet): Handle merging of latticevalues when
1922 UNKNOWN_VAL is present.
1923 (visit_stmt): Visit assignments with V_MUST_DEFs.
1924 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
1925 (ccp_fold): Deal with RHS' that are constant and virtual.
1926 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
1927 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
1928 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
1929 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
1930 computing immediate uses.
1931 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
1933 (replace_vuse_in): New function.
1934 (likely_value): Add check of vuse operands.
1935 (get_default_value): Set the default value of virtually defined
1936 variables to UKNOWN_VAL instead of VARYING.
1938 2004-07-22 Richard Henderson <rth@redhat.com>
1940 * expr.c (emit_push_insn): Don't use set_mem_attributes.
1942 2004-07-22 Richard Henderson <rth@redhat.com>
1944 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
1945 variables due to conditional compilation.
1947 2004-07-22 Diego Novillo <dnovillo@redhat.com>
1949 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
1950 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
1951 Release SSA names that have been re-renamed.
1952 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
1954 * tree-ssa-alias.c (init_alias_info): If aliases have been
1955 computed before, clear existing alias information.
1956 (create_name_tags): Do no fixup PT_ANYTHING pointers.
1957 If the new name tag for a pointer is different than the one it
1958 had before, mark the old tag for renaming.
1959 (replace_may_alias): New function.
1960 (group_aliases): Call it.
1961 (setup_pointers_and_addressables): Always call get_tmt_for.
1962 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
1964 (set_pt_anything): New local function.
1965 (set_pt_malloc): New local function.
1966 (merge_pointed_to_info): Don't merge pointed-to variables from
1967 the original pointer if the destination is pointing to an
1969 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
1970 (add_pointed_to_var): Do not add a variable to the points-to
1971 set if the pointer is already pointing to anywhere.
1972 (collect_points_to_info_r): If the defining statement is a PHI
1973 node, only merge pointed-to information if the argument has
1974 already been visited.
1975 (get_tmt_for): Only create a new tag if the pointer didn't
1977 (dump_alias_info): Emit more information.
1978 (dump_points_to_info_for): Likewise.
1979 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
1980 try to get the annotation of an SSA_NAME.
1981 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
1982 alias sets when checking is enabled.
1983 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
1984 (eliminate): Mark basic blocks that will need
1985 EH information cleaned up.
1986 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
1988 Initialize need_eh_cleanup.
1989 (fini_pre): Call tree_purge_all_dead_eh_edges and
1990 cleanup_tree_cfg if needed.
1991 Free need_eh_cleanup.
1992 * tree-ssa.c (verify_ssa_name): New function.
1993 (verify_def): Call it.
1994 Re-arrange to avoid printing too many error messages.
1995 (verify_use): Likewise.
1996 (verify_phi_args): Likewise.
1997 (verify_flow_insensitive_alias_info): New function.
1998 (verify_flow_sensitive_alias_info): New function.
1999 (verify_alias_info): New function.
2000 (verify_ssa): Call verify_alias_info.
2001 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
2003 Re-arrange to avoid printing too many error messages.
2004 * tree-ssanames.c (make_ssa_name): Clear
2005 SSA_NAME_IN_FREE_LIST.
2006 (release_ssa_name): Never release a default definition.
2007 (release_defs): New function.
2008 * tree.h: Declare it.
2009 * tree-ssa-dce.c (remove_dead_stmt): Call it.
2011 2004-07-22 Diego Novillo <dnovillo@redhat.com>
2013 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
2014 If true, do a depth-first search. Do a breadht-first search,
2016 (walk_use_def_chains): Add new argument IS_DFS.
2018 * tree-flow.h (walk_use_def_chains): Update prototype.
2020 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
2022 * config/cris/cris.md: Tweak formatting.
2023 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
2024 (mover2side, moverside, movemside, movei, op3, andu): Replace
2025 live define_peephole:s with define_peephole2 near-equivalents.
2027 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
2029 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
2030 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
2031 "*mov_sidesi_mem" respectively.
2033 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
2035 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
2036 (gimplify_build1): Move from tree-complex.c do_unop.
2037 (gimplify_build2): Move from tree-complex.c do_binop.
2038 (gimplify_build3): New.
2039 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
2040 Adjust throughout to call the functions above.
2041 * tree-flow.h: Declare the functions above.
2042 * tree-nested.c (gimplify_val): Rename to...
2043 (tsi_gimplify_val): ... this.
2045 * Makefile.in (tree_complex.o): Update dependencies.
2046 (stor-layout.o): Depend on regs.h.
2047 * c-common.c (handle_vector_size_attribute): Update for
2048 vector types without corresponding vector modes.
2049 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
2050 a corresponding vector mode is not available.
2051 * print-tree.c (print_node): Print nunits for vector types
2052 * regclass.c (have_regs_of_mode): New.
2053 (init_reg_sets_1): Initialize it and use it instead
2054 of allocatable_regs_of_mode.
2055 * regs.h (have_regs_of_mode): Declare it.
2056 * stor-layout.c (layout_type): Pick a mode for vector types.
2057 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
2058 build_replicated_const, do_unop, do_binop, do_plus_minus,
2059 do_negate, expand_vector_piecewise, expand_vector_parallel,
2060 expand_vector_addition, expand_vector_operations_1,
2061 expand_vector_operations, tree_lower_operations,
2062 pass_lower_vector_ssa, pass_pre_expand): New.
2063 (expand_complex_operations, pass_lower_complex): Remove.
2064 * tree-optimize.c (init_tree_optimization_passes): Adjust
2065 pass ordering for changes in tree-complex.c.
2066 * tree-pass.h: Declare new passes.
2067 * tree.c (finish_vector_type): Remove.
2068 (make_vector_type): New.
2069 (build_vector_type_for_mode, build_vector_type): Rewritten.
2070 * tree.def (VECTOR_TYPE): Document where the number of
2072 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
2073 (make_vector): Remove declaration.
2075 2004-07-21 Richard Henderson <rth@redhat.com>
2077 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
2078 TREE_THIS_VOLATILE, may_aliases, or optimization level.
2079 (remove_useless_vars): Dump debugging info.
2080 (expand_used_vars): Move ...
2081 * cfgexpand.c (expand_used_vars): ... here. Make static.
2082 * tree-flow-inline.h (set_is_used): New.
2083 (set_default_def): Use get_var_ann.
2084 * tree-flow.h: Update decls.
2085 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
2086 (create_ssa_var_map): Use it.
2087 * tree-ssa.c (set_is_used): Remove.
2089 2004-07-22 Ben Elliston <bje@au.ibm.com>
2091 * gdbinit.in: Set a breakpoint on internal_error.
2093 2004-07-21 Richard Henderson <rth@redhat.com>
2095 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
2096 to create a new basic block.
2098 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
2101 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
2102 return type on function definitions. Move other warnings for
2103 qualified return type to -Wreturn-type. Do not condition any such
2104 warnings on -pedantic. Update comments.
2105 (start_function): Only copy function type from previous prototype
2106 declaration if return types are compatible.
2107 * c-typeck.c (function_types_compatible_p): Don't condition
2108 warning for incompatibility of volatile qualifiers on the return
2109 type on -pedantic. Update comment.
2110 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
2112 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
2114 * c-typeck.c (set_init_index): Require designator to be of integer
2117 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
2120 * c-parse.in (init): Change to exprtype.
2121 (primary): Set original_code for STRING to STRING_CST.
2122 Call maybe_warn_string_init for compound literals.
2123 (initdcl, notype_initdcl): Call maybe_warn_string_init.
2125 * c-tree.h (maybe_warn_string_init): New.
2126 (pop_init_level, process_init_element): Use struct c_expr.
2127 (struct c_expr): Update comment.
2128 * c-typeck.c (maybe_warn_string_init): New function.
2129 (digest_init): Call it. Additional parameter strict_string. All
2131 (output_init_element): Likewise.
2132 (struct constructor_stack): Use struct c_expr for
2134 (really_start_incremental_init, push_init_level): Update.
2135 (pop_init_level): Update. Return struct c_expr.
2136 (process_init_level): Update. Take struct c_expr argument.
2138 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
2140 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
2143 2004-07-21 Eric Christopher <echristo@redhat.com>
2145 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
2147 * c-decl.c (pop_scope): Ditto.
2148 * calls.c (expand_call): Remove call to current_nesting_level,
2149 update comment accordingly. Remove calls to expand_start_target_temps
2150 and expand_end_target_temps.
2151 * cfgexpand.c (construct_init_block): Remove call to
2152 expand_start_bindings_and_block.
2153 (construct_exit_block): Remove call to expand_end_bindings.
2154 * expr.c (safe_from_p): Remove BIND_EXPR handling.
2155 (expand_expr_real_1): Ditto. Fix formatting.
2156 (expand_vars): Delete.
2157 * stmt.c (POPSTACK): Remove block_stack.
2158 (stmt_status): Remove x_block_stack.
2159 (block_stack): Delete.
2160 (expand_start_bindings_and_block): Ditto.
2161 (expand_start_target_temps): Ditto.
2162 (expand_end_target_temps): Ditto.
2163 (current_nesting_level): Ditto.
2164 (warn_about_unused_variables): Ditto.
2165 (expand_end_bindings): Ditto.
2166 * tree.h: Remove declarations for above.
2168 2004-07-21 Steven Bosscher <stevenb@suse.de>
2170 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
2171 * rtl.c (note_insn_name): Likewise.
2172 * print-rtl.c (print_rtx): Don't print it.
2173 * cfgrtl.h (can_delete_note_p): Don't handle it.
2174 (rtl_delete_block): Likewise.
2175 * passes.c (rest_of_handle_guess_branch_prob): Remove.
2176 (rest_of_compilation): Don't call it.
2177 * predict.c (process_note_predictions, process_note_prediction,
2178 note_prediction_to_br_prob): Remove.
2179 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
2180 * stmt.c (return_prediction): Remove.
2181 (expand_value_return): Don't call it. Don't add prediction
2182 notes for return statements.
2184 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
2186 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
2189 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
2191 * c-common.c (vector_types_convertible_p): Use vector types'
2192 TYPE_SIZE and TREE_TYPE instead of their mode.
2193 * convert.c (convert_to_integer): Likewise.
2194 (convert_to_vector): Likewise.
2195 * fold-const.c (fold_convert): Likewise.
2196 * varasm.c (output_constant): Likewise.
2197 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
2198 Allow a VECTOR_TYPE initializer to be made of several vectors.
2199 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
2200 of cleared and need_to_clear, and use fold_convert.
2201 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
2204 2004-07-20 Richard Henderson <rth@redhat.com>
2206 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
2207 (expand_gimple_basic_block): out from here. Renamed from expand_block.
2209 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
2211 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
2212 enormous cost if not TARGET_HARD_MUL.
2214 2004-07-20 Andrew Pinski <apinski@apple.com>
2217 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
2220 2004-07-21 Paul brook <paul@codesourcery.com>
2222 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
2224 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2226 * fold-const.c (operand_equal_p): Temporarily support NULL args.
2227 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
2228 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
2230 2004-07-20 Zack Weinberg <zack@codesourcery.com>
2232 * rtl.h (plus_constant): Delete.
2233 (plus_constant_wide): Rename to plus_constant.
2234 (plus_constant_for_output_wide): Delete vestigial prototype.
2235 (GEN_INT): Remove unnecessary cast.
2236 * tree.h (build_int_2, size_int_type): Delete.
2237 (build_int_2_wide): Rename to build_int_2.
2238 (size_int_wide): Rename to size_int_kind.
2239 (size_int_type_wide): Rename to size_int_type.
2240 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
2241 Remove unnecessary cast.
2242 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
2243 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
2244 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
2245 (size_int_type_wide): Rename size_int_type.
2246 (int_const_binop): Use size_int_type.
2247 * c-lex.c (interpret_integer): Use build_int_2.
2248 * final.c (split_double): Remove unnecessary casts.
2249 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
2251 2004-07-20 Richard Henderson <rth@redhat.com>
2253 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
2254 (gimplify_compound_lval): Use is_gimple_tmp_reg.
2255 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
2256 (is_gimple_tmp_reg): New.
2257 * tree-gimple.h (is_gimple_tmp_reg): Declare.
2259 2004-07-20 Richard Henderson <rth@redhat.com>
2261 * tree-pretty-print.c (dump_generic_node): Dump
2262 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
2264 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
2266 * tree-mudflap.c (mf_set_options_fndecl): New tree.
2267 (mudflap_init): Set it.
2268 (mudflap_register_call): Remove __mf_init call.
2269 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
2270 to pass "-ignore-reads" option to libmudflap if needed.
2272 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
2275 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
2276 (MAKE_DECL_ONE_ONLY): Undefine.
2277 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
2278 readonly_data, one_only_data_section, forget_section): New prototypes.
2279 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
2281 (pa_select_section): Add one-only (COMDAT) support.
2282 * pa.h (struct machine_function): Define.
2283 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
2284 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
2285 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
2286 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
2287 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
2288 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
2289 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
2290 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
2291 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
2292 for EXTRA_SECTION_FUNCTIONS.
2293 * doc/install.texi: Update binutils requirements.
2295 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
2297 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
2298 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
2299 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
2301 (struct VEC): Use unsigned for num and alloc.
2302 * vec.c (struct vec_prefix): Likewise.
2303 (vec_o_reserve): Adjust.
2305 * dbxout.c (dbxout_type): Fix printf format.
2307 * tree.h (binfo_member): Remove.
2308 * tree.c (binfo_member): Remove.
2310 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
2312 * tree.h: Include vec.h
2313 (DEF_VEC_P(tree)): New type.
2314 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
2315 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
2316 (BINFO_LANG_SLOT): Remove.
2317 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
2318 (struct tree_binfo): Turn base_binfos into a trailing
2319 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
2320 (binfo_lang_slots): Remove.
2321 * tree.c (binfo_lang_slots): Remove.
2322 (make_tree_binfo_stat): Take a base binfo count, not a
2323 lang slot count. Adjust.
2324 * Makefile.in (TREE_H): Add vec.h
2325 * alias.c (record_component_aliases): Adjust BINFO access.
2326 * dbxout.c (dbxout_type): Likewise.
2327 * dwarf2out.c (gen_member_die): Likewise.
2328 * sdbout.c (sdbout_one_type): Likewise.
2329 * tree-dump.c (deque_and_dump): Likewise.
2330 * config/i386/i386.c (classify_argument,
2331 contains_128bit_aligned_vector_p): Likewise.
2332 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
2333 * doc/c-tree.texi (Classes): Update BINFO documentation.
2335 2004-07-20 Steven Bosscher <stevenb@suse.de>
2337 * c-common.h (check_case_value): Remove prototype.
2338 (c_add_case_label): Adjust prototype.
2339 * c-common.c (check_case_value): Make static.
2340 (check_case_bounds): New function.
2341 (c_add_case_label): Use it. Take new argument orig_type.
2342 * c-typeck.c (struct c_switch): New orig_type field.
2343 (c_start_case): Set it.
2344 (do_case): Pass it to c_add_case_label.
2345 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
2346 cases from here. Add the labels in reverse order.
2347 * stmt.c (struct case_node): Adjust comment. Remove balance field.
2348 (add_case_node): Return nothing, don't check for duplicate cases.
2349 Insert new case nodes in a list, not in an AVL tree.
2350 (expand_end_case_type): Don't turn a case tree into a case list.
2351 (case_tree2list): Remove.
2352 * tree.h (add_case_node): Adjust prototype.
2354 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
2356 * genattr.c (struct range, struct function_unit,
2357 write_units, extend_range, init_range): Remove them.
2358 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
2359 Output "#define INSN_SCHEDULING" here.
2360 * genattrtab.c (struct range, struct function_unit_op,
2361 struct function_unit, struct dimension, enum operator,
2362 operate_exp, expand_units, simplify_knowing,
2363 encode_units_mask, simplify_by_exploding,
2364 find_and_mark_used_attributes, unmark_used_attributes,
2365 add_values_to_cover, increment_current_value,
2366 test_for_current_value, simplify_with_current_value,
2367 simplify_with_current_value_aux, gen_unit,
2368 write_unit_name, write_function_unit_info,
2369 write_complex_function, write_toplevel_expr,
2370 find_single_value, extend_range): Remove.
2371 (write_attr_get): Do not handle common_av->value
2373 (struct attr_desc): Remove func_units_p and blockage_p.
2374 (write_attr_valueq): Do not handle them.
2375 (find_attr): Do not clear them.
2376 (make_internal_attr): Do not initialize them.
2377 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
2378 * sched-vis.c (init_target_units, insn_print_units,
2379 init_block_visualization, print_block_visualization,
2380 visualize_scheduled_insns, visualize_no_unit,
2381 visualize_stall_cycles, visualize_alloc,
2382 visualize_free, target_units, get_visual_tbl_length,
2383 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
2384 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
2385 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
2386 * haifa-sched.c (blockage_range, clear_units,
2387 schedule_unit, actual_hazard, potential_hazard,
2388 insn_unit, unit_last_insn, unit_tick,
2389 actual_hazard_this_instance, potential_hazard,
2390 schedule_unit, max_insn_queue_index_value): Remove.
2391 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
2392 max_insn_queue_index.
2393 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
2394 * doc/md.texi (Processor pipeline description): Remove
2395 references to old pipeline descriptions.
2396 (Automaton pipeline description): Merge with the above.
2397 (Old pipeline description, Comparison of the two descriptions):
2400 * bt-load.c (migrate_btr_def): Remove references to
2401 use_pipeline_interface.
2402 * haifa-sched.c (insn_cost, schedule_insn,
2403 schedule_block, advance_one_cycle, sched_init,
2404 queue_to_ready, sched_finish): Likewise.
2405 * modulo-sched.c (sms_schedule, advance_one_cycle,
2406 ps_has_conflicts): Likewise.
2407 * sched-rgn.c (init_ready): Likewise.
2408 (debug_dependencies): Likewise, and remove an "if (1)".
2409 * target.h (use_dfa_pipeline_interface): Remove.
2410 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2411 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2412 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2413 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2414 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2415 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2416 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2417 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2418 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2419 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2420 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2421 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2422 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2423 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2424 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2425 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2426 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2427 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2428 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2430 2004-07-19 Roger Sayle <roger@eyesopen.com>
2432 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
2434 2004-07-19 Jeff Law <law@redhat.com>
2436 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
2437 (get_eq_expr_value): Use it. Simplify slightly.
2439 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
2441 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
2442 (umulsidi3_32bit_r4000): Likewise.
2444 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
2446 * vec.h: Propagate location information properly.
2447 (VEC_T_iterate): Add result pointer parameter.
2449 (VEC_T_reserve): Use it.
2451 2004-07-19 Daniel Jacobowitz <dan@debian.org>
2453 * Makefile.in (c-format.o): Depend on c-format.h.
2454 * c-format.h: New file.
2455 (struct format_char_info): Add CHAIN member.
2456 * c-format.c: Move some types and constants to c-format.h.
2457 (format_type_error): Set to -1.
2458 (struct function_format_info): Use an int for format_type.
2459 (decode_format_type): Return an int. Return format_type_error
2461 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
2462 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
2463 (scan_char_table, time_char_table, monetary_char_table): Initialize
2465 (n_format_types): New variable.
2466 (check_format_info_main): Handle CHAIN in format_char_info.
2467 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
2468 TARGET_N_FORMAT_TYPES.
2469 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
2470 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
2471 * config/sol2-c.c: New file.
2472 * config/t-sol2: New file.
2473 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
2474 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
2475 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
2477 * doc/extend.texi (Target Format Checks): New section.
2478 (Function Attributes): Mention it.
2479 * doc/invoke.texi: Mention target format checks.
2480 * doc/sourcebuild.texi: Mention target format checks.
2481 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
2482 TARGET_FORMAT_TYPES.
2484 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
2486 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
2488 * config/s390/s390.c (regclass_map initializer): Register 35 added to
2490 (load_multiple_operation, store_multiple_operation): Removed
2491 pointless sanity check.
2492 (s390_decompose_address): Added check for return_address_pointer_rtx.
2493 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
2494 (s390_return_address_offset): New function.
2495 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
2496 (FRAME_REGNO_P): Added check for register 35.
2497 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2498 REG_ALLOC_ORDER): Appended entry for register 35.
2499 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
2500 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
2501 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
2502 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
2503 is eliminable using stack pointer or hard frame pointer.
2504 (REGISTER_NAMES): Added name for register 35.
2505 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
2506 pointless sanity check.
2508 2004-07-19 Roger Sayle <roger@eyesopen.com>
2510 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
2511 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
2512 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
2513 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
2514 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
2515 (fold_relational_const): Tidy up handling of floating point
2516 comparisons by calling real_compare. Remove tree_expr_nonzero_p
2517 transformation; fold_relational_const assumes constant operands.
2519 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
2521 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
2524 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
2526 * c-tree.h (struct c_expr): Define.
2527 (C_SET_EXP_ORIGINAL_CODE): Remove.
2528 (parser_build_binary_op, build_compound_expr): Update prototypes.
2529 * c-parse.in (%union): Add exprtype.
2530 (FUNC_NAME): Mark as ttype.
2531 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
2533 (expr): Update. Define directly in terms of expr_no_commas
2534 instead of using nonnull_exprlist.
2535 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
2536 offsetof_member_designator, typespec_nonreserved_nonattr, init,
2537 initval, designator, component_declarator,
2538 component_notype_declarator, enumerator, array_declarator,
2539 condition, exexpr, switch_statement, stmt_nocomp, stmt,
2540 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
2541 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
2543 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
2544 * c-common.c (c_common_truthvalue_conversion): Don't check
2545 C_EXP_ORIGINAL_CODE.
2546 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
2547 Don't use C_EXP_ORIGINAL_CODE.
2548 (default_conversion, default_function_array_conversion): Don't use
2549 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
2550 (internal_build_compound_expr): Merge into build_compound_expr.
2551 (build_compound_expr): Take two operands instead of a TREE_LIST.
2552 * objc/objc-act.c (get_super_receiver): Update calls to
2553 build_compound_expr.
2555 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
2557 * config/sh/sh.c (sh_use_dfa_interface): Remove.
2558 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
2560 * config/sh/sh.md: Extract pipeline descriptions
2561 into separate files.
2562 * config/sh/sh1.md: New file, extracted from sh.md.
2563 * config/sh/sh4.md: New file, extracted from sh.md.
2564 * config/sh/shmedia.md: New file, extracted from sh.md
2565 and rewritten using new-style pipeline description.
2567 2004-07-18 Zack Weinberg <zack@codesourcery.com>
2569 * config/pa/pa.md: Delete the two remaining define_peephole
2572 2004-07-18 Steven Bosscher <stevenb@suse.de>
2573 Joseph S. Myers <jsm@polyomino.org.uk>
2575 * c-common.c (c_common_truthvalue_conversion): Don't warn if
2576 TREE_NO_WARNING is set.
2578 2004-07-18 Roger Sayle <roger@eyesopen.com>
2580 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
2581 simplify_builtin_strncmp): Delete.
2582 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
2583 Change argument to accept an arglist instead of an "exp". Assume
2584 that the return type is always integer_type_node. Copy missing
2585 transformations from their now obsolete simplify_builtin_*
2587 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
2588 fold_builtin_strcmp and fold_builtin_strncmp.
2589 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
2590 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
2591 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
2593 2004-07-18 Daniel Jacobowitz <dan@debian.org>
2595 * Makefile.in (tree-alias-common.o): Update dependencies.
2597 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
2599 * cfgloop.c (flow_loop_nested_p): Fix comment.
2601 2004-07-17 Jason Merrill <jason@redhat.com>
2604 * stor-layout.c (relayout_decl): New fn.
2605 * tree.h: Declare it.
2606 (DECL_BY_REFERENCE): New macro.
2608 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
2610 * libgcc2.c (__enable_execute_stack): New symbol.
2611 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
2612 and declare __enable_execute_stack.
2613 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
2614 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
2615 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2616 ENABLE_EXECUTE_STACK.
2617 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
2618 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2619 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2620 ENABLE_EXECUTE_STACK.
2621 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2622 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
2623 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2624 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2625 ENABLE_EXECUTE_STACK.
2626 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2627 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2628 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2629 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2630 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
2631 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2632 (sparc64_initialize_trampoline): Likewise.
2633 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
2635 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
2637 * langhooks.h (builtin_function): New langhook.
2638 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
2639 (LANG_HOOKS_INITIALIZER): Update.
2640 * tree.h (builtin_function): Remove.
2641 * doc/tm.texi: Update.
2642 * c-tree.h (builtin_function): Declare.
2643 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
2644 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
2645 config/ia64/ia64.c, config/iq2000/iq2000.c,
2646 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
2647 config/stormy16/stormy16.c: All callers of builtin_function
2650 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
2653 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2654 Remove white space after the backslash.
2656 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2658 PR rtl-optimization/16294
2659 * resource.c (return_insn_p): New predicate.
2660 (mark_target_live_regs): Use it. Special-case return insns.
2661 (init_resource_info): Use it. Don't scan the epilogue past
2664 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2666 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
2667 destroy dominance information.
2668 * passes.c (rest_of_handle_loop2): Free dominance information.
2669 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
2671 (thread_jumps): Update dominance information and remove unreachable
2673 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
2674 information and remove the unreachable block.
2676 2004-07-17 Graham Stott <graham.stott@btinternet.com>
2678 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
2680 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
2682 * doc/sourcebuild.texi: Remove libf2c entry.
2684 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
2686 * config/i386/i386.md (movv16qi_internal): Fix typo.
2688 2004-07-17 Steven Bosscher <stevenb@suse.de>
2690 * final.c (final_scan_insn): Fix broken commit from previous
2693 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
2695 * c-typeck.c (parser_build_binary_op): Condition warnings for
2696 X<=Y<=Z on -Wparentheses instead of -Wextra.
2697 * doc/invoke.texi: Update. Document that most of -Wparentheses is
2698 supported for C only.
2700 2004-07-17 Steven Bosscher <stevenb@suse.de>
2702 * cfgcleanup.c (try_simplify_condjump): Don't remove line
2703 notes to avoid unreachable code warnings.
2704 * toplev.c (backend_init): Don't emit line notes for
2705 unreachable code warnings.
2707 * combine.c (distribute_notes): Don't distribute a
2708 REG_VTABLE_REF note.
2709 * final.c (final_scan_insn): Don't handle it.
2710 * rtl.c (reg_note_name): Remove it.
2711 * rtl.h (enum reg_node): Dito.
2713 * emit-rtl.c (force_line_numbers, restore_line_number_status):
2715 * rtl.h (force_line_numbers, restore_line_number_status):
2718 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
2719 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
2720 (using_eh_for_cleanups): Also moved here.
2722 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
2723 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
2724 to expand_start_case and add_case_node.
2725 * stmt.c (struct nesting): Cleanup unused fields condition_code,
2726 last_unconditional_cleanup, nominal_type, printname, and
2728 (struct fixup_goto): Remove.
2729 (struct stmt_status): Remove x_goto_fixup_chain field.
2730 (goto_fixup_chain): Remove.
2731 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
2732 pushcase, pushcase_range): Remove.
2733 (expand_start_bindings_and_block): Don't set unused fields in
2735 (expand_start_case, add_case_node): Cleanup unused formal arguments.
2736 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
2737 instead of emit_jump_if_reachable.
2738 (emit_case_nodes): Likewise.
2739 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
2741 (update_eh_label): Work around left-over exception handing regions.
2742 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
2743 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
2744 (pass_cleanup_cfg_post_optimizing): New pass.
2745 (init_tree_optimization_passes): Run the new pass after all
2747 * tree.h (pushcase, pushcase_range): Remove prototypes.
2748 (expand_start_case, add_case_node): Update prototypes.
2750 2004-07-16 Krister Walfridsson <cato@df.lth.se>
2752 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
2754 2004-07-16 Richard Henderson <rth@redhat.com>
2756 * builtins.c (std_expand_builtin_va_arg): Remove.
2757 (expand_builtin_va_arg): Remove.
2758 * expr.h: Don't declare them.
2759 * gimplify.c (mark_decls_volatile_r): Remove.
2760 (copy_if_shared_r): Don't call it.
2761 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
2762 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
2763 * gimple-low.c (lower_stmt): Likewise.
2764 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
2765 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
2766 * tree-ssa-operands.c (get_expr_operands): Likewise.
2767 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
2768 EXPAND_BUILTIN_VA_ARG.
2769 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
2770 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
2771 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
2772 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
2774 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
2776 * tree-ssa-pre.c (insert_aux): Break out if we hit
2779 2004-07-16 Richard Henderson <rth@redhat.com>
2781 * basic-block.h (remove_fake_exit_edges): Declare.
2782 * cfganal.c (remove_fake_predecessors): Rename from
2783 remove_fake_successors; iterate over predecessors.
2784 (remove_fake_exit_edges): New.
2785 * cfgcleanup.c (try_optimize_cfg): Use it.
2786 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
2787 * predict.c (estimate_probability): Likewise.
2788 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
2789 * tree-cfg.c (make_edges): Likewise.
2790 * tree-ssa-pre.c (fini_pre): Likewise.
2791 * profile.c (instrument_edges): Don't remove_fake_edges.
2792 (branch_prob): Do it earlier here.
2794 2004-07-16 Richard Henderson <rth@redhat.com>
2796 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
2797 switchification wrt CONSTRUCTOR. Document the reason.
2799 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
2801 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
2802 that prevented descriptive __mf_check source location strings.
2804 2004-07-16 Richard Henderson <rth@redhat.com>
2806 * tree-def (WITH_SIZE_EXPR): New.
2807 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
2808 * expr.c (expand_expr_real_1): Likewise.
2809 * gimplify.c (maybe_with_size_expr): New.
2810 (gimplify_arg, gimplify_modify_expr): Use it.
2811 (gimplify_modify_expr_to_memcpy): Take size parameter.
2812 (gimplify_modify_expr_to_memset): Likewise.
2813 (gimplify_expr): Handle WITH_SIZE_EXPR.
2814 * tree-alias-common.c (find_func_aliases): Likewise.
2815 * tree-eh.c (tree_could_trap_p): Likewise.
2816 (tree_could_throw_p): Likewise.
2817 * tree-gimple.c (is_gimple_lvalue): Likewise.
2818 (get_call_expr_in): Likewise.
2819 * tree-inline.c (estimate_num_insns_1): Likewise.
2820 (expand_calls_inline): Likewise.
2821 * tree-nested.c (convert_call_expr): Likewise.
2822 * tree-pretty-print.c (dump_generic_node): Likewise.
2823 * tree-sra.c (sra_walk_expr): Likewise.
2824 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
2825 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
2826 * tree-ssa-operands.c (get_expr_operands): Likewise.
2827 * tree-tailcall.c (find_tail_calls): Likewise.
2829 * calls.c (expand_call): Reset old_stack_allocated after
2830 calling emit_stack_restore.
2832 2004-07-16 Richard Henderson <rth@redhat.com>
2834 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
2835 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
2836 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
2837 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
2838 copy_res_decl_for_inlining.
2840 * tree-inline.c (declare_return_variable): New modify_dest argument.
2841 Use it as the return value, when possible or manditory. Handle
2842 TREE_ADDRESSABLE types.
2843 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
2844 replacement of CALL_EXPR.
2846 2004-07-16 Richard Henderson <rth@redhat.com>
2848 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
2849 * gimple-low.c (expand_var_p): Don't check it.
2850 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
2851 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2852 * tree-ssa-operands.c (add_stmt_operand): Likewise.
2853 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
2854 (find_referenced_vars): Don't call them.
2855 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
2857 2004-07-16 Richard Henderson <rth@redhat.com>
2859 * function.c (pass_by_reference): True for all variable sized types.
2861 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
2863 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
2864 * tree-pretty-print.c: Include tree-chrec.h.
2865 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
2866 and POLYNOMIAL_CHREC nodes.
2868 2004-07-16 Steve Ellcey <sje@cup.hp.com>
2870 * builtins.c (expand_builtin_stpcpy): Do not create temporary
2873 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
2875 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
2877 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
2879 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
2881 * config/s390/s390.c: Likewise.
2882 * config/s390/s390.h: Likewise.
2884 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2886 * config/mips/mips.md (addsi3, adddi3): Remove special handling
2887 of $sp adds. Remove REGNO checks from mips16 patterns.
2889 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2891 * config/mips/mips.md: Delete outdated comment.
2893 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2895 * config/mips/mips.c (get_float_compare_codes): Delete.
2896 (mips_emit_compare): New function, mostly extracted from
2897 get_float_compare_codes and gen_conditional_branch.
2898 (gen_conditional_branch, gen_conditional_move): Use it.
2900 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
2902 * genautomata.c (add_vect): Speedup by using integers as
2903 bit-vectors for walking through the comb_vect and finding
2906 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2908 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
2909 operand is an uns_arith_operand; use subtraction otherwise.
2910 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
2911 not just arith_operands.
2913 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2915 * config/mips/mips-protos.h (gen_int_relational): Delete.
2916 (mips_emit_scc): Declare.
2917 * config/mips/mips.c (internal_test): Delete.
2918 (sle_operand, sleu_operand): New functions.
2919 (map_test_to_internal_test, gen_int_relational): Delete.
2920 (mips_emit_binary, mips_relational_operand_ok_p)
2921 (mips_emit_int_relational, mips_zero_if_equal)
2922 (mips_emit_scc): New functions.
2923 (gen_conditional_branch): Rework to use mips_emit_int_relational.
2924 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
2926 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
2927 (sltu, sleu): Use mips_emit_scc.
2928 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
2929 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
2930 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
2932 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2934 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
2936 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2938 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
2939 (*sne_[sd]i): Likewise sne_[sd]i_zero.
2940 (*sgt_[sd]i): ...and sgt_[sd]i.
2941 (*slt_[sd]i): ...and slt_[sd]i.
2942 (*sgtu_[sd]i): ...and sgtu_[sd]i.
2943 (*sltu_[sd]i): ...and sltu_[sd]i.
2944 (*sleu_[sd]i): ...and sleu_[sd]i_const.
2945 Name previously unnamed mips16 patterns. Formatting fixes.
2947 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2949 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
2950 (branch_type): Delete.
2951 (gen_conditional_branch, gen_conditional_move)
2952 (mips_gen_conditional_trap): Update after name change. Get the
2953 comparison mode from cmp_operands[0].
2954 * config/mips/mips.h (cmp_type, branch_type): Delete.
2955 (cmp_operands): Renamed from branch_cmp.
2956 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
2957 name change. Don't set branch_type.
2958 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
2959 mode class of cmp_operands[0] rather than branch_type. Update after
2962 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2964 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
2965 of 0...255 to 0 when inside a SET.
2967 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
2969 * config/mips/mips.md: Remove mips16 define_peepholes.
2971 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
2973 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
2974 (fini_pre): Remove fake edges.
2976 2004-07-15 Richard Henderson <rth@redhat.com>
2978 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
2979 (get_indirect_ref_operands, get_call_expr_operands): ... these.
2981 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
2983 * vec.h (VEC_address): New function.
2985 2004-07-14 Jason Merrill <jason@redhat.com>
2988 * gimplify.c (gimplify_arg): New fn, split out from...
2989 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
2991 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
2993 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
2994 generate code which is generated by pushqi1 now
2995 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
2997 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
2999 * combine.c (simplify_set): match the mode of the constant 0 with
3000 the tested operand to match the compare behaviour and the
3001 simplify_relational_operation() expectation.
3003 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
3005 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
3008 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
3010 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
3012 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
3014 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
3016 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
3017 calls in mips16 code.
3019 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
3021 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
3022 the destination of the li as well as for the neg.
3024 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
3027 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
3028 * cgraph.h: Update declaration.
3029 * c-decl.c (build_cdtor): Update call with default priority.
3030 * coverage.c (create_coverage): Ditto.
3031 * tree-mudflap.c (mf_init_fndecl): New tree.
3032 (mudflap_init): Set it.
3033 (mudflap_register_call): Arrange to call __mf_init before the first
3035 (mudflap_finish_file): Mark the mudflap static initializer as extra
3036 high priority, to beat all C++ static constructors.
3038 2004-07-15 Jeff Law <law@redhat.com>
3040 * loop.c (check_insn_for_givs): Restore check for code labels that was
3041 accidentally deleted by a recent checkin.
3043 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
3045 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
3046 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
3048 2004-07-14 Richard Henderson <rth@redhat.com>
3050 * print-tree.c (print_node): Fix casts last change.
3052 2004-07-15 Paul Brook <paul@codesourcery.com>
3054 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
3055 to TARGET_UNWIND_INFO.
3056 * except.c (output_function_exception_table): Ditto.
3058 * opts.c (decode_options): Ditto.
3059 * passes.c (rest_of_handle_final): Ditto.
3060 * final.c (final_start_function): Ditto.
3061 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
3063 * targhooks.h (default_unwind_emit): Declare.
3064 * targhooks.c (default_unwind_emit): New function.
3065 * target-def.h: Define and use TARGET_UNWIND_EMIT.
3066 * target.h (struct gcc_target): Add unwind_emit.
3067 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
3068 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
3069 Remove IA64_UNWIND_EMIT.
3070 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
3072 2004-07-14 Richard Henderson <rth@redhat.com>
3074 * print-tree.c (print_node): Handle SSA_NAME.
3076 2004-07-14 James E Wilson <wilson@specifixinc.com>
3079 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
3080 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
3082 2004-07-15 Jakub Jelinek <jakub@redhat.com>
3084 * expr.c (expand_assignment): Reenable bitfield += optimizations.
3085 Use alias set 0 for memory, do proper mode calculations and adjust
3086 address for memories.
3088 2004-07-14 Per Bothner <per@bothner.com>
3090 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
3091 structure with extra column field.
3092 * tree.c (expand_location): Also fill in column field.
3093 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
3094 gets confused by the two conditionally-compiled definitions.
3096 2004-07-14 Eric Christopher <echristo@redhat.com>
3098 * calls.c (expand_call): Fix typo in comment.
3100 2004-07-14 Steve Ellcey <sje@cup.hp.com>
3102 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
3103 comparision of TFmode.
3105 2004-07-14 Richard Henderson <rth@redhat.com>
3107 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
3108 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
3109 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
3110 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3111 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
3112 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3113 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3114 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
3115 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
3117 2004-07-14 Mike Stump <mrs@apple.com>
3119 * config/darwin.h (WINT_TYPE): Define to be int to match
3120 system header files.
3122 2004-07-14 Bob Wilson <bob.wilson@acm.org>
3124 * config/xtensa/xtensa.c (function_arg_advance): Check for args
3125 that must be passed in the stack.
3126 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
3127 arguments if the size is not a constant.
3129 2004-07-14 Per Bothner <per@bothner.com>
3131 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
3132 instead of EXPR_LOCUS in a boolean context, which is always true
3133 if --enable-mapped-location.
3134 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
3136 2004-07-14 Richard Henderson <rth@redhat.com>
3138 * dominance.c (struct dom_info): Add fake_exit_edge.
3139 (init_dom_info): Allocate it.
3140 (free_dom_info): Free it.
3141 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
3143 (calc_idoms): Honor fake_exit_edge.
3145 2004-07-13 Jason Merrill <jason@redhat.com>
3147 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
3148 (rhs_test_for): New fn.
3149 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
3150 * tree-gimple.h: Declare them.
3151 * gimplify.c (gimplify_modify_expr): Use the new fns.
3153 2004-07-14 Richard Henderson <rth@redhat.com>
3155 * config/arm/arm-protos.h (arm_va_arg): Remove.
3156 * config/arm/arm.c (arm_va_arg): Remove.
3157 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
3158 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
3160 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3162 * pa.c (fix_range): New function to mark a range(s) of registers as
3164 (override_options): Call fix_range if the -mfixed-range option string
3166 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
3167 * doc/invoke.texi (-mfixed-range): Document new option.
3169 2004-07-14 David Edelsohn <edelsohn@gnu.org>
3171 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
3173 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
3175 2004-07-14 Roger Sayle <roger@eyesopen.com>
3177 * expmed.c (expand_sdiv_pow2): New function to expand signed division
3178 by a positive power of two, split out from expand_divmod. Provide
3179 an alternate implementation when shifts are expensive. Lower the
3180 threshold for using a branchless implementation to BRANCH_COST >= 2.
3181 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
3183 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
3185 * tree-dfa.c (make_rename_temp): *Really* work just
3186 like create_tmp_var if called while outside SSA form.
3188 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3190 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
3191 for division by zero.
3192 ("umodsi3"): Likewise.
3194 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
3196 * config/mips/mips.c (mips_output_move): When generating mips16 code,
3197 force loads of negative constants to be split.
3198 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
3199 Generalize SImode li/neg splitter to cope with other modes.
3201 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
3203 * expmed.c: Remove more references to QUEUED in the comments.
3206 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
3209 2004-07-13 Richard Henderson <rth@redhat.com>
3210 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
3213 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
3215 * tree-dfa.c (make_rename_temp): Work just like
3216 create_tmp_var if called while outside SSA form.
3218 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
3220 * expr.c (enqueue_insn, finish_expr_for_function,
3221 protect_from_queue, queued_subexp_p, mark_queue,
3222 emit_insns_enqueued_after_mark, emit_queue,
3223 expand_increment): Remove.
3224 (store_constructor): Expand increment as an assignment.
3225 (expand_expr_real_1 <case PREINCREMENT_EXPR,
3226 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
3227 case POSTDECREMENT_EXPR>): Abort.
3228 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
3229 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
3230 protect_from_queue, emit_queue, queued_subexp_p): Remove.
3231 * function.h (pending_chain, x_pending_chain): Remove.
3232 * rtl.def (QUEUED): Remove.
3234 * emit-rtl.c (copy_insn_1, copy_most_rtx,
3235 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
3236 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
3237 encode_units_mask): Likewise.
3238 * local-alloc.c (equiv_init_varies_p): Likewise.
3239 * rtl.c (copy_rtx): Likewise.
3240 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
3241 * simplify-rtx.c (simplify_gen_subreg): Likewise.
3242 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
3244 * builtins.c (expand_builtin, expand_builtin_apply,
3245 expand_builtin_mathfn, expand_builtin_mathfn_2,
3246 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
3247 Remove calls to emit_queue and protect_from_queue.
3248 * calls.c (expand_call, precompute_arguments,
3249 precompute_register_parameters, rtx_for_function_call,
3250 store_one_arg): Likewise.
3251 * dojump.c (do_compare_and_jump, do_jump): Likewise.
3252 * explow.c (memory_address): Likewise.
3253 * expmed.c (clear_by_pieces_1, clear_storage,
3254 clear_storage_via_libcall, emit_group_load,
3255 emit_group_store, emit_store_flag,
3256 expand_expr_real_1, store_by_pieces,
3257 store_constructor, store_expr, try_casesi,
3258 try_tablejump): Likewise.
3259 * function.c (expand_pending_sizes): Likewise.
3260 * optabs.c (emit_cmp_and_jump_insns,
3261 emit_conditional_add, emit_conditional_move,
3262 expand_fix, expand_float, prepare_cmp_insn): Likewise.
3263 * stmt.c (emit_case_bit_tests,
3264 expand_asm_expr, expand_computed_goto,
3265 expand_decl_init, expand_end_case_type,
3266 expand_end_stmt_expr, expand_expr_stmt_value,
3267 expand_return, expand_start_case,
3268 optimize_tail_recursion): Likewise.
3269 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3270 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
3272 2004-07-14 Ben Elliston <bje@au.ibm.com>
3274 * vec.h: Comment fix.
3276 2004-07-13 Richard Henderson <rth@redhat.com>
3278 * target.h (struct gcc_target): Add calls.pass_by_reference.
3279 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
3280 * function.c (pass_by_reference): Use the hook.
3281 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
3282 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
3283 (hook_pass_by_reference_must_pass_in_stack): New.
3284 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
3285 (alpha_pass_by_reference): New.
3286 (TARGET_PASS_BY_REFERENCE): New.
3287 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3288 * config/arc/arc.c (arc_pass_by_reference): New.
3289 (TARGET_PASS_BY_REFERENCE): New.
3290 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3291 (FUNCTION_ARG_CALLEE_COPIES): True.
3292 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
3293 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
3294 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
3295 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3296 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3297 * config/cris/cris.c (cris_pass_by_reference): New.
3298 (TARGET_PASS_BY_REFERENCE): New.
3299 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
3300 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
3301 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3302 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
3303 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3304 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
3305 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
3306 (frv_function_arg_pass_by_reference): Remove.
3307 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3308 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
3309 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
3310 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
3311 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3312 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
3313 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
3314 (ia64_pass_by_reference): Rename from
3315 ia64_function_arg_pass_by_reference.
3316 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3317 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3318 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
3319 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
3320 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
3321 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3322 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
3323 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
3324 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
3325 (m32r_pass_by_reference): Adjust prototype. Make static.
3326 Handle mode sizes correctly.
3327 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3328 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
3329 (m68hc11_function_arg_pass_by_reference): Remove.
3330 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3331 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
3332 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
3333 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3334 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
3335 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
3336 (mips_va_arg): Use pass_by_reference.
3337 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
3338 Handle mode sizes correctly.
3339 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3340 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
3341 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
3342 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
3343 (mmix_pass_by_reference): Rename from
3344 mmix_function_arg_pass_by_reference.
3345 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3346 (FUNCTION_ARG_CALLEE_COPIES): True.
3347 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
3348 (mn10300_pass_by_reference): New.
3349 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3350 (FUNCTION_ARG_CALLEE_COPIES): True.
3351 * config/pa/pa.c (pa_pass_by_reference): New.
3352 (TARGET_PASS_BY_REFERENCE): New.
3353 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3354 (FUNCTION_ARG_CALLEE_COPIES): True.
3355 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
3356 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
3357 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
3358 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3359 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
3360 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
3361 (s390_pass_by_reference): Rename from
3362 s390_function_arg_pass_by_reference.
3363 (s390_function_arg_advance): Don't query pass-by-ref.
3364 (s390_function_arg): Likewise.
3365 (s390_gimplify_va_arg): Use pass_by_reference.
3366 (s390_call_saved_register_used): Likewise.
3367 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3368 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
3369 (shcompact_byref, sh_pass_by_reference): New.
3370 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3371 (SHCOMPACT_BYREF): Remove.
3372 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
3373 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
3374 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
3375 (sparc_gimplify_va_arg): Use pass_by_reference.
3376 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3377 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3378 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
3379 (v850_pass_by_reference): New.
3380 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3381 (FUNCTION_ARG_CALLEE_COPIES): True.
3382 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
3383 FUNCTION_ARG_PASS_BY_REFERENCE docs.
3385 2004-07-14 Richard Henderson <rth@redhat.com>
3386 Richard Sandiford <rsandifo@redhat.com>
3388 * config/mips/mips-protos.h (mips_va_arg): Delete.
3389 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
3390 * config/mips/mips.c: Include tree-gimple.h.
3391 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
3392 (mips_arg_info): Remove special handling of must_pass_in_stck args.
3393 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
3394 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
3396 2004-07-13 Bob Wilson <bob.wilson@acm.org>
3398 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
3399 arguments for COND_EXPR in big-endian adjustment code.
3401 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3403 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
3404 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
3405 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
3406 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
3408 2004-07-13 Diego Novillo <dnovillo@redhat.com>
3410 PR tree-optimization/16443
3411 * tree-ssa-alias.c: Add more description for
3412 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
3413 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
3414 clobbering of call-clobbered and addressable variables. If
3415 there are any before aliases have been computed, add them.
3417 2004-07-13 Diego Novillo <dnovillo@redhat.com>
3419 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
3422 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
3424 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
3425 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
3428 2004-07-13 Per Bothner <per@bothner.com>
3430 * collect2.c (main): Handle --no-demangle and --demangle flags.
3432 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
3434 * Makefile.in (OBJS-common): Add tree-data-ref.o.
3435 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
3436 (tree-data-ref.o): New rule.
3437 * lambda.h: New file.
3438 * tree-data-ref.c: New file.
3439 * tree-data-ref.h: New file.
3440 * tree.c (int_cst_value, tree_fold_gcd): New functions.
3441 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
3443 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3446 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
3447 * config/sparc/sparc.c (output_ubranch): New function.
3448 * config/sparc/sparc.md (jump pattern): Use it.
3450 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3453 * config/sparc/sparc.c (output_cbranch): Properly guard
3454 the code handling far branches with TARGET_V9.
3455 * config/sparc/sparc.md (length attribute): Document the
3456 side-effect of having a length greater or equal to 3.
3458 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3459 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
3462 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
3463 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
3465 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3466 Martin Sebor <sebor@roguewave.com>
3469 * doc/invoke.texi (SPARC options): Document -threads
3470 and -pthreads on Solaris.
3472 2004-07-13 Richard Henderson <rth@redhat.com>
3474 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
3476 (ind_gimplify_va_arg_expr): Remove.
3477 * tree.h (ind_gimplify_va_arg_expr): Remove.
3478 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
3479 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
3482 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
3483 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
3484 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
3485 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
3486 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
3488 2004-07-13 Richard Henderson <rth@redhat.com>
3490 * function.c (pass_by_reference): New.
3491 (assign_parm_find_data_types): Use it.
3492 * calls.c (initialize_argument_information): Likewise.
3493 (emit_library_call_value_1): Likewise.
3494 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3495 * function.h (pass_by_reference): Declare.
3497 2004-07-13 Richard Henderson <rth@redhat.com>
3499 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
3500 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
3501 * expr.h (MUST_PASS_IN_STACK): Remove.
3502 * system.h (MUST_PASS_IN_STACK): Poison.
3503 * tree.h (must_pass_in_stack_var_size): Declare.
3504 (must_pass_in_stack_var_size_or_pad): Declare.
3505 * calls.c (must_pass_in_stack_var_size): New.
3506 (must_pass_in_stack_var_size_or_pad): Rename from
3507 default_must_pass_in_stack.
3508 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
3509 (TARGET_MUST_PASS_IN_STACK): New.
3510 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
3511 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
3512 (TARGET_MUST_PASS_IN_STACK): New.
3513 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
3514 * config/frv/frv.c (frv_must_pass_in_stack): New.
3515 (TARGET_MUST_PASS_IN_STACK): New.
3516 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
3517 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
3518 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
3519 (ix86_must_pass_in_stack): Make static.
3520 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
3521 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
3522 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
3523 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
3524 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
3525 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
3526 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
3527 (mcore_must_pass_on_stack): Remove.
3528 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
3529 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
3530 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
3531 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
3532 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
3533 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
3534 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
3535 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
3536 (TARGET_MUST_PASS_IN_STACK): New.
3537 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
3538 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
3539 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
3540 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
3541 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
3542 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
3543 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
3546 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
3547 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
3548 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
3549 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
3550 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
3551 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
3552 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
3553 config/xtensa/xtensa.c: Use target hook.
3555 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
3557 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
3558 * configure: Rebuilt.
3560 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
3562 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
3563 * config/mips/mips.h (mips_reg_names): Don't declare.
3564 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
3565 (TARGET_NAME_REGS): Delete.
3566 (TARGET_SWITCHES): Remove -mrnames.
3567 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
3568 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
3570 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
3571 (override_options): Remove handling of TARGET_NAME_REGS.
3573 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
3575 * config/mips/mips.h (TARGET_*): Boolify.
3577 2004-07-12 Nick Clifton <nickc@redhat.com>
3579 * config.gcc: Add sh-*-symbianelf target.
3580 * config/sh/sh.c: Add new target macros:
3581 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
3582 TARGET_CXX_IMPORT_EXPORT_CLASS.
3583 (sh_file_start): Create a definition of the .directive section.
3584 (sh_attribute): Add dllimport and dllexport attributes.
3585 * config/sh/symbian-pre.h: New file.
3586 * config/sh/symbian-post.h: New file.
3587 * config/sh/symbian.c: New file. Contains Symbian specific
3589 * config/sh/sh-protos.h: Add prototypes for new functions
3590 provided by symbian.c.
3591 * config/sh/t-symbian: New file.
3592 * doc/extend.texi: Document support for dllimport and dllexport
3593 attributes by the sh-symbianelf target.
3595 2004-07-12 James E Wilson <wilson@specifixinc.com>
3597 * Makefile.in (AR): Use @AR@ not ar.
3599 (AR_FOR_TARGET): Use $(AR) not ar for native.
3600 (NM_FOR_TARGET): Use $(NM) not nm for native.
3601 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
3602 * configure: Regenerate.
3604 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
3606 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
3608 (ashldi3_sp64): Likewise.
3610 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3613 * pa.c (function_arg): Update comment.
3614 * pa.h (BLOCK_REG_PADDING): Define.
3616 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3618 PR tree-optimization/16461
3619 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
3620 arguments of phi nodes.
3622 2004-07-12 Devang Patel <dpatel@apple.com>
3624 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
3626 2004-07-12 Steve Ellcey <sje@cup.hp.com>
3628 * function.c (expand_function_start): Ensure r_save is in Pmode.
3629 * calls.c (prepare_call_address): Ensure static_chain_value is
3631 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
3632 r_save_area are in Pmode.
3633 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
3634 fnaddr, and static_chain are in Pmode.
3636 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
3639 * config/ia64/ia64.c (bundling): Don't count ignored insns.
3641 2004-07-12 Richard Henderson <rth@redhat.com>
3643 * target.h (struct gcc_target): Move gimplify_va_arg_expr
3644 next to build_builtin_va_list.
3645 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
3646 * builtins.c (gimplify_va_arg_expr): Likewise.
3647 * gimplify.c (copy_if_shared_r): Likewise.
3649 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
3651 * passes.c (rest_of_decl_compilation): Don't defer call of
3652 assemble_variable if its DECL_RTL is already set.
3654 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
3656 * cfgloop.h (struct loop): Add nb_iterations field.
3657 (current_loops): Declare.
3658 * tree-chrec.c (chrec_not_analyzed_yet,
3659 chrec_dont_know, chrec_known, count_ev_in_wider_type,
3660 chrec_contains_symbols_defined_in_loop): Remove the temporary
3662 * tree-flow-inline.h (loop_containing_stmt): New function.
3663 * tree-scalar-evolution.c: Add implementation.
3664 * tree-scalar-evolution.h: Add declarations.
3666 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
3668 PR rtl-optimization/15921
3669 * Makefile.in (global.o): Add recog.h.
3671 * global.c (recog.h): Add the include-clause.
3672 (bb_info): New member earlyclobber.
3673 (allocate_bb_info, free_bb_info): Initialize/finish the new
3675 (earlyclobber_regclass, earlyclobber_regclass_length): The new
3677 (check_earlyclobber, regclass_intersect,
3678 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
3680 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
3681 (make_accurate_live_analysis): Modify pavin.
3683 2004-07-12 Diego Novillo <dnovillo@redhat.com>
3685 * tree-cfg.c (find_taken_edge): Statically compute the truth
3686 value of a predicate comparing an SSA_NAME to itself.
3688 2004-07-12 Roger Sayle <roger@eyesopen.com>
3690 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
3691 rs6000 doesn't have shift-and-add or shift-and-sub instructions
3692 by returning the cost of a multiplication plus an addition.
3694 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
3696 PR tree-optimization/14107
3697 * gimplify.c (gimplify_return_expr): Accept a
3698 RETURN_EXPR with an error argument.
3699 * tree-optimize.c (init_tree_optimization_passes):
3700 Run pass_warn_function_return at -O0.
3702 2004-07-12 Roger Sayle <roger@eyesopen.com>
3704 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
3707 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
3709 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
3710 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
3711 * config/mips/3000.md: Add copyright notice. Remove automota and
3712 function units; use generic ones instead. Only define reservations
3713 for things that are different from generic.md. Extend each clause
3715 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
3716 * config/mips/mips.md: Include them. Remove define_function_units.
3717 (alu, imuldiv): New automata and units.
3719 2004-07-12 Ben Elliston <bje@au.ibm.com>
3721 * doc/invoke.texi (Optimize Options): Document -frename-registers
3722 not being enabled by default at -O3.
3724 2004-07-11 Roger Sayle <roger@eyesopen.com>
3726 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
3727 floating point additions, to keep real immediate constant positive.
3728 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
3729 into X + C, and leave positive real constants as X - C.
3731 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3733 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
3735 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3737 PR tree-optimization/15654
3738 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
3740 2004-07-11 Roger Sayle <roger@eyesopen.com>
3742 * builtins.c (fold_builtin_fputs): Don't bother converting the
3743 return type to integer_type_node, as we've already checked that
3744 the result will be ignored.
3746 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
3747 that signed addition, subtraction, multiplication, division,
3748 remainder, negation and absolute value may potentially trap.
3750 * fold-const.c (fold_ignored_result): New function to strip
3751 non-side-effecting tree nodes from an expression whose result
3753 (fold_convert): Call fold_ignored_result when casting a value
3755 (omit_one_operand): Call fold_ignored_result on the "omitted"
3756 operand when building a COMPOUND_EXPR.
3757 (pedantic_omit_one_operand): Likewise.
3758 * tree.h (fold_ignored_result): Prototype here.
3759 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
3760 when we're going to ignore the result.
3762 2004-07-11 Richard Henderson <rth@redhat.com>
3765 * tree-ssa-ccp.c (fold_stmt_r): Split out...
3766 * tree.c (fields_compatible_p, find_compatible_field): ... new.
3767 * tree.h (fields_compatible_p, find_compatible_field): Declare.
3768 * tree-sra.c (sra_hash_tree): Hash fields by offset.
3769 (sra_elt_eq): Use fields_compatible_p.
3770 (generate_one_element_ref): Use find_compatible_field.
3772 2004-07-11 Richard Henderson <rth@redhat.com>
3775 * tree-sra.c (generate_one_element_init): New.
3776 (generate_element_init): Use it.
3777 (scalarize_init): Push/pop gimplify context around it.
3778 (find_new_referenced_vars_1, find_new_referenced_vars): New.
3779 * gimplify.c (gimplify_expr): Allow SSA_NAME.
3781 2004-07-11 Roger Sayle <roger@eyesopen.com>
3783 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
3784 combine.c's combine_insn_cost.
3785 * rtl.h (insn_rtx_cost): Prototype here.
3786 * combine.c (combine_insn_cost): Delete function.
3787 (combine_validate_cost): Update callers of combine_insn_cost to
3788 call insn_rtx_cost instead.
3789 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
3790 requesting the rtx_cost of call and/or jump instructions.
3792 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
3793 rtx_cost directly. Don't request/use the cost of call or jump
3794 instructions. Return -1 if the cost of any instruction can't be
3795 determined (or the BB contains a function call).
3796 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
3797 -1 (i.e. can't determine the cost of any instruction or the basic
3798 block contains a subroutine call).
3799 (find_if_case_2): Likewise.
3801 2004-07-11 Roger Sayle <roger@eyesopen.com>
3803 * rs6000.c (struct processor_costs): Change semantics of fields to
3804 include the COST_N_INSNS scaling, and update all initializers.
3805 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
3806 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
3807 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
3808 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
3810 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
3812 * LANGUAGES: Remove obsolete information.
3814 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3816 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
3817 SIGBUS signal frames, the PSW address points *to* the faulting
3818 instruction, not after it.
3820 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3822 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
3823 added to TLS symbol addresses.
3825 2004-07-11 Richard Henderson <rth@redhat.com>
3827 * expmed.c (init_expmed): Use stack-local structures for
3828 temporary rtl. Don't recognize shifts.
3830 2004-07-11 Richard Henderson <rth@redhat.com>
3832 * expr.c (store_expr): Don't fiddle subreg promotion for types
3833 with precision smaller than the mode.
3835 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
3837 * tree.h (all_types_permanent): Remove.
3839 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
3841 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
3842 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
3843 * langhooks.c (lhd_clear_binding_stack): Remove.
3844 * langhooks-def.h (lhd_clear_binding_stack,
3845 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
3846 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
3847 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
3848 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
3849 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
3850 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
3851 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
3852 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
3853 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
3854 * tree.h (poplevel): Don't declare.
3855 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
3856 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
3857 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
3858 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3861 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
3863 PR tree-optimization/16437
3864 * c-common.c (shorten_compare): Don't mark result of conversion to
3865 narrower signed type as overflowing.
3866 * fold-const.c (decode_field_reference): Determine whether
3867 signedness comes from outer type using precision rather than size.
3869 2004-07-11 Phil Edwards <phil@codesourcery.com>
3871 * configure.ac: Alphabetize --enable-checking list, add
3872 missing valgrind entry.
3873 * configure: Regenerate.
3875 2004-07-11 Phil Edwards <phil@codesourcery.com>
3877 * doc/install.texi (Testing): Fix syntax in "make check" example.
3879 2004-07-10 James E Wilson <wilson@specifixinc.com>
3881 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
3883 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3885 PR rtl-optimization/16001
3886 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
3889 2004-07-10 Geoffrey Keating <geoffk@apple.com>
3891 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
3893 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
3894 James Morrison <phython@gcc.gnu.org>
3896 * doc/contrib.texi (Contributors): Add gfortran contributors and
3897 fix a couple of typos.
3899 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3901 PR rtl-optimization/15387
3902 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
3903 to incoming args space correctly.
3905 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3907 * pa.c (output_indirect_call): Only use %r2 as the link register in
3908 indirect calls with the long PA 2.0 pc-relative branch.
3910 2004-07-10 Daniel Jacobowitz <dan@debian.org>
3912 * config/i386/i386.c (override_options): Pick a 64-bit CPU
3913 for the default tuning if TARGET_64BIT.
3915 2004-07-10 Richard Henderson <rth@redhat.com>
3917 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
3918 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
3920 2004-07-10 Jakub Jelinek <jakub@redhat.com>
3922 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
3923 * expmed.c (store_bit_field, extract_bit_field): Remove last
3925 * builtins.c (expand_builtin_signbit): Adjust callers.
3926 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
3927 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
3928 * ifcvt.c (noce_emit_move_insn): Likewise.
3929 * stmt.c (expand_return): Likewise.
3930 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
3931 store_field, expand_expr_real_1): Likewise.
3933 2004-07-10 Richard Henderson <rth@redhat.com>
3935 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
3937 2004-07-09 Mike Stump <mrs@apple.com>
3939 * config/darwin.c (no_dead_strip): Add.
3940 (HAVE_DEAD_STRIP): Add.
3941 (darwin_emit_unwind_label): Ensure that we don't dead code strip
3944 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3946 * tree-ssa-loop-im.c: New file.
3947 * Makefile.in (tree-ssa-loop-im.o): Add.
3948 * cfgloop.c (superloop_at_depth): New function.
3949 * cfgloop.h (superloop_at_depth): Declare.
3950 * common.opt (ftree-lim): New flag.
3951 * expr.c (array_ref_up_bound): New function.
3952 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
3953 * timevar.def (TV_LIM): New timevar.
3954 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
3955 computing immediate uses of a phi node.
3956 * tree-flow.h (struct tree_ann_common_d): Add aux field.
3957 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
3958 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
3959 * tree-pass.h (pass_lim): Declare.
3960 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
3962 (pass_lim): New pass structure.
3963 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
3964 * tree.c (in_array_bounds_p): New function.
3965 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
3966 (in_array_bounds_p, array_ref_up_bound): Declare.
3967 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
3968 * doc/passes.texi (tree-ssa-loop-im.c): Document.
3970 2004-07-09 Richard Henderson <rth@redhat.com>
3972 * builtins.c (expand_builtin_stpcpy): Don't modify len.
3974 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs