1 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4 * config/sparc/sparc.c (compare_operand): New predicate.
5 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
6 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
7 operand is a ZERO_EXTRACT and the second operand is not zero,
8 force the former to a register.
9 (cmpdi expander): Likewise.
11 2004-05-31 Geoffrey Keating <geoffk@apple.com>
13 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
15 * alias.c (alias_invariant_size): Make alias_invariant_size
16 static, fix GTY marker.
18 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
20 PR tree-optimization/15743.
21 * builtins.c (fold_builtin_1): Fold index() and rindex().
23 2004-05-31 Roger Sayle <roger@eyesopen.com>
26 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
27 into "X < 0" (where C is the signbit) if X's type is a full mode.
29 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31 * pa.md: Disable the peephole2 patterns that generate indexed
32 floating-point stores when indexing is disabled.
34 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
36 * c-pretty-print.c (pp_c_left_bracket): Make a function.
37 (pp_c_right_bracket): Likewise.
38 (pp_c_star): Likewise.
39 (pp_c_ampersand): Define.
40 * c-pretty-print.h (pp_c_left_bracket): Declare.
41 (pp_c_right_bracket): Likewise.
42 (pp_c_star): Likewise.
43 (pp_c_ampersand): Likewise.
45 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
47 * config/sol2.h (__enable_execute_stack): ANSIfy function
50 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
52 * c-incpath.c (add_path): Canonicalize paths to use '/' if
53 HAVE_DOS_BASED_FILESYSTEM.
55 2004-05-31 Steven Bosscher <stevenb@suse.de>
57 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
58 Only look at case labels if the immediate dominator is also
59 the only predecessor. Don't look for more case labels if the
60 first seen is a case range.
62 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
64 * builtins.c: Add a prototype for fold_builtin_strchr().
66 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
69 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
71 * combine.c (gen_binary): Remove.
72 (known_cond, simplify_shift_const
73 find_split_point, combine_simplify_rtx,
74 simplify_if_then_else, simplify_set,
75 simplify_logical, expand_field_assignment,
76 extract_left_shift, force_to_mode,
77 if_then_else_cond, apply_distributive_law,
78 simplify_and_const_int, simplify_shift_const,
79 gen_lowpart_for_combine, simplify_comparison,
80 reversed_comparison): Replace with
81 simplify_gen_binary, simplify_gen_relational or
82 distribute_and_simplify_rtx.
83 (distribute_and_simplify_rtx): New function.
85 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
87 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
88 when generating PIC code.
90 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
92 * c-decl.c (c_expand_body_1): Remove and fold back into ...
93 (c_expand_body): here.
94 (c_expand_decl): Move to ...
95 * c-common.c (c_expand_decl): Here and remove check for nested
97 * c-common.h (c_expand_decl): Add prototype.
98 * c-tree.h (c_expand_decl): Remove.
100 2004-05-30 Roger Sayle <roger@eyesopen.com>
102 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
103 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
104 fold_mathfn_compare, fold_inf_compare, fold,
105 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
106 Use constant_boolean_node where appropriate. Don't bother using
107 fold_convert on the second argument to omit_one_operand.
109 2004-05-30 Roger Sayle <roger@eyesopen.com>
111 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
112 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
113 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
114 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
115 Add missing (but documented) tree nodes to the index.
117 2004-05-30 Steven Bosscher <stevenb@suse.de>
119 PR tree-optimization/14819
120 * builtins.c (fold_builtin_strchr): New.
121 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
122 with fold_builtin_strchr().
124 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
126 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
127 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
128 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
129 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
130 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
131 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
132 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
133 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
134 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
137 2004-05-30 Steven Bosscher <stevenb@suse.de>
139 * gimplify.c (sort_case_labels): New. Split out from...
140 (gimplify_switch_expr): ...here. Use it.
141 * tree-eh.c (lower_try_finally_switch): Sort the labels of
142 the SWITCH_EXPR created here before leaving the function.
143 * tree.c (sort_case_labels): Add prototype.
145 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
147 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
150 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
152 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
153 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
154 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
155 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
156 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
157 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
158 comment typos. Follow spelling conventions.
160 2004-05-29 Geoffrey Keating <geoffk@apple.com>
162 * gengtype-yacc.y: Add NESTED_PTR token.
163 (option): Record `nested_ptr' option.
164 * gengtype-lex.l: Handle `nested_ptr' keyword.
165 * gengtype.c (walk_type): Process `nested_ptr' option.
166 * gengtype.h (struct nested_ptr_data): New.
167 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
168 * stringpool.c (struct string_pool_data): Make 'entries' point to
169 ht_identifier instead of tree.
170 (gt_pch_save_stringpool): Don't adjust pointers.
171 (gt_pch_restore_stringpool): Call ht_load.
173 2004-05-29 Jason Merrill <jason@redhat.com>
175 * gimplify.c (gimplify_expr): Don't build a statement list
176 if no gimplification was necessary.
178 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
180 * pretty-print.c (pp_base_format_text): Support %< instead of %`
181 and %> as well as %'.
182 * c-format.c: Use %< and %>.
183 (gcc_diag_char_table, gcc_cdiag_char_table,
184 gcc_cxxdiag_char_table): Update.
186 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
188 * c-typeck.c (common_type): Correct comment.
190 2004-05-29 Peter Barada <peter@the-baradas.com>
192 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
193 * config/m68k/m68k.c (const_method): Likewise.
194 * config/m68k/m68k.c (const_int_cost): Likewise.
195 * config/m68k/m68k.c (const_int_cost): Likewise.
196 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
198 2004-05-29 Peter Barada <peter@the-baradas.com>
200 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
202 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
203 movsi,movhi,movqi insn patterns.
205 2005-05-28 Andrew Pinski <pinskia@physics.uc.edu>
207 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
210 * config/darwin.c (machopic_indirect_call_target): Copy
211 the SYMBOL_REF_DECL from the original RTX for the new
214 2004-05-28 DJ Delorie <dj@redhat.com>
216 * stor-layout.c (place_field): Revert erroneous commit.
218 2004-05-28 Ziemowit Laski <zlaski@apple.com>
220 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
221 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
222 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
223 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
224 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
225 vec_ste): Remove type checks for integral parameters and literals
226 from '..._args_eq' macros.
228 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
230 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
232 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
234 * testsuite/g++.dg/charset/function.cc: New.
236 * testsuite/gcc.dg/charset/function.c: New.
238 * c-decl.c (c_make_fname_decl): Free return value from
241 * cp/decl.c (cp_make_fname_decl): Free return value from
244 * c-common.c (fname_as_string): Translate if necessary.
246 2004-05-28 Geoffrey Keating <geoffk@apple.com>
248 * stringpool.c: Add comments to PCH saving/restoring routines.
250 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
252 * c-common.c (c_estimate_num_insns_1): Kill.
253 (c_estimate_num_insns): Kill.
254 * c-common.h (c_estimate_num_insns): Kill.
256 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
257 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
258 Remove comment about not checking for
259 _POSIX_PRIORITY_SCHEDULING.
260 * gthr-posix.c: Likewise.
262 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
263 Roger Sayle <roger@eyesopen.com>
265 PR rtl-optimization/15649
266 Add LTGT_EXPR and improve pretty-printing of unordered
268 * c-common.c (c_common_truthvalue_conversion):
270 * c-typeck.c (build_binary_op): Likewise.
271 * dojump.c (do_jump): Likewise.
272 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
273 * predict.c (tree_predict_by_opcode): Likewise.
274 * real.c (real_compare): Likewise.
275 * tree-cfg.c (verify_expr): Likewise.
276 * tree-inline.c (estimate_num_insns_1): Likewise.
277 * tree-pretty-print.c (dump_generic_node): Likewise.
278 Handle ORDERED_EXPR, UNORDERED_EXPR.
279 (op_symbol): Print unordered comparisons differently
281 * tree.def (LTGT_EXPR): New '<' tree code.
282 * doc/c-tree.texi (Expressions): Document floating-point
285 Fold comparisons between floating point values.
286 * fold-const.c (enum comparison_code): New, from
287 #define'd constants. Define compcodes for unordered
288 comparisons and for invalid transformations.
289 (invert_tree_comparison): Add "honor_nans" parameter.
290 (fold_truthop): Revamp to work on floating-point types too.
291 (comparison_to_compcode): Support unordered comparisons.
292 Use new enum comparison_code.
293 (compcode_to_comparison): Likewise.
294 (combine_compcodes): New function.
295 (invert_truthvalue): Let invert_tree_comparison decide
296 whether it is valid to fold the comparison. Fold ORDERED
297 and UNORDERED even if flag_unsafe_math_optimizations is off,
298 and the remaining even if flag_unsafe_math_optimizations
299 is off but we are under -fno-trapping-math.
300 (fold_relational_const): Integer modes do not honor NaNs.
302 2004-05-28 Paul Brook <paul@codesourcery.com>
304 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
306 2004-05-28 Paul Brook <paul@codesourcery.com>
308 * config/arm/arm.c (thumb_force_lr_save): New function.
309 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
310 thumb_output_function_prologue): Use it.
311 (thumb_expand_prologue): Set lr_save_eliminated.
313 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
315 * config/mips/mips.md (extendsidi2): Tie the source and destination
316 of the register alternative. Split it into nothing.
318 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
320 * rtl.h (skip_consecutive_labels): Declare.
321 * emit-rtl.c (skip_consecutive_labels): New function.
322 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
323 * jump.c (follow_jumps): Say what null return values mean.
325 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
328 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
330 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
332 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
334 * config/sh/libgcc-std.ver: New file.
336 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
338 * except.c: Revert change of 2004-05-26.
339 * config/i386/i386.md: Revert change of 2004-05-27.
341 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
343 * configure.ac: Remove --enable-tree-browser option.
344 Define TREEBROWSER when ac_tree_checking is defined.
345 * configure: Rebuilt.
347 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
349 * expr.c (store_constructor): Restore sanity check on
350 the size of the type before clearing.
352 2004-05-27 Jan Hubicka <jh@suse.cz>
354 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
356 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
358 * combine.c (gen_binary): Remove.
359 (known_cond, simplify_shift_const
360 find_split_point, combine_simplify_rtx,
361 simplify_if_then_else, simplify_set,
362 simplify_logical, expand_field_assignment,
363 extract_left_shift, force_to_mode,
364 if_then_else_cond, apply_distributive_law,
365 simplify_and_const_int, simplify_shift_const,
366 gen_lowpart_for_combine, simplify_comparison,
367 reversed_comparison): Replace with
368 simplify_gen_binary, simplify_gen_relational or
369 distribute_and_simplify_rtx.
370 (distribute_and_simplify_rtx): New function.
371 * simplify-rtx.c (simplify_binary_operation):
372 Use nonzero_bits to simplify ANDs where we are
373 turning off bits already known to be off in OP0.
375 2004-05-27 Alan Modra <amodra@bigpond.net.au>
378 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
380 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
383 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
386 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
389 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
391 2004-05-26 Roger Sayle <roger@eyesopen.com>
393 * tree.h: Fix comment typo.
395 2004-05-27 Steven Bosscher <stevenb@suse.de>
397 * gimplify.c (compare_case_labels): New function.
398 (gimplify_switch_expr): Sort case labels, and make sure the
399 last label in the label vector is the default case.
400 * tree-cfg.c (group_case_labels): New function.
401 (build_tree_cfg): Cleanup redundant labels and group case labels
402 before creating edges.
403 (cleanup_dead_labels): Handle GOTO_EXPRs.
404 (find_case_label_for_value): Use a binary search to find the
405 case label for the given value.
406 * tree-gimple.c: Mention that labels are sorted, and that the
407 last label must be the default.
409 2004-05-27 Jan Hubicka <jh@suse.cz>
411 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
413 2004-05-27 Jan Hubicka <jh@suse.cz>
415 * i386.md (UNSPECV_EH_RETURN): Kill.
416 (eh_return): Use jump_insn.
417 (eh_return_si, eh_return_di): Change pattern to jump instruction.
419 2004-05-26 Jan Hubicka <jh@suse.cz>
421 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
424 2004-05-26 Jan Hubicka <jh@suse.cz>
426 * except.c (can_throw_internal): Notice RESX instructions.
428 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
430 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
431 of the two sizes to assemble_integer.
433 2004-05-25 Paul Brook <paul@codesourcery.com>
435 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
438 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
440 * Makefile.in (top_builddir): Define to .
442 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
444 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
445 top-level detects, except when in-tree ld is being cross-built.
446 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
447 then AS only if target is host.
448 * configure: Rebuilt.
450 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
452 * global.c (global_alloc): Call make_accurate_live_analysis.
453 (record_one_conflict): Remove dead code.
454 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
455 (bb_info): New structure.
456 (BB_INFO, BB_INFO_BY_INDEX): New macros.
457 (allocate_bb_info, free_bb_info, mark_reg_change,
458 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
459 modify_bb_reg_pav, calculate_reg_pav,
460 make_accurate_live_analysis): New functions.
462 2004-05-25 Devang Patel <dpatel@apple.com>
464 * alias.c (init_alias_analysis): Use ggc_calloc instead of
466 (end_alias_analysis): Use ggc_free instead fo free.
468 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
471 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
472 as needed to be outputted.
474 2004-05-25 Jan Hubicka <jh@suse.cz>
476 * builtins.def (__builtin_expect): Mark the function as const¬hrow.
478 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
479 Mostafa Hagog <mustafa@il.ibm.com>
481 * Makefile.in (modulo-sched.o, ddg.o): New.
482 * ddg.h, ddg.c, modulo-sched.c: New files.
483 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
484 internals to "dupicate_insn".
485 (duplicate_insn): New function.
486 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
488 * common.opt (fmodulo-sched): New flag.
489 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
490 Remove static and forward declaration.
491 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
493 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
494 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
496 * flags.h (flag_modulo_sched): New flag.
497 * opts.c (common_handle_option): Handle modulo-sched flag.
498 * params.def (max-sms-loop-number, sms-max-ii-factor,
499 sms-dfa-history, sms-loop-average-count-threshold): New
501 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
502 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
504 * passes.c ("sms", "sms-vcg"): New dumps.
505 (rest_of_handle_sched): Call sms_schedule.
506 * rtl.h (sms_schedule): New declaration.
507 * timevar.def (TV_SMS): New.
508 * toplev.c (flag_modulo_sched): Initialize.
509 (f_options): Handle -fmodulo-sched option.
510 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
511 * docs/passes.texi: Document new SMS pass.
513 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
515 * Makefile.in (OBJS): Add rtlhooks.o.
516 (rtlanal.o): Depend on function.h.
517 (cse.o): Depend on rtlhooks-def.h.
518 (combine.o): Depend on rtlhooks-def.h.
519 (rtlhooks.o): New rule.
520 * combine.c: Include rtlhooks-def.h.
521 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
522 num_sign_bit_copies, cached_num_sign_bit_copies,
523 num_sign_bit_copies1): Move most of the code to rtlanal.c.
524 (reg_nonzero_bits_for_combine,
525 reg_num_sign_bit_copies_for_combine): New functions holding
526 the remnants of the above.
527 (combine_rtl_hooks): New.
528 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
529 * cse.c: Include rtlhooks-def.h.
530 (cse_rtl_hooks): New.
531 (cse_main): Set rtl_hooks instead of gen_lowpart.
532 * emit-rtl.c (gen_lowpart): Remove.
533 (gen_lowpart_general): Move to rtlhooks.c.
534 * rtl.h (nonzero_bits, num_sign_bit_copies,
535 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
536 (gen_lowpart_general): Remove.
537 (gen_lowpart): Temporarily redefine as a macro.
538 * rtlanal.c: Include function.h.
539 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
540 num_sign_bit_copies, cached_num_sign_bit_copies,
541 num_sign_bit_copies1): New, from combine.c.
542 * rtlhooks.c: New file.
544 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
546 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
547 to support 32-bit -mint8 mode.
549 * doc/invoke.texi (-mint8): Added documentation for the -mint8
550 option in the AVR architecture.
552 2004-05-24 Mike Stump <mrs@apple.com>
554 * doc/install.texi: Document that dejagnu 1.4.4 is required.
556 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
558 * intl.h (open_quote, close_quote): New.
559 * intl.c (open_quote, close_quote): New.
560 (gcc_init_libintl): Set them.
561 * pretty-print.c: Include "intl.h".
562 (pp_base_format_text): Support 'q' format flag and %` and %'
563 formats. Use ' instead of ` in comments.
564 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
565 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
566 foramt_types_orig): Describe these new formats.
567 (decode_format_attr, check_function_format,
568 check_format_info_main): Use these new formats.
569 (status_warning): Use ATTRIBUTE_GCC_DIAG.
570 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
571 check these formats to 3.5.
573 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
575 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
576 (BACKEND): Reflect this.
577 (LIBDEPS): Move CPPLIB before LIBIBERTY.
580 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
582 PR tree-optimization/14197
583 * builtins.c: Include "tree-gimple.h"
584 (readonly_data_expr): Use get_base_address. Make sure to call
585 decl_readonly_section only on trees it can handle.
586 * tree-gimple.c (get_base_address): Accept STRING_CST and
587 CONSTRUCTOR expressions.
588 * Makefile.in: Update dependencies.
590 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
592 Move libcpp to the toplevel.
593 * Makefile.in: Remove references to libcpp files,
594 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
595 and change hashtable.h to that.
596 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
597 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
598 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
599 * configure: Regenerate.
600 * config.in: Regenerate.
601 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
602 * cppcharset.c: Removed.
603 * cpperror.c: Removed.
605 * cppfiles.c: Removed.
606 * cpphash.c: Removed.
607 * cpphash.h: Removed.
608 * cppinit.c: Removed.
612 * cppmacro.c: Removed.
614 * cpptrad.c: Removed.
615 * cppucnid.h: Removed.
616 * cppucnid.pl: Removed.
617 * cppucnid.tab: Removed.
618 * hashtable.c: Removed.
619 * hashtable.h: Removed.
620 * line-map.c: Removed.
621 * line-map.h: Removed.
624 * stringpool.h: Include symtab.h instead of hashtable.h.
625 * tree.h: Include symtab.h instead of hashtable.h.
626 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
628 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
630 * gcc.c (struct prefix_list): Add forward declaration.
631 (do_spec_path): New function, extracted from...
632 (do_spec_1) <'D'>: ... here. Drop support for
633 SPACE_AFTER_L_OPTION.
634 (do_spec_1) <'I'>: Use do_spec_path.
635 (process_command): Do not store the 'include' suffix
637 * system.h: Poison SPACE_AFTER_L_OPTION.
639 2002-05-23 Roger Sayle <roger@eyesopen.com>
641 * fold-const.c (non_lvalue): Explicitly list the tree codes that
642 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
644 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
646 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
647 Update based on printed manual. Enable setting of offsets for
648 FSFPRINT and move it to gcc-common.texi.
649 * doc/gcc.texi: Update FSF printing details.
650 * doc/gccint.texi: Remove FSF printing details.
652 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
654 * config/rs6000/t-rs6000: Remove the disabling -Werror.
656 2004-05-22 Roger Sayle <roger@eyesopen.com>
658 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
659 expand_builtin_strrchr, expand_builtin_strpbrk,
660 expand_builtin_mempcpy, expand_builtin_memcmp,
661 expand_builtin_strcmp, expand_builtin_strncmp,
662 expand_builtin_strcat, std_expand_builtin_va_start,
663 std_expand_builtin_va_arg, expand_builtin_va_copy,
664 expand_builtin_signbit, fold_builtin_cabs,
665 fold_builtin_logarithm, fold_builtin_mempcpy,
666 fold_builtin_signbit, fold_builtin_isascii,
667 fold_builtin_toascii, fold_builtin_isdigit,
668 fold_builtin_1, build_function_call_expr,
669 simplify_builtin_strchr, simplify_builtin_strrchr,
670 simplify_builtin_strpbrk, simplify_builtin_strncpy,
671 simplify_builtin_memcmp, simplify_builtin_strcmp,
672 simplify_builtin_strncmp, simplify_builtin_strncat,
673 simplify_builtin_strspn, simplify_builtin_strcspn,
674 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
675 to build with calls to build2, build3 or omit_one_operand.
677 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
679 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
680 section when generating EABI code.
682 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
685 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
686 Call mark_decl_referenced on the SYMBOL_REF_DECL.
688 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
690 * c-common.c (c_common_truthvalue_conversion): Handle
691 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
692 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
693 i.e. set the type to truthvalue_type_node and return.
695 2004-05-22 Zack Weinberg <zack@codesourcery.com>
697 * tree.h (struct tree_decl): Add possibly_inlined bit.
698 (DECL_POSSIBLY_INLINED): New accessor macro.
699 * cgraph.h: Remove declaration of cgraph_inline_hash.
700 * cgraph.c: Remove definition of cgraph_inline_hash.
701 (hash_node): Revert to hashing DECL_UID.
702 (eq_node): Take two pointers to cgraph_node structures.
704 (cgraph_remove_node): Pass the node directly to htab_find_slot.
705 (cgraph_varpool_hash_node): Rename hash_varpool_node;
707 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
708 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
709 (cgraph_node): Allocate a temporary node on the stack, fill in
710 its DECL field, and pass that to htab_find_slot.
711 (cgraph_varpool_node): Likewise.
712 (cgraph_function_possibly_inlined_p): If global info is ready,
713 return the DECL_POSSIBLY_INLINED bit.
714 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
715 instead of mucking with cgraph_inline_hash.
717 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
719 * doc/contrib.texi: Add g77 contributors.
721 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
723 * calls.c (initialize_argument_information): Forbid sibcalls if a
724 callee-copied argument is stored in the current function's frame.
726 2004-05-22 Eric Christopher <echristo@redhat.com>
728 * fix-header.c (read_scan_file): Update for add_path change.
730 2004-05-22 Ben Elliston <bje@au.ibm.com>
732 * c.opt (Wmissing-include-dirs): New.
733 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
734 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
735 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
736 * c-incpath.h (add_path): Add fourth (bool) argument.
737 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
738 (add_standard_paths): Likewise.
739 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
740 is used and the directory was user-supplied via -I.
741 (add_path): Set p->user_supplied_p. Remove duplicated code by
742 using add_cpp_dir_path ().
743 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
744 (struct cpp_dir): Add user_supplied_p.
745 * doc/invoke.texi (Warning Options): Document new option.
747 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
749 * fold-const.c (fold_read_from_constant_string): Convert result to
752 2004-05-21 Richard Henderson <rth@redhat.com>
754 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
755 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
756 Don't mark VA_ARG_EXPRs volatile here.
757 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
759 2004-05-21 Richard Henderson <rth@redhat.com>
761 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
762 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
764 2004-05-21 Roger Sayle <roger@eyesopen.com>
766 * fold-const.c (fold, fold_relational_hi_lo,
767 nondestructive_fold_binary_to_constant,
768 fold_read_from_constant_string): Use fold_convert instead of convert.
769 * builtins.c (simplify_builtin, simplify_builtin_strstr,
770 simplify_builtin_strchr, simplify_builtin_strrchr,
771 simplify_builtin_strpbrk): Use fold_convert instead of convert.
773 2004-05-21 Diego Novillo <dnovillo@redhat.com>
775 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
778 2004-05-21 Jakub Jelinek <jakub@redhat.com>
780 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
781 override sparc.h definition.
783 2004-05-20 Roger Sayle <roger@eyesopen.com>
785 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
786 get_unwidened, get_narrower): Replace build with build2.
787 * fold-const.c (negate_expr, associate_trees, size_binop,
788 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
789 pedantic_omit_one_operand, distribute_bit_expr,
790 make_bit_field_ref, optimize_bit_field_compare,
791 decode_field_reference, range_binop, make_range,
792 build_range_check, fold_range_test, fold_truthop,
793 optimize_minmax_comparison, extract_muldiv_1,
794 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
795 fold_inf_compare, fold_single_bit_test, fold,
796 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
797 Likewise replace build with either build2 or build3.
799 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
801 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
802 * calls.c (prepare_call_address): Don't test
803 NO_RECURSIVE_FUNCTION_CSE.
804 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
805 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
806 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
807 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
808 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
809 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
810 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
811 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
812 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
813 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
814 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
815 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
817 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
818 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
819 * doc/tm.texi (Costs): Remove documentation for
820 NO_RECURSIVE_FUNCTION_CSE.
822 2004-05-20 Paul Brook <paul@codesourcery.com>
824 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
825 * unwind-dw2.c (extract_cie_info): Ditto.
826 (_Unwind_FrameState): Change retaddr_column to word type.
828 2004-05-20 Roger Sayle <roger@eyesopen.com>
831 * fold-const.c (strip_compound_expr): Delete function.
832 (count_cond): Delete function.
833 (fold_binary_op_with_conditional_arg): Only perform transformations
834 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
835 when a is constant. This greatly simplifies this routine.
837 * tree.c (saved_expr_p): Delete function.
838 * tree.h (saved_expr_p): Delete function prototype.
840 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
842 * common.opt (ftree-loop-optimize): Remove.
844 2004-05-20 Daniel Jacobowitz <dan@debian.org>
846 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
847 (NM_FOR_TARGET): Use := and $(shell).
848 (mainversion): Remove unused variable.
850 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
852 * reorg.c (delete_from_delay_slot): If we have a barrier after the
853 sequence containing the insn to be deleted, always reemit it.
855 2004-05-20 Richard Henderson <rth@redhat.com>
858 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
859 * function.c (expand_function_start): Expand static_chain_decl by hand.
860 * gimplify.c (create_tmp_var_name): Export.
861 * tree-gimple.h (create_tmp_var_name): Declare.
863 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
865 * rs6000.c (print_operand) <case 'z'>: Call
866 mark_decl_referenced before assemble_name.
868 2004-05-20 Zack Weinberg <zack@codesourcery.com>
870 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
871 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
872 (cgraph_varpool_node): Hash on the pointer to the decl, not
873 the DECL_UID. Fixes 64-bit bootstrap failure.
875 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
877 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
878 we don't earlyclobber operands used in the second insn.
880 2004-05-20 Steven Bosscher <stevenb@suse.de>
882 * tree-mudflap.c: Formatting fixes.
884 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
886 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
887 * gengtype.c (open_base_files): Include reload.h in ifiles.
888 * reload.h (reg_equiv_memory_loc_varray): Declare.
889 * reload1.c (reg_equiv_memory_loc_varray): New variable.
890 (init_reload): Initialize it.
891 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
892 reg_equiv_memory_loc_varray to size 0.
893 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
894 growing reg_equiv_memory_loc_varray to the desired size.
895 * passes.c (rest_of_handle_old_regalloc): Likewise.
896 * reload.c: Amend comment on calling init_reload.
898 2004-05-20 Nick Clifton <nickc@redhat.com>
900 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
901 with 'TRAMP' in the body of the macro definition.
903 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
906 * config/ia64/ia64.c (ia64_expand_compare): Don't check
907 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
908 cmptf_libfunc isn't set.
909 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
911 (ia64_sysv4_init_libfuncs): New.
913 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
914 ia64_sysv4_init_libfuncs.
916 2004-05-20 Falk Hueffner <falk@debian.org>
919 * libgcc2.c (__mulvsi3): Fix overflow test.
921 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
924 * reg-stack.c (nan): Rename to ...
926 (reg_to_stack): Rename nan to not_a_num.
927 (subst_stack_regs_pat): Likewise.
928 (convert_regs_entry): Likewise.
929 (convert_regs_1): Likewise.
931 * tree-cfg.c (find_case_label_for_value): Replace call to
932 simple_cst_equal with tree_int_cst_equal.
934 2004-05-19 Jeff Law <law@redhat.com>
936 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
937 If the operand is for a use, then strip away the SSA_NAME, do not
938 strip away the SSA_NAME for a set. Never call release_ssa_name.
939 (mark_def_sites): Appropriately pass additional argument to
940 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
941 then set the VDEF_RESULT to the VDEF_OP.
942 (set_def_block): Strip away any SSA_NAME to get to the real
945 * tree-ssa-phiopt.c (value_replacement): Handle the case where
946 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
949 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
952 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
955 PR rtl-optimization/15274
956 * loop-iv.c (determine_max_iter, shorten_into_mode,
957 iv_number_of_iterations): Handle constants correctly.
958 * rtl.h (get_mode_bounds): Declaration changed.
959 * stor-layout.c (get_mode_bounds): Return a constant suitable for
962 PR rtl-optimization/14692
963 * loop-unswitch.c (may_unswitch_on): Try folding the result.
964 (unswitch_single_loop): Work correctly when may_unswitch_on
965 returns a folded constant.
967 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
968 * simplify-rtx.c (simplify_const_relational_operation): Optimize
969 comparisons with mode bounds.
971 * function.c (struct temp_slot): Add new field prev.
972 (free_after_compilation, init_temp_slots): Free new fields.
973 (cut_slot_from_list, insert_slot_to_list,
974 temp_slots_at_level, max_slot_level, move_slot_to_level,
975 make_slot_available): New functions.
976 (assign_stack_temp_for_type, combine_temp_slots,
977 find_temp_slot_from_address, preserve_temp_slots,
978 preserve_rtl_expr_result, free_temp_slots,
979 free_temps_for_rtl_expr, pop_temp_slots): Work with
980 the new structure of lists.
981 (mark_all_temps_used): Removed.
982 * function.h (struct function): Field x_temp_slots
983 replaced by x_used_temp_slots and x_avail_temp_slots.
984 (temp_slots): Replaced by ...
985 (used_temp_slots, avail_temp_slots): New.
986 * tree.h (mark_all_temps_used): Declaration removed.
988 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
989 simplify_using_assignment): Take the expression out of
990 the expr_list wrapper.
992 * loop-iv.c (iv_number_of_iterations): Improve clasification of
995 2004-05-19 Roger Sayle <roger@eyesopen.com>
997 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
998 costs should be based on code size when optimizing for size.
1000 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
1002 * fold-const.c: Remove non-printable character 160.
1004 2004-05-19 Nick Clifton <nickc@redhat.com>
1006 * doc/invoke.texi (ARM Options): Fix typo.
1007 Remove descrption of -mshort-load-bytes and
1008 -mno-short-load-bytes.
1010 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
1011 missing parenthesis.
1012 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
1013 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
1015 2004-05-19 Steven Bosscher <stevenb@suse.de>
1017 * expr.c (store_constructor): Build loop start and end by hand
1018 instead of via loop functions from stmt.c.
1019 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
1020 Remove the code to expand them.
1022 * stmt.c (loop_stack): Remove this and everything related.
1023 (struct nesting, enum nesting_desc): Update.
1024 (expand_fixup): Likewise.
1025 (expand_loop_start, expand_start_loop_continue_elsewhere,
1026 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
1027 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
1028 expand_exit_loop_if_false, expand_exit_loop_top_cond,
1029 expand_exit_something): Remove.
1030 * tree.h: Remove prototypes.
1032 2004-05-18 Mike Stump <mrs@apple.com>
1033 Devang Patel <dpatel@apple.com>
1035 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
1036 if this label is for eh.
1037 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
1038 * config/darwin.c (darwin_emit_unwind_label): Likewise.
1039 * dwarf2out.c (output_call_frame_info): Likewise.
1040 * output.h (default_emit_unwind_label): Likewise.
1041 * target.h (unwind_label): Likewise.
1042 * varasm.c (default_emit_unwind_label): Likewise.
1044 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
1045 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
1046 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
1047 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
1048 DEBUG_RANGES_SECTION): Define.
1050 2004-05-18 Zack Weinberg <zack@codesourcery.com>
1052 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
1053 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
1054 (cgraph_varpool_node):
1055 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
1056 (cgraph_function_possibly_inlined_p): Use the decl itself for
1057 the key, not DECL_ASSEMBLER_NAME.
1058 (change_decl_assembler_name): No need to muck with the hash tables.
1059 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
1061 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
1062 for the key, not DECL_ASSEMBLER_NAME.
1063 * cgraph.h: Remove prototypes of deleted functions.
1064 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
1065 (mark_decl_referenced): New function.
1066 * tree.h: Prototype mark_decl_referenced.
1067 * final.c (output_addr_const) <case SYMBOL_REF>: Call
1068 mark_decl_referenced before assemble_name.
1069 * c-decl.c (finish_decl): Use mark_decl_referenced.
1071 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
1072 Jeff Law <law@redhat.com>
1074 * tree-ssa-phiopt.c (abs_replacement): New function.
1075 (empty_block_p): New function extracted from...
1076 (candidate_bb_for_phi_optimization): Break out empty block test.
1077 (conditional_replacement): Use empty_block_p.
1078 (value_replacement): Similarly.
1080 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
1081 * tree-ssa-phiopt.c: Include flags.h.
1082 (conditional_replacement): Remove argument names from prototype.
1083 Minor formatting and comment fixes.
1084 (tree_ssa_phiopt): If conditional_replacement returns false, then
1085 call value_replacement.
1086 (value_replacement): New function.
1088 2004-05-18 Jeff Law <law@redhat.com>
1090 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
1091 from conditional_replacement.
1092 (candidate_bb_for_phi_optimization): Similarly.
1093 (conditional_replacement): Use replace_phi_with_stmt and
1094 candidate_bb_for_phi_optimization.
1096 * tree-ssa-phiopt.c: Fix various formatting issues.
1098 2004-05-18 Steven Bosscher <stevenb@suse.de>
1100 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
1101 s390_expand_cmpmem): Do not use expand_start_loop and
1102 expand_end_loop, instead build the loop manually.
1104 2004-05-18 Alan Modra <amodra@bigpond.net.au>
1106 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
1107 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
1109 2004-05-17 Jeff Law <law@redhat.com>
1111 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
1112 * flags.h (flag_delete_null_pointer_checks): Here.
1113 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
1114 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
1115 (add_phi_arg, remove_phi_arg_num): Similarly.
1116 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
1117 property into PHI nodes.
1118 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
1119 (record_equivalences_from_phis): If all PHI arguments are known to be
1120 nonzero, then the result must be nonzero as well.
1121 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
1122 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
1123 appropriately. Walk the USE-DEF chains and propagate nonzero property
1125 * tree.h (PHI_ARG_NONZERO): Define.
1126 (phi_arg_d): Add nonzero flag.
1128 2004-05-17 Zack Weinberg <zack@codesourcery.com>
1130 * f: Entire directory removed
1132 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
1133 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
1134 (g77_integer_type_node, g77_uinteger_type_node)
1135 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
1136 * c-common.c (c_common_nodes_and_builtins): Do not initialize
1137 the above set of variables.
1139 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
1140 * doc/invoke.texi, doc/standards.texi: Remove cross-references
1143 2004-05-17 Steven Bosscher <stevenb@suse.de>
1145 PR tree-optimization/15438
1146 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
1147 attributed functions as pure or const.
1149 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
1151 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
1152 from source code with errors.
1154 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
1156 Enable tree browser for all front ends.
1157 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
1158 (BACKEND): ...to here.
1160 2004-05-17 Jan Hubicka <jh@suse.cz>
1162 * i386.c (construct_container): Do not produce BLKmode registers.
1163 (classify_argument): Properly compute alignment of complex types.
1165 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
1168 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
1169 and renamed to movdi_insv_1_rex64.
1170 (insv): Support SImode for 32bit and DImode for 64bit.
1172 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
1174 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
1175 (TARGET_SWITCHES): Remove debugg.
1176 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
1178 (subdi3): Replace the define_expand with a define_insn, the latter
1179 renamed from subdi3_internal_3.
1180 (negdi2): Likewise negdi2_internal_2.
1181 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
1182 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
1183 and associated define_splits.
1184 (adddi3_internal): Renamed from adddi3_internal_3.
1185 (ashldi3_internal): Likewise ashldi3_internal4.
1186 (ashrdi3_internal): Likewise ashrdi3_internal4.
1187 (lshrdi3_internal): Likewise lshrdi3_internal4.
1189 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
1191 * optabs.c (expand_unop): Try implementing negation using subtraction
1194 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1196 * pa.md: Fix typo from last change. Remove DFmode move to and from
1199 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
1202 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
1203 (ne_zeroextractsi_shifted): New pattern.
1204 (ite_ne_zeroextractsi): New pattern.
1205 (ite_ne_zeroextractsi_shifted): New pattern.
1207 2004-05-15 Steven Bosscher <stevenb@suse.de>
1209 * c-gimplify.c (c_genericize):
1210 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
1211 * c-parse.in <expr_no_commas>: Likewise.
1212 <if_prefix>: Likewise.
1213 <select_or_iter_stmt>: Likewise.
1214 * expr.c (expand_var, expand_expr_real_1): Likewise.
1215 * expr.h (expand_expr): Make it a static inline function.
1216 Move prototype for expand_expr_real up before this.
1217 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
1219 * gimplify.c (gimple_boolify, gimplify_addr_expr,
1220 gimplify_asm_expr, gimplify_expr): Likewise.
1221 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
1222 dump_function_to_file): Likewise.
1223 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
1224 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
1225 * tree-into-ssa.c (dump_tree_ssa): Likewise.
1226 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
1228 * tree-optimize.c (execute_one_pass): Likewise.
1229 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
1230 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
1232 * objc/objc-act.c (objc_build_try_enter_fragment,
1233 objc_build_try_epilogue, objc_build_catch_stmt,
1234 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
1235 with lang_hooks.foo ().
1237 2004-05-15 Roger Sayle <roger@eyesopen.com>
1239 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
1240 that simplify_builtin doesn't destructively modify its argument.
1242 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
1244 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
1245 implementations for ARM and Thumb.
1246 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
1248 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
1250 * prefix.c (update_path): Replace PREFIX with KEY only
1251 when it matches a full directory name in PATH.
1253 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
1255 * arm.h (TARGET_APCS_32): Delete.
1256 (TARGET_MMU_TRAPS): Delete.
1257 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
1259 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
1260 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
1261 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
1262 (prog_mode_type): Delete.
1263 (PROMOTE_MODE): Always promote unsigned for HImode.
1264 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
1265 (MASK_RETURN_ADDR): Simplify.
1266 * arm.c (arm_prgmode): Delete.
1267 (arm_override_options, arm_gen_rotated_half_load): Simplify.
1268 (print_multi_reg, output_return_instruction): Simplify.
1269 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
1270 (arm_return_addr): Simplify.
1271 * arm.md (prog_mode): Delete.
1273 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
1274 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
1275 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
1276 (loadhi_shiftpredec): Delete.
1277 (peephole for post-increment on HImode load): Delete.
1278 * arm/crtn.asm: (FUNC_END): Simplify.
1279 * arm/lib1funcs.asm: Remove APCS-26 return macros.
1280 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
1281 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
1282 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
1283 MULTILIB_DEFAULTS as required.
1284 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
1285 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
1286 variables as required.
1287 * doc/invoke.texi (ARM Options): Remove obsolete flags.
1289 2004-05-15 Alan Modra <amodra@bigpond.net.au>
1291 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
1292 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
1293 count to 8 to handle n_reg > 2.
1295 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
1297 * doc/extend.texi: Update WG14 URL.
1299 2004-05-15 Steven Bosscher <stevenb@suse.de>
1301 * basic-block.h (life_analysis, delete_noop_moves):
1303 * bt-load.c (branch_target_load_optimize): Don't take the
1304 insns stream as an argument. Update the life_analysis calls.
1305 * combine.c (combine_instructions): Update delete_noop_moves
1307 * flow.c (notice_stack_pointer_modification): Don't take the
1308 insns stream as an argument. Work on the flow graph.
1309 (life_analysis): Likewise.
1310 (delete_noop_moves): Likewise.
1311 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
1312 (rest_of_handle_life): Update life_analysis call.
1313 (rest_of_compilation): Likewise, and also update
1314 branch_target_load_optimize call.
1315 * ra.c (reg_alloc): Update life_analysis call.
1316 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
1317 the insns stream as an argument.
1318 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
1320 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
1322 * value-profile.c (branch_prob): Update life_analysis call.
1323 * web.c (web_main): Work on the CFG, not on the insns stream.
1325 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
1326 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
1327 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1329 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
1332 * c-format.c (avoid_dollar_number): New function.
1333 (check_format_info_main): Call avoid_dollar_number when operand
1334 numbers might occur but has_operand_number == 0.
1336 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
1338 * arm.md (all peephole2 patterns): Use predicates that validate
1339 register classes as appropriate.
1341 2004-05-14 Steven Bosscher <stevenb@suse.de>
1344 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
1345 ignore type conversions that do not inhibit tail calling.
1346 (find_tail_calls): Likewise.
1348 2004-05-14 Jeff Law <law@redhat.com>
1350 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
1351 bother marking bypassed virtuals for out-of-ssa. Instead merge
1352 bypassed virtuals into vars_to_rename just before into-ssa pass.
1354 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
1355 so that it picks up more opportunities to eliminate ABS expressions
1356 or turn them into negations.
1358 2004-05-14 Steven Bosscher <stevenb@suse.de>
1360 * passes.c (rest_of_handle_null_pointer): Remove.
1361 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
1362 (rest_of_compilation): Likewise.
1363 * rtl.h (delete_null_pointer_checks): Remove prototype.
1364 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
1365 Remove declarations.
1366 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
1367 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
1368 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
1369 expr_reaches_here_p, computing_insn, def_reaches_here_p,
1370 can_disregard_other_sets, handle_avail_expr, classic_gcse,
1371 one_classic_gcse_pass, invalidate_nonnull_info,
1372 delete_null_pointer_checks_1, delete_null_pointer_checks,
1373 expr_reached_here_p_work): Remove.
1374 (gcse_main): Do not perform classic GCSE when optimizing for size.
1375 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
1378 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
1380 PR optimization/14466
1381 * tree-complex.c (make_temp): Remove.
1382 (gimplify_val): Replace make_temp with make_rename_temp
1383 and add NULL as the second argument.
1384 (expand_complex_div_wide): Likewise.
1385 * tree-dfa.c (make_rename_temp): New function.
1386 * tree-flow.h (make_rename_temp): Declare.
1387 * tree-sra.c (make_temp): Remove.
1388 (lookup_scalar): Replace make_temp with make_rename_temp.
1389 (create_scalar_copies): Likewise.
1390 * tree-ssa-phiopt.c (conditional_replacement): When we
1391 get non gimple create a temporary variable to hold the
1394 2004-05-14 Paul Brook <paul@codesourcery.com>
1396 * stor-layout.c (update_alignment_for_field): Use
1397 targetm.align_anon_bitfield.
1398 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
1399 (TARGET_INITIALIZER): Use it.
1400 * target.h (struct gcc_target): Add align_anon_bitfield.
1401 * config/arm/arm.c (arm_align_anon_bitfield): New function.
1402 (TARGET_ALIGN_ANON_BITFIELD): Define.
1403 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
1405 2004-05-13 Zack Weinberg <zack@codesourcery.com>
1407 * tree.def (documentation): Remove mention of class 'b'.
1408 (BLOCK): Now in class 'x'.
1409 * c-common.c (verify_tree): Remove case 'b'.
1410 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
1411 * calls.c (calls_function_1): Control cannot get past the switch
1412 when exp is a BLOCK.
1413 * print-tree.c (print_node): Move code for class 'b' to the class
1414 'c'/'x' switch, as case BLOCK.
1415 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
1416 (unsafe_for_reeval, substitute_placeholder_in_expr)
1417 (stabilize_reference_1): Remove case 'b'.
1418 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
1419 of something being 'b' to tests for TREE_CODE of something being
1421 * tree-ssa-operands.c (get_expr_operands): Likewise.
1423 2004-05-13 Diego Novillo <dnovillo@redhat.com>
1425 * tree-gimple.c: Rename from tree-simple.c.
1426 * tree-gimple.h: Rename from tree-simple.h.
1427 * c-gimplify.c: Rename from c-simplify.c
1428 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
1429 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
1430 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
1431 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
1432 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
1433 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
1434 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
1437 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
1439 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
1441 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1443 * tree-ssa.c (delete_tree_ssa): XFREE
1444 bitmaps allocated with BITMAP_XMALLOC.
1446 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
1447 idfs_cache at the end of the function.
1449 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
1450 at the end of the function.
1452 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
1453 el at the end of the function.
1455 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
1456 bitmaps allocated with BITMAP_XMALLOC.
1458 * loop-unswitch.c (unswitch_single_loop): Free bbs at
1461 * final.c (shorten_branches): Free uid_shuid before
1464 * bb-reoder.c (connect_traces): Free cold_traces at the end.
1466 2004-05-13 Jeff Law <law@redhat.com>
1468 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
1469 variables. Simplify slightly by using USE_OP/DEF_OP instead
1470 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
1472 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
1473 rather than iterating through the blocks testing each bit in
1474 livein to initialize the worklist.
1475 (mark_def_sites): Remove useless checks of KILLS for virtual
1478 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
1479 new parameters for the statement and variable worklist as well
1480 as a bitmap of interesting SSA_NAMEs. Walk over the statement
1481 worklist recording interesting variables in the variable worklist
1482 and bitmap. Handle casts between integral and boolean types.
1483 (substitute_single_use_vars): Accept new parameters for the statement
1484 and variable worklist. When a substitution is made add a new
1485 entry to the statement worklist. Handle casts between integral
1487 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
1488 worklists to children. Iterate until the statement worklist
1491 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1493 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
1494 the end of the block.
1496 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
1497 with BITMAP_XMALLOC.
1499 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
1500 with BITMAP_XMALLOC.
1502 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
1503 Free nonzero_vars at the end of the function.
1505 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
1506 need to generate code instead of a NOP_EXPR.
1508 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
1510 * gcc.c (default_compilers): Fill out initializers for new Fortran
1513 2004-05-13 Paul Brook <paul@codesourcery.com>
1515 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
1517 2004-05-13 Paul Brook <paul@codesourcery.com>
1519 * config/arm/arm.c (arm_default_short_enums): New function.
1520 (TARGET_DEFAULT_SHORT_ENUMS): Define.
1522 2004-05-13 Diego Novillo <dnovillo@redhat.com>
1524 Merge from tree-ssa-20020619-branch.
1526 * Makefile.in (reload1.o-warn): Add.
1527 (tree-alias-ander.o-warn): Add.
1530 (BANSHEELIB): Define.
1531 (BANSHEEINC): Define.
1532 (TREE_DUMP_H): Define.
1533 (TREE_SIMPLE_H): Define.
1534 (TREE_FLOW_H): Define.
1535 (LIBDEPS): Add BANSHEELIB.
1536 (INCLUDES): Add BANSHEEINC and GMPINC.
1537 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
1538 c-mudflap.o and c-pretty-print.o.
1539 (C_OBJS): Remove c-pretty-print.o.
1540 (OBJS-common): Remove sibcall.o.
1541 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
1542 tree-ssa.o, tree-optimize.o, tree-simple.o,
1543 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
1544 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
1545 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
1546 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1547 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
1548 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
1549 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
1550 tree-tailcall.o, gimple-low.o, tree-iterator.o,
1551 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
1552 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
1554 (OBJC-archive): Add tree-nomudflap.o.
1555 (cc1): Add dependency on @TREEBROWSER@.
1556 (c-decl.o): Add dependency on TREE_DUMP_H.
1557 (c-dump.o): Likewise.
1558 (c-common.o): Add dependency on tree-iterator.h
1559 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
1560 (gtype-desc.o): Add dependency on TREE_FLOW_H.
1561 (tree.o): Add dependency on tree-iterator.h,
1562 BASIC_BLOCK_H and TREE_FLOW_H.
1563 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
1564 (langhooks.o): Add dependency on TREE_SIMPLE_H.
1565 (tree-alias-type.o, tree-alias-ander.o,
1566 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
1567 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
1568 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
1569 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
1570 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
1571 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
1572 tree-nested.o, tree-iterator.o, tree-dfa.o,
1573 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
1574 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
1575 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
1576 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
1577 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
1578 tree-sra.o, tree-complex.o, tree-profile.o,
1579 rtl-profile.o): New rules.
1580 (function.o): Add dependency on basic-block.h
1581 (expr.o): Add dependency on tree-iterator.h.
1582 (sibcall.o): Remove.
1583 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
1584 (cfg.o): Add dependency on TIMEVAR_H.
1585 (cfghooks.o): Add dependency on TREE_FLOW_H.
1586 (reg-stack.o): Add dependency on basic-block.h.
1587 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
1588 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
1589 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
1590 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
1591 tree-alias-type.h, tree-alias-common.h,
1592 tree-alias-type.c, tree-alias-common.c,
1593 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
1594 rtl-profile.c and tree-nested.c.
1595 (gt-tree-alias-common.h, gt-tree-mudflap.h,
1596 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
1597 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
1598 gt-tree-cfg.h, gt-tree-nested.h): New rules.
1599 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
1600 * basic-block.h: Include predict.h
1601 (struct edge_def): Add GTY marker.
1602 Change field 'insns' to be a union of tree and rtx.
1603 (EDGE_TRUE_VALUE): Define.
1604 (EDGE_FALSE_VALUE): Define.
1605 (EDGE_EXECUTABLE): Define.
1606 (struct bb_ann_d): Forward declare.
1607 (struct basic_block_def): Add GTY marker.
1608 Remove fields head_tree and end_tree.
1609 Add fields stmt_list, rbi and tree_annotations.
1610 (struct reorder_block_def): Define.
1611 (basic_block_info): Add GTY marker.
1612 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
1613 variables instead of macros.
1614 (flow_call_edges_add): Remove declaration.
1615 (make_eh_edge): Remove declaration.
1616 (brief_dump_cfg, find_edge, tree_predicted_by_p,
1617 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
1618 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
1619 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
1620 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
1621 (try_redirect_by_replacing_jump): Modfiy return type to
1622 edge instead of bool.
1623 * bb-reorder.c (copy_bb): Call duplicate_block
1624 instead of cfg_layout_duplicate_bb.
1625 (copy_bb_p): Call can_duplicate_block_p instead of
1626 cfg_layout_can_duplicate_bb_p.
1627 * bitmap.c (bitmap_first_set_bit): Abort if word
1629 (bitmap_last_set_bit): Likewise.
1630 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
1631 (DEF_FUNCTION_TYPE_3): Add.
1632 * builtins.c (c_strlen): Make extern.
1633 (builtin_save_expr): New.
1634 (expand_builtin_nonlocal_goto): New.
1635 (expand_builtin_constant_p): Remove.
1636 (expand_builtin_mathfn): Call builtin_save_expr instead
1638 (expand_builtin_mathfn_2): Likewise.
1639 (expand_builtin_strcmp): Likewise.
1640 (expand_builtin_strncmp): Likewise.
1641 (expand_builtin_strcat): Likewise.
1642 (fold_builtin_cabs): Likewise.
1643 (expand_builtin_alloca): Don't trigger if -fmudflap is
1645 (build_string_literal): Set TREE_INVARIANT on new node.
1646 (expand_builtin_profile_fun): New.
1647 (round_trampoline_addr): New.
1648 (expand_builtin_init_trampoline): New.
1649 (expand_builtin_adjust_trampoline): New.
1650 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
1651 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
1652 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
1653 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
1654 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
1655 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
1657 (fold_builtin_expect): New.
1658 (fold_builtin_isascii): Don't return non-constant results
1660 (fold_builtin_isdigit): Likewise.
1661 (fold_builtin_1): New.
1662 (fold_builtin): Call it.
1663 (build_function_call_expr): Update call to build a new
1665 (purge_builtin_constant_p): Remove.
1666 (simplify_builtin, simplify_builtin_memcmp,
1667 simplify_builtin_strcmp, simplify_builtin_strncmp,
1668 simplify_builtin_strpbrk, simplify_builtin_strstr,
1669 simplify_builtin_strchr, simplify_builtin_strrchr,
1670 simplify_builtin_strcat, simplify_builtin_strncat,
1671 simplify_builtin_strspn, simplify_builtin_strcspn,
1672 simplify_builtin_next_arg, simplify_builtin_va_start,
1673 simplify_builtin_sprintf): New.
1674 * builtins.def (BUILT_IN_STACK_ALLOC,
1675 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
1676 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
1677 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
1678 BUILT_IN_PROFILE_FUNC_EXIT): Define.
1679 * c-common.c: Include tree-iterator.h and hashtab.h.
1680 (lang_statement_code_p): Declare.
1681 (lang_gimplify_stmt): Declare.
1682 (fix_string_type): Set TREE_INVARIANT for value.
1683 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
1685 (c_common_get_alias_set): Handle multiple type nodes
1686 referring to "the same" type, currently for C90 only.
1687 (c_add_case_label): Use create_artificial_label.
1688 (finish_label_address_expr): Don't set TREE_CONSTANT on
1690 (c_expand_expr): Don't handle STMT_EXPR.
1691 (handle_alias_attribute): Marke aliased variables to be
1693 (handle_nonnull_attribute): Initialize arg_num.
1694 (check_function_nonnull): Likewise.
1695 (c_walk_subtrees): New.
1696 (c_estimate_num_insns_1): Don't handle
1697 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
1698 (c_decl_uninit_1): Remove.
1699 (c_decl_uninit): Remove.
1700 (c_warn_unused_result): New.
1701 * c-common.def (ASM_STMT): Change number of operands
1703 (FILE_STMT): Remove.
1704 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
1706 (lang_gimplify_stmt): Add.
1707 (expand_stmt): Remove.
1708 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
1709 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
1710 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
1711 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
1712 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
1713 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
1714 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
1715 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
1716 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
1717 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
1718 genrtl_compound_stmt, genrtl_asm_stmt,
1719 genrtl_cleanup_stmt, c_decl_uninit): Remove.
1720 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
1721 c_tree_chain_matters_p, c_warn_unused_result,
1722 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
1724 * c-convert.c (convert): Make convert work when
1725 converting to compatible types across translation unit.
1726 * c-decl.c: Include langhooks.h, tree-mudflap.h,
1727 tree-simple.h, diagnostic.h and tree-dump.h
1728 (merge_decls): Initialize oldtype to NULL.
1729 (finish_decl): Use DECL_HARD_REGISTER instead of
1730 DECL_C_HARD_REGISTER.
1731 (check_bitfield_type_and_width): Check for null
1732 lang_type_specific when check the precision of an enum.
1733 (grokdeclarator): Immediately layout an ARRAY_TYPE used
1734 in a pointer-to-array declarator.
1735 (finish_struct): Clear allocated struct lang_type.
1736 (finish_enum): Set enum_min and enum_max. Set
1737 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
1738 not to the enumerators.
1739 (set_decl_nonlocal): New.
1740 (store_parm_decls): Use it via walk_tree.
1742 (finish_function): When !targetm.have_ctors_dtors,
1743 record static constructors and destructors here...
1744 (c_expand_body_1): ... not here.
1745 (c_expand_decl): Rename from c_expand_decl_stmt.
1746 Handle all C-specific expansion semantics.
1747 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
1749 * c-format.c (handle_format_arg_attribute): Initialize
1751 * c-lang.c: Include tree-inline.h
1752 (LANG_HOOKS_EXPAND_DECL,
1753 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1754 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
1755 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
1756 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
1757 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
1758 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
1759 (c_types_compatible_p): New.
1760 * c-mudflap.c: New file.
1761 * c-objc-common.c: Include tree-mudflap.h
1762 (start_cdtor, finish_cdtor): Collapse
1764 (build_cdtor): ...here. Update to construct a complete tree
1765 for the function. No need to call push_scope, pop_scope, or
1766 clear_last_expr, or set current_function_cannot_inline.
1767 (c_missing_noreturn_ok_p): Change prototype to return
1769 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
1770 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
1772 (c_common_post_options): Don't ever use rtl inlining.
1773 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
1774 * c-pragma.c (handle_pragma_redefine_extname): Define
1776 (init_pragma): Activate #pragma redefine_extname for mudflap.
1777 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
1778 (pp_c_initializer): Accept any type CONSTRUCTOR.
1779 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
1781 (decl_name_str): New local function.
1782 (pp_c_direct_declarator): Call it.
1783 (pp_c_primary_expression): Call it.
1784 (pp_c_id_expression): Call it.
1785 (pp_c_statement): Call it.
1786 (print_c_tree): Create new pp object.
1787 * c-pretty-print.h (pp_c_tree_decl_identifier,
1788 print_c_tree): Declare.
1789 * c-semantics.c: Include langhooks.h
1790 (lang_expand_stmt, lang_expand_decl_stmt,
1791 find_reachable_label_1, find_reachable_label,
1792 expand_unreachable_if_stmt, expand_unreachable_stmt,
1793 genrtl_do_stmt_1): Remove.
1794 (begin_stmt_tree): Don't check for changed filename.
1795 Call annotate_with_locus.
1796 (finish_stmt_tree): Don't set line for end of function.
1797 (build_stmt): Don't check type nodes for
1799 (build_stmt): Set TREE_SIDE_EFFECTS.
1800 Set EXPR_LOCUS instead of STMT_LINENO.
1801 (lang_expand_stmt, lang_expand_decl_stmt,
1802 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
1803 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
1804 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
1805 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
1806 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
1807 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
1808 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
1809 find_reachable_label_1, expand_unreachable_if_stmt,
1810 expand_unreachable_stmt): Remove.
1811 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
1812 * c-simplify.c: New file.
1813 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
1814 (struct lang_type): Add fields enum_min and enum_max.
1815 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
1816 (c_expand_decl, c_missing_noreturn_ok_p,
1817 c_types_compatible_p): Declare.
1818 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
1819 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
1820 (default_function_array_conversion): Rely on build to
1822 (parser_build_binary_op, pointer_diff): Likewise.
1823 (build_unary_op, build_binary_op): Likewise.
1825 (build_external_ref): Set TREE_INVARIANT.
1826 (build_c_cast, pop_init_level): Likewise.
1827 (process_init_element): Use ASM_VOLATILE_P.
1828 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
1829 (c_finish_case): Call c_do_switch_warnings.
1830 * c.opt (fdump-): Remove.
1831 * calls.c (try_to_integrate): Remove.
1832 (prepare_call_address): Replace fndecl arg with a
1833 precomputed static chain value.
1834 (emit_call_1): New argument for full call expr.
1835 (flags_from_decl_or_type): Call special_function_p.
1836 (initialize_argument_information): Add argument
1838 (purge_reg_equiv_notes): New.
1839 (expand_call): Do not try to expand calls inline.
1840 (fixup_tail_calls): New.
1841 * cfg.c: Include timevar.h and ggc.h.
1842 (bb_pool, edge_pool): Remove.
1843 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
1844 (entry_exit_blocks): Remove.
1845 (rbi_pool): Declare.
1846 (init_flow): Do not create pools.
1847 Allocate entry/exit block.
1848 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
1849 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
1850 (unlink_block): Clear b->prev_bb and b->next_bb.
1851 (compact_blocks): Clear all slots of BASIC_BLOCK array.
1852 (dump_flow_info): Work on trees too.
1853 (dump_cfg_bb_info): New.
1854 (brief_dump_cfg): New.
1855 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
1857 * cfgbuild.c (rtl_make_eh_edge): Rename from
1858 make_eh_edge. Update all users.
1859 (find_basic_blocks): Don't call VARRAY_FREE on
1861 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
1863 (delete_unreachable_blocks): Return changed status.
1864 (merge_seq_blocks): New.
1865 * cfghooks.c: Include tree-flow.h
1866 (tree_register_cfg_hooks, ir_type): New.
1867 (redirect_edge_and_branch): Change return type to edge.
1868 (predict_edge, predicted_by_p, can_duplicate_block_p,
1869 duplicate_block, block_ends_with_call_p,
1870 block_ends_with_condjump_p, flow_call_edges_add): New.
1871 * cfghooks.h (redirect_edge_and_branch): Change return
1873 (predict_edge, predicted_by_p, can_duplicate_block_p,
1874 duplicate_block, block_ends_with_call_p,
1875 block_ends_with_condjump_p, flow_call_edges_add): Declare.
1876 (redirect_edge_and_branch): Change return type to edge.
1877 (struct cfg_hooks): Add fields block_ends_with_call_p,
1878 block_ends_with_condjump_p, flow_call_edges_add,
1879 predict_edge, predicted_by_p, can_duplicate_block_p and
1881 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
1882 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
1883 (fixup_reorder_chain): Use initialize_bb_rbi.
1884 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
1885 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
1886 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
1887 (insn_locators_initialize): Use new info about blocks.
1888 * cfglayout.h (typedef struct reorder_block_def): Moved to
1890 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
1892 * cfgloop.c: Include tree.h and tree-flow.h.
1893 * cfgloop.h (create_loop_notes): Declare.
1894 * cfgloopmanip.c (create_loop_notes): New.
1895 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
1896 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
1897 and duplicate_block fields.
1898 (create_basic_block_structure): Don't look at
1900 (rtl_block_ends_with_call_p): New.
1901 (rtl_block_ends_with_condjump_p): New.
1902 (need_fake_edge_p): Moved from cfganal.c.
1903 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
1904 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
1905 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
1906 (cfg_layout_rtl_cfg_hooks): Ditto.
1907 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
1908 functions to be reachable.
1909 * cgraphunit.c (decide_is_function_needed):
1910 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
1911 inline functions don't need to be output.
1912 (cgraph_assemble_pending_functions): Don't do anything
1913 special for nested functions.
1914 (cgraph_mark_functions_to_output): Likewise.
1915 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
1916 (cgraph_analyze_function): Use estimate_num_insns.
1917 (cgraph_mark_functions_to_output): Likewise.
1918 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
1919 (cgraph_expand_function): Allow functions to not be
1921 (cgraph_remove_unreachable_nodes):
1922 (cgraph_recursive_inlining_p): Simplify.
1923 (lookup_recursive_calls,
1924 cgraph_decide_recursive_inlining): New.
1925 (cgraph_decide_inlining_*): Update calls of
1927 * combine.c (get_pos_from_mask): Always set *plen.
1928 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
1929 ftree-based-profiling, ftree-ccp, ftree-ch,
1930 ftree-combine-temps, ftree-copyrename, ftree-dce,
1931 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
1932 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
1934 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
1936 * configure.ac: Add --enable-tree-browser option.
1937 Add --with-libbanshee option.
1938 Add GMPLIBS and GMPINC.
1939 * configure: Regenerate.
1940 * coverage.c (tree_ctr_tables): New.
1941 (coverage_counter_alloc): Use it.
1942 (build_ctr_info_value): Ditto.
1943 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
1944 (tree_coverage_counter_ref): New.
1945 * coverage.h (coverage_counter_ref): Remove declaration.
1946 (rtl_coverage_counter_ref): Declare.
1947 (tree_coverage_counter_ref): Declare.
1948 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
1949 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
1950 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
1951 (struct cse_basic_block_data): Rename enum values to not
1952 conflict with profile.h; update all uses.
1953 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
1955 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
1956 * diagnostic.h (debug_output_buffer, dump_generic_node,
1957 print_generic_stmt, print_generic_stmt_indented,
1958 print_generic_expr, print_generic_decl,
1959 debug_generic_expr, debug_generic_stmt, debug_c_tree):
1961 * dominance.c: Cache immediate dominators.
1962 * domwalk.c: New file.
1963 * domwalk.h: New file.
1964 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
1965 (gen_subprogram_die): Generate a DIE for a named
1967 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
1968 (add_location_or_const_value_attribute): Likewise.
1969 (add_bound_info): Likewise.
1970 (gen_decl_die): Likewise.
1971 * emit-rtl.c (maybe_set_first_label_num): New.
1972 (copy_most_rtx): Don't copy the integrated flag.
1973 Copy the new return_val flag.
1974 * et-forest.c (MAX_NODES): Define.
1975 (record_path_before_1): Abort if len is greater than
1977 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
1978 gen_eh_region_catch, gen_eh_region_allowed,
1979 gen_eh_region_must_not_throw, get_eh_region_number,
1980 get_eh_region_may_contain_throw, get_eh_region_tree_label,
1981 set_eh_region_tree_label, expand_resx_expr): New.
1982 (expand_eh_region_start, expand_start_catch): Use them.
1983 (expand_end_catch): Tidy.
1984 (note_eh_region_may_contain_throw): Take region argument.
1985 (note_current_region_may_contain_throw): New.
1986 (get_exception_filter): Export.
1987 (collect_eh_region_array): Export.
1988 (remove_unreachable_regions): Check ERT_TRY based on reachability
1989 of catches, not reachability of continue_label. Never remove
1990 ERT_MUST_NOT_THROW regions.
1991 (collect_rtl_labels_from_trees): New.
1992 (convert_from_eh_region_ranges): Use it.
1993 (connect_post_landing_pads): Handle dying cleanups.
1994 (struct reachable_info): Add callback data.
1995 (add_reachable_handler): Invoke the callback.
1996 (foreach_reachable_handler): New.
1997 (reachable_handlers): Use it.
1998 (arh_to_landing_pad, arh_to_label): New.
1999 (can_throw_internal_1): Split out from can_throw_internal.
2000 (can_throw_external_1): Similarly.
2002 * explow.c (emit_stack_save): Remove savearea mode check.
2003 (update_nonlocal_goto_save_area): New.
2004 (allocate_dynamic_stack_space): Use it.
2005 (probe_stack_range): Never emit loop notes.
2006 * expmed.c (extract_fixed_bit_field): Always propagate the
2007 target for the shift if it is a REG.
2008 * expr.c: Include tree-iterator.h
2009 (is_zeros_p): Remove.
2010 (categorize_ctor_elements_1, categorize_ctor_elements): New.
2011 (count_type_elements): New.
2012 (mostly_zeros_p): Use them.
2013 (expr_wfl_stack): Remove.
2014 (convert_move): Do nothing if to and from are the same.
2015 (emit_block_move_via_loop): Don't emit LOOP notes.
2016 (emit_move_insn): Don't handle CONSTANT_P_RTX.
2017 (emit_move_insn_1): Don't generate inline warnings.
2018 (expand_vars, expand_var): Split from ...
2019 (expand_expr_1): ... here.
2020 (expand_expr_real, expand_expr_real_1): Use new macros
2021 EXPR_LOCATION and EXPR_HAS_LOCATION.
2022 * expr.h (simplify_builtin_fputs,
2023 simplify_builtin_strcpy, simplify_builtin_strncpy,
2024 expand_var, fixup_tail_calls,
2025 update_nonlocal_goto_save_area): Declare.
2026 (lookup_static_chain, expand_inline_function,
2027 mark_seen_cases): Remove.
2028 (prepare_call_address): Change type of 2nd argument to
2030 * final.c (profile_function): Update static chain test.
2031 (final): Don't look at RTX_INTEGRATED_P.
2032 * flags.h (flag_mudflap, flag_mudflap_threads,
2033 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
2034 flag_tree_dce, flag_tree_combine_temps,
2035 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
2036 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
2037 flag_tree_points_to): Declare.
2038 (enum pta_type): Declare.
2039 * flow.c (lang_missing_noreturn_ok_p): Remove.
2040 (check_function_return_warnings): Remove.
2041 (update_life_info): Update comments.
2042 (free_basic_block_vars): Don't call VARRAY_FREE for
2044 (regno_uninitialized): Remove.
2045 * fold-const.c (int_const_binop): Make extern.
2046 (non_lvalue): Rely on build to set TREE_CONSTANT.
2047 (operand_equal_p): Replace only_const argument with
2048 flags. Allow pure functions if OEP_PURE_SAME.
2049 (fold): Use OEP_ONLY_CONST.
2050 (invert_truthvalue) <NOP_EXPR> Break if argument is of
2052 (fold_relational_hi_lo,
2053 nondestructive_fold_binary_to_constant,
2054 nondestructive_fold_unary_to_constant,
2055 fold_read_from_constant_string): New.
2056 * function.c (struct function): Remove calls_constant_p.
2057 (current_function_calls_constant_p): Remove.
2058 (inline_function_decl): Remove.
2059 (put_var_into_stack): Don't use it.
2060 (fix_lexical_addr): Likewise.
2061 (inline_function_decl): Remove extern declaration.
2062 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
2063 (trampolines_created): Move to varasm.c.
2064 (free_after_compilation): Update for removed fields.
2065 (allocate_struct_function): Likewise.
2066 (delete_handlers, lookup_static_chain): Remove.
2067 (fix_lexical_addr): Don't consider non-local variable refs.
2068 (trampoline_address): Remove.
2069 (round_trampoline_addr): Move to builtins.c.
2070 (adjust_trampoline_addr): Remove.
2071 (expand_function_start): Update for changes to static chain
2072 and nonlocal goto handling.
2073 (initial_trampoline): Move to varasm.c.
2074 (expand_function_end): Don't build trampolines or kill
2075 unreferenced nonlocal goto labels.
2076 (free_after_compilation): Don't set it.
2077 (expand_function_end): Likewise.
2078 (setjmp_vars_warning): Rename from
2079 uninitialized_vars_warning, remove uninitialized vars warning.
2080 (uninitialized_vars_warning): Remove old comment
2081 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
2082 and do not call the langhook.
2083 (expand_function_start, expand_function_end): Don't do
2084 function instrumentation here.
2085 (clear_block_marks): Rename from reorder_blocks_0, export.
2086 (blocks_nreverse): Export.
2087 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
2089 (reset_block_changes, record_block_change, finalize_block_changes,
2090 check_block_change, free_block_changes): New functions.
2091 (assign_parms): Setting of current_function_stdarg
2093 (allocate_struct_function): ... here.
2094 * function.h (struct function): Remove x_nonlocal_labels,
2095 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
2096 x_context_display, x_trampoline_list, needs_context.
2097 Add static_chain_decl, nonlocal_goto_save_area.
2098 (struct function): Remove x_clobber_return_insn.
2099 Add tail_call_emit field, last_label_uid,
2100 unexpanded_var_list, dont_emit_block_notes,
2101 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
2102 (clear_block_marks): Declare.
2103 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
2104 (mfwrap_spec, mflib_spec): Declare.
2105 (cpp_unique_options, cc1_options): Ditto.
2106 (default_compilers): Add .F and .f90.
2107 (static_specs): Add mfwrap and mflib.
2108 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
2110 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
2111 Update to match insns field in struct edge_def.
2112 * gdbinit.in (pgs, pge): Define.
2113 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
2114 instead of the integrated flag.
2115 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
2116 * gengtype-yacc.y (bitfieldlen): Add empty action.
2117 (struct_fields): Accept unnamed bitfields.
2118 (bitfieldlen): Split from ...
2119 (bitfieldopt): ... here.
2120 * gengtype.c (ifiles): Add tree-alias-type.h and
2122 * genrecog.c (validate_pattern): Do not handle
2124 * gimple-low.c: New file.
2125 * gimplify.c: New file.
2126 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
2127 (restore_line_notes): Do not set RTX_INTEGRATED_P.
2128 * ifcvt.c (dead_or_predicable): Initialize local variable
2130 * input.h (expr_wfl_stack): Remove.
2131 * integrate.c (INTEGRATE_THRESHOLD): Remove.
2132 (setup_initial_hard_reg_value_integration): Likewise.
2133 (initialize_for_inline): Likewise.
2134 (note_modified_parmregs): Likewise.
2135 (integrate_parm_decls): Likewise.
2136 (process_reg_param): Likewise.
2137 (save_parm_insns): Likewise.
2138 (copy_insn_list): Likewise.
2139 (copy_insn_notes): Likewise.
2140 (compare_blocks): Likewise.
2141 (find_block): Likewise.
2142 (inlining): Likewise.
2143 (function_cannot_inline_p): Likewise.
2144 (parmdecl_map): Likewise.
2145 (in_nonparam_insns): Likewise.
2146 (save_for_inline): Likewise.
2147 (FIXED_BASE_PLUS): Likewise.
2148 (expand_inline_function): Likewise.
2149 (copy_rtx_and_substitute): Don't look at map->integrating,
2150 map->inline_target, and inlining, since we are never copying
2152 Don't abort on RTX_INTEGRATED_P.
2154 (output_inline_function): Remove.
2155 * integrate.h (struct inline_map): Remove fields integrating,
2156 block_map, leaf_reg_map, inline_target, and local_return_label.
2157 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
2158 copy_loop_headers, never_reached_warning): Removed.
2159 (any_uncondjump_p): Reject nonlocal goto.
2160 * langhooks-def.h (lhd_types_compatible_p,
2161 lhd_expand_decl, lhd_gimplify_expr): Declare.
2162 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
2163 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2164 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
2165 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2166 LANG_HOOKS_GIMPLIFY_EXPR,
2167 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
2168 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
2169 LANG_HOOKS_GIMPLIFY_EXPR,
2170 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
2171 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
2172 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
2173 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
2174 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
2175 LANG_HOOKS_DECL_UNINIT,
2176 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
2177 * langhooks.c: Include tree-simple.h.
2178 (lhd_expand_decl): New.
2179 (lhd_types_compatible_p): New.
2180 (lhd_decl_uninit): Remove.
2181 (lhd_gimplify_expr): New.
2182 * langhooks.h (struct lang_hooks_for_rtl_expansion):
2184 (struct lang_hooks_for_functions): Add field
2185 missing_noreturn_ok_p.
2186 (struct lang_hooks): Add field expand_decl,
2187 types_compatible_p, gimplify_expr and
2188 gimple_before_inlining.
2189 Remove fields decl_uninit and rtl_expand
2190 * opts.c (decode_options): Set flag_tree_ccp,
2191 flag_tree_dce, flag_tree_dom, flag_tree_dse,
2192 flag_tree_pre, flag_tree_ter,
2193 flag_tree_live_range_split, flag_tree_sra,
2194 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
2195 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
2196 OPT_fmudflapth, OPT_fmudflapir,
2197 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
2198 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
2199 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
2200 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
2201 OPT_ftree_points_to_ and OPT_ftree_pre.
2202 * output.h (regno_uninitialized, find_basic_blocks,
2203 cleanup_cfg, delete_unreachable_blocks,
2204 check_function_return_warnings): Remove.
2205 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
2206 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
2207 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
2208 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
2209 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
2210 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
2212 * passes.c (rest_of_decl_compilation):
2213 (rest_of_handle_sibling_calls): Remove.
2214 (rest_of_handle_inlining): Remove.
2215 (rest_of_handle_gcse): Do not run
2216 purge_builtin_constant_p.
2217 (rest_of_compilation): Update.
2218 Do not call copy_loop_headers.
2219 Do rtl-based profiling only when
2220 !flag_tree_based_profiling. Register rtl-based profiling
2222 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
2223 (predicted_by_p): Rename to ...
2224 (rtl_predicted_by_p): .. this one; make global
2225 (tree_predicted_by_p): New.
2226 (dump_prediction): Add FILE argument.
2227 (predict_edge): Rename to ...
2228 (rtl_predict_edge): .. this one.
2229 (tree_predict_edge): New.
2230 (combine_predictions_for_insn): Update calls of predict_edge.
2231 (predict_loops): Break out from ...
2232 (estimate_probability): ... here; update comments; move updating
2233 of unknown probabilities from ...
2234 (estimate_bb_frequencies): ... here.
2235 (combine_predictions_for_bb): New.
2236 (tree_predict_by_opcode): New.
2237 (tree_estimate_probability): New.
2238 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
2239 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
2240 * predict.h: Add include guard.
2241 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
2242 * pretty-print.c (pp_write_text_to_stream): Make extern.
2243 * pretty-print.h (pp_write_text_to_stream): Declare.
2244 * print-rtl.c (print_rtx): Don't print the integrated flag.
2245 Print the return_val flag.
2246 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
2247 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
2248 Remove support for EXPR_WITH_FILE_LOCATION nodes.
2249 (print_node): Print TREE_INVARIANT and TREE_VISITED.
2250 * profile.c: Include cfghooks.h, tree-flow.h.
2251 (profile_hooks): New.
2252 (profile_dump_file): New.
2253 (instrument_edges): Use hooks instead of RTL-specific code.
2254 (instrument_values): Ditto.
2255 (get_exec_counts): Ditto.
2256 (compute_branch_probabilities): Ditto.
2257 (compute_value_histograms): Ditto.
2258 (branch_prob): Ditto.
2259 (find_spanning_tree): Ditto.
2260 (end_branch_prob): Ditto.
2261 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
2262 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
2263 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
2264 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
2265 (tree_register_profile_hooks): New.
2266 (rtl_register_profile_hooks): New.
2267 * ra-rewrite.c (rewrite_program): Clear variable info.
2268 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
2269 * regs.h: Add include guards.
2270 * reload.c (decompose): Clear val using memset.
2271 * rtl.def (CONSTANT_P_RTX): Remove.
2272 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
2273 (copy_loop_headers): Remove.
2274 (struct rtx_def): Replace the integrated flag with the
2276 (maybe_set_first_label_num): Declare.
2277 (init_branch_prob): Move declaration to value-prof.h.
2278 (end_branch_prob): Ditto.
2279 (branch_prob): Ditto.
2280 (never_reached_warning): Don't declare it.
2281 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
2282 (hoist_insn_to_edge): Update to match field insns in
2284 * sbitmap.c (sbitmap_realloc): New.
2285 * sbitmap.h (sbitmap_realloc): Declare.
2286 * sibcall.c: Remove file.
2287 * simplify-rtx.c (simplify_rtx): Do not handle
2289 * stmt.c (parse_output_constraint): Don't warn for read-write
2291 (tail_recursion_args): Use types_compatible_p langhook.
2292 (force_label_rtx): Don't look at inline_function_decl.
2293 (label_rtx): Set LABEL_PRESERVE_P appropriately.
2294 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
2295 (declare_nonlocal_label): Remove.
2296 (expand_goto): Don't handle nonlocal gotos.
2297 (expand_nl_handler_label): Remove.
2298 (expand_nl_goto_receivers): Remove.
2299 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
2300 update_nonlocal_goto_save_area.
2301 (expand_expr_stmt_value): Check TREE_NO_WARNING.
2302 (warn_if_unused_value): Likewise.
2303 (expand_start_loop, expand_loop_continue_here,
2304 expand_end_loop): Don't create loop notes.
2305 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
2306 mark_seen_cases, check_for_full_enumeration_handling): Remove.
2307 (expand_end_case_type): Don't do warn_switch handling.
2308 (pushcase, pushcase_range) Update add_case_node calls.
2309 (add_case_node): Add dont_expand_label argument.
2310 (same_case_target_p): Don't search rtl.
2311 (expand_start_bindings_and_block, expand_end_bindings):
2312 Don't emit block notes when dont_emit_block_notes.
2313 (using_eh_for_cleanups_p): Export.
2314 (expand_return): Allow any typed rhs.
2315 (expand_stack_alloc): New.
2316 (expand_stack_save, expand_stack_restore): New.
2317 (containing_blocks_have_cleanups_or_stack_level): New
2319 (asm_op_is_mem_input): New fn.
2320 (expand_asm_expr): New fn.
2321 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
2323 * stor-layout.c (layout_type): Just return if type is
2325 (update_alignment_for_field): Export.
2326 (variable_size): We don't care about global_bindings_p if
2327 the frontend doesn't want a list of the expressions.
2328 * system.h: Poison INTEGRATE_THRESHOLD.
2329 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
2330 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
2331 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
2332 TV_TREE_SSA_OTHER, TV_TREE_OPS,
2333 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
2334 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
2335 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
2336 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
2337 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
2338 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
2339 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
2340 TV_CONTROL_DEPENDENCES): Define.
2341 * toplev.c: Include tree-alias-common.h
2342 (current_file_decl, flag_mudflap, flag_mudflap_threads,
2343 flag_mudflap_ignore_reads, flag_tree_based_profiling,
2344 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
2345 flag_tree_dce, flag_tree_ch, flag_tree_sra,
2346 flag_tree_combine_temps, flag_tree_ter,
2347 flag_tree_live_range_split, flag_tree_dom,
2348 flag_tree_copyrename, flag_tree_dse): Declare.
2349 (f_options): Add tree-based-profiling, tree-gvn,
2350 tree-pre, tree-ccp, tree-dce,
2351 tree-dominator-opts, tree-copyrename, tree-dse,
2352 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
2353 (wrapup_global_declarations): Don't output nested inlined functions.
2354 (general_init): Call init_tree_optimization_passes.
2355 (process_options): Sorry for -ftree-based-profiling plus
2356 -ftest-coverage or -fprofile-values.
2357 * toplev.h (init_tree_optimization_passes,
2358 flag_tree_based_profiling): Declare.
2359 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
2360 * tree-alias-ander.c: New file.
2361 * tree-alias-ander.h: New file.
2362 * tree-alias-common.c: New file.
2363 * tree-alias-common.h: New file.
2364 * tree-alias-type.c: New file.
2365 * tree-alias-type.h: New file.
2366 * tree-browser.c: New file.
2367 * tree-browser.def: New file.
2368 * tree-cfg.c: New file.
2369 * tree-complex.c: New file.
2370 * tree-dfa.c: New file.
2371 * tree-dump.c (dump_enable_all): New.
2372 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
2373 (dump_node): Remove const from field suffix and swtch.
2374 (dump_files): Add null entry, .generic, .nested, .vcg,
2375 .xml and a match-all entry.
2376 (extra_dump_files, extra_dump_files_in_use,
2377 extra_dump_files_alloced): Declare
2378 (dump_option_value_info): Add raw, details, stats,
2379 blocks, vops, lineno, uid and all.
2380 (dump_register): New.
2381 (get_dump_file_info): New.
2382 (dump_begin): Call it.
2383 Do nothing for TDI_none.
2384 (dump_begin): Include phase number in dump filename.
2385 (dump_enable_all): New.
2386 (dump_switch_p_1): Split out from dump_switch_p.
2387 (dump_switch_p): Handle extra_dump_files.
2388 Start our scan at TDI_none + 1.
2389 If -fdump-tree-all was given, call dump_enable_all.
2390 * tree-dump.h: Include splay-tree.h.
2391 (dump_function, dump_function_to_file, dump_register):
2393 * tree-eh.c: New file.
2394 * tree-flow-inline.h: New file.
2395 * tree-flow.h: New file.
2396 * tree-inline.c: Re-write to handle inlining on GIMPLE.
2397 * tree-inline.h (walk_tree,
2398 walk_tree_without_duplicates): Move to tree.h.
2399 (estimate_num_insns): Declare.
2400 * tree-into-ssa.c: New file.
2401 * tree-iterator.c: New file.
2402 * tree-iterator.h: New file.
2403 * tree-mudflap.c: New file.
2404 * tree-mudflap.h: New file.
2405 * tree-nested.c: New file.
2406 * tree-nomudflap.c: New file.
2407 * tree-nrv.c: New file.
2408 * tree-optimize.c (dump_flags, vars_to_rename,
2409 in_gimple_form, all_passes, pass_gimple,
2410 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
2411 (execute_gimple, execute_rebuild_bind,
2412 gate_all_optimizations, execute_del_cfg,
2413 register_one_dump_file, register_dump_files, dup_pass_1,
2414 init_tree_optimization_passes, execute_todo,
2415 execute_one_pass, execute_pass_list): New.
2416 (clear_decl_rtl): Remove.
2417 (tree_rest_of_compilation): Update to use tree
2419 * tree-outof-ssa.c: New file.
2420 * tree-pass.h: New file.
2421 * tree-phinodes.c: New file.
2422 * tree-pretty-print.c: New file.
2423 * tree-profile.c: New file.
2424 * tree-simple.c: New file.
2425 * tree-simple.h: New file.
2426 * tree-sra.c: New file.
2427 * tree-ssa-alias.c: New file.
2428 * tree-ssa-ccp.c: New file.
2429 * tree-ssa-copy.c: New file.
2430 * tree-ssa-copyrename.c: New file.
2431 * tree-ssa-dce.c: New file.
2432 * tree-ssa-dom.c: New file.
2433 * tree-ssa-dse.c: New file.
2434 * tree-ssa-forwprop.c: New file.
2435 * tree-ssa-live.c: New file.
2436 * tree-ssa-live.h: New file.
2437 * tree-ssa-loop.c: New file.
2438 * tree-ssa-operands.c: New file.
2439 * tree-ssa-operands.h: New file.
2440 * tree-ssa-phiopt.c: New file.
2441 * tree-ssa-pre.c: New file.
2442 * tree-ssa.c: New file.
2443 * tree-ssanames.c: New file.
2444 * tree-tailcall.c: New file.
2445 * tree.c: Include tree-iterator.h, basic-block.h and
2447 (tree_node_kind): Add phi_nodes and ssa names.
2448 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
2449 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
2450 (make_node_stat): Handle PHI_NODE and SSA_NAME.
2451 <'c'> Set TREE_INVARIANT.
2452 (copy_node_stat): Abort if trying to copy a
2455 Clear annotation field.
2456 (build_constructor): Copy TREE_INVARIANT from vals.
2457 Don't clear TREE_CONSTANT.
2458 (expr_first, expr_last, expr_length): Remove.
2459 (staticp): Pass unknown component references to the language.
2460 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
2461 (skip_simple_arithmetic): Likewise.
2462 (stabilize_reference_1): Likewise.
2463 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
2464 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
2466 (lhd_unsave_expr_now): Remove.
2467 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
2468 (recompute_tree_invarant_for_addr_expr): New.
2469 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
2470 Call recompute_tree_invarant_for_addr_expr.
2471 Set TREE_INVARIANT accordingly.
2472 (build2_stat): Don't handle CALL_EXPR.
2473 (build3_stat): Don't call build2_stat for CALL_EXPRs.
2474 (build_expr_wfl): Remove.
2475 (annotate_with_file_line, annotate_with_locus): New.
2476 (simple_cst_equal): Call simple_cst_list_equal to compare
2477 CONSTRUCTOR_ELTS pointers.
2478 (iterative_hash_expr): Don't hash types associated
2479 with conversions. Instead hash on the signedness of the
2480 toplevel object and the operand of the conversion.
2481 (dump_tree_statistics): Call ssanames_print_statistics
2482 and phinodes_print_statistics.
2483 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
2484 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
2485 needs_to_live_in_memory): New.
2486 (initializer_zerop): Handle VECTOR_CST. Don't check
2487 AGGREGATE_TYPE_P for CONSTRUCTOR.
2488 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
2489 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
2490 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
2491 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
2492 (CALL_EXPR): Add another operand.
2493 (EXPR_WITH_FILE_LOCATION): Remove.
2494 (SWITCH_EXPR): Add another operand.
2495 * tree.h: Update various comments.
2496 (union tree_ann_d): Forward declare.
2497 (struct tree_common): Add fields nowarning_flag,
2498 invariant_flag and visited.
2499 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
2500 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
2501 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
2502 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
2503 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
2504 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
2505 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
2506 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
2507 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
2508 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
2509 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
2510 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
2511 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
2512 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
2513 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
2514 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
2515 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
2516 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
2517 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
2518 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
2519 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
2520 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
2521 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
2522 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
2523 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
2524 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
2525 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
2526 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
2527 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
2528 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
2529 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
2530 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
2531 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
2532 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
2534 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
2535 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
2536 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
2537 EXPR_WFL_SET_LINECOL): Remove.
2538 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
2539 make_phi_node, init_phinodes, fini_phinodes,
2540 release_phi_node, phinodes_print_statistics,
2541 init_ssanames, fini_ssanames, make_ssa_name,
2542 release_ssa_name, ssanames_print_statistics,
2543 annotate_with_file_line, build_empty_stmt,
2544 annotate_with_locus, expr_only, categorize_ctor_elements,
2545 count_type_elements, add_var_to_bind_expr, is_essa_node,
2546 expand_stack_alloc, expand_stack_save,
2547 expand_stack_restore, add_case_node, operand_equal_p,
2548 nondestructive_fold_unary_to_constant,
2549 nondestructive_fold_binary_to_constant,
2550 fold_read_from_constant_string, int_const_binop,
2551 strip_float_extensions, simplify_builtin, c_strlen,
2552 recompute_tree_invarant_for_addr_expr,
2553 needs_to_live_in_memory, make_vector,
2554 setjmp_vars_warning, update_alignment_for_field,
2555 expand_asm_expr, asm_op_is_mem_input,
2556 containing_blocks_have_cleanups_or_stack_level,
2557 create_artificial_label, gimplify_function_tree,
2558 get_name, unshare_expr, walk_tree,
2559 walk_tree_without_duplicates, in_gimple_form): Declare.
2560 (struct tree_exp): Add fields locus and block.
2561 (struct tree_ssa_name, struct edge_def, struct
2562 tree_phi_node, struct tree_eref_common, struct
2563 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
2564 union alias_var_def, struct tree_statement_list_node,
2565 struct tree_statement_list, enum operand_equal_flag): Declare.
2566 (enum tree_node_structure_enum): Add TS_SSA_NAME,
2567 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
2569 (union tree_node): Add fields ssa_name, phi, eref, ephi,
2571 (function_cannot_inline_p, uninitialized_vars_warning,
2572 save_for_inline, output_inline_function, all_cases_count,
2573 check_for_full_enumeration_handling,
2574 declare_nonlocal_label): Remove.
2575 (enum tree_dump_index): Add TDI_none, TDI_tu,
2576 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
2577 * unroll.c (unroll_loop): Don't clear map->inline_target.
2578 * unwind-sjlj.c (uw_install_context): Make a proper static inline
2580 * value-prof.c (value_prof_hooks): New.
2581 (find_values_to_profile): Rename to rtl_find_values_to_profile.
2582 Move rtl-specific bits in from branch_prob.
2583 (value_profile_transformations): Rename to
2584 rtl_value_profile_transformations.
2585 (struct value_prof_hooks): New.
2586 (rtl_value_prof_hooks): New.
2587 (rtl_register_value_prof_hooks): New.
2588 (tree_find_values_to_profile): New stub.
2589 (tree_value_profile_transformations): New stub.
2590 (tree_value_prof_hooks): New stub.
2591 (tree_register_value_prof_hooks): New stub.
2592 (find_values_to_profile): New.
2593 (value_profile_transformations): New.
2594 * value-prof.h: Add multiple inclusion guard.
2595 (struct histogram_value): Change rtx fields to void *.
2596 (rtl_register_value_prof_hooks): New declaration.
2597 (tree_register_value_prof_hooks): New declaration.
2598 (find_values_to_profile): New declaration.
2599 (free_profiled_values): New declaration.
2600 (value_profile_transformations): New declaration.
2601 (struct profile_hooks): New declaration.
2602 (init_branch_prob): Declaration moved from rtl.h.
2603 (branch_prob): Declaration moved from rtl.h.
2604 (end_branch_prob): Declaration mooved from rtl.h.
2605 (tree_register_profile_hooks): New declaration.
2606 (rtl_register_profile_hooks): New declaration.
2607 (tree_profile_hooks): New declaration.
2608 (rtl_profile_hooks): New declaration.
2609 * varasm.c: Include tree-mudflap.h.
2610 (TRAMPOLINE_ALIGNMENT): Remove.
2611 (make_decl_rtl): Call mudflap_enqueue_decl.
2612 (assemble_static_space):
2613 (assemble_trampoline_template): Set and return
2614 TRAMPOLINE_ALIGNMENT.
2615 * varray.c (element): Add GENERIC_PTR_NOGC entry.
2616 Add entry for 'tree *'.
2617 Add entry for struct edge_def *.
2619 * varray.h (enum varray_data_enum): Add
2620 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
2621 VARRAY_DATA_TREE_PTR.
2622 (union varray_data_tag): Corresponding changes.
2623 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
2624 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
2625 VARRAY_EDGE, VARRAY_TREE_PTR,
2626 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
2627 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
2628 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
2630 * config/*/*: Various updates for changed macros, tree
2631 codes, etc. Check ChangeLog.tree-ssa.
2633 * doc/cfg.texi: New file.
2634 * doc/tree-ssa.texi: New file.
2635 * doc/c-tree.texi: Document new codes.
2636 * doc/gccint.texi: Include new files.
2637 * doc/install.texi: Document new features.
2638 * doc/invoke.texi: Document new switches.
2639 * doc/passes.texi: Document new passes.
2640 * doc/rtl.texi: Update changed RTL codes.
2641 * doc/sourcebuild.texi: Update build instructions.
2642 * doc/standards.texi: Document Fortran changes.
2643 * doc/tm.texi: Update.
2645 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
2647 Replace several arrays with a struct of arrays.
2648 * combine.c (struct reg_stat): New.
2649 (init_reg_last_arrays): Renamed to...
2650 (init_reg_last): ...this. Callers adjusted.
2652 (combine_instructions): Allocate it and use it.
2653 (reg_last_death, reg_last_set, reg_last_set_value,
2654 reg_last_set_label, reg_last_set_table_tick,
2655 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
2656 reg_last_set_mode, reg_last_set_nonzero_bits,
2657 reg_last_set_sign_bit_copies): Replace throughout
2658 with items of reg_stat.
2660 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
2662 PR optimization/15100
2663 * combine.c (distribute_notes): Don't create a dangling
2664 REG_LIBCALL/REG_RETVAL note.
2666 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
2668 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
2670 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
2673 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
2675 * doc/md.texi (Standard Names): Fix typo in vec_init description.
2677 2004-05-11 Geoffrey Keating <geoffk@apple.com>
2679 * doc/gty.texi (GTY Options): Clarify example.
2681 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
2683 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
2684 Add const qualifier to altivec vector type if one is needed.
2686 2004-05-11 Paul Brook <paul@codesourcery.com>
2688 * flags.h (flag_short_enums): Update comment.
2689 * opts.c (decode_options): Set flag_short_enums to 2.
2690 * toplev.c (flag_short_enums): Update comment.
2691 (process_options): Call default_short_enums target hook.
2693 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
2696 * config/rs6000/altivec.md (altivec_dssall):
2697 Change to unspec_volatile.
2698 (altivec_dss): Likewise.
2700 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
2702 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
2704 ("one_cmplv8hi2"): Same.
2705 ("one_cmplv4si2"): Same.
2707 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
2710 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
2711 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
2712 into account. Compute the correct number of general registers
2713 for the return value. Generate a special push/pop sequence when
2714 failing to get a temporary register for non SHmedia epilogue.
2715 (sh_expand_epilogue): Add an argument to show whether it's for
2716 sibcall or not. Set the 3rd argument of output_stack_adjust to
2718 (sh_need_epilogue): Call sh_expand_epilogue with 0.
2719 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
2721 (epilogue): Call sh_expand_epilogue with 0.
2723 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
2725 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
2726 goto a cleanup label. After the cleanup, free the allocated memory.
2728 2004-05-10 Ziemowit Laski <zlaski@apple.com>
2730 * config/rs6000/altivec.h (vec_sld): Add overloads for
2731 argument/return types of 'vector bool int', 'vector bool short'
2732 and 'vector bool char'.
2734 2004-05-10 Zack Weinberg <zack@codesourcery.com>
2736 * c-decl.c (store_parm_decls_newstyle): Correct test for a
2739 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
2741 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
2742 treating missing ones as "".
2743 * config/mips/mips.md: Remove constraints from match_operands and
2744 match_scratches if they appear in define_expands (except reload*),
2745 define_peephole2s, define_splits or attribute specifications.
2746 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
2749 2004-05-10 Alan Modra <amodra@bigpond.net.au>
2751 * config/rs6000/rs6000.c (function_arg_boundary): Always align
2753 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
2754 vectors by refererence. Align the same for TARGET_64BIT to a 16
2755 byte boundary. Remove useless code. Add function comment.
2756 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
2757 call to where it belongs.
2758 (function_arg_partial_nregs): Return true for all TARGET_32BIT
2759 -mabi=no-altivec AltiVec vectors. Fix debug output.
2760 (rs6000_va_arg): Adjust for AltiVec change.
2762 2004-05-10 Paul Brook <paul@codesourcery.com>
2764 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
2765 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
2766 (TARGET_DOUBLEWORD_ALIGN): Use it.
2767 (WCHAR_TYPE): Define.
2768 (WCHAR_SIZE_TYPE): Define.
2769 (SIZE_TYPE): Define.
2771 2004-05-10 Alan Modra <amodra@bigpond.net.au>
2773 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
2774 when size is 8 bytes.
2775 (function_arg_advance): Account for stack space used by AltiVec
2776 args when -mabi=altivec. Simplify alignment calculations. For
2777 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
2778 (function_arg): Similarly.
2779 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
2781 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
2782 Correct alignment, and align before testing reg count. Remove
2783 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
2784 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
2786 (rs6000_function_value): .. not here before call.
2788 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
2790 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
2792 2004-05-09 Zack Weinberg <zack@codesourcery.com>
2795 * c-decl.c (current_file_decl): Rename to all_translation_units,
2797 (pop_scope): If popping file_scope, construct a
2798 TRANSLATION_UNIT_DECL and make it the context of all the
2799 symbols in the scope.
2800 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
2801 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
2802 anything to current_file_decl.
2803 (pushdecl_top_level): Likewise.
2804 (store_parm_decls_newstyle): Adjust check for nested function.
2805 (c_write_global_declarations): Update for renamed variable.
2807 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
2809 * config/rs6000/rs6000-protos.h
2810 (rs6000_conditional_register_usage): Protoize.
2812 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
2814 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
2817 2004-05-08 Roger Sayle <roger@eyesopen.com>
2819 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
2820 where op is a comparison operator and C1 and C2 are integer constants
2822 (fold): Call fold_div_compare.
2824 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
2826 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
2827 problems with earlier versions of the GNU compiler.
2829 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
2831 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
2834 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
2835 (rs6000_hard_regno_mode_ok): New.
2836 (rs6000_init_hard_regno_mode_ok): New.
2837 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
2839 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
2842 2004-05-07 Ziemowit Laski <zlaski@apple.com>
2844 * config/rs6000/altivec.h (vector, pixel, bool): Do not
2845 define as macros #ifdef __APPLE_ALTIVEC__.
2847 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
2849 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
2850 Generate appropriate parallels for vector arguments
2851 passed to vararg functions. (function_arg): make the call
2852 to rs6000_mixed_function_arg for vector args as needed.
2854 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
2856 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
2857 EABI_FLOAT_VARARGS_P.
2859 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
2861 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
2862 * config/mips/mips.c (override_options): Disable branch likely
2863 instructions if TUNE_MIPS5500.
2865 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
2867 * config/mips/mips.c (override_options): Allow the hi and lo registers
2868 to store any integral mode, not just MODE_INTs.
2870 2004-05-07 Paul Brook <paul@codesourcery.com>
2872 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
2873 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
2874 (TARGET_DOUBLEWORD_ALIGN): Use it.
2875 (WCHAR_TYPE): Define.
2876 (WCHAR_SIZE_TYPE): Define.
2877 (SIZE_TYPE): Define.
2879 2004-05-07 Uros Bizjak <uros@kss-loka.si>
2881 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
2882 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
2884 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
2886 * loop-doloop.c (doloop_valid_p): Make sure that body
2889 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
2891 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
2893 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
2894 (sparc_skip_caller_unimp): New global variable.
2895 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
2896 Use it instead of SKIP_CALLERS_UNIMP_P.
2897 * config/sparc/sparc.md (call expander): Add sanity check.
2898 (call_address_struct_value_sp32): Re-sync with expander.
2899 (call_symbolic_struct_value_sp32): Likewise.
2900 (return peepholes): Use 'sparc_skip_caller_unimp' instead
2901 of custom predicate.
2903 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2906 * c-pragma.c (handle_pragma_redefine_extname): Only change
2907 the assembler name of FUNCTION_DECLs and VAR_DECLs.
2909 2004-05-07 Uros Bizjak <uros@kss-loka.si>
2911 * optabs.h (enum optab_index): Add new OTI_log1p.
2912 (log1p_optab): Define corresponding macro.
2913 * optabs.c (init_optabs): Initialize log1p_optab.
2914 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
2916 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
2918 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
2919 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2921 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
2923 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
2924 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
2926 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
2927 x87's fyl2xp1 instruction.
2928 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
2929 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
2930 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
2931 log1p and log1pl built-ins as inline x87 intrinsics.
2933 2004-05-07 Loren James Rittle <ljrittle@acm.org>
2935 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
2936 * config/arm/freebsd.h: Likewise.
2937 * config/ia64/freebsd.h: Likewise.
2938 * config/sparc/freebsd.h: Likewise.
2940 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
2942 PR optimization/15296
2943 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
2944 getting last consecutive label at a branch.
2945 (relax_delay_slots): Similar, near top of loop.
2947 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2950 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
2951 register to general register.
2953 2004-05-07 Alan Modra <amodra@bigpond.net.au>
2955 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
2956 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
2957 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
2958 (STACK_BOUNDARY): Delete.
2960 2004-05-06 Stuart Hastings <stuart@apple.com>
2962 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
2963 mistakenly clobbered by 1.423.
2965 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
2967 * doc/invoke.texi: Document -mvr4130-align.
2968 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
2969 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
2970 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
2971 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
2972 * config/mips/mips.md: Include sched-int.h.
2973 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
2974 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
2975 (override_options): Enable -mvr4130-align at -O3 and above.
2976 (mips_sim_insn): New variable.
2977 (mips_sim): New structure.
2978 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
2979 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
2980 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
2981 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
2982 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
2983 (mips_reorg): Call vr4130_align_insns.
2984 (vr4130_last_insn): New variable.
2985 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
2986 (vr4130_swap_insns_p, vr4130_reorder): New functions.
2987 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
2988 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
2989 (mips_use_dfa_pipeline_interface): Return true for the same.
2990 * config/mips/4130.md: New file.
2991 * config/mips/mips.md: Include it. Add a peephole2 to convert
2992 "mult;mflo" into "mtlo;macc".
2993 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
2995 (*msac_using_macc): New pattern.
2997 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
2999 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
3000 (ir_vr55_hilo): Split into...
3001 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
3002 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
3003 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
3004 Add various multiplication bypasses.
3005 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
3008 2004-05-06 Uros Bizjak <uros@kss-loka.si>
3010 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
3013 2004-05-05 Uros Bizjak <uros@kss-loka.si>
3015 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
3016 (fmod_optab, drem_optab): Define corresponding macros.
3017 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
3018 * genopinit.c (optabs): Implement fmod_optab and drem_optab
3019 using fmod?f3 and drem?f3 patterns.
3020 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
3021 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
3022 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
3023 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
3024 flag_unsafe_math_optimizations is set.
3026 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
3027 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
3029 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
3030 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
3032 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
3033 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
3034 fprem and fprem1 instructions.
3035 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
3036 Rename insn definition to x86_fnstsw_1.
3037 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
3039 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
3040 and fmodl built-ins as inline x87 intrinsics.
3041 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
3042 and dreml built-ins as inline x87 intrinsics.
3044 2004-05-05 Roger Sayle <roger@eyesopen.com>
3046 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
3048 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
3051 * doc/invoke.texi (Spec Files): Remove documentation of %c.
3053 2004-05-05 Chris Demetriou <cgd@broadcom.com>
3055 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
3058 2004-05-06 Paul Brook <paul@codesourcery.com>
3060 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
3061 (arm_coproc_mem_operand): ... To this.
3062 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
3063 (arm_legitimate_index_p): Ditto.
3064 (vfp_mem_operand): Rename ...
3065 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
3066 (vfp_secondary_reload_class): Use it.
3067 (output_move_double): Use doubleword load/store instructions.
3068 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
3069 * config/arm/arm.h (TARGET_LDRD): Define.
3070 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
3071 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
3072 New splitter for invalid doubleword loads.
3073 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
3074 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
3075 * doc/md.texi: Document Uy constraint.
3077 2004-05-05 Jan Hubicka <jh@suse.cz>
3080 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
3083 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
3086 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
3087 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
3089 2004-05-05 Mike Stump <mrs@apple.com>
3091 * config/darwin-c.c (add_framework): Copy the directory name as it
3092 can be freed later. Also, ensure we always allocate enough room
3093 for the cached framework information.
3094 (find_subframework_header): Keep track of the directory where the
3095 subframework header was found.
3096 (framework_construct_pathname): Speed up by not trying to re-add a
3098 * cppfiles.c (search_path_exhausted): Arrange for the missing
3099 header callback to be able to set the directory where the header
3102 * cpplib.h (missing_header_cb): Add a parameter.
3105 2004-05-03 Mike Stump <mrs@apple.com>
3107 * doc/invoke.texi (Directory Options): Document -iquote.
3108 * doc/cpp.texi: Likewise.
3109 * doc/cppopts.texi: Likewise.
3110 * c-opts.c (c_common_missing_argument): Add -iquote processing.
3111 (c_common_handle_option): Likewise.
3112 * c.opt (iquote): Add.
3113 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
3114 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
3116 * c-opts.c (case OPT_I): Deprecate -I- support.
3117 * doc/invoke.texi: Likewise.
3118 * doc/cpp.texi: Likewise.
3119 * doc/cppopts.texi: Likewise.
3121 2004-05-05 Steven Bosscher <stevenb@suse.de>
3123 * basic-block.h (free_basic_block_vars): Update prototype.
3124 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
3126 (life_analysis): Update call.
3127 * ifcvt.c (if_convert): Likewise.
3128 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
3129 * passes.c (rest_of_handle_final): Likewise.
3130 (rest_of_compilation): Likewise.
3131 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3133 * emit-rtl.c (next_real_insn): Use INSN_P.
3134 (prev_real_insn): Likewise.
3136 2004-05-05 Eric Christopher <echristo@redhat.com>
3138 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
3141 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
3143 * config/rs6000/rs6000.c (build_opaque_vector_type):
3145 (rs6000_init_builtins): Use it.
3147 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
3149 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
3150 (func_table): Change type from char ** to vms_func_ref.
3151 (write_rtnbeg): Update to reflect func_table change. Use
3152 fde->funcdef_number instead of rtnnum in output.
3153 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
3155 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
3156 Richard Henderson <rth@redhat.com>
3160 * c-common.c (vector_types_convertible_p): New function.
3161 * c-typeck.c (comptypes): Recurse on vector types.
3162 (convert_for_assignment): Use vector_types_convertible_p.
3163 (digest_init): Use vector_types_convertible_p to check
3164 validness of constant vector initializers; otherwise treat
3166 * tree.c (make_or_reuse_type): New.
3167 (build_common_tree_nodes): Use it.
3168 * cp/call.c (standard_conversion): Likewise.
3169 * cp/typeck.c (comptypes): Recurse on vector types.
3170 (convert_for_assignment): Use vector_types_convertible_p.
3172 2004-05-04 Chris Demetriou <cgd@broadcom.com>
3174 * config/mips/mips.c (override_options): Default to no
3175 generation of branch-likely operations when tuning for
3176 CPUs where they tend to have a negative performance impact
3179 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3181 * expr.c (store_constructor_field): Don't call store_constructor
3182 if bitsize is not a multiple of a byte.
3184 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
3186 * reload1.c (inherit_piecemeal_p): New function.
3187 (emit_reload_insns): When reloading a group of hard registers, use
3188 inherit_piecemeal_p to decide whether the values of individual hard
3189 registers can be inherited.
3191 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
3193 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
3194 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
3195 * config/t-linux (LIB2ADDEHDEP): Likewise.
3197 2004-05-04 Paul Brook <paul@codesourcery.com>
3199 * config/arm/crti.asm: Push an even number of registers.
3200 * config/arm/crtn.asm: And restore them. Load via sp.
3202 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
3204 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
3205 Collect overhead information.
3206 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
3207 parameter and pass it through.
3208 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
3209 MEM_STAT_DECL parameter and pass it through.
3210 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
3211 MEM_STAT_DECL parameter and pass it through.
3213 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
3215 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
3217 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
3219 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
3220 rs6000_hard_regno_nregs.
3222 2004-05-03 Eric Christopher <echristo@redhat.com>
3224 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
3225 prologue insn instead of setting up call.
3226 (s390_emit_epilogue): Ditto.
3227 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
3228 (define_constants): Add numbers for above patterns.
3230 2004-05-03 Eric Christopher <echristo@redhat.com>
3232 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
3233 * config/s390/s390.c (s390_conditional_register_usage): ...here.
3234 * config/s390/s390-protos.h: Prototype.
3236 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
3238 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
3241 2004-05-03 Eric Christopher <echristo@redhat.com>
3243 * config/mips/mips.md: Fix branch length attribute definition.
3245 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
3247 * config.gcc: Remove --enable-altivec support.
3249 * config/rs6000/altivec-defs.h: Remove.
3251 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3253 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
3254 * fixinc/fixincl.x: Regenerate.
3256 2004-05-03 Uros Bizjak <uros@kss-loka.si>
3258 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
3260 (log?f2, log10?f2, log2?f2): Reimplement expanders with
3261 float_truncate insn.
3262 (*fxtractsf3, *fxtractdf3): Remove insn definition.
3263 (logb?f2): Reimplement expanders with float_truncate insn.
3265 2004-05-03 Graham Stott <graham.stott@btinternet.com>
3268 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
3269 force_type_die for CONST_DECL.
3271 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3272 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3274 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
3275 tm-dwarf2.h to tm_file.
3276 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
3277 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
3278 (ASM_DEBUG_SPEC): Delete.
3280 2004-05-03 Uros Bizjak <uros@kss-loka.si>
3282 * optabs.h (enum optab_index): Add new OTI_expm1.
3283 (expm1_optab): Define corresponding macro.
3284 * optabs.c (init_optabs): Initialize expm1_optab.
3285 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
3287 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
3289 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
3290 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3292 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
3293 to implement expm1, expm1f and expm1l built-ins as inline x87
3296 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
3298 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
3299 * config/frv/frv.md (*return_true, *return_false): New patterns.
3301 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
3303 * rtl.h (PHI_NODE_P): Remove.
3305 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
3308 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
3309 when passed -2 as 'align'.
3310 (put_var_into_stack): Use 'bool' as the type for the three local
3311 predicates. Adjust calls to put_reg_into_stack.
3312 When passed a CONCAT, instruct put_reg_into_stack to use
3313 a consecutive stack slot for the second part.
3314 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
3315 'consecutive_p' parameter. Turn the three predicates into 'bool'
3316 parameters. Retrieve the register mode from 'reg'.
3317 When consecutive_p is true, instruct assign_stack_local_1 to use
3318 BITS_PER_UNIT alignment.
3319 (put_addressof_into_stack): Use 'bool' as the type for the two
3320 local predicates. Adjust call to put_reg_into_stack.
3322 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3324 * fold-const.c (fold_convert_const, fold): Add missing
3325 FIX_ROUND_EXPR case.
3327 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
3329 * configure.ac (FLEX, BISON): Only use tools from the build tree
3330 if build equals host.
3331 * configure: Rebuilt.
3333 * config/frv/frv-protos.h (frv_expand_epilogue,
3334 frv_expand_fdpic_call): Add bool argument.
3335 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
3336 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
3337 (frv_expand_epilogue): Use new argument to decide whether to emit
3338 return instruction or copy the return address to LR.
3339 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
3341 (sibcall_operand): New.
3342 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
3343 PLUS nor LABEL_REF. Add sibcall_operand.
3344 * config/frv/frv.md (call, call_value): Pass false to
3345 frv_expand_fdpic_call.
3346 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
3347 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
3348 sibcall_value_internal, sibcall_value_fdpicdi): New.
3349 (return_unsigned_true, return_unsigned_false): New.
3350 (epilogue): Adjust call to frv_expand_epilogue.
3351 (sibcall_epilogue): New.
3353 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
3354 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
3355 before redefining them.
3357 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3359 * builtins.c (fold_fixed_mathfn): New function.
3360 (fold_builtin_lround, fold_builtin): Use it.
3362 2004-05-01 Jakub Jelinek <jakub@redhat.com>
3364 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
3365 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
3367 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
3369 * config/cris/cris.h: Revert my "fix comment typos" patch.
3371 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
3373 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
3375 2004-05-01 Falk Hueffner <falk@debian.org>
3377 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
3378 builtin_insll): Disallow 0 as first input operand.
3380 2004-05-01 Falk Hueffner <falk@debian.org>
3382 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
3384 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
3387 * expr.c (expand_expr_real): Do not call preserve_temp_slots
3388 on a TARGET_EXPR temp.
3389 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
3390 TARGET_EXPR temp slots.
3392 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
3394 * simplify-rtx.c (simplify_ternary_operation): When
3395 converting an IF_THEN_ELSE to a relational op, return
3398 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3400 * builtins.c (fold_builtin_round): Fix comment typo.
3401 (fold_builtin_lround): New function.
3402 (fold_builtin): Use it.
3404 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
3407 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
3408 more like the one in config/dbxelf.h.
3410 2004-04-30 Zack Weinberg <zack@codesourcery.com>
3412 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
3413 and adjust definition accordingly.
3414 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
3415 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
3416 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
3419 2004-04-30 Jason Merrill <jason@redhat.com>
3422 * config/i386/winnt.c (associated_type): Look for attributes on
3423 the TYPE_MAIN_VARIANT of *this.
3424 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
3425 apply the attributes to the variants.
3427 2004-04-30 Paul Brook <paul@codesourcery.com>
3429 * config.gcc: Simplify arm --with-{cpu,tune} test.
3430 * config/arm/arm-cores.def: Document whitespace restrictions.
3432 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3435 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
3437 2004-04-30 Brian Ford <ford@vss.fsi.com>
3438 DJ Delorie <dj@redhat.com>
3440 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
3441 (DWARF2_DEBUGGING_INFO): Define to enable.
3442 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
3444 * configure.ac (Target-specific assembler checks)
3445 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
3447 * configure: Regenerate.
3448 * config.in: Likewise.
3450 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
3451 (ASM_OUPUT_DWARF_OFFSET): Define.
3453 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
3455 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
3456 (s390_emit_call): New function prototype added.
3457 (s390_tls_get_offset): Function removed.
3458 * config/s390/s390.c (s390_function_ok_for_sibcall,
3459 s390_call_saved_register_used_p): New functions.
3460 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
3461 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
3462 (s390_emit_tls_call_insn): New function.
3463 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
3465 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
3466 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
3468 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
3469 register number used to hold the target address for sibcalls.
3470 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
3472 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
3473 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
3474 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
3476 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
3477 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
3478 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
3479 ("epilogue"): Changed the call to s390_emit_epilogue to use the
3482 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
3484 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
3485 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
3486 reg-stack.c, varasm.c, config/alpha/ev4.md,
3487 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
3488 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
3489 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
3490 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
3491 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
3492 config/ia64/itanium2.md, config/ip2k/ip2k.c,
3493 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
3494 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
3497 2004-04-30 Paul Brook <paul@codesourcery.com>
3499 * config.gcc: Default ep9312 to hard-float.
3500 * config/arm/arm-cores.def: Add ARCH field.
3501 * config/arm/arm.c (FL_FOR_ARCH*): Define.
3502 (arm_arch_cirrus): New variable.
3503 (all_cores): Set and use arch.
3504 (all_architectures): Ditto.
3505 (arm_arch_name): New variable.
3506 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
3507 Set and use arm_arch_cirrus.
3508 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
3509 (enum processor_type): Update ARM_CORE define.
3510 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
3511 (CPP_SPEC): Remove %(cpp_cpu_arch).
3512 (CPP_ARCH_DEFAULT_SPEC): Remove.
3513 (CPP_CPU_ARCH_SPEC): Remove.
3514 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
3515 (FPUTYPE_DEFAULT): Don't define here.
3517 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
3519 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
3522 2004-04-30 Paul Brook <paul@codesourcery.com>
3524 * arm.c (arm_needs_doubleword_align): Use mode alignment.
3526 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
3528 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
3530 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
3533 2004-04-30 Uros Bizjak <uros@kss-loka.si>
3535 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
3538 2004-04-29 Nick Clifton <nickc@redhat.com>
3541 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
3542 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
3543 Delete static from definition.
3544 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
3546 2004-04-30 Uros Bizjak <uros@kss-loka.si>
3548 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
3549 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
3550 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
3551 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
3553 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
3555 * commom.opt (Wfatal-errors): Add it.
3556 * diagnostic.c (flag_fatal_errors): Define it.
3557 (diagnostic_action_after_output): Check for flag_fatal_errors.
3558 * flags.h (flag_fatal_errors): Declare it.
3559 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
3560 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
3562 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
3564 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
3565 blocks which have kill flag set.
3567 2004-04-29 Ben Elliston <bje@au.ibm.com>
3569 * configure.ac (--with-as): Abort if user-supplied assembler
3571 (--with-ld): Likewise for the linker.
3572 * configure: Regenerate.
3574 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3576 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
3577 isn't NULL before using it.
3579 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
3582 * config/mips/mips.md (load_df_low): Use default length.
3583 (load_df_high, store_df_high): Likewise.
3585 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
3587 * config/mips/mips.md, config/mips/sb1.md,
3588 config/rs6000/rs6000.c: Fix comment typos.
3590 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
3592 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
3595 2004-04-29 Douglas B Rupp <rupp@gnat.com>
3597 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
3598 (delete_if_ordinary): Use above macro.
3599 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
3601 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
3603 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
3605 * c-decl.c (get_parm_info): Use the correct tag keywords when
3606 warning about type declarations in prototypes.
3608 2004-04-29 Paul Brook <paul@codesourcery.com>
3610 * config.gcc: Pull list of cores from arm-cores.def.
3612 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
3614 * combine.c (combine_simplify_rtx): Adjust call to use
3615 simplify_relational_operation. Do not use SELECT_CC_MODE
3616 when a comparison already has a MODE_CC mode.
3618 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
3620 (simplify_set): simplify_relational_operation may now
3621 return another relational expression.
3622 * cse.c (fold_rtx): simplify_relational_operation now
3623 takes of computing the comparison mode.
3624 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
3626 (do_compare_rtx_and_jump): Likewise.
3627 * integrate.c (subst_constants): simplify_relational_operation
3628 may now return another relational expression.
3629 * simplify-rtx.c (simplify_gen_relational): Move most code to
3630 the new simplify_relational_operation and
3631 simplify_relational_operation_1 functions.
3632 (simplify_relational_operation): Rewritten.
3633 (simplify_relational_operation_1): New function.
3634 (simplify_ternary_operation): simplify_relational_operation
3635 may now return another relational expression.
3636 (simplify_rtx): Remove unnecessary temp variable.
3638 2004-04-29 Uros Bizjak <uros@kss-loka.si>
3640 * reg-stack.c (swap_to_top): New function.
3641 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
3643 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
3644 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
3647 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
3648 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
3649 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
3651 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
3652 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
3655 2004-04-28 Serge Belyshev <1319@bot.ru>
3658 * coverage.c (read_counts_file): Fix usage of warning () call.
3659 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
3661 2004-04-28 Ben Elliston <bje@au.ibm.com>
3663 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
3664 options with "-" in the option index.
3665 (SPARC Options): Likewise.
3666 (M32R/D Options): Likewise.
3668 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3670 * convert.c (convert_to_integer): Convert (long)round -> lround,
3673 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
3675 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
3676 Return false if we do not have fp register.
3677 (addrs_ok_for_quad_peep): Rename to ...
3678 (mems_ok_for_quad_peep): this.
3679 Add check for volatile memory.
3680 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
3682 (mems_ok_for_quad_peep): this.
3683 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
3685 (lfq_power2): New instruction.
3686 (stfq_power2): Likewise.
3688 2004-04-28 Jan Hubicka <jh@suse.cz>
3691 * function.c (do_warn_unused_parameter): Break out form ...
3692 (expand_function_end): ... here; warn only when not using cgraphunit.
3693 * function.h (do_warn_unused_parameter): Declare.
3694 * cgraphunit.c: Include function.h.
3695 (cgraph_finalize_function): Do unused parameter warning.
3696 * Makefile.in (cgraphunit.o): Depend on function.h
3698 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
3700 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
3701 calling install-info on $(DESTDIR)$(infodir)/dir already being
3704 2004-04-28 Paul Brook <paul@codesourcery.com>
3706 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
3708 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3710 * gcse.c (find_moveable_store): Do not accept store insns with
3713 2004-04-28 Paul Brook <paul@codesourcery.com>
3715 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
3716 * function.c (assign_temp): Ditto.
3717 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
3719 2004-04-28 Paul Brook <paul@codesourcery.com>
3721 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
3723 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
3725 * var-tracking.c (variable_different_p): Add a parameter
3726 compare_current_location, compare current location of variable parts
3728 (dataflow_set_different_1): Pass compare_current_location == false.
3729 (dataflow_set_different_2): Pass compare_current_location == false.
3730 (emit_notes_for_differences_1): Pass compare_current_location == true.
3732 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3734 * config/s390/s390.md ("casesi"): Mark jump table access as
3735 non-trapping and unchanging.
3737 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3740 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
3742 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
3743 number for indexing hard_regno_nregs array.
3745 2004-04-27 Geoffrey Keating <geoffk@apple.com>
3747 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
3748 * config/darwin-crt2.c: Only have contents on __ppc__.
3750 2004-04-27 Bob Wilson <bob.wilson@acm.org>
3752 * config/xtensa/xtensa.c (call_insn_operand): Check
3753 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
3754 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
3755 * config/xtensa/xtensa.md (call, call_value): Likewise.
3757 2004-04-27 Wu Yongwei <adah@sh163.net>
3759 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
3760 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
3761 (__gthread_mutex_init_function): Replace CreateMutex with
3762 initialization of custom mutex using CreateSemaphore.
3763 (__gthread_mutex_lock): Use InterlockedIncrement.
3764 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
3765 (__gthread_mutex_unlock): Use InterlockedDecrement and
3766 ReleaseSemaphore to unlock
3767 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
3768 __gthread_mutex_lock, __gthread_mutex_trylock,
3769 __gthread_mutex_unlock): Adjust to match inline versions in
3772 2004-04-27 Paul Brook <paul@codesourcery.com>
3774 * config/arm/arm.c (arm_promote_prototypes): New function.
3775 (TARGET_PROMOTE_PROTOTYPES): Use it.
3777 2004-04-27 Paul Brook <paul@codesourcery.com>
3779 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
3781 2004-04-26 Bernard Giroud <bgiroud@free.fr>
3783 * config/alpha.c (alpha_end_function): For OpenVMS gas,
3784 correctly output .pdesc directive before .end.
3786 2004-04-26 James E Wilson <wilson@specifixinc.com>
3789 * config/ia64/ia64.md (movxf): New local op0. Handle case where
3790 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
3792 2004-04-26 Zack Weinberg <zack@codesourcery.com>
3794 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
3795 * config/pa/pa-hpux10.h: Likewise.
3796 * config/pa/pa-hpux11.h: Likewise.
3798 2004-04-26 Geoffrey Keating <geoffk@apple.com>
3800 * doc/invoke.texi (Overall Options): Document default for -o
3803 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3805 * builtins.c (expand_builtin_update_setjmp_buf): New function.
3806 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
3807 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
3809 2004-04-26 Paul Brook <paul@codesourcery.com>
3811 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
3813 2004-04-26 Paul Brook <paul@codesourcery.com>
3815 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
3817 2004-04-25 Roger Sayle <roger@eyesopen.com>
3819 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
3820 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
3823 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
3826 * except.c (connect_post_landing_pads): Delete insns after the
3827 barrier when generating a unwind_resume_libfunc call.
3829 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3832 * tree.c (substitute_placeholder_in_expr, case 4): New case,
3835 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3837 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
3838 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
3839 inhibit_libc is defined.
3841 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
3843 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
3844 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
3845 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
3846 (TARGET_SCHED_VARIABLE_ISSUE): Define.
3847 (mips_adjust_cost): Move later in file, next to other sched hooks.
3848 (mips_macc_chains_last_hilo): New variable.
3849 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
3850 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
3851 * config/mips/mips.md (may_clobber_hilo): New attribute.
3853 2004-04-24 Roger Sayle <roger@eyesopen.com>
3854 Bruce Korb <bkorb@gnu.org>
3856 * fixinc/inclhack.def (aix_syswait_2): New fix.
3857 * fixinc/fixincl.x: Regenerate.
3858 * fixinc/tests/base/sys/wait.h: Update for new test.
3860 2004-04-24 Alan Modra <amodra@bigpond.net.au>
3863 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
3864 to non_fixed_size, and leave out fixed_size from the sum.
3865 (generate_set_vrsave): Correct clobbers.
3866 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
3867 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
3868 (rs6000_libcall_value): Likewise.
3869 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
3870 (FUNCTION_ARG_REGNO_P): Likewise.
3872 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
3874 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
3876 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
3877 with NARROW_OP1 instead of OP1.
3879 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
3881 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
3882 and __s390x__ hosts.
3884 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3886 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
3887 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
3888 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
3889 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
3890 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
3891 * builtins.c (expand_builtin_fork_or_exec): New.
3892 (expand_builtin): Call it.
3893 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
3894 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
3895 * c-common.c (PID_TYPE): New macro.
3896 (c_common_nodes_and_builtins): Initialize pid_type_node.
3897 * calls.c (special_function_p): Do not handle fork and exec.
3898 (expand_call): Do not handle ECF_FORK_OR_EXEC.
3899 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
3900 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
3901 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
3902 __gcov_execv, __gcov_execvp, __gcov_execve): New.
3903 * tree.h (enum tree_index): Add TI_PID_TYPE.
3904 (pid_type_node): New macro.
3905 (ECF_FORK_OR_EXEC): Removed.
3907 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3909 PR optimization/13985
3910 * cfgloopmanip.c (fix_loop_placements): New prototype.
3911 Call fix_bb_placements on the preheader of loops that have
3913 (remove_path): Adjust call to fix_loop_placements.
3915 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
3917 * config/darwin7.h: New file.
3918 * config.gcc (*-*-darwin*): Add darwin7.h if the
3919 version is greater than 6.
3920 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
3921 (MATH_LIBRARY): Wrap in ifdefs.
3923 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
3925 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
3926 loading iWMMXt registers with a frame pointer. Use post-increment
3927 without a frame pointer.
3928 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
3930 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
3932 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
3933 mode" rather than "-funit-at-a-time" since -O2 enables it
3934 without requiring -f* options. Refer to -fprofile-generate and
3935 -fprofile-use correctly. Move -funit-at-a-time among options
3936 enabled by -O. Add information about unit-at-a-time caveats.
3938 2004-04-22 Per Bothner <per@bothner.com>
3940 * line-map.h (struct line_maps): New field highest_line.
3941 (linemap_position_for_column): Make non-inline function.
3942 (LINEMAP_POSITION_FOR_COLUMN): New macro.
3943 * line-map.c (linemap_init): Clear highest_line field.
3944 (linemap_add): Set highest_line field.
3945 (linemap_line_start): Minor optimization - use highest_line field.
3946 Reduce maximum column hint to 10000. Update highest_line field.
3947 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
3948 * cpphash.h (struct cpp_reader): Remove line field - instead use
3949 line_table->highest_line.
3950 (saved_line): Remove unused field.
3951 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
3952 Use line_table's highest_line field instead of cpp_reader's line.
3953 * cpplib.c (start_directive): Likewise use highest_line field.
3954 (do_line, do_linemarker): Likewise just use newest map.
3955 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
3956 * cpperror.c (cpp_error): Likewise use highest_line field.
3957 * cppfiles.c (open_file_failed: Likewise.
3958 (cpp_make_system_header): Likewise use newest map and highest_line.
3959 * cppinit.c (cpp_create_reader): Don't initialize removed field.
3960 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
3961 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
3962 _cpp_lex_direct): Likewise use highest_line.
3963 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
3964 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
3966 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
3967 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
3968 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
3970 2004-04-23 Alan Modra <amodra@bigpond.net.au>
3973 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
3974 * config/linux.h (USE_LD_AS_NEEDED): Define.
3975 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
3976 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
3977 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
3978 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.